(self.webpackChunk=self.webpackChunk||[]).push([[2806],{40001:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={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"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},73331:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={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"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},15277:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={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"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},33853:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={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"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},61485:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={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"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},47472:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={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"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},87395:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(60499),Qe=ne(59301),xe={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"},tt=xe,Ee=ne(7657),Be=function(he,Je){return Qe.createElement(Ee.Z,(0,E.Z)({},he,{ref:Je,icon:tt}))},De=Qe.forwardRef(Be),We=De},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(on,$t){"use strict";$t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39967:function(on,$t){"use strict";$t.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var on={},$t="5.0",ne={},E=null,Qe=!1,xe=!1,tt=null,Ee=!1,Be=null,De=null,We=0;We4?parseFloat(ge):5};on.setHTML5Codebase=function(ge,He){De=ge,Ue(ge,He)},on.setJavaCodebase=on.setJavaCodebaseVersion=on.isCompiledInstalled=on.setPreCompiledScriptPath=on.setPreCompiledResourcePath=function(){},on.setHTML5CodebaseVersion=function(ge,He){var Ge=parseFloat(ge);if(Ge!==NaN&&Ge<5){console.log("The GeoGebra HTML5 codebase version "+Ge+" is deprecated. Using version latest instead.");return}Be=ge,ce(ge,He)},on.getHTML5CodebaseVersion=function(){return Ze},on.getParameters=function(){return ne},on.setFontsCSSURL=function(ge){Pt=ge},on.setGiacJSURL=function(ge){},on.setJNLPFile=function(ge){he=ge},on.setJNLPBaseDir=function(ge){},on.inject=function(){function ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var He="auto",Ge=ne.id,Tt,wt=!1,Lt=0;Lt=5)return!0;var ge=on.getAppletObject();return ge&&typeof ge.recalculateEnvironments=="function"?(ge.recalculateEnvironments(),!0):!1},on.startAnimation=function(){var ge=on.getAppletObject();return ge&&typeof ge.startAnimation=="function"?(ge.startAnimation(),!0):!1},on.stopAnimation=function(){var ge=on.getAppletObject();return ge&&typeof ge.stopAnimation=="function"?(ge.stopAnimation(),!0):!1},on.getAppletObject=function(){var ge=ne.id!==void 0?ne.id:"ggbApplet";return window[ge]},on.resize=function(){};var St=function(ge,He,Ge){var Tt=document.createElement("param");Tt.setAttribute("name",He),Tt.setAttribute("value",Ge),ge.appendChild(Tt)},Me=function(ge){return ge&&ge!=="false"},Ke=function(ge,He,Ge){it(Ze)<=4.2&&(Ge=!0);var Tt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ze||ggbHTML5LoadedCodebaseIsWebSimple&&!Te)&&(Tt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var wt=document.createElement("div");wt.classList.add("appletParameters","notranslate");var Lt=He.width,$e=He.height;if(He.disableAutoScale=He.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():He.disableAutoScale,He.width!==void 0)if(it(Ze)<=4.4)Me(He.showToolBar)&&(He.height-=7),Me(He.showAlgebraInput)&&(He.height-=37),He.width<605&&Me(He.showToolBar)&&(He.width=605,Lt=605);else{var At=100;(Me(He.showToolBar)||Me(He.showMenuBar))&&(He.hasOwnProperty("customToolBar")&&(He.customToolbar=He.customToolBar),At=Me(He.showMenuBar)?245:155),Lt=5?(He.appletOnLoad=function(Bt){var Et=ge.querySelector(".ggb_preview");Et&&Et.parentNode.removeChild(Et),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Bt)},ee||te.appendChild(oe)):wt.appendChild(oe),te.appendChild(wt),ee||ge.appendChild(te),setTimeout(function(){on.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(wt),ge.appendChild(ue),He.appletOnLoad=function(Bt){on.resize(),ae(Bt)}}function re(Bt,Et){Et&&typeof Et.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,Et.appletOnLoad):renderGGBElement(Bt),It("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Et)}function ve(Bt,Et){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:Et}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ut){re(Ut.article,Ut.params)}),html5AppletsToProcess=null)},it(Ze)<5&&(Bt.className+=" geogebraweb")):re(Bt,Et)}if(Tt){scriptLoadStarted=!0;for(var we=0;we0?(st.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):Ke(st,He,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else dt=Tt,Ke(ge,He,!1);if(!window.GGBT_wsf_view)for($e=0;$ege/4*3&&(st=ge/4*3),ae=st/5.8,At.setAttribute("src",rt),At.setAttribute("width",st),At.setAttribute("height",ae);var te=(ge-st)/2,ee=(He-ae)/2;At.style.left=te+"px",At.style.top=ee+"px",wt.appendChild(At)}}return wt.appendChild($e),wt},ct=function(ge){return ge=ge.toLowerCase(),ge==="html5"||ge==="screenshot"?ge:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(ge,He){if(Ze=ge,He){Ue(Ze,!0);return}var Ge=!Qe;if(Ge){var Tt=it(Ze);!isNaN(Tt)&&Tt<4.4&&(Ge=!1)}var wt,Lt;window.location.protocol.substr(0,4)==="http"?wt=window.location.protocol:wt="http:";var $e=Ze.indexOf("//");$e>0?Lt=Ze:$e===0?Lt=wt+Ze:Lt="https://www.geogebra.org/apps/5.2.814.0/";for(var At in ye)if(Ze.slice(ye[At].length*-1)===ye[At]||Ze.slice((ye[At].length+1)*-1)===ye[At]+"/"){Ue(Lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ge&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Me(ne.showToolBar)&&!Me(ne.showMenuBar)&&!Me(ne.showAlgebraInput)&&!Me(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?Lt+="webSimple/":Lt+="web3d/",Ue(Lt,!1)},Ue=function(ge,He){if(ge.requirejs){Je=ge;return}ge.slice(-1)!=="/"&&(ge+="/"),Je=ge,He===null&&(He=ge.indexOf("http")===-1),Pe=He,Ce="web.nocache.js",Te=!1;var Ge=Je.split("/");Ge.length>1&&(!He&&Ge[Ge.length-2]==="webSimple"?(Ce="webSimple.nocache.js",Te=!0):ye.indexOf(Ge[Ge.length-2])>=0&&(Ce=Ge[Ge.length-2]+".nocache.js")),Ge=ge.split("/"),Ze=Ge[Ge.length-3],Ze.substr(0,4)==="test"?Ze=Ze.substr(4,1)+"."+Ze.substr(5,1):(Ze.substr(0,3)==="war"||Ze.substr(0,4)==="beta")&&(Ze="5.0");var Tt=parseFloat(Ze);Tt!==NaN&&Tt<5&&ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Tt+" is deprecated. Using version latest instead."),ce("5.0",He))},It=function(ge,He){window.console&&window.console.log&&(!He||typeof He.showLogging=="undefined"||He.showLogging&&He.showLogging!=="false")&&console.log(ge)};ne.material_id!==void 0?kt(bt):bt();function bt(){var ge=$t;Be!==null?ge=Be:parseFloat(ge)<5&&(ge="5.0"),ce(ge,!1),De!==null&&Ue(De,Pe),Ee=!0}return on},GGBAppletUtils=function(){"use strict";function on(){return window.GGBT_wsf_edit!==void 0}function $t(Ee,Be){Be!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+Be+","+Be+")",Ee.style.webkitTransform="scale("+Be+","+Be+")",Ee.style.maxWidth="initial",Ee.querySelector(".ggb_preview")!==null&&(Ee.querySelector(".ggb_preview").style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ee.style.transform="none",Ee.style.webkitTransform="none")}function ne(Ee,Be,De,We,Ie,he){var Je=null;if(he!=null&&he!="")for(var Pe=Ee.parentNode;Pe!=null;)if((" "+Pe.className+" ").indexOf(" "+he+" ")>-1){Je=Pe;break}else Pe=Pe.parentNode;var dt=0,Ze=0,Ce=0,Te=0,_e=0,rt=0,gt=0;if(Je)dt=Je.offsetWidth,Ze=Math.max(We?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(dt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ze=Math.min(window.innerHeight,document.documentElement.clientHeight),Ce=dt):(dt=window.innerWidth,Ze=window.innerHeight,Ce=window.innerWidth),Ee){var Pt=Ee.getBoundingClientRect();Pt.left>0&&Pt.left<=dt&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(_e=dt-Pt.width-Pt.left,rt=Ce<=480?10:30):(rt=Pt.left,_e=Ce<=480?10:30),Te=rt+_e)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ht=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te=0,gt=40)}}return Ee&&((De===void 0||!De)&&Be>0&&Be+Te1&&(he=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))Ie=E(Ee,Be,he,De,Ee.scaleContainerClass);else return We;return he&&(!Ee.hasOwnProperty("scale")||We===1)?Ie:Math.min(We,Ie)}function xe(Ee){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),De=Math.min(window.innerHeight,document.documentElement.clientHeight),We=Ee.getBoundingClientRect(),Ie=(Be-We.width)/2,he=(De-We.height)/2;he<0&&(he=0),Ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?Ee.style.left="40px":Ee.style.left=Ie+"px",Ee.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?Ee.style.top="40px":Ee.style.top=he+"px",Ee.style.left=Ie+"px")}function tt(Ee,Be){var De=Ee.querySelector(".appletParameters");if(De){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==De.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(De.parentElement&&/fullscreen/.test(De.parentElement.className))return;var We=Qe(Be,Ee);on()&&De.setAttribute("data-param-scale",We);for(var Ie=null,he=0;he=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(on){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(on){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(on){var $t=c[on];return $t==null?null:$t},r=d,webModule.__errFn=e}function B(){function on(Ee){var Be=Ee.lastIndexOf(rb);Be==-1&&(Be=Ee.length);var De=Ee.indexOf(sb);De==-1&&(De=Ee.length);var We=Ee.lastIndexOf(tb,Math.min(De,Be));return We>=O?Ee.substring(O,We+P):W}function $t(Ee){if(!Ee.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=Ee+vb,Ee=on(Be.src)}return Ee}function ne(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function E(){for(var Ee=o.getElementsByTagName(_),Be=O;BeO?Ee[Ee.length-P].href:W}function xe(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var tt=ne();return tt==W&&(tt=E()),tt==W&&(tt=Qe()),tt==W&&xe()&&(tt=on(o.location.href)),tt=$t(tt),tt}function C(on){return on.match(/^\//)||on.match(/^[a-zA-Z]+:\/\//)?on:webModule.__moduleBase+on}function D(){var on=[],$t=O,ne=[],E=[];function Qe(Ee){var Be=E[Ee](),De=ne[Ee];if(Be in De)return Be;var We=[];for(var Ie in De)We[De[Ie]]=Ie;throw r&&r(Ee,We,Be),null}if(__gwt_isKnownPropertyValue=function(Ee,Be){return Be in ne[Ee]},webModule.__getPropMap=function(){var Ee={};for(var Be in ne)ne.hasOwnProperty(Be)&&(Ee[Be]=Qe(Be));return Ee},webModule.__computePropValue=Qe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var xe;try{xe=Cb;var tt=xe.indexOf(Db);tt!=-1&&($t=parseInt(xe.substring(tt+P),$),xe=xe.substring(O,tt))}catch(Ee){}return webModule.__softPermutationId=$t,C(xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(on,$t,ne){"use strict";ne.d($t,{Ax:function(){return tt},Ds:function(){return Ee},KI:function(){return De},SI:function(){return xe},f1:function(){return Qe}});var E=ne(14185);function Qe(We){let Ie=!0;if(We.length>0){for(let he=0;heE.createElement(E.Fragment,null,gt!==ht?(Pt==null?void 0:Pt.length)>0?E.createElement(xe.default,{className:"edit-tag",key:Pt,closable:!(Je===0&&ht===0),onClose:it=>{it.preventDefault(),(Ce==null?void 0:Ce.length)===1&&ht===0?this.props.deleteChildAnswermain(Je,ht):this.props.deleteChildAnswer(Je,ht)}},E.createElement("span",{onDoubleClick:it=>{this.setState({EditInputIndex:ht}),it.preventDefault()}},Pt)):E.createElement(Qe.default,{defaultValue:Pt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:it=>{if(it.target.value.replaceAll(" ","").length<=0){tt.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Pe(Je,ht,it.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):E.createElement(Qe.default,{defaultValue:Pt,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:it=>{if(it.target.value.replaceAll(" ","").length<=0){tt.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Pe(Je,ht,it.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!rt&&E.createElement(xe.default,{className:"site-tag-plus",onClick:()=>{dt(Je),this.setState({inputVisible:!0})}},E.createElement(Be.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Ie=We},74072:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ze}});var E=ne(59301),Qe=ne(39116),xe=Object.defineProperty,tt=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ie=(Ce,Te,_e)=>Te in Ce?xe(Ce,Te,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Ce[Te]=_e,he=(Ce,Te)=>{for(var _e in Te||(Te={}))De.call(Te,_e)&&Ie(Ce,_e,Te[_e]);if(Be)for(var _e of Be(Te))We.call(Te,_e)&&Ie(Ce,_e,Te[_e]);return Ce},Je=(Ce,Te)=>tt(Ce,Ee(Te)),Pe=(Ce,Te,_e)=>Ie(Ce,typeof Te!="symbol"?Te+"":Te,_e);const dt="\u2581";class Ze extends E.Component{constructor(){super(...arguments),Pe(this,"getChCountBeforeCursor",(Te,_e)=>{const rt=_e.line;let gt=0;for(let ht=0;ht{const rt=Te.getRange(_e.from,_e.to);let gt=0;if(_e.text.forEach(Pt=>{gt+=Pt.split(dt).length-1}),rt&&rt.indexOf(dt)!=-1){const Pt=rt.split(dt).length-1,ht=this.getChCountBeforeCursor(Te,_e.from);console.log(`\u5220\u9664${Pt}\u4E2A\uFF0C \u4E4B\u524D\u6709${ht}\u4E2A\uFF0C\u65B0\u589E${gt}\u4E2A`),this.props.deleteEmptyDisabled?_e.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(ht,Pt,gt)}else if(gt){const Pt=this.getChCountBeforeCursor(Te,_e.from);console.log(`\u65B0\u589E${gt}\u4E2A\uFF0C\u4E4B\u524D\u6709${Pt}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(Pt,0,gt)}})}render(){return E.createElement(Qe.Z,Je(he({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},40254:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Je}});var E=ne(59301),Qe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},xe=ne(92310),tt=ne.n(xe),Ee=ne(29787),Be=ne(2859),De=ne(49317),We=ne(76406),Ie=(Pe,dt,Ze)=>new Promise((Ce,Te)=>{var _e=Pt=>{try{gt(Ze.next(Pt))}catch(ht){Te(ht)}},rt=Pt=>{try{gt(Ze.throw(Pt))}catch(ht){Te(ht)}},gt=Pt=>Pt.done?Ce(Pt.value):Promise.resolve(Pt.value).then(_e,rt);gt((Ze=Ze.apply(Pe,dt)).next())}),Je=({data:Pe,className:dt,fullWidth:Ze,style:Ce={},onClose:Te,onOk:_e,showFullTools:rt,noAssociationId:gt})=>{const Pt=(0,E.useRef)(null),ht=(0,E.useRef)(null),it=(0,E.useRef)(null),nt=(0,E.useRef)(null),[Fe,kt]=(0,E.useState)(!1),[lt,et]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(it.current||(it.current=document.createElement("style"),document.head.appendChild(it.current)),Pe!=null&&Pe.visible?(document.body.setAttribute("data-custom","y-hidden"),it.current.innerHTML=" html { overflow-y: hidden; }",Pe!=null&&Pe.src&&St()):(document.body.removeAttribute("data-custom"),it.current&&(document.head.removeChild(it.current),it.current=null)),()=>{document.body.removeAttribute("data-custom"),it.current&&(document.head.removeChild(it.current),it.current=null)}),[Pe==null?void 0:Pe.visible]);const St=()=>Ie(void 0,null,function*(){kt(!0),et("\u6B63\u5728\u52A0\u8F7D\u4E2D");const se=yield(0,We.ZJ)(Pe==null?void 0:Pe.src);Pt.current.src="",Pt.current.src=se,Pt.current.onload=function(){ze()},kt(!1),et("")}),Me=se=>Ie(void 0,null,function*(){kt(!0),et("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qe=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Pe.title,file:se.dataUrl}});qe!=null&&qe.id&&!gt?(yield(0,De.ZP)(`/api/attachments/${Pe.id}/add_subitem.json`,{method:"post",body:{subitem_id:qe==null?void 0:qe.id,settings:JSON.stringify(se.state)}})).status===0&&_e():qe!=null&&qe.id&&_e(qe),kt(!1),et("")}),Ke=()=>{const se=document.querySelector('a[href="https://markerjs.com/"]');se&&se.parentNode&&(se.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(Le=>{const Ae=document.querySelector(Le.name);Ae&&Ae.setAttribute("title",Le.title)})},ze=()=>{ht.current=new Be.hP(Pt.current),ht.current.targetRoot=nt.current,ht.current.addEventListener("render",Me),ht.current.addEventListener("beforeclose",Te),rt&&(ht.current.availableMarkerTypes=ht.current.ALL_MARKER_TYPES,ht.current.uiStyleSettings.redoButtonVisible=!0,ht.current.uiStyleSettings.notesButtonVisible=!0,ht.current.uiStyleSettings.zoomButtonVisible=!0,ht.current.uiStyleSettings.zoomOutButtonVisible=!0,ht.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ht.current.uiStyleSettings,ht.current.show(),Pe!=null&&Pe.snapshotData&&ht.current.restoreState(Pe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ke()},300)};return E.createElement(E.Fragment,null,(Pe==null?void 0:Pe.visible)&&E.createElement(Ee.Z,{spinning:Fe,tip:lt,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:nt,className:tt()(Qe.imageDimensions,dt,Ze?Qe.fullWidth:""),style:Ce},E.createElement("img",{className:Qe.img,ref:Pt}))))}},9057:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(77019),xe=ne(5269),tt=ne(31691),Ee=ne(7939),Be=ne(35883),De=ne(74501),We=ne(48136),Ie=ne(59301);const he=(0,E.forwardRef)(({callback:Je,showSaveButton:Pe,value:dt=""},Ze)=>{const Ce=(0,E.useRef)(),Te=[{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 "}]}]}],_e=[{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}`}]}]}],rt=ht=>{Ce.current.setValue(Ce.current.getValue()+" "+ht.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(Qe.Z,{className:De.Z.lists,gutter:[10,10]},Te.map((ht,it)=>Ie.createElement(xe.Z,{flex:"110px",className:De.Z.item},Ie.createElement("div",null,Ie.createElement(Be.Z,{value:`$$${ht.value}$$`}),ht.name),Ie.createElement("div",{className:De.Z.children},ht.children.map((nt,Fe)=>Ie.createElement("div",{key:Fe},Ie.createElement("h1",null,nt.name),Ie.createElement(Qe.Z,{gutter:[10,10]},nt.data.map((kt,lt)=>Ie.createElement(xe.Z,{key:lt,onClick:()=>rt(kt),className:De.Z.diamond},Ie.createElement(Be.Z,{value:"`$$"+kt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(Qe.Z,{className:De.Z.lists,gutter:[10,10]},_e.map((ht,it)=>Ie.createElement(xe.Z,{flex:"110px",className:De.Z.item},Ie.createElement("div",null,Ie.createElement(Be.Z,{value:"`$$"+ht.value+"$$`"}),ht.name),Ie.createElement("div",{className:De.Z.children},ht.children.map((nt,Fe)=>Ie.createElement("div",{key:Fe},nt.name&&Ie.createElement("h1",null,nt.name),Ie.createElement(Qe.Z,{gutter:[10,10]},nt.data.map((kt,lt)=>Ie.createElement(xe.Z,{key:lt,onClick:()=>rt(kt),className:De.Z.diamond},Ie.createElement(Be.Z,{value:"`$$"+kt.value+"$$`"}))))))))))}],Pt=()=>{var ht=document.createElement("div");ht.innerHTML=Ce.current.getValue();var it=ht.innerText;return Je&&Je(it),it};return(0,E.useImperativeHandle)(Ze,()=>({getData:Pt})),Ie.createElement("div",{className:De.Z.mathWrap},Ie.createElement(tt.default,{defaultActiveKey:"1",items:gt}),Ie.createElement("math-field",{locale:"zh_cn",className:De.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ce,style:{width:800,marginTop:30,fontSize:18}},dt||""),Pe&&Ie.createElement("div",{className:De.Z.button},Ie.createElement(Ee.ZP,{size:"large",onClick:Pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});$t.Z=he},90736:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(4977),xe=ne(7939),tt=Object.defineProperty,Ee=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,he=(Ze,Ce,Te)=>Ce in Ze?tt(Ze,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ze[Ce]=Te,Je=(Ze,Ce)=>{for(var Te in Ce||(Ce={}))We.call(Ce,Te)&&he(Ze,Te,Ce[Te]);if(De)for(var Te of De(Ce))Ie.call(Ce,Te)&&he(Ze,Te,Ce[Te]);return Ze},Pe=(Ze,Ce)=>Ee(Ze,Be(Ce));const dt=({img:Ze,buttonProps:Ce={},styles:Te={},customText:_e,ButtonText:rt,ButtonClick:gt,Buttonclass:Pt,ButtonTwo:ht,imgStyles:it,loading:nt=!1,className:Fe=""})=>E.createElement("section",{className:`tc animated fadeIn ${Fe}`,style:Je({color:"#999",margin:"100px auto",visibility:nt?"hidden":"visible"},Te)},E.createElement("img",{src:Ze||Qe,style:Pe(Je({},it),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},_e||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&E.createElement(xe.ZP,Je({className:Pt,onClick:gt},Ce),rt),ht&&ht);$t.Z=dt},86974:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Pt}});var E=ne(59301),Qe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},xe=ne(7939),tt=ne(70557),Ee=ne(34728),Be=ne(25399),De=ne(76406),We=ne(84849),Ie=ne(90736),he=ne(14185),Je=ne(52078),Pe=ne(59301),dt=Object.defineProperty,Ze=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,_e=(ht,it,nt)=>it in ht?dt(ht,it,{enumerable:!0,configurable:!0,writable:!0,value:nt}):ht[it]=nt,rt=(ht,it)=>{for(var nt in it||(it={}))Ce.call(it,nt)&&_e(ht,nt,it[nt]);if(Ze)for(var nt of Ze(it))Te.call(it,nt)&&_e(ht,nt,it[nt]);return ht},gt=(ht,it,nt)=>new Promise((Fe,kt)=>{var lt=Me=>{try{St(nt.next(Me))}catch(Ke){kt(Ke)}},et=Me=>{try{St(nt.throw(Me))}catch(Ke){kt(Ke)}},St=Me=>Me.done?Fe(Me.value):Promise.resolve(Me.value).then(lt,et);St((nt=nt.apply(ht,it)).next())}),Pt=({editOffice:ht="view",data:it,issaver:nt,onSaver:Fe,theme:kt,type:lt,filename:et,monacoEditor:St,className:Me,style:Ke,close:ze,onClose:se,hasMask:qe,disabledDownload:Le,onImgDimensions:Ae,showNodata:ct,recordInfo:ye})=>{const[ce,Ue]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[It,bt]=(0,E.useState)(""),[ge,He]=(0,E.useState)(),Ge=window.ENV==="build"?"/react/build":"",Tt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Lt=10*(1024*1024),$e=(0,E.useRef)();it!=null&&it.startsWith("/api")&<!=="txt"&&(it=he.Z.API_SERVER+it);const At=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();et&&St&&(St.filename=et),(0,E.useEffect)(()=>{var ue,re;const ve=(re=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:re.split(";");ve==null||ve.map(we=>{let ft=we.split("=");ft[0]==="_educoder_session"&&bt(ft[1])})},[]),(0,E.useEffect)(()=>{lt==="office"&&(it.indexOf("bigfilescdn.")>-1||it.indexOf("bigfiles1")>-1?He({url:it,fileType:At(it),model:it.indexOf("model=edit")?"edit":"view"}):it.indexOf("coze")>-1?He({url:it,fileType:"doc",model:"view"}):ae())},[lt,it]);function st(ue){return gt(this,null,function*(){ue.data.type==="pdfdata"&&(Fe(ue.data.data),window.removeEventListener("message",st,!1)),console.log("mess---:",ue.data)})}const ae=()=>gt(void 0,null,function*(){console.log("data:",it);let ue=it;it.startsWith("http")||(ue=location.origin+ue);let re=new URL(ue).pathname.split("/").pop();const ve=yield(0,We.gJ)({attachment_id:re});ve.url=Tt+ve.url,He(ve)}),te=()=>{if(it.startsWith("http")||it.startsWith("blob:")){ee();return}(0,De.Sv)(et||"educoder",it,et)},ee=()=>{ye&&(0,Je.fc)({id:ye==null?void 0:ye.id,watch_type:1,course_id:ye==null?void 0:ye.course_id}),(0,De.Nd)(et||"educoder",decodeURIComponent(it))};(0,E.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ue=>{var re;((re=ue==null?void 0:ue.data)==null?void 0:re.type)==="closePop"&&se()};return Pe.createElement("div",{style:rt({},Ke||{}),className:`${qe&&Qe.bgBlack} ${lt?Qe.wrp:"hide"}`},!!lt&&ze&&Pe.createElement("div",{id:"closePop",className:Qe.close,ref:$e},!!Ae&&Pe.createElement(Be.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>$e.current},Pe.createElement("span",{onClick:()=>{se(),Ae()}},Pe.createElement("i",{className:"icon-yulanpizhu"}))),!Le&&window.parent===window&&Pe.createElement(Be.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>$e.current},Pe.createElement("span",{onClick:ee},Pe.createElement("i",{className:"icon-quxiaozhiding"}))),nt&&Pe.createElement(Be.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>$e.current},Pe.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",st,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},Pe.createElement("i",{className:"icon-baocun"}))),Pe.createElement(Be.Z,{title:"\u5173\u95ED",getPopupContainer:()=>$e.current},Pe.createElement("span",{className:"",onClick:()=>{se()}},Pe.createElement("i",{className:"icon-guanbi1"})))),Pe.createElement("div",{className:`${Qe[Me]} ${Me} ${Qe.monaco} ${lt==="txt"?"show":"hide"}`},lt==="txt"&&Pe.createElement(Pe.Fragment,null,Pe.createElement(Ee.ZP,rt({},St)))),lt==="audio"&&Pe.createElement("audio",{controls:!0,src:`${(it==null?void 0:it.indexOf("http://"))>-1||(it==null?void 0:it.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${it}`,autoPlay:!0}),lt==="video"&&Pe.createElement(Pe.Fragment,null,(it==null?void 0:it.indexOf("http"))>-1?Pe.createElement("video",{controls:!0,src:`${it}`,autoPlay:!0}):Pe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${it}`,autoPlay:!0})),lt==="office"&&ge&&Pe.createElement("iframe",{src:`${Ge}/office.html?key=${ge.key}&url=${btoa(ge.url)}&callbackUrl=${Tt+(ge.callbackUrl||"")}&fileType=${ge.fileType}&title=${ge.title||""}&model=${ht}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Le}`}),lt==="html"&&Pe.createElement("iframe",{src:it+"&disposition=inline"}),lt==="pdf"&&Pe.createElement("iframe",{id:"pdfiframe",src:`${Ge}/js/pdf/index.html?filename=${et||"educoder.pdf"}&url=${encodeURIComponent(it)}&disabledDownload=${!!Le}&model=${ht}`}),lt==="image"&&Pe.createElement("img",{src:`${(it==null?void 0:it.indexOf("http://"))>-1||(it==null?void 0:it.indexOf("https://"))>-1?"":"data:image/png;base64,"}${it}`}),(lt==="other"||lt==="download")&&Pe.createElement(Pe.Fragment,null,ct?Pe.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Pe.createElement(xe.ZP,{icon:Pe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Le},"\u4E0B\u8F7D")}):Pe.createElement(xe.ZP,{type:"primary",size:"middle",onClick:te,disabled:Le},Pe.createElement(tt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),lt==="flowChart"&&Pe.createElement("div",{className:"embed"},Pe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${it||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(on,$t,ne){"use strict";ne.d($t,{z:function(){return St},Z:function(){return Me}});var E=ne(59301),Qe=ne(46214),xe=ne(20047),tt=ne(64018),Ee=ne(16471),Be=ne(14185),De=ne(76406),We=ne(15342),Ie=ne(44104),he=ne(7939),Je=ne(1012),Pe=ne(86974),dt=ne(59301),Ce=({html:Ke})=>{const ze=(0,E.useRef)(null),se=(0,E.useRef)(null),qe=`.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,E.useEffect)(()=>{const Le=ze.current.attachShadow({mode:"open"});se.current=document.createElement("div"),se.current.className="markdown-body",se.current.innerHTML=Ke,Le.appendChild(se.current);const Ae=document.createElement("style");return Ae.textContent=qe,Le.appendChild(Ae),()=>{Le.innerHTML=""}},[]),(0,E.useEffect)(()=>{se.current&&(se.current.innerHTML=Ke)},[Ke]),dt.createElement("div",{ref:ze})};function Te(Ke){const ze=["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"],se=new RegExp(`\\b(${ze.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),qe=/]*>/gi;return Ke.replace(se,"").replace(qe,"").trim()}var _e={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},rt=Object.defineProperty,gt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,it=(Ke,ze,se)=>ze in Ke?rt(Ke,ze,{enumerable:!0,configurable:!0,writable:!0,value:se}):Ke[ze]=se,nt=(Ke,ze)=>{for(var se in ze||(ze={}))Pt.call(ze,se)&&it(Ke,se,ze[se]);if(gt)for(var se of gt(ze))ht.call(ze,se)&&it(Ke,se,ze[se]);return Ke};const Fe="@\u2581\u2581@",kt="@\u2581@",lt=/]*>/g;function et(Ke){let ze=document.createElement("div");return ze.innerHTML=Ke,ze.childNodes.length===0?"":ze.childNodes[0].nodeValue}const St=(Ke,ze)=>{Ke=Ke||"";const se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,qe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Le=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ae=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ze?Ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(se,(ct,ye,ce,Ue,It,bt,ge)=>{const He=ye||Ue||bt,Ge=ce||It||ge||"?";return Be.Z.API_SERVER+"/api/attachments/"+He+Ge+"&t="+(0,De.Jn)(He,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ke=Ke.replace(Ae,(ct,ye,ce,Ue,It,bt,ge)=>{const He=ye||Ue||bt,Ge=ce||It||ge||"?";return Be.Z.API_SERVER+"/attachments/download/"+He+Ge+"&t="+(0,De.Jn)(He,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replace(se,(ct,ye,ce,Ue,It,bt,ge)=>{const He=ye||Ue||bt,Ge=ce||It||ge||"?";return Be.Z.API_SERVER+"/api/attachments/"+He+Ge+"&t="+(0,De.Jn)(He,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replace(qe,(ct,ye,ce,Ue,It)=>{const bt=ye||Ue,ge=ce||It||"";return'"'+Be.Z.API_SERVER+"/api/attachments/"+bt+ge+bt+ge+"&t="+(0,De.Jn)(bt,Date.now())}).replace(Le,(ct,ye,ce,Ue,It)=>{const bt=ye||Ue,ge=ce||It||"";return"("+Be.Z.API_SERVER+"/files/uploads/"+bt+ge+bt+ge+"&t="+(0,De.Jn)(bt,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,` `),Ke)};var Me=({value:Ke="",edit:ze=!1,className:se,showTextOnly:qe,showLines:Le,style:Ae={},stylesPrev:ct={},highlightKeywords:ye,showProgramFill:ce,isProgramFill:Ue,disabledFill:It=!1,programFillValue:bt,openEditor:ge=()=>{},onFillChange:He=wt=>{},onFillBlur:Ge=()=>{},onFillFocus:Tt=()=>{}})=>{let wt=Te(String(Ke||""));const Lt=(0,E.useRef)(),$e=(0,E.useRef)(),[At,st]=(0,E.useState)(""),[ae,te]=(0,E.useState)("office"),[ee,oe]=(0,E.useState)([]),ue=(0,E.useRef)("a"+(0,Je.Z)()),re={},ve=Dt=>//i.test(Dt||""),we=(Dt,tn,Vt)=>{const je=document.createElement(Dt===kt?"input":"textarea");je.style.width="100%",je.style.height=Dt===kt?"40px":"151px",je.rows=5,je.spellcheck=!1,je.name="edu-program-fill",je.placeholder="\u8BF7\u8F93\u5165",je.dataset.id=tn;const pt=Object.keys(re).length;return re[pt]=je,`${je.outerHTML}`};function ft(Dt){return Dt=Dt.replace(/!\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(/\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(new RegExp("","gs"),""),Dt=Dt.replace(//g,""),Dt=Dt.replace(//g,""),Dt=Dt.replace(new RegExp(".*?<\\/video>","gs"),""),Dt=Dt.replace(new RegExp(".*?<\\/audio>","gs"),""),Dt=Dt.replace(new RegExp(".*?<\\/style>","gs"),""),Dt=Dt.replace(new RegExp(".*?<\\/script>","gs"),""),Dt}const Oe=Dt=>!qe&&ve(wt)?Dt:Dt.replace(/([\s\S]+?)<\/style>/gim,function(tn,Vt){let je=Vt.replace(/(\n|\r)/g,"").split("}"),pt=[];return je.map(Ft=>{Ft!=""&&pt.push(`.${ue.current} ${Ft}`)}),``}),Ye=(0,E.useMemo)(()=>{(0,xe.Iy)();try{const je=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ft=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,jt=/\(\/attachments\/download\//g;wt=wt.replace(jt,"("+Be.Z.API_SERVER+"/attachments/download/").replace(je,"("+Be.Z.API_SERVER+"/api/attachments/").replace(pt,'"'+Be.Z.API_SERVER+"/api/attachments/").replace(Ft,'"'+Be.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,` `),Lt.current.style.display="none"}catch(je){}if(ce){let je=-1;return wt=wt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(pt,Ft,jt){var Ne;return++je,we(pt,je,(Ne=bt==null?void 0:bt[je])==null?void 0:Ne.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Oe(wt||"")}
`}let Dt=Oe(wt);Dt=(0,xe.ZP)(Dt);const tn=(0,xe.ez)();wt.match(/\[TOC\]/)&&(Dt=Dt.replace("

[TOC]

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

${Nr||

`):xt.replaceSelection(`${Nr||`):((Br=Fr==null?void 0:Fr.type)==null?void 0:Br.indexOf("video"))>-1?xt.replaceSelection(``):((Tr=Fr==null?void 0:Fr.type)==null?void 0:Tr.indexOf("pdf"))>-1?xt.replaceSelection(`${Fr.name}`):kn.includes(Ui)?xt.replaceSelection(`${Fr.name}`):xt.replaceSelection(`[${Fr.name}](${Ar})`),xt.focus();case Vt:const{row:qr,col:Ti,align:Ni}=vn;let Wi=` `;for(let bi=0;bi{switch(Hn){case Ht:return E.createElement(It,{callback:wr,onCancel:Or});case tn:return E.createElement(bt.Z,{callback:wr,onCancel:Or});case ln:return E.createElement(ge.Z,{callback:wr,onCancel:Or});case qt:return E.createElement(oe,{editImgId:sr.current,callback:wr,onCancel:Or});case Vt:return E.createElement(Oe,{callback:wr,onCancel:Or});case"maths-latex":return E.createElement(Ut,{showSaveButton:!0,callback:wr});case"inline-latex":return E.createElement(Wt.Z,{showSaveButton:!0,callback:wr});default:return null}},[Hn]);function Or(){Ln("")}(0,E.useEffect)(()=>{if(Jn.current){let vn=function(Br){vr=!0,kr=Br.pageY},yn=function(){vr=!1},jn=function(Br){if(vr){let Tr=Br.pageY-kr;Tr<0&&(Tr=0),Tr>300&&(Tr=300);let Ar=en+Tr+"px";rr(Ar)}},Wn=Jn.current,vr=!1,kr=0;return Wn.addEventListener("mousedown",vn),document.addEventListener("mousemove",jn),document.addEventListener("mouseup",yn),()=>{Wn.removeEventListener("mousedown",vn),document.removeEventListener("mousemove",jn),document.removeEventListener("mouseup",yn)}}},[xt,Jn]),(0,E.useEffect)(()=>{rr(en)},[en]);const _r=un(nn),xr=un(or),ur={width:_r,height:xr},pn=(0,E.useMemo)(()=>{if(Rn){let vn=new Date(Rn),yn=vn.getHours(),jn=vn.getMinutes(),Wn=vn.getSeconds();return yn=yn<10?"0"+yn:yn,jn=jn<10?"0"+jn:jn,Wn=Wn<10?"0"+Wn:Wn,`${yn}:${jn}:${Wn}`}return 0},[Rn]),In=vn=>{const yn=[];if(En){let jn=-1;vn=vn.replace(/(@▁▁@|@▁@)/g,function(Wn,vr,kr){yn.push({multiLine:Wn!==cn})})}return yn};function wn(){window.sessionStorage.removeItem(Qn),Un(!1),Zn(0)}function dn(){Un(!1),Zn(0),xt.setValue(window.sessionStorage.getItem(Qn))}(0,E.useEffect)(()=>{Rt[Hn]&&Hn!==sn&&Hn!==qt&&setTimeout(()=>{const vn=document.getElementsByClassName("markdown-popup-form")[0],yn=window.innerWidth/2-vn.offsetWidth/2,jn=window.innerHeight/2-vn.offsetHeight/2;Tn(yn),Vn(jn)},0)},[Hn]);const Gn=vn=>{vn.preventDefault();const yn=vn.clientX-Kn,jn=vn.clientY-mr;document.body.onmousemove=Wn=>{let vr=Wn.clientX-yn,kr=Wn.clientY-jn;const Br=document.getElementsByClassName("markdown-popup-form")[0],Tr=window.innerWidth-Br.offsetWidth,Ar=window.innerHeight-Br.offsetHeight;vr=Math.max(0,Math.min(vr,Tr)),kr=Math.max(0,Math.min(kr,Ar)),nr(Wn.clientX,Wn.clientY,yn,jn)&&(Tn(vr),Vn(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},nr=(vn,yn,jn,Wn)=>{const vr=document.body.clientHeight,kr=document.body.clientWidth;return vn<20&&jn>vn||vn>kr-20&&jnyn||yn>vr-20&&Wn{var yn;sr.current=vn,(yn=_n.current)==null||yn.setHeight("100vh"),setTimeout(()=>{Ln("add-flowchart")},150)}})):null))),zn?E.createElement("a",{ref:Jn,className:"editor-resize"}):null,Hn===sn&&E.createElement(Lt,{callback:wr,onCancel:Or}),Hn===qt&&E.createElement(oe,{ref:_n,editImgId:sr.current,callback:wr,onCancel:Or}),E.createElement(lt.Z,null,Rt[Hn]&&Hn!==sn&&Hn!==qt?E.createElement(He.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kn,top:mr},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Gn},Rt[Hn]),open:!0,onCancel:Or,footer:null,destroyOnClose:!0,width:Hn===qt?"1200px":null,height:Hn===qt?"80vh":null,className:"markdown-popup-form"},br):null))}},53332:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return nt},I:function(){return kt}});var E=ne(28284),Qe=ne(6767),xe=ne(37568),tt=ne(44104),Ee=ne(4875),Be=ne(47889),De=ne(7939),We=ne(23216),Ie=ne(59301),he=ne(59301),Je=Object.defineProperty,Pe=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,_e=(lt,et,St)=>et in lt?Je(lt,et,{enumerable:!0,configurable:!0,writable:!0,value:St}):lt[et]=St,rt=(lt,et)=>{for(var St in et||(et={}))Ce.call(et,St)&&_e(lt,St,et[St]);if(Ze)for(var St of Ze(et))Te.call(et,St)&&_e(lt,St,et[St]);return lt},gt=(lt,et)=>Pe(lt,dt(et));const{useForm:Pt}=E.default,ht={width:280,marginRight:10},it={labelCol:{span:5},wrapperCol:{span:19}};var nt=({callback:lt,onCancel:et})=>{const[St]=Pt();let Me=(0,Ie.useRef)();function Ke(qe){Me.current.width=St.getFieldValue("width"),Me.current.align=St.getFieldValue("align"),lt(qe,Me.current)}function ze(qe,Le){if(qe.status===-1){Qe.ZP.error(qe.message);return}St.setFieldsValue({src:`/api/attachments/${qe.id}`,type:Le.type})}function se(qe){let Le=qe.target.files[0];Me.current=Le,kt(Le,ze)}return he.createElement(E.default,gt(rt({form:St},it),{className:"upload-image-panel",onFinish:Ke,style:{width:470,overflow:"hidden"}}),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(xe.default,{style:ht})),he.createElement(Fe,{onFileChange:se}))),he.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(xe.default,{style:{width:264}})),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(tt.Z,null,he.createElement(E.default.Item,{name:"width",style:{margin:0}},he.createElement(Ee.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Be.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"}]})),he.createElement("aside",null,he.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(De.ZP,{type:"default",onClick:et},"\u53D6\u6D88"))))};function Fe({onFileChange:lt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:lt}))}function kt(lt,et){if(!lt)throw new String("\u6CA1\u6709\u6587\u4EF6");let St=new FormData;St.append("editormd-image-file",lt),St.append("file_param_name","editormd-image-file"),St.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(Ke){et(JSON.parse(Ke.target.responseText),lt)},!1),Me.addEventListener("error",function(Ke){console.error(Ke)},!1),Me.open("POST",`${We.KI}/api/attachments.json`),Me.send(St)}},88487:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return xe}});var E=ne(59301),Qe=ne(4676);class xe extends E.Component{constructor(Ee){super(Ee);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,Qe.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(on,$t,ne){"use strict";ne.d($t,{SV:function(){return Lt},ZP:function(){return wt}});var E=ne(59301),Qe=ne(76374);const xe={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"]},tt={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"]},Ee={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(` `)}]},Be={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(` `)}]},De={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 We=ne(53184),Ie=ne.n(We),he=($e,At,st)=>new Promise((ae,te)=>{var ee=re=>{try{ue(st.next(re))}catch(ve){te(ve)}},oe=re=>{try{ue(st.throw(re))}catch(ve){te(ve)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);ue((st=st.apply($e,At)).next())});const Je={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Pe=($e,At,st,ae)=>{const te=At.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:$e.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},dt=($e,At,st,ae)=>{$e.languages.registerCompletionItemProvider(At,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),ue={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:[...Pe($e,te,ee,ue),...st.map(we=>({label:we,kind:$e.languages.CompletionItemKind.Keyword,documentation:we,insertText:we,insertTextRules:$e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(we=>({label:we.label,kind:$e.languages.CompletionItemKind.Snippet,documentation:we.content,insertText:re.startsWith("#")?we.content.replace(/#/,""):we.content,insertTextRules:$e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var Ze=$e=>{Je.languages.forEach(At=>{$e.languages.registerDocumentFormattingEditProvider(At,{provideDocumentFormattingEdits(st){return he(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}]})}})}),dt($e,"java",tt.keywords,tt.quickKey),dt($e,"cpp",Ee.keywords,Ee.quickKey),dt($e,"c",xe.keywords,[]),dt($e,"python",Be.keywords,Be.quickKey),dt($e,"scala",De.keywords,De.quickKey)};const Ce="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Te=Object.defineProperty,_e=($e,At,st)=>At in $e?Te($e,At,{enumerable:!0,configurable:!0,writable:!0,value:st}):$e[At]=st,rt=($e,At,st)=>_e($e,typeof At!="symbol"?At+"":At,st);const gt=class _s{constructor(At,st,ae){this.placeholder=At,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)}};rt(gt,"ID","editor.widget.placeholderHint");var ht=gt,it=ne(96236),nt=ne(6767),Fe=ne(25399),kt=ne(78267),lt=ne(33156),et=ne(56102),St=Object.defineProperty,Me=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Le=($e,At,st)=>At in $e?St($e,At,{enumerable:!0,configurable:!0,writable:!0,value:st}):$e[At]=st,Ae=($e,At)=>{for(var st in At||(At={}))se.call(At,st)&&Le($e,st,At[st]);if(ze)for(var st of ze(At))qe.call(At,st)&&Le($e,st,At[st]);return $e},ct=($e,At)=>Me($e,Ke(At)),ye=($e,At)=>{var st={};for(var ae in $e)se.call($e,ae)&&At.indexOf(ae)<0&&(st[ae]=$e[ae]);if($e!=null&&ze)for(var ae of ze($e))At.indexOf(ae)<0&&qe.call($e,ae)&&(st[ae]=$e[ae]);return st},ce=($e,At,st)=>new Promise((ae,te)=>{var ee=re=>{try{ue(st.next(re))}catch(ve){te(ve)}},oe=re=>{try{ue(st.throw(re))}catch(ve){te(ve)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);ue((st=st.apply($e,At)).next())});function Ue($e){return/^\d+$/.test($e)?`${$e}px`:$e}function It(){}let bt=!1;const ge={"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 He($e=[]){let At=$e;if(Array.isArray($e)){for(let st=0;st<$e.length;st++){let ae=ge[$e[st]];if(ae)return ae}return At[0]}return ge[At]||At}let Ge=null;const Tt=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch($e){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",$e)}});var wt=$e=>{var At=$e,{width:st="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:ue={},overrideServices:re={},theme:ve="vs-dark",onEditBlur:we,isCopy:ft=!1,onSave:Oe,autoHeight:Ye=!1,forbidCopy:mt=!1,forbidCopyTips:Bt,onChange:Et=It,editorDidMount:Ut=It,onFocus:Wt=It,onBreakPoint:Ht=It,breakPointValue:ln=[],filename:qt="educoder.txt",errorLine:sn,errorContent:Dt="",highlightLine:tn,openBreakPoint:Vt=!1,placeholder:je="",showMiniMap:pt=!0}=At,Ft=ye(At,["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 jt=(0,E.useRef)(),Ne=(0,E.useRef)({}),ot=(0,E.useRef)(),yt=(0,E.useRef)(),Mt=(0,E.useRef)([]),Kt=(0,E.useRef)(!1),cn=(0,E.useRef)(),Dn=(0,E.useRef)(),kn=(0,E.useRef)(!1),[un,bn]=(0,E.useState)(!1);function fn(){let Nt;return jt.current&&(Nt=new Qe.Z(Qt=>{for(let En of Qt)(En.target.offsetHeight>0||En.target.offsetWidth>0)&&Ne.current.instance.layout()}),Nt.observe(jt.current)),Nt}function Gt(){nt.ZP.warning({content:decodeURIComponent(Bt||Ce),key:"monaco-editor-tip"})}const Rt=()=>{let Nt=Ne.current.instance;if(te!=null&&Nt&&un){const Qt=Nt.getModel();Qt&&te!==Qt.getValue()&&(bt=!0,Qt.setValue(te),Nt.layout(),bt=!1)}};(0,E.useEffect)(()=>{const Nt=lt.Z.subscribe("formatDocument",Qt=>{var En;let mn=Ne.current.instance;(En=mn==null?void 0:mn.getAction)==null||En.call(mn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Qt=>{Et(Qt)},Nt},[]),(0,E.useEffect)(()=>{var Nt;let Qt=Ne.current.instance;yt.current&&clearTimeout(yt.current),yt.current=setTimeout(()=>{Rt()},500),te&&(te!=null&&te.length)&&((Nt=Qt==null?void 0:Qt.updateOptions)==null||Nt.call(Qt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,un,Ne.current]),(0,E.useEffect)(()=>{if(sn&&Ne.current&&Ne.current.instance){let Qt=Ne.current.instance;Qt.changeViewZones(function(En){var mn=document.createElement("div");mn.style.padding="10px 20px",mn.style.width="calc(100% - 20px)",mn.className="my-error-line-wrp",mn.innerHTML=Dt,En.addZone({afterLineNumber:sn||11,heightInLines:3,domNode:mn})});var Nt={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}};Qt.addOverlayWidget(Nt),Qt.revealPositionInCenter({lineNumber:20,column:1})}},[sn,Ne.current,un]);const _t=(Nt="",Qt)=>{if(!Nt||Nt.trim()==="")return!0;const mn=Ne.current.instance.getModel().getLineTokens(Qt);let Xe=!1;for(let ut=0;ut<2;ut++)mn.getStandardTokenType(ut)===1&&(Xe=!0);return Xe};(0,E.useEffect)(()=>{var Nt;const Qt=(Nt=Ne.current)==null?void 0:Nt.instance;if(Qt&&un&&mt){const En=Qt.onDidBlurEditorWidget(()=>{kn.current=!1}),mn=Qt.onDidFocusEditorText(()=>{kn.current=!0});return()=>{En.dispose(),mn.dispose()}}},[Ne.current,un,mt]),(0,E.useEffect)(()=>{var Nt;if((Nt=Ne.current)!=null&&Nt.instance&&un&&Vt){let Qt=Ne.current.instance,En=Qt.getModel();if(!En)return;(()=>{var Ct;let Re=[],xt=[];const Jt=En.getAllDecorations();for(let On of Jt)On.options.className==="highlighted-line"&&(Re.push((Ct=On==null?void 0:On.range)==null?void 0:Ct.startLineNumber),xt.push(On==null?void 0:On.id));if(tn===Re[0])return;En.deltaDecorations(xt,[]);const gn=En.getLineCount();tn&&tn<=gn&&(Qt.deltaDecorations([],[{range:new Ge.Range(tn,1,tn,En.getLineMaxColumn(tn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Qt.revealLineInCenter(tn))})();const Xe=(Ct=!1)=>{var Re;let xt=[],Jt=[];const gn=En.getAllDecorations();for(let On of gn)On.options.linesDecorationsClassName==="breakpoints-select"&&(xt.push((Re=On==null?void 0:On.range)==null?void 0:Re.startLineNumber),Jt.push(On==null?void 0:On.id));if(Ct)return{lines:xt,ids:Jt};Ht(xt)},ut=Ct=>ce(void 0,null,function*(){let Re={range:new Ge.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield En.deltaDecorations([],[Re]),Xe()}),ke=Ct=>ce(void 0,null,function*(){let Re=[];const xt=Qt.getLineDecorations(Ct);for(let Jt of xt)Jt.options.linesDecorationsClassName==="breakpoints-select"&&Re.push(Jt.id);yield En.deltaDecorations(Re,[]),Xe()}),be=Ct=>{let Re=Qt.getLineDecorations(Ct);for(let xt of Re)if(xt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,kt.isEqual)(ln,Xe(!0).lines)){En.deltaDecorations(Xe(!0).ids,[]);const Ct=ln.map(Re=>({range:new Ge.Range(Re,1,Re,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));En.deltaDecorations([],Ct)}const fe=Qt.onDidChangeModelContent(Ct=>{let Re=Qt.getPosition();if(Re){let xt=Re.lineNumber;clearTimeout(Dn.current),Dn.current=setTimeout(()=>{_t(En.getLineContent(xt),xt)?ke(xt):be(xt)?(ke(xt),ut(xt)):Xe()},100)}}),pe=Qt.onMouseDown(Ct=>{var Re,xt,Jt;if(Ct.target.detail&&((Jt=(xt=(Re=Ct.target)==null?void 0:Re.element)==null?void 0:xt.className)!=null&&Jt.includes("line-numbers"))){let gn=Ct.target.position.lineNumber;if(_t(En.getLineContent(gn),gn))return;be(gn)?ke(gn):ut(gn)}}),Ve=Ct=>{let Re={range:new Ge.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Mt.current=Qt.deltaDecorations(Mt.current,[Re])},Xt=()=>{Mt.current=Qt.deltaDecorations(Mt.current,[])},rn=Qt.onMouseMove(Ct=>{var Re,xt,Jt;if(Xt(),Ct.target.detail&&((Jt=(xt=(Re=Ct.target)==null?void 0:Re.element)==null?void 0:xt.className)!=null&&Jt.includes("line-numbers"))){let gn=Ct.target.position.lineNumber;if(_t(En.getLineContent(gn),gn))return;Ve(gn)}}),Yt=Qt.onMouseLeave(()=>{Xt()});return()=>{fe.dispose(),pe.dispose(),rn.dispose(),Yt.dispose()}}},[Ne.current,un,ln,tn,Vt,ee]),(0,E.useEffect)(()=>{var Nt;(Nt=Ne.current)!=null&&Nt.instance&&Vt&&Ne.current.instance.setPosition({lineNumber:0,column:0})},[tn]);function Ot(){let Nt=Ne.current.instance;if(Nt){const Qt=Nt.getSelection(),En=Ne.current.pastePos||{},mn=new Ge.Range(En.startLineNumber||Qt.endLineNumber,En.startColumn||Qt.endColumn,En.endLineNumber||Qt.endLineNumber,En.endColumn||Qt.endColumn);setTimeout(()=>{Nt.executeEdits("",[{range:mn,text:""}])},300)}}function an(Nt){(window.navigator.platform.match("Mac")?Nt.metaKey:Nt.ctrlKey)&&Nt.keyCode==83&&(Nt.preventDefault(),Oe())}const nn=()=>{if(Ye&&Ne.current.instance){const Nt=Ne.current.instance.getContentHeight();Qn(Nt{if(!kn.current)return;const{keyCode:Qt,ctrlKey:En,metaKey:mn,target:Xe,type:ut}=Nt;return(ut==="paste"||(Qt===67||Qt===86)&&(mn||En))&&Xe.nodeName==="TEXTAREA"&&(Gt(),Nt.preventDefault()),!1};function Pn(Nt,Qt){var En=window.URL||window.webkitURL||window,mn=new Blob([Qt]),Xe=document.createElementNS("http://www.w3.org/1999/xhtml","a");Xe.href=En.createObjectURL(mn),Xe.download=Nt,en(Xe)}(0,E.useEffect)(()=>{nn()},[nn]),(0,E.useEffect)(()=>{jt.current&&!un&&Promise.all([ne.e(8909),ne.e(5977)]).then(ne.bind(ne,71448)).then(Nt=>{try{Ge=Nt,Ne.current.instance=Ge.editor.create(jt.current,{value:te,language:He(ee),theme:ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:pt||!1}},re);const Qt=Ne.current.instance;let Xe=[...it.BH._menuItems].find(fe=>fe[0]._debugName=="EditorContext")[1],ut=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ke=(fe,pe)=>{var Ve,Xt;let rn=fe._first;do pe.includes((Xt=(Ve=rn.element)==null?void 0:Ve.command)==null?void 0:Xt.id)&&fe._remove(rn);while(rn=rn.next)};if(Ut(Qt,Ge),setTimeout(()=>{nn(),Ne.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(qt||"educoder.txt",Qt.getValue())}})},500),Ne.current.subscription=Qt.onDidChangeModelContent(fe=>{Kt.current?clearTimeout(cn.current):(nn(),Et(Qt.getValue(),fe)),cn.current=setTimeout(()=>{Kt.current=!1},500)}),window.Monaco||Ze(Ge,He(ee)),mt&&(ke(Xe,ut),jt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",xn),window.removeEventListener("paste",xn),window.addEventListener("keydown",xn),window.addEventListener("paste",xn)),window.Monaco=Ge,we&&Qt.onDidBlurEditorWidget(()=>{we(Qt.getValue())}),Wt&&Qt.onDidFocusEditorText(()=>{mt&&Tt(),Wt(Qt.getValue())}),mt){Tt();try{Qt.onDidPaste(fe=>{const pe=Qt.getSelection(),Ve=Ne.current.pastePos||{},Xt=new Ge.Range(Ve.startLineNumber||pe.endLineNumber,Ve.startColumn||pe.endColumn,Ve.endLineNumber||pe.endLineNumber,Ve.endColumn||pe.endColumn);Qt.executeEdits("",[{range:fe.range,text:""}])})}catch(fe){}}let be=fn();return je&&typeof je=="string"&&new ht(je,Qt,Ge),bn(!0),()=>{const fe=Ne.current.instance;fe.dispose();const pe=fe.getModel();pe&&pe.dispose(),Ne.current.subscription&&Ne.current.subscription.dispose(),be.unobserve(jt.current)}}catch(Qt){}})},[]),(0,E.useEffect)(()=>{if(Ne.current.instance&&un)return document.addEventListener("keydown",an,!1),()=>{document.removeEventListener("keydown",an)}},[Oe,un]),(0,E.useEffect)(()=>{let Nt=Ne.current.instance;if(Nt&&un){let Qt=He(ee);Ge.editor.setModelLanguage(Nt.getModel(),Qt)}},[ee,un]),(0,E.useEffect)(()=>{Ne.current.instance&&un&&Ge.editor.setTheme(ve)},[ve,un]),(0,E.useEffect)(()=>{let Nt=Ne.current.instance;ot.current=ue,Nt&&un&&(Nt.updateOptions(Ae({},ue)),setTimeout(()=>{Nt.getModel().updateOptions(Ae({},ue))},200))},[JSON.stringify(ue),un]),(0,E.useEffect)(()=>{let Nt=Ne.current.instance;Nt&&un&&Nt.layout()},[st,ae,un]);const[Cn,Nn]=(0,E.useState)(Ue(st)),[An,Qn]=(0,E.useState)(Ue(ae)),zn=ct(Ae({},oe),{width:Cn,height:An,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:jt,style:zn,onFocus:()=>{mt&&Tt()}},ft&&E.createElement(et.CopyToClipboard,{text:te,onCopy:()=>nt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Fe.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Lt({width:$e="100%",height:At="100%",original:st,modified:ae,language:te,options:ee={}}){const oe=(0,E.useRef)(),[ue,re]=(0,E.useState)(null);function ve(Ye){let mt;return oe.current&&(mt=new Qe.Z(Bt=>{for(let Et of Bt)(Et.target.offsetHeight>0||Et.target.offsetWidth>0)&&Ye.layout()}),mt.observe(oe.current)),mt}(0,E.useEffect)(()=>(oe.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(Ye=>{Ge=Ye;const mt=Ge.editor.createDiffEditor(oe.current,ct(Ae({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(mt);let Bt=ve(mt);return()=>{mt.dispose();const Et=mt.getModel();Et&&Et.dispose(),Bt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{ue&&ue.setModel({original:Ge.editor.createModel(st,te),modified:Ge.editor.createModel(ae,te)})},[st,ae,te,ue]);const we=Ue($e),ft=Ue(At),Oe={width:we,height:ft};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:Oe})}},54077:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Je}});var E={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"},Qe=ne(29787),xe=ne(25399),tt=ne(89787),Ee=ne(92310),Be=ne.n(Ee),De=ne(76406),We=ne(90736),Ie=ne(59301),Je=({className:Pe,dataSource:dt=[],col:Ze=4,right:Ce,bottom:Te=23,precision:_e=0,wrapWidth:rt=1200,trackEventItems:gt,loading:Pt,onRemove:ht=()=>{},isCurrent:it=!0,showProgress:nt=!1,showAlias:Fe=!1,category:kt="notDisplay",hiddenClick:lt=()=>{}})=>{const et=Math.floor((rt-(Ze-1)*Ce)/Ze),St=[{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(Qe.Z,{spinning:Pt},Ie.createElement("div",{className:Be()(E.list,Pe)},!!(dt!=null&&dt.length)&&(dt==null?void 0:dt.map((Me,Ke)=>{var ze,se,qe,Le,Ae,ct,ye;const{name:ce,id:Ue,identifier:It,featured:bt,school_name:ge,image_url:He,excellent:Ge,is_plan:Tt}=Me;return Ie.createElement("div",{key:Ue,className:it&&nt?E.wrapisCurrent:E.wrap,style:{width:et,marginRight:(1+Ke)%Ze===0?0:Ce+_e,marginBottom:Te}},Ie.createElement("a",{className:E.li,onClick:wt=>{wt.preventDefault(),wt.stopPropagation(),gt&&(0,De.L9)([gt]),(0,De.xg)(`/paths/${It}`)}},Ie.createElement("div",{className:E.img},Ie.createElement("img",{className:E.cover,src:`${He}`}),(ze=Me==null?void 0:Me.subject_tags)==null?void 0:ze.map((wt,Lt)=>{var $e,At;if(Lt===0){const ae=($e=St.find(te=>te.name==wt))==null?void 0:$e.swclass;return Ie.createElement("span",{className:`sprite ${ae} ${E.sign}`,style:{left:"-4px"}})}const st=(At=St.find(ae=>ae.name==wt))==null?void 0:At.ptclass;return Ie.createElement("span",{className:`sprite ${st} ${E.sign}`,style:{left:`${48+52*(Lt-1)+2*Lt}px`}})}),Ie.createElement("div",{className:E.tagsDom},Ie.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Me==null?void 0:Me.excellent)&&Ie.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((se=Me==null?void 0:Me.custom_tags)==null?void 0:se.length)>0&&(Me==null?void 0:Me.custom_tags.map((wt,Lt)=>{var $e;return Ie.createElement(xe.Z,{title:wt==null?void 0:wt.tag_name,key:Lt},Ie.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:(($e=Me==null?void 0:Me.custom_tags)==null?void 0:$e.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e"},wt==null?void 0:wt.tag_name)))})))),kt=="hide"&&(Me==null?void 0:Me.studying)&&it&&Ie.createElement("div",{className:`${E.movebq} user-path-items`,onClick:wt=>{wt.stopPropagation(),ht(Me)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(kt)&&it&&Ie.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:wt=>{wt.stopPropagation(),lt(Me)}},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:E.name},Ie.createElement(xe.Z,{title:Fe&&(Me!=null&&Me.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ce}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):ce},Ie.createElement("span",{className:E.e},Fe&&(Me==null?void 0:Me.excellent_alias_name)||ce))),it&&nt&&((qe=Me==null?void 0:Me.progress)==null?void 0:qe.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(tt.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Le=Me==null?void 0:Me.progress)==null?void 0:Le.my_score)/((Ae=Me==null?void 0:Me.progress)==null?void 0:Ae.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ct=Me==null?void 0:Me.progress)==null?void 0:ct.my_score,"/",(ye=Me==null?void 0:Me.progress)==null?void 0:ye.all_score),(!it||!nt)&&Ie.createElement(xe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ge}`},Ie.createElement("div",{className:E.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ge)),(!it||!nt)&&Ie.createElement("div",{className:E.tags},Ie.createElement("div",null,Ie.createElement(xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,Me.stages_count))),Ie.createElement(xe.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,Me.members_count)))))))})),!dt.length&&Ie.createElement(We.Z,null)))}},70467:function(on,$t,ne){"use strict";ne.d($t,{jL:function(){return tt},w9:function(){return ce},QD:function(){return ln},cQ:function(){return Ke.Z},op:function(){return mt},O5:function(){return fn},_b:function(){return je},t7:function(){return _e},Gi:function(){return Ge},YG:function(){return ge},qp:function(){return he},vr:function(){return Dt},qE:function(){return Ut},Je:function(){return Pt},wb:function(){return Me},cq:function(){return st},tp:function(){return dt}});var E=ne(59301),Qe={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"},tt=({dataSource:Gt=[],img:Rt,imgWidth:_t=346,title:Ot,sunTitle:an,bannerExtraContent:nn})=>E.createElement("div",{className:Qe.banner},E.createElement("div",{className:Qe.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Ot),E.createElement("span",null,an)),Gt.length>0&&E.createElement("div",{className:Qe.btns},Gt.map((en,xn)=>E.createElement("div",{key:xn,onClick:en.click},en.name,en.sign?E.createElement("span",{className:"sprite sprite-33"}):null))),nn),Rt&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:_t}))),Ee={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"},Be=ne(92310),De=ne.n(Be),We=ne(78267),he=({dataSource:Gt=[],value:Rt,onChange:_t,onTitleChange:Ot,className:an,title:nn,titleWidth:en=41,style:xn={},fontColor:Pn="#6A7283",showCount:Cn})=>{const[Nn,An]=(0,E.useState)(1),[Qn,zn]=(0,E.useState)(!1),Nt=(0,E.useRef)(null),Qt=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var En;Gt.length!==0&&(((En=Nt==null?void 0:Nt.current)==null?void 0:En.clientHeight)>97?An(1):An(0)),Gt.length===0&&An(0),zn(!1)},[Gt]),E.createElement("div",{className:De()(Ee.row,an,"fadeIn","animated"),style:xn},E.createElement("div",{onClick:(0,We.throttle)(()=>Ot==null?void 0:Ot(),2e3),style:{width:en,marginTop:Qn?12:4},className:`${Ee.title} ${Ot?"current":""}`},nn),E.createElement("div",{className:Qn?`${Ee.tagsWrap} ${Ee.tagsBorderWrap}`:Ee.tagsWrap},E.createElement("div",{className:Ee.bar,ref:Qt,style:Nn>0?{height:Nn===1?97:"auto",overflow:Nn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Ee.tag,ref:Nt},Gt==null?void 0:Gt.map(En=>E.createElement("span",{onClick:()=>_t(En.id),key:En.id,style:{color:Pn},className:Rt===En.id?Ee.active:""},E.createElement("span",{title:En.name,className:Ee.name},En.name),!!Cn&&E.createElement("span",{className:Ee.num},En.count))))),!!Nn&&E.createElement(E.Fragment,null,Nn===1?E.createElement("div",{onClick:()=>{var En;An(2),((En=Nt==null?void 0:Nt.current)==null?void 0:En.clientHeight)>245?zn(!0):zn(!1)},className:Ee.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{Qt.current.scrollTop=0,An(1),zn(!1)},className:Ee.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},dt=({dataSource:Gt=[],value:Rt,onChange:_t,className:Ot,style:an={}})=>E.createElement("div",{style:an,className:De()(Je.tabs,Ot)},Gt.map(nn=>E.createElement("span",{onClick:()=>_t(nn.id),className:Rt===nn.id?Je.active:"",key:nn.id},nn.name))),Ze={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"},Ce=ne(37568),_e=({dataSource:Gt=[],value:Rt="",onChange:_t,onInputChange:Ot=()=>{},className:an,style:nn={},placeholder:en,allowClear:xn=!1})=>{var Pn;const[Cn,Nn]=(0,E.useState)(""),[An,Qn]=(0,E.useState)("");(0,E.useEffect)(()=>{var Qt;let En=Rt;(Qt=JSON.stringify(Rt))!=null&&Qt.includes("{")&&(Nn(Rt.id),En=Rt.value||"");try{Qn(decodeURIComponent(En||""))}catch(mn){Qn(decodeURIComponent(En||""))}},[Rt]);const zn=()=>{_t(encodeURIComponent(An),Cn||null)},Nt=Qt=>{Qt!==Cn&&(Nn(Qt),_t(encodeURIComponent(An),Qt))};return E.createElement("div",{className:De()(Ze.input,an),style:nn},!!Gt.length&&E.createElement("div",{className:Ze.dropdown},E.createElement("div",{className:Ze.text},(Pn=Gt.find(Qt=>Qt.id===Cn))==null?void 0:Pn.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Ze.b1}),E.createElement("b",{className:Ze.b2})),E.createElement("div",{className:Ze.menu},Gt.map((Qt,En)=>E.createElement("div",{key:En,onClick:()=>Nt(Qt.id)},Qt.name)))),E.createElement(Ce.default,{onPressEnter:zn,value:An,onChange:Qt=>{Qn(Qt.target.value),Ot(encodeURIComponent(Qt.target.value),Cn||null)},placeholder:en,variant:"borderless",allowClear:xn,onClear:()=>_t("",Cn||null)}),E.createElement("i",{onClick:zn,className:"iconfont icon-sousuo9 font14 current"}))},rt={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"},Pt=({value:Gt,onChange:Rt,className:_t,total:Ot,pageSize:an,style:nn={}})=>{const en=Gt<2,xn=Gt>=Math.ceil(Ot/an);return Ot<=an?E.createElement(E.Fragment,null):E.createElement("div",{className:De()(rt.quickPager,_t),style:nn},E.createElement("div",{onClick:()=>{en||Rt(Gt-1,"prev")},className:en?rt.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{xn||Rt(Gt+1,"next")},className:xn?rt.disabled:""},"\u4E0B\u4E00\u9875"))},ht={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"},it=ne(29787),nt=ne(25399),Fe=ne(63139),kt=ne(14185),lt=ne(76406),et=ne(90736),Me=({className:Gt,dataSource:Rt=[],col:_t=4,right:Ot,bottom:an=23,precision:nn=0,wrapWidth:en=1200,trackEventItems:xn,loading:Pn})=>{const Cn=Math.floor((en-(_t-1)*Ot)/_t);return E.createElement(it.Z,{spinning:Pn},E.createElement("div",{className:De()(ht.list,Gt)},!!Rt.length&&Rt.map((Nn,An)=>{const{name:Qn,id:zn,identifier:Nt,power:Qt,cover_image_id:En,pic:mn}=Nn;return E.createElement("div",{className:ht.wrap,key:zn,style:{width:Cn,marginRight:(1+An)%_t===0?0:Ot+nn,marginBottom:an}},E.createElement("a",{target:"_blank",href:`/shixuns/${Nt}/challenges`,className:ht.li,onClick:Xe=>{Xe.preventDefault(),xn&&(0,lt.L9)([xn]),Qt&&(0,lt.xg)(`/shixuns/${Nt}/challenges`)}},E.createElement("div",{className:ht.img},E.createElement("img",{className:ht.cover,src:`${mn}`}),Nn.is_jupyter&&E.createElement("span",{className:`sprite sprite-43 ${ht.sign}`}),Nn.is_jupyter_lab&&E.createElement("span",{className:`sprite sprite-42 ${ht.sign}`}),Nn.is_unity_3d&&E.createElement("span",{className:`sprite sprite-44 ${ht.sign}`})),E.createElement("div",{className:ht.name},E.createElement(nt.Z,{title:Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:ht.e},Qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:ht.tags},E.createElement(nt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Nn.challenges_count))),!!Nn.myshixuns_count&&E.createElement(nt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Nn.myshixuns_count))),E.createElement(nt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Nn.level))),E.createElement("div",{className:ht.rate},E.createElement(Fe.Z,{allowHalf:!0,disabled:!0,defaultValue:Nn.score_info}),E.createElement("span",null,"\xA0",Nn.score_info?`${Nn.score_info}\u5206`:"5\u5206")))),!Qt&&E.createElement("div",{className:ht.lockWrap},E.createElement("img",{src:`${kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&E.createElement(et.Z,null)))},Ke=ne(54077),ze={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"},se=ne(62957),qe=ne(96599),Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ae=ne(59301),ct=(Gt,Rt,_t)=>new Promise((Ot,an)=>{var nn=Pn=>{try{xn(_t.next(Pn))}catch(Cn){an(Cn)}},en=Pn=>{try{xn(_t.throw(Pn))}catch(Cn){an(Cn)}},xn=Pn=>Pn.done?Ot(Pn.value):Promise.resolve(Pn.value).then(nn,en);xn((_t=_t.apply(Gt,Rt)).next())}),ce=({className:Gt,dataSource:Rt=[],col:_t=4,right:Ot,bottom:an=23,precision:nn=0,wrapWidth:en=1200,trackEventItems:xn,loading:Pn,category:Cn,hiddenClick:Nn,handleVery:An=()=>!0,isCurrent:Qn})=>{const[zn,Nt]=se.default.useModal(),Qt=Math.floor((en-(_t-1)*Ot)/_t),En=mn=>ct(void 0,null,function*(){zn.confirm({title:"\u7F6E\u9876",width:500,content:Ae.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Ae.createElement("span",{className:"c-blue"},"\u201C",mn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Ae.createElement(it.Z,{spinning:Pn},Nt,Ae.createElement("div",{className:De()(ze.list,Gt)},!!Rt.length&&Rt.map((mn,Xe)=>{const{subject_identifier:ut,id:ke,identifier:be,power:fe}=mn,pe=mn.is_public!=0&&mn.is_public;return Ae.createElement("div",{className:ze.wrap,key:ke,style:{width:Qt,marginRight:(1+Xe)%_t===0?0:Ot+nn,marginBottom:an}},mn.homepage_show&&Ae.createElement("div",{className:ze.btnsTop},Ae.createElement(qe.default,{color:"red"},"\u7F6E\u9876")),Ae.createElement("a",{className:ze.li,onClick:Ve=>{Ve.preventDefault(),An(mn==null?void 0:mn.first_category_url)&&(xn&&(0,lt.L9)([xn]),(0,lt.xg)(mn.first_category_url))}},Ae.createElement("div",{className:ze.top},Ae.createElement(nt.Z,{title:mn.name},Ae.createElement("div",{className:ze.name},mn.name)),Ae.createElement("img",{className:ze.img,src:kt.Z.IMG_SERVER+"/images/"+mn.avatar_url}),Ae.createElement("div",{className:ze.text,title:mn.creator},mn.creator),ut&&Ae.createElement("div",{className:ze.btns},Ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),pe&&Ae.createElement("div",{className:ze.sign},"\u516C\u5F00"),Qn&&Ae.createElement("div",{className:ze.hidden,onClick:Ve=>{Ve.stopPropagation(),Nn(mn)}},Ae.createElement("i",{className:`iconfont ${Cn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Cn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Ae.createElement("div",{className:ze.bottom},mn.visits>0&&Ae.createElement(nt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-liulanyan"}),Ae.createElement("span",null,mn.visits))),mn.course_members_count>0&&Ae.createElement(nt.Z,{title:"\u6210\u5458",placement:"bottom"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-chengyuan"}),mn.course_members_count)),mn.tasks_count>0&&Ae.createElement(nt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-zuoye"}),mn.tasks_count)),mn.is_end?Ae.createElement("div",{style:{color:"#6B758B"}}):Ae.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!mn.is_accessible&&Ae.createElement("div",{className:ze.lockWrap},Ae.createElement("img",{src:`${kt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rt.length&&Ae.createElement(et.Z,null)))},Ue={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"},It=ne(44283),ge=({dataSource:Gt=[],value:Rt,onChange:_t,className:Ot,style:an={},tabBarExtraContent:nn})=>E.createElement("div",{className:De()(Ue.tabs,Ot),style:an},E.createElement("div",{className:Ue.tabsWrap},Gt.map((en,xn)=>!(en!=null&&en.hide)&&E.createElement("aside",{className:Ue.tab,onClick:()=>{_t(en.id),en.link&&It.history.push(en.link)},key:xn},E.createElement("div",{className:Rt===en.id?Ue.active:""},en.name),(en==null?void 0:en.resetCount)==null&&(en==null?void 0:en.total)!==void 0&&E.createElement("span",null,"\uFF08",en==null?void 0:en.total,"\uFF09"),(en==null?void 0:en.resetCount)!==void 0&&(en==null?void 0:en.total)!==void 0&&E.createElement(nt.Z,{title:(en==null?void 0:en.tip)!=null?en==null?void 0:en.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},en==null?void 0:en.resetCount),"/",E.createElement("span",null,en==null?void 0:en.total),"\uFF09"))))),E.createElement("div",{className:Ue.tabBar},nn)),Ge=({className:Gt,style:Rt={},children:_t})=>E.createElement("div",{className:De()(Gt),style:Rt},_t),Tt={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"},wt=ne(75727),Lt=ne(93041);const $e=[{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:Gt,dropValue:Rt,className:_t,onSort:Ot,onDrop:an,dataSource:nn=$e})=>{var en;return E.createElement("div",{className:De()(Tt.orderWrap,_t)},E.createElement(wt.Z,{dropdownRender:()=>E.createElement(Lt.default,null,nn.map((xn,Pn)=>E.createElement(Lt.default.Item,{key:Pn,onClick:()=>an(xn.id)},xn.name)))},E.createElement("span",{className:Tt.orderTextWrap},(en=nn.find(xn=>Rt===xn.id))==null?void 0:en.name)),E.createElement("span",{className:Tt.orderIconWrap},E.createElement("span",{className:Tt.orderAsc},E.createElement("i",{className:Gt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Tt.cursorPointer} ${Tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Tt.cursorPointer}`,onClick:()=>Ot(Gt==="asc"?"desc":"asc")})),E.createElement("span",{className:Tt.orderDesc},E.createElement("i",{className:Gt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Tt.cursorPointer} ${Tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Tt.cursorPointer}`,onClick:()=>Ot(Gt==="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,ue=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ve=(Gt,Rt,_t)=>Rt in Gt?ee(Gt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Gt[Rt]=_t,we=(Gt,Rt)=>{for(var _t in Rt||(Rt={}))ue.call(Rt,_t)&&ve(Gt,_t,Rt[_t]);if(oe)for(var _t of oe(Rt))re.call(Rt,_t)&&ve(Gt,_t,Rt[_t]);return Gt},ft=(Gt,Rt)=>{var _t={};for(var Ot in Gt)ue.call(Gt,Ot)&&Rt.indexOf(Ot)<0&&(_t[Ot]=Gt[Ot]);if(Gt!=null&&oe)for(var Ot of oe(Gt))Rt.indexOf(Ot)<0&&re.call(Gt,Ot)&&(_t[Ot]=Gt[Ot]);return _t},Oe=(Gt,Rt,_t)=>new Promise((Ot,an)=>{var nn=Pn=>{try{xn(_t.next(Pn))}catch(Cn){an(Cn)}},en=Pn=>{try{xn(_t.throw(Pn))}catch(Cn){an(Cn)}},xn=Pn=>Pn.done?Ot(Pn.value):Promise.resolve(Pn.value).then(nn,en);xn((_t=_t.apply(Gt,Rt)).next())}),mt=Gt=>{var Rt=Gt,{className:_t,style:Ot,children:an,loading:nn=!1,openLoading:en,onClick:xn=()=>{},size:Pn="middle",shape:Cn="round"}=Rt,Nn=ft(Rt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[An,Qn]=(0,E.useState)(!1);return E.createElement(te.ZP,we({onClick:(0,We.throttle)(zn=>Oe(void 0,null,function*(){en&&Qn(!0);try{yield xn(zn)}catch(Nt){console.log("error",Nt)}en&&Qn(!1)}),2e3,{leading:!0,trailing:!1}),className:De()(ae.btn,ae[`${Pn}-${Cn}`],_t),style:Ot,size:Pn,shape:Cn,loading:An||nn},Nn),an)},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"},Ut=({className:Gt,style:Rt,children:_t=null,onClick:Ot,title:an})=>E.createElement("div",{className:De()(Bt.head,Gt),style:Rt},E.createElement("span",{className:"primary-hover",onClick:Ot},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:an},an),E.createElement("div",{className:Bt.node},_t)),Wt={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"},ln=({confirmShow:Gt=!0,confirmTitle:Rt,confirmClick:_t,cancelShow:Ot=!0,cancelTitle:an,cancelClick:nn,className:en,style:xn,confirmLoading:Pn=!1})=>E.createElement("div",{className:De()(Wt.btns,en),style:xn},Gt&&E.createElement(te.ZP,{loading:Pn,onClick:_t,type:"primary",className:Wt.confirm},Rt),Ot&&E.createElement(te.ZP,{onClick:nn,className:Wt.cancel},an)),qt={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"},Dt=({className:Gt,style:Rt={},LeftContent:_t,children:Ot,RightContent:an})=>E.createElement("div",{className:De()(qt.fixedBottom,Gt),style:Rt},E.createElement("div",{className:qt.wrap},E.createElement("div",{className:qt.left},_t),E.createElement("div",{className:qt.center},Ot),E.createElement("div",{className:qt.right},an))),tn={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"},je=({className:Gt,style:Rt={},dataSource:_t=[]})=>E.createElement("div",{className:De()(tn.crumbs,Gt),style:Rt},_t.map((Ot,an)=>an<_t.length-1?E.createElement(E.Fragment,{key:an},Ot.path||Ot.onClick?E.createElement("span",{className:tn.hover,onClick:Ot!=null&&Ot.onClick?Ot.onClick:()=>It.history.push(Ot.path)},Ot.name):E.createElement("span",null,Ot.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:an,style:{color:"#5F6368"}},Ot.name))),pt=ne(11938),Ft=Object.defineProperty,jt=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Kt=(Gt,Rt,_t)=>Rt in Gt?Ft(Gt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Gt[Rt]=_t,cn=(Gt,Rt)=>{for(var _t in Rt||(Rt={}))yt.call(Rt,_t)&&Kt(Gt,_t,Rt[_t]);if(ot)for(var _t of ot(Rt))Mt.call(Rt,_t)&&Kt(Gt,_t,Rt[_t]);return Gt},Dn=(Gt,Rt)=>jt(Gt,Ne(Rt)),kn=(Gt,Rt)=>{var _t={};for(var Ot in Gt)yt.call(Gt,Ot)&&Rt.indexOf(Ot)<0&&(_t[Ot]=Gt[Ot]);if(Gt!=null&&ot)for(var Ot of ot(Gt))Rt.indexOf(Ot)<0&&Mt.call(Gt,Ot)&&(_t[Ot]=Gt[Ot]);return _t};const{Countdown:un}=pt.default;var fn=Gt=>{var Rt=Gt,{onChange:_t}=Rt,Ot=kn(Rt,["onChange"]);const[an,nn]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof an=="number"&&an>=0&&_t(an)},[an]);const en=xn=>{const Pn=Math.floor(xn/1e3);nn(Pn)};return E.createElement(un,Dn(cn({},Ot),{onChange:en}))}},79006:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Qe}});var E=ne(59301);function Qe(xe,tt){const Ee=(0,E.useRef)();(0,E.useEffect)(()=>{Ee.current=xe}),(0,E.useEffect)(()=>{function Be(){Ee.current()}if(tt!==null){let De=setInterval(Be,tt);return()=>clearInterval(De)}},[tt])}},6808:function(on,$t,ne){"use strict";ne.r($t),ne.d($t,{default:function(){return ke}});var E=ne(59301),Qe=ne(44283),xe=ne(93041),tt=ne(24404),Ee=ne(28284),Be=ne(6767),De=ne(37285),We=ne(91882),Ie=ne(77019),he=ne(5269),Je=ne(62957),Pe=ne(31691),dt=ne(37568),Ze=ne(7939),Ce=ne(92216),Te=ne(32352),_e=ne(90736),rt=ne(25399),gt=ne(62673),Pt=ne(4875),ht=ne(84849),it=ne(39116),nt=ne(35883),Fe={flex_box_center:"flex_box_center___p1qG1",flex_space_between:"flex_space_between___EHoRl",flex_box_vertical_center:"flex_box_vertical_center___c0u2d",flex_box_center_end:"flex_box_center_end___ueiDD",flex_box_column:"flex_box_column___tyRHS",wrap:"wrap___ce8sS",modal:"modal___yzD47",titleWrap:"titleWrap___OBPcs",required:"required___ncxFF",title:"title___cxIaz",colorGray:"colorGray___NXXsn",choiceWrap:"choiceWrap___AhJbr",answer:"answer____f42Z",activeAnswer:"activeAnswer___BqxNg",deleteIcon:"deleteIcon___iHXv4",addIcon:"addIcon___Kb1l4",editorWrap:"editorWrap___UmeId",htmlWrap:"htmlWrap____EtjV",radio:"radio___zqqhF",color333:"color333___PUxW5",color999:"color999___Uiwst",questionType:"questionType___GcJoU",questionChoices:"questionChoices___WgikS"},kt=Object.defineProperty,lt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Me=(be,fe,pe)=>fe in be?kt(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Ke=(be,fe)=>{for(var pe in fe||(fe={}))et.call(fe,pe)&&Me(be,pe,fe[pe]);if(lt)for(var pe of lt(fe))St.call(fe,pe)&&Me(be,pe,fe[pe]);return be},ze=(be,fe)=>{var pe={};for(var Ve in be)et.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&<)for(var Ve of lt(be))fe.indexOf(Ve)<0&&St.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},se=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const qe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Le=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=ze(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)([]),[On,Sn]=(0,E.useState)(),[Fn,Xn]=(0,E.useState)([]),[qn,Hn]=(0,E.useState)(""),[Ln,Rn]=(0,E.useState)(5),[Zn,or]=(0,E.useState)(!1),rr=(0,Qe.useParams)();(0,E.useEffect)(()=>{gn(["","","",""])},[]),(0,E.useEffect)(()=>{if(!(Re!=null&&Re.question_choices)){or(!0);return}Hn(Re==null?void 0:Re.question_title),Rn(parseInt(Re==null?void 0:Re.question_score)),gn(Re==null?void 0:Re.question_choices.map(Bn=>Bn.choice_text));const Vn=[];Re==null||Re.standard_answer.map((Bn,Yn)=>{Vn.push(Bn-1)}),Xn(Vn)},[Re]),(0,E.useImperativeHandle)(fe,()=>({onSave:ir,isEdit:Zn}));const ir=()=>se(void 0,null,function*(){if(!qn)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Vn=Jt.findIndex(Jn=>!Jn);if(Vn>-1)return Be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${qe[Vn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Fn.length)return Be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Fn.length<1)return Be.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Bn=Jt.map((Jn,dr)=>({choice_text:Jn,is_answer:Fn.includes(dr)?dr+1:0}));let Yn;Re.question_id?Yn=yield Yt({type:"exercise/editExerciseQuestion",payload:{id:Re.question_id,question_title:qn,question_type:1,question_score:"5.0",question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}}):Yn=yield Yt({type:"exercise/addExerciseQuestion",payload:{categoryId:rr.categoryId,question_title:qn,question_type:1,question_score:"5.0",question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}}),Yn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),or(!1),Yt({type:"exercise/editExercise",payload:Ke({},rr)}))}),Un=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Kn=Vn=>se(void 0,null,function*(){switch(Vn.id){case"del":let Bn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return se(this,null,function*(){yield(0,ht.Fl)({id:Re.question_id}),Yt({type:"exercise/editExercise",payload:Ke({},rr)})})}});break;case"up":case"down":yield Yt({type:"exercise/exeriseMoveUpDown",payload:{id:Re.question_id,opr:Vn.id}}),Yt({type:"exercise/editExercise",payload:Ke({},rr)});break;case"edit":or(!0);break}}),Tn=()=>{var Vn;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u591A\u9009\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&Un.map(function(Bn,Yn){return Bn.id==="up"&&Re.key===1||Bn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:Yn,placement:"bottom",title:Bn.name},E.createElement("span",{onClick:()=>Kn(Bn),className:Bn.icon}))})),E.createElement("div",{className:"mt5"},E.createElement(nt.Z,{value:Re.question_title})),E.createElement("div",{className:Fe.questionChoices},(Vn=Re==null?void 0:Re.question_choices)==null?void 0:Vn.map(function(Bn,Yn){return E.createElement(Ie.Z,null,E.createElement(he.Z,null,E.createElement(gt.default,{key:Yn,checked:Re.standard_answer.includes(Yn+1),disabled:!0},qe[Yn],".")),E.createElement(he.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},E.createElement(nt.Z,{value:Bn.choice_text}))))})))},mr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u9898\u5E72\uFF1A")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:qn,onChange:Vn=>Hn(Vn)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Fe.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Jt.map((Vn,Bn)=>E.createElement("div",{className:Fe.choiceWrap,key:Bn},E.createElement(rt.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Fe.answer} ${Fn.includes(Bn)?Fe.activeAnswer:""}`,onClick:()=>{Fn.includes(Bn)?Xn(Fn.filter(Yn=>Yn!==Bn)):Xn([...Fn,Bn])}},qe[Bn])),E.createElement("div",{className:Fe.editorWrap},On===Bn?E.createElement(it.Z,{id:`single-question-option-${Bn}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Vn,onChange:Yn=>{Jt[Bn]=Yn,gn(Jt)}}):E.createElement("div",{className:Fe.htmlWrap,onClick:()=>Sn(Bn)},E.createElement(nt.Z,{value:Vn}))),Bn>1&&E.createElement(rt.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Fe.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>gn(Jt.filter((Yn,Jn)=>Jn!==Bn))})),Bn<7&&Bn===Jt.length-1&&E.createElement(rt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Fe.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>gn([...Jt,""])})))),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:Ln,max:1e4,min:-1,onChange:Vn=>{Rn(Vn)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>or(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>ir()},"\u4FDD\u5B58")));return E.createElement("section",{className:Fe.wrap},!Zn&&Tn(),Zn&&mr())};var Ae=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Le)),ct=ne(47889),ye=Object.defineProperty,ce=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,bt=(be,fe,pe)=>fe in be?ye(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,ge=(be,fe)=>{for(var pe in fe||(fe={}))Ue.call(fe,pe)&&bt(be,pe,fe[pe]);if(ce)for(var pe of ce(fe))It.call(fe,pe)&&bt(be,pe,fe[pe]);return be},He=(be,fe)=>{var pe={};for(var Ve in be)Ue.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&ce)for(var Ve of ce(be))fe.indexOf(Ve)<0&&It.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},Ge=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const Tt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],wt=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=He(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)([]),[On,Sn]=(0,E.useState)(),[Fn,Xn]=(0,E.useState)([]),[qn,Hn]=(0,E.useState)(""),[Ln,Rn]=(0,E.useState)(0),[Zn,or]=(0,E.useState)(!1),rr=(0,Qe.useParams)();(0,E.useEffect)(()=>{gn(["","","",""])},[]),(0,E.useEffect)(()=>{if(!(Re!=null&&Re.question_choices)){or(!0);return}Hn(Re==null?void 0:Re.question_title),Rn(parseInt(Re==null?void 0:Re.question_score)),gn(Re==null?void 0:Re.question_choices.map(Bn=>Bn.choice_text));const Vn=[];Re==null||Re.standard_answer.map((Bn,Yn)=>{Vn.push(Bn-1)}),Xn(Vn)},[Re]),(0,E.useImperativeHandle)(fe,()=>({onSave:ir,isEdit:Zn}));const ir=()=>Ge(void 0,null,function*(){if(!qn)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Vn=Jt.findIndex(Jn=>!Jn);if(Vn>-1)return Be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Tt[Vn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Fn.length)return Be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Fn.length<1)return Be.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const Bn=Jt.map((Jn,dr)=>({choice_text:Jn,is_answer:Fn.includes(dr)?dr+1:0}));let Yn;Re.question_id?Yn=yield(0,Ce.Kc)({id:Re.question_id,question_title:qn,question_type:1,question_score:Ln,question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}):Yn=yield(0,Ce.iV)({exercise_bank_id:rr.topicId,question_title:qn,question_type:1,question_score:"5.0",question_choices:Bn.map(Jn=>Jn.choice_text),standard_answers:Bn.filter(Jn=>Jn.is_answer).map(Jn=>Jn.is_answer)}),Yn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),or(!1)),yield Yt({type:"polls/getExerciseBanks",payload:ge({},rr)})}),Un=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Kn=Vn=>Ge(void 0,null,function*(){switch(Vn.id){case"del":let Bn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ge(this,null,function*(){yield(0,Ce.x$)({pollsId:Re.question_id}),Yt({type:"polls/getExerciseBanks",payload:ge({},rr)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Re==null?void 0:Re.question_id,opr:Vn.id}),Yt({type:"polls/getExerciseBanks",payload:ge({},rr)});break;case"edit":or(!0);break}}),Tn=()=>{var Vn;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u5355\u9009\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&Un.map(function(Bn,Yn){return Bn.id==="up"&&Re.key===1||Bn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:Yn,placement:"bottom",title:Bn.name},E.createElement("span",{onClick:()=>Kn(Bn),className:Bn.icon}))})),E.createElement("div",{className:"mt5"},E.createElement(nt.Z,{value:Re.question_title})),E.createElement("div",{className:Fe.questionChoices},(Vn=Re==null?void 0:Re.question_choices)==null?void 0:Vn.map(function(Bn,Yn){return E.createElement(Ie.Z,null,E.createElement(he.Z,null,E.createElement(ct.ZP,{key:Yn,checked:Re.standard_answer.includes(Yn+1),disabled:!0},Tt[Yn],".")),E.createElement(he.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},E.createElement(nt.Z,{value:Bn.choice_text}))))})))},mr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u9898\u5E72\uFF1A")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:qn,onChange:Vn=>Hn(Vn)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Fe.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Jt.map((Vn,Bn)=>E.createElement("div",{className:Fe.choiceWrap,key:Bn},E.createElement(rt.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Fe.answer} ${Fn.includes(Bn)?Fe.activeAnswer:""}`,onClick:()=>{Fn.includes(Bn)?Xn(Fn.filter(Yn=>Yn!==Bn)):Xn([...Fn,Bn])}},Tt[Bn])),E.createElement("div",{className:Fe.editorWrap},On===Bn?E.createElement(it.Z,{id:`single-question-option-${Bn}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Vn,onChange:Yn=>{Jt[Bn]=Yn,gn(Jt)}}):E.createElement("div",{className:Fe.htmlWrap,onClick:()=>Sn(Bn)},E.createElement(nt.Z,{value:Vn}))),Bn>1&&E.createElement(rt.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Fe.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>gn(Jt.filter((Yn,Jn)=>Jn!==Bn))})),Bn<7&&Bn===Jt.length-1&&E.createElement(rt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Fe.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>gn([...Jt,""])})))),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:Ln,max:1e4,min:-1,onChange:Vn=>{Rn(Vn)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>or(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>ir()},"\u4FDD\u5B58")));return E.createElement("section",{className:Fe.wrap},!Zn&&Tn(),Zn&&mr())};var Lt=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(wt)),$e=Object.defineProperty,At=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,te=(be,fe,pe)=>fe in be?$e(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,ee=(be,fe)=>{for(var pe in fe||(fe={}))st.call(fe,pe)&&te(be,pe,fe[pe]);if(At)for(var pe of At(fe))ae.call(fe,pe)&&te(be,pe,fe[pe]);return be},oe=(be,fe)=>{var pe={};for(var Ve in be)st.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&At)for(var Ve of At(be))fe.indexOf(Ve)<0&&ae.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},ue=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ve=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=oe(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)(),[On,Sn]=(0,E.useState)(""),[Fn,Xn]=(0,E.useState)(!1),[qn,Hn]=(0,E.useState)(5),Ln=(0,Qe.useParams)();(0,E.useEffect)(()=>{if(!(Re!=null&&Re.question_choices)){Xn(!0);return}Sn(Re==null?void 0:Re.question_title),Hn(Re==null?void 0:Re.question_score),gn(Re.standard_answer[0]+"")},[Re]),(0,E.useImperativeHandle)(fe,()=>({onSave:Rn,isEdit:Fn}));const Rn=()=>ue(void 0,null,function*(){if(!On)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!Jt)return Be.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const Un=[{choice_text:"\u6B63\u786E",is_answer:Jt==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Jt==="2"?2:0}];let Kn;return Re.question_id?Kn=yield(0,Ce.Kc)({id:Re.question_id,question_title:On,question_type:2,question_score:qn,question_choices:Un.map(Tn=>Tn.choice_text),standard_answers:Un.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer)}):Kn=yield(0,Ce.iV)({exercise_bank_id:Ln.topicId,question_title:On,question_type:2,question_score:qn,question_choices:Un.map(Tn=>Tn.choice_text),standard_answers:Un.filter(Tn=>Tn.is_answer).map(Tn=>Tn.is_answer)}),Kn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Xn(!1)),Yt({type:"polls/getExerciseBanks",payload:ee({},Ln)}),{name:On,choices:Un}}),Zn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],or=Un=>ue(void 0,null,function*(){switch(Un.id){case"del":let Kn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return ue(this,null,function*(){yield(0,Ce.x$)({pollsId:Re.question_id}),Yt({type:"polls/getExerciseBanks",payload:ee({},Ln)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Re==null?void 0:Re.question_id,opr:Un.id}),Yt({type:"polls/getExerciseBanks",payload:ee({},Ln)});break;case"edit":Xn(!0);break}}),rr=()=>{var Un;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&Zn.map(function(Kn,Tn){return Kn.id==="up"&&Re.key===1||Kn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:Tn,placement:"bottom",title:Kn.name},E.createElement("span",{onClick:()=>or(Kn),className:Kn.icon}))})),E.createElement("div",{className:"mt5"},Re.question_title),E.createElement("div",{className:Fe.questionChoices},(Un=Re==null?void 0:Re.question_choices)==null?void 0:Un.map(function(Kn,Tn){return E.createElement(ct.ZP,{key:Tn,checked:Re.standard_answer.includes(Tn+1),disabled:!0},re[Tn],". ",E.createElement("span",{className:"c-black font14"},Kn.choice_text))})))},ir=()=>E.createElement("aside",null,E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u9898\u5E72\uFF1A")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:On,onChange:Un=>Sn(Un)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.required},"*"),E.createElement("span",{className:Fe.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Fe.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),E.createElement(ct.ZP.Group,{buttonStyle:"solid",value:Jt,onChange:Un=>gn(Un.target.value)},E.createElement(ct.ZP.Button,{value:"1",className:`${Fe.radio} mr40`},"\u6B63\u786E"),E.createElement(ct.ZP.Button,{value:"2",className:Fe.radio},"\u9519\u8BEF")),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:qn,max:1e4,min:-1,onChange:Un=>{Hn(Un)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Xn(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>Rn()},"\u4FDD\u5B58")));return E.createElement("section",{className:Fe.wrap},!Fn&&rr(),Fn&&ir())};var we=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(ve)),ft=ne(74072),Oe=ne(5622),Ye=ne(76406),mt=Object.defineProperty,Bt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Wt=(be,fe,pe)=>fe in be?mt(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Ht=(be,fe)=>{for(var pe in fe||(fe={}))Et.call(fe,pe)&&Wt(be,pe,fe[pe]);if(Bt)for(var pe of Bt(fe))Ut.call(fe,pe)&&Wt(be,pe,fe[pe]);return be},ln=(be,fe)=>{var pe={};for(var Ve in be)Et.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&Bt)for(var Ve of Bt(be))fe.indexOf(Ve)<0&&Ut.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},qt=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const sn=null,Dt=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,editData:Ct}=pe,Re=ln(pe,["problemset","globalSetting","loading","dispatch","editData"]);const[xt,Jt]=(0,E.useState)(""),[gn,On]=(0,E.useState)(""),[Sn,Fn]=(0,E.useState)([]),[Xn,qn]=(0,E.useState)(""),[Hn,Ln]=(0,E.useState)(),[Rn,Zn]=(0,E.useState)(!1),[or,rr]=(0,E.useState)(5),[ir,Un]=(0,E.useState)(!1),Kn=(0,Qe.useParams)();(0,E.useEffect)(()=>{if(!(Ct!=null&&Ct.question_title)){Un(!0);return}Jt(Ct==null?void 0:Ct.question_title),Ln(Ct==null?void 0:Ct.is_ordered),rr(Ct==null?void 0:Ct.question_score);const ar=Ct==null?void 0:Ct.standard_answer.map(pr=>pr.answer_text);Fn(ar)},[Ve.editData]),(0,E.useEffect)(()=>{Zn(!1)},[ir]),(0,E.useImperativeHandle)(fe,()=>({onSave:Tn,isEdit:ir}));const Tn=()=>qt(void 0,null,function*(){let ar=[],pr=!1;if(Sn.forEach((wr,br)=>{ar.push({choice_id:br+1,answer_text:[]}),wr.forEach((Or,_r)=>{ar[br].answer_text.push(Or),(!Or||!(0,Ye.eR)(Or,1e4))&&(qn(`${br}-${_r}`),Be.ZP.info(Or?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),pr=!0)})}),pr)return!1;let fr;return Ct.question_id?fr=yield(0,Ce.Kc)({id:Ct.question_id,question_title:xt,question_type:3,question_score:or,is_ordered:Hn,standard_answers:ar}):fr=yield(0,Ce.iV)({exercise_bank_id:Kn.topicId,question_title:xt,question_type:3,question_score:or,is_ordered:Hn,standard_answers:ar}),fr.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Un(!1)),Yt({type:"polls/getExerciseBanks",payload:Ht({},Kn)}),{name:xt,analysis:gn,standard_answers:ar,is_ordered:Hn}}),mr=(ar,pr,fr)=>{const wr=Sn.slice();if(pr&&wr.splice(ar,pr),fr&&Rn)for(let br=0;br{qn("");let wr=Sn.slice();wr[ar][pr]=fr,Fn(wr)},Bn=ar=>{let pr=Sn.slice();pr[ar]=[...pr[ar],""],Fn(pr)},Yn=(ar,pr)=>{let fr=Sn.slice();if(!fr[ar][pr]){fr[ar]=fr[ar].filter((wr,br)=>br!==pr),Fn(fr);return}Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.modal,onOk:()=>{fr[ar]=fr[ar].filter((wr,br)=>br!==pr),Fn(fr)}})},Jn=ar=>{Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Fe.modal,onOk:()=>{let pr=Sn.slice();pr=Sn.filter((fr,wr)=>ar!==wr),Fn(pr)}})},dr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),E.createElement("div",null,E.createElement(ft.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:xt,onChange:ar=>Jt(ar),showNullButton:!0,onPlaceholderChange:mr})),E.createElement("div",{className:"mt20"},Sn.map((ar,pr)=>E.createElement(Oe.Z,{key:pr,answers:ar,index:pr,is_md:!0,activeOptionErrorIndex:Xn,onAnswerChange:Vn,addChildAnswer:Bn,deleteChildAnswer:Yn,deleteChildAnswermain:Jn}))),E.createElement("div",{className:"mt20"},Sn.length>1&&E.createElement("span",null,E.createElement(gt.default,{checked:Hn,onChange:ar=>Ln(ar.target.checked),className:`${Fe.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),E.createElement("span",{className:`${Fe.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:or,max:1e4,min:-1,onChange:ar=>{rr(ar)}})," \u5206"),E.createElement("aside",{className:"tr"},Ct.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Un(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>Tn()},"\u4FDD\u5B58"))),sr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],_n=ar=>qt(void 0,null,function*(){switch(ar.id){case"del":let pr;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return qt(this,null,function*(){yield(0,Ce.x$)({pollsId:Ct.question_id}),Yt({type:"polls/getExerciseBanks",payload:Ht({},Kn)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Ct==null?void 0:Ct.question_id,opr:ar.id}),Yt({type:"polls/getExerciseBanks",payload:Ht({},Kn)});break;case"edit":Un(!0);break}}),hr=()=>{var ar;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Ct.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Ct.question_score,"\u5206\uFF09"),!Ct.hideAction&&sr.map(function(pr,fr){return pr.id==="up"&&Ct.key===1||pr.id==="down"&&Ct.key===Ct.len?null:E.createElement(rt.Z,{key:fr,placement:"bottom",title:pr.name},E.createElement("span",{onClick:()=>_n(pr),className:pr.icon}))})),E.createElement("div",{className:"mt5"},Ct.question_title),E.createElement("div",{className:Fe.questionChoices},(ar=Ct==null?void 0:Ct.standard_answer)==null?void 0:ar.map(function(pr,fr){return E.createElement(Ie.Z,null,E.createElement(he.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",pr.choice_id,"\uFF09\uFF1A"),E.createElement(he.Z,{flex:"1"},E.createElement(dt.default,{key:fr,checked:Ct.standard_answer.includes(fr),disabled:!0,value:pr.answer_text})))})))};return E.createElement("section",{className:Fe.wrap},!ir&&hr(),ir&&dr())};var tn=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Dt)),Vt=Object.defineProperty,je=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,jt=(be,fe,pe)=>fe in be?Vt(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Ne=(be,fe)=>{for(var pe in fe||(fe={}))pt.call(fe,pe)&&jt(be,pe,fe[pe]);if(je)for(var pe of je(fe))Ft.call(fe,pe)&&jt(be,pe,fe[pe]);return be},ot=(be,fe)=>{var pe={};for(var Ve in be)pt.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&je)for(var Ve of je(be))fe.indexOf(Ve)<0&&Ft.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},yt=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const Mt=null,Kt=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,onRef:Ct=()=>{},editData:Re}=pe,xt=ot(pe,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[Jt,gn]=(0,E.useState)(""),[On,Sn]=(0,E.useState)(""),[Fn,Xn]=(0,E.useState)(""),[qn,Hn]=(0,E.useState)(5),[Ln,Rn]=(0,E.useState)(!1),Zn=(0,Qe.useParams)();(0,E.useEffect)(()=>{var Tn;if(!(Re!=null&&Re.question_title)){Rn(!0);return}gn(Re==null?void 0:Re.question_title),Xn((Tn=Re==null?void 0:Re.standard_answer)==null?void 0:Tn[0]),Hn(Re==null?void 0:Re.question_score)},[Ve.editData]),(0,E.useImperativeHandle)(fe,()=>({onSave:or,isEdit:Ln}));const or=()=>yt(void 0,null,function*(){if(!Jt)return Be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let Tn;return Re.question_id?Tn=yield(0,Ce.Kc)({id:Re.question_id,question_title:Jt,question_type:4,question_score:qn,standard_answers:[Fn]}):Tn=yield(0,Ce.iV)({exercise_bank_id:Zn.topicId,question_title:Jt,question_type:4,question_score:qn,standard_answers:[Fn]}),Tn.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Rn(!1),Yt({type:"polls/getExerciseBanks",payload:Ne({},Zn)})),{name:Jt,answer_texts:[Fn],analysis:On}}),rr=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u7B80\u7B54\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),E.createElement(it.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Jt,onChange:Tn=>gn(Tn)}),E.createElement("p",{className:Fe.titleWrap},E.createElement("span",{className:Fe.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),E.createElement(it.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Fn,onChange:Tn=>Xn(Tn)}),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(Pt.Z,{value:qn,max:1e4,min:-1,onChange:Tn=>{Hn(Tn)}})," \u5206"),E.createElement("aside",{className:"tr"},Re.question_id&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Rn(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>or()},"\u4FDD\u5B58"))),ir=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Un=Tn=>yt(void 0,null,function*(){switch(Tn.id){case"del":let mr;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return yt(this,null,function*(){yield(0,Ce.x$)({pollsId:Re.question_id}),Yt({type:"polls/getExerciseBanks",payload:Ne({},Zn)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Re==null?void 0:Re.question_id,opr:Tn.id}),Yt({type:"polls/getExerciseBanks",payload:Ne({},Zn)});break;case"edit":Rn(!0);break}}),Kn=()=>E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Re.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",Re.question_score,"\u5206\uFF09"),!Re.hideAction&&ir.map(function(Tn,mr){return Tn.id==="up"&&Re.key===1||Tn.id==="down"&&Re.key===Re.len?null:E.createElement(rt.Z,{key:mr,placement:"bottom",title:Tn.name},E.createElement("span",{onClick:()=>Un(Tn),className:Tn.icon}))})),E.createElement("div",{className:"mt5"},Re.question_title),E.createElement("div",{className:Fe.questionChoices},E.createElement("p",null,E.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),E.createElement(nt.Z,{value:Fn})));return E.createElement("section",{className:Fe.wrap},!Ln&&Kn(),Ln&&rr())};var cn=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Kt)),Dn=Object.defineProperty,kn=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,fn=(be,fe,pe)=>fe in be?Dn(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,Gt=(be,fe)=>{for(var pe in fe||(fe={}))un.call(fe,pe)&&fn(be,pe,fe[pe]);if(kn)for(var pe of kn(fe))bn.call(fe,pe)&&fn(be,pe,fe[pe]);return be},Rt=(be,fe)=>{var pe={};for(var Ve in be)un.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&kn)for(var Ve of kn(be))fe.indexOf(Ve)<0&&bn.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},_t=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const Ot=null,an=(be,fe)=>{var pe=be,{problemset:Ve,globalSetting:Xt,loading:rn,dispatch:Yt,editData:Ct}=pe,Re=Rt(pe,["problemset","globalSetting","loading","dispatch","editData"]);const[xt,Jt]=(0,E.useState)(""),[gn,On]=(0,E.useState)(""),[Sn,Fn]=(0,E.useState)(""),[Xn,qn]=(0,E.useState)([]),[Hn,Ln]=(0,E.useState)(""),[Rn,Zn]=(0,E.useState)(),[or,rr]=(0,E.useState)(!1),[ir,Un]=(0,E.useState)([]),[Kn,Tn]=(0,E.useState)(!1),mr=(0,Qe.useParams)();(0,E.useEffect)(()=>{var sr;Ct.edit&&Tn(!0),Jt(Ct.shixun_name),On(Ct.question_title);const _n=[];(sr=Ct.shixun)==null||sr.map(hr=>{_n.push(hr.challenge_score)}),Un(_n)},[Ct]),(0,E.useEffect)(()=>{rr(!1)},[Kn]),(0,E.useImperativeHandle)(fe,()=>({onSave:Vn,isEdit:Kn}));const Vn=()=>_t(void 0,null,function*(){let sr=[];if(!1)return!1;let hr;return Ct.question_id?hr=yield(0,Ce.Kc)({id:Ct.question_id,question_title:gn,shixun_name:xt,shixun_id:Ct.shixun_id,question_type:5,question_scores:ir}):hr=yield(0,Ce.iV)({exercise_bank_id:mr.topicId,question_title:gn,shixun_name:xt,shixun_id:Ct.shixun_id,question_type:5,question_scores:ir}),hr.status===0&&(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Tn(!1)),yield Yt({type:"polls/getExerciseBanks",payload:Gt({},mr)}),{name:gn,analysis:Sn,standard_answers:sr,is_ordered:Rn}}),Bn=()=>{var sr;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),E.createElement("div",{className:"mt10"},E.createElement(dt.default,{defaultValue:xt,onChange:_n=>{Jt(_n.target.value)}})),E.createElement("div",{className:"mt10"},E.createElement(it.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:gn,onChange:_n=>{On(_n)}})),E.createElement("div",{className:"mt20"},(sr=Ct.shixun)==null?void 0:sr.map((_n,hr)=>E.createElement(Ie.Z,{gutter:[20,20]},E.createElement(he.Z,{flex:"1"},hr+1,".",_n.challenge_name),E.createElement(he.Z,null,E.createElement(Pt.Z,{defaultValue:ir[hr],onChange:ar=>{ir[hr]=ar,Un(ir),console.log("srore:L",ir[hr])}}))))),E.createElement("div",{className:"mt20"},Xn.length>1&&E.createElement("span",null,E.createElement(gt.default,{checked:Rn,onChange:_n=>Zn(_n.target.checked),className:`${Fe.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),E.createElement("span",{className:`${Fe.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),E.createElement("aside",{className:"tr"},!(Ct!=null&&Ct.edit)&&E.createElement(Ze.ZP,{type:"default",onClick:()=>Tn(!1)},"\u53D6\u6D88"),E.createElement(Ze.ZP,{className:"ml20",type:"primary",onClick:()=>Vn()},"\u4FDD\u5B58")))},Yn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Jn=sr=>_t(void 0,null,function*(){switch(sr.id){case"del":let _n;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return _t(this,null,function*(){yield(0,Ce.x$)({pollsId:Ct.question_id}),Yt({type:"polls/getExerciseBanks",payload:Gt({},mr)})})}});break;case"up":case"down":yield(0,Ce.W)({exerciseId:Ct==null?void 0:Ct.question_id,opr:sr.id}),Yt({type:"polls/getExerciseBanks",payload:Gt({},mr)});break;case"edit":Tn(!0);break}}),dr=()=>{var sr;return E.createElement("aside",null,E.createElement("div",{className:Fe.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Ct.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Ct.question_score,"\u5206\uFF09"),E.createElement("div",{className:"tr"},E.createElement(Qe.Link,{target:"_blank",to:`/shixuns/${Ct.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Ct.hideAction&&Yn.map(function(_n,hr){return _n.id==="up"&&Ct.key===1||_n.id==="down"&&Ct.key===Ct.len?null:E.createElement(rt.Z,{key:hr,placement:"bottom",title:_n.name},E.createElement("span",{onClick:()=>Jn(_n),className:_n.icon}))}))),E.createElement("div",{className:"font16"},Ct.shixun_name),E.createElement("div",{className:"mt30"}),(sr=Ct.shixun)==null?void 0:sr.map(function(_n,hr){return E.createElement("div",{key:hr},"\u7B2C",hr+1,"\u5173 ",E.createElement("span",{className:"ml10"},_n.challenge_name)," ",E.createElement("span",{className:"ml10"},_n.challenge_score))}))};return E.createElement("section",{className:Fe.wrap},!Kn&&dr(),Kn&&Bn())};var nn=(0,Qe.connect)(({problemset:be,loading:fe,globalSetting:pe})=>({problemset:be,globalSetting:pe,loading:fe.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(an)),en={flex_box_center:"flex_box_center___eWsYC",flex_space_between:"flex_space_between___RALuo",flex_box_vertical_center:"flex_box_vertical_center___f7uVp",flex_box_center_end:"flex_box_center_end___UxPR3",flex_box_column:"flex_box_column___YUFuv",bg:"bg___zWTsF",containerTitle:"containerTitle___DzTZh",containerDesc:"containerDesc___a3TiA",listItem:"listItem____nHKG",info:"info___LWlgA",title:"title___gtaI4",titleLeft:"titleLeft___Ce3h9",titleRight:"titleRight___gARIc",acitons:"acitons___MrR2u",export:"export___u_8cL"},xn=ne(78568),Pn=Object.defineProperty,Cn=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,Qn=(be,fe,pe)=>fe in be?Pn(be,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[fe]=pe,zn=(be,fe)=>{for(var pe in fe||(fe={}))Nn.call(fe,pe)&&Qn(be,pe,fe[pe]);if(Cn)for(var pe of Cn(fe))An.call(fe,pe)&&Qn(be,pe,fe[pe]);return be},Nt=(be,fe)=>{var pe={};for(var Ve in be)Nn.call(be,Ve)&&fe.indexOf(Ve)<0&&(pe[Ve]=be[Ve]);if(be!=null&&Cn)for(var Ve of Cn(be))fe.indexOf(Ve)<0&&An.call(be,Ve)&&(pe[Ve]=be[Ve]);return pe},Qt=(be,fe,pe)=>new Promise((Ve,Xt)=>{var rn=Re=>{try{Ct(pe.next(Re))}catch(xt){Xt(xt)}},Yt=Re=>{try{Ct(pe.throw(Re))}catch(xt){Xt(xt)}},Ct=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(rn,Yt);Ct((pe=pe.apply(be,fe)).next())});const{SubMenu:En}=xe.default,{Content:mn,Sider:Xe}=tt.default,ut=be=>{var fe=be,{polls:pe,globalSetting:Ve,loading:Xt,user:rn,dispatch:Yt}=fe,Ct=Nt(fe,["polls","globalSetting","loading","user","dispatch"]),Re,xt,Jt,gn,On,Sn,Fn,Xn,qn,Hn,Ln,Rn,Zn,or,rr,ir,Un,Kn,Tn,mr,Vn,Bn,Yn,Jn,dr,sr,_n,hr,ar,pr,fr,wr,br,Or,_r,xr,ur,pn,In,wn,dn,Gn,nr,vn,yn,jn,Wn,vr,kr,Br,Tr,Ar,Nr,zr,Lr,jr,Jr;const Zr=(0,Qe.useParams)(),zi=(0,Qe.useLocation)(),{userInfo:ui}=rn,[ri]=Ee.default.useForm(),[yi,Fr]=(0,E.useState)([]),[Ui,qr]=(0,E.useState)(!1),Ti=[{name:"\u9009\u62E9\u9898",id:0},{name:"\u5224\u65AD\u9898",id:2},{name:"\u586B\u7A7A\u9898",id:3},{name:"\u7B80\u7B54\u9898",id:4},{name:"\u5B9E\u8BAD\u9898",id:5}],Ni=(0,E.useRef)();(0,E.useEffect)(()=>{var Mr,ai,pi,Xr,to,Ki;(Mr=pe.exerciseBanks)!=null&&Mr.exercise_questions&&(Fr([...(ai=pe.exerciseBanks)==null?void 0:ai.exercise_questions]),ri.setFieldsValue({exercise_name:(Xr=(pi=pe.exerciseBanks)==null?void 0:pi.exercise)==null?void 0:Xr.exercise_name,exercise_description:(Ki=(to=pe.exerciseBanks)==null?void 0:to.exercise)==null?void 0:Ki.exercise_description}))},[pe.exerciseBanks]),(0,E.useEffect)(()=>{Yt({type:"polls/getExerciseBanks",payload:zn({},Zr)})},[Zr.categoryId]);const Wi=()=>Qt(void 0,null,function*(){var Mr,ai;yield ri.validateFields();const pi=ri.getFieldValue();pi.is_md=!0,pi.topicId=(ai=(Mr=pe.exerciseBanks)==null?void 0:Mr.exercise)==null?void 0:ai.id,qr(!1),yield(0,Ce.hO)(zn({},pi)),Yt({type:"polls/getExerciseBanks",payload:zn({},Zr)})}),bi=Mr=>Qt(void 0,null,function*(){const ai=yield Ni==null?void 0:Ni.current;if(ai!=null&&ai.isEdit){Be.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}Mr===5?Yt({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):Fr([...yi,{question_type:Mr}])}),Ii=()=>{Yt({type:"userDetail/setActionTabs",payload:{key:"UserDetail-SendToClass",params:{object_id:[Zr.topicId],object_type:"exercise"}}})},Vr=function(){return yi==null?void 0:yi.map(function(Mr,ai){if(Mr.key=ai+1,Mr.len=yi.length,Mr.question_type===0)return E.createElement("aside",null,E.createElement(Lt,{ref:Ni,editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===1)return E.createElement("aside",null,E.createElement(Ae,{ref:Ni,editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===2)return E.createElement("aside",null,E.createElement(we,{ref:Ni,editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===3)return E.createElement("aside",null,E.createElement(tn,{editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===4)return E.createElement("aside",null,E.createElement(cn,{editData:Mr}),E.createElement(De.Z,null));if(Mr.question_type===5)return E.createElement("aside",null,E.createElement(nn,{editData:Mr}),E.createElement(De.Z,null))})};return E.createElement("section",{className:"edu-container"},E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},ui&&E.createElement(We.Z,{separator:">"},E.createElement(We.Z.Item,null,E.createElement(Qe.Link,{to:`/users/${Zr.username}/${Zr.topictype==="personal"?"topics":"topicbank"}/${Zr.topictype}`},Zr.topictype==="personal"?"\u6211\u7684\u9898\u5E93":"\u516C\u5171\u9898\u5E93")),E.createElement(We.Z.Item,null,"\u8BE6\u60C5"))),E.createElement("aside",{className:[en.title,"mt20"].join(" ")},E.createElement(Ie.Z,{style:{width:"100%"},align:"middle"},E.createElement(he.Z,{flex:"1"},E.createElement("strong",{className:"font20 ml5"},(xt=(Re=pe.exerciseBanks)==null?void 0:Re.exercise)==null?void 0:xt.exercise_name),E.createElement(Ye.VV,{status:[(gn=(Jt=pe.exerciseBanks)==null?void 0:Jt.exercise)!=null&&gn.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),E.createElement(he.Z,null,E.createElement(Qe.Link,{className:"font16 c-light-black",to:`/users/${ui.login}/topics/${Zr.topictype}`},"\u8FD4\u56DE"))))),E.createElement("section",{className:[en.bg,"pl30","pr30","pb30","mt20 relative"].join(" ")},E.createElement("div",{className:en.export},((On=pe.exerciseBanks)==null?void 0:On.authorize)&&E.createElement(E.Fragment,null,E.createElement("a",{onClick:Mr=>{Mr.preventDefault(),Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>Qt(void 0,null,function*(){(yield(0,Te.Tv)({object_type:"normal",object_id:[Zr.topicId]})).status===0&&Qe.history.push(`/users/${Zr.username}/topics/personal`)})})}},"\u5220\u9664"),E.createElement(Qe.Link,{to:`/users/${ui.login}/topics/${Zr.topicId}/${Zr.topictype}/exercise/edit`},"\u7F16\u8F91")),E.createElement("a",{onClick:Mr=>{Mr.preventDefault(),Ii()}},"\u53D1\u9001")),E.createElement(Pe.default,{className:en.tabs},E.createElement(Pe.default.TabPane,{tab:E.createElement("span",{className:"font16 pt10 pb12"},"\u5185\u5BB9\u8BE6\u60C5"),key:"1"},E.createElement("div",{className:"c-light-black"},(Fn=(Sn=pe.exerciseBanks)==null?void 0:Sn.exercise)==null?void 0:Fn.exercise_description))),Ui&&E.createElement(Ee.default,{layout:"vertical",form:ri},E.createElement(Ee.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},E.createElement(dt.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),E.createElement(Ee.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},E.createElement(dt.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),E.createElement(Ee.default.Item,{className:"tr"},E.createElement(Ze.ZP,{type:"primary",onClick:()=>{Wi()}},"\u4FDD\u5B58")))),E.createElement("p",{className:"mt10",style:{display:"flex"}},E.createElement("span",{className:"fl",style:{flex:"1"}},!!((qn=(Xn=pe.exerciseBanks)==null?void 0:Xn.exercise_types)!=null&&qn.q_singles)&&E.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(Ln=(Hn=pe.exerciseBanks)==null?void 0:Hn.exercise_types)==null?void 0:Ln.q_singles,"\u9898\uFF0C\u5171",(Zn=(Rn=pe.exerciseBanks)==null?void 0:Rn.exercise_types)==null?void 0:Zn.q_singles_scores,"\u5206"),!!((rr=(or=pe.exerciseBanks)==null?void 0:or.exercise_types)!=null&&rr.q_doubles)&&E.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(Un=(ir=pe.exerciseBanks)==null?void 0:ir.exercise_types)==null?void 0:Un.q_doubles,"\u9898\uFF0C\u5171",(Tn=(Kn=pe.exerciseBanks)==null?void 0:Kn.exercise_types)==null?void 0:Tn.q_doubles_scores,"\u5206"),!!((Vn=(mr=pe.exerciseBanks)==null?void 0:mr.exercise_types)!=null&&Vn.q_judges)&&E.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(Yn=(Bn=pe.exerciseBanks)==null?void 0:Bn.exercise_types)==null?void 0:Yn.q_judges,"\u9898\uFF0C\u5171",(dr=(Jn=pe.exerciseBanks)==null?void 0:Jn.exercise_types)==null?void 0:dr.q_judges_scores,"\u5206"),!!((_n=(sr=pe.exerciseBanks)==null?void 0:sr.exercise_types)!=null&&_n.q_nulls)&&E.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(ar=(hr=pe.exerciseBanks)==null?void 0:hr.exercise_types)==null?void 0:ar.q_nulls,"\u9898\uFF0C\u5171",(fr=(pr=pe.exerciseBanks)==null?void 0:pr.exercise_types)==null?void 0:fr.q_nulls_scores,"\u5206"),!!((br=(wr=pe.exerciseBanks)==null?void 0:wr.exercise_types)!=null&&br.q_mains)&&E.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(_r=(Or=pe.exerciseBanks)==null?void 0:Or.exercise_types)==null?void 0:_r.q_mains,"\u9898\uFF0C\u5171",(ur=(xr=pe.exerciseBanks)==null?void 0:xr.exercise_types)==null?void 0:ur.q_mains_scores,"\u5206"),!!((In=(pn=pe.exerciseBanks)==null?void 0:pn.exercise_types)!=null&&In.q_shixuns)&&E.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(dn=(wn=pe.exerciseBanks)==null?void 0:wn.exercise_types)==null?void 0:dn.q_shixuns,"\u9898\uFF0C\u5171",(nr=(Gn=pe.exerciseBanks)==null?void 0:Gn.exercise_types)==null?void 0:nr.q_shixuns_scores,"\u5206"),!!((yn=(vn=pe.exerciseBanks)==null?void 0:vn.exercise_types)!=null&&yn.q_pros)&&E.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",(Wn=(jn=pe.exerciseBanks)==null?void 0:jn.exercise_types)==null?void 0:Wn.q_pros,"\u9898\uFF0C\u5171",(kr=(vr=pe.exerciseBanks)==null?void 0:vr.exercise_types)==null?void 0:kr.q_pros_scores,"\u5206")),E.createElement("span",{className:"fr"},!!((Tr=(Br=pe.exerciseBanks)==null?void 0:Br.exercise_types)!=null&&Tr.q_counts)&&E.createElement("span",null,"\u5408\u8BA1 ",E.createElement("span",{className:"color-blue"},(Nr=(Ar=pe.exerciseBanks)==null?void 0:Ar.exercise_types)==null?void 0:Nr.q_counts)," \u9898\uFF0C \u5171 ",E.createElement("span",{className:`${((Lr=(zr=pe.exerciseBanks)==null?void 0:zr.exercise_types)==null?void 0:Lr.q_scores)>100?"color-red font-bd":"color-orange"}`},(Jr=(jr=pe.exerciseBanks)==null?void 0:jr.exercise_types)==null?void 0:Jr.q_scores)," \u5206"))),E.createElement("section",{className:[en.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},yi!=""&&Vr(),yi==""&&E.createElement(_e.Z,null)),E.createElement(xn.Z,null))};var ke=(0,Qe.connect)(({polls:be,loading:fe,user:pe,globalSetting:Ve})=>({polls:be,globalSetting:Ve,user:pe,loading:fe.effects}))(ut)},78568:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ke}});var E=ne(59301),Qe=ne(44283),xe=ne(6767),tt=ne(62957),Ee=ne(31691),Be=ne(458),De=ne(47889),We={title:"title___XAxiE",radioWrap:"radioWrap___k0pOB",radio:"radio___x9kMt",colorFF0000:"colorFF0000___IMgd0",pagination:"pagination___ou2ht",checkboxWrapper:"checkboxWrapper___kF7xI"},Ie=ne(76406),he=ne(70467),Je=ne(29787),Pe=ne(62673),dt=ne(32352),Ze=ne(26724),Ce=ne.n(Ze),Te=(ze,se,qe)=>new Promise((Le,Ae)=>{var ct=Ue=>{try{ce(qe.next(Ue))}catch(It){Ae(It)}},ye=Ue=>{try{ce(qe.throw(Ue))}catch(It){Ae(It)}},ce=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(ct,ye);ce((qe=qe.apply(ze,se)).next())}),rt=({username:ze,setStages:se,stages:qe,hasError:Le,setHasError:Ae})=>{const[ct,ye]=(0,E.useState)(""),[ce,Ue]=(0,E.useState)(1),[It,bt]=(0,E.useState)([]),[ge,He]=(0,E.useState)(!1),[Ge,Tt]=(0,E.useState)(0);(0,E.useEffect)(()=>{wt({page:1,search:""},!0)},[]);const wt=($e,At)=>Te(void 0,null,function*(){He(!0);const st=yield(0,dt.w3)({username:ze,category:"manage",page:$e.page,search:$e.search});He(!1),bt(ae=>At?st==null?void 0:st.subjects:[...ae,...st==null?void 0:st.subjects]),Tt(st==null?void 0:st.count)}),Lt=(0,E.useRef)();return E.createElement("div",{className:We.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:ct,style:{width:500},onChange:$e=>{ye($e),Ue(1),Lt.current.scrollTo({behavior:"smooth",top:0}),wt({page:1,search:$e},!0)}})),E.createElement(Je.Z,{spinning:ge},E.createElement("div",{className:We.radioWrap,ref:Lt},E.createElement(Ce(),{initialLoad:!1,pageStart:1,threshold:6,loadMore:()=>{Ue(ce+1),wt({page:ce+1,search:ct},!1)},hasMore:It.length{se({subjectId:$e.target.value,stage_ids:[]}),Ae(!1)}},It.map($e=>{const At=$e.stages.map(st=>({label:st.name,value:st.id}));return E.createElement("div",{key:$e.id},E.createElement(De.ZP,{className:We.radio,value:$e.id},$e.name),$e.id===qe.subjectId&&E.createElement("div",{className:We.checkboxWrapper},At.length>0&&E.createElement(Pe.default,{indeterminate:qe.stage_ids.length>0&&qe.stage_ids.length{se({subjectId:$e.id,stage_ids:st.target.checked?At.map(ae=>ae.value):[]})},checked:qe.stage_ids.length===At.length},"\u5168\u9009"),E.createElement(Pe.default.Group,{options:At,value:qe.stage_ids,onChange:st=>se({subjectId:$e.id,stage_ids:st})})))}))))),Le&&E.createElement("div",{className:We.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u5B9E\u8DF5\u8BFE\u7A0B\u53CA\u7AE0\u8282"))},gt=ne(39967),Pt=ne(48404),ht=Object.defineProperty,it=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,kt=(ze,se,qe)=>se in ze?ht(ze,se,{enumerable:!0,configurable:!0,writable:!0,value:qe}):ze[se]=qe,lt=(ze,se)=>{for(var qe in se||(se={}))nt.call(se,qe)&&kt(ze,qe,se[qe]);if(it)for(var qe of it(se))Fe.call(se,qe)&&kt(ze,qe,se[qe]);return ze},et=(ze,se)=>{var qe={};for(var Le in ze)nt.call(ze,Le)&&se.indexOf(Le)<0&&(qe[Le]=ze[Le]);if(ze!=null&&it)for(var Le of it(ze))se.indexOf(Le)<0&&Fe.call(ze,Le)&&(qe[Le]=ze[Le]);return qe},St=(ze,se,qe)=>new Promise((Le,Ae)=>{var ct=Ue=>{try{ce(qe.next(Ue))}catch(It){Ae(It)}},ye=Ue=>{try{ce(qe.throw(Ue))}catch(It){Ae(It)}},ce=Ue=>Ue.done?Le(Ue.value):Promise.resolve(Ue.value).then(ct,ye);ce((qe=qe.apply(ze,se)).next())});const Me=ze=>{var se=ze,{userDetail:qe,globalSetting:Le,loading:Ae,user:ct,dispatch:ye}=se,ce=et(se,["userDetail","globalSetting","loading","user","dispatch"]),Ue,It,bt,ge,He;const[Ge,Tt]=(0,E.useState)("course"),[wt,Lt]=(0,E.useState)(""),[$e,At]=(0,E.useState)([]),[st,ae]=(0,E.useState)(),[te,ee]=(0,E.useState)(!1),[oe,ue]=(0,E.useState)(!1);(0,E.useEffect)(()=>{qe.actionTabs.key==="UserDetail-SendToClass"&&re(wt)},[qe.actionTabs.key]);const re=Oe=>St(void 0,null,function*(){ee(!0);const Ye=yield ye({type:"userDetail/topicGetCourseList",payload:{search:Oe}});Ye&&At((Ye==null?void 0:Ye.courses)||[]),ee(!1)}),[ve,we]=(0,E.useState)({subjectId:"",stage_ids:[]}),ft=()=>St(void 0,null,function*(){var Oe,Ye,mt,Bt,Et,Ut;if(Ge==="course"){if(!st){ue(!0);return}const Wt=yield ye({type:"userDetail/topicSendToClass",payload:lt({course_id:st},(Oe=qe.actionTabs)==null?void 0:Oe.params)});if(ye({type:"userDetail/setActionTabs",payload:{}}),Wt&&Wt.status===0){const Ht={normal:"common_homework",group:"group_homework",exercise:"exercise",poll:"poll",videos:"video"};(0,Ie.xg)(`/classrooms/${st}/${Ht[(mt=(Ye=qe.actionTabs)==null?void 0:Ye.params)==null?void 0:mt.object_type]}`)}}else{if(!ve.subjectId||!ve.stage_ids.length){ue(!0);return}(yield(0,Pt.nI)({id:(Et=(Bt=qe.actionTabs)==null?void 0:Bt.params)==null?void 0:Et.object_id,login:(Ut=ct.userInfo)==null?void 0:Ut.login},{stage_ids:ve.stage_ids})).status===0&&(xe.ZP.success("\u53D1\u9001\u6210\u529F"),ye({type:"userDetail/setActionTabs",payload:{}}),(0,Ie.xg)(`/paths/${ve.subjectId}`))}});return E.createElement(tt.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:qe.actionTabs.key==="UserDetail-SendToClass",title:"\u53D1\u9001",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Ae["userDetail/sendToClass"],width:600,afterClose:()=>{ue(!1),At([]),we({subjectId:"",stage_ids:[]}),Lt("")},onOk:ft,wrapClassName:gt.Z.CustomCss,onCancel:()=>{ye({type:"userDetail/setActionTabs",payload:{}})}},E.createElement(Ee.default,{activeKey:Ge,onChange:Oe=>{ue(!1),Tt(Oe)},items:[{label:"\u8BFE\u5802",key:"course",children:E.createElement("div",{className:We.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:wt,style:{width:500},onChange:Oe=>{Lt(Oe),re(Oe)}})),E.createElement(Be.Z,{active:!0,loading:te},E.createElement("div",{className:We.radioWrap},E.createElement(De.ZP.Group,{value:st,onChange:Oe=>{ae(Oe.target.value),ue(!1)}},$e.map((Oe,Ye)=>E.createElement(De.ZP,{className:We.radio,value:Oe.course_id,key:Oe.course_id},Oe.course_name))))),((It=(Ue=qe.actionTabs)==null?void 0:Ue.params)==null?void 0:It.object_type)!=="videos"&&E.createElement("div",{className:We.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9009\u62E9\u7684\u9898\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),oe&&E.createElement("div",{className:We.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802")),show:!0},{label:"\u5B9E\u8DF5\u8BFE\u7A0B",key:"subject",children:E.createElement(rt,{username:(bt=ct.userInfo)==null?void 0:bt.login,stages:ve,setStages:we,hasError:oe,setHasError:ue}),show:((He=(ge=qe.actionTabs)==null?void 0:ge.params)==null?void 0:He.object_type)==="videos"}].filter(Oe=>Oe.show)}))};var Ke=(0,Qe.connect)(({userDetail:ze,loading:se,globalSetting:qe,user:Le})=>({userDetail:ze,globalSetting:qe,loading:se.effects,user:Le}))(Me)},20047:function(on,$t,ne){"use strict";ne.d($t,{AL:function(){return ht},Iy:function(){return Je},Qv:function(){return Ze},ez:function(){return Pt},jb:function(){return Pe}});var E=ne(32834),Qe=ne.n(E),xe=ne(11690),tt=ne.n(xe);let Ee=1;function Be(lt,et){const St=lt.match(/^(\s+)(?:```)/);if(St===null)return et;const Me=St[1];return et.split(` `).map(Ke=>{const ze=Ke.match(/^\s+/);if(ze===null)return Ke;const[se]=ze;return se.length>=Me.length?Ke.slice(Me.length):Ke}).join(` `)}let De=[],We=["
    "];const Ie=new(Qe()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){De.length=0,We=["
      "]}const Pe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function dt(lt,et,St,Me){if(et>=lt.length||lt[et].level<=St)return et;var Ke=lt[et];Me.push("
    • "+Ke.text+""),et++;var ze=[];return et=dt(lt,et,Ke.level,ze),ze.length>0&&(Me.push("
        "),ze.forEach(function(se){Me.push(se)}),Me.push("
      ")),Me.push("
    • "),et=dt(lt,et,St,Me),et}function Ze(){return dt(De,0,0,We),We.push("
    "),We.join("")}const Ce={heading(lt){const et=he.exec(lt);if(Ee+=1,et)return{type:"heading",raw:et[0],depth:et[1].length,text:et[2]}},fences(lt){const et=this.rules.block.fences.exec(lt);if(et){const St=et[0];let Me=Be(St,et[3]||"");const Ke=et[2]?et[2].trim():et[2];if(["latex","katex","math"].indexOf(Ke)>=0){const ze=rt(),se=Me;Me=ze,gt[ze]={type:"block",expression:se}}return{type:"code",raw:St,lang:Ke,text:Me}}}},Te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let _e=0;const rt=()=>`__special_katext_id_${_e++}__`;let gt={};function Pt(){return gt}function ht(){_e=0,gt={}}function it(lt){return lt=lt.replace(Te,(et,St)=>{const Me=rt();return gt[Me]={type:"inline",expression:St},Me}),lt}const nt=Ie.listitem;Ie.listitem=function(lt){return nt(it(lt))};const Fe=Ie.paragraph;Ie.paragraph=function(lt){return Fe(it(lt))};const kt=Ie.tablecell;Ie.tablecell=function(lt,et){return kt(it(lt),et)},Ie.code=function(lt,et,St){const Me=(et||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`

    ${lt}

    `:`
    ${St?lt:(0,xe.escape)(lt,!0)}
    `:'
    '+(St?lt:(0,xe.escape)(lt,!0))+"
    "},Ie.heading=function(lt,et,St){let Me=this.options.headerPrefix+St.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return De.push({anchor:Me,level:et,text:lt}),"'+lt+""},Qe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Qe().use({tokenizer:Ce,renderer:Ie}),$t.ZP=Qe()},86013:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(19248);const xe=tt=>{let Ee;return typeof tt=="object"&&(tt!=null&&tt.clearIcon)?Ee=tt:tt&&(Ee={clearIcon:E.createElement(Qe.Z,null)}),Ee};$t.Z=xe},91882:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Le}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(11592),Ee=ne(26112),Be=ne(22703),De=ne(48755),We=ne(84105),Ie=ne(19563);const he=Ae=>{let{children:ct}=Ae;const{getPrefixCls:ye}=E.useContext(De.E_),ce=ye("breadcrumb");return E.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},ct===""?ct:ct||"/")};he.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=he,Pe=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Uect[Ue]||ce)}function Ze(Ae,ct,ye,ce){if(ye==null)return null;const{className:Ue,onClick:It}=ct,bt=Pe(ct,["className","onClick"]),ge=Object.assign(Object.assign({},(0,Ee.Z)(bt,{data:!0,aria:!0})),{onClick:It});return ce!==void 0?E.createElement("a",Object.assign({},ge,{className:xe()(`${Ae}-link`,Ue),href:ce}),ye):E.createElement("span",Object.assign({},ge,{className:xe()(`${Ae}-link`,Ue)}),ye)}function Ce(Ae,ct){return(ce,Ue,It,bt,ge)=>{if(ct)return ct(ce,Ue,It,bt);const He=dt(ce,Ue);return Ze(Ae,ce,He,ge)}}var Te=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Ue{const{prefixCls:ct,separator:ye="/",children:ce,menu:Ue,overlay:It,dropdownProps:bt,href:ge}=Ae,Ge=(Tt=>{if(Ue||It){const wt=Object.assign({},bt);if(Ue){const Lt=Ue||{},{items:$e}=Lt,At=Te(Lt,["items"]);wt.menu=Object.assign(Object.assign({},At),{items:$e==null?void 0:$e.map((st,ae)=>{var{key:te,title:ee,label:oe,path:ue}=st,re=Te(st,["key","title","label","path"]);let ve=oe!=null?oe:ee;return ue&&(ve=E.createElement("a",{href:`${ge}${ue}`},ve)),Object.assign(Object.assign({},re),{key:te!=null?te:ae,label:ve})})})}else It&&(wt.overlay=It);return E.createElement(Ie.Z,Object.assign({placement:"bottom"},wt),E.createElement("span",{className:`${ct}-overlay-link`},Tt,E.createElement(We.Z,null)))}return Tt})(ce);return Ge!=null?E.createElement(E.Fragment,null,E.createElement("li",null,Ge),ye&&E.createElement(Je,null,ye)):null},rt=Ae=>{const{prefixCls:ct,children:ye,href:ce}=Ae,Ue=Te(Ae,["prefixCls","children","href"]),{getPrefixCls:It}=E.useContext(De.E_),bt=It("breadcrumb",ct);return E.createElement(_e,Object.assign({},Ue,{prefixCls:bt}),Ze(bt,Ue,ye,ce))};rt.__ANT_BREADCRUMB_ITEM=!0;var gt=rt,Pt=ne(36237),ht=ne(63356),it=ne(16931),nt=ne(51636);const Fe=Ae=>{const{componentCls:ct,iconCls:ye,calc:ce}=Ae;return{[ct]:Object.assign(Object.assign({},(0,ht.Wf)(Ae)),{color:Ae.itemColor,fontSize:Ae.fontSize,[ye]:{fontSize:Ae.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ae.linkColor,transition:`color ${Ae.motionDurationMid}`,padding:`0 ${(0,Pt.unit)(Ae.paddingXXS)}`,borderRadius:Ae.borderRadiusSM,height:Ae.fontHeight,display:"inline-block",marginInline:ce(Ae.marginXXS).mul(-1).equal(),"&:hover":{color:Ae.linkHoverColor,backgroundColor:Ae.colorBgTextHover}},(0,ht.Qy)(Ae)),"li:last-child":{color:Ae.lastItemColor},[`${ct}-separator`]:{marginInline:Ae.separatorMargin,color:Ae.separatorColor},[`${ct}-link`]:{[` > ${ye} + span, > ${ye} + a `]:{marginInlineStart:Ae.marginXXS}},[`${ct}-overlay-link`]:{borderRadius:Ae.borderRadiusSM,height:Ae.fontHeight,display:"inline-block",padding:`0 ${(0,Pt.unit)(Ae.paddingXXS)}`,marginInline:ce(Ae.marginXXS).mul(-1).equal(),[`> ${ye}`]:{marginInlineStart:Ae.marginXXS,fontSize:Ae.fontSizeIcon},"&:hover":{color:Ae.linkHoverColor,backgroundColor:Ae.colorBgTextHover,a:{color:Ae.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ae.componentCls}-rtl`]:{direction:"rtl"}})}},kt=Ae=>({itemColor:Ae.colorTextDescription,lastItemColor:Ae.colorText,iconFontSize:Ae.fontSize,linkColor:Ae.colorTextDescription,linkHoverColor:Ae.colorText,separatorColor:Ae.colorTextDescription,separatorMargin:Ae.marginXS});var lt=(0,it.I$)("Breadcrumb",Ae=>{const ct=(0,nt.mergeToken)(Ae,{});return Fe(ct)},kt),et=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Ue{var{breadcrumbName:bt}=It,ge=et(It,["breadcrumbName"]);return Object.assign(Object.assign({},ge),{title:bt})})}),Ue}function Me(Ae,ct){return(0,E.useMemo)(()=>Ae||(ct?ct.map(St):null),[Ae,ct])}var Ke=function(Ae,ct){var ye={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&ct.indexOf(ce)<0&&(ye[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ce=Object.getOwnPropertySymbols(Ae);Ue{if(ct===void 0)return ct;let ye=(ct||"").replace(/^\//,"");return Object.keys(Ae).forEach(ce=>{ye=ye.replace(`:${ce}`,Ae[ce])}),ye},se=Ae=>{const{prefixCls:ct,separator:ye="/",style:ce,className:Ue,rootClassName:It,routes:bt,items:ge,children:He,itemRender:Ge,params:Tt={}}=Ae,wt=Ke(Ae,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:$e,breadcrumb:At}=E.useContext(De.E_);let st;const ae=Lt("breadcrumb",ct),[te,ee,oe]=lt(ae),ue=Me(ge,bt),re=Ce(ae,Ge);if(ue&&ue.length>0){const ft=[],Oe=ge||bt;st=ue.map((Ye,mt)=>{const{path:Bt,key:Et,type:Ut,menu:Wt,overlay:Ht,onClick:ln,className:qt,separator:sn,dropdownProps:Dt}=Ye,tn=ze(Tt,Bt);tn!==void 0&&ft.push(tn);const Vt=Et!=null?Et:mt;if(Ut==="separator")return E.createElement(Je,{key:Vt},sn);const je={},pt=mt===ue.length-1;Wt?je.menu=Wt:Ht&&(je.overlay=Ht);let{href:Ft}=Ye;return ft.length&&tn!==void 0&&(Ft=`#/${ft.join("/")}`),E.createElement(_e,Object.assign({key:Vt},je,(0,Ee.Z)(Ye,{data:!0,aria:!0}),{className:qt,dropdownProps:Dt,href:Ft,separator:pt?"":ye,onClick:ln,prefixCls:ae}),re(Ye,Tt,Oe,ft,Ft))})}else if(He){const ft=(0,tt.Z)(He).length;st=(0,tt.Z)(He).map((Oe,Ye)=>{if(!Oe)return Oe;const mt=Ye===ft-1;return(0,Be.Tm)(Oe,{separator:mt?"":ye,key:Ye})})}const ve=xe()(ae,At==null?void 0:At.className,{[`${ae}-rtl`]:$e==="rtl"},Ue,It,ee,oe),we=Object.assign(Object.assign({},At==null?void 0:At.style),ce);return te(E.createElement("nav",Object.assign({className:ve,style:we},wt),E.createElement("ol",null,st)))};se.Item=gt,se.Separator=Je;var qe=se,Le=qe},62673:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return lt}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(16632),Ee=ne(8654),Be=ne(12919),De=ne(63872),We=ne(48755),Ie=ne(2171),he=ne(83397),Je=ne(56553),dt=E.createContext(null),Ze=ne(36170),Ce=ne(74632),Te=function(et,St){var Me={};for(var Ke in et)Object.prototype.hasOwnProperty.call(et,Ke)&&St.indexOf(Ke)<0&&(Me[Ke]=et[Ke]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ke=Object.getOwnPropertySymbols(et);ze{var Me;const{prefixCls:Ke,className:ze,rootClassName:se,children:qe,indeterminate:Le=!1,style:Ae,onMouseEnter:ct,onMouseLeave:ye,skipGroup:ce=!1,disabled:Ue}=et,It=Te(et,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:bt,direction:ge,checkbox:He}=E.useContext(We.E_),Ge=E.useContext(dt),{isFormItemInput:Tt}=E.useContext(Je.aM),wt=E.useContext(Ie.Z),Lt=(Me=(Ge==null?void 0:Ge.disabled)||Ue)!==null&&Me!==void 0?Me:wt,$e=E.useRef(It.value),At=E.useRef(null),st=(0,Ee.sQ)(St,At);E.useEffect(()=>{Ge==null||Ge.registerValue(It.value)},[]),E.useEffect(()=>{if(!ce)return It.value!==$e.current&&(Ge==null||Ge.cancelValue($e.current),Ge==null||Ge.registerValue(It.value),$e.current=It.value),()=>Ge==null?void 0:Ge.cancelValue(It.value)},[It.value]),E.useEffect(()=>{var Ye;!((Ye=At.current)===null||Ye===void 0)&&Ye.input&&(At.current.input.indeterminate=Le)},[Le]);const ae=bt("checkbox",Ke),te=(0,he.Z)(ae),[ee,oe,ue]=(0,Ze.ZP)(ae,te),re=Object.assign({},It);Ge&&!ce&&(re.onChange=function(){It.onChange&&It.onChange.apply(It,arguments),Ge.toggleOption&&Ge.toggleOption({label:qe,value:It.value})},re.name=Ge.name,re.checked=Ge.value.includes(It.value));const ve=xe()(`${ae}-wrapper`,{[`${ae}-rtl`]:ge==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:Lt,[`${ae}-wrapper-in-form-item`]:Tt},He==null?void 0:He.className,ze,se,ue,te,oe),we=xe()({[`${ae}-indeterminate`]:Le},De.A,oe),[ft,Oe]=(0,Ce.Z)(re.onClick);return ee(E.createElement(Be.Z,{component:"Checkbox",disabled:Lt},E.createElement("label",{className:ve,style:Object.assign(Object.assign({},He==null?void 0:He.style),Ae),onMouseEnter:ct,onMouseLeave:ye,onClick:ft},E.createElement(tt.Z,Object.assign({},re,{onClick:Oe,prefixCls:ae,className:we,disabled:Lt,ref:st})),qe!==void 0&&E.createElement("span",{className:`${ae}-label`},qe))))};var gt=E.forwardRef(_e),Pt=ne(77654),ht=ne(2738),it=function(et,St){var Me={};for(var Ke in et)Object.prototype.hasOwnProperty.call(et,Ke)&&St.indexOf(Ke)<0&&(Me[Ke]=et[Ke]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Ke=Object.getOwnPropertySymbols(et);ze{const{defaultValue:Me,children:Ke,options:ze=[],prefixCls:se,className:qe,rootClassName:Le,style:Ae,onChange:ct}=et,ye=it(et,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:Ue}=E.useContext(We.E_),[It,bt]=E.useState(ye.value||Me||[]),[ge,He]=E.useState([]);E.useEffect(()=>{"value"in ye&&bt(ye.value||[])},[ye.value]);const Ge=E.useMemo(()=>ze.map(we=>typeof we=="string"||typeof we=="number"?{label:we,value:we}:we),[ze]),Tt=we=>{He(ft=>ft.filter(Oe=>Oe!==we))},wt=we=>{He(ft=>[].concat((0,Pt.Z)(ft),[we]))},Lt=we=>{const ft=It.indexOf(we.value),Oe=(0,Pt.Z)(It);ft===-1?Oe.push(we.value):Oe.splice(ft,1),"value"in ye||bt(Oe),ct==null||ct(Oe.filter(Ye=>ge.includes(Ye)).sort((Ye,mt)=>{const Bt=Ge.findIndex(Ut=>Ut.value===Ye),Et=Ge.findIndex(Ut=>Ut.value===mt);return Bt-Et}))},$e=ce("checkbox",se),At=`${$e}-group`,st=(0,he.Z)($e),[ae,te,ee]=(0,Ze.ZP)($e,st),oe=(0,ht.Z)(ye,["value","disabled"]),ue=ze.length?Ge.map(we=>E.createElement(gt,{prefixCls:$e,key:we.value.toString(),disabled:"disabled"in we?we.disabled:ye.disabled,value:we.value,checked:It.includes(we.value),onChange:we.onChange,className:`${At}-item`,style:we.style,title:we.title,id:we.id,required:we.required},we.label)):Ke,re={toggleOption:Lt,value:It,disabled:ye.disabled,name:ye.name,registerValue:wt,cancelValue:Tt},ve=xe()(At,{[`${At}-rtl`]:Ue==="rtl"},qe,Le,ee,st,te);return ae(E.createElement("div",Object.assign({className:ve,style:Ae},oe,{ref:St}),E.createElement(dt.Provider,{value:re},ue)))});const kt=gt;kt.Group=Fe,kt.__ANT_CHECKBOX=!0;var lt=kt},36170:function(on,$t,ne){"use strict";ne.d($t,{C2:function(){return Be}});var E=ne(36237),Qe=ne(63356),xe=ne(51636),tt=ne(16931);const Ee=De=>{const{checkboxCls:We}=De,Ie=`${We}-wrapper`;return[{[`${We}-group`]:Object.assign(Object.assign({},(0,Qe.Wf)(De)),{display:"inline-flex",flexWrap:"wrap",columnGap:De.marginXS,[`> ${De.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,Qe.Wf)(De)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[We]:Object.assign(Object.assign({},(0,Qe.Wf)(De)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:De.borderRadiusSM,alignSelf:"center",[`${We}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${We}-inner`]:Object.assign({},(0,Qe.oN)(De))},[`${We}-inner`]:{boxSizing:"border-box",display:"block",width:De.checkboxSize,height:De.checkboxSize,direction:"ltr",backgroundColor:De.colorBgContainer,border:`${(0,E.unit)(De.lineWidth)} ${De.lineType} ${De.colorBorder}`,borderRadius:De.borderRadiusSM,borderCollapse:"separate",transition:`all ${De.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:De.calc(De.checkboxSize).div(14).mul(5).equal(),height:De.calc(De.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(De.lineWidthBold)} solid ${De.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${De.motionDurationFast} ${De.motionEaseInBack}, opacity ${De.motionDurationFast}`}},"& + span":{paddingInlineStart:De.paddingXS,paddingInlineEnd:De.paddingXS}})},{[` ${Ie}:not(${Ie}-disabled), ${We}:not(${We}-disabled) `]:{[`&:hover ${We}-inner`]:{borderColor:De.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${We}-checked:not(${We}-disabled) ${We}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${We}-checked:not(${We}-disabled):after`]:{borderColor:De.colorPrimaryHover}}},{[`${We}-checked`]:{[`${We}-inner`]:{backgroundColor:De.colorPrimary,borderColor:De.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${De.motionDurationMid} ${De.motionEaseOutBack} ${De.motionDurationFast}`}}},[` ${Ie}-checked:not(${Ie}-disabled), ${We}-checked:not(${We}-disabled) `]:{[`&:hover ${We}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"}}},{[We]:{"&-indeterminate":{[`${We}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:De.calc(De.fontSizeLG).div(2).equal(),height:De.calc(De.fontSizeLG).div(2).equal(),backgroundColor:De.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${We}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorPrimary} !important`}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${We}-disabled`]:{[`&, ${We}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${We}-inner`]:{background:De.colorBgContainerDisabled,borderColor:De.colorBorder,"&:after":{borderColor:De.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:De.colorTextDisabled},[`&${We}-indeterminate ${We}-inner::after`]:{background:De.colorTextDisabled}}}]};function Be(De,We){const Ie=(0,xe.mergeToken)(We,{checkboxCls:`.${De}`,checkboxSize:We.controlInteractiveSize});return[Ee(Ie)]}$t.ZP=(0,tt.I$)("Checkbox",(De,We)=>{let{prefixCls:Ie}=We;return[Be(Ie,De)]})},38406:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(48755),xe=ne(584);const tt=Ee=>{const{componentName:Be}=Ee,{getPrefixCls:De}=(0,E.useContext)(Qe.E_),We=De("empty");switch(Be){case"Table":case"List":return E.createElement(xe.Z,{image:xe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(xe.Z,{image:xe.Z.PRESENTED_IMAGE_SIMPLE,className:`${We}-small`});case"Table.filter":return null;default:return E.createElement(xe.Z,null)}};$t.Z=tt},37285:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ze}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(48755),Ee=ne(36237),Be=ne(63356),De=ne(16931),We=ne(51636);const Ie=Ce=>{const{componentCls:Te,sizePaddingEdgeHorizontal:_e,colorSplit:rt,lineWidth:gt,textPaddingInline:Pt,orientationMargin:ht,verticalMarginInline:it}=Ce;return{[Te]:Object.assign(Object.assign({},(0,Be.Wf)(Ce)),{borderBlockStart:`${(0,Ee.unit)(gt)} solid ${rt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:it,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Ee.unit)(gt)} solid ${rt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Ee.unit)(Ce.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Te}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Ee.unit)(Ce.dividerHorizontalWithTextGutterMargin)} 0`,color:Ce.colorTextHeading,fontWeight:500,fontSize:Ce.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${rt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Ee.unit)(gt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Te}-with-text-start`]:{"&::before":{width:`calc(${ht} * 100%)`},"&::after":{width:`calc(100% - ${ht} * 100%)`}},[`&-horizontal${Te}-with-text-end`]:{"&::before":{width:`calc(100% - ${ht} * 100%)`},"&::after":{width:`calc(${ht} * 100%)`}},[`${Te}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Pt},"&-dashed":{background:"none",borderColor:rt,borderStyle:"dashed",borderWidth:`${(0,Ee.unit)(gt)} 0 0`},[`&-horizontal${Te}-with-text${Te}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Te}-dashed`]:{borderInlineStartWidth:gt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:rt,borderStyle:"dotted",borderWidth:`${(0,Ee.unit)(gt)} 0 0`},[`&-horizontal${Te}-with-text${Te}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Te}-dotted`]:{borderInlineStartWidth:gt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Te}-with-text`]:{color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize},[`&-horizontal${Te}-with-text-start${Te}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Te}-inner-text`]:{paddingInlineStart:_e}},[`&-horizontal${Te}-with-text-end${Te}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Te}-inner-text`]:{paddingInlineEnd:_e}}})}},he=Ce=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ce.marginXS});var Je=(0,De.I$)("Divider",Ce=>{const Te=(0,We.mergeToken)(Ce,{dividerHorizontalWithTextGutterMargin:Ce.margin,dividerHorizontalGutterMargin:Ce.marginLG,sizePaddingEdgeHorizontal:0});return[Ie(Te)]},he,{unitless:{orientationMargin:!0}}),Pe=function(Ce,Te){var _e={};for(var rt in Ce)Object.prototype.hasOwnProperty.call(Ce,rt)&&Te.indexOf(rt)<0&&(_e[rt]=Ce[rt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,rt=Object.getOwnPropertySymbols(Ce);gt{const{getPrefixCls:Te,direction:_e,className:rt,style:gt}=(0,tt.dj)("divider"),{prefixCls:Pt,type:ht="horizontal",orientation:it="center",orientationMargin:nt,className:Fe,rootClassName:kt,children:lt,dashed:et,variant:St="solid",plain:Me,style:Ke}=Ce,ze=Pe(Ce,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),se=Te("divider",Pt),[qe,Le,Ae]=Je(se),ct=!!lt,ye=E.useMemo(()=>it==="left"?_e==="rtl"?"end":"start":it==="right"?_e==="rtl"?"start":"end":it,[_e,it]),ce=ye==="start"&&nt!=null,Ue=ye==="end"&&nt!=null,It=xe()(se,rt,Le,Ae,`${se}-${ht}`,{[`${se}-with-text`]:ct,[`${se}-with-text-${ye}`]:ct,[`${se}-dashed`]:!!et,[`${se}-${St}`]:St!=="solid",[`${se}-plain`]:!!Me,[`${se}-rtl`]:_e==="rtl",[`${se}-no-default-orientation-margin-start`]:ce,[`${se}-no-default-orientation-margin-end`]:Ue},Fe,kt),bt=E.useMemo(()=>typeof nt=="number"?nt:/^\d+$/.test(nt)?Number(nt):nt,[nt]),ge={marginInlineStart:ce?bt:void 0,marginInlineEnd:Ue?bt:void 0};return qe(E.createElement("div",Object.assign({className:It,style:Object.assign(Object.assign({},gt),Ke)},ze,{role:"separator"}),lt&&ht!=="vertical"&&E.createElement("span",{className:`${se}-inner-text`,style:ge},lt)))}},36207:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return ft}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(85899),Ee=ne(72190),Be=ne(43403),De=ne(34280),We=E.createContext(null),Ie=E.createContext({}),he=We,Je=ne(18642),Pe=ne(60499),dt=ne(77900),Ze=ne(10228),Ce=ne(26112),Te=ne(42244),_e=ne(8654),rt=["prefixCls","className","containerRef"],gt=function(Ye){var mt=Ye.prefixCls,Bt=Ye.className,Et=Ye.containerRef,Ut=(0,Te.Z)(Ye,rt),Wt=E.useContext(Ie),Ht=Wt.panel,ln=(0,_e.x1)(Ht,Et);return E.createElement("div",(0,Pe.Z)({className:xe()("".concat(mt,"-content"),Bt),role:"dialog",ref:ln},(0,Ce.Z)(Ye,{aria:!0}),{"aria-modal":"true"},Ut))},Pt=gt,ht=ne(48736);function it(Oe){return typeof Oe=="string"&&String(Number(Oe))===Oe?((0,ht.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Oe)):Oe}function nt(Oe){warning(!("wrapperClassName"in Oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Fe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function kt(Oe,Ye){var mt,Bt,Et,Ut=Oe.prefixCls,Wt=Oe.open,Ht=Oe.placement,ln=Oe.inline,qt=Oe.push,sn=Oe.forceRender,Dt=Oe.autoFocus,tn=Oe.keyboard,Vt=Oe.classNames,je=Oe.rootClassName,pt=Oe.rootStyle,Ft=Oe.zIndex,jt=Oe.className,Ne=Oe.id,ot=Oe.style,yt=Oe.motion,Mt=Oe.width,Kt=Oe.height,cn=Oe.children,Dn=Oe.mask,kn=Oe.maskClosable,un=Oe.maskMotion,bn=Oe.maskClassName,fn=Oe.maskStyle,Gt=Oe.afterOpenChange,Rt=Oe.onClose,_t=Oe.onMouseEnter,Ot=Oe.onMouseOver,an=Oe.onMouseLeave,nn=Oe.onClick,en=Oe.onKeyDown,xn=Oe.onKeyUp,Pn=Oe.styles,Cn=Oe.drawerRender,Nn=E.useRef(),An=E.useRef(),Qn=E.useRef();E.useImperativeHandle(Ye,function(){return Nn.current});var zn=function(Re){var xt=Re.keyCode,Jt=Re.shiftKey;switch(xt){case Ze.Z.TAB:{if(xt===Ze.Z.TAB){if(!Jt&&document.activeElement===Qn.current){var gn;(gn=An.current)===null||gn===void 0||gn.focus({preventScroll:!0})}else if(Jt&&document.activeElement===An.current){var On;(On=Qn.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case Ze.Z.ESC:{Rt&&tn&&(Re.stopPropagation(),Rt(Re));break}}};E.useEffect(function(){if(Wt&&Dt){var Ct;(Ct=Nn.current)===null||Ct===void 0||Ct.focus({preventScroll:!0})}},[Wt]);var Nt=E.useState(!1),Qt=(0,Ee.Z)(Nt,2),En=Qt[0],mn=Qt[1],Xe=E.useContext(he),ut;typeof qt=="boolean"?ut=qt?{}:{distance:0}:ut=qt||{};var ke=(mt=(Bt=(Et=ut)===null||Et===void 0?void 0:Et.distance)!==null&&Bt!==void 0?Bt:Xe==null?void 0:Xe.pushDistance)!==null&&mt!==void 0?mt:180,be=E.useMemo(function(){return{pushDistance:ke,push:function(){mn(!0)},pull:function(){mn(!1)}}},[ke]);E.useEffect(function(){if(Wt){var Ct;Xe==null||(Ct=Xe.push)===null||Ct===void 0||Ct.call(Xe)}else{var Re;Xe==null||(Re=Xe.pull)===null||Re===void 0||Re.call(Xe)}},[Wt]),E.useEffect(function(){return function(){var Ct;Xe==null||(Ct=Xe.pull)===null||Ct===void 0||Ct.call(Xe)}},[]);var fe=Dn&&E.createElement(dt.default,(0,Pe.Z)({key:"mask"},un,{visible:Wt}),function(Ct,Re){var xt=Ct.className,Jt=Ct.style;return E.createElement("div",{className:xe()("".concat(Ut,"-mask"),xt,Vt==null?void 0:Vt.mask,bn),style:(0,tt.Z)((0,tt.Z)((0,tt.Z)({},Jt),fn),Pn==null?void 0:Pn.mask),onClick:kn&&Wt?Rt:void 0,ref:Re})}),pe=typeof yt=="function"?yt(Ht):yt,Ve={};if(En&&ke)switch(Ht){case"top":Ve.transform="translateY(".concat(ke,"px)");break;case"bottom":Ve.transform="translateY(".concat(-ke,"px)");break;case"left":Ve.transform="translateX(".concat(ke,"px)");break;default:Ve.transform="translateX(".concat(-ke,"px)");break}Ht==="left"||Ht==="right"?Ve.width=it(Mt):Ve.height=it(Kt);var Xt={onMouseEnter:_t,onMouseOver:Ot,onMouseLeave:an,onClick:nn,onKeyDown:en,onKeyUp:xn},rn=E.createElement(dt.default,(0,Pe.Z)({key:"panel"},pe,{visible:Wt,forceRender:sn,onVisibleChanged:function(Re){Gt==null||Gt(Re)},removeOnLeave:!1,leavedClassName:"".concat(Ut,"-content-wrapper-hidden")}),function(Ct,Re){var xt=Ct.className,Jt=Ct.style,gn=E.createElement(Pt,(0,Pe.Z)({id:Ne,containerRef:Re,prefixCls:Ut,className:xe()(jt,Vt==null?void 0:Vt.content),style:(0,tt.Z)((0,tt.Z)({},ot),Pn==null?void 0:Pn.content)},(0,Ce.Z)(Oe,{aria:!0}),Xt),cn);return E.createElement("div",(0,Pe.Z)({className:xe()("".concat(Ut,"-content-wrapper"),Vt==null?void 0:Vt.wrapper,xt),style:(0,tt.Z)((0,tt.Z)((0,tt.Z)({},Ve),Jt),Pn==null?void 0:Pn.wrapper)},(0,Ce.Z)(Oe,{data:!0})),Cn?Cn(gn):gn)}),Yt=(0,tt.Z)({},pt);return Ft&&(Yt.zIndex=Ft),E.createElement(he.Provider,{value:be},E.createElement("div",{className:xe()(Ut,"".concat(Ut,"-").concat(Ht),je,(0,Je.Z)((0,Je.Z)({},"".concat(Ut,"-open"),Wt),"".concat(Ut,"-inline"),ln)),style:Yt,tabIndex:-1,ref:Nn,onKeyDown:zn},fe,E.createElement("div",{tabIndex:0,ref:An,style:Fe,"aria-hidden":"true","data-sentinel":"start"}),rn,E.createElement("div",{tabIndex:0,ref:Qn,style:Fe,"aria-hidden":"true","data-sentinel":"end"})))}var lt=E.forwardRef(kt),et=lt,St=function(Ye){var mt=Ye.open,Bt=mt===void 0?!1:mt,Et=Ye.prefixCls,Ut=Et===void 0?"rc-drawer":Et,Wt=Ye.placement,Ht=Wt===void 0?"right":Wt,ln=Ye.autoFocus,qt=ln===void 0?!0:ln,sn=Ye.keyboard,Dt=sn===void 0?!0:sn,tn=Ye.width,Vt=tn===void 0?378:tn,je=Ye.mask,pt=je===void 0?!0:je,Ft=Ye.maskClosable,jt=Ft===void 0?!0:Ft,Ne=Ye.getContainer,ot=Ye.forceRender,yt=Ye.afterOpenChange,Mt=Ye.destroyOnClose,Kt=Ye.onMouseEnter,cn=Ye.onMouseOver,Dn=Ye.onMouseLeave,kn=Ye.onClick,un=Ye.onKeyDown,bn=Ye.onKeyUp,fn=Ye.panelRef,Gt=E.useState(!1),Rt=(0,Ee.Z)(Gt,2),_t=Rt[0],Ot=Rt[1],an=E.useState(!1),nn=(0,Ee.Z)(an,2),en=nn[0],xn=nn[1];(0,De.Z)(function(){xn(!0)},[]);var Pn=en?Bt:!1,Cn=E.useRef(),Nn=E.useRef();(0,De.Z)(function(){Pn&&(Nn.current=document.activeElement)},[Pn]);var An=function(En){var mn;if(Ot(En),yt==null||yt(En),!En&&Nn.current&&!((mn=Cn.current)!==null&&mn!==void 0&&mn.contains(Nn.current))){var Xe;(Xe=Nn.current)===null||Xe===void 0||Xe.focus({preventScroll:!0})}},Qn=E.useMemo(function(){return{panel:fn}},[fn]);if(!ot&&!_t&&!Pn&&Mt)return null;var zn={onMouseEnter:Kt,onMouseOver:cn,onMouseLeave:Dn,onClick:kn,onKeyDown:un,onKeyUp:bn},Nt=(0,tt.Z)((0,tt.Z)({},Ye),{},{open:Pn,prefixCls:Ut,placement:Ht,autoFocus:qt,keyboard:Dt,width:Vt,mask:pt,maskClosable:jt,inline:Ne===!1,afterOpenChange:An,ref:Cn},zn);return E.createElement(Ie.Provider,{value:Qn},E.createElement(Be.Z,{open:Pn||ot||_t,autoDestroy:!1,getContainer:Ne,autoLock:pt&&(Pn||_t)},E.createElement(et,Nt)))},Me=St,Ke=Me,ze=ne(62487),se=ne(75030),qe=ne(86641),Le=ne(55743),Ae=ne(48755),ct=ne(91190),ye=ne(78776),ce=ne(458),It=Oe=>{var Ye,mt;const{prefixCls:Bt,title:Et,footer:Ut,extra:Wt,loading:Ht,onClose:ln,headerStyle:qt,bodyStyle:sn,footerStyle:Dt,children:tn,classNames:Vt,styles:je}=Oe,pt=(0,Ae.dj)("drawer"),Ft=E.useCallback(Mt=>E.createElement("button",{type:"button",onClick:ln,"aria-label":"Close",className:`${Bt}-close`},Mt),[ln]),[jt,Ne]=(0,ye.Z)((0,ye.w)(Oe),(0,ye.w)(pt),{closable:!0,closeIconRender:Ft}),ot=E.useMemo(()=>{var Mt,Kt;return!Et&&!jt?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Mt=pt.styles)===null||Mt===void 0?void 0:Mt.header),qt),je==null?void 0:je.header),className:xe()(`${Bt}-header`,{[`${Bt}-header-close-only`]:jt&&!Et&&!Wt},(Kt=pt.classNames)===null||Kt===void 0?void 0:Kt.header,Vt==null?void 0:Vt.header)},E.createElement("div",{className:`${Bt}-header-title`},Ne,Et&&E.createElement("div",{className:`${Bt}-title`},Et)),Wt&&E.createElement("div",{className:`${Bt}-extra`},Wt))},[jt,Ne,Wt,qt,Bt,Et]),yt=E.useMemo(()=>{var Mt,Kt;if(!Ut)return null;const cn=`${Bt}-footer`;return E.createElement("div",{className:xe()(cn,(Mt=pt.classNames)===null||Mt===void 0?void 0:Mt.footer,Vt==null?void 0:Vt.footer),style:Object.assign(Object.assign(Object.assign({},(Kt=pt.styles)===null||Kt===void 0?void 0:Kt.footer),Dt),je==null?void 0:je.footer)},Ut)},[Ut,Dt,Bt]);return E.createElement(E.Fragment,null,ot,E.createElement("div",{className:xe()(`${Bt}-body`,Vt==null?void 0:Vt.body,(Ye=pt.classNames)===null||Ye===void 0?void 0:Ye.body),style:Object.assign(Object.assign(Object.assign({},(mt=pt.styles)===null||mt===void 0?void 0:mt.body),sn),je==null?void 0:je.body)},Ht?E.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Bt}-body-skeleton`}):tn),yt)},bt=ne(36237),ge=ne(63356),He=ne(16931),Ge=ne(51636);const Tt=Oe=>{const Ye="100%";return{left:`translateX(-${Ye})`,right:`translateX(${Ye})`,top:`translateY(-${Ye})`,bottom:`translateY(${Ye})`}[Oe]},wt=(Oe,Ye)=>({"&-enter, &-appear":Object.assign(Object.assign({},Oe),{"&-active":Ye}),"&-leave":Object.assign(Object.assign({},Ye),{"&-active":Oe})}),Lt=(Oe,Ye)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ye}`}}},wt({opacity:Oe},{opacity:1})),$e=(Oe,Ye)=>[Lt(.7,Ye),wt({transform:Tt(Oe)},{transform:"none"})];var st=Oe=>{const{componentCls:Ye,motionDurationSlow:mt}=Oe;return{[Ye]:{[`${Ye}-mask-motion`]:Lt(0,mt),[`${Ye}-panel-motion`]:["left","right","top","bottom"].reduce((Bt,Et)=>Object.assign(Object.assign({},Bt),{[`&-${Et}`]:$e(Et,mt)}),{})}}};const ae=Oe=>{const{borderRadiusSM:Ye,componentCls:mt,zIndexPopup:Bt,colorBgMask:Et,colorBgElevated:Ut,motionDurationSlow:Wt,motionDurationMid:Ht,paddingXS:ln,padding:qt,paddingLG:sn,fontSizeLG:Dt,lineHeightLG:tn,lineWidth:Vt,lineType:je,colorSplit:pt,marginXS:Ft,colorIcon:jt,colorIconHover:Ne,colorBgTextHover:ot,colorBgTextActive:yt,colorText:Mt,fontWeightStrong:Kt,footerPaddingBlock:cn,footerPaddingInline:Dn,calc:kn}=Oe,un=`${mt}-content-wrapper`;return{[mt]:{position:"fixed",inset:0,zIndex:Bt,pointerEvents:"none",color:Mt,"&-pure":{position:"relative",background:Ut,display:"flex",flexDirection:"column",[`&${mt}-left`]:{boxShadow:Oe.boxShadowDrawerLeft},[`&${mt}-right`]:{boxShadow:Oe.boxShadowDrawerRight},[`&${mt}-top`]:{boxShadow:Oe.boxShadowDrawerUp},[`&${mt}-bottom`]:{boxShadow:Oe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${mt}-mask`]:{position:"absolute",inset:0,zIndex:Bt,background:Et,pointerEvents:"auto"},[un]:{position:"absolute",zIndex:Bt,maxWidth:"100vw",transition:`all ${Wt}`,"&-hidden":{display:"none"}},[`&-left > ${un}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Oe.boxShadowDrawerLeft},[`&-right > ${un}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Oe.boxShadowDrawerRight},[`&-top > ${un}`]:{top:0,insetInline:0,boxShadow:Oe.boxShadowDrawerUp},[`&-bottom > ${un}`]:{bottom:0,insetInline:0,boxShadow:Oe.boxShadowDrawerDown},[`${mt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ut,pointerEvents:"auto"},[`${mt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,bt.unit)(qt)} ${(0,bt.unit)(sn)}`,fontSize:Dt,lineHeight:tn,borderBottom:`${(0,bt.unit)(Vt)} ${je} ${pt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${mt}-extra`]:{flex:"none"},[`${mt}-close`]:Object.assign({display:"inline-flex",width:kn(Dt).add(ln).equal(),height:kn(Dt).add(ln).equal(),borderRadius:Ye,justifyContent:"center",alignItems:"center",marginInlineEnd:Ft,color:jt,fontWeight:Kt,fontSize:Dt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ht}`,textRendering:"auto","&:hover":{color:Ne,backgroundColor:ot,textDecoration:"none"},"&:active":{backgroundColor:yt}},(0,ge.Qy)(Oe)),[`${mt}-title`]:{flex:1,margin:0,fontWeight:Oe.fontWeightStrong,fontSize:Dt,lineHeight:tn},[`${mt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:sn,overflow:"auto",[`${mt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${mt}-footer`]:{flexShrink:0,padding:`${(0,bt.unit)(cn)} ${(0,bt.unit)(Dn)}`,borderTop:`${(0,bt.unit)(Vt)} ${je} ${pt}`},"&-rtl":{direction:"rtl"}}}},te=Oe=>({zIndexPopup:Oe.zIndexPopupBase,footerPaddingBlock:Oe.paddingXS,footerPaddingInline:Oe.padding});var ee=(0,He.I$)("Drawer",Oe=>{const Ye=(0,Ge.mergeToken)(Oe,{});return[ae(Ye),st(Ye)]},te),oe=function(Oe,Ye){var mt={};for(var Bt in Oe)Object.prototype.hasOwnProperty.call(Oe,Bt)&&Ye.indexOf(Bt)<0&&(mt[Bt]=Oe[Bt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Bt=Object.getOwnPropertySymbols(Oe);Et{var Ye;const{rootClassName:mt,width:Bt,height:Et,size:Ut="default",mask:Wt=!0,push:Ht=re,open:ln,afterOpenChange:qt,onClose:sn,prefixCls:Dt,getContainer:tn,style:Vt,className:je,visible:pt,afterVisibleChange:Ft,maskStyle:jt,drawerStyle:Ne,contentWrapperStyle:ot}=Oe,yt=oe(Oe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Mt,getPrefixCls:Kt,direction:cn,className:Dn,style:kn,classNames:un,styles:bn}=(0,Ae.dj)("drawer"),fn=Kt("drawer",Dt),[Gt,Rt,_t]=ee(fn),Ot=tn===void 0&&Mt?()=>Mt(document.body):tn,an=xe()({"no-mask":!Wt,[`${fn}-rtl`]:cn==="rtl"},mt,Rt,_t),nn=E.useMemo(()=>Bt!=null?Bt:Ut==="large"?736:378,[Bt,Ut]),en=E.useMemo(()=>Et!=null?Et:Ut==="large"?736:378,[Et,Ut]),xn={motionName:(0,qe.m)(fn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=Nt=>({motionName:(0,qe.m)(fn,`panel-motion-${Nt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Cn=(0,ct.H)(),[Nn,An]=(0,se.Cn)("Drawer",yt.zIndex),{classNames:Qn={},styles:zn={}}=yt;return Gt(E.createElement(ze.Z,{form:!0,space:!0},E.createElement(Le.Z.Provider,{value:An},E.createElement(Ke,Object.assign({prefixCls:fn,onClose:sn,maskMotion:xn,motion:Pn},yt,{classNames:{mask:xe()(Qn.mask,un.mask),content:xe()(Qn.content,un.content),wrapper:xe()(Qn.wrapper,un.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},zn.mask),jt),bn.mask),content:Object.assign(Object.assign(Object.assign({},zn.content),Ne),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},zn.wrapper),ot),bn.wrapper)},open:ln!=null?ln:pt,mask:Wt,push:Ht,width:nn,height:en,style:Object.assign(Object.assign({},kn),Vt),className:xe()(Dn,je),rootClassName:an,getContainer:Ot,afterOpenChange:qt!=null?qt:Ft,panelRef:Cn,zIndex:Nn}),E.createElement(It,Object.assign({prefixCls:fn},yt,{onClose:sn}))))))},we=Oe=>{const{prefixCls:Ye,style:mt,className:Bt,placement:Et="right"}=Oe,Ut=oe(Oe,["prefixCls","style","className","placement"]),{getPrefixCls:Wt}=E.useContext(Ae.E_),Ht=Wt("drawer",Ye),[ln,qt,sn]=ee(Ht),Dt=xe()(Ht,`${Ht}-pure`,`${Ht}-${Et}`,qt,sn,Bt);return ln(E.createElement("div",{className:Dt,style:mt},E.createElement(It,Object.assign({prefixCls:Ht},Ut))))};ve._InternalPanelDoNotUseOrYouWillBeFired=we;var ft=ve},19563:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return bt}});var E=ne(59301),Qe=ne(33853),xe=ne(38819),tt=ne(92310),Ee=ne.n(tt),Be=ne(96478),De=ne(6089),We=ne(18929),Ie=ne(2738),he=ne(75030),Pe=ge=>typeof ge!="object"&&typeof ge!="function"||ge===null,dt=ne(52838),Ze=ne(45915),Ce=ne(22703),Te=ne(32383),_e=ne(55743),rt=ne(48755),gt=ne(83397),Pt=ne(93041),ht=ne(78857),it=ne(57700),nt=ne(36237),Fe=ne(63356),kt=ne(46e3),lt=ne(93873),et=ne(34925),St=ne(37645),Me=ne(36305),Ke=ne(16931),ze=ne(51636),qe=ge=>{const{componentCls:He,menuCls:Ge,colorError:Tt,colorTextLightSolid:wt}=ge,Lt=`${Ge}-item`;return{[`${He}, ${He}-menu-submenu`]:{[`${Ge} ${Lt}`]:{[`&${Lt}-danger:not(${Lt}-disabled)`]:{color:Tt,"&:hover":{color:wt,backgroundColor:Tt}}}}}};const Le=ge=>{const{componentCls:He,menuCls:Ge,zIndexPopup:Tt,dropdownArrowDistance:wt,sizePopupArrow:Lt,antCls:$e,iconCls:At,motionDurationMid:st,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:re,colorBgElevated:ve}=ge;return[{[He]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Tt,display:"block","&::before":{position:"absolute",insetBlock:ge.calc(Lt).div(2).sub(wt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${$e}-btn`]:{[`& > ${At}-down, & > ${$e}-btn-icon > ${At}-down`]:{fontSize:ue}},[`${He}-wrap`]:{position:"relative",[`${$e}-btn > ${At}-down`]:{fontSize:ue},[`${At}-down::before`]:{transition:`transform ${st}`}},[`${He}-wrap-open`]:{[`${At}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${$e}-slide-down-enter${$e}-slide-down-enter-active${He}-placement-bottomLeft, &${$e}-slide-down-appear${$e}-slide-down-appear-active${He}-placement-bottomLeft, &${$e}-slide-down-enter${$e}-slide-down-enter-active${He}-placement-bottom, &${$e}-slide-down-appear${$e}-slide-down-appear-active${He}-placement-bottom, &${$e}-slide-down-enter${$e}-slide-down-enter-active${He}-placement-bottomRight, &${$e}-slide-down-appear${$e}-slide-down-appear-active${He}-placement-bottomRight`]:{animationName:kt.fJ},[`&${$e}-slide-up-enter${$e}-slide-up-enter-active${He}-placement-topLeft, &${$e}-slide-up-appear${$e}-slide-up-appear-active${He}-placement-topLeft, &${$e}-slide-up-enter${$e}-slide-up-enter-active${He}-placement-top, &${$e}-slide-up-appear${$e}-slide-up-appear-active${He}-placement-top, &${$e}-slide-up-enter${$e}-slide-up-enter-active${He}-placement-topRight, &${$e}-slide-up-appear${$e}-slide-up-appear-active${He}-placement-topRight`]:{animationName:kt.Qt},[`&${$e}-slide-down-leave${$e}-slide-down-leave-active${He}-placement-bottomLeft, &${$e}-slide-down-leave${$e}-slide-down-leave-active${He}-placement-bottom, &${$e}-slide-down-leave${$e}-slide-down-leave-active${He}-placement-bottomRight`]:{animationName:kt.Uw},[`&${$e}-slide-up-leave${$e}-slide-up-leave-active${He}-placement-topLeft, &${$e}-slide-up-leave${$e}-slide-up-leave-active${He}-placement-top, &${$e}-slide-up-leave${$e}-slide-up-leave-active${He}-placement-topRight`]:{animationName:kt.ly}}},(0,St.ZP)(ge,ve,{arrowPlacement:{top:!0,bottom:!0}}),{[`${He} ${Ge}`]:{position:"relative",margin:0},[`${Ge}-submenu-popup`]:{position:"absolute",zIndex:Tt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${He}, ${He}-menu-submenu`]:Object.assign(Object.assign({},(0,Fe.Wf)(ge)),{[Ge]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:ge.borderRadiusLG,outline:"none",boxShadow:ge.boxShadowSecondary},(0,Fe.Qy)(ge)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ge}-item-group-title`]:{padding:`${(0,nt.unit)(ae)} ${(0,nt.unit)(re)}`,color:ge.colorTextDescription,transition:`all ${st}`},[`${Ge}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ge}-item-icon`]:{minWidth:te,marginInlineEnd:ge.marginXS,fontSize:ge.fontSizeSM},[`${Ge}-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:'""'}},[`${Ge}-item-extra`]:{paddingInlineStart:ge.padding,marginInlineStart:"auto",fontSize:ge.fontSizeSM,color:ge.colorTextDescription}},[`${Ge}-item, ${Ge}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,nt.unit)(ae)} ${(0,nt.unit)(re)}`,color:ge.colorText,fontWeight:"normal",fontSize:te,lineHeight:ge.lineHeight,cursor:"pointer",transition:`all ${st}`,borderRadius:ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:ge.controlItemBgHover}},(0,Fe.Qy)(ge)),{"&-selected":{color:ge.colorPrimary,backgroundColor:ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:ge.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,nt.unit)(ge.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ge.colorSplit},[`${He}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ge.paddingXS,[`${He}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ge.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${Ge}-item-group-list`]:{margin:`0 ${(0,nt.unit)(ge.marginXS)}`,padding:0,listStyle:"none"},[`${Ge}-submenu-title`]:{paddingInlineEnd:ge.calc(re).add(ge.fontSizeSM).equal()},[`${Ge}-submenu-vertical`]:{position:"relative"},[`${Ge}-submenu${Ge}-submenu-disabled ${He}-menu-submenu-title`]:{[`&, ${He}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:ve,cursor:"not-allowed"}},[`${Ge}-submenu-selected ${He}-menu-submenu-title`]:{color:ge.colorPrimary}})})},[(0,kt.oN)(ge,"slide-up"),(0,kt.oN)(ge,"slide-down"),(0,lt.Fm)(ge,"move-up"),(0,lt.Fm)(ge,"move-down"),(0,et._y)(ge,"zoom-big")]]},Ae=ge=>Object.assign(Object.assign({zIndexPopup:ge.zIndexPopupBase+50,paddingBlock:(ge.controlHeight-ge.fontSize*ge.lineHeight)/2},(0,St.wZ)({contentRadius:ge.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(ge));var ct=(0,Ke.I$)("Dropdown",ge=>{const{marginXXS:He,sizePopupArrow:Ge,paddingXXS:Tt,componentCls:wt}=ge,Lt=(0,ze.mergeToken)(ge,{menuCls:`${wt}-menu`,dropdownArrowDistance:ge.calc(Ge).div(2).add(He).equal(),dropdownEdgeChildPadding:Tt});return[Le(Lt),qe(Lt)]},Ae,{resetStyle:!1});const ye=null,ce=ge=>{var He;const{menu:Ge,arrow:Tt,prefixCls:wt,children:Lt,trigger:$e,disabled:At,dropdownRender:st,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:ue,onOpenChange:re,visible:ve,onVisibleChange:we,mouseEnterDelay:ft=.15,mouseLeaveDelay:Oe=.1,autoAdjustOverflow:Ye=!0,placement:mt="",overlay:Bt,transitionName:Et}=ge,{getPopupContainer:Ut,getPrefixCls:Wt,direction:Ht,dropdown:ln}=E.useContext(rt.E_),qt=(0,Te.ln)("Dropdown"),sn=E.useMemo(()=>{const Ot=Wt();return Et!==void 0?Et:mt.includes("top")?`${Ot}-slide-down`:`${Ot}-slide-up`},[Wt,mt,Et]),Dt=E.useMemo(()=>mt?mt.includes("Center")?mt.slice(0,mt.indexOf("Center")):mt:Ht==="rtl"?"bottomRight":"bottomLeft",[mt,Ht]),tn=Wt("dropdown",wt),Vt=(0,gt.Z)(tn),[je,pt,Ft]=ct(tn,Vt),[,jt]=(0,it.ZP)(),Ne=E.Children.only(Pe(Lt)?E.createElement("span",null,Lt):Lt),ot=(0,Ce.Tm)(Ne,{className:Ee()(`${tn}-trigger`,{[`${tn}-rtl`]:Ht==="rtl"},Ne.props.className),disabled:(He=Ne.props.disabled)!==null&&He!==void 0?He:At}),yt=At?[]:$e,Mt=!!(yt!=null&&yt.includes("contextMenu")),[Kt,cn]=(0,We.Z)(!1,{value:ue!=null?ue:ve}),Dn=(0,De.Z)(Ot=>{re==null||re(Ot,{source:"trigger"}),we==null||we(Ot),cn(Ot)}),kn=Ee()(te,ee,pt,Ft,Vt,ln==null?void 0:ln.className,{[`${tn}-rtl`]:Ht==="rtl"}),un=(0,dt.Z)({arrowPointAtCenter:typeof Tt=="object"&&Tt.pointAtCenter,autoAdjustOverflow:Ye,offset:jt.marginXXS,arrowWidth:Tt?jt.sizePopupArrow:0,borderRadius:jt.borderRadius}),bn=E.useCallback(()=>{Ge!=null&&Ge.selectable&&(Ge!=null&&Ge.multiple)||(re==null||re(!1,{source:"menu"}),cn(!1))},[Ge==null?void 0:Ge.selectable,Ge==null?void 0:Ge.multiple]),fn=()=>{let Ot;return Ge!=null&&Ge.items?Ot=E.createElement(Pt.default,Object.assign({},Ge)):typeof Bt=="function"?Ot=Bt():Ot=Bt,st&&(Ot=st(Ot)),Ot=E.Children.only(typeof Ot=="string"?E.createElement("span",null,Ot):Ot),E.createElement(ht.J,{prefixCls:`${tn}-menu`,rootClassName:Ee()(Ft,Vt),expandIcon:E.createElement("span",{className:`${tn}-menu-submenu-arrow`},Ht==="rtl"?E.createElement(Qe.Z,{className:`${tn}-menu-submenu-arrow-icon`}):E.createElement(xe.Z,{className:`${tn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:an=>{let{mode:nn}=an}},Ot)},[Gt,Rt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let _t=E.createElement(Be.Z,Object.assign({alignPoint:Mt},(0,Ie.Z)(ge,["rootClassName"]),{mouseEnterDelay:ft,mouseLeaveDelay:Oe,visible:Kt,builtinPlacements:un,arrow:!!Tt,overlayClassName:kn,prefixCls:tn,getPopupContainer:ae||Ut,transitionName:sn,trigger:yt,overlay:fn,placement:Dt,onVisibleChange:Dn,overlayStyle:Object.assign(Object.assign(Object.assign({},ln==null?void 0:ln.style),oe),{zIndex:Gt})}),ot);return Gt&&(_t=E.createElement(_e.Z.Provider,{value:Rt},_t)),je(_t)},Ue=(0,Ze.Z)(ce,"align",void 0,"dropdown",ge=>ge),It=ge=>E.createElement(Ue,Object.assign({},ge),E.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=It;var bt=ce},75727:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Ze}});var E=ne(19563),Qe=ne(59301),xe=ne(18785),tt=ne(92310),Ee=ne.n(tt),Be=ne(7939),De=ne(48755),We=ne(44104),Ie=ne(70045),he=function(Ce,Te){var _e={};for(var rt in Ce)Object.prototype.hasOwnProperty.call(Ce,rt)&&Te.indexOf(rt)<0&&(_e[rt]=Ce[rt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,rt=Object.getOwnPropertySymbols(Ce);gt{const{getPopupContainer:Te,getPrefixCls:_e,direction:rt}=Qe.useContext(De.E_),{prefixCls:gt,type:Pt="default",danger:ht,disabled:it,loading:nt,onClick:Fe,htmlType:kt,children:lt,className:et,menu:St,arrow:Me,autoFocus:Ke,overlay:ze,trigger:se,align:qe,open:Le,onOpenChange:Ae,placement:ct,getPopupContainer:ye,href:ce,icon:Ue=Qe.createElement(xe.Z,null),title:It,buttonsRender:bt=ft=>ft,mouseEnterDelay:ge,mouseLeaveDelay:He,overlayClassName:Ge,overlayStyle:Tt,destroyPopupOnHide:wt,dropdownRender:Lt}=Ce,$e=he(Ce,["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"]),At=_e("dropdown",gt),st=`${At}-button`,ae={menu:St,arrow:Me,autoFocus:Ke,align:qe,disabled:it,trigger:it?[]:se,onOpenChange:Ae,getPopupContainer:ye||Te,mouseEnterDelay:ge,mouseLeaveDelay:He,overlayClassName:Ge,overlayStyle:Tt,destroyPopupOnHide:wt,dropdownRender:Lt},{compactSize:te,compactItemClassnames:ee}=(0,Ie.ri)(At,rt),oe=Ee()(st,ee,et);"overlay"in Ce&&(ae.overlay=ze),"open"in Ce&&(ae.open=Le),"placement"in Ce?ae.placement=ct:ae.placement=rt==="rtl"?"bottomLeft":"bottomRight";const ue=Qe.createElement(Be.ZP,{type:Pt,danger:ht,disabled:it,loading:nt,onClick:Fe,htmlType:kt,href:ce,title:It},lt),re=Qe.createElement(Be.ZP,{type:Pt,danger:ht,icon:Ue}),[ve,we]=bt([ue,re]);return Qe.createElement(We.Z.Compact,Object.assign({className:oe,size:te,block:!0},$e),ve,Qe.createElement(E.Z,Object.assign({},ae),we))};Je.__ANT_BUTTON=!0;var Pe=Je;const dt=E.Z;dt.Button=Pe;var Ze=dt},584:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Pt}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(9017),Ee=ne(17835),Be=ne(57700),We=()=>{const[,ht]=(0,Be.ZP)(),[it]=(0,tt.Z)("Empty"),Fe=new Ee.FastColor(ht.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:Fe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(it==null?void 0:it.description)||"Empty"),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(24 31.67)"},E.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),E.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"}),E.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)"}),E.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"}),E.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"})),E.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"}),E.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},E.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),E.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,ht]=(0,Be.ZP)(),[it]=(0,tt.Z)("Empty"),{colorFill:nt,colorFillTertiary:Fe,colorFillQuaternary:kt,colorBgContainer:lt}=ht,{borderColor:et,shadowColor:St,contentColor:Me}=(0,E.useMemo)(()=>({borderColor:new Ee.FastColor(nt).onBackground(lt).toHexString(),shadowColor:new Ee.FastColor(Fe).onBackground(lt).toHexString(),contentColor:new Ee.FastColor(kt).onBackground(lt).toHexString()}),[nt,Fe,kt,lt]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(it==null?void 0:it.description)||"Empty"),E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{fill:St,cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{fillRule:"nonzero",stroke:et},E.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"}),E.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:Me}))))},Je=ne(16931),Pe=ne(51636);const dt=ht=>{const{componentCls:it,margin:nt,marginXS:Fe,marginXL:kt,fontSize:lt,lineHeight:et}=ht;return{[it]:{marginInline:Fe,fontSize:lt,lineHeight:et,textAlign:"center",[`${it}-image`]:{height:ht.emptyImgHeight,marginBottom:Fe,opacity:ht.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${it}-description`]:{color:ht.colorTextDescription},[`${it}-footer`]:{marginTop:nt},"&-normal":{marginBlock:kt,color:ht.colorTextDescription,[`${it}-description`]:{color:ht.colorTextDescription},[`${it}-image`]:{height:ht.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:ht.colorTextDescription,[`${it}-image`]:{height:ht.emptyImgHeightSM}}}}};var Ze=(0,Je.I$)("Empty",ht=>{const{componentCls:it,controlHeightLG:nt,calc:Fe}=ht,kt=(0,Pe.mergeToken)(ht,{emptyImgCls:`${it}-img`,emptyImgHeight:Fe(nt).mul(2.5).equal(),emptyImgHeightMD:nt,emptyImgHeightSM:Fe(nt).mul(.875).equal()});return[dt(kt)]}),Ce=ne(48755),Te=function(ht,it){var nt={};for(var Fe in ht)Object.prototype.hasOwnProperty.call(ht,Fe)&&it.indexOf(Fe)<0&&(nt[Fe]=ht[Fe]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Fe=Object.getOwnPropertySymbols(ht);kt{const{className:it,rootClassName:nt,prefixCls:Fe,image:kt=_e,description:lt,children:et,imageStyle:St,style:Me,classNames:Ke,styles:ze}=ht,se=Te(ht,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:qe,direction:Le,className:Ae,style:ct,classNames:ye,styles:ce}=(0,Ce.dj)("empty"),Ue=qe("empty",Fe),[It,bt,ge]=Ze(Ue),[He]=(0,tt.Z)("Empty"),Ge=typeof lt!="undefined"?lt:He==null?void 0:He.description,Tt=typeof Ge=="string"?Ge:"empty";let wt=null;return typeof kt=="string"?wt=E.createElement("img",{alt:Tt,src:kt}):wt=kt,It(E.createElement("div",Object.assign({className:xe()(bt,ge,Ue,Ae,{[`${Ue}-normal`]:kt===rt,[`${Ue}-rtl`]:Le==="rtl"},it,nt,ye.root,Ke==null?void 0:Ke.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),ct),ze==null?void 0:ze.root),Me)},se),E.createElement("div",{className:xe()(`${Ue}-image`,ye.image,Ke==null?void 0:Ke.image),style:Object.assign(Object.assign(Object.assign({},St),ce.image),ze==null?void 0:ze.image)},wt),Ge&&E.createElement("div",{className:xe()(`${Ue}-description`,ye.description,Ke==null?void 0:Ke.description),style:Object.assign(Object.assign({},ce.description),ze==null?void 0:ze.description)},Ge),et&&E.createElement("div",{className:xe()(`${Ue}-footer`,ye.footer,Ke==null?void 0:Ke.footer),style:Object.assign(Object.assign({},ce.footer),ze==null?void 0:ze.footer)},et)))};gt.PRESENTED_IMAGE_DEFAULT=_e,gt.PRESENTED_IMAGE_SIMPLE=rt;var Pt=gt},28284:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return ut}});var E=ne(56553),Qe=ne(77654),xe=ne(59301),tt=ne(92310),Ee=ne.n(tt),Be=ne(77900),De=ne(86641),We=ne(83397);function Ie(ke){const[be,fe]=xe.useState(ke);return xe.useEffect(()=>{const pe=setTimeout(()=>{fe(ke)},ke.length?0:10);return()=>{clearTimeout(pe)}},[ke]),be}var he=ne(36237),Je=ne(63356),Pe=ne(34925),dt=ne(34961),Ze=ne(51636),Ce=ne(16931),_e=ke=>{const{componentCls:be}=ke,fe=`${be}-show-help`,pe=`${be}-show-help-item`;return{[fe]:{transition:`opacity ${ke.motionDurationFast} ${ke.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[pe]:{overflow:"hidden",transition:`height ${ke.motionDurationFast} ${ke.motionEaseInOut}, opacity ${ke.motionDurationFast} ${ke.motionEaseInOut}, transform ${ke.motionDurationFast} ${ke.motionEaseInOut} !important`,[`&${pe}-appear, &${pe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${pe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const rt=ke=>({legend:{display:"block",width:"100%",marginBottom:ke.marginLG,padding:0,color:ke.colorTextDescription,fontSize:ke.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(ke.lineWidth)} ${ke.lineType} ${ke.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,he.unit)(ke.controlOutlineWidth)} ${ke.controlOutline}`},output:{display:"block",paddingTop:15,color:ke.colorText,fontSize:ke.fontSize,lineHeight:ke.lineHeight}}),gt=(ke,be)=>{const{formItemCls:fe}=ke;return{[fe]:{[`${fe}-label > label`]:{height:be},[`${fe}-control-input`]:{minHeight:be}}}},Pt=ke=>{const{componentCls:be}=ke;return{[ke.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(ke)),rt(ke)),{[`${be}-text`]:{display:"inline-block",paddingInlineEnd:ke.paddingSM},"&-small":Object.assign({},gt(ke,ke.controlHeightSM)),"&-large":Object.assign({},gt(ke,ke.controlHeightLG))})}},ht=ke=>{const{formItemCls:be,iconCls:fe,rootPrefixCls:pe,antCls:Ve,labelRequiredMarkColor:Xt,labelColor:rn,labelFontSize:Yt,labelHeight:Ct,labelColonMarginInlineStart:Re,labelColonMarginInlineEnd:xt,itemMarginBottom:Jt}=ke;return{[be]:Object.assign(Object.assign({},(0,Je.Wf)(ke)),{marginBottom:Jt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${Ve}-row`]:{display:"none"},"&-has-warning":{[`${be}-split`]:{color:ke.colorError}},"&-has-error":{[`${be}-split`]:{color:ke.colorWarning}},[`${be}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ke.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ct,color:rn,fontSize:Yt,[`> ${fe}`]:{fontSize:ke.fontSize,verticalAlign:"top"},[`&${be}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ke.marginXXS,color:Xt,fontSize:ke.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${be}-required-mark-hidden, &${be}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${be}-optional`]:{display:"inline-block",marginInlineStart:ke.marginXXS,color:ke.colorTextDescription,[`&${be}-required-mark-hidden`]:{display:"none"}},[`${be}-tooltip`]:{color:ke.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ke.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Re,marginInlineEnd:xt},[`&${be}-no-colon::after`]:{content:'"\\a0"'}}},[`${be}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${pe}-col-'"]):not([class*="' ${pe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ke.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[be]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ke.colorTextDescription,fontSize:ke.fontSize,lineHeight:ke.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ke.controlHeightSM,transition:`color ${ke.motionDurationMid} ${ke.motionEaseOut}`},"&-explain":{"&-error":{color:ke.colorError},"&-warning":{color:ke.colorWarning}}},[`&-with-help ${be}-explain`]:{height:"auto",opacity:1},[`${be}-feedback-icon`]:{fontSize:ke.fontSize,textAlign:"center",visibility:"visible",animationName:Pe.kr,animationDuration:ke.motionDurationMid,animationTimingFunction:ke.motionEaseOutBack,pointerEvents:"none","&-success":{color:ke.colorSuccess},"&-error":{color:ke.colorError},"&-warning":{color:ke.colorWarning},"&-validating":{color:ke.colorPrimary}}})}},it=(ke,be)=>{const{formItemCls:fe}=ke;return{[`${be}-horizontal`]:{[`${fe}-label`]:{flexGrow:0},[`${fe}-control`]:{flex:"1 1 0",minWidth:0},[`${fe}-label[class$='-24'], ${fe}-label[class*='-24 ']`]:{[`& + ${fe}-control`]:{minWidth:"unset"}}}}},nt=ke=>{const{componentCls:be,formItemCls:fe,inlineItemMarginBottom:pe}=ke;return{[`${be}-inline`]:{display:"flex",flexWrap:"wrap",[fe]:{flex:"none",marginInlineEnd:ke.margin,marginBottom:pe,"&-row":{flexWrap:"nowrap"},[`> ${fe}-label, > ${fe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${fe}-label`]:{flex:"none"},[`${be}-text`]:{display:"inline-block"},[`${fe}-has-feedback`]:{display:"inline-block"}}}}},Fe=ke=>({padding:ke.verticalLabelPadding,margin:ke.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kt=ke=>{const{componentCls:be,formItemCls:fe,rootPrefixCls:pe}=ke;return{[`${fe} ${fe}-label`]:Fe(ke),[`${be}:not(${be}-inline)`]:{[fe]:{flexWrap:"wrap",[`${fe}-label, ${fe}-control`]:{[`&:not([class*=" ${pe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},lt=ke=>{const{componentCls:be,formItemCls:fe,antCls:pe}=ke;return{[`${be}-vertical`]:{[`${fe}:not(${fe}-horizontal)`]:{[`${fe}-row`]:{flexDirection:"column"},[`${fe}-label > label`]:{height:"auto"},[`${fe}-control`]:{width:"100%"},[`${fe}-label, ${pe}-col-24${fe}-label, ${pe}-col-xl-24${fe}-label`]:Fe(ke)}},[`@media (max-width: ${(0,he.unit)(ke.screenXSMax)})`]:[kt(ke),{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-xs-24${fe}-label`]:Fe(ke)}}}],[`@media (max-width: ${(0,he.unit)(ke.screenSMMax)})`]:{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-sm-24${fe}-label`]:Fe(ke)}}},[`@media (max-width: ${(0,he.unit)(ke.screenMDMax)})`]:{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-md-24${fe}-label`]:Fe(ke)}}},[`@media (max-width: ${(0,he.unit)(ke.screenLGMax)})`]:{[be]:{[`${fe}:not(${fe}-horizontal)`]:{[`${pe}-col-lg-24${fe}-label`]:Fe(ke)}}}}},et=ke=>{const{formItemCls:be,antCls:fe}=ke;return{[`${be}-vertical`]:{[`${be}-row`]:{flexDirection:"column"},[`${be}-label > label`]:{height:"auto"},[`${be}-control`]:{width:"100%"}},[`${be}-vertical ${be}-label, ${fe}-col-24${be}-label, ${fe}-col-xl-24${be}-label`]:Fe(ke),[`@media (max-width: ${(0,he.unit)(ke.screenXSMax)})`]:[kt(ke),{[be]:{[`${fe}-col-xs-24${be}-label`]:Fe(ke)}}],[`@media (max-width: ${(0,he.unit)(ke.screenSMMax)})`]:{[be]:{[`${fe}-col-sm-24${be}-label`]:Fe(ke)}},[`@media (max-width: ${(0,he.unit)(ke.screenMDMax)})`]:{[be]:{[`${fe}-col-md-24${be}-label`]:Fe(ke)}},[`@media (max-width: ${(0,he.unit)(ke.screenLGMax)})`]:{[be]:{[`${fe}-col-lg-24${be}-label`]:Fe(ke)}}}},St=ke=>({labelRequiredMarkColor:ke.colorError,labelColor:ke.colorTextHeading,labelFontSize:ke.fontSize,labelHeight:ke.controlHeight,labelColonMarginInlineStart:ke.marginXXS/2,labelColonMarginInlineEnd:ke.marginXS,itemMarginBottom:ke.marginLG,verticalLabelPadding:`0 0 ${ke.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(ke,be)=>(0,Ze.mergeToken)(ke,{formItemCls:`${ke.componentCls}-item`,rootPrefixCls:be});var Ke=(0,Ce.I$)("Form",(ke,be)=>{let{rootPrefixCls:fe}=be;const pe=Me(ke,fe);return[Pt(pe),ht(pe),_e(pe),it(pe,pe.componentCls),it(pe,pe.formItemCls),nt(pe),lt(pe),et(pe),(0,dt.Z)(pe),Pe.kr]},St,{order:-1e3});const ze=[];function se(ke,be,fe){let pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ke=="string"?ke:`${be}-${pe}`,error:ke,errorStatus:fe}}var Le=ke=>{let{help:be,helpStatus:fe,errors:pe=ze,warnings:Ve=ze,className:Xt,fieldId:rn,onVisibleChanged:Yt}=ke;const{prefixCls:Ct}=xe.useContext(E.Rk),Re=`${Ct}-item-explain`,xt=(0,We.Z)(Ct),[Jt,gn,On]=Ke(Ct,xt),Sn=xe.useMemo(()=>(0,De.Z)(Ct),[Ct]),Fn=Ie(pe),Xn=Ie(Ve),qn=xe.useMemo(()=>be!=null?[se(be,"help",fe)]:[].concat((0,Qe.Z)(Fn.map((Rn,Zn)=>se(Rn,"error","error",Zn))),(0,Qe.Z)(Xn.map((Rn,Zn)=>se(Rn,"warning","warning",Zn)))),[be,fe,Fn,Xn]),Hn=xe.useMemo(()=>{const Rn={};return qn.forEach(Zn=>{let{key:or}=Zn;Rn[or]=(Rn[or]||0)+1}),qn.map((Zn,or)=>Object.assign(Object.assign({},Zn),{key:Rn[Zn.key]>1?`${Zn.key}-fallback-${or}`:Zn.key}))},[qn]),Ln={};return rn&&(Ln.id=`${rn}_help`),Jt(xe.createElement(Be.default,{motionDeadline:Sn.motionDeadline,motionName:`${Ct}-show-help`,visible:!!Hn.length,onVisibleChanged:Yt},Rn=>{const{className:Zn,style:or}=Rn;return xe.createElement("div",Object.assign({},Ln,{className:Ee()(Re,Zn,On,xt,Xt,gn),style:or}),xe.createElement(Be.CSSMotionList,Object.assign({keys:Hn},(0,De.Z)(Ct),{motionName:`${Ct}-show-help-item`,component:!1}),rr=>{const{key:ir,error:Un,errorStatus:Kn,className:Tn,style:mr}=rr;return xe.createElement("div",{key:ir,className:Ee()(Tn,{[`${Re}-${Kn}`]:Kn}),style:mr},Un)}))}))},Ae=ne(69180),ct=ne(48755),ye=ne(2171),ce=ne(31756),Ue=ne(23069),It=ne(76846),bt=ne(16722);const ge=["parentNode"],He="form_item";function Ge(ke){return ke===void 0||ke===!1?[]:Array.isArray(ke)?ke:[ke]}function Tt(ke,be){if(!ke.length)return;const fe=ke.join("_");return be?`${be}_${fe}`:ge.includes(fe)?`${He}_${fe}`:fe}function wt(ke,be,fe,pe,Ve,Xt){let rn=pe;return Xt!==void 0?rn=Xt:fe.validating?rn="validating":ke.length?rn="error":be.length?rn="warning":(fe.touched||Ve&&fe.validated)&&(rn="success"),rn}var Lt=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Veke!=null?ke:Object.assign(Object.assign({},be),{__INTERNAL__:{itemRef:Ve=>Xt=>{const rn=$e(Ve);Xt?fe.current[rn]=Xt:delete fe.current[rn]}},scrollToField:function(Ve){let Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:rn}=Xt,Yt=Lt(Xt,["focus"]),Ct=At(Ve,pe);Ct&&((0,bt.Z)(Ct,Object.assign({scrollMode:"if-needed",block:"nearest"},Yt)),rn&&pe.focusField(Ve))},focusField:Ve=>{var Xt,rn;const Yt=pe.getFieldInstance(Ve);typeof(Yt==null?void 0:Yt.focus)=="function"?Yt.focus():(rn=(Xt=At(Ve,pe))===null||Xt===void 0?void 0:Xt.focus)===null||rn===void 0||rn.call(Xt)},getFieldInstance:Ve=>{const Xt=$e(Ve);return fe.current[Xt]}}),[ke,be]);return[pe]}var ae=ne(98350),te=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve{const fe=xe.useContext(ye.Z),{getPrefixCls:pe,direction:Ve,requiredMark:Xt,colon:rn,scrollToFirstError:Yt,className:Ct,style:Re}=(0,ct.dj)("form"),{prefixCls:xt,className:Jt,rootClassName:gn,size:On,disabled:Sn=fe,form:Fn,colon:Xn,labelAlign:qn,labelWrap:Hn,labelCol:Ln,wrapperCol:Rn,hideRequiredMark:Zn,layout:or="horizontal",scrollToFirstError:rr,requiredMark:ir,onFinishFailed:Un,name:Kn,style:Tn,feedbackIcons:mr,variant:Vn}=ke,Bn=te(ke,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Yn=(0,ce.Z)(On),Jn=xe.useContext(ae.Z),dr=xe.useMemo(()=>ir!==void 0?ir:Zn?!1:Xt!==void 0?Xt:!0,[Zn,ir,Xt]),sr=Xn!=null?Xn:rn,_n=pe("form",xt),hr=(0,We.Z)(_n),[ar,pr,fr]=Ke(_n,hr),wr=Ee()(_n,`${_n}-${or}`,{[`${_n}-hide-required-mark`]:dr===!1,[`${_n}-rtl`]:Ve==="rtl",[`${_n}-${Yn}`]:Yn},fr,hr,pr,Ct,Jt,gn),[br]=st(Fn),{__INTERNAL__:Or}=br;Or.name=Kn;const _r=xe.useMemo(()=>({name:Kn,labelAlign:qn,labelCol:Ln,labelWrap:Hn,wrapperCol:Rn,vertical:or==="vertical",colon:sr,requiredMark:dr,itemRef:Or.itemRef,form:br,feedbackIcons:mr}),[Kn,qn,Ln,Rn,or,sr,dr,br,mr]),xr=xe.useRef(null);xe.useImperativeHandle(be,()=>{var In;return Object.assign(Object.assign({},br),{nativeElement:(In=xr.current)===null||In===void 0?void 0:In.nativeElement})});const ur=(In,wn)=>{if(In){let dn={block:"nearest"};typeof In=="object"&&(dn=Object.assign(Object.assign({},dn),In)),br.scrollToField(wn,dn)}},pn=In=>{if(Un==null||Un(In),In.errorFields.length){const wn=In.errorFields[0].name;if(rr!==void 0){ur(rr,wn);return}Yt!==void 0&&ur(Yt,wn)}};return ar(xe.createElement(E.pg.Provider,{value:Vn},xe.createElement(ye.n,{disabled:Sn},xe.createElement(Ue.Z.Provider,{value:Yn},xe.createElement(E.RV,{validateMessages:Jn},xe.createElement(E.q3.Provider,{value:_r},xe.createElement(Ae.default,Object.assign({id:Kn},Bn,{name:Kn,onFinishFailed:pn,form:br,ref:xr,style:Object.assign(Object.assign({},Re),Tn),className:wr}))))))))};var ue=xe.forwardRef(ee),re=ne(41799),ve=ne(8654),we=ne(22703),ft=ne(32383),Oe=ne(11592);function Ye(ke){if(typeof ke=="function")return ke;const be=(0,Oe.Z)(ke);return be.length<=1?be[0]:be}const mt=()=>{const{status:ke,errors:be=[],warnings:fe=[]}=xe.useContext(E.aM);return{status:ke,errors:be,warnings:fe}};mt.Context=E.aM;var Bt=mt,Et=ne(16089);function Ut(ke){const[be,fe]=xe.useState(ke),pe=xe.useRef(null),Ve=xe.useRef([]),Xt=xe.useRef(!1);xe.useEffect(()=>(Xt.current=!1,()=>{Xt.current=!0,Et.Z.cancel(pe.current),pe.current=null}),[]);function rn(Yt){Xt.current||(pe.current===null&&(Ve.current=[],pe.current=(0,Et.Z)(()=>{pe.current=null,fe(Ct=>{let Re=Ct;return Ve.current.forEach(xt=>{Re=xt(Re)}),Re})})),Ve.current.push(Yt))}return[be,rn]}function Wt(){const{itemRef:ke}=xe.useContext(E.q3),be=xe.useRef({});function fe(pe,Ve){const Xt=Ve&&typeof Ve=="object"&&(0,ve.C4)(Ve),rn=pe.join("_");return(be.current.name!==rn||be.current.originRef!==Xt)&&(be.current.name=rn,be.current.originRef=Xt,be.current.ref=(0,ve.sQ)(ke(pe),Xt)),be.current.ref}return fe}var Ht=ne(29194),ln=ne(34280),qt=ne(2738),sn=ne(65970),Dt=ne(70425),tn=ne(5472);const Vt=ke=>{const{formItemCls:be}=ke;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${be}-control`]:{display:"flex"}}}};var je=(0,Ce.bk)(["Form","item-item"],(ke,be)=>{let{rootPrefixCls:fe}=be;const pe=Me(ke,fe);return[Vt(pe)]}),pt=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve{const{prefixCls:be,status:fe,labelCol:pe,wrapperCol:Ve,children:Xt,errors:rn,warnings:Yt,_internalItemRender:Ct,extra:Re,help:xt,fieldId:Jt,marginBottom:gn,onErrorVisibleChanged:On,label:Sn}=ke,Fn=`${be}-item`,Xn=xe.useContext(E.q3),qn=xe.useMemo(()=>{let Bn=Object.assign({},Ve||Xn.wrapperCol||{});return Sn===null&&!pe&&!Ve&&Xn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Jn=>{const dr=Jn?[Jn]:[],sr=(0,Dt.U2)(Xn.labelCol,dr),_n=typeof sr=="object"?sr:{},hr=(0,Dt.U2)(Bn,dr),ar=typeof hr=="object"?hr:{};"span"in _n&&!("offset"in ar)&&_n.span{const{labelCol:Bn,wrapperCol:Yn}=Xn;return pt(Xn,["labelCol","wrapperCol"])},[Xn]),Rn=xe.useRef(null),[Zn,or]=xe.useState(0);(0,ln.Z)(()=>{Re&&Rn.current?or(Rn.current.clientHeight):or(0)},[Re]);const rr=xe.createElement("div",{className:`${Fn}-control-input`},xe.createElement("div",{className:`${Fn}-control-input-content`},Xt)),ir=xe.useMemo(()=>({prefixCls:be,status:fe}),[be,fe]),Un=gn!==null||rn.length||Yt.length?xe.createElement(E.Rk.Provider,{value:ir},xe.createElement(Le,{fieldId:Jt,errors:rn,warnings:Yt,help:xt,helpStatus:fe,className:`${Fn}-explain-connected`,onVisibleChanged:On})):null,Kn={};Jt&&(Kn.id=`${Jt}_extra`);const Tn=Re?xe.createElement("div",Object.assign({},Kn,{className:`${Fn}-extra`,ref:Rn}),Re):null,mr=Un||Tn?xe.createElement("div",{className:`${Fn}-additional`,style:gn?{minHeight:gn+Zn}:{}},Un,Tn):null,Vn=Ct&&Ct.mark==="pro_table_render"&&Ct.render?Ct.render(ke,{input:rr,errorList:Un,extra:Tn}):xe.createElement(xe.Fragment,null,rr,mr);return xe.createElement(E.q3.Provider,{value:Ln},xe.createElement(tn.Z,Object.assign({},qn,{className:Hn}),Vn),xe.createElement(je,{prefixCls:be}))},ot=ne(61485),yt=ne(9017),Mt=ne(85981),Kt=ne(25399),cn=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve{let{prefixCls:be,label:fe,htmlFor:pe,labelCol:Ve,labelAlign:Xt,colon:rn,required:Yt,requiredMark:Ct,tooltip:Re,vertical:xt}=ke;var Jt;const[gn]=(0,yt.Z)("Form"),{labelAlign:On,labelCol:Sn,labelWrap:Fn,colon:Xn}=xe.useContext(E.q3);if(!fe)return null;const qn=Ve||Sn||{},Hn=Xt||On,Ln=`${be}-item-label`,Rn=Ee()(Ln,Hn==="left"&&`${Ln}-left`,qn.className,{[`${Ln}-wrap`]:!!Fn});let Zn=fe;const or=rn===!0||Xn!==!1&&rn!==!1;or&&!xt&&typeof fe=="string"&&fe.trim()&&(Zn=fe.replace(/[:|:]\s*$/,""));const ir=Dn(Re);if(ir){const{icon:Bn=xe.createElement(ot.Z,null)}=ir,Yn=cn(ir,["icon"]),Jn=xe.createElement(Kt.Z,Object.assign({},Yn),xe.cloneElement(Bn,{className:`${be}-item-tooltip`,title:"",onClick:dr=>{dr.preventDefault()},tabIndex:null}));Zn=xe.createElement(xe.Fragment,null,Zn,Jn)}const Un=Ct==="optional",Kn=typeof Ct=="function",Tn=Ct===!1;Kn?Zn=Ct(Zn,{required:!!Yt}):Un&&!Yt&&(Zn=xe.createElement(xe.Fragment,null,Zn,xe.createElement("span",{className:`${be}-item-optional`,title:""},(gn==null?void 0:gn.optional)||((Jt=Mt.Z.Form)===null||Jt===void 0?void 0:Jt.optional))));let mr;Tn?mr="hidden":(Un||Kn)&&(mr="optional");const Vn=Ee()({[`${be}-item-required`]:Yt,[`${be}-item-required-mark-${mr}`]:mr,[`${be}-item-no-colon`]:!or});return xe.createElement(tn.Z,Object.assign({},qn,{className:Rn}),xe.createElement("label",{htmlFor:pe,className:Vn,title:typeof fe=="string"?fe:""},Zn))},bn=ne(29679),fn=ne(19248),Gt=ne(96512),Rt=ne(58617);const _t={success:bn.Z,warning:Gt.Z,error:fn.Z,validating:Rt.Z};function Ot(ke){let{children:be,errors:fe,warnings:pe,hasFeedback:Ve,validateStatus:Xt,prefixCls:rn,meta:Yt,noStyle:Ct}=ke;const Re=`${rn}-item`,{feedbackIcons:xt}=xe.useContext(E.q3),Jt=wt(fe,pe,Yt,null,!!Ve,Xt),{isFormItemInput:gn,status:On,hasFeedback:Sn,feedbackIcon:Fn}=xe.useContext(E.aM),Xn=xe.useMemo(()=>{var qn;let Hn;if(Ve){const Rn=Ve!==!0&&Ve.icons||xt,Zn=Jt&&((qn=Rn==null?void 0:Rn({status:Jt,errors:fe,warnings:pe}))===null||qn===void 0?void 0:qn[Jt]),or=Jt&&_t[Jt];Hn=Zn!==!1&&or?xe.createElement("span",{className:Ee()(`${Re}-feedback-icon`,`${Re}-feedback-icon-${Jt}`)},Zn||xe.createElement(or,null)):null}const Ln={status:Jt||"",errors:fe,warnings:pe,hasFeedback:!!Ve,feedbackIcon:Hn,isFormItemInput:!0};return Ct&&(Ln.status=(Jt!=null?Jt:On)||"",Ln.isFormItemInput=gn,Ln.hasFeedback=!!(Ve!=null?Ve:Sn),Ln.feedbackIcon=Ve!==void 0?Ln.feedbackIcon:Fn),Ln},[Jt,Ve,Ct,gn,On]);return xe.createElement(E.aM.Provider,{value:Xn},be)}var an=function(ke,be){var fe={};for(var pe in ke)Object.prototype.hasOwnProperty.call(ke,pe)&&be.indexOf(pe)<0&&(fe[pe]=ke[pe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,pe=Object.getOwnPropertySymbols(ke);Ve{if(Tn&&rr.current){const _n=getComputedStyle(rr.current);Bn(parseInt(_n.marginBottom,10))}},[Tn,mr]);const Yn=_n=>{_n||Bn(null)},dr=function(){let _n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const hr=_n?ir:Re.errors,ar=_n?Un:Re.warnings;return wt(hr,ar,Re,"",!!xt,Ct)}(),sr=Ee()(Ln,fe,pe,{[`${Ln}-with-help`]:Kn||ir.length||Un.length,[`${Ln}-has-feedback`]:dr&&xt,[`${Ln}-has-success`]:dr==="success",[`${Ln}-has-warning`]:dr==="warning",[`${Ln}-has-error`]:dr==="error",[`${Ln}-is-validating`]:dr==="validating",[`${Ln}-hidden`]:Jt,[`${Ln}-${qn}`]:qn});return xe.createElement("div",{className:sr,style:Ve,ref:rr},xe.createElement(sn.Z,Object.assign({className:`${Ln}-row`},(0,qt.Z)(Hn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),xe.createElement(un,Object.assign({htmlFor:On},ke,{requiredMark:Rn,required:Sn!=null?Sn:Fn,prefixCls:be,vertical:or})),xe.createElement(Ne,Object.assign({},ke,Re,{errors:ir,warnings:Un,prefixCls:be,status:dr,help:Xt,marginBottom:Vn,onErrorVisibleChanged:Yn}),xe.createElement(E.qI.Provider,{value:Xn},xe.createElement(Ot,{prefixCls:be,meta:Re,errors:Re.errors,warnings:Re.warnings,hasFeedback:xt,validateStatus:dr},gn)))),!!Vn&&xe.createElement("div",{className:`${Ln}-margin-offset`,style:{marginBottom:-Vn}}))}const en="__SPLIT__",xn=null;function Pn(ke,be){const fe=Object.keys(ke),pe=Object.keys(be);return fe.length===pe.length&&fe.every(Ve=>{const Xt=ke[Ve],rn=be[Ve];return Xt===rn||typeof Xt=="function"||typeof rn=="function"})}const Cn=xe.memo(ke=>{let{children:be}=ke;return be},(ke,be)=>Pn(ke.control,be.control)&&ke.update===be.update&&ke.childProps.length===be.childProps.length&&ke.childProps.every((fe,pe)=>fe===be.childProps[pe]));function Nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function An(ke){const{name:be,noStyle:fe,className:pe,dependencies:Ve,prefixCls:Xt,shouldUpdate:rn,rules:Yt,children:Ct,required:Re,label:xt,messageVariables:Jt,trigger:gn="onChange",validateTrigger:On,hidden:Sn,help:Fn,layout:Xn}=ke,{getPrefixCls:qn}=xe.useContext(ct.E_),{name:Hn}=xe.useContext(E.q3),Ln=Ye(Ct),Rn=typeof Ln=="function",Zn=xe.useContext(E.qI),{validateTrigger:or}=xe.useContext(Ae.FieldContext),rr=On!==void 0?On:or,ir=be!=null,Un=qn("form",Xt),Kn=(0,We.Z)(Un),[Tn,mr,Vn]=Ke(Un,Kn),Bn=(0,ft.ln)("Form.Item"),Yn=xe.useContext(Ae.ListContext),Jn=xe.useRef(null),[dr,sr]=Ut({}),[_n,hr]=(0,re.Z)(()=>Nn()),ar=xr=>{const ur=Yn==null?void 0:Yn.getKey(xr.name);if(hr(xr.destroy?Nn():xr,!0),fe&&Fn!==!1&&Zn){let pn=xr.name;if(xr.destroy)pn=Jn.current||pn;else if(ur!==void 0){const[In,wn]=ur;pn=[In].concat((0,Qe.Z)(wn)),Jn.current=pn}Zn(xr,pn)}},pr=(xr,ur)=>{sr(pn=>{const In=Object.assign({},pn),dn=[].concat((0,Qe.Z)(xr.name.slice(0,-1)),(0,Qe.Z)(ur)).join(en);return xr.destroy?delete In[dn]:In[dn]=xr,In})},[fr,wr]=xe.useMemo(()=>{const xr=(0,Qe.Z)(_n.errors),ur=(0,Qe.Z)(_n.warnings);return Object.values(dr).forEach(pn=>{xr.push.apply(xr,(0,Qe.Z)(pn.errors||[])),ur.push.apply(ur,(0,Qe.Z)(pn.warnings||[]))}),[xr,ur]},[dr,_n.errors,_n.warnings]),br=Wt();function Or(xr,ur,pn){return fe&&!Sn?xe.createElement(Ot,{prefixCls:Un,hasFeedback:ke.hasFeedback,validateStatus:ke.validateStatus,meta:_n,errors:fr,warnings:wr,noStyle:!0},xr):xe.createElement(nn,Object.assign({key:"row"},ke,{className:Ee()(pe,Vn,Kn,mr),prefixCls:Un,fieldId:ur,isRequired:pn,errors:fr,warnings:wr,meta:_n,onSubItemMetaChange:pr,layout:Xn}),xr)}if(!ir&&!Rn&&!Ve)return Tn(Or(Ln));let _r={};return typeof xt=="string"?_r.label=xt:be&&(_r.label=String(be)),Jt&&(_r=Object.assign(Object.assign({},_r),Jt)),Tn(xe.createElement(Ae.Field,Object.assign({},ke,{messageVariables:_r,trigger:gn,validateTrigger:rr,onMetaChange:ar}),(xr,ur,pn)=>{const In=Ge(be).length&&ur?ur.name:[],wn=Tt(In,Hn),dn=Re!==void 0?Re:!!(Yt!=null&&Yt.some(vn=>{if(vn&&typeof vn=="object"&&vn.required&&!vn.warningOnly)return!0;if(typeof vn=="function"){const yn=vn(pn);return(yn==null?void 0:yn.required)&&!(yn!=null&&yn.warningOnly)}return!1})),Gn=Object.assign({},xr);let nr=null;if(Array.isArray(Ln)&&ir)nr=Ln;else if(!(Rn&&(!(rn||Ve)||ir))){if(!(Ve&&!Rn&&!ir))if(xe.isValidElement(Ln)){const vn=Object.assign(Object.assign({},Ln.props),Gn);if(vn.id||(vn.id=wn),Fn||fr.length>0||wr.length>0||ke.extra){const Wn=[];(Fn||fr.length>0)&&Wn.push(`${wn}_help`),ke.extra&&Wn.push(`${wn}_extra`),vn["aria-describedby"]=Wn.join(" ")}fr.length>0&&(vn["aria-invalid"]="true"),dn&&(vn["aria-required"]="true"),(0,ve.Yr)(Ln)&&(vn.ref=br(In,Ln)),new Set([].concat((0,Qe.Z)(Ge(gn)),(0,Qe.Z)(Ge(rr)))).forEach(Wn=>{vn[Wn]=function(){for(var vr,kr,Br,Tr,Ar,Nr=arguments.length,zr=new Array(Nr),Lr=0;Lr{var{prefixCls:be,children:fe}=ke,pe=Nt(ke,["prefixCls","children"]);const{getPrefixCls:Ve}=xe.useContext(ct.E_),Xt=Ve("form",be),rn=xe.useMemo(()=>({prefixCls:Xt,status:"error"}),[Xt]);return xe.createElement(Ae.List,Object.assign({},pe),(Yt,Ct,Re)=>xe.createElement(E.Rk.Provider,{value:rn},fe(Yt.map(xt=>Object.assign(Object.assign({},xt),{fieldKey:xt.key})),Ct,{errors:Re.errors,warnings:Re.warnings})))};function mn(){const{form:ke}=xe.useContext(E.q3);return ke}const Xe=ue;Xe.Item=zn,Xe.List=En,Xe.ErrorList=Le,Xe.useForm=st,Xe.useFormInstance=mn,Xe.useWatch=Ae.useWatch,Xe.Provider=E.RV,Xe.create=()=>{};var ut=Xe},4875:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return jt}});var E=ne(59301),Qe=ne(84105),xe=ne(87395),tt=ne(92310),Ee=ne.n(tt),Be=ne(60499),De=ne(18642),We=ne(43749),Ie=ne(72190),he=ne(42244),Je=ne(38705),Pe=ne(17212);function dt(){return typeof BigInt=="function"}function Ze(Ne){return!Ne&&Ne!==0&&!Number.isNaN(Ne)||!String(Ne).trim()}function Ce(Ne){var ot=Ne.trim(),yt=ot.startsWith("-");yt&&(ot=ot.slice(1)),ot=ot.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ot.startsWith(".")&&(ot="0".concat(ot));var Mt=ot||"0",Kt=Mt.split("."),cn=Kt[0]||"0",Dn=Kt[1]||"0";cn==="0"&&Dn==="0"&&(yt=!1);var kn=yt?"-":"";return{negative:yt,negativeStr:kn,trimStr:Mt,integerStr:cn,decimalStr:Dn,fullStr:"".concat(kn).concat(Mt)}}function Te(Ne){var ot=String(Ne);return!Number.isNaN(Number(ot))&&ot.includes("e")}function _e(Ne){var ot=String(Ne);if(Te(Ne)){var yt=Number(ot.slice(ot.indexOf("e-")+2)),Mt=ot.match(/\.(\d+)/);return Mt!=null&&Mt[1]&&(yt+=Mt[1].length),yt}return ot.includes(".")&>(ot)?ot.length-ot.indexOf(".")-1:0}function rt(Ne){var ot=String(Ne);if(Te(Ne)){if(Ne>Number.MAX_SAFE_INTEGER)return String(dt()?BigInt(Ne).toString():Number.MAX_SAFE_INTEGER);if(Ne0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":Ce("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ne}(),ht=function(){function Ne(ot){if((0,Je.Z)(this,Ne),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"number",void 0),(0,De.Z)(this,"empty",void 0),Ze(ot)){this.empty=!0;return}this.origin=String(ot),this.number=Number(ot)}return(0,Pe.Z)(Ne,[{key:"negate",value:function(){return new Ne(-this.toNumber())}},{key:"add",value:function(yt){if(this.isInvalidate())return new Ne(yt);var Mt=Number(yt);if(Number.isNaN(Mt))return this;var Kt=this.number+Mt;if(Kt>Number.MAX_SAFE_INTEGER)return new Ne(Number.MAX_SAFE_INTEGER);if(KtNumber.MAX_SAFE_INTEGER)return new Ne(Number.MAX_SAFE_INTEGER);if(Kt0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":rt(this.number):this.origin}}]),Ne}();function it(Ne){return dt()?new Pt(Ne):new ht(Ne)}function nt(Ne,ot,yt){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ne==="")return"";var Kt=Ce(Ne),cn=Kt.negativeStr,Dn=Kt.integerStr,kn=Kt.decimalStr,un="".concat(ot).concat(kn),bn="".concat(cn).concat(Dn);if(yt>=0){var fn=Number(kn[yt]);if(fn>=5&&!Mt){var Gt=it(Ne).add("".concat(cn,"0.").concat("0".repeat(yt)).concat(10-fn));return nt(Gt.toString(),ot,yt,Mt)}return yt===0?bn:"".concat(bn).concat(ot).concat(kn.padEnd(yt,"0").slice(0,yt))}return un===".0"?bn:"".concat(bn).concat(un)}var Fe=it,kt=ne(36901),lt=ne(34280);function et(Ne,ot){return typeof Proxy!="undefined"&&Ne?new Proxy(Ne,{get:function(Mt,Kt){if(ot[Kt])return ot[Kt];var cn=Mt[Kt];return typeof cn=="function"?cn.bind(Mt):cn}}):Ne}var St=ne(8654),Me=ne(48736);function Ke(Ne,ot){var yt=(0,E.useRef)(null);function Mt(){try{var cn=Ne.selectionStart,Dn=Ne.selectionEnd,kn=Ne.value,un=kn.substring(0,cn),bn=kn.substring(Dn);yt.current={start:cn,end:Dn,value:kn,beforeTxt:un,afterTxt:bn}}catch(fn){}}function Kt(){if(Ne&&yt.current&&ot)try{var cn=Ne.value,Dn=yt.current,kn=Dn.beforeTxt,un=Dn.afterTxt,bn=Dn.start,fn=cn.length;if(cn.startsWith(kn))fn=kn.length;else if(cn.endsWith(un))fn=cn.length-yt.current.afterTxt.length;else{var Gt=kn[bn-1],Rt=cn.indexOf(Gt,bn-1);Rt!==-1&&(fn=Rt+1)}Ne.setSelectionRange(fn,fn)}catch(_t){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_t.message))}}return[Mt,Kt]}var ze=ne(49658),se=function(){var ot=(0,E.useState)(!1),yt=(0,Ie.Z)(ot,2),Mt=yt[0],Kt=yt[1];return(0,lt.Z)(function(){Kt((0,ze.Z)())},[]),Mt},qe=se,Le=ne(16089),Ae=200,ct=600;function ye(Ne){var ot=Ne.prefixCls,yt=Ne.upNode,Mt=Ne.downNode,Kt=Ne.upDisabled,cn=Ne.downDisabled,Dn=Ne.onStep,kn=E.useRef(),un=E.useRef([]),bn=E.useRef();bn.current=Dn;var fn=function(){clearTimeout(kn.current)},Gt=function(Pn,Cn){Pn.preventDefault(),fn(),bn.current(Cn);function Nn(){bn.current(Cn),kn.current=setTimeout(Nn,Ae)}kn.current=setTimeout(Nn,ct)};E.useEffect(function(){return function(){fn(),un.current.forEach(function(xn){return Le.Z.cancel(xn)})}},[]);var Rt=qe();if(Rt)return null;var _t="".concat(ot,"-handler"),Ot=Ee()(_t,"".concat(_t,"-up"),(0,De.Z)({},"".concat(_t,"-up-disabled"),Kt)),an=Ee()(_t,"".concat(_t,"-down"),(0,De.Z)({},"".concat(_t,"-down-disabled"),cn)),nn=function(){return un.current.push((0,Le.Z)(fn))},en={unselectable:"on",role:"button",onMouseUp:nn,onMouseLeave:nn};return E.createElement("div",{className:"".concat(_t,"-wrap")},E.createElement("span",(0,Be.Z)({},en,{onMouseDown:function(Pn){Gt(Pn,!0)},"aria-label":"Increase Value","aria-disabled":Kt,className:Ot}),yt||E.createElement("span",{unselectable:"on",className:"".concat(ot,"-handler-up-inner")})),E.createElement("span",(0,Be.Z)({},en,{onMouseDown:function(Pn){Gt(Pn,!1)},"aria-label":"Decrease Value","aria-disabled":cn,className:an}),Mt||E.createElement("span",{unselectable:"on",className:"".concat(ot,"-handler-down-inner")})))}function ce(Ne){var ot=typeof Ne=="number"?rt(Ne):Ce(Ne).fullStr,yt=ot.includes(".");return yt?Ce(ot.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ne+"0"}var Ue=ne(30292),It=function(){var Ne=(0,E.useRef)(0),ot=function(){Le.Z.cancel(Ne.current)};return(0,E.useEffect)(function(){return ot},[]),function(yt){ot(),Ne.current=(0,Le.Z)(function(){yt()})}},bt=["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"],ge=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],He=function(ot,yt){return ot||yt.isEmpty()?yt.toString():yt.toNumber()},Ge=function(ot){var yt=Fe(ot);return yt.isInvalidate()?null:yt},Tt=E.forwardRef(function(Ne,ot){var yt=Ne.prefixCls,Mt=Ne.className,Kt=Ne.style,cn=Ne.min,Dn=Ne.max,kn=Ne.step,un=kn===void 0?1:kn,bn=Ne.defaultValue,fn=Ne.value,Gt=Ne.disabled,Rt=Ne.readOnly,_t=Ne.upHandler,Ot=Ne.downHandler,an=Ne.keyboard,nn=Ne.changeOnWheel,en=nn===void 0?!1:nn,xn=Ne.controls,Pn=xn===void 0?!0:xn,Cn=Ne.classNames,Nn=Ne.stringMode,An=Ne.parser,Qn=Ne.formatter,zn=Ne.precision,Nt=Ne.decimalSeparator,Qt=Ne.onChange,En=Ne.onInput,mn=Ne.onPressEnter,Xe=Ne.onStep,ut=Ne.changeOnBlur,ke=ut===void 0?!0:ut,be=Ne.domRef,fe=(0,he.Z)(Ne,bt),pe="".concat(yt,"-input"),Ve=E.useRef(null),Xt=E.useState(!1),rn=(0,Ie.Z)(Xt,2),Yt=rn[0],Ct=rn[1],Re=E.useRef(!1),xt=E.useRef(!1),Jt=E.useRef(!1),gn=E.useState(function(){return Fe(fn!=null?fn:bn)}),On=(0,Ie.Z)(gn,2),Sn=On[0],Fn=On[1];function Xn(wn){fn===void 0&&Fn(wn)}var qn=E.useCallback(function(wn,dn){if(!dn)return zn>=0?zn:Math.max(_e(wn),_e(un))},[zn,un]),Hn=E.useCallback(function(wn){var dn=String(wn);if(An)return An(dn);var Gn=dn;return Nt&&(Gn=Gn.replace(Nt,".")),Gn.replace(/[^\w.-]+/g,"")},[An,Nt]),Ln=E.useRef(""),Rn=E.useCallback(function(wn,dn){if(Qn)return Qn(wn,{userTyping:dn,input:String(Ln.current)});var Gn=typeof wn=="number"?rt(wn):wn;if(!dn){var nr=qn(Gn,dn);if(gt(Gn)&&(Nt||nr>=0)){var vn=Nt||".";Gn=nt(Gn,vn,nr)}}return Gn},[Qn,qn,Nt]),Zn=E.useState(function(){var wn=bn!=null?bn:fn;return Sn.isInvalidate()&&["string","number"].includes((0,We.Z)(wn))?Number.isNaN(wn)?"":wn:Rn(Sn.toString(),!1)}),or=(0,Ie.Z)(Zn,2),rr=or[0],ir=or[1];Ln.current=rr;function Un(wn,dn){ir(Rn(wn.isInvalidate()?wn.toString(!1):wn.toString(!dn),dn))}var Kn=E.useMemo(function(){return Ge(Dn)},[Dn,zn]),Tn=E.useMemo(function(){return Ge(cn)},[cn,zn]),mr=E.useMemo(function(){return!Kn||!Sn||Sn.isInvalidate()?!1:Kn.lessEquals(Sn)},[Kn,Sn]),Vn=E.useMemo(function(){return!Tn||!Sn||Sn.isInvalidate()?!1:Sn.lessEquals(Tn)},[Tn,Sn]),Bn=Ke(Ve.current,Yt),Yn=(0,Ie.Z)(Bn,2),Jn=Yn[0],dr=Yn[1],sr=function(dn){return Kn&&!dn.lessEquals(Kn)?Kn:Tn&&!Tn.lessEquals(dn)?Tn:null},_n=function(dn){return!sr(dn)},hr=function(dn,Gn){var nr=dn,vn=_n(nr)||nr.isEmpty();if(!nr.isEmpty()&&!Gn&&(nr=sr(nr)||nr,vn=!0),!Rt&&!Gt&&vn){var yn=nr.toString(),jn=qn(yn,Gn);return jn>=0&&(nr=Fe(nt(yn,".",jn)),_n(nr)||(nr=Fe(nt(yn,".",jn,!0)))),nr.equals(Sn)||(Xn(nr),Qt==null||Qt(nr.isEmpty()?null:He(Nn,nr)),fn===void 0&&Un(nr,Gn)),nr}return Sn},ar=It(),pr=function wn(dn){if(Jn(),Ln.current=dn,ir(dn),!xt.current){var Gn=Hn(dn),nr=Fe(Gn);nr.isNaN()||hr(nr,!0)}En==null||En(dn),ar(function(){var vn=dn;An||(vn=dn.replace(/。/g,".")),vn!==dn&&wn(vn)})},fr=function(){xt.current=!0},wr=function(){xt.current=!1,pr(Ve.current.value)},br=function(dn){pr(dn.target.value)},Or=function(dn){var Gn;if(!(dn&&mr||!dn&&Vn)){Re.current=!1;var nr=Fe(Jt.current?ce(un):un);dn||(nr=nr.negate());var vn=(Sn||Fe(0)).add(nr.toString()),yn=hr(vn,!1);Xe==null||Xe(He(Nn,yn),{offset:Jt.current?ce(un):un,type:dn?"up":"down"}),(Gn=Ve.current)===null||Gn===void 0||Gn.focus()}},_r=function(dn){var Gn=Fe(Hn(rr)),nr;Gn.isNaN()?nr=hr(Sn,dn):nr=hr(Gn,dn),fn!==void 0?Un(Sn,!1):nr.isNaN()||Un(nr,!1)},xr=function(){Re.current=!0},ur=function(dn){var Gn=dn.key,nr=dn.shiftKey;Re.current=!0,Jt.current=nr,Gn==="Enter"&&(xt.current||(Re.current=!1),_r(!1),mn==null||mn(dn)),an!==!1&&!xt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Gn)&&(Or(Gn==="Up"||Gn==="ArrowUp"),dn.preventDefault())},pn=function(){Re.current=!1,Jt.current=!1};E.useEffect(function(){if(en&&Yt){var wn=function(nr){Or(nr.deltaY<0),nr.preventDefault()},dn=Ve.current;if(dn)return dn.addEventListener("wheel",wn,{passive:!1}),function(){return dn.removeEventListener("wheel",wn)}}});var In=function(){ke&&_r(!1),Ct(!1),Re.current=!1};return(0,lt.o)(function(){Sn.isInvalidate()||Un(Sn,!1)},[zn,Qn]),(0,lt.o)(function(){var wn=Fe(fn);Fn(wn);var dn=Fe(Hn(rr));(!wn.equals(dn)||!Re.current||Qn)&&Un(wn,Re.current)},[fn]),(0,lt.o)(function(){Qn&&dr()},[rr]),E.createElement("div",{ref:be,className:Ee()(yt,Mt,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(yt,"-focused"),Yt),"".concat(yt,"-disabled"),Gt),"".concat(yt,"-readonly"),Rt),"".concat(yt,"-not-a-number"),Sn.isNaN()),"".concat(yt,"-out-of-range"),!Sn.isInvalidate()&&!_n(Sn))),style:Kt,onFocus:function(){Ct(!0)},onBlur:In,onKeyDown:ur,onKeyUp:pn,onCompositionStart:fr,onCompositionEnd:wr,onBeforeInput:xr},Pn&&E.createElement(ye,{prefixCls:yt,upNode:_t,downNode:Ot,upDisabled:mr,downDisabled:Vn,onStep:Or}),E.createElement("div",{className:"".concat(pe,"-wrap")},E.createElement("input",(0,Be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":Dn,"aria-valuenow":Sn.isInvalidate()?null:Sn.toString(),step:un},fe,{ref:(0,St.sQ)(Ve,ot),className:pe,value:rr,onChange:br,disabled:Gt,readOnly:Rt}))))}),wt=E.forwardRef(function(Ne,ot){var yt=Ne.disabled,Mt=Ne.style,Kt=Ne.prefixCls,cn=Kt===void 0?"rc-input-number":Kt,Dn=Ne.value,kn=Ne.prefix,un=Ne.suffix,bn=Ne.addonBefore,fn=Ne.addonAfter,Gt=Ne.className,Rt=Ne.classNames,_t=(0,he.Z)(Ne,ge),Ot=E.useRef(null),an=E.useRef(null),nn=E.useRef(null),en=function(Pn){nn.current&&(0,Ue.nH)(nn.current,Pn)};return E.useImperativeHandle(ot,function(){return et(nn.current,{focus:en,nativeElement:Ot.current.nativeElement||an.current})}),E.createElement(kt.BaseInput,{className:Gt,triggerFocus:en,prefixCls:cn,value:Dn,disabled:yt,style:Mt,prefix:kn,suffix:un,addonAfter:fn,addonBefore:bn,classNames:Rt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ot},E.createElement(Tt,(0,Be.Z)({prefixCls:cn,disabled:yt,ref:nn,domRef:an,className:Rt==null?void 0:Rt.input},_t)))}),Lt=wt,$e=Lt,At=ne(62487),st=ne(82855),ae=ne(48755),te=ne(60840),ee=ne(2171),oe=ne(83397),ue=ne(31756),re=ne(56553),ve=ne(24971),we=ne(70045),ft=ne(36237),Oe=ne(53075),Ye=ne(64910),mt=ne(39082),Bt=ne(63356),Et=ne(56119),Ut=ne(16931),Wt=ne(51636),Ht=ne(17835);const ln=Ne=>{var ot;const yt=(ot=Ne.handleVisible)!==null&&ot!==void 0?ot:"auto",Mt=Ne.controlHeightSM-Ne.lineWidth*2;return Object.assign(Object.assign({},(0,Ye.T)(Ne)),{controlWidth:90,handleWidth:Mt,handleFontSize:Ne.fontSize/2,handleVisible:yt,handleActiveBg:Ne.colorFillAlter,handleBg:Ne.colorBgContainer,filledHandleBg:new Ht.FastColor(Ne.colorFillSecondary).onBackground(Ne.colorBgContainer).toHexString(),handleHoverColor:Ne.colorPrimary,handleBorderColor:Ne.colorBorder,handleOpacity:yt===!0?1:0,handleVisibleWidth:yt===!0?Mt:0})},qt=(Ne,ot)=>{let{componentCls:yt,borderRadiusSM:Mt,borderRadiusLG:Kt}=Ne;const cn=ot==="lg"?Kt:Mt;return{[`&-${ot}`]:{[`${yt}-handler-wrap`]:{borderStartEndRadius:cn,borderEndEndRadius:cn},[`${yt}-handler-up`]:{borderStartEndRadius:cn},[`${yt}-handler-down`]:{borderEndEndRadius:cn}}}},sn=Ne=>{const{componentCls:ot,lineWidth:yt,lineType:Mt,borderRadius:Kt,inputFontSizeSM:cn,inputFontSizeLG:Dn,controlHeightLG:kn,controlHeightSM:un,colorError:bn,paddingInlineSM:fn,paddingBlockSM:Gt,paddingBlockLG:Rt,paddingInlineLG:_t,colorTextDescription:Ot,motionDurationMid:an,handleHoverColor:nn,handleOpacity:en,paddingInline:xn,paddingBlock:Pn,handleBg:Cn,handleActiveBg:Nn,colorTextDisabled:An,borderRadiusSM:Qn,borderRadiusLG:zn,controlWidth:Nt,handleBorderColor:Qt,filledHandleBg:En,lineHeightLG:mn,calc:Xe}=Ne;return[{[ot]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Ne)),(0,Oe.ik)(Ne)),{display:"inline-block",width:Nt,margin:0,padding:0,borderRadius:Kt}),(0,mt.qG)(Ne,{[`${ot}-handler-wrap`]:{background:Cn,[`${ot}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`}}})),(0,mt.H8)(Ne,{[`${ot}-handler-wrap`]:{background:En,[`${ot}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`}},"&:focus-within":{[`${ot}-handler-wrap`]:{background:Cn}}})),(0,mt.vc)(Ne,{[`${ot}-handler-wrap`]:{background:Cn,[`${ot}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`}}})),(0,mt.Mu)(Ne)),{"&-rtl":{direction:"rtl",[`${ot}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dn,lineHeight:mn,borderRadius:zn,[`input${ot}-input`]:{height:Xe(kn).sub(Xe(yt).mul(2)).equal(),padding:`${(0,ft.unit)(Rt)} ${(0,ft.unit)(_t)}`}},"&-sm":{padding:0,fontSize:cn,borderRadius:Qn,[`input${ot}-input`]:{height:Xe(un).sub(Xe(yt).mul(2)).equal(),padding:`${(0,ft.unit)(Gt)} ${(0,ft.unit)(fn)}`}},"&-out-of-range":{[`${ot}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Ne)),(0,Oe.s7)(Ne)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ot}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ot}-group-addon`]:{borderRadius:zn,fontSize:Ne.fontSizeLG}},"&-sm":{[`${ot}-group-addon`]:{borderRadius:Qn}}},(0,mt.ir)(Ne)),(0,mt.S5)(Ne)),{[`&:not(${ot}-compact-first-item):not(${ot}-compact-last-item)${ot}-compact-item`]:{[`${ot}, ${ot}-group-addon`]:{borderRadius:0}},[`&:not(${ot}-compact-last-item)${ot}-compact-first-item`]:{[`${ot}, ${ot}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ot}-compact-first-item)${ot}-compact-last-item`]:{[`${ot}, ${ot}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ot}-input`]:{cursor:"not-allowed"},[ot]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Ne)),{width:"100%",padding:`${(0,ft.unit)(Pn)} ${(0,ft.unit)(xn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Kt,outline:0,transition:`all ${an} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Oe.nz)(Ne.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${ot}-handler-wrap, &-focused ${ot}-handler-wrap`]:{width:Ne.handleWidth,opacity:1}})},{[ot]:Object.assign(Object.assign(Object.assign({[`${ot}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ne.handleVisibleWidth,opacity:en,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Kt,borderEndEndRadius:Kt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${an}`,overflow:"hidden",[`${ot}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${ot}-handler-up-inner, ${ot}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Ne.handleFontSize}}},[`${ot}-handler`]:{height:"50%",overflow:"hidden",color:Ot,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ft.unit)(yt)} ${Mt} ${Qt}`,transition:`all ${an} linear`,"&:active":{background:Nn},"&:hover":{height:"60%",[` ${ot}-handler-up-inner, ${ot}-handler-down-inner `]:{color:nn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Bt.Ro)()),{color:Ot,transition:`all ${an} linear`,userSelect:"none"})},[`${ot}-handler-up`]:{borderStartEndRadius:Kt},[`${ot}-handler-down`]:{borderEndEndRadius:Kt}},qt(Ne,"lg")),qt(Ne,"sm")),{"&-disabled, &-readonly":{[`${ot}-handler-wrap`]:{display:"none"},[`${ot}-input`]:{color:"inherit"}},[` ${ot}-handler-up-disabled, ${ot}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${ot}-handler-up-disabled:hover &-handler-up-inner, ${ot}-handler-down-disabled:hover &-handler-down-inner `]:{color:An}})}]},Dt=Ne=>{const{componentCls:ot,paddingBlock:yt,paddingInline:Mt,inputAffixPadding:Kt,controlWidth:cn,borderRadiusLG:Dn,borderRadiusSM:kn,paddingInlineLG:un,paddingInlineSM:bn,paddingBlockLG:fn,paddingBlockSM:Gt,motionDurationMid:Rt}=Ne;return{[`${ot}-affix-wrapper`]:Object.assign(Object.assign({[`input${ot}-input`]:{padding:`${(0,ft.unit)(yt)} 0`}},(0,Oe.ik)(Ne)),{position:"relative",display:"inline-flex",alignItems:"center",width:cn,padding:0,paddingInlineStart:Mt,"&-lg":{borderRadius:Dn,paddingInlineStart:un,[`input${ot}-input`]:{padding:`${(0,ft.unit)(fn)} 0`}},"&-sm":{borderRadius:kn,paddingInlineStart:bn,[`input${ot}-input`]:{padding:`${(0,ft.unit)(Gt)} 0`}},[`&:not(${ot}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ot}-disabled`]:{background:"transparent"},[`> div${ot}`]:{width:"100%",border:"none",outline:"none",[`&${ot}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ot}-handler-wrap`]:{zIndex:2},[ot]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Kt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Mt,marginInlineStart:Kt,transition:`margin ${Rt}`}},[`&:hover ${ot}-handler-wrap, &-focused ${ot}-handler-wrap`]:{width:Ne.handleWidth,opacity:1},[`&:not(${ot}-affix-wrapper-without-controls):hover ${ot}-suffix`]:{marginInlineEnd:Ne.calc(Ne.handleWidth).add(Mt).equal()}})}};var tn=(0,Ut.I$)("InputNumber",Ne=>{const ot=(0,Wt.mergeToken)(Ne,(0,Ye.e)(Ne));return[sn(ot),Dt(ot),(0,Et.c)(ot)]},ln,{unitless:{handleOpacity:!0}}),Vt=function(Ne,ot){var yt={};for(var Mt in Ne)Object.prototype.hasOwnProperty.call(Ne,Mt)&&ot.indexOf(Mt)<0&&(yt[Mt]=Ne[Mt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,Mt=Object.getOwnPropertySymbols(Ne);Kt{const{getPrefixCls:yt,direction:Mt}=E.useContext(ae.E_),Kt=E.useRef(null);E.useImperativeHandle(ot,()=>Kt.current);const{className:cn,rootClassName:Dn,size:kn,disabled:un,prefixCls:bn,addonBefore:fn,addonAfter:Gt,prefix:Rt,suffix:_t,bordered:Ot,readOnly:an,status:nn,controls:en,variant:xn}=Ne,Pn=Vt(Ne,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Cn=yt("input-number",bn),Nn=(0,oe.Z)(Cn),[An,Qn,zn]=tn(Cn,Nn),{compactSize:Nt,compactItemClassnames:Qt}=(0,we.ri)(Cn,Mt);let En=E.createElement(xe.Z,{className:`${Cn}-handler-up-inner`}),mn=E.createElement(Qe.Z,{className:`${Cn}-handler-down-inner`});const Xe=typeof en=="boolean"?en:void 0;typeof en=="object"&&(En=typeof en.upIcon=="undefined"?En:E.createElement("span",{className:`${Cn}-handler-up-inner`},en.upIcon),mn=typeof en.downIcon=="undefined"?mn:E.createElement("span",{className:`${Cn}-handler-down-inner`},en.downIcon));const{hasFeedback:ut,status:ke,isFormItemInput:be,feedbackIcon:fe}=E.useContext(re.aM),pe=(0,st.F)(ke,nn),Ve=(0,ue.Z)(On=>{var Sn;return(Sn=kn!=null?kn:Nt)!==null&&Sn!==void 0?Sn:On}),Xt=E.useContext(ee.Z),rn=un!=null?un:Xt,[Yt,Ct]=(0,ve.Z)("inputNumber",xn,Ot),Re=ut&&E.createElement(E.Fragment,null,fe),xt=Ee()({[`${Cn}-lg`]:Ve==="large",[`${Cn}-sm`]:Ve==="small",[`${Cn}-rtl`]:Mt==="rtl",[`${Cn}-in-form-item`]:be},Qn),Jt=`${Cn}-group`,gn=E.createElement($e,Object.assign({ref:Kt,disabled:rn,className:Ee()(zn,Nn,cn,Dn,Qt),upHandler:En,downHandler:mn,prefixCls:Cn,readOnly:an,controls:Xe,prefix:Rt,suffix:Re||_t,addonBefore:fn&&E.createElement(At.Z,{form:!0,space:!0},fn),addonAfter:Gt&&E.createElement(At.Z,{form:!0,space:!0},Gt),classNames:{input:xt,variant:Ee()({[`${Cn}-${Yt}`]:Ct},(0,st.Z)(Cn,pe,ut)),affixWrapper:Ee()({[`${Cn}-affix-wrapper-sm`]:Ve==="small",[`${Cn}-affix-wrapper-lg`]:Ve==="large",[`${Cn}-affix-wrapper-rtl`]:Mt==="rtl",[`${Cn}-affix-wrapper-without-controls`]:en===!1||rn},Qn),wrapper:Ee()({[`${Jt}-rtl`]:Mt==="rtl"},Qn),groupWrapper:Ee()({[`${Cn}-group-wrapper-sm`]:Ve==="small",[`${Cn}-group-wrapper-lg`]:Ve==="large",[`${Cn}-group-wrapper-rtl`]:Mt==="rtl",[`${Cn}-group-wrapper-${Yt}`]:Ct},(0,st.Z)(`${Cn}-group-wrapper`,pe,ut),Qn)}},Pn));return An(gn)}),pt=je,Ft=Ne=>E.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(je,Object.assign({},Ne)));pt._InternalPanelDoNotUseOrYouWillBeFired=Ft;var jt=pt},49397:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return ht}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(36901),Ee=ne(8654),Be=ne(62487),De=ne(86013),We=ne(82855),Ie=ne(48755),he=ne(2171),Je=ne(83397),Pe=ne(31756),dt=ne(56553),Ze=ne(24971),Ce=ne(70045),Te=ne(23826),_e=ne(53075);function rt(it){return!!(it.prefix||it.suffix||it.allowClear||it.showCount)}var gt=function(it,nt){var Fe={};for(var kt in it)Object.prototype.hasOwnProperty.call(it,kt)&&nt.indexOf(kt)<0&&(Fe[kt]=it[kt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,kt=Object.getOwnPropertySymbols(it);lt{const{prefixCls:Fe,bordered:kt=!0,status:lt,size:et,disabled:St,onBlur:Me,onFocus:Ke,suffix:ze,allowClear:se,addonAfter:qe,addonBefore:Le,className:Ae,style:ct,styles:ye,rootClassName:ce,onChange:Ue,classNames:It,variant:bt}=it,ge=gt(it,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:He,direction:Ge,allowClear:Tt,autoComplete:wt,className:Lt,style:$e,classNames:At,styles:st}=(0,Ie.dj)("input"),ae=He("input",Fe),te=(0,E.useRef)(null),ee=(0,Je.Z)(ae),[oe,ue,re]=(0,_e.TI)(ae,ce),[ve]=(0,_e.ZP)(ae,ee),{compactSize:we,compactItemClassnames:ft}=(0,Ce.ri)(ae,Ge),Oe=(0,Pe.Z)(jt=>{var Ne;return(Ne=et!=null?et:we)!==null&&Ne!==void 0?Ne:jt}),Ye=E.useContext(he.Z),mt=St!=null?St:Ye,{status:Bt,hasFeedback:Et,feedbackIcon:Ut}=(0,E.useContext)(dt.aM),Wt=(0,We.F)(Bt,lt),Ht=rt(it)||!!Et,ln=(0,E.useRef)(Ht),qt=(0,Te.Z)(te,!0),sn=jt=>{qt(),Me==null||Me(jt)},Dt=jt=>{qt(),Ke==null||Ke(jt)},tn=jt=>{qt(),Ue==null||Ue(jt)},Vt=(Et||ze)&&E.createElement(E.Fragment,null,ze,Et&&Ut),je=(0,De.Z)(se!=null?se:Tt),[pt,Ft]=(0,Ze.Z)("input",bt,kt);return oe(ve(E.createElement(tt.default,Object.assign({ref:(0,Ee.sQ)(nt,te),prefixCls:ae,autoComplete:wt},ge,{disabled:mt,onBlur:sn,onFocus:Dt,style:Object.assign(Object.assign({},$e),ct),styles:Object.assign(Object.assign({},st),ye),suffix:Vt,allowClear:je,className:xe()(Ae,ce,re,ee,ft,Lt),onChange:tn,addonBefore:Le&&E.createElement(Be.Z,{form:!0,space:!0},Le),addonAfter:qe&&E.createElement(Be.Z,{form:!0,space:!0},qe),classNames:Object.assign(Object.assign(Object.assign({},It),At),{input:xe()({[`${ae}-sm`]:Oe==="small",[`${ae}-lg`]:Oe==="large",[`${ae}-rtl`]:Ge==="rtl"},It==null?void 0:It.input,At.input,ue),variant:xe()({[`${ae}-${pt}`]:Ft},(0,We.Z)(ae,Wt)),affixWrapper:xe()({[`${ae}-affix-wrapper-sm`]:Oe==="small",[`${ae}-affix-wrapper-lg`]:Oe==="large",[`${ae}-affix-wrapper-rtl`]:Ge==="rtl"},ue),wrapper:xe()({[`${ae}-group-rtl`]:Ge==="rtl"},ue),groupWrapper:xe()({[`${ae}-group-wrapper-sm`]:Oe==="small",[`${ae}-group-wrapper-lg`]:Oe==="large",[`${ae}-group-wrapper-rtl`]:Ge==="rtl",[`${ae}-group-wrapper-${pt}`]:Ft},(0,We.Z)(`${ae}-group-wrapper`,Wt,Et),ue)})}))))})},79809:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return nt}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(22711),Ee=ne(86013),Be=ne(82855),De=ne(48755),We=ne(2171),Ie=ne(83397),he=ne(31756),Je=ne(56553),Pe=ne(24971),dt=ne(70045),Ze=ne(30292),Ce=ne(53075),Te=ne(16931),_e=ne(51636),rt=ne(64910);const gt=Fe=>{const{componentCls:kt,paddingLG:lt}=Fe,et=`${kt}-textarea`;return{[`textarea${kt}`]:{maxWidth:"100%",height:"auto",minHeight:Fe.controlHeight,lineHeight:Fe.lineHeight,verticalAlign:"bottom",transition:`all ${Fe.motionDurationSlow}`,resize:"vertical",[`&${kt}-mouse-active`]:{transition:`all ${Fe.motionDurationSlow}, height 0s, width 0s`}},[`${kt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[et]:{position:"relative","&-show-count":{[`> ${kt}`]:{height:"100%"},[`${kt}-data-count`]:{position:"absolute",bottom:Fe.calc(Fe.fontSize).mul(Fe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Fe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${kt}, &-affix-wrapper${et}-has-feedback ${kt} `]:{paddingInlineEnd:lt},[`&-affix-wrapper${kt}-affix-wrapper`]:{padding:0,[`> textarea${kt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Fe.calc(Fe.controlHeight).sub(Fe.calc(Fe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${kt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${kt}-clear-icon`]:{position:"absolute",insetInlineEnd:Fe.paddingInline,insetBlockStart:Fe.paddingXS},[`${et}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Fe.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:Fe.paddingInlineSM}}}}}};var Pt=(0,Te.I$)(["Input","TextArea"],Fe=>{const kt=(0,_e.mergeToken)(Fe,(0,rt.e)(Fe));return[gt(kt)]},rt.T,{resetFont:!1}),ht=function(Fe,kt){var lt={};for(var et in Fe)Object.prototype.hasOwnProperty.call(Fe,et)&&kt.indexOf(et)<0&&(lt[et]=Fe[et]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,et=Object.getOwnPropertySymbols(Fe);St{var lt;const{prefixCls:et,bordered:St=!0,size:Me,disabled:Ke,status:ze,allowClear:se,classNames:qe,rootClassName:Le,className:Ae,style:ct,styles:ye,variant:ce,showCount:Ue,onMouseDown:It,onResize:bt}=Fe,ge=ht(Fe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:He,direction:Ge,allowClear:Tt,autoComplete:wt,className:Lt,style:$e,classNames:At,styles:st}=(0,De.dj)("textArea"),ae=E.useContext(We.Z),te=Ke!=null?Ke:ae,{status:ee,hasFeedback:oe,feedbackIcon:ue}=E.useContext(Je.aM),re=(0,Be.F)(ee,ze),ve=E.useRef(null);E.useImperativeHandle(kt,()=>{var Ft;return{resizableTextArea:(Ft=ve.current)===null||Ft===void 0?void 0:Ft.resizableTextArea,focus:jt=>{var Ne,ot;(0,Ze.nH)((ot=(Ne=ve.current)===null||Ne===void 0?void 0:Ne.resizableTextArea)===null||ot===void 0?void 0:ot.textArea,jt)},blur:()=>{var jt;return(jt=ve.current)===null||jt===void 0?void 0:jt.blur()}}});const we=He("input",et),ft=(0,Ie.Z)(we),[Oe,Ye,mt]=(0,Ce.TI)(we,Le),[Bt]=Pt(we,ft),{compactSize:Et,compactItemClassnames:Ut}=(0,dt.ri)(we,Ge),Wt=(0,he.Z)(Ft=>{var jt;return(jt=Me!=null?Me:Et)!==null&&jt!==void 0?jt:Ft}),[Ht,ln]=(0,Pe.Z)("textArea",ce,St),qt=(0,Ee.Z)(se!=null?se:Tt),[sn,Dt]=E.useState(!1),[tn,Vt]=E.useState(!1),je=Ft=>{Dt(!0),It==null||It(Ft);const jt=()=>{Dt(!1),document.removeEventListener("mouseup",jt)};document.addEventListener("mouseup",jt)},pt=Ft=>{var jt,Ne;if(bt==null||bt(Ft),sn&&typeof getComputedStyle=="function"){const ot=(Ne=(jt=ve.current)===null||jt===void 0?void 0:jt.nativeElement)===null||Ne===void 0?void 0:Ne.querySelector("textarea");ot&&getComputedStyle(ot).resize==="both"&&Vt(!0)}};return Oe(Bt(E.createElement(tt.default,Object.assign({autoComplete:wt},ge,{style:Object.assign(Object.assign({},$e),ct),styles:Object.assign(Object.assign({},st),ye),disabled:te,allowClear:qt,className:xe()(mt,ft,Ae,Le,Ut,Lt,tn&&`${we}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},qe),At),{textarea:xe()({[`${we}-sm`]:Wt==="small",[`${we}-lg`]:Wt==="large"},Ye,qe==null?void 0:qe.textarea,At.textarea,sn&&`${we}-mouse-active`),variant:xe()({[`${we}-${Ht}`]:ln},(0,Be.Z)(we,re)),affixWrapper:xe()(`${we}-textarea-affix-wrapper`,{[`${we}-affix-wrapper-rtl`]:Ge==="rtl",[`${we}-affix-wrapper-sm`]:Wt==="small",[`${we}-affix-wrapper-lg`]:Wt==="large",[`${we}-textarea-show-count`]:Ue||((lt=Fe.count)===null||lt===void 0?void 0:lt.show)},Ye)}),prefixCls:we,suffix:oe&&E.createElement("span",{className:`${we}-textarea-suffix`},ue),showCount:Ue,ref:ve,onResize:pt,onMouseDown:je}))))})},23826:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Qe}});var E=ne(59301);function Qe(xe,tt){const Ee=(0,E.useRef)([]),Be=()=>{Ee.current.push(setTimeout(()=>{var De,We,Ie,he;!((De=xe.current)===null||De===void 0)&&De.input&&((We=xe.current)===null||We===void 0?void 0:We.input.getAttribute("type"))==="password"&&(!((Ie=xe.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((he=xe.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(tt&&Be(),()=>Ee.current.forEach(De=>{De&&clearTimeout(De)})),[]),Be}},37568:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return At}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(48755),Ee=ne(56553),Be=ne(53075),We=st=>{const{getPrefixCls:ae,direction:te}=(0,E.useContext)(tt.E_),{prefixCls:ee,className:oe}=st,ue=ae("input-group",ee),re=ae("input"),[ve,we,ft]=(0,Be.ZP)(re),Oe=xe()(ue,ft,{[`${ue}-lg`]:st.size==="large",[`${ue}-sm`]:st.size==="small",[`${ue}-compact`]:st.compact,[`${ue}-rtl`]:te==="rtl"},we,oe),Ye=(0,E.useContext)(Ee.aM),mt=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ye),{isFormItemInput:!1}),[Ye]);return ve(E.createElement("span",{className:Oe,style:st.style,onMouseEnter:st.onMouseEnter,onMouseLeave:st.onMouseLeave,onFocus:st.onFocus,onBlur:st.onBlur},E.createElement(Ee.aM.Provider,{value:mt},st.children)))},Ie=ne(49397),he=ne(77654),Je=ne(6089),Pe=ne(26112),dt=ne(82855),Ze=ne(31756),Ce=ne(16931),Te=ne(51636),_e=ne(64910);const rt=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 gt=(0,Ce.I$)(["Input","OTP"],st=>{const ae=(0,Te.mergeToken)(st,(0,_e.e)(st));return[rt(ae)]},_e.T),Pt=ne(16089),ht=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:ue,mask:re}=st,ve=ht(st,["value","onChange","onActiveChange","index","mask"]),we=te&&typeof re=="string"?re:te,ft=Et=>{ee(ue,Et.target.value)},Oe=E.useRef(null);E.useImperativeHandle(ae,()=>Oe.current);const Ye=()=>{(0,Pt.Z)(()=>{var Et;const Ut=(Et=Oe.current)===null||Et===void 0?void 0:Et.input;document.activeElement===Ut&&Ut&&Ut.select()})},mt=Et=>{const{key:Ut,ctrlKey:Wt,metaKey:Ht}=Et;Ut==="ArrowLeft"?oe(ue-1):Ut==="ArrowRight"?oe(ue+1):Ut==="z"&&(Wt||Ht)&&Et.preventDefault(),Ye()},Bt=Et=>{Et.key==="Backspace"&&!te&&oe(ue-1),Ye()};return E.createElement(Ie.Z,Object.assign({type:re===!0?"password":"text"},ve,{ref:Oe,value:we,onInput:ft,onFocus:Ye,onKeyDown:mt,onKeyUp:Bt,onMouseDown:Ye,onMouseUp:Ye}))}),Fe=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?E.createElement("span",{className:`${te}-separator`},oe):null};var St=E.forwardRef((st,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:ue,value:re,onChange:ve,formatter:we,separator:ft,variant:Oe,disabled:Ye,status:mt,autoFocus:Bt,mask:Et,type:Ut,onInput:Wt,inputMode:Ht}=st,ln=Fe(st,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:qt,direction:sn}=E.useContext(tt.E_),Dt=qt("otp",te),tn=(0,Pe.Z)(ln,{aria:!0,data:!0,attr:!0}),[Vt,je,pt]=gt(Dt),Ft=(0,Ze.Z)(Rt=>oe!=null?oe:Rt),jt=E.useContext(Ee.aM),Ne=(0,dt.F)(jt.status,mt),ot=E.useMemo(()=>Object.assign(Object.assign({},jt),{status:Ne,hasFeedback:!1,feedbackIcon:null}),[jt,Ne]),yt=E.useRef(null),Mt=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var Rt;(Rt=Mt.current[0])===null||Rt===void 0||Rt.focus()},blur:()=>{var Rt;for(let _t=0;_twe?we(Rt):Rt,[cn,Dn]=E.useState(()=>kt(Kt(ue||"")));E.useEffect(()=>{re!==void 0&&Dn(kt(re))},[re]);const kn=(0,Je.Z)(Rt=>{Dn(Rt),Wt&&Wt(Rt),ve&&Rt.length===ee&&Rt.every(_t=>_t)&&Rt.some((_t,Ot)=>cn[Ot]!==_t)&&ve(Rt.join(""))}),un=(0,Je.Z)((Rt,_t)=>{let Ot=(0,he.Z)(cn);for(let nn=0;nn=0&&!Ot[nn];nn-=1)Ot.pop();const an=Kt(Ot.map(nn=>nn||" ").join(""));return Ot=kt(an).map((nn,en)=>nn===" "&&!Ot[en]?Ot[en]:nn),Ot}),bn=(Rt,_t)=>{var Ot;const an=un(Rt,_t),nn=Math.min(Rt+_t.length,ee-1);nn!==Rt&&an[Rt]!==void 0&&((Ot=Mt.current[nn])===null||Ot===void 0||Ot.focus()),kn(an)},fn=Rt=>{var _t;(_t=Mt.current[Rt])===null||_t===void 0||_t.focus()},Gt={variant:Oe,disabled:Ye,status:Ne,mask:Et,type:Ut,inputMode:Ht};return Vt(E.createElement("div",Object.assign({},tn,{ref:yt,className:xe()(Dt,{[`${Dt}-sm`]:Ft==="small",[`${Dt}-lg`]:Ft==="large",[`${Dt}-rtl`]:sn==="rtl"},pt,je)}),E.createElement(Ee.aM.Provider,{value:ot},Array.from({length:ee}).map((Rt,_t)=>{const Ot=`otp-${_t}`,an=cn[_t]||"";return E.createElement(E.Fragment,{key:Ot},E.createElement(nt,Object.assign({ref:nn=>{Mt.current[_t]=nn},index:_t,size:Ft,htmlSize:1,className:`${Dt}-input`,onChange:bn,value:an,onActiveChange:fn,autoFocus:_t===0&&Bt},Gt)),_tst?E.createElement(Ke.Z,null):E.createElement(Me.Z,null),ye={click:"onClick",hover:"onMouseOver"};var Ue=E.forwardRef((st,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:ue=ct}=st,re=E.useContext(qe.Z),ve=te!=null?te:re,we=typeof oe=="object"&&oe.visible!==void 0,[ft,Oe]=(0,E.useState)(()=>we?oe.visible:!1),Ye=(0,E.useRef)(null);E.useEffect(()=>{we&&Oe(oe.visible)},[we,oe]);const mt=(0,Le.Z)(Ye),Bt=()=>{var Ft;if(ve)return;ft&&mt();const jt=!ft;Oe(jt),typeof oe=="object"&&((Ft=oe.onVisibleChange)===null||Ft===void 0||Ft.call(oe,jt))},Et=Ft=>{const jt=ye[ee]||"",Ne=ue(ft),ot={[jt]:Bt,className:`${Ft}-icon`,key:"passwordIcon",onMouseDown:yt=>{yt.preventDefault()},onMouseUp:yt=>{yt.preventDefault()}};return E.cloneElement(E.isValidElement(Ne)?Ne:E.createElement("span",null,Ne),ot)},{className:Ut,prefixCls:Wt,inputPrefixCls:Ht,size:ln}=st,qt=Ae(st,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:sn}=E.useContext(tt.E_),Dt=sn("input",Ht),tn=sn("input-password",Wt),Vt=oe&&Et(tn),je=xe()(tn,Ut,{[`${tn}-${ln}`]:!!ln}),pt=Object.assign(Object.assign({},(0,ze.Z)(qt,["suffix","iconRender","visibilityToggle"])),{type:ft?"text":"password",className:je,prefixCls:Dt,suffix:Vt});return ln&&(pt.size=ln),E.createElement(Ie.Z,Object.assign({ref:(0,se.sQ)(ae,Ye)},pt))}),It=ne(47472),bt=ne(22703),ge=ne(7939),He=ne(70045),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{prefixCls:te,inputPrefixCls:ee,className:oe,size:ue,suffix:re,enterButton:ve=!1,addonAfter:we,loading:ft,disabled:Oe,onSearch:Ye,onChange:mt,onCompositionStart:Bt,onCompositionEnd:Et}=st,Ut=Ge(st,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Wt,direction:Ht}=E.useContext(tt.E_),ln=E.useRef(!1),qt=Wt("input-search",te),sn=Wt("input",ee),{compactSize:Dt}=(0,He.ri)(qt,Ht),tn=(0,Ze.Z)(bn=>{var fn;return(fn=ue!=null?ue:Dt)!==null&&fn!==void 0?fn:bn}),Vt=E.useRef(null),je=bn=>{bn!=null&&bn.target&&bn.type==="click"&&Ye&&Ye(bn.target.value,bn,{source:"clear"}),mt==null||mt(bn)},pt=bn=>{var fn;document.activeElement===((fn=Vt.current)===null||fn===void 0?void 0:fn.input)&&bn.preventDefault()},Ft=bn=>{var fn,Gt;Ye&&Ye((Gt=(fn=Vt.current)===null||fn===void 0?void 0:fn.input)===null||Gt===void 0?void 0:Gt.value,bn,{source:"input"})},jt=bn=>{ln.current||ft||Ft(bn)},Ne=typeof ve=="boolean"?E.createElement(It.Z,null):null,ot=`${qt}-button`;let yt;const Mt=ve||{},Kt=Mt.type&&Mt.type.__ANT_BUTTON===!0;Kt||Mt.type==="button"?yt=(0,bt.Tm)(Mt,Object.assign({onMouseDown:pt,onClick:bn=>{var fn,Gt;(Gt=(fn=Mt==null?void 0:Mt.props)===null||fn===void 0?void 0:fn.onClick)===null||Gt===void 0||Gt.call(fn,bn),Ft(bn)},key:"enterButton"},Kt?{className:ot,size:tn}:{})):yt=E.createElement(ge.ZP,{className:ot,type:ve?"primary":void 0,size:tn,disabled:Oe,key:"enterButton",onMouseDown:pt,onClick:Ft,loading:ft,icon:Ne},ve),we&&(yt=[yt,(0,bt.Tm)(we,{key:"addonAfter"})]);const cn=xe()(qt,{[`${qt}-rtl`]:Ht==="rtl",[`${qt}-${tn}`]:!!tn,[`${qt}-with-button`]:!!ve},oe),Dn=Object.assign(Object.assign({},Ut),{className:cn,prefixCls:sn,type:"search"}),kn=bn=>{ln.current=!0,Bt==null||Bt(bn)},un=bn=>{ln.current=!1,Et==null||Et(bn)};return E.createElement(Ie.Z,Object.assign({ref:(0,se.sQ)(Vt,ae),onPressEnter:jt},Dn,{size:tn,onCompositionStart:kn,onCompositionEnd:un,addonAfter:yt,suffix:re,onChange:je,disabled:Oe}))}),Lt=ne(79809);const $e=Ie.Z;$e.Group=We,$e.Search=wt,$e.TextArea=Lt.Z,$e.Password=Ue,$e.OTP=St;var At=$e},24303:function(on,$t,ne){"use strict";ne.d($t,{D:function(){return Fe},Z:function(){return et}});var E=ne(59301),Qe=ne(60499),xe={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"},tt=xe,Ee=ne(7657),Be=function(Me,Ke){return E.createElement(Ee.Z,(0,Qe.Z)({},Me,{ref:Ke,icon:tt}))},De=E.forwardRef(Be),We=De,Ie=ne(33853),he=ne(38819),Je=ne(92310),Pe=ne.n(Je),dt=ne(2738),Ze=ne(48755),Ce=ne(6989),Te=ne(36237),_e=ne(48923),rt=ne(16931);const gt=St=>{const{componentCls:Me,siderBg:Ke,motionDurationMid:ze,motionDurationSlow:se,antCls:qe,triggerHeight:Le,triggerColor:Ae,triggerBg:ct,headerHeight:ye,zeroTriggerWidth:ce,zeroTriggerHeight:Ue,borderRadiusLG:It,lightSiderBg:bt,lightTriggerColor:ge,lightTriggerBg:He,bodyBg:Ge}=St;return{[Me]:{position:"relative",minWidth:0,background:Ke,transition:`all ${ze}, background 0s`,"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${qe}-menu${qe}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Le,color:Ae,lineHeight:(0,Te.unit)(Le),textAlign:"center",background:ct,cursor:"pointer",transition:`all ${ze}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:ye,insetInlineEnd:St.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:Ue,color:Ae,fontSize:St.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ke,borderRadius:`0 ${(0,Te.unit)(It)} ${(0,Te.unit)(It)} 0`,cursor:"pointer",transition:`background ${se} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${se}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:St.calc(ce).mul(-1).equal(),borderRadius:`${(0,Te.unit)(It)} 0 0 ${(0,Te.unit)(It)}`}},"&-light":{background:bt,[`${Me}-trigger`]:{color:ge,background:He},[`${Me}-zero-width-trigger`]:{color:ge,background:He,border:`1px solid ${Ge}`,borderInlineStart:0}}}}};var Pt=(0,rt.I$)(["Layout","Sider"],St=>[gt(St)],_e.eh,{deprecatedTokens:_e.jn}),ht=function(St,Me){var Ke={};for(var ze in St)Object.prototype.hasOwnProperty.call(St,ze)&&Me.indexOf(ze)<0&&(Ke[ze]=St[ze]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ze=Object.getOwnPropertySymbols(St);se!Number.isNaN(Number.parseFloat(St))&&isFinite(St),Fe=E.createContext({}),kt=(()=>{let St=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return St+=1,`${Me}${St}`}})();var et=E.forwardRef((St,Me)=>{const{prefixCls:Ke,className:ze,trigger:se,children:qe,defaultCollapsed:Le=!1,theme:Ae="dark",style:ct={},collapsible:ye=!1,reverseArrow:ce=!1,width:Ue=200,collapsedWidth:It=80,zeroWidthTriggerStyle:bt,breakpoint:ge,onCollapse:He,onBreakpoint:Ge}=St,Tt=ht(St,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:wt}=(0,E.useContext)(Ce.V),[Lt,$e]=(0,E.useState)("collapsed"in St?St.collapsed:Le),[At,st]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in St&&$e(St.collapsed)},[St.collapsed]);const ae=(tn,Vt)=>{"collapsed"in St||$e(tn),He==null||He(tn,Vt)},{getPrefixCls:te,direction:ee}=(0,E.useContext)(Ze.E_),oe=te("layout-sider",Ke),[ue,re,ve]=Pt(oe),we=(0,E.useRef)(null);we.current=tn=>{st(tn.matches),Ge==null||Ge(tn.matches),Lt!==tn.matches&&ae(tn.matches,"responsive")},(0,E.useEffect)(()=>{function tn(je){return we.current(je)}let Vt;if(typeof window!="undefined"){const{matchMedia:je}=window;if(je&&ge&&ge in it){Vt=je(`screen and (max-width: ${it[ge]})`);try{Vt.addEventListener("change",tn)}catch(pt){Vt.addListener(tn)}tn(Vt)}}return()=>{try{Vt==null||Vt.removeEventListener("change",tn)}catch(je){Vt==null||Vt.removeListener(tn)}}},[ge]),(0,E.useEffect)(()=>{const tn=kt("ant-sider-");return wt.addSider(tn),()=>wt.removeSider(tn)},[]);const ft=()=>{ae(!Lt,"clickTrigger")},Oe=(0,dt.Z)(Tt,["collapsed"]),Ye=Lt?It:Ue,mt=nt(Ye)?`${Ye}px`:String(Ye),Bt=parseFloat(String(It||0))===0?E.createElement("span",{onClick:ft,className:Pe()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:bt},se||E.createElement(We,null)):null,Et=ee==="rtl"==!ce,Ht={expanded:Et?E.createElement(he.Z,null):E.createElement(Ie.Z,null),collapsed:Et?E.createElement(Ie.Z,null):E.createElement(he.Z,null)}[Lt?"collapsed":"expanded"],ln=se!==null?Bt||E.createElement("div",{className:`${oe}-trigger`,onClick:ft,style:{width:mt}},se||Ht):null,qt=Object.assign(Object.assign({},ct),{flex:`0 0 ${mt}`,maxWidth:mt,minWidth:mt,width:mt}),sn=Pe()(oe,`${oe}-${Ae}`,{[`${oe}-collapsed`]:!!Lt,[`${oe}-has-trigger`]:ye&&se!==null&&!Bt,[`${oe}-below`]:!!At,[`${oe}-zero-width`]:parseFloat(mt)===0},ze,re,ve),Dt=E.useMemo(()=>({siderCollapsed:Lt}),[Lt]);return ue(E.createElement(Fe.Provider,{value:Dt},E.createElement("aside",Object.assign({className:sn},Oe,{style:qt,ref:Me}),E.createElement("div",{className:`${oe}-children`},qe),ye||At&&Bt?ln:null)))})},6989:function(on,$t,ne){"use strict";ne.d($t,{V:function(){return Qe}});var E=ne(59301);const Qe=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24404:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return it}});var E=ne(77654),Qe=ne(59301),xe=ne(92310),tt=ne.n(xe),Ee=ne(2738),Be=ne(48755),De=ne(6989),We=ne(11592),Ie=ne(24303);function he(nt,Fe,kt){return typeof kt=="boolean"?kt:nt.length?!0:(0,We.Z)(Fe).some(et=>et.type===Ie.Z)}var Je=ne(48923),Pe=function(nt,Fe){var kt={};for(var lt in nt)Object.prototype.hasOwnProperty.call(nt,lt)&&Fe.indexOf(lt)<0&&(kt[lt]=nt[lt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,lt=Object.getOwnPropertySymbols(nt);etQe.forwardRef((Me,Ke)=>Qe.createElement(et,Object.assign({ref:Ke,suffixCls:Fe,tagName:kt},Me)))}const Ze=Qe.forwardRef((nt,Fe)=>{const{prefixCls:kt,suffixCls:lt,className:et,tagName:St}=nt,Me=Pe(nt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ke}=Qe.useContext(Be.E_),ze=Ke("layout",kt),[se,qe,Le]=(0,Je.ZP)(ze),Ae=lt?`${ze}-${lt}`:ze;return se(Qe.createElement(St,Object.assign({className:tt()(kt||Ae,et,qe,Le),ref:Fe},Me)))}),Ce=Qe.forwardRef((nt,Fe)=>{const{direction:kt}=Qe.useContext(Be.E_),[lt,et]=Qe.useState([]),{prefixCls:St,className:Me,rootClassName:Ke,children:ze,hasSider:se,tagName:qe,style:Le}=nt,Ae=Pe(nt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ct=(0,Ee.Z)(Ae,["suffixCls"]),{getPrefixCls:ye,className:ce,style:Ue}=(0,Be.dj)("layout"),It=ye("layout",St),bt=he(lt,ze,se),[ge,He,Ge]=(0,Je.ZP)(It),Tt=tt()(It,{[`${It}-has-sider`]:bt,[`${It}-rtl`]:kt==="rtl"},ce,Me,Ke,He,Ge),wt=Qe.useMemo(()=>({siderHook:{addSider:Lt=>{et($e=>[].concat((0,E.Z)($e),[Lt]))},removeSider:Lt=>{et($e=>$e.filter(At=>At!==Lt))}}}),[]);return ge(Qe.createElement(De.V.Provider,{value:wt},Qe.createElement(qe,Object.assign({ref:Fe,className:Tt,style:Object.assign(Object.assign({},Ue),Le)},ct),ze)))}),Te=dt({tagName:"div",displayName:"Layout"})(Ce),_e=dt({suffixCls:"header",tagName:"header",displayName:"Header"})(Ze),rt=dt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ze),gt=dt({suffixCls:"content",tagName:"main",displayName:"Content"})(Ze);var Pt=Te;const ht=Pt;ht.Header=_e,ht.Footer=rt,ht.Content=gt,ht.Sider=Ie.Z,ht._InternalSiderContext=Ie.D;var it=ht},48923:function(on,$t,ne){"use strict";ne.d($t,{eh:function(){return tt},jn:function(){return Ee}});var E=ne(36237),Qe=ne(16931);const xe=Be=>{const{antCls:De,componentCls:We,colorText:Ie,footerBg:he,headerHeight:Je,headerPadding:Pe,headerColor:dt,footerPadding:Ze,fontSize:Ce,bodyBg:Te,headerBg:_e}=Be;return{[We]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Te,"&, *":{boxSizing:"border-box"},[`&${We}-has-sider`]:{flexDirection:"row",[`> ${We}, > ${We}-content`]:{width:0}},[`${We}-header, &${We}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${We}-header`]:{height:Je,padding:Pe,color:dt,lineHeight:(0,E.unit)(Je),background:_e,[`${De}-menu`]:{lineHeight:"inherit"}},[`${We}-footer`]:{padding:Ze,color:Ie,fontSize:Ce,background:he},[`${We}-content`]:{flex:"auto",color:Ie,minHeight:0}}},tt=Be=>{const{colorBgLayout:De,controlHeight:We,controlHeightLG:Ie,colorText:he,controlHeightSM:Je,marginXXS:Pe,colorTextLightSolid:dt,colorBgContainer:Ze}=Be,Ce=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:De,colorBgTrigger:"#002140",bodyBg:De,headerBg:"#001529",headerHeight:We*2,headerPadding:`0 ${Ce}px`,headerColor:he,footerPadding:`${Je}px ${Ce}px`,footerBg:De,siderBg:"#001529",triggerHeight:Ie+Pe*2,triggerBg:"#002140",triggerColor:dt,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:Ze,lightTriggerBg:Ze,lightTriggerColor:he}},Ee=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];$t.ZP=(0,Qe.I$)("Layout",Be=>[xe(Be)],tt,{deprecatedTokens:Ee})},78857:function(on,$t,ne){"use strict";ne.d($t,{J:function(){return Be}});var E=ne(59301),Qe=ne(8654),xe=ne(62487),tt=function(De,We){var Ie={};for(var he in De)Object.prototype.hasOwnProperty.call(De,he)&&We.indexOf(he)<0&&(Ie[he]=De[he]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,he=Object.getOwnPropertySymbols(De);Je{const{children:Ie}=De,he=tt(De,["children"]),Je=E.useContext(Ee),Pe=E.useMemo(()=>Object.assign(Object.assign({},Je),he),[Je,he.prefixCls,he.mode,he.selectable,he.rootClassName]),dt=(0,Qe.t4)(Ie),Ze=(0,Qe.x1)(We,dt?(0,Qe.C4)(Ie):null);return E.createElement(Ee.Provider,{value:Pe},E.createElement(xe.Z,{space:!0},dt?E.cloneElement(Ie,{ref:Ze}):Ie))});$t.Z=Ee},93041:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return ue}});var E=ne(59301),Qe=ne(28321),xe=ne(24303),tt=ne(18785),Ee=ne(92310),Be=ne.n(Ee),De=ne(6089),We=ne(2738),Ie=ne(86641),he=ne(22703),Je=ne(48755),Pe=ne(83397),Ze=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ce=function(re,ve){var we={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&ve.indexOf(ft)<0&&(we[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ft=Object.getOwnPropertySymbols(re);Oe{const{prefixCls:ve,className:we,dashed:ft}=re,Oe=Ce(re,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=E.useContext(Je.E_),mt=Ye("menu",ve),Bt=Be()({[`${mt}-item-divider-dashed`]:!!ft},we);return E.createElement(Qe.iz,Object.assign({className:Bt},Oe))},rt=ne(11592),gt=ne(25399),ht=re=>{var ve;const{className:we,children:ft,icon:Oe,title:Ye,danger:mt,extra:Bt}=re,{prefixCls:Et,firstLevel:Ut,direction:Wt,disableMenuItemTitleTooltip:Ht,inlineCollapsed:ln}=E.useContext(Ze),qt=pt=>{const Ft=ft==null?void 0:ft[0],jt=E.createElement("span",{className:Be()(`${Et}-title-content`,{[`${Et}-title-content-with-extra`]:!!Bt||Bt===0})},ft);return(!Oe||E.isValidElement(ft)&&ft.type==="span")&&ft&&pt&&Ut&&typeof Ft=="string"?E.createElement("div",{className:`${Et}-inline-collapsed-noicon`},Ft.charAt(0)):jt},{siderCollapsed:sn}=E.useContext(xe.D);let Dt=Ye;typeof Ye=="undefined"?Dt=Ut?ft:"":Ye===!1&&(Dt="");const tn={title:Dt};!sn&&!ln&&(tn.title=null,tn.open=!1);const Vt=(0,rt.Z)(ft).length;let je=E.createElement(Qe.ck,Object.assign({},(0,We.Z)(re,["title","icon","danger"]),{className:Be()({[`${Et}-item-danger`]:mt,[`${Et}-item-only-child`]:(Oe?Vt+1:Vt)===1},we),title:typeof Ye=="string"?Ye:void 0}),(0,he.Tm)(Oe,{className:Be()(E.isValidElement(Oe)?(ve=Oe.props)===null||ve===void 0?void 0:ve.className:"",`${Et}-item-icon`)}),qt(ln));return Ht||(je=E.createElement(gt.Z,Object.assign({},tn,{placement:Wt==="rtl"?"left":"right",classNames:{root:`${Et}-inline-collapsed-tooltip`}}),je)),je},it=ne(78857),nt=ne(36237),Fe=ne(17835),kt=ne(63356),lt=ne(34961),et=ne(46e3),St=ne(34925),Me=ne(16931),Ke=ne(51636),se=re=>{const{componentCls:ve,motionDurationSlow:we,horizontalLineHeight:ft,colorSplit:Oe,lineWidth:Ye,lineType:mt,itemPaddingInline:Bt}=re;return{[`${ve}-horizontal`]:{lineHeight:ft,border:0,borderBottom:`${(0,nt.unit)(Ye)} ${mt} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bt},[`> ${ve}-item:hover, > ${ve}-item-active, > ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${we}`,`background ${we}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},Le=re=>{let{componentCls:ve,menuArrowOffset:we,calc:ft}=re;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical, ${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,nt.unit)(ft(we).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,nt.unit)(we)})`}}}}};const Ae=re=>Object.assign({},(0,kt.oN)(re));var ye=(re,ve)=>{const{componentCls:we,itemColor:ft,itemSelectedColor:Oe,subMenuItemSelectedColor:Ye,groupTitleColor:mt,itemBg:Bt,subMenuItemBg:Et,itemSelectedBg:Ut,activeBarHeight:Wt,activeBarWidth:Ht,activeBarBorderWidth:ln,motionDurationSlow:qt,motionEaseInOut:sn,motionEaseOut:Dt,itemPaddingInline:tn,motionDurationMid:Vt,itemHoverColor:je,lineType:pt,colorSplit:Ft,itemDisabledColor:jt,dangerItemColor:Ne,dangerItemHoverColor:ot,dangerItemSelectedColor:yt,dangerItemActiveBg:Mt,dangerItemSelectedBg:Kt,popupBg:cn,itemHoverBg:Dn,itemActiveBg:kn,menuSubMenuBg:un,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:Gt,horizontalItemHoverBg:Rt}=re;return{[`${we}-${ve}, ${we}-${ve} > ${we}`]:{color:ft,background:Bt,[`&${we}-root:focus-visible`]:Object.assign({},Ae(re)),[`${we}-item`]:{"&-group-title, &-extra":{color:mt}},[`${we}-submenu-selected > ${we}-submenu-title`]:{color:Ye},[`${we}-item, ${we}-submenu-title`]:{color:ft,[`&:not(${we}-item-disabled):focus-visible`]:Object.assign({},Ae(re))},[`${we}-item-disabled, ${we}-submenu-disabled`]:{color:`${jt} !important`},[`${we}-item:not(${we}-item-selected):not(${we}-submenu-selected)`]:{[`&:hover, > ${we}-submenu-title:hover`]:{color:je}},[`&:not(${we}-horizontal)`]:{[`${we}-item:not(${we}-item-selected)`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:kn}},[`${we}-submenu-title`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:kn}}},[`${we}-item-danger`]:{color:Ne,[`&${we}-item:hover`]:{[`&:not(${we}-item-selected):not(${we}-submenu-selected)`]:{color:ot}},[`&${we}-item:active`]:{background:Mt}},[`${we}-item a`]:{"&, &:hover":{color:"inherit"}},[`${we}-item-selected`]:{color:Oe,[`&${we}-item-danger`]:{color:yt},"a, a:hover":{color:"inherit"}},[`& ${we}-item-selected`]:{backgroundColor:Ut,[`&${we}-item-danger`]:{backgroundColor:Kt}},[`&${we}-submenu > ${we}`]:{backgroundColor:un},[`&${we}-popup > ${we}`]:{backgroundColor:cn},[`&${we}-submenu-popup > ${we}`]:{backgroundColor:cn},[`&${we}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${we}-item, > ${we}-submenu`]:{top:ln,marginTop:re.calc(ln).mul(-1).equal(),marginBottom:0,borderRadius:Gt,"&::after":{position:"absolute",insetInline:tn,bottom:0,borderBottom:`${(0,nt.unit)(Wt)} solid transparent`,transition:`border-color ${qt} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:Rt,"&::after":{borderBottomWidth:Wt,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:Wt,borderBottomColor:bn}}}}),[`&${we}-root`]:{[`&${we}-inline, &${we}-vertical`]:{borderInlineEnd:`${(0,nt.unit)(ln)} ${pt} ${Ft}`}},[`&${we}-inline`]:{[`${we}-sub${we}-inline`]:{background:Et},[`${we}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,nt.unit)(Ht)} solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vt} ${Dt}`,`opacity ${Vt} ${Dt}`].join(","),content:'""'},[`&${we}-item-danger`]:{"&::after":{borderInlineEndColor:yt}}},[`${we}-selected, ${we}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Vt} ${sn}`,`opacity ${Vt} ${sn}`].join(",")}}}}}};const ce=re=>{const{componentCls:ve,itemHeight:we,itemMarginInline:ft,padding:Oe,menuArrowSize:Ye,marginXS:mt,itemMarginBlock:Bt,itemWidth:Et,itemPaddingInline:Ut}=re,Wt=re.calc(Ye).add(Oe).add(mt).equal();return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:we,lineHeight:(0,nt.unit)(we),paddingInline:Ut,overflow:"hidden",textOverflow:"ellipsis",marginInline:ft,marginBlock:Bt,width:Et},[`> ${ve}-item, > ${ve}-submenu > ${ve}-submenu-title`]:{height:we,lineHeight:(0,nt.unit)(we)},[`${ve}-item-group-list ${ve}-submenu-title, ${ve}-submenu-title`]:{paddingInlineEnd:Wt}}};var It=re=>{const{componentCls:ve,iconCls:we,itemHeight:ft,colorTextLightSolid:Oe,dropdownWidth:Ye,controlHeightLG:mt,motionEaseOut:Bt,paddingXL:Et,itemMarginInline:Ut,fontSizeLG:Wt,motionDurationFast:Ht,motionDurationSlow:ln,paddingXS:qt,boxShadowSecondary:sn,collapsedWidth:Dt,collapsedIconSize:tn}=re,Vt={height:ft,lineHeight:(0,nt.unit)(ft),listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},ce(re))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},ce(re)),{boxShadow:sn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${(0,nt.unit)(re.calc(mt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${Ht} ${Bt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:Vt,[`& ${ve}-item-group-title`]:{paddingInlineStart:Et}},[`${ve}-item`]:Vt}},{[`${ve}-inline-collapsed`]:{width:Dt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:Wt,textAlign:"center"}}},[`> ${ve}-item, > ${ve}-item-group > ${ve}-item-group-list > ${ve}-item, > ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title, > ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,nt.unit)(re.calc(tn).div(2).equal())} - ${(0,nt.unit)(Ut)})`,textOverflow:"clip",[` ${ve}-submenu-arrow, ${ve}-submenu-expand-icon `]:{opacity:0},[`${ve}-item-icon, ${we}`]:{margin:0,fontSize:tn,lineHeight:(0,nt.unit)(ft),"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${we}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${we}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},kt.vS),{paddingInline:qt})}}]};const bt=re=>{const{componentCls:ve,motionDurationSlow:we,motionDurationMid:ft,motionEaseInOut:Oe,motionEaseOut:Ye,iconCls:mt,iconSize:Bt,iconMarginInlineEnd:Et}=re;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${we}`,`background ${we}`,`padding calc(${we} + 0.1s) ${Oe}`].join(","),[`${ve}-item-icon, ${mt}`]:{minWidth:Bt,fontSize:Bt,transition:[`font-size ${ft} ${Ye}`,`margin ${we} ${Oe}`,`color ${we}`].join(","),"+ span":{marginInlineStart:Et,opacity:1,transition:[`opacity ${we} ${Oe}`,`margin ${we}`,`color ${we}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,kt.Ro)()),[`&${ve}-item-only-child`]:{[`> ${mt}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ge=re=>{const{componentCls:ve,motionDurationSlow:we,motionEaseInOut:ft,borderRadius:Oe,menuArrowSize:Ye,menuArrowOffset:mt}=re;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${we} ${ft}, opacity ${we}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Ye).mul(.6).equal(),height:re.calc(Ye).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${we} ${ft}`,`transform ${we} ${ft}`,`top ${we} ${ft}`,`color ${we} ${ft}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,nt.unit)(re.calc(mt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,nt.unit)(mt)})`}}}}},He=re=>{const{antCls:ve,componentCls:we,fontSize:ft,motionDurationSlow:Oe,motionDurationMid:Ye,motionEaseInOut:mt,paddingXS:Bt,padding:Et,colorSplit:Ut,lineWidth:Wt,zIndexPopup:Ht,borderRadiusLG:ln,subMenuItemBorderRadius:qt,menuArrowSize:sn,menuArrowOffset:Dt,lineType:tn,groupTitleLineHeight:Vt,groupTitleFontSize:je}=re;return[{"":{[we]:Object.assign(Object.assign({},(0,kt.dF)()),{"&-hidden":{display:"none"}})},[`${we}-submenu-hidden`]:{display:"none"}},{[we]: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:ft,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${we}-item`]:{flex:"none"}},[`${we}-item, ${we}-submenu, ${we}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${we}-item-group-title`]:{padding:`${(0,nt.unit)(Bt)} ${(0,nt.unit)(Et)}`,fontSize:je,lineHeight:Vt,transition:`all ${Oe}`},[`&-horizontal ${we}-submenu`]:{transition:[`border-color ${Oe} ${mt}`,`background ${Oe} ${mt}`].join(",")},[`${we}-submenu, ${we}-submenu-inline`]:{transition:[`border-color ${Oe} ${mt}`,`background ${Oe} ${mt}`,`padding ${Ye} ${mt}`].join(",")},[`${we}-submenu ${we}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${mt}`,`padding ${Oe} ${mt}`].join(",")},[`${we}-title-content`]:{transition:`color ${Oe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ve}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${we}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${we}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${we}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ut,borderStyle:tn,borderWidth:0,borderTopWidth:Wt,marginBlock:Wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),bt(re)),{[`${we}-item-group`]:{[`${we}-item-group-list`]:{margin:0,padding:0,[`${we}-item, ${we}-submenu-title`]:{paddingInline:`${(0,nt.unit)(re.calc(ft).mul(2).equal())} ${(0,nt.unit)(Et)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${we}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${we}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},bt(re)),ge(re)),{[`${we}-item, ${we}-submenu > ${we}-submenu-title`]:{borderRadius:qt},[`${we}-submenu-title::after`]:{transition:`transform ${Oe} ${mt}`}})},"\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}}}),ge(re)),{[`&-inline-collapsed ${we}-submenu-arrow, &-inline ${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,nt.unit)(Dt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,nt.unit)(re.calc(Dt).mul(-1).equal())})`}},[`${we}-submenu-open${we}-submenu-inline > ${we}-submenu-title > ${we}-submenu-arrow`]:{transform:`translateY(${(0,nt.unit)(re.calc(sn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,nt.unit)(re.calc(Dt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,nt.unit)(Dt)})`}}})},{[`${ve}-layout-header`]:{[we]:{lineHeight:"inherit"}}}]},Ge=re=>{var ve,we,ft;const{colorPrimary:Oe,colorError:Ye,colorTextDisabled:mt,colorErrorBg:Bt,colorText:Et,colorTextDescription:Ut,colorBgContainer:Wt,colorFillAlter:Ht,colorFillContent:ln,lineWidth:qt,lineWidthBold:sn,controlItemBgActive:Dt,colorBgTextHover:tn,controlHeightLG:Vt,lineHeight:je,colorBgElevated:pt,marginXXS:Ft,padding:jt,fontSize:Ne,controlHeightSM:ot,fontSizeLG:yt,colorTextLightSolid:Mt,colorErrorHover:Kt}=re,cn=(ve=re.activeBarWidth)!==null&&ve!==void 0?ve:0,Dn=(we=re.activeBarBorderWidth)!==null&&we!==void 0?we:qt,kn=(ft=re.itemMarginInline)!==null&&ft!==void 0?ft:re.marginXXS,un=new Fe.FastColor(Mt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:Et,itemColor:Et,colorItemTextHover:Et,itemHoverColor:Et,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:Ut,groupTitleColor:Ut,colorItemTextSelected:Oe,itemSelectedColor:Oe,subMenuItemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:Wt,itemBg:Wt,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:ln,itemActiveBg:Dt,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:Dt,itemSelectedBg:Dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:cn,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:qt,activeBarBorderWidth:Dn,colorItemTextDisabled:mt,itemDisabledColor:mt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:Bt,dangerItemActiveBg:Bt,colorDangerItemBgSelected:Bt,dangerItemSelectedBg:Bt,itemMarginInline:kn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Vt,groupTitleLineHeight:je,collapsedWidth:Vt*2,popupBg:pt,itemMarginBlock:Ft,itemPaddingInline:jt,horizontalLineHeight:`${Vt*1.15}px`,iconSize:Ne,iconMarginInlineEnd:ot-Ne,collapsedIconSize:yt,groupTitleFontSize:Ne,darkItemDisabledColor:new Fe.FastColor(Mt).setA(.25).toRgbString(),darkItemColor:un,darkDangerItemColor:Ye,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:un,darkItemHoverColor:Mt,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:Ye,itemWidth:cn?`calc(100% + ${Dn}px)`:`calc(100% - ${kn*2}px)`}};var Tt=function(re){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",Oe=>{const{colorBgElevated:Ye,controlHeightLG:mt,fontSize:Bt,darkItemColor:Et,darkDangerItemColor:Ut,darkItemBg:Wt,darkSubMenuItemBg:Ht,darkItemSelectedColor:ln,darkItemSelectedBg:qt,darkDangerItemSelectedBg:sn,darkItemHoverBg:Dt,darkGroupTitleColor:tn,darkItemHoverColor:Vt,darkItemDisabledColor:je,darkDangerItemHoverColor:pt,darkDangerItemSelectedColor:Ft,darkDangerItemActiveBg:jt,popupBg:Ne,darkPopupBg:ot}=Oe,yt=Oe.calc(Bt).div(7).mul(5).equal(),Mt=(0,Ke.mergeToken)(Oe,{menuArrowSize:yt,menuHorizontalHeight:Oe.calc(mt).mul(1.15).equal(),menuArrowOffset:Oe.calc(yt).mul(.25).equal(),menuSubMenuBg:Ye,calc:Oe.calc,popupBg:Ne}),Kt=(0,Ke.mergeToken)(Mt,{itemColor:Et,itemHoverColor:Vt,groupTitleColor:tn,itemSelectedColor:ln,subMenuItemSelectedColor:ln,itemBg:Wt,popupBg:ot,subMenuItemBg:Ht,itemActiveBg:"transparent",itemSelectedBg:qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Dt,itemDisabledColor:je,dangerItemColor:Ut,dangerItemHoverColor:pt,dangerItemSelectedColor:Ft,dangerItemActiveBg:jt,dangerItemSelectedBg:sn,menuSubMenuBg:Ht,horizontalItemSelectedColor:ln,horizontalItemSelectedBg:qt});return[He(Mt),se(Mt),It(Mt),ye(Mt,"light"),ye(Kt,"dark"),Le(Mt),(0,lt.Z)(Mt),(0,et.oN)(Mt,"slide-up"),(0,et.oN)(Mt,"slide-down"),(0,St._y)(Mt,"zoom-big")]},Ge,{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:we,unitless:{groupTitleLineHeight:!0}})(re,ve)},wt=ne(75030),$e=re=>{var ve;const{popupClassName:we,icon:ft,title:Oe,theme:Ye}=re,mt=E.useContext(Ze),{prefixCls:Bt,inlineCollapsed:Et,theme:Ut}=mt,Wt=(0,Qe.Xl)();let Ht;if(!ft)Ht=Et&&!Wt.length&&Oe&&typeof Oe=="string"?E.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},Oe.charAt(0)):E.createElement("span",{className:`${Bt}-title-content`},Oe);else{const sn=E.isValidElement(Oe)&&Oe.type==="span";Ht=E.createElement(E.Fragment,null,(0,he.Tm)(ft,{className:Be()(E.isValidElement(ft)?(ve=ft.props)===null||ve===void 0?void 0:ve.className:"",`${Bt}-item-icon`)}),sn?Oe:E.createElement("span",{className:`${Bt}-title-content`},Oe))}const ln=E.useMemo(()=>Object.assign(Object.assign({},mt),{firstLevel:!1}),[mt]),[qt]=(0,wt.Cn)("Menu");return E.createElement(Ze.Provider,{value:ln},E.createElement(Qe.Wd,Object.assign({},(0,We.Z)(re,["icon"]),{title:Ht,popupClassName:Be()(Bt,we,`${Bt}-${Ye||Ut}`),popupStyle:Object.assign({zIndex:qt},re.popupStyle)})))},At=function(re,ve){var we={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&ve.indexOf(ft)<0&&(we[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ft=Object.getOwnPropertySymbols(re);Oe{var we;const ft=E.useContext(it.Z),Oe=ft||{},{getPrefixCls:Ye,getPopupContainer:mt,direction:Bt,menu:Et}=E.useContext(Je.E_),Ut=Ye(),{prefixCls:Wt,className:Ht,style:ln,theme:qt="light",expandIcon:sn,_internalDisableMenuItemTitleTooltip:Dt,inlineCollapsed:tn,siderCollapsed:Vt,rootClassName:je,mode:pt,selectable:Ft,onClick:jt,overflowedIndicatorPopupClassName:Ne}=re,ot=At(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),yt=(0,We.Z)(ot,["collapsedWidth"]);(we=Oe.validator)===null||we===void 0||we.call(Oe,{mode:pt});const Mt=(0,De.Z)(function(){var nn;jt==null||jt.apply(void 0,arguments),(nn=Oe.onClick)===null||nn===void 0||nn.call(Oe)}),Kt=Oe.mode||pt,cn=Ft!=null?Ft:Oe.selectable,Dn=tn!=null?tn:Vt,kn={horizontal:{motionName:`${Ut}-slide-up`},inline:(0,Ie.Z)(Ut),other:{motionName:`${Ut}-zoom-big`}},un=Ye("menu",Wt||Oe.prefixCls),bn=(0,Pe.Z)(un),[fn,Gt,Rt]=Tt(un,bn,!ft),_t=Be()(`${un}-${qt}`,Et==null?void 0:Et.className,Ht),Ot=E.useMemo(()=>{var nn,en;if(typeof sn=="function"||st(sn))return sn||null;if(typeof Oe.expandIcon=="function"||st(Oe.expandIcon))return Oe.expandIcon||null;if(typeof(Et==null?void 0:Et.expandIcon)=="function"||st(Et==null?void 0:Et.expandIcon))return(Et==null?void 0:Et.expandIcon)||null;const xn=(nn=sn!=null?sn:Oe==null?void 0:Oe.expandIcon)!==null&&nn!==void 0?nn:Et==null?void 0:Et.expandIcon;return(0,he.Tm)(xn,{className:Be()(`${un}-submenu-expand-icon`,E.isValidElement(xn)?(en=xn.props)===null||en===void 0?void 0:en.className:void 0)})},[sn,Oe==null?void 0:Oe.expandIcon,Et==null?void 0:Et.expandIcon,un]),an=E.useMemo(()=>({prefixCls:un,inlineCollapsed:Dn||!1,direction:Bt,firstLevel:!0,theme:qt,mode:Kt,disableMenuItemTitleTooltip:Dt}),[un,Dn,Bt,Dt,qt]);return fn(E.createElement(it.Z.Provider,{value:null},E.createElement(Ze.Provider,{value:an},E.createElement(Qe.ZP,Object.assign({getPopupContainer:mt,overflowedIndicator:E.createElement(tt.Z,null),overflowedIndicatorPopupClassName:Be()(un,`${un}-${qt}`,Ne),mode:Kt,selectable:cn,onClick:Mt},yt,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),ln),className:_t,prefixCls:un,direction:Bt,defaultMotions:kn,expandIcon:Ot,ref:ve,rootClassName:Be()(je,Gt,Oe.rootClassName,Rt,bn),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((re,ve)=>{const we=(0,E.useRef)(null),ft=E.useContext(xe.D);return(0,E.useImperativeHandle)(ve,()=>({menu:we.current,focus:Oe=>{var Ye;(Ye=we.current)===null||Ye===void 0||Ye.focus(Oe)}})),E.createElement(ee,Object.assign({ref:we},re,ft))});oe.Item=ht,oe.SubMenu=$e,oe.Divider=_e,oe.ItemGroup=Qe.BW;var ue=oe},89787:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return Vt}});var E=ne(59301),Qe=ne(17835),xe=ne(29679),tt=ne(40001),Ee=ne(19248),Be=ne(99267),De=ne(92310),We=ne.n(De),Ie=ne(2738),he=ne(48755),Je=ne(60499),Pe=ne(85899),dt=ne(42244),Ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ce=function(){var pt=(0,E.useRef)([]),Ft=(0,E.useRef)(null);return(0,E.useEffect)(function(){var jt=Date.now(),Ne=!1;pt.current.forEach(function(ot){if(ot){Ne=!0;var yt=ot.style;yt.transitionDuration=".3s, .3s, .3s, .06s",Ft.current&&jt-Ft.current<100&&(yt.transitionDuration="0s, 0s")}}),Ne&&(Ft.current=Date.now())}),pt.current},Te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],_e=function(pt){var Ft=(0,Pe.Z)((0,Pe.Z)({},Ze),pt),jt=Ft.className,Ne=Ft.percent,ot=Ft.prefixCls,yt=Ft.strokeColor,Mt=Ft.strokeLinecap,Kt=Ft.strokeWidth,cn=Ft.style,Dn=Ft.trailColor,kn=Ft.trailWidth,un=Ft.transition,bn=(0,dt.Z)(Ft,Te);delete bn.gapPosition;var fn=Array.isArray(Ne)?Ne:[Ne],Gt=Array.isArray(yt)?yt:[yt],Rt=Ce(),_t=Kt/2,Ot=100-Kt/2,an="M ".concat(Mt==="round"?_t:0,",").concat(_t,` L `).concat(Mt==="round"?Ot:100,",").concat(_t),nn="0 0 100 ".concat(Kt),en=0;return E.createElement("svg",(0,Je.Z)({className:We()("".concat(ot,"-line"),jt),viewBox:nn,preserveAspectRatio:"none",style:cn},bn),E.createElement("path",{className:"".concat(ot,"-line-trail"),d:an,strokeLinecap:Mt,stroke:Dn,strokeWidth:kn||Kt,fillOpacity:"0"}),fn.map(function(xn,Pn){var Cn=1;switch(Mt){case"round":Cn=1-Kt/100;break;case"square":Cn=1-Kt/2/100;break;default:Cn=1;break}var Nn={strokeDasharray:"".concat(xn*Cn,"px, 100px"),strokeDashoffset:"-".concat(en,"px"),transition:un||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},An=Gt[Pn]||Gt[Gt.length-1];return en+=xn,E.createElement("path",{key:Pn,className:"".concat(ot,"-line-path"),d:an,strokeLinecap:Mt,stroke:An,strokeWidth:Kt,fillOpacity:"0",ref:function(zn){Rt[Pn]=zn},style:Nn})}))},rt=_e,gt=ne(43749),Pt=ne(72190),ht=ne(47273),it=0,nt=(0,ht.Z)();function Fe(){var je;return nt?(je=it,it+=1):je="TEST_OR_SSR",je}var kt=function(je){var pt=E.useState(),Ft=(0,Pt.Z)(pt,2),jt=Ft[0],Ne=Ft[1];return E.useEffect(function(){Ne("rc_progress_".concat(Fe()))},[]),je||jt},lt=function(pt){var Ft=pt.bg,jt=pt.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:Ft}},jt)};function et(je,pt){return Object.keys(je).map(function(Ft){var jt=parseFloat(Ft),Ne="".concat(Math.floor(jt*pt),"%");return"".concat(je[Ft]," ").concat(Ne)})}var St=E.forwardRef(function(je,pt){var Ft=je.prefixCls,jt=je.color,Ne=je.gradientId,ot=je.radius,yt=je.style,Mt=je.ptg,Kt=je.strokeLinecap,cn=je.strokeWidth,Dn=je.size,kn=je.gapDegree,un=jt&&(0,gt.Z)(jt)==="object",bn=un?"#FFF":void 0,fn=Dn/2,Gt=E.createElement("circle",{className:"".concat(Ft,"-circle-path"),r:ot,cx:fn,cy:fn,stroke:bn,strokeLinecap:Kt,strokeWidth:cn,opacity:Mt===0?0:1,style:yt,ref:pt});if(!un)return Gt;var Rt="".concat(Ne,"-conic"),_t=kn?"".concat(180+kn/2,"deg"):"0deg",Ot=et(jt,(360-kn)/360),an=et(jt,1),nn="conic-gradient(from ".concat(_t,", ").concat(Ot.join(", "),")"),en="linear-gradient(to ".concat(kn?"bottom":"top",", ").concat(an.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:Rt},Gt),E.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat(Rt,")")},E.createElement(lt,{bg:en},E.createElement(lt,{bg:nn}))))}),Me=St,Ke=100,ze=function(pt,Ft,jt,Ne,ot,yt,Mt,Kt,cn,Dn){var kn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,un=jt/100*360*((360-yt)/360),bn=yt===0?0:{bottom:0,top:180,left:90,right:-90}[Mt],fn=(100-Ne)/100*Ft;cn==="round"&&Ne!==100&&(fn+=Dn/2,fn>=Ft&&(fn=Ft-.01));var Gt=Ke/2;return{stroke:typeof Kt=="string"?Kt:void 0,strokeDasharray:"".concat(Ft,"px ").concat(pt),strokeDashoffset:fn+kn,transform:"rotate(".concat(ot+un+bn,"deg)"),transformOrigin:"".concat(Gt,"px ").concat(Gt,"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}},se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function qe(je){var pt=je!=null?je:[];return Array.isArray(pt)?pt:[pt]}var Le=function(pt){var Ft=(0,Pe.Z)((0,Pe.Z)({},Ze),pt),jt=Ft.id,Ne=Ft.prefixCls,ot=Ft.steps,yt=Ft.strokeWidth,Mt=Ft.trailWidth,Kt=Ft.gapDegree,cn=Kt===void 0?0:Kt,Dn=Ft.gapPosition,kn=Ft.trailColor,un=Ft.strokeLinecap,bn=Ft.style,fn=Ft.className,Gt=Ft.strokeColor,Rt=Ft.percent,_t=(0,dt.Z)(Ft,se),Ot=Ke/2,an=kt(jt),nn="".concat(an,"-gradient"),en=Ot-yt/2,xn=Math.PI*2*en,Pn=cn>0?90+cn/2:-90,Cn=xn*((360-cn)/360),Nn=(0,gt.Z)(ot)==="object"?ot:{count:ot,gap:2},An=Nn.count,Qn=Nn.gap,zn=qe(Rt),Nt=qe(Gt),Qt=Nt.find(function(fe){return fe&&(0,gt.Z)(fe)==="object"}),En=Qt&&(0,gt.Z)(Qt)==="object",mn=En?"butt":un,Xe=ze(xn,Cn,0,100,Pn,cn,Dn,kn,mn,yt),ut=Ce(),ke=function(){var pe=0;return zn.map(function(Ve,Xt){var rn=Nt[Xt]||Nt[Nt.length-1],Yt=ze(xn,Cn,pe,Ve,Pn,cn,Dn,rn,mn,yt);return pe+=Ve,E.createElement(Me,{key:Xt,color:rn,ptg:Ve,radius:en,prefixCls:Ne,gradientId:nn,style:Yt,strokeLinecap:mn,strokeWidth:yt,gapDegree:cn,ref:function(Re){ut[Xt]=Re},size:Ke})}).reverse()},be=function(){var pe=Math.round(An*(zn[0]/100)),Ve=100/An,Xt=0;return new Array(An).fill(null).map(function(rn,Yt){var Ct=Yt<=pe-1?Nt[0]:kn,Re=Ct&&(0,gt.Z)(Ct)==="object"?"url(#".concat(nn,")"):void 0,xt=ze(xn,Cn,Xt,Ve,Pn,cn,Dn,Ct,"butt",yt,Qn);return Xt+=(Cn-xt.strokeDashoffset+Qn)*100/Cn,E.createElement("circle",{key:Yt,className:"".concat(Ne,"-circle-path"),r:en,cx:Ot,cy:Ot,stroke:Re,strokeWidth:yt,opacity:1,style:xt,ref:function(gn){ut[Yt]=gn}})})};return E.createElement("svg",(0,Je.Z)({className:We()("".concat(Ne,"-circle"),fn),viewBox:"0 0 ".concat(Ke," ").concat(Ke),style:bn,id:jt,role:"presentation"},_t),!An&&E.createElement("circle",{className:"".concat(Ne,"-circle-trail"),r:en,cx:Ot,cy:Ot,stroke:kn,strokeLinecap:mn,strokeWidth:Mt||yt,style:Xe}),An?be():ke())},Ae=Le,ct={Line:rt,Circle:Ae},ye=ne(25399),ce=ne(68361);function Ue(je){return!je||je<0?0:je>100?100:je}function It(je){let{success:pt,successPercent:Ft}=je,jt=Ft;return pt&&"progress"in pt&&(jt=pt.progress),pt&&"percent"in pt&&(jt=pt.percent),jt}const bt=je=>{let{percent:pt,success:Ft,successPercent:jt}=je;const Ne=Ue(It({success:Ft,successPercent:jt}));return[Ne,Ue(Ue(pt)-Ne)]},ge=je=>{let{success:pt={},strokeColor:Ft}=je;const{strokeColor:jt}=pt;return[jt||ce.presetPrimaryColors.green,Ft||null]},He=(je,pt,Ft)=>{var jt,Ne,ot,yt;let Mt=-1,Kt=-1;if(pt==="step"){const cn=Ft.steps,Dn=Ft.strokeWidth;typeof je=="string"||typeof je=="undefined"?(Mt=je==="small"?2:14,Kt=Dn!=null?Dn:8):typeof je=="number"?[Mt,Kt]=[je,je]:[Mt=14,Kt=8]=Array.isArray(je)?je:[je.width,je.height],Mt*=cn}else if(pt==="line"){const cn=Ft==null?void 0:Ft.strokeWidth;typeof je=="string"||typeof je=="undefined"?Kt=cn||(je==="small"?6:8):typeof je=="number"?[Mt,Kt]=[je,je]:[Mt=-1,Kt=8]=Array.isArray(je)?je:[je.width,je.height]}else(pt==="circle"||pt==="dashboard")&&(typeof je=="string"||typeof je=="undefined"?[Mt,Kt]=je==="small"?[60,60]:[120,120]:typeof je=="number"?[Mt,Kt]=[je,je]:Array.isArray(je)&&(Mt=(Ne=(jt=je[0])!==null&&jt!==void 0?jt:je[1])!==null&&Ne!==void 0?Ne:120,Kt=(yt=(ot=je[0])!==null&&ot!==void 0?ot:je[1])!==null&&yt!==void 0?yt:120));return[Mt,Kt]},Ge=3,Tt=je=>Ge/je*100;var Lt=je=>{const{prefixCls:pt,trailColor:Ft=null,strokeLinecap:jt="round",gapPosition:Ne,gapDegree:ot,width:yt=120,type:Mt,children:Kt,success:cn,size:Dn=yt,steps:kn}=je,[un,bn]=He(Dn,"circle");let{strokeWidth:fn}=je;fn===void 0&&(fn=Math.max(Tt(un),6));const Gt={width:un,height:bn,fontSize:un*.15+6},Rt=E.useMemo(()=>{if(ot||ot===0)return ot;if(Mt==="dashboard")return 75},[ot,Mt]),_t=bt(je),Ot=Ne||Mt==="dashboard"&&"bottom"||void 0,an=Object.prototype.toString.call(je.strokeColor)==="[object Object]",nn=ge({success:cn,strokeColor:je.strokeColor}),en=We()(`${pt}-inner`,{[`${pt}-circle-gradient`]:an}),xn=E.createElement(Ae,{steps:kn,percent:kn?_t[1]:_t,strokeWidth:fn,trailWidth:fn,strokeColor:kn?nn[1]:nn,strokeLinecap:jt,trailColor:Ft,prefixCls:pt,gapDegree:Rt,gapPosition:Ot}),Pn=un<=20,Cn=E.createElement("div",{className:en,style:Gt},xn,!Pn&&Kt);return Pn?E.createElement(ye.Z,{title:Kt},Cn):Cn},$e=ne(36237),At=ne(63356),st=ne(16931),ae=ne(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=je=>{const pt=je?"100%":"-100%";return new $e.Keyframes(`antProgress${je?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${pt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${pt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ue=je=>{const{componentCls:pt,iconCls:Ft}=je;return{[pt]:Object.assign(Object.assign({},(0,At.Wf)(je)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:je.fontSize},[`${pt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${pt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:je.remainingColor,borderRadius:je.lineBorderRadius},[`${pt}-inner:not(${pt}-circle-gradient)`]:{[`${pt}-circle-path`]:{stroke:je.defaultColor}},[`${pt}-success-bg, ${pt}-bg`]:{position:"relative",background:je.defaultColor,borderRadius:je.lineBorderRadius,transition:`all ${je.motionDurationSlow} ${je.motionEaseInOutCirc}`},[`${pt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${pt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:je.marginXXS}},[`${pt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${pt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${pt}-text-inner`]:{color:je.colorWhite,[`&${pt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${pt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:je.colorSuccess},[`${pt}-text`]:{display:"inline-block",marginInlineStart:je.marginXS,color:je.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ft]:{fontSize:je.fontSize},[`&${pt}-text-outer`]:{width:"max-content"},[`&${pt}-text-outer${pt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:je.marginXS}},[`${pt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,$e.unit)(je.paddingXXS)}`,[`&${pt}-text-start`]:{justifyContent:"start"},[`&${pt}-text-end`]:{justifyContent:"end"}},[`&${pt}-status-active`]:{[`${pt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:je.colorBgContainer,borderRadius:je.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:je.progressActiveMotionDuration,animationTimingFunction:je.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${pt}-rtl${pt}-status-active`]:{[`${pt}-bg::before`]:{animationName:oe(!0)}},[`&${pt}-status-exception`]:{[`${pt}-bg`]:{backgroundColor:je.colorError},[`${pt}-text`]:{color:je.colorError}},[`&${pt}-status-exception ${pt}-inner:not(${pt}-circle-gradient)`]:{[`${pt}-circle-path`]:{stroke:je.colorError}},[`&${pt}-status-success`]:{[`${pt}-bg`]:{backgroundColor:je.colorSuccess},[`${pt}-text`]:{color:je.colorSuccess}},[`&${pt}-status-success ${pt}-inner:not(${pt}-circle-gradient)`]:{[`${pt}-circle-path`]:{stroke:je.colorSuccess}}})}},re=je=>{const{componentCls:pt,iconCls:Ft}=je;return{[pt]:{[`${pt}-circle-trail`]:{stroke:je.remainingColor},[`&${pt}-circle ${pt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${pt}-circle ${pt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:je.circleTextColor,fontSize:je.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ft]:{fontSize:je.circleIconFontSize}},[`${pt}-circle&-status-exception`]:{[`${pt}-text`]:{color:je.colorError}},[`${pt}-circle&-status-success`]:{[`${pt}-text`]:{color:je.colorSuccess}}},[`${pt}-inline-circle`]:{lineHeight:1,[`${pt}-inner`]:{verticalAlign:"bottom"}}}},ve=je=>{const{componentCls:pt}=je;return{[pt]:{[`${pt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:je.progressStepMinWidth,marginInlineEnd:je.progressStepMarginInlineEnd,backgroundColor:je.remainingColor,transition:`all ${je.motionDurationSlow}`,"&-active":{backgroundColor:je.defaultColor}}}}}},we=je=>{const{componentCls:pt,iconCls:Ft}=je;return{[pt]:{[`${pt}-small&-line, ${pt}-small&-line ${pt}-text ${Ft}`]:{fontSize:je.fontSizeSM}}}},ft=je=>({circleTextColor:je.colorText,defaultColor:je.colorInfo,remainingColor:je.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${je.fontSize/je.fontSizeSM}em`});var Oe=(0,st.I$)("Progress",je=>{const pt=je.calc(je.marginXXS).div(2).equal(),Ft=(0,ae.mergeToken)(je,{progressStepMarginInlineEnd:pt,progressStepMinWidth:pt,progressActiveMotionDuration:"2.4s"});return[ue(Ft),re(Ft),ve(Ft),we(Ft)]},ft),Ye=function(je,pt){var Ft={};for(var jt in je)Object.prototype.hasOwnProperty.call(je,jt)&&pt.indexOf(jt)<0&&(Ft[jt]=je[jt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,jt=Object.getOwnPropertySymbols(je);Ne{let pt=[];return Object.keys(je).forEach(Ft=>{const jt=parseFloat(Ft.replace(/%/g,""));Number.isNaN(jt)||pt.push({key:jt,value:je[Ft]})}),pt=pt.sort((Ft,jt)=>Ft.key-jt.key),pt.map(Ft=>{let{key:jt,value:Ne}=Ft;return`${Ne} ${jt}%`}).join(", ")},Bt=(je,pt)=>{const{from:Ft=ce.presetPrimaryColors.blue,to:jt=ce.presetPrimaryColors.blue,direction:Ne=pt==="rtl"?"to left":"to right"}=je,ot=Ye(je,["from","to","direction"]);if(Object.keys(ot).length!==0){const Mt=mt(ot),Kt=`linear-gradient(${Ne}, ${Mt})`;return{background:Kt,[te]:Kt}}const yt=`linear-gradient(${Ne}, ${Ft}, ${jt})`;return{background:yt,[te]:yt}};var Ut=je=>{const{prefixCls:pt,direction:Ft,percent:jt,size:Ne,strokeWidth:ot,strokeColor:yt,strokeLinecap:Mt="round",children:Kt,trailColor:cn=null,percentPosition:Dn,success:kn}=je,{align:un,type:bn}=Dn,fn=yt&&typeof yt!="string"?Bt(yt,Ft):{[te]:yt,background:yt},Gt=Mt==="square"||Mt==="butt"?0:void 0,Rt=Ne!=null?Ne:[-1,ot||(Ne==="small"?6:8)],[_t,Ot]=He(Rt,"line",{strokeWidth:ot}),an={backgroundColor:cn||void 0,borderRadius:Gt},nn=Object.assign(Object.assign({width:`${Ue(jt)}%`,height:Ot,borderRadius:Gt},fn),{[ee]:Ue(jt)/100}),en=It(je),xn={width:`${Ue(en)}%`,height:Ot,borderRadius:Gt,backgroundColor:kn==null?void 0:kn.strokeColor},Pn={width:_t<0?"100%":_t},Cn=E.createElement("div",{className:`${pt}-inner`,style:an},E.createElement("div",{className:We()(`${pt}-bg`,`${pt}-bg-${bn}`),style:nn},bn==="inner"&&Kt),en!==void 0&&E.createElement("div",{className:`${pt}-success-bg`,style:xn})),Nn=bn==="outer"&&un==="start",An=bn==="outer"&&un==="end";return bn==="outer"&&un==="center"?E.createElement("div",{className:`${pt}-layout-bottom`},Cn,Kt):E.createElement("div",{className:`${pt}-outer`,style:Pn},Nn&&Kt,Cn,An&&Kt)},Ht=je=>{const{size:pt,steps:Ft,rounding:jt=Math.round,percent:Ne=0,strokeWidth:ot=8,strokeColor:yt,trailColor:Mt=null,prefixCls:Kt,children:cn}=je,Dn=jt(Ft*(Ne/100)),kn=pt==="small"?2:14,un=pt!=null?pt:[kn,ot],[bn,fn]=He(un,"step",{steps:Ft,strokeWidth:ot}),Gt=bn/Ft,Rt=Array.from({length:Ft});for(let _t=0;_t{const{prefixCls:Ft,className:jt,rootClassName:Ne,steps:ot,strokeColor:yt,percent:Mt=0,size:Kt="default",showInfo:cn=!0,type:Dn="line",status:kn,format:un,style:bn,percentPosition:fn={}}=je,Gt=ln(je,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Rt="end",type:_t="outer"}=fn,Ot=Array.isArray(yt)?yt[0]:yt,an=typeof yt=="string"||Array.isArray(yt)?yt:void 0,nn=E.useMemo(()=>{if(Ot){const ke=typeof Ot=="string"?Ot:Object.values(Ot)[0];return new Qe.FastColor(ke).isLight()}return!1},[yt]),en=E.useMemo(()=>{var ke,be;const fe=It(je);return parseInt(fe!==void 0?(ke=fe!=null?fe:0)===null||ke===void 0?void 0:ke.toString():(be=Mt!=null?Mt:0)===null||be===void 0?void 0:be.toString(),10)},[Mt,je.success,je.successPercent]),xn=E.useMemo(()=>!sn.includes(kn)&&en>=100?"success":kn||"normal",[kn,en]),{getPrefixCls:Pn,direction:Cn,progress:Nn}=E.useContext(he.E_),An=Pn("progress",Ft),[Qn,zn,Nt]=Oe(An),Qt=Dn==="line",En=Qt&&!ot,mn=E.useMemo(()=>{if(!cn)return null;const ke=It(je);let be;const fe=un||(Ve=>`${Ve}%`),pe=Qt&&nn&&_t==="inner";return _t==="inner"||un||xn!=="exception"&&xn!=="success"?be=fe(Ue(Mt),Ue(ke)):xn==="exception"?be=Qt?E.createElement(Ee.Z,null):E.createElement(Be.Z,null):xn==="success"&&(be=Qt?E.createElement(xe.Z,null):E.createElement(tt.Z,null)),E.createElement("span",{className:We()(`${An}-text`,{[`${An}-text-bright`]:pe,[`${An}-text-${Rt}`]:En,[`${An}-text-${_t}`]:En}),title:typeof be=="string"?be:void 0},be)},[cn,Mt,en,xn,Dn,An,un]);let Xe;Dn==="line"?Xe=ot?E.createElement(Ht,Object.assign({},je,{strokeColor:an,prefixCls:An,steps:typeof ot=="object"?ot.count:ot}),mn):E.createElement(Ut,Object.assign({},je,{strokeColor:Ot,prefixCls:An,direction:Cn,percentPosition:{align:Rt,type:_t}}),mn):(Dn==="circle"||Dn==="dashboard")&&(Xe=E.createElement(Lt,Object.assign({},je,{strokeColor:Ot,prefixCls:An,progressStatus:xn}),mn));const ut=We()(An,`${An}-status-${xn}`,{[`${An}-${Dn==="dashboard"&&"circle"||Dn}`]:Dn!=="line",[`${An}-inline-circle`]:Dn==="circle"&&He(Kt,"circle")[0]<=20,[`${An}-line`]:En,[`${An}-line-align-${Rt}`]:En,[`${An}-line-position-${_t}`]:En,[`${An}-steps`]:ot,[`${An}-show-info`]:cn,[`${An}-${Kt}`]:typeof Kt=="string",[`${An}-rtl`]:Cn==="rtl"},Nn==null?void 0:Nn.className,jt,Ne,zn,Nt);return Qn(E.createElement("div",Object.assign({ref:pt,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),bn),className:ut,role:"progressbar","aria-valuenow":en,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)(Gt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Xe))}),Vt=tn},63139:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return bt}});var E=ne(59301),Qe=ne(60499),xe={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"},tt=xe,Ee=ne(7657),Be=function(He,Ge){return E.createElement(Ee.Z,(0,Qe.Z)({},He,{ref:Ge,icon:tt}))},De=E.forwardRef(Be),We=De,Ie=ne(92310),he=ne.n(Ie),Je=ne(18642),Pe=ne(72190),dt=ne(42244),Ze=ne(18929),Ce=ne(10228),Te=ne(26112);function _e(ge,He){var Ge=ge.disabled,Tt=ge.prefixCls,wt=ge.character,Lt=ge.characterRender,$e=ge.index,At=ge.count,st=ge.value,ae=ge.allowHalf,te=ge.focused,ee=ge.onHover,oe=ge.onClick,ue=function(Bt){ee(Bt,$e)},re=function(Bt){oe(Bt,$e)},ve=function(Bt){Bt.keyCode===Ce.Z.ENTER&&oe(Bt,$e)},we=$e+1,ft=new Set([Tt]);st===0&&$e===0&&te?ft.add("".concat(Tt,"-focused")):ae&&st+.5>=we&&st$e?"true":"false","aria-posinset":$e+1,"aria-setsize":At,tabIndex:Ge?-1:0},E.createElement("div",{className:"".concat(Tt,"-first")},Oe),E.createElement("div",{className:"".concat(Tt,"-second")},Oe)));return Lt&&(Ye=Lt(Ye,ge)),Ye}var rt=E.forwardRef(_e);function gt(){var ge=E.useRef({});function He(Tt){return ge.current[Tt]}function Ge(Tt){return function(wt){ge.current[Tt]=wt}}return[He,Ge]}function Pt(ge){var He=ge.pageXOffset,Ge="scrollLeft";if(typeof He!="number"){var Tt=ge.document;He=Tt.documentElement[Ge],typeof He!="number"&&(He=Tt.body[Ge])}return He}function ht(ge){var He,Ge,Tt=ge.ownerDocument,wt=Tt.body,Lt=Tt&&Tt.documentElement,$e=ge.getBoundingClientRect();return He=$e.left,Ge=$e.top,He-=Lt.clientLeft||wt.clientLeft||0,Ge-=Lt.clientTop||wt.clientTop||0,{left:He,top:Ge}}function it(ge){var He=ht(ge),Ge=ge.ownerDocument,Tt=Ge.defaultView||Ge.parentWindow;return He.left+=Pt(Tt),He.left}var nt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Fe(ge,He){var Ge=ge.prefixCls,Tt=Ge===void 0?"rc-rate":Ge,wt=ge.className,Lt=ge.defaultValue,$e=ge.value,At=ge.count,st=At===void 0?5:At,ae=ge.allowHalf,te=ae===void 0?!1:ae,ee=ge.allowClear,oe=ee===void 0?!0:ee,ue=ge.keyboard,re=ue===void 0?!0:ue,ve=ge.character,we=ve===void 0?"\u2605":ve,ft=ge.characterRender,Oe=ge.disabled,Ye=ge.direction,mt=Ye===void 0?"ltr":Ye,Bt=ge.tabIndex,Et=Bt===void 0?0:Bt,Ut=ge.autoFocus,Wt=ge.onHoverChange,Ht=ge.onChange,ln=ge.onFocus,qt=ge.onBlur,sn=ge.onKeyDown,Dt=ge.onMouseLeave,tn=(0,dt.Z)(ge,nt),Vt=gt(),je=(0,Pe.Z)(Vt,2),pt=je[0],Ft=je[1],jt=E.useRef(null),Ne=function(){if(!Oe){var mn;(mn=jt.current)===null||mn===void 0||mn.focus()}};E.useImperativeHandle(He,function(){return{focus:Ne,blur:function(){if(!Oe){var mn;(mn=jt.current)===null||mn===void 0||mn.blur()}}}});var ot=(0,Ze.Z)(Lt||0,{value:$e}),yt=(0,Pe.Z)(ot,2),Mt=yt[0],Kt=yt[1],cn=(0,Ze.Z)(null),Dn=(0,Pe.Z)(cn,2),kn=Dn[0],un=Dn[1],bn=function(mn,Xe){var ut=mt==="rtl",ke=mn+1;if(te){var be=pt(mn),fe=it(be),pe=be.clientWidth;(ut&&Xe-fe>pe/2||!ut&&Xe-fe0&&!ut||Xe===Ce.Z.RIGHT&&Mt>0&&ut?(fn(Mt-ke),mn.preventDefault()):Xe===Ce.Z.LEFT&&Mt{const{componentCls:He}=ge;return{[`${He}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ge.marginXS},"> div":{transition:`all ${ge.motionDurationMid}, outline 0s`,"&:hover":{transform:ge.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Me.unit)(ge.lineWidth)} dashed ${ge.starColor}`,transform:ge.starHoverScale}},"&-first, &-second":{color:ge.starBg,transition:`all ${ge.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${He}-star-first, &-half ${He}-star-second`]:{opacity:1},[`&-half ${He}-star-first, &-full ${He}-star-second`]:{color:"inherit"}}}},Le=ge=>({[`&-rtl${ge.componentCls}`]:{direction:"rtl"}}),Ae=ge=>{const{componentCls:He}=ge;return{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(ge)),{display:"inline-block",margin:0,padding:0,color:ge.starColor,fontSize:ge.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${He} ${He}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),qe(ge)),Le(ge))}},ct=ge=>({starColor:ge.yellow6,starSize:ge.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ge.colorFillContent});var ye=(0,ze.I$)("Rate",ge=>{const He=(0,se.mergeToken)(ge,{});return[Ae(He)]},ct),ce=ne(2171),Ue=function(ge,He){var Ge={};for(var Tt in ge)Object.prototype.hasOwnProperty.call(ge,Tt)&&He.indexOf(Tt)<0&&(Ge[Tt]=ge[Tt]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Tt=Object.getOwnPropertySymbols(ge);wt{const{prefixCls:Ge,className:Tt,rootClassName:wt,style:Lt,tooltips:$e,character:At=E.createElement(We,null),disabled:st}=ge,ae=Ue(ge,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(Bt,Et)=>{let{index:Ut}=Et;return $e?E.createElement(St.Z,{title:$e[Ut]},Bt):Bt},{getPrefixCls:ee,direction:oe,rate:ue}=E.useContext(et.E_),re=ee("rate",Ge),[ve,we,ft]=ye(re),Oe=Object.assign(Object.assign({},ue==null?void 0:ue.style),Lt),Ye=E.useContext(ce.Z),mt=st!=null?st:Ye;return ve(E.createElement(lt,Object.assign({ref:He,character:At,characterRender:te,disabled:mt},ae,{className:he()(Tt,wt,we,ft,ue==null?void 0:ue.className),style:Oe,prefixCls:re,direction:oe})))})},82326:function(on,$t,ne){"use strict";var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(37463),Ee=ne(2738),Be=ne(75030),De=ne(86641),We=ne(45915),Ie=ne(82855),he=ne(48755),Je=ne(38406),Pe=ne(2171),dt=ne(83397),Ze=ne(31756),Ce=ne(56553),Te=ne(24971),_e=ne(70045),rt=ne(57700),gt=ne(1722),Pt=ne(90376),ht=ne(68525),it=ne(90005),nt=function(St,Me){var Ke={};for(var ze in St)Object.prototype.hasOwnProperty.call(St,ze)&&Me.indexOf(ze)<0&&(Ke[ze]=St[ze]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ze=Object.getOwnPropertySymbols(St);se{var Ke;const{prefixCls:ze,bordered:se,className:qe,rootClassName:Le,getPopupContainer:Ae,popupClassName:ct,dropdownClassName:ye,listHeight:ce=256,placement:Ue,listItemHeight:It,size:bt,disabled:ge,notFoundContent:He,status:Ge,builtinPlacements:Tt,dropdownMatchSelectWidth:wt,popupMatchSelectWidth:Lt,direction:$e,style:At,allowClear:st,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:ue,prefix:re}=St,ve=nt(St,["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:we,getPrefixCls:ft,renderEmpty:Oe,direction:Ye,virtual:mt,popupMatchSelectWidth:Bt,popupOverflow:Et}=E.useContext(he.E_),Ut=(0,he.dj)("select"),[,Wt]=(0,rt.ZP)(),Ht=It!=null?It:Wt==null?void 0:Wt.controlHeight,ln=ft("select",ze),qt=ft(),sn=$e!=null?$e:Ye,{compactSize:Dt,compactItemClassnames:tn}=(0,_e.ri)(ln,sn),[Vt,je]=(0,Te.Z)("select",ae,se),pt=(0,dt.Z)(ln),[Ft,jt,Ne]=(0,Pt.Z)(ln,pt),ot=E.useMemo(()=>{const{mode:zn}=St;if(zn!=="combobox")return zn===Fe?"combobox":zn},[St.mode]),yt=ot==="multiple"||ot==="tags",Mt=(0,it.Z)(St.suffixIcon,St.showArrow),Kt=(Ke=Lt!=null?Lt:wt)!==null&&Ke!==void 0?Ke:Bt,{status:cn,hasFeedback:Dn,isFormItemInput:kn,feedbackIcon:un}=E.useContext(Ce.aM),bn=(0,Ie.F)(cn,Ge);let fn;He!==void 0?fn=He:ot==="combobox"?fn=null:fn=(Oe==null?void 0:Oe("Select"))||E.createElement(Je.Z,{componentName:"Select"});const{suffixIcon:Gt,itemIcon:Rt,removeIcon:_t,clearIcon:Ot}=(0,ht.Z)(Object.assign(Object.assign({},ve),{multiple:yt,hasFeedback:Dn,feedbackIcon:un,showSuffixIcon:Mt,prefixCls:ln,componentName:"Select"})),an=st===!0?{clearIcon:Ot}:st,nn=(0,Ee.Z)(ve,["suffixIcon","itemIcon"]),en=xe()(ct||ye,{[`${ln}-dropdown-${sn}`]:sn==="rtl"},Le,Ne,pt,jt),xn=(0,Ze.Z)(zn=>{var Nt;return(Nt=bt!=null?bt:Dt)!==null&&Nt!==void 0?Nt:zn}),Pn=E.useContext(Pe.Z),Cn=ge!=null?ge:Pn,Nn=xe()({[`${ln}-lg`]:xn==="large",[`${ln}-sm`]:xn==="small",[`${ln}-rtl`]:sn==="rtl",[`${ln}-${Vt}`]:je,[`${ln}-in-form-item`]:kn},(0,Ie.Z)(ln,bn,Dn),tn,Ut.className,qe,Le,Ne,pt,jt),An=E.useMemo(()=>Ue!==void 0?Ue:sn==="rtl"?"bottomRight":"bottomLeft",[Ue,sn]),[Qn]=(0,Be.Cn)("SelectLike",te==null?void 0:te.zIndex);return Ft(E.createElement(tt.ZP,Object.assign({ref:Me,virtual:mt,showSearch:Ut.showSearch},nn,{style:Object.assign(Object.assign({},Ut.style),At),dropdownMatchSelectWidth:Kt,transitionName:(0,De.m)(qt,"slide-up",ee),builtinPlacements:(0,gt.Z)(Tt,Et),listHeight:ce,listItemHeight:Ht,mode:ot,prefixCls:ln,placement:An,direction:sn,prefix:re,suffixIcon:Gt,menuItemSelectedIcon:Rt,removeIcon:_t,allowClear:an,notFoundContent:fn,className:Nn,getPopupContainer:Ae||we,dropdownClassName:en,disabled:Cn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Qn}),maxCount:yt?ue:void 0,tagRender:yt?oe:void 0})))},lt=E.forwardRef(kt),et=(0,We.Z)(lt,"dropdownAlign");lt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Fe,lt.Option=tt.Wx,lt.OptGroup=tt.Xo,lt._InternalPanelDoNotUseOrYouWillBeFired=et,$t.default=lt},1722:function(on,$t){"use strict";const ne=Qe=>{const tt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Qe==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},tt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},tt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},tt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},tt),{points:["br","tr"],offset:[0,-4]})}};function E(Qe,xe){return Qe||ne(xe)}$t.Z=E},90376:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return ze}});var E=ne(63356),Qe=ne(56119),xe=ne(16931),tt=ne(51636),Ee=ne(46e3),Be=ne(93873);const De=se=>{const{optionHeight:qe,optionFontSize:Le,optionLineHeight:Ae,optionPadding:ct}=se;return{position:"relative",display:"block",minHeight:qe,padding:ct,color:se.colorText,fontWeight:"normal",fontSize:Le,lineHeight:Ae,boxSizing:"border-box"}};var Ie=se=>{const{antCls:qe,componentCls:Le}=se,Ae=`${Le}-item`,ct=`&${qe}-slide-up-enter${qe}-slide-up-enter-active`,ye=`&${qe}-slide-up-appear${qe}-slide-up-appear-active`,ce=`&${qe}-slide-up-leave${qe}-slide-up-leave-active`,Ue=`${Le}-dropdown-placement-`,It=`${Ae}-option-selected`;return[{[`${Le}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(se)),{position:"absolute",top:-9999,zIndex:se.zIndexPopup,boxSizing:"border-box",padding:se.paddingXXS,overflow:"hidden",fontSize:se.fontSize,fontVariant:"initial",backgroundColor:se.colorBgElevated,borderRadius:se.borderRadiusLG,outline:"none",boxShadow:se.boxShadowSecondary,[` ${ct}${Ue}bottomLeft, ${ye}${Ue}bottomLeft `]:{animationName:Ee.fJ},[` ${ct}${Ue}topLeft, ${ye}${Ue}topLeft, ${ct}${Ue}topRight, ${ye}${Ue}topRight `]:{animationName:Ee.Qt},[`${ce}${Ue}bottomLeft`]:{animationName:Ee.Uw},[` ${ce}${Ue}topLeft, ${ce}${Ue}topRight `]:{animationName:Ee.ly},"&-hidden":{display:"none"},[Ae]:Object.assign(Object.assign({},De(se)),{cursor:"pointer",transition:`background ${se.motionDurationSlow} ease`,borderRadius:se.borderRadiusSM,"&-group":{color:se.colorTextDescription,fontSize:se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ae}-option-disabled)`]:{backgroundColor:se.optionActiveBg},[`&-selected:not(${Ae}-option-disabled)`]:{color:se.optionSelectedColor,fontWeight:se.optionSelectedFontWeight,backgroundColor:se.optionSelectedBg,[`${Ae}-option-state`]:{color:se.colorPrimary}},"&-disabled":{[`&${Ae}-option-selected`]:{backgroundColor:se.colorBgContainerDisabled},color:se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:se.calc(se.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},De(se)),{color:se.colorTextDisabled})}),[`${It}:has(+ ${It})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${It}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ee.oN)(se,"slide-up"),(0,Ee.oN)(se,"slide-down"),(0,Be.Fm)(se,"move-up"),(0,Be.Fm)(se,"move-down")]},he=ne(26743),Je=ne(36237);function Pe(se,qe){const{componentCls:Le,inputPaddingHorizontalBase:Ae,borderRadius:ct}=se,ye=se.calc(se.controlHeight).sub(se.calc(se.lineWidth).mul(2)).equal(),ce=qe?`${Le}-${qe}`:"";return{[`${Le}-single${ce}`]:{fontSize:se.fontSize,height:se.controlHeight,[`${Le}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(se,!0)),{display:"flex",borderRadius:ct,flex:"1 1 auto",[`${Le}-selection-wrap:after`]:{lineHeight:(0,Je.unit)(ye)},[`${Le}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Le}-selection-item, ${Le}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Je.unit)(ye),transition:`all ${se.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Le}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Le}-selection-item:empty:after`,`${Le}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Le}-show-arrow ${Le}-selection-item, &${Le}-show-arrow ${Le}-selection-search, &${Le}-show-arrow ${Le}-selection-placeholder `]:{paddingInlineEnd:se.showArrowPaddingInlineEnd},[`&${Le}-open ${Le}-selection-item`]:{color:se.colorTextPlaceholder},[`&:not(${Le}-customize-input)`]:{[`${Le}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Je.unit)(Ae)}`,[`${Le}-selection-search-input`]:{height:ye,fontSize:se.fontSize},"&:after":{lineHeight:(0,Je.unit)(ye)}}},[`&${Le}-customize-input`]:{[`${Le}-selector`]:{"&:after":{display:"none"},[`${Le}-selection-search`]:{position:"static",width:"100%"},[`${Le}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Je.unit)(Ae)}`,"&:after":{display:"none"}}}}}}}function dt(se){const{componentCls:qe}=se,Le=se.calc(se.controlPaddingHorizontalSM).sub(se.lineWidth).equal();return[Pe(se),Pe((0,tt.mergeToken)(se,{controlHeight:se.controlHeightSM,borderRadius:se.borderRadiusSM}),"sm"),{[`${qe}-single${qe}-sm`]:{[`&:not(${qe}-customize-input)`]:{[`${qe}-selector`]:{padding:`0 ${(0,Je.unit)(Le)}`},[`&${qe}-show-arrow ${qe}-selection-search`]:{insetInlineEnd:se.calc(Le).add(se.calc(se.fontSize).mul(1.5)).equal()},[` &${qe}-show-arrow ${qe}-selection-item, &${qe}-show-arrow ${qe}-selection-placeholder `]:{paddingInlineEnd:se.calc(se.fontSize).mul(1.5).equal()}}}},Pe((0,tt.mergeToken)(se,{controlHeight:se.singleItemHeightLG,fontSize:se.fontSizeLG,borderRadius:se.borderRadiusLG}),"lg")]}const Ze=se=>{const{fontSize:qe,lineHeight:Le,lineWidth:Ae,controlHeight:ct,controlHeightSM:ye,controlHeightLG:ce,paddingXXS:Ue,controlPaddingHorizontal:It,zIndexPopupBase:bt,colorText:ge,fontWeightStrong:He,controlItemBgActive:Ge,controlItemBgHover:Tt,colorBgContainer:wt,colorFillSecondary:Lt,colorBgContainerDisabled:$e,colorTextDisabled:At,colorPrimaryHover:st,colorPrimary:ae,controlOutline:te}=se,ee=Ue*2,oe=Ae*2,ue=Math.min(ct-ee,ct-oe),re=Math.min(ye-ee,ye-oe),ve=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ue/2),zIndexPopup:bt+50,optionSelectedColor:ge,optionSelectedFontWeight:He,optionSelectedBg:Ge,optionActiveBg:Tt,optionPadding:`${(ct-qe*Le)/2}px ${It}px`,optionFontSize:qe,optionLineHeight:Le,optionHeight:ct,selectorBg:wt,clearBg:wt,singleItemHeightLG:ce,multipleItemBg:Lt,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:re,multipleItemHeightLG:ve,multipleSelectorBgDisabled:$e,multipleItemColorDisabled:At,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(se.fontSize*1.25),hoverBorderColor:st,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Ue}},Ce=(se,qe)=>{const{componentCls:Le,antCls:Ae,controlOutlineWidth:ct}=se;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${qe.borderColor}`,background:se.selectorBg},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:qe.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:qe.activeBorderColor,boxShadow:`0 0 0 ${(0,Je.unit)(ct)} ${qe.activeOutlineColor}`,outline:0},[`${Le}-prefix`]:{color:qe.color}}}},Te=(se,qe)=>({[`&${se.componentCls}-status-${qe.status}`]:Object.assign({},Ce(se,qe))}),_e=se=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ce(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),Te(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),Te(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})}),rt=(se,qe)=>{const{componentCls:Le,antCls:Ae}=se;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{background:qe.bg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} transparent`,color:qe.color},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{background:qe.hoverBg},[`${Le}-focused& ${Le}-selector`]:{background:se.selectorBg,borderColor:qe.activeBorderColor,outline:0}}}},gt=(se,qe)=>({[`&${se.componentCls}-status-${qe.status}`]:Object.assign({},rt(se,qe))}),Pt=se=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},rt(se,{bg:se.colorFillTertiary,hoverBg:se.colorFillSecondary,activeBorderColor:se.activeBorderColor,color:se.colorText})),gt(se,{status:"error",bg:se.colorErrorBg,hoverBg:se.colorErrorBgHover,activeBorderColor:se.colorError,color:se.colorError})),gt(se,{status:"warning",bg:se.colorWarningBg,hoverBg:se.colorWarningBgHover,activeBorderColor:se.colorWarning,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{borderColor:se.colorBorder,background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.colorBgContainer,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.colorSplit}`}})}),ht=se=>({"&-borderless":{[`${se.componentCls}-selector`]:{background:"transparent",border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} transparent`},[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`},[`&${se.componentCls}-status-error`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorError}},[`&${se.componentCls}-status-warning`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorWarning}}}}),it=(se,qe)=>{const{componentCls:Le,antCls:Ae}=se;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{borderWidth:`0 0 ${(0,Je.unit)(se.lineWidth)} 0`,borderStyle:`none none ${se.lineType} none`,borderColor:qe.borderColor,background:se.selectorBg,borderRadius:0},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:qe.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:qe.activeBorderColor,outline:0},[`${Le}-prefix`]:{color:qe.color}}}},nt=(se,qe)=>({[`&${se.componentCls}-status-${qe.status}`]:Object.assign({},it(se,qe))}),Fe=se=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},it(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),nt(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),nt(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})});var lt=se=>({[se.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},_e(se)),Pt(se)),ht(se)),Fe(se))});const et=se=>{const{componentCls:qe}=se;return{position:"relative",transition:`all ${se.motionDurationMid} ${se.motionEaseInOut}`,input:{cursor:"pointer"},[`${qe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${qe}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},St=se=>{const{componentCls:qe}=se;return{[`${qe}-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"}}}},Me=se=>{const{antCls:qe,componentCls:Le,inputPaddingHorizontalBase:Ae,iconCls:ct}=se;return{[Le]:Object.assign(Object.assign({},(0,E.Wf)(se)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Le}-customize-input) ${Le}-selector`]:Object.assign(Object.assign({},et(se)),St(se)),[`${Le}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${qe}-typography`]:{display:"inline"}}),[`${Le}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:se.colorTextPlaceholder,pointerEvents:"none"}),[`${Le}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${se.motionDurationSlow} ease`,[ct]:{verticalAlign:"top",transition:`transform ${se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Le}-suffix)`]:{pointerEvents:"auto"}},[`${Le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Le}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Le}-prefix`]:{flex:"none",marginInlineEnd:se.selectAffixPadding},[`${Le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,zIndex:1,display:"inline-block",width:se.fontSizeIcon,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${se.motionDurationMid} ease, opacity ${se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:se.colorTextTertiary}},[`&:hover ${Le}-clear`]:{opacity:1,background:se.colorBgBase,borderRadius:"50%"}}),[`${Le}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Le}-has-feedback`]:{[`${Le}-clear`]:{insetInlineEnd:se.calc(Ae).add(se.fontSize).add(se.paddingXS).equal()}}}}}},Ke=se=>{const{componentCls:qe}=se;return[{[qe]:{[`&${qe}-in-form-item`]:{width:"100%"}}},Me(se),dt(se),(0,he.ZP)(se),Ie(se),{[`${qe}-rtl`]:{direction:"rtl"}},(0,Qe.c)(se,{borderElCls:`${qe}-selector`,focusElCls:`${qe}-focused`})]};var ze=(0,xe.I$)("Select",(se,qe)=>{let{rootPrefixCls:Le}=qe;const Ae=(0,tt.mergeToken)(se,{rootPrefixCls:Le,inputPaddingHorizontalBase:se.calc(se.paddingSM).sub(1).equal(),multipleSelectItemHeight:se.multipleItemHeight,selectHeight:se.controlHeight});return[Ke(Ae),lt(Ae)]},Ze,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(on,$t,ne){"use strict";ne.d($t,{_z:function(){return Be},gp:function(){return tt}});var E=ne(36237),Qe=ne(63356),xe=ne(51636);const tt=he=>{const{multipleSelectItemHeight:Je,paddingXXS:Pe,lineWidth:dt,INTERNAL_FIXED_ITEM_MARGIN:Ze}=he,Ce=he.max(he.calc(Pe).sub(dt).equal(),0),Te=he.max(he.calc(Ce).sub(Ze).equal(),0);return{basePadding:Ce,containerPadding:Te,itemHeight:(0,E.unit)(Je),itemLineHeight:(0,E.unit)(he.calc(Je).sub(he.calc(he.lineWidth).mul(2)).equal())}},Ee=he=>{const{multipleSelectItemHeight:Je,selectHeight:Pe,lineWidth:dt}=he;return he.calc(Pe).sub(Je).div(2).sub(dt).equal()},Be=he=>{const{componentCls:Je,iconCls:Pe,borderRadiusSM:dt,motionDurationSlow:Ze,paddingXS:Ce,multipleItemColorDisabled:Te,multipleItemBorderColorDisabled:_e,colorIcon:rt,colorIconHover:gt,INTERNAL_FIXED_ITEM_MARGIN:Pt}=he;return{[`${Je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Pt,borderRadius:dt,cursor:"default",transition:`font-size ${Ze}, line-height ${Ze}, height ${Ze}`,marginInlineEnd:he.calc(Pt).mul(2).equal(),paddingInlineStart:Ce,paddingInlineEnd:he.calc(Ce).div(2).equal(),[`${Je}-disabled&`]:{color:Te,borderColor:_e,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Ce).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Qe.Ro)()),{display:"inline-flex",alignItems:"center",color:rt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Pe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:gt}})}}}},De=(he,Je)=>{const{componentCls:Pe,INTERNAL_FIXED_ITEM_MARGIN:dt}=he,Ze=`${Pe}-selection-overflow`,Ce=he.multipleSelectItemHeight,Te=Ee(he),_e=Je?`${Pe}-${Je}`:"",rt=tt(he);return{[`${Pe}-multiple${_e}`]:Object.assign(Object.assign({},Be(he)),{[`${Pe}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:rt.basePadding,paddingBlock:rt.containerPadding,borderRadius:he.borderRadius,[`${Pe}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(dt)} 0`,lineHeight:(0,E.unit)(Ce),visibility:"hidden",content:'"\\a0"'}},[`${Pe}-selection-item`]:{height:rt.itemHeight,lineHeight:(0,E.unit)(rt.itemLineHeight)},[`${Pe}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(Ce),marginBlock:dt}},[`${Pe}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(rt.basePadding).equal()},[`${Ze}-item + ${Ze}-item, ${Pe}-prefix + ${Pe}-selection-wrap `]:{[`${Pe}-selection-search`]:{marginInlineStart:0},[`${Pe}-selection-placeholder`]:{insetInlineStart:0}},[`${Ze}-item-suffix`]:{minHeight:rt.itemHeight,marginBlock:dt},[`${Pe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Te).equal(),"\n &-input,\n &-mirror\n ":{height:Ce,fontFamily:he.fontFamily,lineHeight:(0,E.unit)(Ce),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Pe}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(rt.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function We(he,Je){const{componentCls:Pe}=he,dt=Je?`${Pe}-${Je}`:"",Ze={[`${Pe}-multiple${dt}`]:{fontSize:he.fontSize,[`${Pe}-selector`]:{[`${Pe}-show-search&`]:{cursor:"text"}},[` &${Pe}-show-arrow ${Pe}-selector, &${Pe}-allow-clear ${Pe}-selector `]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[De(he,Je),Ze]}const Ie=he=>{const{componentCls:Je}=he,Pe=(0,xe.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),dt=(0,xe.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[We(he),We(Pe,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Je}-selection-search`]:{marginInlineStart:2}}},We(dt,"lg")]};$t.ZP=Ie},68525:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return We}});var E=ne(59301),Qe=ne(40001),xe=ne(19248),tt=ne(99267),Ee=ne(84105),Be=ne(58617),De=ne(47472);function We(Ie){let{suffixIcon:he,clearIcon:Je,menuItemSelectedIcon:Pe,removeIcon:dt,loading:Ze,multiple:Ce,hasFeedback:Te,prefixCls:_e,showSuffixIcon:rt,feedbackIcon:gt,showArrow:Pt,componentName:ht}=Ie;const it=Je!=null?Je:E.createElement(xe.Z,null),nt=et=>he===null&&!Te&&!Pt?null:E.createElement(E.Fragment,null,rt!==!1&&et,Te&>);let Fe=null;if(he!==void 0)Fe=nt(he);else if(Ze)Fe=nt(E.createElement(Be.Z,{spin:!0}));else{const et=`${_e}-suffix`;Fe=St=>{let{open:Me,showSearch:Ke}=St;return nt(Me&&Ke?E.createElement(De.Z,{className:et}):E.createElement(Ee.Z,{className:et}))}}let kt=null;Pe!==void 0?kt=Pe:Ce?kt=E.createElement(Qe.Z,null):kt=null;let lt=null;return dt!==void 0?lt=dt:lt=E.createElement(tt.Z,null),{clearIcon:it,suffixIcon:Fe,itemIcon:kt,removeIcon:lt}}},90005:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return E}});function E(Qe,xe){return xe!==void 0?xe:Qe!==null}},11938:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return St}});var E=ne(59301),Qe=ne(40192),xe=ne(22703),tt=ne(92310),Ee=ne.n(tt),Be=ne(26112),De=ne(48755),We=ne(458),he=Me=>{const{value:Ke,formatter:ze,precision:se,decimalSeparator:qe,groupSeparator:Le="",prefixCls:Ae}=Me;let ct;if(typeof ze=="function")ct=ze(Ke);else{const ye=String(Ke),ce=ye.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ce||ye==="-")ct=ye;else{const Ue=ce[1];let It=ce[2]||"0",bt=ce[4]||"";It=It.replace(/\B(?=(\d{3})+(?!\d))/g,Le),typeof se=="number"&&(bt=bt.padEnd(se,"0").slice(0,se>0?se:0)),bt&&(bt=`${qe}${bt}`),ct=[E.createElement("span",{key:"int",className:`${Ae}-content-value-int`},Ue,It),bt&&E.createElement("span",{key:"decimal",className:`${Ae}-content-value-decimal`},bt)]}}return E.createElement("span",{className:`${Ae}-content-value`},ct)},Je=ne(63356),Pe=ne(16931),dt=ne(51636);const Ze=Me=>{const{componentCls:Ke,marginXXS:ze,padding:se,colorTextDescription:qe,titleFontSize:Le,colorTextHeading:Ae,contentFontSize:ct,fontFamily:ye}=Me;return{[Ke]:Object.assign(Object.assign({},(0,Je.Wf)(Me)),{[`${Ke}-title`]:{marginBottom:ze,color:qe,fontSize:Le},[`${Ke}-skeleton`]:{paddingTop:se},[`${Ke}-content`]:{color:Ae,fontSize:ct,fontFamily:ye,[`${Ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ke}-content-prefix, ${Ke}-content-suffix`]:{display:"inline-block"},[`${Ke}-content-prefix`]:{marginInlineEnd:ze},[`${Ke}-content-suffix`]:{marginInlineStart:ze}}})}},Ce=Me=>{const{fontSizeHeading3:Ke,fontSize:ze}=Me;return{titleFontSize:ze,contentFontSize:Ke}};var Te=(0,Pe.I$)("Statistic",Me=>{const Ke=(0,dt.mergeToken)(Me,{});return[Ze(Ke)]},Ce),_e=function(Me,Ke){var ze={};for(var se in Me)Object.prototype.hasOwnProperty.call(Me,se)&&Ke.indexOf(se)<0&&(ze[se]=Me[se]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,se=Object.getOwnPropertySymbols(Me);qe{const{prefixCls:Ke,className:ze,rootClassName:se,style:qe,valueStyle:Le,value:Ae=0,title:ct,valueRender:ye,prefix:ce,suffix:Ue,loading:It=!1,formatter:bt,precision:ge,decimalSeparator:He=".",groupSeparator:Ge=",",onMouseEnter:Tt,onMouseLeave:wt}=Me,Lt=_e(Me,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:$e,direction:At,className:st,style:ae}=(0,De.dj)("statistic"),te=$e("statistic",Ke),[ee,oe,ue]=Te(te),re=E.createElement(he,{decimalSeparator:He,groupSeparator:Ge,prefixCls:te,formatter:bt,precision:ge,value:Ae}),ve=Ee()(te,{[`${te}-rtl`]:At==="rtl"},st,ze,se,oe,ue),we=(0,Be.Z)(Lt,{aria:!0,data:!0});return ee(E.createElement("div",Object.assign({},we,{className:ve,style:Object.assign(Object.assign({},ae),qe),onMouseEnter:Tt,onMouseLeave:wt}),ct&&E.createElement("div",{className:`${te}-title`},ct),E.createElement(We.Z,{paragraph:!1,loading:It,className:`${te}-skeleton`},E.createElement("div",{style:Le,className:`${te}-content`},ce&&E.createElement("span",{className:`${te}-content-prefix`},ce),ye?ye(re):re,Ue&&E.createElement("span",{className:`${te}-content-suffix`},Ue)))))};const Pt=[["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 ht(Me,Ke){let ze=Me;const se=/\[[^\]]*]/g,qe=(Ke.match(se)||[]).map(ye=>ye.slice(1,-1)),Le=Ke.replace(se,"[]"),Ae=Pt.reduce((ye,ce)=>{let[Ue,It]=ce;if(ye.includes(Ue)){const bt=Math.floor(ze/It);return ze-=bt*It,ye.replace(new RegExp(`${Ue}+`,"g"),ge=>{const He=ge.length;return bt.toString().padStart(He,"0")})}return ye},Le);let ct=0;return Ae.replace(se,()=>{const ye=qe[ct];return ct+=1,ye})}function it(Me,Ke){const{format:ze=""}=Ke,se=new Date(Me).getTime(),qe=Date.now(),Le=Math.max(se-qe,0);return ht(Le,ze)}var nt=function(Me,Ke){var ze={};for(var se in Me)Object.prototype.hasOwnProperty.call(Me,se)&&Ke.indexOf(se)<0&&(ze[se]=Me[se]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,se=Object.getOwnPropertySymbols(Me);qe{const{value:Ke,format:ze="HH:mm:ss",onChange:se,onFinish:qe}=Me,Le=nt(Me,["value","format","onChange","onFinish"]),Ae=(0,Qe.Z)(),ct=E.useRef(null),ye=()=>{qe==null||qe(),ct.current&&(clearInterval(ct.current),ct.current=null)},ce=()=>{const bt=kt(Ke);bt>=Date.now()&&(ct.current=setInterval(()=>{Ae(),se==null||se(bt-Date.now()),bt(ce(),()=>{ct.current&&(clearInterval(ct.current),ct.current=null)}),[Ke]);const Ue=(bt,ge)=>it(bt,Object.assign(Object.assign({},ge),{format:ze})),It=bt=>(0,xe.Tm)(bt,{title:void 0});return E.createElement(gt,Object.assign({},Le,{value:Ke,valueRender:It,formatter:Ue}))};var et=E.memo(lt);gt.Countdown=et;var St=gt},58755:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return qe}});var E=ne(59301),Qe=ne(58617),xe=ne(92310),tt=ne.n(xe),Ee=ne(60499),Be=ne(18642),De=ne(72190),We=ne(42244),Ie=ne(18929),he=ne(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Pe=E.forwardRef(function(Le,Ae){var ct,ye=Le.prefixCls,ce=ye===void 0?"rc-switch":ye,Ue=Le.className,It=Le.checked,bt=Le.defaultChecked,ge=Le.disabled,He=Le.loadingIcon,Ge=Le.checkedChildren,Tt=Le.unCheckedChildren,wt=Le.onClick,Lt=Le.onChange,$e=Le.onKeyDown,At=(0,We.Z)(Le,Je),st=(0,Ie.Z)(!1,{value:It,defaultValue:bt}),ae=(0,De.Z)(st,2),te=ae[0],ee=ae[1];function oe(we,ft){var Oe=te;return ge||(Oe=we,ee(Oe),Lt==null||Lt(Oe,ft)),Oe}function ue(we){we.which===he.Z.LEFT?oe(!1,we):we.which===he.Z.RIGHT&&oe(!0,we),$e==null||$e(we)}function re(we){var ft=oe(!te,we);wt==null||wt(ft,we)}var ve=tt()(ce,Ue,(ct={},(0,Be.Z)(ct,"".concat(ce,"-checked"),te),(0,Be.Z)(ct,"".concat(ce,"-disabled"),ge),ct));return E.createElement("button",(0,Ee.Z)({},At,{type:"button",role:"switch","aria-checked":te,disabled:ge,className:ve,ref:Ae,onKeyDown:ue,onClick:re}),He,E.createElement("span",{className:"".concat(ce,"-inner")},E.createElement("span",{className:"".concat(ce,"-inner-checked")},Ge),E.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Tt)))});Pe.displayName="Switch";var dt=Pe,Ze=ne(12919),Ce=ne(48755),Te=ne(2171),_e=ne(31756),rt=ne(36237),gt=ne(17835),Pt=ne(63356),ht=ne(16931),it=ne(51636);const nt=Le=>{const{componentCls:Ae,trackHeightSM:ct,trackPadding:ye,trackMinWidthSM:ce,innerMinMarginSM:Ue,innerMaxMarginSM:It,handleSizeSM:bt,calc:ge}=Le,He=`${Ae}-inner`,Ge=(0,rt.unit)(ge(bt).add(ge(ye).mul(2)).equal()),Tt=(0,rt.unit)(ge(It).mul(2).equal());return{[Ae]:{[`&${Ae}-small`]:{minWidth:ce,height:ct,lineHeight:(0,rt.unit)(ct),[`${Ae}-inner`]:{paddingInlineStart:It,paddingInlineEnd:Ue,[`${He}-checked, ${He}-unchecked`]:{minHeight:ct},[`${He}-checked`]:{marginInlineStart:`calc(-100% + ${Ge} - ${Tt})`,marginInlineEnd:`calc(100% - ${Ge} + ${Tt})`},[`${He}-unchecked`]:{marginTop:ge(ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ae}-handle`]:{width:bt,height:bt},[`${Ae}-loading-icon`]:{top:ge(ge(bt).sub(Le.switchLoadingIconSize)).div(2).equal(),fontSize:Le.switchLoadingIconSize},[`&${Ae}-checked`]:{[`${Ae}-inner`]:{paddingInlineStart:Ue,paddingInlineEnd:It,[`${He}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${He}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge} + ${Tt})`,marginInlineEnd:`calc(-100% + ${Ge} - ${Tt})`}},[`${Ae}-handle`]:{insetInlineStart:`calc(100% - ${(0,rt.unit)(ge(bt).add(ye).equal())})`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${He}`]:{[`${He}-unchecked`]:{marginInlineStart:ge(Le.marginXXS).div(2).equal(),marginInlineEnd:ge(Le.marginXXS).mul(-1).div(2).equal()}},[`&${Ae}-checked ${He}`]:{[`${He}-checked`]:{marginInlineStart:ge(Le.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ge(Le.marginXXS).div(2).equal()}}}}}}},Fe=Le=>{const{componentCls:Ae,handleSize:ct,calc:ye}=Le;return{[Ae]:{[`${Ae}-loading-icon${Le.iconCls}`]:{position:"relative",top:ye(ye(ct).sub(Le.fontSize)).div(2).equal(),color:Le.switchLoadingIconColor,verticalAlign:"top"},[`&${Ae}-checked ${Ae}-loading-icon`]:{color:Le.switchColor}}}},kt=Le=>{const{componentCls:Ae,trackPadding:ct,handleBg:ye,handleShadow:ce,handleSize:Ue,calc:It}=Le,bt=`${Ae}-handle`;return{[Ae]:{[bt]:{position:"absolute",top:ct,insetInlineStart:ct,width:Ue,height:Ue,transition:`all ${Le.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ye,borderRadius:It(Ue).div(2).equal(),boxShadow:ce,transition:`all ${Le.switchDuration} ease-in-out`,content:'""'}},[`&${Ae}-checked ${bt}`]:{insetInlineStart:`calc(100% - ${(0,rt.unit)(It(Ue).add(ct).equal())})`},[`&:not(${Ae}-disabled):active`]:{[`${bt}::before`]:{insetInlineEnd:Le.switchHandleActiveInset,insetInlineStart:0},[`&${Ae}-checked ${bt}::before`]:{insetInlineEnd:0,insetInlineStart:Le.switchHandleActiveInset}}}}},lt=Le=>{const{componentCls:Ae,trackHeight:ct,trackPadding:ye,innerMinMargin:ce,innerMaxMargin:Ue,handleSize:It,calc:bt}=Le,ge=`${Ae}-inner`,He=(0,rt.unit)(bt(It).add(bt(ye).mul(2)).equal()),Ge=(0,rt.unit)(bt(Ue).mul(2).equal());return{[Ae]:{[ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ue,paddingInlineEnd:ce,transition:`padding-inline-start ${Le.switchDuration} ease-in-out, padding-inline-end ${Le.switchDuration} ease-in-out`,[`${ge}-checked, ${ge}-unchecked`]:{display:"block",color:Le.colorTextLightSolid,fontSize:Le.fontSizeSM,transition:`margin-inline-start ${Le.switchDuration} ease-in-out, margin-inline-end ${Le.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ct},[`${ge}-checked`]:{marginInlineStart:`calc(-100% + ${He} - ${Ge})`,marginInlineEnd:`calc(100% - ${He} + ${Ge})`},[`${ge}-unchecked`]:{marginTop:bt(ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ae}-checked ${ge}`]:{paddingInlineStart:ce,paddingInlineEnd:Ue,[`${ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ge}-unchecked`]:{marginInlineStart:`calc(100% - ${He} + ${Ge})`,marginInlineEnd:`calc(-100% + ${He} - ${Ge})`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${ge}`]:{[`${ge}-unchecked`]:{marginInlineStart:bt(ye).mul(2).equal(),marginInlineEnd:bt(ye).mul(-1).mul(2).equal()}},[`&${Ae}-checked ${ge}`]:{[`${ge}-checked`]:{marginInlineStart:bt(ye).mul(-1).mul(2).equal(),marginInlineEnd:bt(ye).mul(2).equal()}}}}}},et=Le=>{const{componentCls:Ae,trackHeight:ct,trackMinWidth:ye}=Le;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Le)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ye,height:ct,lineHeight:(0,rt.unit)(ct),verticalAlign:"middle",background:Le.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ae}-disabled)`]:{background:Le.colorTextTertiary}}),(0,Pt.Qy)(Le)),{[`&${Ae}-checked`]:{background:Le.switchColor,[`&:hover:not(${Ae}-disabled)`]:{background:Le.colorPrimaryHover}},[`&${Ae}-loading, &${Ae}-disabled`]:{cursor:"not-allowed",opacity:Le.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ae}-rtl`]:{direction:"rtl"}})}},St=Le=>{const{fontSize:Ae,lineHeight:ct,controlHeight:ye,colorWhite:ce}=Le,Ue=Ae*ct,It=ye/2,bt=2,ge=Ue-bt*2,He=It-bt*2;return{trackHeight:Ue,trackHeightSM:It,trackMinWidth:ge*2+bt*4,trackMinWidthSM:He*2+bt*2,trackPadding:bt,handleBg:ce,handleSize:ge,handleSizeSM:He,handleShadow:`0 2px 4px 0 ${new gt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ge/2,innerMaxMargin:ge+bt+bt*2,innerMinMarginSM:He/2,innerMaxMarginSM:He+bt+bt*2}};var Me=(0,ht.I$)("Switch",Le=>{const Ae=(0,it.mergeToken)(Le,{switchDuration:Le.motionDurationMid,switchColor:Le.colorPrimary,switchDisabledOpacity:Le.opacityLoading,switchLoadingIconSize:Le.calc(Le.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Le.opacityLoading})`,switchHandleActiveInset:"-30%"});return[et(Ae),lt(Ae),kt(Ae),Fe(Ae),nt(Ae)]},St),Ke=function(Le,Ae){var ct={};for(var ye in Le)Object.prototype.hasOwnProperty.call(Le,ye)&&Ae.indexOf(ye)<0&&(ct[ye]=Le[ye]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ye=Object.getOwnPropertySymbols(Le);ce{const{prefixCls:ct,size:ye,disabled:ce,loading:Ue,className:It,rootClassName:bt,style:ge,checked:He,value:Ge,defaultChecked:Tt,defaultValue:wt,onChange:Lt}=Le,$e=Ke(Le,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[At,st]=(0,Ie.Z)(!1,{value:He!=null?He:Ge,defaultValue:Tt!=null?Tt:wt}),{getPrefixCls:ae,direction:te,switch:ee}=E.useContext(Ce.E_),oe=E.useContext(Te.Z),ue=(ce!=null?ce:oe)||Ue,re=ae("switch",ct),ve=E.createElement("div",{className:`${re}-handle`},Ue&&E.createElement(Qe.Z,{className:`${re}-loading-icon`})),[we,ft,Oe]=Me(re),Ye=(0,_e.Z)(ye),mt=tt()(ee==null?void 0:ee.className,{[`${re}-small`]:Ye==="small",[`${re}-loading`]:Ue,[`${re}-rtl`]:te==="rtl"},It,bt,ft,Oe),Bt=Object.assign(Object.assign({},ee==null?void 0:ee.style),ge),Et=function(){st(arguments.length<=0?void 0:arguments[0]),Lt==null||Lt.apply(void 0,arguments)};return we(E.createElement(Ze.Z,{component:"Switch"},E.createElement(dt,Object.assign({},$e,{checked:At,onChange:Et,prefixCls:re,className:mt,style:Bt,disabled:ue,ref:Ae,loadingIcon:ve}))))});se.__ANT_SWITCH=!0;var qe=se},96599:function(on,$t,ne){"use strict";ne.d($t,{default:function(){return ze}});var E=ne(59301),Qe=ne(92310),xe=ne.n(Qe),tt=ne(2738),Ee=ne(29509),Be=ne(78776),De=ne(22703),We=ne(12919),Ie=ne(48755),he=ne(36237),Je=ne(17835),Pe=ne(63356),dt=ne(51636),Ze=ne(16931);const Ce=se=>{const{paddingXXS:qe,lineWidth:Le,tagPaddingHorizontal:Ae,componentCls:ct,calc:ye}=se,ce=ye(Ae).sub(Le).equal(),Ue=ye(qe).sub(Le).equal();return{[ct]:Object.assign(Object.assign({},(0,Pe.Wf)(se)),{display:"inline-block",height:"auto",marginInlineEnd:se.marginXS,paddingInline:ce,fontSize:se.tagFontSize,lineHeight:se.tagLineHeight,whiteSpace:"nowrap",background:se.defaultBg,border:`${(0,he.unit)(se.lineWidth)} ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusSM,opacity:1,transition:`all ${se.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ct}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:se.defaultColor},[`${ct}-close-icon`]:{marginInlineStart:Ue,fontSize:se.tagIconSize,color:se.colorTextDescription,cursor:"pointer",transition:`all ${se.motionDurationMid}`,"&:hover":{color:se.colorTextHeading}},[`&${ct}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${se.iconCls}-close, ${se.iconCls}-close:hover`]:{color:se.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ct}-checkable-checked):hover`]:{color:se.colorPrimary,backgroundColor:se.colorFillSecondary},"&:active, &-checked":{color:se.colorTextLightSolid},"&-checked":{backgroundColor:se.colorPrimary,"&:hover":{backgroundColor:se.colorPrimaryHover}},"&:active":{backgroundColor:se.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${se.iconCls} + span, > span + ${se.iconCls}`]:{marginInlineStart:ce}}),[`${ct}-borderless`]:{borderColor:"transparent",background:se.tagBorderlessBg}}},Te=se=>{const{lineWidth:qe,fontSizeIcon:Le,calc:Ae}=se,ct=se.fontSizeSM;return(0,dt.mergeToken)(se,{tagFontSize:ct,tagLineHeight:(0,he.unit)(Ae(se.lineHeightSM).mul(ct).equal()),tagIconSize:Ae(Le).sub(Ae(qe).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:se.defaultBg})},_e=se=>({defaultBg:new Je.FastColor(se.colorFillQuaternary).onBackground(se.colorBgContainer).toHexString(),defaultColor:se.colorText});var rt=(0,Ze.I$)("Tag",se=>{const qe=Te(se);return Ce(qe)},_e),gt=function(se,qe){var Le={};for(var Ae in se)Object.prototype.hasOwnProperty.call(se,Ae)&&qe.indexOf(Ae)<0&&(Le[Ae]=se[Ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ae=Object.getOwnPropertySymbols(se);ct{const{prefixCls:Le,style:Ae,className:ct,checked:ye,onChange:ce,onClick:Ue}=se,It=gt(se,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:bt,tag:ge}=E.useContext(Ie.E_),He=At=>{ce==null||ce(!ye),Ue==null||Ue(At)},Ge=bt("tag",Le),[Tt,wt,Lt]=rt(Ge),$e=xe()(Ge,`${Ge}-checkable`,{[`${Ge}-checkable-checked`]:ye},ge==null?void 0:ge.className,ct,wt,Lt);return Tt(E.createElement("span",Object.assign({},It,{ref:qe,style:Object.assign(Object.assign({},Ae),ge==null?void 0:ge.style),className:$e,onClick:He})))}),it=ne(93427);const nt=se=>(0,it.Z)(se,(qe,Le)=>{let{textColor:Ae,lightBorderColor:ct,lightColor:ye,darkColor:ce}=Le;return{[`${se.componentCls}${se.componentCls}-${qe}`]:{color:Ae,background:ye,borderColor:ct,"&-inverse":{color:se.colorTextLightSolid,background:ce,borderColor:ce},[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Fe=(0,Ze.bk)(["Tag","preset"],se=>{const qe=Te(se);return nt(qe)},_e);function kt(se){return typeof se!="string"?se:se.charAt(0).toUpperCase()+se.slice(1)}const lt=(se,qe,Le)=>{const Ae=kt(Le);return{[`${se.componentCls}${se.componentCls}-${qe}`]:{color:se[`color${Le}`],background:se[`color${Ae}Bg`],borderColor:se[`color${Ae}Border`],[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}};var et=(0,Ze.bk)(["Tag","status"],se=>{const qe=Te(se);return[lt(qe,"success","Success"),lt(qe,"processing","Info"),lt(qe,"error","Error"),lt(qe,"warning","Warning")]},_e),St=function(se,qe){var Le={};for(var Ae in se)Object.prototype.hasOwnProperty.call(se,Ae)&&qe.indexOf(Ae)<0&&(Le[Ae]=se[Ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ae=Object.getOwnPropertySymbols(se);ct{const{prefixCls:Le,className:Ae,rootClassName:ct,style:ye,children:ce,icon:Ue,color:It,onClose:bt,bordered:ge=!0,visible:He}=se,Ge=St(se,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Tt,direction:wt,tag:Lt}=E.useContext(Ie.E_),[$e,At]=E.useState(!0),st=(0,tt.Z)(Ge,["closeIcon","closable"]);E.useEffect(()=>{He!==void 0&&At(He)},[He]);const ae=(0,Ee.o2)(It),te=(0,Ee.yT)(It),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:It&&!ee?It:void 0},Lt==null?void 0:Lt.style),ye),ue=Tt("tag",Le),[re,ve,we]=rt(ue),ft=xe()(ue,Lt==null?void 0:Lt.className,{[`${ue}-${It}`]:ee,[`${ue}-has-color`]:It&&!ee,[`${ue}-hidden`]:!$e,[`${ue}-rtl`]:wt==="rtl",[`${ue}-borderless`]:!ge},Ae,ct,ve,we),Oe=Wt=>{Wt.stopPropagation(),bt==null||bt(Wt),!Wt.defaultPrevented&&At(!1)},[,Ye]=(0,Be.Z)((0,Be.w)(se),(0,Be.w)(Lt),{closable:!1,closeIconRender:Wt=>{const Ht=E.createElement("span",{className:`${ue}-close-icon`,onClick:Oe},Wt);return(0,De.wm)(Wt,Ht,ln=>({onClick:qt=>{var sn;(sn=ln==null?void 0:ln.onClick)===null||sn===void 0||sn.call(ln,qt),Oe(qt)},className:xe()(ln==null?void 0:ln.className,`${ue}-close-icon`)}))}}),mt=typeof Ge.onClick=="function"||ce&&ce.type==="a",Bt=Ue||null,Et=Bt?E.createElement(E.Fragment,null,Bt,ce&&E.createElement("span",null,ce)):ce,Ut=E.createElement("span",Object.assign({},st,{ref:qe,className:ft,style:oe}),Et,Ye,ae&&E.createElement(Fe,{key:"preset",prefixCls:ue}),te&&E.createElement(et,{key:"status",prefixCls:ue}));return re(mt?E.createElement(We.Z,{component:"Tag"},Ut):Ut)});Ke.CheckableTag=ht;var ze=Ke},99498:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){E.defineOption("placeholder","",function(We,Ie,he){var Je=he&&he!=E.Init;if(Ie&&!Je)We.on("blur",Ee),We.on("change",Be),We.on("swapDoc",Be),E.on(We.getInputField(),"compositionupdate",We.state.placeholderCompose=function(){tt(We)}),Be(We);else if(!Ie&&Je){We.off("blur",Ee),We.off("change",Be),We.off("swapDoc",Be),E.off(We.getInputField(),"compositionupdate",We.state.placeholderCompose),Qe(We);var Pe=We.getWrapperElement();Pe.className=Pe.className.replace(" CodeMirror-empty","")}Ie&&!We.hasFocus()&&Ee(We)});function Qe(We){We.state.placeholder&&(We.state.placeholder.parentNode.removeChild(We.state.placeholder),We.state.placeholder=null)}function xe(We){Qe(We);var Ie=We.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=We.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var he=We.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ie.appendChild(he),We.display.lineSpace.insertBefore(Ie,We.display.lineSpace.firstChild)}function tt(We){setTimeout(function(){var Ie=!1,he=We.getInputField();he.nodeName=="TEXTAREA"?Ie=!he.value:We.lineCount()==1&&(Ie=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ie?xe(We):Qe(We)},20)}function Ee(We){De(We)&&xe(We)}function Be(We){var Ie=We.getWrapperElement(),he=De(We);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?xe(We):Qe(We)}function De(We){return We.lineCount()===1&&We.getLine(0)===""}})},25717:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){var Qe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},xe=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Ce,Te,_e){_e&&_e!=E.Init&&(Ce.removeKeyMap(Ee),Ce.state.closeBrackets=null),Te&&(Be(tt(Te,"pairs")),Ce.state.closeBrackets=Te,Ce.addKeyMap(Ee))});function tt(Ce,Te){return Te=="pairs"&&typeof Ce=="string"?Ce:typeof Ce=="object"&&Ce[Te]!=null?Ce[Te]:Qe[Te]}var Ee={Backspace:Ie,Enter:he};function Be(Ce){for(var Te=0;Te=0;gt--){var ht=rt[gt].head;Ce.replaceRange("",xe(ht.line,ht.ch-1),xe(ht.line,ht.ch+1),"+delete")}}function he(Ce){var Te=We(Ce),_e=Te&&tt(Te,"explode");if(!_e||Ce.getOption("disableInput"))return E.Pass;for(var rt=Ce.listSelections(),gt=0;gt0;return{anchor:new xe(Ce.anchor.line,Ce.anchor.ch+(Te?-1:1)),head:new xe(Ce.head.line,Ce.head.ch+(Te?1:-1))}}function Pe(Ce,Te){var _e=We(Ce);if(!_e||Ce.getOption("disableInput"))return E.Pass;var rt=tt(_e,"pairs"),gt=rt.indexOf(Te);if(gt==-1)return E.Pass;for(var Pt=tt(_e,"closeBefore"),ht=tt(_e,"triples"),it=rt.charAt(gt+1)==Te,nt=Ce.listSelections(),Fe=gt%2==0,kt,lt=0;lt=0&&Ce.getRange(St,xe(St.line,St.ch+3))==Te+Te+Te?Me="skipThree":Me="skip";else if(it&&St.ch>1&&ht.indexOf(Te)>=0&&Ce.getRange(xe(St.line,St.ch-2),St)==Te+Te){if(St.ch>2&&/\bstring/.test(Ce.getTokenTypeAt(xe(St.line,St.ch-2))))return E.Pass;Me="addFour"}else if(it){var ze=St.ch==0?" ":Ce.getRange(xe(St.line,St.ch-1),St);if(!E.isWordChar(Ke)&&ze!=Te&&!E.isWordChar(ze))Me="both";else return E.Pass}else if(Fe&&(Ke.length===0||/\s/.test(Ke)||Pt.indexOf(Ke)>-1))Me="both";else return E.Pass;if(!kt)kt=Me;else if(kt!=Me)return E.Pass}var se=gt%2?rt.charAt(gt-1):Te,qe=gt%2?Te:rt.charAt(gt+1);Ce.operation(function(){if(kt=="skip")Ce.execCommand("goCharRight");else if(kt=="skipThree")for(var Le=0;Le<3;Le++)Ce.execCommand("goCharRight");else if(kt=="surround"){for(var Ae=Ce.getSelections(),Le=0;Le'"]=function(dt){return tt(dt)}),Ie.addKeyMap(Pe)}});var Qe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],xe=["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 tt(Ie){if(Ie.getOption("disableInput"))return E.Pass;for(var he=Ie.listSelections(),Je=[],Pe=Ie.getOption("autoCloseTags"),dt=0;dtZe.ch&&(gt=gt.slice(0,gt.length-Ce.end+Ze.ch));var nt=gt.toLowerCase();if(!gt||Ce.type=="string"&&(Ce.end!=Ze.ch||!/[\"\']/.test(Ce.string.charAt(Ce.string.length-1))||Ce.string.length==1)||Ce.type=="tag"&&rt.close||Ce.string.indexOf("/")==Ze.ch-Ce.start-1||ht&&De(ht,nt)>-1||We(Ie,Te.mode.xmlCurrentContext&&Te.mode.xmlCurrentContext(_e)||[],gt,Ze,!0))return E.Pass;var Fe=typeof Pe=="object"&&Pe.emptyTags;if(Fe&&De(Fe,gt)>-1){Je[dt]={text:"/>",newPos:E.Pos(Ze.line,Ze.ch+2)};continue}var kt=it&&De(it,nt)>-1;Je[dt]={indent:kt,text:">"+(kt?` `:"")+"",newPos:kt?E.Pos(Ze.line+1,0):E.Pos(Ze.line,Ze.ch+1)}}for(var lt=typeof Pe=="object"&&Pe.dontIndentOnAutoClose,dt=he.length-1;dt>=0;dt--){var et=Je[dt];Ie.replaceRange(et.text,he[dt].head,he[dt].anchor,"+insert");var St=Ie.listSelections().slice(0);St[dt]={head:et.newPos,anchor:et.newPos},Ie.setSelections(St),!lt&&et.indent&&(Ie.indentLine(et.newPos.line,null,!0),Ie.indentLine(et.newPos.line+1,null,!0))}}function Ee(Ie,he){for(var Je=Ie.listSelections(),Pe=[],dt=he?"/":""&&(ht+=">"),Pe[Te]=ht}if(Ie.replaceSelections(Pe),Je=Ie.listSelections(),!Ce)for(var Te=0;Te=0&&he[_e]==Je;_e--)++Te;Pe=Ce.to;for(var _e=1;_e=_e.max))return _e.ch=0,_e.text=_e.cm.getLine(++_e.line),!0}function he(_e){if(!(_e.line<=_e.min))return _e.text=_e.cm.getLine(--_e.line),_e.ch=_e.text.length,!0}function Je(_e){for(;;){var rt=_e.text.indexOf(">",_e.ch);if(rt==-1){if(Ie(_e))continue;return}if(!We(_e,rt+1)){_e.ch=rt+1;continue}var gt=_e.text.lastIndexOf("/",rt),Pt=gt>-1&&!/\S/.test(_e.text.slice(gt+1,rt));return _e.ch=rt+1,Pt?"selfClose":"regular"}}function Pe(_e){for(;;){var rt=_e.ch?_e.text.lastIndexOf("<",_e.ch-1):-1;if(rt==-1){if(he(_e))continue;return}if(!We(_e,rt+1)){_e.ch=rt;continue}Be.lastIndex=rt,_e.ch=rt;var gt=Be.exec(_e.text);if(gt&>.index==rt)return gt}}function dt(_e){for(;;){Be.lastIndex=_e.ch;var rt=Be.exec(_e.text);if(!rt){if(Ie(_e))continue;return}if(!We(_e,rt.index+1)){_e.ch=rt.index+1;continue}return _e.ch=rt.index+rt[0].length,rt}}function Ze(_e){for(;;){var rt=_e.ch?_e.text.lastIndexOf(">",_e.ch-1):-1;if(rt==-1){if(he(_e))continue;return}if(!We(_e,rt+1)){_e.ch=rt;continue}var gt=_e.text.lastIndexOf("/",rt),Pt=gt>-1&&!/\S/.test(_e.text.slice(gt+1,rt));return _e.ch=rt+1,Pt?"selfClose":"regular"}}function Ce(_e,rt){for(var gt=[];;){var Pt=dt(_e),ht,it=_e.line,nt=_e.ch-(Pt?Pt[0].length:0);if(!Pt||!(ht=Je(_e)))return;if(ht!="selfClose")if(Pt[1]){for(var Fe=gt.length-1;Fe>=0;--Fe)if(gt[Fe]==Pt[2]){gt.length=Fe;break}if(Fe<0&&(!rt||rt==Pt[2]))return{tag:Pt[2],from:Qe(it,nt),to:Qe(_e.line,_e.ch)}}else gt.push(Pt[2])}}function Te(_e,rt){for(var gt=[];;){var Pt=Ze(_e);if(!Pt)return;if(Pt=="selfClose"){Pe(_e);continue}var ht=_e.line,it=_e.ch,nt=Pe(_e);if(!nt)return;if(nt[1])gt.push(nt[2]);else{for(var Fe=gt.length-1;Fe>=0;--Fe)if(gt[Fe]==nt[2]){gt.length=Fe;break}if(Fe<0&&(!rt||rt==nt[2]))return{tag:nt[2],from:Qe(_e.line,_e.ch),to:Qe(ht,it)}}}}E.registerHelper("fold","xml",function(_e,rt){for(var gt=new De(_e,rt.line,0);;){var Pt=dt(gt);if(!Pt||gt.line!=rt.line)return;var ht=Je(gt);if(!ht)return;if(!Pt[1]&&ht!="selfClose"){var it=Qe(gt.line,gt.ch),nt=Ce(gt,Pt[2]);return nt&&xe(nt.from,it)>0?{from:it,to:nt.from}:null}}}),E.findMatchingTag=function(_e,rt,gt){var Pt=new De(_e,rt.line,rt.ch,gt);if(!(Pt.text.indexOf(">")==-1&&Pt.text.indexOf("<")==-1)){var ht=Je(Pt),it=ht&&Qe(Pt.line,Pt.ch),nt=ht&&Pe(Pt);if(!(!ht||!nt||xe(Pt,rt)>0)){var Fe={from:Qe(Pt.line,Pt.ch),to:it,tag:nt[2]};return ht=="selfClose"?{open:Fe,close:null,at:"open"}:nt[1]?{open:Te(Pt,nt[2]),close:Fe,at:"close"}:(Pt=new De(_e,it.line,it.ch,gt),{open:Fe,close:Ce(Pt,nt[2]),at:"open"})}}},E.findEnclosingTag=function(_e,rt,gt,Pt){for(var ht=new De(_e,rt.line,rt.ch,gt);;){var it=Te(ht,Pt);if(!it)break;var nt=new De(_e,rt.line,rt.ch,gt),Fe=Ce(nt,it.tag);if(Fe)return{open:it,close:Fe}}},E.scanForClosingTag=function(_e,rt,gt,Pt){var ht=new De(_e,rt.line,rt.ch,Pt?{from:0,to:Pt}:null);return Ce(ht,gt)}})},89780:function(on){(function($t,ne){on.exports=ne()})(this,function(){"use strict";var $t=navigator.userAgent,ne=navigator.platform,E=/gecko\/\d/i.test($t),Qe=/MSIE \d/.test($t),xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($t),tt=/Edge\/(\d+)/.exec($t),Ee=Qe||xe||tt,Be=Ee&&(Qe?document.documentMode||6:+(tt||xe)[1]),De=!tt&&/WebKit\//.test($t),We=De&&/Qt\/\d+\.\d+/.test($t),Ie=!tt&&/Chrome\//.test($t),he=/Opera\//.test($t),Je=/Apple Computer/.test(navigator.vendor),Pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test($t),dt=/PhantomJS/.test($t),Ze=!tt&&/AppleWebKit/.test($t)&&/Mobile\/\w+/.test($t),Ce=/Android/.test($t),Te=Ze||Ce||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test($t),_e=Ze||/Mac/.test(ne),rt=/\bCrOS\b/.test($t),gt=/win/i.test(ne),Pt=he&&$t.match(/Version\/(\d*\.\d*)/);Pt&&(Pt=Number(Pt[1])),Pt&&Pt>=15&&(he=!1,De=!0);var ht=_e&&(We||he&&(Pt==null||Pt<12.11)),it=E||Ee&&Be>=9;function nt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Fe=function(a,y){var x=a.className,b=nt(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function kt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function lt(a,y){return kt(a).appendChild(y)}function et(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie=y)return le+(y-ie);le+=de-ie,le+=x-le%x,ie=de+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Ae(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(le,y-z);if(z+=ie-b,z+=x-z%x,b=ie+1,z>=y)return b}}var wt=[""];function Lt(a){for(;wt.length<=a;)wt.push($e(wt)+" ");return wt[a]}function $e(a){return a[a.length-1]}function At(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function ue(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ve=/[\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 we(a){return a.charCodeAt(0)>=768&&ve.test(a)}function ft(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var z=(y+x)/2,ie=b<0?Math.ceil(z):Math.floor(z);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Ye(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!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),z=!0)}z||b(y,x,"ltr")}var mt=null;function Bt(a,y,x){var b;mt=null;for(var z=0;zy)return z;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=z:mt=z),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=z:mt=z)}return b!=null?b:mt}var Et=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Se){return Se<=247?a.charAt(Se):1424<=Se&&Se<=1524?"R":1536<=Se&&Se<=1785?y.charAt(Se-1536):1774<=Se&&Se<=2220?"r":8192<=Se&&Se<=8203?"w":Se==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,de=/[1n]/;function me(Se,at,vt){this.level=Se,this.from=at,this.to=vt}return function(Se,at){var vt=at=="ltr"?"L":"R";if(Se.length==0||at=="ltr"&&!b.test(Se))return!1;for(var Zt=Se.length,zt=[],hn=0;hn-1&&(b[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function sn(a,y){var x=ln(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z0}function je(a){a.prototype.on=function(y,x){Ht(this,y,x)},a.prototype.off=function(y,x){qt(this,y,x)}}function pt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ft(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function jt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ne(a){pt(a),Ft(a)}function ot(a){return a.target||a.srcElement}function yt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),_e&&a.ctrlKey&&y==1&&(y=3),y}var Mt=function(){if(Ee&&Be<9)return!1;var a=et("div");return"draggable"in a||"dragDrop"in a}(),Kt;function cn(a){if(Kt==null){var y=et("span","\u200B");lt(a,et("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Kt=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ee&&Be<8))}var x=Kt?et("span","\u200B"):et("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Dn;function kn(a){if(Dn!=null)return Dn;var y=lt(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return kt(a),!x||x.left==x.right?!1:Dn=b.right-x.right<3}var un=` b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(` `,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=z+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},fn=function(){var a=et("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Gt=null;function Rt(a){if(Gt!=null)return Gt;var y=lt(a,et("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return Gt=Math.abs(x.left-b.left)>1}var _t={},Ot={};function an(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),_t[a]=y}function nn(a,y){Ot[a]=y}function en(a){if(typeof a=="string"&&Ot.hasOwnProperty(a))a=Ot[a];else if(a&&typeof a.name=="string"&&Ot.hasOwnProperty(a.name)){var y=Ot[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 en("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return en("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function xn(a,y){y=en(y);var x=_t[y.name];if(!x)return xn(a,"text/plain");var b=x(a,y);if(Pn.hasOwnProperty(y.name)){var z=Pn[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=z[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 Pn={};function Cn(a,y){var x=Pn.hasOwnProperty(a)?Pn[a]:Pn[a]={};ct(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 z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function An(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 Nt(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 z=x.children[b],ie=z.chunkSize();if(y=a.first&&yx?fe(x,Nt(a,x).text.length):xt(y,Nt(a,y.line).text.length)}function xt(a,y){var x=a.ch;return x==null||x>y?fe(a.line,y):x<0?fe(a.line,0):a}function Jt(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},On.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}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(a,y,x){return y instanceof gn?new On(a,Nn(a.mode,y.state),x,y.lookAhead):new On(a,Nn(a.mode,y),x)},On.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gn(y,this.maxLookAhead):y};function Sn(a,y,x,b){var z=[a.state.modeGen],ie={};rr(a,y.text,a.doc.mode,x,function(Se,at){return z.push(Se,at)},ie,b);for(var le=x.state,de=function(Se){x.baseTokens=z;var at=a.state.overlays[Se],vt=1,Zt=0;x.state=!0,rr(a,y.text,at.mode,x,function(zt,hn){for(var Mn=vt;Ztzt&&z.splice(vt,1,zt,z[vt+1],$n),vt+=2,Zt=Math.min(zt,$n)}if(hn)if(at.opaque)z.splice(Mn,vt-Mn,zt,"overlay "+hn),vt=Mn+2;else for(;Mna.options.maxHighlightLength&&Nn(a.doc.mode,b.state),ie=Sn(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),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 Xn(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new On(b,!0,y);var ie=ir(a,y,x),le=ie>b.first&&Nt(b,ie-1).stateAfter,de=le?On.fromSaved(b,le,ie):new On(b,Qn(b.mode),ie);return b.iter(ie,y,function(me){qn(a,me.text,de);var Se=de.line;me.stateAfter=Se==y-1||Se%5==0||Se>=z.viewFrom&&Sey.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 Zn(a,y,x,b){var z=a.doc,ie=z.mode,le;y=Re(z,y);var de=Nt(z,y.line),me=Xn(a,y.line,x),Se=new zn(de.text,a.options.tabSize,me),at;for(b&&(at=[]);(b||Se.posa.options.maxHighlightLength?(de=!1,le&&qn(a,y,b,at.pos),at.pos=y.length,vt=null):vt=or(Ln(x,at,b.state,Zt),ie),Zt){var zt=Zt[0].name;zt&&(vt="m-"+(vt?zt+" "+vt:zt))}if(!de||Se!=vt){for(;mele;--de){if(de<=ie.first)return ie.first;var me=Nt(ie,de-1),Se=me.stateAfter;if(Se&&(!x||de+(Se instanceof gn?Se.lookAhead:0)<=ie.modeFrontier))return de;var at=ye(me.text,null,a.options.tabSize);(z==null||b>at)&&(z=de-1,b=at)}return z}function Un(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var z=Nt(a,b).stateAfter;if(z&&(!(z instanceof gn)||b+z.lookAhead=y:ie.to>y);(b||(b=[])).push(new Bn(le,ie.from,me?null:ie.to))}}return b}function _n(a,y,x){var b;if(a)for(var z=0;z=y:ie.to>y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var me=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from0&&de)for(var cr=0;cr0)){var at=[me,1],vt=pe(Se.from,de.from),Zt=pe(Se.to,de.to);(vt<0||!le.inclusiveLeft&&!vt)&&at.push({from:Se.from,to:de.from}),(Zt>0||!le.inclusiveRight&&!Zt)&&at.push({from:de.to,to:Se.to}),z.splice.apply(z,at),me+=at.length-3}}return z}function fr(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||_r(b,ie.marker)<0)&&(b=ie.marker)}return b}function wn(a,y,x,b,z){var ie=Nt(a,y),le=Tn&&ie.markedSpans;if(le)for(var de=0;de=0&&vt<=0||at<=0&&vt>=0)&&(at<=0&&(me.marker.inclusiveRight&&z.inclusiveLeft?pe(Se.to,x)>=0:pe(Se.to,x)>0)||at>=0&&(me.marker.inclusiveRight&&z.inclusiveLeft?pe(Se.from,b)<=0:pe(Se.from,b)<0)))return!0}}}function dn(a){for(var y;y=ur(a);)a=y.find(-1,!0).line;return a}function Gn(a){for(var y;y=pn(a);)a=y.find(1,!0).line;return a}function nr(a){for(var y,x;y=pn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function vn(a,y){var x=Nt(a,y),b=dn(x);return x==b?y:Xe(b)}function yn(a,y){if(y>a.lastLine())return y;var x=Nt(a,y),b;if(!jn(a,x))return y;for(;b=pn(x);)x=b.find(1,!0).line;return Xe(x)+1}function jn(a,y){var x=Tn&&y.markedSpans;if(x){for(var b=void 0,z=0;zy.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var Tr=function(a,y,x){this.text=a,wr(this,y),this.height=x?x(this):1};Tr.prototype.lineNo=function(){return Xe(this)},je(Tr);function Ar(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),fr(a),wr(a,x);var z=b?b(a):1;z!=a.height&&mn(a,z)}function Nr(a){a.parent=null,fr(a)}var zr={},Lr={};function jr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Lr:zr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Jr(a,y){var x=St("span",null,null,De?"padding-right: .1px":null),b={pre:St("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,le=void 0;b.pos=0,b.addToken=zi,kn(a.display.measure)&&(le=Ut(ie,a.doc.direction))&&(b.addToken=ri(b.addToken,le)),b.map=[];var de=y!=a.display.externalMeasured&&Xe(ie);Fr(ie,b,Fn(a,ie,de)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=qe(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=qe(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(cn(a.display.measure))),z==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(De){var me=b.content.lastChild;(/\bcm-tab\b/.test(me.className)||me.querySelector&&me.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return sn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=qe(b.pre.className,b.textClass||"")),b}function Zr(a){var y=et("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function zi(a,y,x,b,z,ie,le){if(y){var de=a.splitSpaces?ui(y,a.trailingSpace):y,me=a.cm.state.specialChars,Se=!1,at;if(!me.test(y))a.col+=y.length,at=document.createTextNode(de),a.map.push(a.pos,a.pos+y.length,at),Ee&&Be<9&&(Se=!0),a.pos+=y.length;else{at=document.createDocumentFragment();for(var vt=0;;){me.lastIndex=vt;var Zt=me.exec(y),zt=Zt?Zt.index-vt:y.length-vt;if(zt){var hn=document.createTextNode(de.slice(vt,vt+zt));Ee&&Be<9?at.appendChild(et("span",[hn])):at.appendChild(hn),a.map.push(a.pos,a.pos+zt,hn),a.col+=zt,a.pos+=zt}if(!Zt)break;vt+=zt+1;var Mn=void 0;if(Zt[0]==" "){var $n=a.cm.options.tabSize,er=$n-a.col%$n;Mn=at.appendChild(et("span",Lt(er),"cm-tab")),Mn.setAttribute("role","presentation"),Mn.setAttribute("cm-text"," "),a.col+=er}else Zt[0]=="\r"||Zt[0]==` `?(Mn=at.appendChild(et("span",Zt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Mn.setAttribute("cm-text",Zt[0]),a.col+=1):(Mn=a.cm.options.specialCharPlaceholder(Zt[0]),Mn.setAttribute("cm-text",Zt[0]),Ee&&Be<9?at.appendChild(et("span",[Mn])):at.appendChild(Mn),a.col+=1);a.map.push(a.pos,a.pos+1,Mn),a.pos++}}if(a.trailingSpace=de.charCodeAt(y.length-1)==32,x||b||z||Se||ie||le){var lr=x||"";b&&(lr+=b),z&&(lr+=z);var tr=et("span",[at],lr,ie);if(le)for(var cr in le)le.hasOwnProperty(cr)&&cr!="style"&&cr!="class"&&tr.setAttribute(cr,le[cr]);return a.content.appendChild(tr)}a.content.appendChild(at)}}function ui(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;zSe&&vt.from<=Se));Zt++);if(vt.to>=at)return a(x,b,z,ie,le,de,me);a(x,b.slice(0,vt.to-Se),z,ie,null,de,me),ie=null,b=b.slice(vt.to-Se),Se=vt.to}}}function yi(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Fr(a,y,x){var b=a.markedSpans,z=a.text,ie=0;if(!b){for(var le=1;leme||Dr.collapsed&&gr.to==me&&gr.from==me)){if(gr.to!=null&&gr.to!=me&&zt>gr.to&&(zt=gr.to,Mn=""),Dr.className&&(hn+=" "+Dr.className),Dr.css&&(Zt=(Zt?Zt+";":"")+Dr.css),Dr.startStyle&&gr.from==me&&($n+=" "+Dr.startStyle),Dr.endStyle&&gr.to==zt&&(cr||(cr=[])).push(Dr.endStyle,gr.to),Dr.title&&((lr||(lr={})).title=Dr.title),Dr.attributes)for(var Ur in Dr.attributes)(lr||(lr={}))[Ur]=Dr.attributes[Ur];Dr.collapsed&&(!er||_r(er.marker,Dr)<0)&&(er=gr)}else gr.from>me&&zt>gr.from&&(zt=gr.from)}if(cr)for(var fi=0;fi=de)break;for(var $i=Math.min(de,zt);;){if(at){var Di=me+at.length;if(!er){var ii=Di>$i?at.slice(0,$i-me):at;y.addToken(y,ii,vt?vt+hn:hn,$n,me+ii.length==zt?Mn:"",Zt,lr)}if(Di>=$i){at=at.slice($i-me),me=$i;break}me=Di,$n=""}at=z.slice(ie,ie=x[Se++]),vt=jr(x[Se++],y.cm.options)}}}function Ui(a,y,x){this.line=y,this.rest=nr(y),this.size=this.rest?Xe($e(this.rest))-x+1:1,this.node=this.text=null,this.hidden=jn(a,y)}function qr(a,y,x){for(var b=[],z,ie=y;ie2&&ie.push((me.bottom+Se.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function Do(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[z],cache:a.measure.caches[z],before:!0}}function Za(a,y){y=dn(y);var x=Xe(y),b=a.display.externalMeasured=new Ui(a.doc,y,x);b.lineN=x;var z=b.built=Jr(a,b);return b.text=z.pre,lt(a.display.lineMeasure,z.pre),b}function ya(a,y,x,b){return Vi(a,co(a,y),x,b)}function io(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(ie=me-de,z=ie-1,y>=me&&(le="right")),z!=null){if(b=a[Se+2],de==me&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&z==0)for(;Se&&a[Se-2]==a[Se-3]&&a[Se-1].insertLeft;)b=a[(Se-=3)+2],le="left";if(x=="right"&&z==me-de)for(;Se=0&&(x=a[z]).left==x.right;z--);return x}function Ca(a,y,x,b){var z=xa(y.map,x,b),ie=z.node,le=z.start,de=z.end,me=z.collapse,Se;if(ie.nodeType==3){for(var at=0;at<4;at++){for(;le&&we(y.line.text.charAt(z.coverStart+le));)--le;for(;z.coverStart+de0&&(me=b="right");var vt;a.options.lineWrapping&&(vt=ie.getClientRects()).length>1?Se=vt[b=="right"?vt.length-1:0]:Se=ie.getBoundingClientRect()}if(Ee&&Be<9&&!le&&(!Se||!Se.left&&!Se.right)){var Zt=ie.parentNode.getClientRects()[0];Zt?Se={left:Zt.left,right:Zt.left+Qi(a.display),top:Zt.top,bottom:Zt.bottom}:Se=ba}for(var zt=Se.top-y.rect.top,hn=Se.bottom-y.rect.top,Mn=(zt+hn)/2,$n=y.view.measure.heights,er=0;er<$n.length-1&&!(Mn<$n[er]);er++);var lr=er?$n[er-1]:0,tr=$n[er],cr={left:(me=="right"?Se.right:Se.left)-y.rect.left,right:(me=="left"?Se.left:Se.right)-y.rect.left,top:lr,bottom:tr};return!Se.left&&!Se.right&&(cr.bogus=!0),a.options.singleCursorHeightPerLine||(cr.rtop=zt,cr.rbottom=hn),cr}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Rt(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Uo(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y=b.text.length?(me=b.text.length,Se="before"):me<=0&&(me=0,Se="after"),!de)return le(Se=="before"?me-1:me,Se=="before");function at(hn,Mn,$n){var er=de[Mn],lr=er.level==1;return le($n?hn-1:hn,lr!=$n)}var vt=Bt(de,me,Se),Zt=mt,zt=at(me,vt,Se=="before");return Zt!=null&&(zt.other=at(me,Zt,Se!="before")),zt}function Rr(a,y){var x=0;y=Re(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=Nt(a.doc,y.line),z=vr(b)+ei(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function Pr(a,y,x,b,z){var ie=fe(a,y,x);return ie.xRel=z,b&&(ie.outside=b),ie}function vi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Pr(b.first,0,null,-1,-1);var z=ut(b,x),ie=b.first+b.size-1;if(z>ie)return Pr(b.first+b.size-1,Nt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=Nt(b,z);;){var de=Ji(a,le,z,y,x),me=In(le,de.ch+(de.xRel>0||de.outside>0?1:0));if(!me)return de;var Se=me.find(1);if(Se.line==z)return Se;le=Nt(b,z=Se.line)}}function xi(a,y,x,b){b-=Yo(y);var z=y.text.length,ie=Oe(function(le){return Vi(a,x,le-1).bottom<=b},z,0);return z=Oe(function(le){return Vi(a,x,le).top>b},ie,z),{begin:ie,end:z}}function ti(a,y,x,b){x||(x=co(a,y));var z=Ao(a,y,Vi(a,x,b),"line").top;return xi(a,y,x,z)}function li(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Ji(a,y,x,b,z){z-=vr(y);var ie=co(a,y),le=Yo(y),de=0,me=y.text.length,Se=!0,at=Ut(y,a.doc.direction);if(at){var vt=(a.options.lineWrapping?lo:Gi)(a,y,x,ie,at,b,z);Se=vt.level!=1,de=Se?vt.from:vt.to-1,me=Se?vt.to:vt.from-1}var Zt=null,zt=null,hn=Oe(function(Cr){var gr=Vi(a,ie,Cr);return gr.top+=le,gr.bottom+=le,li(gr,b,z,!1)?(gr.top<=z&&gr.left<=b&&(Zt=Cr,zt=gr),!0):!1},de,me),Mn,$n,er=!1;if(zt){var lr=b-zt.left=cr.bottom?1:0}return hn=ft(y.text,hn,1),Pr(x,hn,$n,er,b-Mn)}function Gi(a,y,x,b,z,ie,le){var de=Oe(function(vt){var Zt=z[vt],zt=Zt.level!=1;return li(Pi(a,fe(x,zt?Zt.to:Zt.from,zt?"before":"after"),"line",y,b),ie,le,!0)},0,z.length-1),me=z[de];if(de>0){var Se=me.level!=1,at=Pi(a,fe(x,Se?me.from:me.to,Se?"after":"before"),"line",y,b);li(at,ie,le,!0)&&at.top>le&&(me=z[de-1])}return me}function lo(a,y,x,b,z,ie,le){var de=xi(a,y,b,le),me=de.begin,Se=de.end;/\s/.test(y.text.charAt(Se-1))&&Se--;for(var at=null,vt=null,Zt=0;Zt=Se||zt.to<=me)){var hn=zt.level!=1,Mn=Vi(a,b,hn?Math.min(Se,zt.to)-1:Math.max(me,zt.from)).right,$n=Mn$n)&&(at=zt,vt=$n)}}return at||(at=z[z.length-1]),at.fromSe&&(at={from:at.from,to:Se,level:at.level}),at}var Fi;function Ri(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Fi==null){Fi=et("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Fi.appendChild(document.createTextNode("x")),Fi.appendChild(et("br"));Fi.appendChild(document.createTextNode("x"))}lt(a.measure,Fi);var x=Fi.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=et("span","xxxxxxxxxx"),x=et("pre",[y],"CodeMirror-line-like");lt(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function fo(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var de=a.display.gutterSpecs[le].className;x[de]=ie.offsetLeft+ie.clientLeft+z,b[de]=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=Ri(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(z){if(jn(a.doc,z))return 0;var ie=0;if(z.widgets)for(var le=0;le0&&(Se=Nt(a.doc,me.line).text).length==me.ch){var at=ye(Se,Se.length,a.options.tabSize)-Se.length;me=fe(me.line,Math.max(0,Math.round((ie-no(a.display).left)/Qi(a.display))-at))}return me}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)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)Tn&&vn(a.doc,y)z.viewFrom?po(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)po(a);else if(y<=z.viewFrom){var ie=Ea(a,x,x+b,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=b):po(a)}else if(x>=z.viewTo){var le=Ea(a,y,y,-1);le?(z.view=z.view.slice(0,le.index),z.viewTo=le.lineN):po(a)}else{var de=Ea(a,y,y,-1),me=Ea(a,x,x+b,1);de&&me?(z.view=z.view.slice(0,de.index).concat(qr(a,de.lineN,me.lineN)).concat(z.view.slice(me.index)),z.viewTo+=b):po(a)}var Se=z.externalMeasured;Se&&(x=z.lineN&&y=b.viewTo)){var ie=b.view[wo(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);Ue(le,x)==-1&&le.push(x)}}}function po(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var z=wo(a,y),ie,le=a.display.view;if(!Tn||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var de=a.display.viewFrom,me=0;me0){if(z==le.length-1)return null;ie=de+le[z].size-y,z++}else ie=de-y;y+=ie,x+=ie}for(;vn(a.doc,x)!=x;){if(z==(b<0?0:le.length-1))return null;x+=b*le[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function $s(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||de.to().line0?y.blinker=setInterval(function(){a.hasFocus()||To(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Bl(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Il(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,To(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(sn(a,"focus",a,y),a.state.focused=!0,se(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),De&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function To(a,y){a.state.delayingBlurEvent||(a.state.focused&&(sn(a,"blur",a,y),a.state.focused=!1,Fe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ia(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||at<-.005)&&(mn(z.line,le),Pl(z.line),z.rest))for(var vt=0;vta.display.sizerWidth){var Zt=Math.ceil(de/Qi(a.display));Zt>a.display.maxLineLength&&(a.display.maxLineLength=Zt,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Pl(a){if(a.widgets)for(var y=0;y=le&&(ie=ut(y,vr(Nt(y,me))-a.wrapper.clientHeight),le=me)}return{from:ie,to:Math.max(le,ie+1)}}function Hs(a,y){if(!Dt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!dt){var ie=et("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-ei(a.display))+`px; height: `+(y.bottom-y.top+Li(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(z),a.display.lineSpace.removeChild(ie)}}}function js(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?fe(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?fe(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,de=Pi(a,y),me=!x||x==y?de:Pi(a,x);z={left:Math.min(de.left,me.left),top:Math.min(de.top,me.top)-b,right:Math.max(de.left,me.left),bottom:Math.max(de.bottom,me.bottom)+b};var Se=Ja(a,z),at=a.doc.scrollTop,vt=a.doc.scrollLeft;if(Se.scrollTop!=null&&(qo(a,Se.scrollTop),Math.abs(a.doc.scrollTop-at)>1&&(le=!0)),Se.scrollLeft!=null&&(Eo(a,Se.scrollLeft),Math.abs(a.doc.scrollLeft-vt)>1&&(le=!0)),!le)break}return z}function Ws(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=Ri(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=ao(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var de=a.doc.height+Zi(x),me=y.topde-b;if(y.topz+ie){var at=Math.min(y.top,(Se?de:y.bottom)-ie);at!=z&&(le.scrollTop=at)}var vt=a.options.fixedGutter?0:x.gutters.offsetWidth,Zt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-vt,zt=ro(a)-x.gutters.offsetWidth,hn=y.right-y.left>zt;return hn&&(y.right=y.left+zt),y.left<10?le.scrollLeft=0:y.leftzt+Zt-3&&(le.scrollLeft=y.right+(hn?0:10)-zt),le}function Qa(a,y){y!=null&&(Oa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function No(a){Oa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Oa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Zs(a,y){Oa(a),a.curOp.scrollToPos=y}function Oa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Rr(a,y.from),b=Rr(a,y.to);Ol(a,x,b,y.margin)}}function Ol(a,y,x,b){var z=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,z.scrollLeft,z.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||el(a,{top:y}),kl(a,y,!0),E&&el(a),na(a,100))}function kl(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,Nl(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+Zi(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+Li(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Bo=function(a,y,x){this.cm=x;var b=this.vert=et("div",[et("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=et("div",[et("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Ht(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Ht(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ee&&Be<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bo.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 z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"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}},Bo.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bo.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bo.prototype.zeroWidthHack=function(){var a=_e&&!Pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},Bo.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Bo.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 Lo(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Dl(a,y);for(var z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&Ia(a),Dl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Dl(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 Al={native:Bo,null:ta};function Ml(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Fe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Al[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Ht(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&&se(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Io(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},Ni(a.curOp)}function Po(a){var y=a.curOp;y&&bi(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new ka(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&&Ia(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+Li(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-ro(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=Xn(a,y.highlightFrontier),z=[];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,de=ie.text.length>a.options.maxHighlightLength?Nn(y.mode,b.state):null,me=Sn(a,ie,b,!0);de&&(b.state=de),ie.styles=me.styles;var Se=ie.styleClasses,at=me.classes;at?ie.styleClasses=at:Se&&(ie.styleClasses=null);for(var vt=!le||le.length!=ie.styles.length||Se!=at&&(!Se||!at||Se.bgClass!=at.bgClass||Se.textClass!=at.textClass),Zt=0;!vt&&Ztx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),z.length&&_i(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;Ll(a)&&(po(a),y.dims=fo(a));var z=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFromle&&x.viewTo-le<20&&(le=Math.min(z,x.viewTo)),Tn&&(ie=vn(a.doc,ie),le=yn(a.doc,le));var de=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;$s(a,ie,le),x.viewOffset=vr(Nt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var me=Sl(a);if(!de&&me==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Se=eu(a);return me>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),me>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(Se),kt(x.cursorDiv),kt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,de&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Tl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==ro(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Zi(a.display)-ao(a),x.top)}),y.visible=Pa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Pa(a.display,a.doc,x));if(!qa(a,y))break;Ia(a);var z=ea(a);Jo(a),Lo(a,z),nl(a,z),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 ka(a,y);if(qa(a,x)){Ia(a),Tl(a,x);var b=ea(a);Jo(a),Lo(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,z=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function de(hn){var Mn=hn.nextSibling;return De&&_e&&a.display.currentWheelTarget==hn?hn.style.display="none":hn.parentNode.removeChild(hn),Mn}for(var me=b.view,Se=b.viewFrom,at=0;at-1&&(zt=!1),ai(a,vt,Se,x)),zt&&(kt(vt.lineNumber),vt.lineNumber.appendChild(document.createTextNode(be(a.options,Se)))),le=vt.node.nextSibling}Se+=vt.size}for(;le;)le=de(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+Li(a)+"px"}function Nl(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,z=y.gutters.offsetWidth,ie=b+"px",le=0;lele.clientWidth,me=le.scrollHeight>le.clientHeight;if(b&&de||z&&me){if(z&&_e&&De){e:for(var Se=y.target,at=ie.view;Se!=le;Se=Se.parentNode)for(var vt=0;vt=0&&pe(a,b.to())<=0)return x}return-1};var Hr=function(a,y){this.anchor=a,this.head=y};Hr.prototype.from=function(){return Yt(this.anchor,this.head)},Hr.prototype.to=function(){return rn(this.anchor,this.head)},Hr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qi(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(Zt,zt){return pe(Zt.from(),zt.from())}),x=Ue(y,z);for(var ie=1;ie0:me>=0){var Se=Yt(de.from(),le.from()),at=rn(de.to(),le.to()),vt=de.empty()?le.from()==le.head:de.from()==de.head;ie<=x&&--x,y.splice(--ie,2,new Hr(vt?at:Se,vt?Se:at))}}return new ji(y,x)}function mo(a,y){return new ji([new Hr(a,y||a)],0)}function vo(a){return a.text?fe(a.from.line+a.text.length-1,$e(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function $l(a,y){if(pe(a,y.from)<0)return a;if(pe(a,y.to)<=0)return vo(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+=vo(y).ch-y.to.ch),fe(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(de.line+1,hn-1),a.insert(de.line+1,er)}Vr(a,"change",a,y)}function go(a,y,x){function b(z,ie,le){if(z.linked)for(var de=0;de1&&!a.done[a.done.length-2].ranges)return a.done.pop(),$e(a.done)}function Vl(a,y,x,b){var z=a.history;z.undone.length=0;var ie=+new Date,le,de;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(z,z.lastOp==b)))de=$e(le.changes),pe(y.from,y.to)==0&&pe(y.from,de.to)==0?de.to=vo(y):le.changes.push(ll(a,y));else{var me=$e(z.done);for((!me||!me.ranges)&&Ma(a.sel,z.done),le={changes:[ll(a,y)],generation:z.generation},z.done.push(le);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,de||sn(a,"historyAdded")}function su(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&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 z=a.history,ie=b&&b.origin;x==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||su(a,ie,$e(z.done),y))?z.done[z.done.length-1]=y:Ma(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=x,b&&b.clearRedo!==!1&&Zl(z.undone)}function Ma(a,y){var x=$e(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=le.markedSpans),++ie})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&($e(de)[vt]=Se[vt],delete Se[vt])}}return b}function sl(a,y,x,b){if(b){var z=a.anchor;if(x){var ie=pe(y,z)<0;ie!=pe(x,z)<0?(z=y,y=x):ie!=pe(y,x)<0&&(y=x)}return new Hr(z,y)}else return new Hr(x||y,y)}function Ta(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),Ci(a,new ji([sl(a.sel.primary(),y,x,z)],0),b)}function Kl(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie=y.ch:de.to>y.ch))){if(z&&(sn(me,"beforeCursorEnter"),me.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!me.atomic)continue;if(x){var vt=me.find(b<0?1:-1),Zt=void 0;if((b<0?at:Se)&&(vt=es(a,vt,-b,vt&&vt.line==y.line?ie:null)),vt&&vt.line==y.line&&(Zt=pe(vt,x))&&(b<0?Zt<0:Zt>0))return Ro(a,vt,y,b,z)}var zt=me.find(b<0?-1:1);return(b<0?Se:at)&&(zt=es(a,zt,b,zt.line==y.line?ie:null)),zt?Ro(a,zt,y,b,z):null}}return y}function La(a,y,x,b,z){var ie=b||1,le=Ro(a,y,x,ie,z)||!z&&Ro(a,y,x,ie,!0)||Ro(a,y,x,-ie,z)||!z&&Ro(a,y,x,-ie,!0);return le||(a.cantEdit=!0,fe(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Re(a,fe(y.line-1)):null:x>0&&y.ch==(b||Nt(a,y.line)).text.length?y.line=0;--z)rs(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&pe(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,hr(a,y));var b=[];go(a,function(z,ie){!ie&&Ue(b,z.history)==-1&&(ls(z.history,y),b.push(z.history)),oa(z,y,null,hr(z,y))})}}function Fa(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,ie,le=a.sel,de=y=="undo"?z.done:z.undone,me=y=="undo"?z.undone:z.done,Se=0;Se=0;--zt){var hn=Zt(zt);if(hn)return hn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new ji(At(a.sel.ranges,function(z){return new Hr(fe(z.anchor.line+y,z.anchor.ch),fe(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Oi(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:fe(ie,Nt(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Qt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Na(a,x,ge),a.cantEdit&&La(a,fe(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,z=a.display,ie=y.from,le=y.to,de=!1,me=ie.line;a.options.lineWrapping||(me=Xe(dn(Nt(b,ie.line))),b.iter(me,le.line+1,function(zt){if(zt==z.maxLine)return de=!0,!0})),b.sel.contains(y.from,y.to)>-1&&tn(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(me,ie.line+y.text.length,function(zt){var hn=kr(zt);hn>z.maxLineLength&&(z.maxLine=zt,z.maxLineLength=hn,z.maxLineChanged=!0,de=!1)}),de&&(a.curOp.updateMaxLine=!0)),Un(b,ie.line),na(a,400);var Se=y.text.length-(le.line-ie.line)-1;y.full?Oi(a):ie.line==le.line&&y.text.length==1&&!Hl(a.doc,y)?ho(a,ie.line,"text"):Oi(a,ie.line,le.line+1,Se);var at=Vt(a,"changes"),vt=Vt(a,"change");if(vt||at){var Zt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};vt&&Vr(a,"change",a,Zt),at&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Zt)}a.display.selForContextMenu=null}function $o(a,y,x,b,z){var ie;b||(b=x),pe(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:z})}function os(a,y,x,b){x1||!(this.children[0]instanceof la))){var de=[];this.collapse(de),this.children=[new la(de)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var le=z.lines.length%25+25,de=le;de10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=Se,a.display.maxLineLength=at,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Oi(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Vr(a,"markerCleared",a,this,b,z),y&&Po(a),this.parent&&this.parent.clear()}},yo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z0||le==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=St("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(wn(a,y.line,y,x,ie)||y.line!=x.line&&wn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");Vn()}ie.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var de=y.line,me=a.cm,Se;if(a.iter(de,x.line+1,function(vt){me&&ie.collapsed&&!me.options.lineWrapping&&dn(vt)==me.display.maxLine&&(Se=!0),ie.collapsed&&de!=y.line&&mn(vt,0),dr(vt,new Bn(ie,de==y.line?y.ch:null,de==x.line?x.ch:null)),++de}),ie.collapsed&&a.iter(y.line,x.line+1,function(vt){jn(a,vt)&&mn(vt,0)}),ie.clearOnEnter&&Ht(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(mr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++us,ie.atomic=!0),me){if(Se&&(me.curOp.updateMaxLine=!0),ie.collapsed)Oi(me,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++)ho(me,at,"text");ie.atomic&&Ql(me.doc),Vr(me,"markerAdded",me,ie)}return ie}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;me--)_o(this,b[me]);de?Yl(this,de):this.cm&&No(this.cm)}),undo:di(function(){Fa(this,"undo")}),redo:di(function(){Fa(this,"redo")}),undoSelection:di(function(){Fa(this,"undo",!0)}),redoSelection:di(function(){Fa(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(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Re(this,a),y=Re(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var de=0;de=me.to||me.from==null&&z!=a.line||me.from!=null&&z==y.line&&me.from>=y.ch)&&(!x||x(me.marker))&&b.push(me.marker.parent||me.marker)}++z}),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}),Re(this,fe(x,y))},indexFromPos:function(a){a=Re(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 vt;if(y.state.draggingText&&!y.state.draggingText.copy&&(vt=y.listSelections()),Na(y.doc,mo(x,x)),vt)for(var Zt=0;Zt=0;de--)$o(a.doc,"",b[de].from,b[de].to,"+delete");No(a)})}function cl(a,y,x){var b=ft(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 fe(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=Ut(x,y.doc.direction);if(ie){var le=z<0?$e(ie):ie[0],de=z<0==(le.level==1),me=de?"after":"before",Se;if(le.level>0||y.doc.direction=="rtl"){var at=co(y,x);Se=z<0?x.text.length-1:0;var vt=Vi(y,at,Se).top;Se=Oe(function(Zt){return Vi(y,at,Zt).top==vt},z<0==(le.level==1)?le.from:le.to-1,Se),me=="before"&&(Se=cl(x,Se,1))}else Se=z<0?le.to:le.from;return new fe(b,Se,me)}}return new fe(b,z<0?x.text.length:0,z<0?"before":"after")}function Pu(a,y,x,b){var z=Ut(y,a.doc.direction);if(!z)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(z,x.ch,x.sticky),le=z[ie];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&Zt>=at.begin)){var zt=vt?"before":"after";return new fe(x.line,Zt,zt)}}var hn=function(er,lr,tr){for(var cr=function(Ur,fi){return fi?new fe(x.line,de(Ur,1),"before"):new fe(x.line,Ur,"after")};er>=0&&er0==(Cr.level!=1),Dr=gr?tr.begin:de(tr.end,-1);if(Cr.from<=Dr&&Dr0?at.end:de(at.begin,-1);return $n!=null&&!(b>0&&$n==y.text.length)&&(Mn=hn(b>0?0:z.length-1,b,Se($n)),Mn)?Mn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ge)},killLine:function(a){return jo(a,function(y){if(y.empty()){var x=Nt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)z=new fe(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),fe(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var le=Nt(a.doc,z.line-1).text;le&&(z=new fe(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),fe(z.line-1,le.length-1),z,"+transpose"))}}x.push(new Hr(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return _i(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&&pe(y,this.pos)==0&&x==this.button};var ma,va;function Nu(a,y){var x=+new Date;return va&&va.compare(x,a,y)?(ma=va=null,"triple"):ma&&ma.compare(x,a,y)?(va=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),va=null,"single")}function Bs(a){var y=this,x=y.display;if(!(Dt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,mi(x,a)){De||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),z=yt(a),ie=b?Nu(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Lu(y,z,b,ie,a))&&(z==1?b?Ru(y,b,ie,a):ot(a)==x.scroller&&pt(a):z==2?(b&&Ta(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(it?y.display.input.onContextMenu(a):Il(y)))}}}function Lu(a,y,x,b,z){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,vs(ie,z),z,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de=le(a,x)!=bt}finally{a.state.suppressEdits=!1}return de})}function Fu(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var ie=rt?x.shiftKey&&x.metaKey:x.altKey;z.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=_e?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(_e?x.altKey:x.ctrlKey)),z}function Ru(a,y,x,b){Ee?setTimeout(Ae(Bl,a),0):a.curOp.focus=ze();var z=Fu(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Mt&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(pe((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(pe(le.to(),y)>0||y.xRel<0)?_u(a,b,y,z):$u(a,b,y,z)}function _u(a,y,x,b){var z=a.display,ie=!1,le=ci(a,function(Se){De&&(z.scroller.draggable=!1),a.state.draggingText=!1,qt(z.wrapper.ownerDocument,"mouseup",le),qt(z.wrapper.ownerDocument,"mousemove",de),qt(z.scroller,"dragstart",me),qt(z.scroller,"drop",le),ie||(pt(Se),b.addNew||Ta(a.doc,x,null,null,b.extend),De&&!Je||Ee&&Be==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),de=function(Se){ie=ie||Math.abs(y.clientX-Se.clientX)+Math.abs(y.clientY-Se.clientY)>=10},me=function(){return ie=!0};De&&(z.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Ht(z.wrapper.ownerDocument,"mouseup",le),Ht(z.wrapper.ownerDocument,"mousemove",de),Ht(z.scroller,"dragstart",me),Ht(z.scroller,"drop",le),Il(a),setTimeout(function(){return z.input.focus()},20)}function Is(a,y,x){if(x=="char")return new Hr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Hr(fe(y.line,0),Re(a.doc,fe(y.line+1,0)));var b=x(a,y);return new Hr(b.from,b.to)}function $u(a,y,x,b){var z=a.display,ie=a.doc;pt(y);var le,de,me=ie.sel,Se=me.ranges;if(b.addNew&&!b.extend?(de=ie.sel.contains(x),de>-1?le=Se[de]:le=new Hr(x,x)):(le=ie.sel.primary(),de=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Hr(x,x)),x=So(a,y,!0,!0),de=-1;else{var at=Is(a,x,b.unit);b.extend?le=sl(le,at.anchor,at.head,b.extend):le=at}b.addNew?de==-1?(de=Se.length,Ci(ie,qi(a,Se.concat([le]),de),{scroll:!1,origin:"*mouse"})):Se.length>1&&Se[de].empty()&&b.unit=="char"&&!b.extend?(Ci(ie,qi(a,Se.slice(0,de).concat(Se.slice(de+1)),0),{scroll:!1,origin:"*mouse"}),me=ie.sel):ul(ie,de,le,He):(de=0,Ci(ie,new ji([le],0),He),me=ie.sel);var vt=x;function Zt(tr){if(pe(vt,tr)!=0)if(vt=tr,b.unit=="rectangle"){for(var cr=[],Cr=a.options.tabSize,gr=ye(Nt(ie,x.line).text,x.ch,Cr),Dr=ye(Nt(ie,tr.line).text,tr.ch,Cr),Ur=Math.min(gr,Dr),fi=Math.max(gr,Dr),Yr=Math.min(x.line,tr.line),$i=Math.min(a.lastLine(),Math.max(x.line,tr.line));Yr<=$i;Yr++){var Di=Nt(ie,Yr).text,ii=Tt(Di,Ur,Cr);Ur==fi?cr.push(new Hr(fe(Yr,ii),fe(Yr,ii))):Di.length>ii&&cr.push(new Hr(fe(Yr,ii),fe(Yr,Tt(Di,fi,Cr))))}cr.length||cr.push(new Hr(x,x)),Ci(ie,qi(a,me.ranges.slice(0,de).concat(cr),de),{origin:"*mouse",scroll:!1}),a.scrollIntoView(tr)}else{var Ai=le,gi=Is(a,tr,b.unit),si=Ai.anchor,oi;pe(gi.anchor,si)>0?(oi=gi.head,si=Yt(Ai.from(),gi.anchor)):(oi=gi.anchor,si=rn(Ai.to(),gi.head));var Qr=me.ranges.slice(0);Qr[de]=zu(a,new Hr(Re(ie,si),oi)),Ci(ie,qi(a,Qr,de),He)}}var zt=z.wrapper.getBoundingClientRect(),hn=0;function Mn(tr){var cr=++hn,Cr=So(a,tr,!0,b.unit=="rectangle");if(Cr)if(pe(Cr,vt)!=0){a.curOp.focus=ze(),Zt(Cr);var gr=Pa(z,ie);(Cr.line>=gr.to||Cr.linezt.bottom?20:0;Dr&&setTimeout(ci(a,function(){hn==cr&&(z.scroller.scrollTop+=Dr,Mn(tr))}),50)}}function $n(tr){a.state.selectingText=!1,hn=1/0,tr&&(pt(tr),z.input.focus()),qt(z.wrapper.ownerDocument,"mousemove",er),qt(z.wrapper.ownerDocument,"mouseup",lr),ie.history.lastSelOrigin=null}var er=ci(a,function(tr){tr.buttons===0||!yt(tr)?$n(tr):Mn(tr)}),lr=ci(a,$n);a.state.selectingText=lr,Ht(z.wrapper.ownerDocument,"mousemove",er),Ht(z.wrapper.ownerDocument,"mouseup",lr)}function zu(a,y){var x=y.anchor,b=y.head,z=Nt(a.doc,x.line);if(pe(x,b)==0&&x.sticky==b.sticky)return y;var ie=Ut(z);if(!ie)return y;var le=Bt(ie,x.ch,x.sticky),de=ie[le];if(de.from!=x.ch&&de.to!=x.ch)return y;var me=le+(de.from==x.ch==(de.level!=1)?0:1);if(me==0||me==ie.length)return y;var Se;if(b.line!=x.line)Se=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var at=Bt(ie,b.ch,b.sticky),vt=at-le||(b.ch-x.ch)*(de.level==1?-1:1);at==me-1||at==me?Se=vt<0:Se=vt>0}var Zt=ie[me+(Se?-1:0)],zt=Se==(Zt.level==1),hn=zt?Zt.from:Zt.to,Mn=zt?"after":"before";return x.ch==hn&&x.sticky==Mn?y:new Hr(new fe(x.line,hn,Mn),b)}function Ps(a,y,x,b){var z,ie;if(y.touches)z=y.touches[0].clientX,ie=y.touches[0].clientY;else try{z=y.clientX,ie=y.clientY}catch(Zt){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&pt(y);var le=a.display,de=le.lineDiv.getBoundingClientRect();if(ie>de.bottom||!Vt(a,x))return jt(y);ie-=de.top-le.viewOffset;for(var me=0;me=z){var at=ut(a.doc,ie),vt=a.display.gutterSpecs[me];return sn(a,x,a,at,vt.className,y),jt(y)}}}function ml(a,y){return Ps(a,y,"gutterClick",!0)}function Os(a,y){mi(a.display,y)||Hu(a,y)||Dt(a,y,"contextmenu")||it||a.display.input.onContextMenu(y)}function Hu(a,y){return Vt(a,"gutterContextMenu")?Ps(a,y,"gutterContextMenu",!1):!1}function ks(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 Wo={toString:function(){return"CodeMirror.Init"}},Ds={},za={};function ju(a){var y=a.optionHandlers;function x(b,z,ie,le){a.defaults[b]=z,ie&&(y[b]=le?function(de,me,Se){Se!=Wo&&ie(de,me,Se)}:ie)}a.defineOption=x,a.Init=Wo,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Oi(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var ie=[],le=b.doc.first;b.doc.iter(function(me){for(var Se=0;;){var at=me.text.indexOf(z,Se);if(at==-1)break;Se=at+z.length,ie.push(fe(le,at))}le++});for(var de=ie.length-1;de>=0;de--)$o(b.doc,z,ie[de],fe(ie[de].line,ie[de].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,ie){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ie!=Wo&&b.refresh()}),x("specialCharPlaceholder",Zr,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!gt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){ks(b),ra(b)},!0),x("keyMap","default",function(b,z,ie){var le=_a(z),de=ie!=Wo&&_a(ie);de&&de.detach&&de.detach(b,le),le.attach&&le.attach(b,de||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Zu,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=rl(z,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return Lo(b)},!0),x("scrollbarStyle","native",function(b){Ml(b),Lo(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=rl(b.options.gutters,z),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(To(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,Wu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function Wu(a,y,x){var b=x&&x!=Wo;if(!y!=!b){var z=a.display.dragFunctions,ie=y?Ht:qt;ie(a.display.scroller,"dragstart",z.start),ie(a.display.scroller,"dragenter",z.enter),ie(a.display.scroller,"dragover",z.over),ie(a.display.scroller,"dragleave",z.leave),ie(a.display.scroller,"drop",z.drop)}}function Zu(a){a.options.lineWrapping?(se(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Fe(a.display.wrapper,"CodeMirror-wrap"),Br(a)),Ka(a),Oi(a),Co(a),setTimeout(function(){return Lo(a)},100)}function Kr(a,y){var x=this;if(!(this instanceof Kr))return new Kr(a,y);this.options=y=y?ct(y):{},ct(Ds,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 z=new Kr.inputStyles[y.inputStyle](this),ie=this.display=new ru(a,b,z,y);ie.wrapper.CodeMirror=this,ks(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ml(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ce,keySeq:null,specialChars:null},y.autofocus&&!Te&&ie.input.focus(),Ee&&Be<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Io(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!Te||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):To(this);for(var le in za)za.hasOwnProperty(le)&&za[le](this,y[le],Wo);Ll(this),y.finishInit&&y.finishInit(this);for(var de=0;de20*20}Ht(y.scroller,"touchstart",function(me){if(!Dt(a,me)&&!ie(me)&&!ml(a,me)){y.input.ensurePolled(),clearTimeout(x);var Se=+new Date;y.activeTouch={start:Se,moved:!1,prev:Se-b.end<=300?b:null},me.touches.length==1&&(y.activeTouch.left=me.touches[0].pageX,y.activeTouch.top=me.touches[0].pageY)}}),Ht(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ht(y.scroller,"touchend",function(me){var Se=y.activeTouch;if(Se&&!mi(y,me)&&Se.left!=null&&!Se.moved&&new Date-Se.start<300){var at=a.coordsChar(y.activeTouch,"page"),vt;!Se.prev||le(Se,Se.prev)?vt=new Hr(at,at):!Se.prev.prev||le(Se,Se.prev.prev)?vt=a.findWordAt(at):vt=new Hr(fe(at.line,0),Re(a.doc,fe(at.line+1,0))),a.setSelection(vt.anchor,vt.head),a.focus(),pt(me)}z()}),Ht(y.scroller,"touchcancel",z),Ht(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),sn(a,"scroll",a))}),Ht(y.scroller,"mousewheel",function(me){return _l(a,me)}),Ht(y.scroller,"DOMMouseScroll",function(me){return _l(a,me)}),Ht(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(me){Dt(a,me)||Ne(me)},over:function(me){Dt(a,me)||(Cu(a,me),Ne(me))},start:function(me){return xu(a,me)},drop:ci(a,bu),leave:function(me){Dt(a,me)||fs(a)}};var de=y.input.getField();Ht(de,"keyup",function(me){return ws.call(a,me)}),Ht(de,"keydown",ci(a,Ss)),Ht(de,"keypress",ci(a,Es)),Ht(de,"focus",function(me){return Ya(a,me)}),Ht(de,"blur",function(me){return To(a,me)})}var vl=[];Kr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var z=a.doc,ie;x==null&&(x="add"),x=="smart"&&(z.mode.indent?ie=Xn(a,y).state:x="prev");var le=a.options.tabSize,de=Nt(z,y),me=ye(de.text,null,le);de.stateAfter&&(de.stateAfter=null);var Se=de.text.match(/^\s*/)[0],at;if(!b&&!/\S/.test(de.text))at=0,x="not";else if(x=="smart"&&(at=z.mode.indent(ie,de.text.slice(Se.length),de.text),at==bt||at>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?at=ye(Nt(z,y-1).text,null,le):at=0:x=="add"?at=me+a.options.indentUnit:x=="subtract"?at=me-a.options.indentUnit:typeof x=="number"&&(at=me+x),at=Math.max(0,at);var vt="",Zt=0;if(a.options.indentWithTabs)for(var zt=Math.floor(at/le);zt;--zt)Zt+=le,vt+=" ";if(Ztle,me=un(y),Se=null;if(de&&b.ranges.length>1)if(eo&&eo.text.join(` `)==y){if(b.ranges.length%eo.text.length==0){Se=[];for(var at=0;at=0;Zt--){var zt=b.ranges[Zt],hn=zt.from(),Mn=zt.to();zt.empty()&&(x&&x>0?hn=fe(hn.line,hn.ch-x):a.state.overwrite&&!de?Mn=fe(Mn.line,Math.min(Nt(ie,Mn.line).text.length,Mn.ch+$e(me).length)):de&&eo&&eo.lineWise&&eo.text.join(` `)==me.join(` `)&&(hn=Mn=fe(hn.line,0)));var $n={from:hn,to:Mn,text:Se?Se[Zt%Se.length]:me,origin:z||(de?"paste":a.state.cutIncoming>le?"cut":"+input")};_o(a.doc,$n),Vr(a,"inputRead",a,$n)}y&&!de&&Ms(a,y),No(a),a.curOp.updateInput<2&&(a.curOp.updateInput=vt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function As(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&_i(y,function(){return gl(y,x,0,null,"paste")}),!0}function Ms(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),le=!1;if(ie.electricChars){for(var de=0;de-1){le=ga(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(Nt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(le=ga(a,z.head.line,"smart"));le&&Vr(a,"electricInput",a,z.head.line)}}}function Ts(a){for(var y=[],x=[],b=0;bie&&(ga(this,de.head.line,b,!0),ie=de.head.line,le==this.doc.sel.primIndex&&No(this));else{var me=de.from(),Se=de.to(),at=Math.max(ie,me.line);ie=Math.min(this.lastLine(),Se.line-(Se.ch?0:1))+1;for(var vt=at;vt0&&ul(this.doc,le,new Hr(me,Zt[le].to()),ge)}}}),getTokenAt:function(b,z){return Zn(this,b,z)},getLineTokens:function(b,z){return Zn(this,fe(b),z,!0)},getTokenTypeAt:function(b){b=Re(this.doc,b);var z=Fn(this,Nt(this.doc,b.line)),ie=0,le=(z.length-1)/2,de=b.ch,me;if(de==0)me=z[2];else for(;;){var Se=ie+le>>1;if((Se?z[Se*2-1]:0)>=de)le=Se;else if(z[Se*2+1]me&&(b=me,le=!0),de=Nt(this.doc,b)}else de=b;return Ao(this,de,{top:0,left:0},z||"page",ie||le).top+(le?this.doc.height-vr(de):0)},defaultTextHeight:function(){return Ri(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,ie,le,de){var me=this.display;b=Pi(this,Re(this.doc,b));var Se=b.bottom,at=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),me.sizer.appendChild(z),le=="over")Se=b.top;else if(le=="above"||le=="near"){var vt=Math.max(me.wrapper.clientHeight,this.doc.height),Zt=Math.max(me.sizer.clientWidth,me.lineSpace.clientWidth);(le=="above"||b.bottom+z.offsetHeight>vt)&&b.top>z.offsetHeight?Se=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=vt&&(Se=b.bottom),at+z.offsetWidth>Zt&&(at=Zt-z.offsetWidth)}z.style.top=Se+"px",z.style.left=z.style.right="",de=="right"?(at=me.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(de=="left"?at=0:de=="middle"&&(at=(me.sizer.clientWidth-z.offsetWidth)/2),z.style.left=at+"px"),ie&&Ws(this,{left:at,top:Se,right:at+z.offsetWidth,bottom:Se+z.offsetHeight})},triggerOnKeyDown:Ei(Ss),triggerOnKeyPress:Ei(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Ei(Bs),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Ei(function(b){Ms(this,b)}),findPosH:function(b,z,ie,le){var de=1;z<0&&(de=-1,z=-z);for(var me=Re(this.doc,b),Se=0;Se0&&at(ie.charAt(le-1));)--le;for(;de.5||this.options.lineWrapping)&&Ka(this),sn(this,"refresh",this)}),swapDoc:Ei(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),jl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Vr(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[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}},je(a),a.registerHelper=function(b,z,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=ie},a.registerGlobalHelper=function(b,z,ie,le){a.registerHelper(b,z,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,z){var ie=y,le=x,de=Nt(a,y.line),me=z&&a.direction=="rtl"?-x:x;function Se(){var lr=y.line+me;return lr=a.first+a.size?!1:(y=new fe(lr,y.ch,y.sticky),de=Nt(a,lr))}function at(lr){var tr;if(b=="codepoint"){var cr=de.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(cr)?tr=null:tr=new fe(y.line,Math.max(0,Math.min(de.text.length,y.ch+x*(cr>=55296&&cr<56320?2:1))),-x)}else z?tr=Pu(a.cm,de,y,x):tr=dl(de,y,x);if(tr==null)if(!lr&&Se())y=fl(z,a.cm,de,y.line,me);else return!1;else y=tr;return!0}if(b=="char"||b=="codepoint")at();else if(b=="column")at(!0);else if(b=="word"||b=="group")for(var vt=null,Zt=b=="group",zt=a.cm&&a.cm.getHelper(y,"wordChars"),hn=!0;!(x<0&&!at(!hn));hn=!1){var Mn=de.text.charAt(y.ch)||` `,$n=ue(Mn,zt)?"w":Zt&&Mn==` `?"n":!Zt||/\s/.test(Mn)?null:"p";if(Zt&&!hn&&!$n&&($n="s"),vt&&vt!=$n){x<0&&(x=1,at(),y.sticky="after");break}if($n&&(vt=$n),x>0&&!at(!hn))break}var er=La(a,y,ie,le,!0);return Ve(ie,er)&&(er.hitSide=!0),er}function Fs(a,y,x,b){var z=a.doc,ie=y.left,le;if(b=="page"){var de=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),me=Math.max(de-.5*Ri(a.display),3);le=(x>0?y.bottom:y.top)+x*me}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var Se;Se=vi(a,ie,le),!!Se.outside;){if(x<0?le<=0:le>=z.height){Se.hitSide=!0;break}le+=x*5}return Se}var Wr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wr.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;Ns(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(de){for(var me=de.target;me;me=me.parentNode){if(me==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(me.className))break}return!1}Ht(z,"paste",function(de){!ie(de)||Dt(b,de)||As(de,b)||Be<=11&&setTimeout(ci(b,function(){return y.updateFromDOM()}),20)}),Ht(z,"compositionstart",function(de){y.composing={data:de.data,done:!1}}),Ht(z,"compositionupdate",function(de){y.composing||(y.composing={data:de.data,done:!1})}),Ht(z,"compositionend",function(de){y.composing&&(de.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ht(z,"touchstart",function(){return x.forceCompositionEnd()}),Ht(z,"input",function(){y.composing||y.readFromDOMSoon()});function le(de){if(!(!ie(de)||Dt(b,de))){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()}),de.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var me=Ts(b);Ha({lineWise:!0,text:me.text}),de.type=="cut"&&b.operation(function(){b.setSelections(me.ranges,0,ge),b.replaceSelection("",null,"cut")})}else return;if(de.clipboardData){de.clipboardData.clearData();var Se=eo.text.join(` `);if(de.clipboardData.setData("Text",Se),de.clipboardData.getData("Text")==Se){de.preventDefault();return}}var at=Ls(),vt=at.firstChild;b.display.lineSpace.insertBefore(at,b.display.lineSpace.firstChild),vt.value=eo.text.join(` `);var Zt=document.activeElement;Le(vt),setTimeout(function(){b.display.lineSpace.removeChild(at),Zt.focus(),Zt==z&&x.showPrimarySelection()},50)}}Ht(z,"copy",le),Ht(z,"cut",le)},Wr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Wr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Wr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Wr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line=y.display.viewFrom&&Rs(y,b)||{node:de[0].measure.map[2],offset:0},Se=z.linea.firstLine()&&(b=fe(b.line-1,Nt(a.doc,b.line-1).length)),z.ch==Nt(a.doc,z.line).text.length&&z.liney.viewTo-1)return!1;var ie,le,de;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(le=Xe(y.view[0].line),de=y.view[0].node):(le=Xe(y.view[ie].line),de=y.view[ie-1].node.nextSibling);var me=wo(a,z.line),Se,at;if(me==y.view.length-1?(Se=y.viewTo-1,at=y.lineDiv.lastChild):(Se=Xe(y.view[me+1].line)-1,at=y.view[me+1].node.previousSibling),!de)return!1;for(var vt=a.doc.splitLines(Ku(a,de,at,le,Se)),Zt=Qt(a.doc,fe(le,0),fe(Se,Nt(a.doc,Se).text.length));vt.length>1&&Zt.length>1;)if($e(vt)==$e(Zt))vt.pop(),Zt.pop(),Se--;else if(vt[0]==Zt[0])vt.shift(),Zt.shift(),le++;else break;for(var zt=0,hn=0,Mn=vt[0],$n=Zt[0],er=Math.min(Mn.length,$n.length);ztb.ch&&lr.charCodeAt(lr.length-hn-1)==tr.charCodeAt(tr.length-hn-1);)zt--,hn++;vt[vt.length-1]=lr.slice(0,lr.length-hn).replace(/^\u200b+/,""),vt[0]=vt[0].slice(zt).replace(/\u200b+$/,"");var Cr=fe(le,zt),gr=fe(Se,Zt.length?$e(Zt).length-hn:0);if(vt.length>1||vt[0]||pe(Cr,gr))return $o(a.doc,vt,Cr,gr,"+input"),!0},Wr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wr.prototype.reset=function(){this.forceCompositionEnd()},Wr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wr.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))},Wr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&_i(this.cm,function(){return Oi(a.cm)})},Wr.prototype.setUneditable=function(a){a.contentEditable="false"},Wr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||ci(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Wr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Wr.prototype.onContextMenu=function(){},Wr.prototype.resetPosition=function(){},Wr.prototype.needsContentAttribute=!0;function Rs(a,y){var x=io(a,y.line);if(!x||x.hidden)return null;var b=Nt(a.doc,y.line),z=Do(x,b,y.line),ie=Ut(b,a.doc.direction),le="left";if(ie){var de=Bt(ie,y.ch);le=de%2?"right":"left"}var me=xa(z.map,y.ch,le);return me.offset=me.collapse=="right"?me.end:me.start,me}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Zo(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,z){var ie="",le=!1,de=a.doc.lineSeparator(),me=!1;function Se(zt){return function(hn){return hn.id==zt}}function at(){le&&(ie+=de,me&&(ie+=de),le=me=!1)}function vt(zt){zt&&(at(),ie+=zt)}function Zt(zt){if(zt.nodeType==1){var hn=zt.getAttribute("cm-text");if(hn){vt(hn);return}var Mn=zt.getAttribute("cm-marker"),$n;if(Mn){var er=a.findMarks(fe(b,0),fe(z+1,0),Se(+Mn));er.length&&($n=er[0].find(0))&&vt(Qt(a.doc,$n.from,$n.to).join(de));return}if(zt.getAttribute("contenteditable")=="false")return;var lr=/^(pre|div|p|li|table|br)$/i.test(zt.nodeName);if(!/^br$/i.test(zt.nodeName)&&zt.textContent.length==0)return;lr&&at();for(var tr=0;tr=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Ht(z,"paste",function(le){Dt(b,le)||As(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!Dt(b,le)){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var de=Ts(b);Ha({lineWise:!0,text:de.text}),le.type=="cut"?b.setSelections(de.ranges,null,ge):(x.prevInput="",z.value=de.text.join(` `),Le(z))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Ht(z,"cut",ie),Ht(z,"copy",ie),Ht(a.scroller,"paste",function(le){if(!(mi(a,le)||Dt(b,le))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var de=new Event("paste");de.clipboardData=le.clipboardData,z.dispatchEvent(de)}}),Ht(a.lineSpace,"selectstart",function(le){mi(a,le)||pt(le)}),Ht(z,"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"})}}),Ht(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},ni.prototype.createField=function(a){this.wrapper=Ls(),this.textarea=this.wrapper.firstChild},ni.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},ni.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var z=Pi(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,z.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+le.left-ie.left))}return b},ni.prototype.showSelection=function(a){var y=this.cm,x=y.display;lt(x.cursorDiv,a.cursors),lt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},ni.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&&Le(this.textarea),Ee&&Be>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ee&&Be>=9&&(this.hasSelection=null))}},ni.prototype.getField=function(){return this.textarea},ni.prototype.supportsTouch=function(){return!1},ni.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Te||ze()!=this.textarea))try{this.textarea.focus()}catch(a){}},ni.prototype.blur=function(){this.textarea.blur()},ni.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ni.prototype.receivedFocus=function(){this.slowPoll()},ni.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},ni.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)},ni.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 z=x.value;if(z==b&&!y.somethingSelected())return!1;if(Ee&&Be>=9&&this.hasSelection===z||_e&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,de=Math.min(b.length,z.length);le1e3||z.indexOf(` `)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ni.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ni.prototype.onKeyPress=function(){Ee&&Be>=9&&(this.hasSelection=null),this.fastPoll()},ni.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=So(x,a),le=b.scroller.scrollTop;if(!ie||he)return;var de=x.options.resetSelectionOnContextMenu;de&&x.doc.sel.contains(ie)==-1&&ci(x,Ci)(x.doc,mo(ie),ge);var me=z.style.cssText,Se=y.wrapper.style.cssText,at=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.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: `+(Ee?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var vt;De&&(vt=window.scrollY),b.input.focus(),De&&window.scrollTo(null,vt),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=zt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Zt(){if(z.selectionStart!=null){var Mn=x.somethingSelected(),$n="\u200B"+(Mn?z.value:"");z.value="\u21DA",z.value=$n,y.prevInput=Mn?"":"\u200B",z.selectionStart=1,z.selectionEnd=$n.length,b.selForContextMenu=x.doc.sel}}function zt(){if(y.contextMenuPending==zt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Se,z.style.cssText=me,Ee&&Be<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),z.selectionStart!=null)){(!Ee||Ee&&Be<9)&&Zt();var Mn=0,$n=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?ci(x,ts)(x):Mn++<10?b.detectingSelectAll=setTimeout($n,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout($n,200)}}if(Ee&&Be>=9&&Zt(),it){Ne(a);var hn=function(){qt(window,"mouseup",hn),setTimeout(zt,20)};Ht(window,"mouseup",hn)}else setTimeout(zt,50)},ni.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},ni.prototype.setUneditable=function(){},ni.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?ct(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=ze();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=de.getValue()}var z;if(a.form&&(Ht(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=z,ie.submit(),ie.submit=le}}catch(me){}}y.finishInit=function(me){me.save=b,me.getTextArea=function(){return a},me.toTextArea=function(){me.toTextArea=isNaN,b(),a.parentNode.removeChild(me.getWrapperElement()),a.style.display="",a.form&&(qt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var de=Kr(function(me){return a.parentNode.insertBefore(me,a.nextSibling)},y);return de}function Ju(a){a.off=qt,a.on=Ht,a.wheelEventPixels=iu,a.Doc=ki,a.splitLines=un,a.countColumn=ye,a.findColumn=Tt,a.isWordChar=oe,a.Pass=bt,a.signal=sn,a.Line=Tr,a.changeEnd=vo,a.scrollbarModel=Al,a.Pos=fe,a.cmpPos=pe,a.modes=_t,a.mimeModes=Ot,a.resolveMode=en,a.getMode=xn,a.modeExtensions=Pn,a.extendMode=Cn,a.copyState=Nn,a.startState=Qn,a.innerMode=An,a.commands=ha,a.keyMap=so,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Ho,a.normalizeKeyMap=Iu,a.StringStream=zn,a.SharedTextMarker=ca,a.TextMarker=yo,a.LineWidget=ua,a.e_preventDefault=pt,a.e_stopPropagation=Ft,a.e_stop=Ne,a.addClass=se,a.contains=Ke,a.rmClass=Fe,a.keyNames=bo}ju(Kr),Gu(Kr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Wa in ki.prototype)ki.prototype.hasOwnProperty(Wa)&&Ue(Qu,Wa)<0&&(Kr.prototype[Wa]=function(a){return function(){return a.apply(this.doc,arguments)}}(ki.prototype[Wa]));return je(ki),Kr.inputStyles={textarea:ni,contenteditable:Wr},Kr.defineMode=function(a){!Kr.defaults.mode&&a!="null"&&(Kr.defaults.mode=a),an.apply(this,arguments)},Kr.defineMIME=nn,Kr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Kr.defineMIME("text/plain","null"),Kr.defineExtension=function(a,y){Kr.prototype[a]=y},Kr.defineDocExtension=function(a,y){ki.prototype[a]=y},Kr.fromTextArea=Yu,Ju(Kr),Kr.version="5.58.2",Kr})},25419:function(on,$t,ne){(function(E){E(ne(89780),ne(15525),ne(98101))})(function(E){"use strict";E.defineMode("markdown",function(Qe,xe){var tt=E.getMode(Qe,"text/html"),Ee=tt.name=="null";function Be(ye){if(E.findModeByName){var ce=E.findModeByName(ye);ce&&(ye=ce.mime||ce.mimes[0])}var Ue=E.getMode(Qe,ye);return Ue.name=="null"?null:Ue}xe.highlightFormatting===void 0&&(xe.highlightFormatting=!1),xe.maxBlockquoteDepth===void 0&&(xe.maxBlockquoteDepth=0),xe.taskLists===void 0&&(xe.taskLists=!1),xe.strikethrough===void 0&&(xe.strikethrough=!1),xe.emoji===void 0&&(xe.emoji=!1),xe.fencedCodeBlockHighlighting===void 0&&(xe.fencedCodeBlockHighlighting=!0),xe.fencedCodeBlockDefaultMode===void 0&&(xe.fencedCodeBlockDefaultMode="text/plain"),xe.xml===void 0&&(xe.xml=!0),xe.tokenTypeOverrides===void 0&&(xe.tokenTypeOverrides={});var De={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 We in De)De.hasOwnProperty(We)&&xe.tokenTypeOverrides[We]&&(De[We]=xe.tokenTypeOverrides[We]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,Pe=xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ze=/^[^#!\[\]*_\\<>` "'(~:]+/,Ce=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Te=/^\s*\[[^\]]+?\]:.*$/,_e=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,rt=" ";function gt(ye,ce,Ue){return ce.f=ce.inline=Ue,Ue(ye,ce)}function Pt(ye,ce,Ue){return ce.f=ce.block=Ue,Ue(ye,ce)}function ht(ye){return!ye||!/\S/.test(ye.string)}function it(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Fe){var ce=Ee;if(!ce){var Ue=E.innerMode(tt,ye.htmlState);ce=Ue.mode.name=="xml"&&Ue.state.tagStart===null&&!Ue.state.context&&Ue.state.tokenize.isInText}ce&&(ye.f=St,ye.block=nt,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function nt(ye,ce){var Ue=ye.column()===ce.indentation,It=ht(ce.prevLine.stream),bt=ce.indentedCode,ge=ce.prevLine.hr,He=ce.list!==!1,Ge=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var Tt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,He)){for(ce.list=null;Tt=4&&(bt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||It))return ye.skipToEnd(),ce.indentedCode=!0,De.code;if(ye.eatSpace())return null;if(Ue&&ce.indentation<=Ge&&($e=ye.match(Pe))&&$e[1].length<=6)return ce.quote=0,ce.header=$e[1].length,ce.thisLine.header=!0,xe.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,lt(ce);if(ce.indentation<=Ge&&ye.eat(">"))return ce.quote=Ue?1:ce.quote+1,xe.highlightFormatting&&(ce.formatting="quote"),ye.eatSpace(),lt(ce);if(!Lt&&!ce.setext&&Ue&&ce.indentation<=Ge&&($e=ye.match(he))){var At=$e[1]?"ol":"ul";return ce.indentation=Tt+ye.current().length,ce.list=!0,ce.quote=0,ce.listStack.push(ce.indentation),ce.em=!1,ce.strong=!1,ce.code=!1,ce.strikethrough=!1,xe.taskLists&&ye.match(Je,!1)&&(ce.taskList=!0),ce.f=ce.inline,xe.highlightFormatting&&(ce.formatting=["list","list-"+At]),lt(ce)}else{if(Ue&&ce.indentation<=Ge&&($e=ye.match(Ce,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp($e[1]+"+ *$"),ce.localMode=xe.fencedCodeBlockHighlighting&&Be($e[2]||xe.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=E.startState(ce.localMode)),ce.f=ce.block=kt,xe.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,lt(ce);if(ce.setext||(!wt||!He)&&!ce.quote&&ce.list===!1&&!ce.code&&!Lt&&!Te.test(ye.string)&&($e=ye.lookAhead(1))&&($e=$e.match(dt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,ye.skipToEnd(),xe.highlightFormatting&&(ce.formatting="header")):(ce.header=$e[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,lt(ce);if(Lt)return ye.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,De.hr;if(ye.peek()==="[")return gt(ye,ce,qe)}return gt(ye,ce,ce.inline)}function Fe(ye,ce){var Ue=tt.token(ye,ce.htmlState);if(!Ee){var It=E.innerMode(tt,ce.htmlState);(It.mode.name=="xml"&&It.state.tagStart===null&&!It.state.context&&It.state.tokenize.isInText||ce.md_inside&&ye.current().indexOf(">")>-1)&&(ce.f=St,ce.block=nt,ce.htmlState=null)}return Ue}function kt(ye,ce){var Ue=ce.listStack[ce.listStack.length-1]||0,It=ce.indentation=ye.quote?ce.push(De.formatting+"-"+ye.formatting[Ue]+"-"+ye.quote):ce.push("error"))}if(ye.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(ye.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(ye.linkHref?ce.push(De.linkHref,"url"):(ye.strong&&ce.push(De.strong),ye.em&&ce.push(De.em),ye.strikethrough&&ce.push(De.strikethrough),ye.emoji&&ce.push(De.emoji),ye.linkText&&ce.push(De.linkText),ye.code&&ce.push(De.code),ye.image&&ce.push(De.image),ye.imageAltText&&ce.push(De.imageAltText,"link"),ye.imageMarker&&ce.push(De.imageMarker)),ye.header&&ce.push(De.header,De.header+"-"+ye.header),ye.quote&&(ce.push(De.quote),!xe.maxBlockquoteDepth||xe.maxBlockquoteDepth>=ye.quote?ce.push(De.quote+"-"+ye.quote):ce.push(De.quote+"-"+xe.maxBlockquoteDepth)),ye.list!==!1){var It=(ye.listStack.length-1)%3;It?It===1?ce.push(De.list2):ce.push(De.list3):ce.push(De.list1)}return ye.trailingSpaceNewLine?ce.push("trailing-space-new-line"):ye.trailingSpace&&ce.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function et(ye,ce){if(ye.match(Ze,!0))return lt(ce)}function St(ye,ce){var Ue=ce.text(ye,ce);if(typeof Ue!="undefined")return Ue;if(ce.list)return ce.list=null,lt(ce);if(ce.taskList){var It=ye.match(Je,!0)[1]===" ";return It?ce.taskOpen=!0:ce.taskClosed=!0,xe.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,lt(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&ye.match(/^#+$/,!0))return xe.highlightFormatting&&(ce.formatting="header"),lt(ce);var bt=ye.next();if(ce.linkTitle){ce.linkTitle=!1;var ge=bt;bt==="("&&(ge=")"),ge=(ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var He="^\\s*(?:[^"+ge+"\\\\]+|\\\\\\\\|\\\\.)"+ge;if(ye.match(new RegExp(He),!0))return De.linkHref}if(bt==="`"){var Ge=ce.formatting;xe.highlightFormatting&&(ce.formatting="code"),ye.eatWhile("`");var Tt=ye.current().length;if(ce.code==0&&(!ce.quote||Tt==1))return ce.code=Tt,lt(ce);if(Tt==ce.code){var wt=lt(ce);return ce.code=0,wt}else return ce.formatting=Ge,lt(ce)}else if(ce.code)return lt(ce);if(bt==="\\"&&(ye.next(),xe.highlightFormatting)){var Lt=lt(ce),$e=De.formatting+"-escape";return Lt?Lt+" "+$e:$e}if(bt==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,xe.highlightFormatting&&(ce.formatting="image"),lt(ce);if(bt==="["&&ce.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,xe.highlightFormatting&&(ce.formatting="image"),lt(ce);if(bt==="]"&&ce.imageAltText){xe.highlightFormatting&&(ce.formatting="image");var Lt=lt(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=Ke,Lt}if(bt==="["&&!ce.image)return ce.linkText&&ye.match(/^.*?\]/)||(ce.linkText=!0,xe.highlightFormatting&&(ce.formatting="link")),lt(ce);if(bt==="]"&&ce.linkText){xe.highlightFormatting&&(ce.formatting="link");var Lt=lt(ce);return ce.linkText=!1,ce.inline=ce.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?Ke:St,Lt}if(bt==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Me,xe.highlightFormatting&&(ce.formatting="link");var Lt=lt(ce);return Lt?Lt+=" ":Lt="",Lt+De.linkInline}if(bt==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Me,xe.highlightFormatting&&(ce.formatting="link");var Lt=lt(ce);return Lt?Lt+=" ":Lt="",Lt+De.linkEmail}if(xe.xml&&bt==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var At=ye.string.indexOf(">",ye.pos);if(At!=-1){var st=ye.string.substring(ye.start,At);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(st)&&(ce.md_inside=!0)}return ye.backUp(1),ce.htmlState=E.startState(tt),Pt(ye,ce,Fe)}if(xe.xml&&bt==="<"&&ye.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(bt==="*"||bt==="_"){for(var ae=1,te=ye.pos==1?" ":ye.string.charAt(ye.pos-2);ae<3&&ye.eat(bt);)ae++;var ee=ye.peek()||" ",oe=!/\s/.test(ee)&&(!_e.test(ee)||/\s/.test(te)||_e.test(te)),ue=!/\s/.test(te)&&(!_e.test(te)||/\s/.test(ee)||_e.test(ee)),re=null,ve=null;if(ae%2&&(!ce.em&&oe&&(bt==="*"||!ue||_e.test(te))?re=!0:ce.em==bt&&ue&&(bt==="*"||!oe||_e.test(ee))&&(re=!1)),ae>1&&(!ce.strong&&oe&&(bt==="*"||!ue||_e.test(te))?ve=!0:ce.strong==bt&&ue&&(bt==="*"||!oe||_e.test(ee))&&(ve=!1)),ve!=null||re!=null){xe.highlightFormatting&&(ce.formatting=re==null?"strong":ve==null?"em":"strong em"),re===!0&&(ce.em=bt),ve===!0&&(ce.strong=bt);var wt=lt(ce);return re===!1&&(ce.em=!1),ve===!1&&(ce.strong=!1),wt}}else if(bt===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return lt(ce);ye.backUp(1)}if(xe.strikethrough){if(bt==="~"&&ye.eatWhile(bt)){if(ce.strikethrough){xe.highlightFormatting&&(ce.formatting="strikethrough");var wt=lt(ce);return ce.strikethrough=!1,wt}else if(ye.match(/^[^\s]/,!1))return ce.strikethrough=!0,xe.highlightFormatting&&(ce.formatting="strikethrough"),lt(ce)}else if(bt===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return lt(ce);ye.backUp(2)}}if(xe.emoji&&bt===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,xe.highlightFormatting&&(ce.formatting="emoji");var we=lt(ce);return ce.emoji=!1,we}return bt===" "&&(ye.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),lt(ce)}function Me(ye,ce){var Ue=ye.next();if(Ue===">"){ce.f=ce.inline=St,xe.highlightFormatting&&(ce.formatting="link");var It=lt(ce);return It?It+=" ":It="",It+De.linkInline}return ye.match(/^[^>]+/,!0),De.linkInline}function Ke(ye,ce){if(ye.eatSpace())return null;var Ue=ye.next();return Ue==="("||Ue==="["?(ce.f=ce.inline=se(Ue==="("?")":"]"),xe.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,lt(ce)):"error"}var ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function se(ye){return function(ce,Ue){var It=ce.next();if(It===ye){Ue.f=Ue.inline=St,xe.highlightFormatting&&(Ue.formatting="link-string");var bt=lt(Ue);return Ue.linkHref=!1,bt}return ce.match(ze[ye]),Ue.linkHref=!0,lt(Ue)}}function qe(ye,ce){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Le,ye.next(),xe.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,lt(ce)):gt(ye,ce,St)}function Le(ye,ce){if(ye.match(/^\]:/,!0)){ce.f=ce.inline=Ae,xe.highlightFormatting&&(ce.formatting="link");var Ue=lt(ce);return ce.linkText=!1,Ue}return ye.match(/^([^\]\\]|\\.)+/,!0),De.linkText}function Ae(ye,ce){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?ce.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=St,De.linkHref+" url")}var ct={startState:function(){return{f:nt,prevLine:{stream:null},thisLine:{stream:null},block:nt,htmlState:null,indentation:0,inline:St,text:et,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(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&E.copyState(tt,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?E.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,ce){if(ce.formatting=!1,ye!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,ye.match(/^\s*$/,!0))return it(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:ye},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=Fe)){var Ue=ye.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ce.indentation=Ue,ce.indentationDiff=null,Ue>0)return null}}return ce.f(ye,ce)},innerMode:function(ye){return ye.block==Fe?{state:ye.htmlState,mode:tt}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:ct}},indent:function(ye,ce,Ue){return ye.block==Fe&&tt.indent?tt.indent(ye.htmlState,ce,Ue):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,ce,Ue):E.Pass},blankLine:it,getType:lt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ct},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Qe=0;Qe-1&&tt.substring(De+1,tt.length);if(We)return E.findModeByExtension(We)},E.findModeByName=function(tt){tt=tt.toLowerCase();for(var Ee=0;Ee0?Ze.cmdState[Ze.cmdState.length-1]:null}function Be(Ze){var Ce=Ze.cmdState.pop();Ce&&Ce.closeBracket()}function De(Ze){for(var Ce=Ze.cmdState,Te=Ce.length-1;Te>=0;Te--){var _e=Ce[Te];if(_e.name!="DEFAULT")return _e}return{styleIdentifier:function(){return null}}}function We(Ze,Ce,Te){return function(){this.name=Ze,this.bracketNo=0,this.style=Ce,this.styles=Te,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=We("importmodule","tag",["string","builtin"]),Ie.documentclass=We("documentclass","tag",["","atom"]),Ie.usepackage=We("usepackage","tag",["atom"]),Ie.begin=We("begin","tag",["atom"]),Ie.end=We("end","tag",["atom"]),Ie.label=We("label","tag",["atom"]),Ie.ref=We("ref","tag",["atom"]),Ie.eqref=We("eqref","tag",["atom"]),Ie.cite=We("cite","tag",["atom"]),Ie.bibitem=We("bibitem","tag",["atom"]),Ie.Bibitem=We("Bibitem","tag",["atom"]),Ie.RBibitem=We("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Ze,Ce){Ze.f=Ce}function Je(Ze,Ce){var Te;if(Ze.match(/^\\[a-zA-Z@]+/)){var _e=Ze.current().slice(1);return Te=Ie.hasOwnProperty(_e)?Ie[_e]:Ie.DEFAULT,Te=new Te,tt(Ce,Te),he(Ce,dt),Te.style}if(Ze.match(/^\\[$&%#{}_]/)||Ze.match(/^\\[,;!\/\\]/))return"tag";if(Ze.match("\\["))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"\\]")}),"keyword";if(Ze.match("\\("))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"\\)")}),"keyword";if(Ze.match("$$"))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"$$")}),"keyword";if(Ze.match("$"))return he(Ce,function(gt,Pt){return Pe(gt,Pt,"$")}),"keyword";var rt=Ze.next();if(rt=="%")return Ze.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(Te=Ee(Ce),Te)Te.closeBracket(rt),he(Ce,dt);else return"error";return"bracket"}else return rt=="{"||rt=="["?(Te=Ie.DEFAULT,Te=new Te,tt(Ce,Te),"bracket"):/\d/.test(rt)?(Ze.eatWhile(/[\w.%]/),"atom"):(Ze.eatWhile(/[\w\-_]/),Te=De(Ce),Te.name=="begin"&&(Te.argument=Ze.current()),Te.styleIdentifier())}function Pe(Ze,Ce,Te){if(Ze.eatSpace())return null;if(Te&&Ze.match(Te))return he(Ce,Je),"keyword";if(Ze.match(/^\\[a-zA-Z@]+/))return"tag";if(Ze.match(/^[a-zA-Z]+/))return"variable-2";if(Ze.match(/^\\[$&%#{}_]/)||Ze.match(/^\\[,;!\/]/)||Ze.match(/^[\^_&]/))return"tag";if(Ze.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ze.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var _e=Ze.next();return _e=="{"||_e=="}"||_e=="["||_e=="]"||_e=="("||_e==")"?"bracket":_e=="%"?(Ze.skipToEnd(),"comment"):"error"}function dt(Ze,Ce){var Te=Ze.peek(),_e;return Te=="{"||Te=="["?(_e=Ee(Ce),_e.openBracket(Te),Ze.eat(Te),he(Ce,Je),"bracket"):/[ \t\r]/.test(Te)?(Ze.eat(Te),null):(he(Ce,Je),Be(Ce),Je(Ze,Ce))}return{startState:function(){var Ze=xe.inMathMode?function(Ce,Te){return Pe(Ce,Te)}:Je;return{cmdState:[],f:Ze}},copyState:function(Ze){return{cmdState:Ze.cmdState.slice(),f:Ze.f}},token:function(Ze,Ce){return Ce.f(Ze,Ce)},blankLine:function(Ze){Ze.f=Je,Ze.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(on,$t,ne){(function(E){E(ne(89780))})(function(E){"use strict";var Qe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(tt,Ee){var Be=tt.indentUnit,De={},We=Ee.htmlMode?Qe:xe;for(var Ie in We)De[Ie]=We[Ie];for(var Ie in Ee)De[Ie]=Ee[Ie];var he,Je;function Pe(Me,Ke){function ze(Le){return Ke.tokenize=Le,Le(Me,Ke)}var se=Me.next();if(se=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?ze(Ce("atom","]]>")):null:Me.match("--")?ze(Ce("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),ze(Te(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),Ke.tokenize=Ce("meta","?>"),"meta"):(he=Me.eat("/")?"closeTag":"openTag",Ke.tokenize=dt,"tag bracket");if(se=="&"){var qe;return Me.eat("#")?Me.eat("x")?qe=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):qe=Me.eatWhile(/[\d]/)&&Me.eat(";"):qe=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),qe?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Pe.isInText=!0;function dt(Me,Ke){var ze=Me.next();if(ze==">"||ze=="/"&&Me.eat(">"))return Ke.tokenize=Pe,he=ze==">"?"endTag":"selfcloseTag","tag bracket";if(ze=="=")return he="equals",null;if(ze=="<"){Ke.tokenize=Pe,Ke.state=Pt,Ke.tagName=Ke.tagStart=null;var se=Ke.tokenize(Me,Ke);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(ze)?(Ke.tokenize=Ze(ze),Ke.stringStartCol=Me.column(),Ke.tokenize(Me,Ke)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ze(Me){var Ke=function(ze,se){for(;!ze.eol();)if(ze.next()==Me){se.tokenize=dt;break}return"string"};return Ke.isInAttribute=!0,Ke}function Ce(Me,Ke){return function(ze,se){for(;!ze.eol();){if(ze.match(Ke)){se.tokenize=Pe;break}ze.next()}return Me}}function Te(Me){return function(Ke,ze){for(var se;(se=Ke.next())!=null;){if(se=="<")return ze.tokenize=Te(Me+1),ze.tokenize(Ke,ze);if(se==">")if(Me==1){ze.tokenize=Pe;break}else return ze.tokenize=Te(Me-1),ze.tokenize(Ke,ze)}return"meta"}}function _e(Me,Ke,ze){this.prev=Me.context,this.tagName=Ke,this.indent=Me.indented,this.startOfLine=ze,(De.doNotIndent.hasOwnProperty(Ke)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function rt(Me){Me.context&&(Me.context=Me.context.prev)}function gt(Me,Ke){for(var ze;;){if(!Me.context||(ze=Me.context.tagName,!De.contextGrabbers.hasOwnProperty(ze)||!De.contextGrabbers[ze].hasOwnProperty(Ke)))return;rt(Me)}}function Pt(Me,Ke,ze){return Me=="openTag"?(ze.tagStart=Ke.column(),ht):Me=="closeTag"?it:Pt}function ht(Me,Ke,ze){return Me=="word"?(ze.tagName=Ke.current(),Je="tag",kt):De.allowMissingTagName&&Me=="endTag"?(Je="tag bracket",kt(Me,Ke,ze)):(Je="error",ht)}function it(Me,Ke,ze){if(Me=="word"){var se=Ke.current();return ze.context&&ze.context.tagName!=se&&De.implicitlyClosed.hasOwnProperty(ze.context.tagName)&&rt(ze),ze.context&&ze.context.tagName==se||De.matchClosing===!1?(Je="tag",nt):(Je="tag error",Fe)}else return De.allowMissingTagName&&Me=="endTag"?(Je="tag bracket",nt(Me,Ke,ze)):(Je="error",Fe)}function nt(Me,Ke,ze){return Me!="endTag"?(Je="error",nt):(rt(ze),Pt)}function Fe(Me,Ke,ze){return Je="error",nt(Me,Ke,ze)}function kt(Me,Ke,ze){if(Me=="word")return Je="attribute",lt;if(Me=="endTag"||Me=="selfcloseTag"){var se=ze.tagName,qe=ze.tagStart;return ze.tagName=ze.tagStart=null,Me=="selfcloseTag"||De.autoSelfClosers.hasOwnProperty(se)?gt(ze,se):(gt(ze,se),ze.context=new _e(ze,se,qe==ze.indented)),Pt}return Je="error",kt}function lt(Me,Ke,ze){return Me=="equals"?et:(De.allowMissing||(Je="error"),kt(Me,Ke,ze))}function et(Me,Ke,ze){return Me=="string"?St:Me=="word"&&De.allowUnquoted?(Je="string",kt):(Je="error",kt(Me,Ke,ze))}function St(Me,Ke,ze){return Me=="string"?St:kt(Me,Ke,ze)}return{startState:function(Me){var Ke={tokenize:Pe,state:Pt,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(Ke.baseIndent=Me),Ke},token:function(Me,Ke){if(!Ke.tagName&&Me.sol()&&(Ke.indented=Me.indentation()),Me.eatSpace())return null;he=null;var ze=Ke.tokenize(Me,Ke);return(ze||he)&&ze!="comment"&&(Je=null,Ke.state=Ke.state(he||ze,Me,Ke),Je&&(ze=Je=="error"?ze+" error":Je)),ze},indent:function(Me,Ke,ze){var se=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+Be;if(se&&se.noIndent)return E.Pass;if(Me.tokenize!=dt&&Me.tokenize!=Pe)return ze?ze.match(/^(\s*)/)[0].length:0;if(Me.tagName)return De.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Be*(De.multilineTagIndentFactor||1);if(De.alignCDATA&&/$/,blockCommentStart:"",configuration:De.htmlMode?"html":"xml",helperType:De.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==et&&(Me.state=kt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var Ke=[],ze=Me.context;ze;ze=ze.prev)ze.tagName&&Ke.push(ze.tagName);return Ke.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(on,$t,ne){"use strict";ne.d($t,{hP:function(){return st}});var E=function(ae,te){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(ee[ue]=oe[ue])})(ae,te)};function Qe(ae,te){function ee(){this.constructor=ae}E(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function xe(ae,te,ee,oe){return new(ee||(ee=Promise))(function(ue,re){function ve(Oe){try{ft(oe.next(Oe))}catch(Ye){re(Ye)}}function we(Oe){try{ft(oe.throw(Oe))}catch(Ye){re(Ye)}}function ft(Oe){var Ye;Oe.done?ue(Oe.value):(Ye=Oe.value,Ye instanceof ee?Ye:new ee(function(mt){mt(Ye)})).then(ve,we)}ft((oe=oe.apply(ae,te||[])).next())})}function tt(ae,te){var ee,oe,ue,re,ve={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return re={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function we(ft){return function(Oe){return function(Ye){if(ee)throw new TypeError("Generator is already executing.");for(;ve;)try{if(ee=1,oe&&(ue=2&Ye[0]?oe.return:Ye[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ye[1])).done)return ue;switch(oe=0,ue&&(Ye=[2&Ye[0],ue.value]),Ye[0]){case 0:case 1:ue=Ye;break;case 4:return ve.label++,{value:Ye[1],done:!1};case 5:ve.label++,oe=Ye[1],Ye=[0];continue;case 7:Ye=ve.ops.pop(),ve.trys.pop();continue;default:if(ue=ve.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ye[0]!==6&&Ye[0]!==2)){ve=0;continue}if(Ye[0]===3&&(!ue||Ye[1]>ue[0]&&Ye[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 ve=document.createElement("div");ve.className=""+ee.toolbarButtonStyleClass.name,ve.setAttribute("data-type-name",re.typeName),ve.innerHTML=re.icon,ve.addEventListener("click",function(){ee.markerToolbarButtonClicked(ve,re)}),ee.buttons.push(ve),ee.markerButtons.push(ve)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'',"render"),this.addActionButton(ue,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),Ze=function(){function ae(te,ee,oe,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Pe("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 Pe("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Pe("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Pe("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Pe("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 Pe("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Pe("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 Pe("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Pe("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Je("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Je("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,ue=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var ve;re.uiStyleSettings=ue.uiStyleSettings;var we=document.createElement("div");we.className=ue.toolboxButtonStyleClass.name+" "+((ve=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ve!==void 0?ve:ue.toolboxButtonStyleColorsClass.name),we.innerHTML=re.icon,we.title=re.title,we.addEventListener("click",function(){ue.panelButtonClick(re)}),ue.panelButtons.push(we),ue.buttonRow.appendChild(we)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var ue=te.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,ve){var we,ft;re.className=ee.toolboxButtonStyleClass.name+" "+(ve===oe?""+((we=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&we!==void 0?we:ee.toolboxActiveButtonStyleColorsClass.name):""+((ft=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Ce=function(ae,te){this.title=ae,this.icon=te},Te=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'')||this;return ve.colors=[],ve.addTransparent=!1,ve.colorBoxes=[],ve.colors=oe,ve.currentColor=ue,ve.setCurrentColor=ve.setCurrentColor.bind(ve),ve.getColorBox=ve.getColorBox.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var re=ee.getColorBox(ue);oe.appendChild(re),ee.colorBoxes.push(re)}),oe},te.prototype.getColorBox=function(ee){var oe=this,ue=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-ue,ve=document.createElement("div");ve.style.display="inline-block",ve.style.boxSizing="content-box",ve.style.width=re-2+"px",ve.style.height=re-2+"px",ve.style.padding="1px",ve.style.marginRight="2px",ve.style.marginBottom="2px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderRadius=(re+2)/2+"px",ve.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){oe.setCurrentColor(ee,ve)});var we=document.createElement("div");return we.style.display="inline-block",we.style.width=re-2+"px",we.style.height=re-2+"px",we.style.backgroundColor=ee,we.style.borderRadius=re/2+"px",ee==="transparent"&&(we.style.fill=this.uiStyleSettings.toolboxAccentColor,we.innerHTML=` `),ve.appendChild(we),ve},te.prototype.setCurrentColor=function(ee,oe){var ue=this;this.currentColor=ee,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Ce),_e=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}(),rt=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}(),gt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Be.createGroup(),this.visual.appendChild(Be.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Be.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}(),Pt=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}(),ht=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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(Be.createTransform()),re.setupControlBox(),re}return Qe(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Be.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(ee);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var 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 ve=this.container.transform.baseVal.getItem(0);ve.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ve,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,ue=this.manipulationStartWidth,re=this.manipulationStartTop,ve=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+ee.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+ee.y-this.manipulationStartY}ue>=0?(this.left=oe,this.width=ue):(this.left=oe+ue,this.width=-ue),ve>=0?(this.top=re,this.height=ve):(this.top=re+ve,this.height=-ve),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),ue=Be.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var ue=Be.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Be.createGroup();var ee=Be.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Be.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=Be.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 rt,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 gt;return ee.visual.transform.baseVal.appendItem(Be.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,ue=oe,re=(this.width+this.CB_DISTANCE)/2-ee/2,ve=(this.height+this.CB_DISTANCE)/2-ee/2,we=this.height+this.CB_DISTANCE-ee/2,ft=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ue),this.positionGrip(this.controlGrips.topCenter.visual,re,ue),this.positionGrip(this.controlGrips.topRight.visual,ft,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ve),this.positionGrip(this.controlGrips.centerRight.visual,ft,ve),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,we),this.positionGrip(this.controlGrips.bottomCenter.visual,re,we),this.positionGrip(this.controlGrips.bottomRight.visual,ft,we),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,ue){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,ue),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:Pt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Pt.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(Pt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Pt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var ue=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:ue.x*ee,y:ue.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(_e),it=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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 Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Be.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),Be.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&&Be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Be.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Be.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}(ht),nt=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'')||this;return ve.widths=[],ve.widthBoxes=[],ve.widths=oe,ve.currentWidth=ue,ve.setCurrentWidth=ve.setCurrentWidth.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ue){var 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=ue===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentWidth(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.innerText=ue.toString(),ve.style.marginRight="5px",re.appendChild(ve);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.display="flex",we.style.alignItems="center";var ft=document.createElement("hr");ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop=ue+"px solid "+ee.uiStyleSettings.toolboxColor,ft.style.flexGrow="2",we.appendChild(ft),re.appendChild(we),ee.widthBoxes.push(re)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var ue=this;this.currentWidth=ee,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Ce),Fe=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'')||this;return ve.styles=[],ve.styleBoxes=[],ve.styles=oe,ve.currentStyle=ue,ve.setCurrentStyle=ve.setCurrentStyle.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ue){var 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=ue===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentStyle(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.overflow="hidden";var we=` `;ve.innerHTML=we,re.appendChild(ve),ee.styleBoxes.push(re)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var ue=this;this.currentStyle=ee,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Ce),kt=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Te("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='',te}(it),lt=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"},et=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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 Qe(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Be.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 gt;return ee.visual.transform.baseVal.appendItem(Be.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,ue){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,ue),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}(_e),St=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Te("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.selectorLine=Be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Be.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()),Be.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Be.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Be.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}(et),Me=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=oe,ve.currentFont=ue,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ue){var 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=ue===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentFont(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=ue,ve.style.overflow="hidden";var we=document.createElement("div");we.style.whiteSpace="nowrap",we.style.overflow="hidden",we.style.textOverflow="ellipsis",we.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(we),re.appendChild(ve),ee.fontBoxes.push(re)}),oe},te.prototype.setCurrentFont=function(ee,oe){var ue=this;this.currentFont=ee,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Ce),Ke=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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=ue.defaultColor,re.fontFamily=ue.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 Te("Color",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ue){ue===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.bgRectangle=Be.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Be.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Be.createTransform()),this.textElement.transform.baseVal.appendItem(Be.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(Be.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/ee.width,re=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(ue,re)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),ue=0,re=0;return oe.width>0&&oe.height>0&&(ue=(this.width-oe.width*ee)/2,re=this.height/2-oe.height*ee/2),{x:ue,y:re}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),ue=this.getTextPosition(oe);ue.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var ue=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(ue)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),re={x:ue.width*ee,y:ue.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&&Be.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&&Be.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}(ht),ze=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=ue.defaultColor,re.lineWidth=ue.defaultStrokeWidth,re.pixelRatio=ue.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 Te("Color",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.drawingImage=Be.createImage(),this.visual.appendChild(this.drawingImage);var ee=Be.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),Be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=oe[0],re=oe[1],ve=oe[2],we=oe[3],ft=!1,Oe=0;Oe0&&(ft=!0,Oewe&&(we=Oe),Ye>ve&&(ve=Ye));if(ft){this.left=ue/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(ve-ue)/this.pixelRatio,this.height=(we-re)/this.pixelRatio;var mt=document.createElement("canvas");mt.width=ve-ue,mt.height=we-re,mt.getContext("2d").putImageData(this.canvasContext.getImageData(ue,re,ve-ue,we-re),0,0),this.drawingImgUrl=mt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Be.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}(ht),se=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,ue||'')||this;return re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ue=function(we){var ft="both";switch(we){case 0:ft="both";break;case 1:ft="start";break;case 2:ft="end";break;case 3:ft="none"}var Oe=document.createElement("div");if(Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=ft===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){ee.setCurrentType(ft,Oe)}),oe.appendChild(Oe),ft==="both"||ft==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=` `,Ye.style.marginLeft="5px",Oe.appendChild(Ye)}var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.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",mt.appendChild(Bt),Oe.appendChild(mt),ft==="both"||ft==="end"){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.innerHTML=` `,Et.style.marginRight="5px",Oe.appendChild(Et)}re.typeBoxes.push(Oe)},re=this,ve=0;ve<4;ve++)ue(ve);return oe},te.prototype.setCurrentType=function(ee,oe){var ue=this;this.currentType=ee,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Ce),qe=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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 se("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var ue=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return ee-ue/2+","+(oe+re/2)+" "+ee+","+(oe-re/2)+" "+(ee+ue/2)+","+(oe+re/2)},te.prototype.createTips=function(){this.arrow1=Be.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Be.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Be.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Be.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",Be.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Be.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='',te}(St),Le=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.fillColor=ue.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Te("Color",ue.defaultColorSet,ue.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='',te}(it),Ae=function(ae){function te(ee,oe,ue,re){var ve=ae.call(this,ee,re||'')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=oe,ve.currentOpacity=ue,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return Qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(ue){var 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=ue===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentOpacity(ue,re)}),oe.appendChild(re);var ve=document.createElement("div");ve.innerText=100*ue+"%",re.appendChild(ve),ee.opacityBoxes.push(re)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var ue=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Ce),ct=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=ue.defaultHighlightColor,re.strokeWidth=0,re.opacity=ue.defaultHighlightOpacity,re.fillPanel=new Te("Color",ue.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new Ae("Opacity",ue.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Qe(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Be.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}(Le),ye='',ce='',Ue=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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=ue.defaultStrokeColor,re.bgColor=ue.defaultFillColor,re.fontFamily=ue.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 Te("Text color",ue.defaultColorSet,re.color,ye),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Te("Fill color",ue.defaultColorSet,re.bgColor,ce),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new gt,re.tipGrip.visual.transform.baseVal.appendItem(Be.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Be.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Be.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&&(Be.setAttributes(this.bgRectangle,[["fill",ee]]),Be.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),ue=this.height/5;ee&&(this.tipPosition={x:oe+ue/2,y:this.height+20});var 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 ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='',te}(St),ge=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||this;return re.strokePanel.colors=ue.defaultColorSet,re.fillColor="transparent",re}return Qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='',te}(It),He=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}(),Ge=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Te("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.selectorCurve=Be.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Be.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()),Be.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Be.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Be.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Be.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Be.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}(et),Tt=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,oe,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.fillColor=ue.defaultFillColor,re.textColor=ue.defaultStrokeColor,re.fontFamily=ue.defaultFontFamily,re.fontSize=ue.defaultCaptionFontSize,re.captionText=ue.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 Te("Line color",Ee(ue.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Te("Fill color",Ee(ue.defaultColorSet,["transparent"]),re.fillColor,ce),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new nt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Me("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Te("Text color",ue.defaultColorSet,re.textColor,ye),re.textColorPanel.onColorChanged=re.setTextColor,re}return Qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Be.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Be.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Be.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=Be.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),Be.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')"]]),Be.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&&Be.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&&Be.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),Be.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&&Be.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Be.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Be.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Be.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}(ht),wt=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}(),Lt=function(ae){function te(ee,oe,ue){var re=ae.call(this,ee,!1)||this;return re.dataUrl=oe,re.state=ue,re}return Qe(te,ae),te}(wt),$e=function(ae){function te(ee,oe,ue){ue===void 0&&(ue=!1);var re=ae.call(this,ee,ue)||this;return re.marker=oe,re}return Qe(te,ae),te}(wt),At=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 lt,this._isOpen=!1,this.undoRedoManager=new He,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 At,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(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,ze,qe,Ke,ge,It,ct,Ue,bt,Le,St,Ge,Tt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[kt,ze,qe,Ke,It,ct,Ue]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[kt,ze,qe,Ke,ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var ue=ee.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});ue!==void 0&&ee._availableMarkerTypes.push(ue)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),De.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 wt(te))})},ae.prototype.render=function(){return xe(this,void 0,void 0,function(){var te;return tt(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new We).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(ue){var re=new wt(ee,!0);ue(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(ue){return ue(new wt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new dt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var re=new $e(te,te._currentMarker,!0);ue(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(ue){return ue(new $e(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var we=new $e(te,void 0,!0);ve(we),we.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(ve){var we=ue.markers[ve];ue.setCurrentMarker(ue.markers[ve]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(ft){return ft(new $e(te,we))})},ue=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 ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ue1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){De.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 wt(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 wt(te))}))},ae.instanceCounter=0,ae}()},6551:function(on,$t,ne){"use strict";ne.d($t,{ZP:function(){return De}});var E=ne(72190),Qe=ne(59301),xe=ne(47273),tt=0,Ee=(0,xe.Z)();function Be(){var We;return Ee?(We=tt,tt+=1):We="TEST_OR_SSR",We}function De(We){var Ie=Qe.useState(),he=(0,E.Z)(Ie,2),Je=he[0],Pe=he[1];return Qe.useEffect(function(){Pe("rc_select_".concat(Be()))},[]),We||Je}},37463:function(on,$t,ne){"use strict";ne.d($t,{Ac:function(){return Dt},Xo:function(){return Vt},Wx:function(){return pt},ZP:function(){return mn},lk:function(){return Pt}});var E=ne(60499),Qe=ne(77654),xe=ne(18642),tt=ne(85899),Ee=ne(72190),Be=ne(42244),De=ne(43749),We=ne(18929),Ie=ne(48736),he=ne(59301),Je=ne(92310),Pe=ne.n(Je),dt=ne(34280),Ze=ne(49658),Ce=ne(8654),Te=function(ut){var ke=ut.className,be=ut.customizeIcon,fe=ut.customizeIconProps,pe=ut.children,Ve=ut.onMouseDown,Xt=ut.onClick,rn=typeof be=="function"?be(fe):be;return he.createElement("span",{className:ke,onMouseDown:function(Ct){Ct.preventDefault(),Ve==null||Ve(Ct)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Xt,"aria-hidden":!0},rn!==void 0?rn:he.createElement("span",{className:Pe()(ke.split(/\s+/).map(function(Yt){return"".concat(Yt,"-icon")}))},pe))},_e=Te,rt=function(ut,ke,be,fe,pe){var Ve=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Xt=arguments.length>6?arguments[6]:void 0,rn=arguments.length>7?arguments[7]:void 0,Yt=he.useMemo(function(){if((0,De.Z)(fe)==="object")return fe.clearIcon;if(pe)return pe},[fe,pe]),Ct=he.useMemo(function(){return!!(!Ve&&fe&&(be.length||Xt)&&!(rn==="combobox"&&Xt===""))},[fe,Ve,be.length,Xt,rn]);return{allowClear:Ct,clearIcon:he.createElement(_e,{className:"".concat(ut,"-clear"),onMouseDown:ke,customizeIcon:Yt},"\xD7")}},gt=he.createContext(null);function Pt(){return he.useContext(gt)}function ht(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ut=he.useState(!1),ke=(0,Ee.Z)(ut,2),be=ke[0],fe=ke[1],pe=he.useRef(null),Ve=function(){window.clearTimeout(pe.current)};he.useEffect(function(){return Ve},[]);var Xt=function(Yt,Ct){Ve(),pe.current=window.setTimeout(function(){fe(Yt),Ct&&Ct()},Xe)};return[be,Xt,Ve]}function it(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ut=he.useRef(null),ke=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(ke.current)}},[]);function be(fe){(fe||ut.current===null)&&(ut.current=fe),window.clearTimeout(ke.current),ke.current=window.setTimeout(function(){ut.current=null},Xe)}return[function(){return ut.current},be]}function nt(Xe,ut,ke,be){var fe=he.useRef(null);fe.current={open:ut,triggerOpen:ke,customizedTrigger:be},he.useEffect(function(){function pe(Ve){var Xt;if(!((Xt=fe.current)!==null&&Xt!==void 0&&Xt.customizedTrigger)){var rn=Ve.target;rn.shadowRoot&&Ve.composed&&(rn=Ve.composedPath()[0]||rn),fe.current.open&&Xe().filter(function(Yt){return Yt}).every(function(Yt){return!Yt.contains(rn)&&Yt!==rn})&&fe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",pe),function(){return window.removeEventListener("mousedown",pe)}},[])}var Fe=ne(10228);function kt(Xe){return Xe&&![Fe.Z.ESC,Fe.Z.SHIFT,Fe.Z.BACKSPACE,Fe.Z.TAB,Fe.Z.WIN_KEY,Fe.Z.ALT,Fe.Z.META,Fe.Z.WIN_KEY_RIGHT,Fe.Z.CTRL,Fe.Z.SEMICOLON,Fe.Z.EQUALS,Fe.Z.CAPS_LOCK,Fe.Z.CONTEXT_MENU,Fe.Z.F1,Fe.Z.F2,Fe.Z.F3,Fe.Z.F4,Fe.Z.F5,Fe.Z.F6,Fe.Z.F7,Fe.Z.F8,Fe.Z.F9,Fe.Z.F10,Fe.Z.F11,Fe.Z.F12].includes(Xe)}var lt=ne(26112),et=ne(83836);function St(Xe,ut,ke){var be=(0,tt.Z)((0,tt.Z)({},Xe),ke?ut:{});return Object.keys(ut).forEach(function(fe){var pe=ut[fe];typeof pe=="function"&&(be[fe]=function(){for(var Ve,Xt=arguments.length,rn=new Array(Xt),Yt=0;Ytqn&&(jn="".concat(Wn.slice(0,qn),"..."))}var vr=function(Br){Br&&Br.stopPropagation(),or(dn)};return typeof Rn=="function"?_r(vn,jn,Gn,yn,vr):Or(dn,jn,Gn,yn,vr)},ur=function(dn){if(!fe.length)return null;var Gn=typeof Ln=="function"?Ln(dn):Ln;return typeof Rn=="function"?_r(void 0,Gn,!1,!1,void 0,!0):Or({title:Gn},Gn,!1)},pn=he.createElement("div",{className:"".concat(fr,"-search"),style:{width:dr},onFocus:function(){pr(!0)},onBlur:function(){pr(!1)}},he.createElement(qe,{ref:rn,open:pe,prefixCls:be,id:ke,inputElement:null,disabled:Ct,autoFocus:Jt,autoComplete:gn,editable:br,activeDescendantId:On,value:wr,onKeyDown:Un,onMouseDown:Kn,onChange:rr,onPaste:ir,onCompositionStart:Tn,onCompositionEnd:mr,onBlur:Vn,tabIndex:Sn,attrs:(0,lt.Z)(ut,!0)}),he.createElement("span",{ref:Bn,className:"".concat(fr,"-search-mirror"),"aria-hidden":!0},wr,"\xA0")),In=he.createElement(et.Z,{prefixCls:"".concat(fr,"-overflow"),data:fe,renderItem:xr,renderRest:ur,suffix:pn,itemKey:ge,maxCount:Xn});return he.createElement("span",{className:"".concat(fr,"-wrap")},In,!fe.length&&!wr&&he.createElement("span",{className:"".concat(fr,"-placeholder")},Yt))},Tt=Ge,wt=function(ut){var ke=ut.inputElement,be=ut.prefixCls,fe=ut.id,pe=ut.inputRef,Ve=ut.disabled,Xt=ut.autoFocus,rn=ut.autoComplete,Yt=ut.activeDescendantId,Ct=ut.mode,Re=ut.open,xt=ut.values,Jt=ut.placeholder,gn=ut.tabIndex,On=ut.showSearch,Sn=ut.searchValue,Fn=ut.activeValue,Xn=ut.maxLength,qn=ut.onInputKeyDown,Hn=ut.onInputMouseDown,Ln=ut.onInputChange,Rn=ut.onInputPaste,Zn=ut.onInputCompositionStart,or=ut.onInputCompositionEnd,rr=ut.onInputBlur,ir=ut.title,Un=he.useState(!1),Kn=(0,Ee.Z)(Un,2),Tn=Kn[0],mr=Kn[1],Vn=Ct==="combobox",Bn=Vn||On,Yn=xt[0],Jn=Sn||"";Vn&&Fn&&!Tn&&(Jn=Fn),he.useEffect(function(){Vn&&mr(!1)},[Vn,Fn]);var dr=Ct!=="combobox"&&!Re&&!On?!1:!!Jn,sr=ir===void 0?It(Yn):ir,_n=he.useMemo(function(){return Yn?null:he.createElement("span",{className:"".concat(be,"-selection-placeholder"),style:dr?{visibility:"hidden"}:void 0},Jt)},[Yn,dr,Jt,be]);return he.createElement("span",{className:"".concat(be,"-selection-wrap")},he.createElement("span",{className:"".concat(be,"-selection-search")},he.createElement(qe,{ref:pe,prefixCls:be,id:fe,open:Re,inputElement:ke,disabled:Ve,autoFocus:Xt,autoComplete:rn,editable:Bn,activeDescendantId:Yt,value:Jn,onKeyDown:qn,onMouseDown:Hn,onChange:function(ar){mr(!0),Ln(ar)},onPaste:Rn,onCompositionStart:Zn,onCompositionEnd:or,onBlur:rr,tabIndex:gn,attrs:(0,lt.Z)(ut,!0),maxLength:Vn?Xn:void 0})),!Vn&&Yn?he.createElement("span",{className:"".concat(be,"-selection-item"),title:sr,style:dr?{visibility:"hidden"}:void 0},Yn.label):null,_n)},Lt=wt,$e=function(ut,ke){var be=(0,he.useRef)(null),fe=(0,he.useRef)(!1),pe=ut.prefixCls,Ve=ut.open,Xt=ut.mode,rn=ut.showSearch,Yt=ut.tokenWithEnter,Ct=ut.disabled,Re=ut.prefix,xt=ut.autoClearSearchValue,Jt=ut.onSearch,gn=ut.onSearchSubmit,On=ut.onToggleOpen,Sn=ut.onInputKeyDown,Fn=ut.onInputBlur,Xn=ut.domRef;he.useImperativeHandle(ke,function(){return{focus:function(sr){be.current.focus(sr)},blur:function(){be.current.blur()}}});var qn=it(0),Hn=(0,Ee.Z)(qn,2),Ln=Hn[0],Rn=Hn[1],Zn=function(sr){var _n=sr.which,hr=be.current instanceof HTMLTextAreaElement;!hr&&Ve&&(_n===Fe.Z.UP||_n===Fe.Z.DOWN)&&sr.preventDefault(),Sn&&Sn(sr),_n===Fe.Z.ENTER&&Xt==="tags"&&!fe.current&&!Ve&&(gn==null||gn(sr.target.value)),!(hr&&!Ve&&~[Fe.Z.UP,Fe.Z.DOWN,Fe.Z.LEFT,Fe.Z.RIGHT].indexOf(_n))&&kt(_n)&&On(!0)},or=function(){Rn(!0)},rr=(0,he.useRef)(null),ir=function(sr){Jt(sr,!0,fe.current)!==!1&&On(!0)},Un=function(){fe.current=!0},Kn=function(sr){fe.current=!1,Xt!=="combobox"&&ir(sr.target.value)},Tn=function(sr){var _n=sr.target.value;if(Yt&&rr.current&&/[\r\n]/.test(rr.current)){var hr=rr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_n=_n.replace(hr,rr.current)}rr.current=null,ir(_n)},mr=function(sr){var _n=sr.clipboardData,hr=_n==null?void 0:_n.getData("text");rr.current=hr||""},Vn=function(sr){var _n=sr.target;if(_n!==be.current){var hr=document.body.style.msTouchAction!==void 0;hr?setTimeout(function(){be.current.focus()}):be.current.focus()}},Bn=function(sr){var _n=Ln();sr.target!==be.current&&!_n&&!(Xt==="combobox"&&Ct)&&sr.preventDefault(),(Xt!=="combobox"&&(!rn||!_n)||!Ve)&&(Ve&&xt!==!1&&Jt("",!0,!1),On())},Yn={inputRef:be,onInputKeyDown:Zn,onInputMouseDown:or,onInputChange:Tn,onInputPaste:mr,onInputCompositionStart:Un,onInputCompositionEnd:Kn,onInputBlur:Fn},Jn=Xt==="multiple"||Xt==="tags"?he.createElement(Tt,(0,E.Z)({},ut,Yn)):he.createElement(Lt,(0,E.Z)({},ut,Yn));return he.createElement("div",{ref:Xn,className:"".concat(pe,"-selector"),onClick:Vn,onMouseDown:Bn},Re&&he.createElement("div",{className:"".concat(pe,"-prefix")},Re),Jn)},At=he.forwardRef($e),st=At,ae=ne(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(ut){var ke=ut===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ke,adjustY:1},htmlRegion:"scroll"}}},oe=function(ut,ke){var be=ut.prefixCls,fe=ut.disabled,pe=ut.visible,Ve=ut.children,Xt=ut.popupElement,rn=ut.animation,Yt=ut.transitionName,Ct=ut.dropdownStyle,Re=ut.dropdownClassName,xt=ut.direction,Jt=xt===void 0?"ltr":xt,gn=ut.placement,On=ut.builtinPlacements,Sn=ut.dropdownMatchSelectWidth,Fn=ut.dropdownRender,Xn=ut.dropdownAlign,qn=ut.getPopupContainer,Hn=ut.empty,Ln=ut.getTriggerDOMNode,Rn=ut.onPopupVisibleChange,Zn=ut.onPopupMouseEnter,or=(0,Be.Z)(ut,te),rr="".concat(be,"-dropdown"),ir=Xt;Fn&&(ir=Fn(Xt));var Un=he.useMemo(function(){return On||ee(Sn)},[On,Sn]),Kn=rn?"".concat(rr,"-").concat(rn):Yt,Tn=typeof Sn=="number",mr=he.useMemo(function(){return Tn?null:Sn===!1?"minWidth":"width"},[Sn,Tn]),Vn=Ct;Tn&&(Vn=(0,tt.Z)((0,tt.Z)({},Vn),{},{width:Sn}));var Bn=he.useRef(null);return he.useImperativeHandle(ke,function(){return{getPopupElement:function(){var Jn;return(Jn=Bn.current)===null||Jn===void 0?void 0:Jn.popupElement}}}),he.createElement(ae.Z,(0,E.Z)({},or,{showAction:Rn?["click"]:[],hideAction:Rn?["click"]:[],popupPlacement:gn||(Jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Un,prefixCls:rr,popupTransitionName:Kn,popup:he.createElement("div",{onMouseEnter:Zn},ir),ref:Bn,stretch:mr,popupAlign:Xn,popupVisible:pe,getPopupContainer:qn,popupClassName:Pe()(Re,(0,xe.Z)({},"".concat(rr,"-empty"),Hn)),popupStyle:Vn,getTriggerDOMNode:Ln,onPopupVisibleChange:Rn}),Ve)},ue=he.forwardRef(oe),re=ue,ve=ne(48745);function we(Xe,ut){var ke=Xe.key,be;return"value"in Xe&&(be=Xe.value),ke!=null?ke:be!==void 0?be:"rc-index-key-".concat(ut)}function ft(Xe){return typeof Xe!="undefined"&&!Number.isNaN(Xe)}function Oe(Xe,ut){var ke=Xe||{},be=ke.label,fe=ke.value,pe=ke.options,Ve=ke.groupLabel,Xt=be||(ut?"children":"label");return{label:Xt,value:fe||"value",options:pe||"options",groupLabel:Ve||Xt}}function Ye(Xe){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=ut.fieldNames,be=ut.childrenAsData,fe=[],pe=Oe(ke,!1),Ve=pe.label,Xt=pe.value,rn=pe.options,Yt=pe.groupLabel;function Ct(Re,xt){Array.isArray(Re)&&Re.forEach(function(Jt){if(xt||!(rn in Jt)){var gn=Jt[Xt];fe.push({key:we(Jt,fe.length),groupOption:xt,data:Jt,label:Jt[Ve],value:gn})}else{var On=Jt[Yt];On===void 0&&be&&(On=Jt.label),fe.push({key:we(Jt,fe.length),group:!0,data:Jt,label:On}),Ct(Jt[rn],!0)}})}return Ct(Xe,!1),fe}function mt(Xe){var ut=(0,tt.Z)({},Xe);return"props"in ut||Object.defineProperty(ut,"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`."),ut}}),ut}var Bt=function(ut,ke,be){if(!ke||!ke.length)return null;var fe=!1,pe=function Xt(rn,Yt){var Ct=(0,ve.Z)(Yt),Re=Ct[0],xt=Ct.slice(1);if(!Re)return[rn];var Jt=rn.split(Re);return fe=fe||Jt.length>1,Jt.reduce(function(gn,On){return[].concat((0,Qe.Z)(gn),(0,Qe.Z)(Xt(On,xt)))},[]).filter(Boolean)},Ve=pe(ut,ke);return fe?typeof be!="undefined"?Ve.slice(0,be):Ve:null},Et=he.createContext(null),Ut=Et;function Wt(Xe){var ut=Xe.visible,ke=Xe.values;if(!ut)return null;var be=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ke.slice(0,be).map(function(fe){var pe=fe.label,Ve=fe.value;return["number","string"].includes((0,De.Z)(pe))?pe:Ve}).join(", ")),ke.length>be?", ...":null)}var Ht=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],qt=function(ut){return ut==="tags"||ut==="multiple"},sn=he.forwardRef(function(Xe,ut){var ke,be=Xe.id,fe=Xe.prefixCls,pe=Xe.className,Ve=Xe.showSearch,Xt=Xe.tagRender,rn=Xe.direction,Yt=Xe.omitDomProps,Ct=Xe.displayValues,Re=Xe.onDisplayValuesChange,xt=Xe.emptyOptions,Jt=Xe.notFoundContent,gn=Jt===void 0?"Not Found":Jt,On=Xe.onClear,Sn=Xe.mode,Fn=Xe.disabled,Xn=Xe.loading,qn=Xe.getInputElement,Hn=Xe.getRawInputElement,Ln=Xe.open,Rn=Xe.defaultOpen,Zn=Xe.onDropdownVisibleChange,or=Xe.activeValue,rr=Xe.onActiveValueChange,ir=Xe.activeDescendantId,Un=Xe.searchValue,Kn=Xe.autoClearSearchValue,Tn=Xe.onSearch,mr=Xe.onSearchSplit,Vn=Xe.tokenSeparators,Bn=Xe.allowClear,Yn=Xe.prefix,Jn=Xe.suffixIcon,dr=Xe.clearIcon,sr=Xe.OptionList,_n=Xe.animation,hr=Xe.transitionName,ar=Xe.dropdownStyle,pr=Xe.dropdownClassName,fr=Xe.dropdownMatchSelectWidth,wr=Xe.dropdownRender,br=Xe.dropdownAlign,Or=Xe.placement,_r=Xe.builtinPlacements,xr=Xe.getPopupContainer,ur=Xe.showAction,pn=ur===void 0?[]:ur,In=Xe.onFocus,wn=Xe.onBlur,dn=Xe.onKeyUp,Gn=Xe.onKeyDown,nr=Xe.onMouseDown,vn=(0,Be.Z)(Xe,Ht),yn=qt(Sn),jn=(Ve!==void 0?Ve:yn)||Sn==="combobox",Wn=(0,tt.Z)({},vn);ln.forEach(function(Rr){delete Wn[Rr]}),Yt==null||Yt.forEach(function(Rr){delete Wn[Rr]});var vr=he.useState(!1),kr=(0,Ee.Z)(vr,2),Br=kr[0],Tr=kr[1];he.useEffect(function(){Tr((0,Ze.Z)())},[]);var Ar=he.useRef(null),Nr=he.useRef(null),zr=he.useRef(null),Lr=he.useRef(null),jr=he.useRef(null),Jr=he.useRef(!1),Zr=ht(),zi=(0,Ee.Z)(Zr,3),ui=zi[0],ri=zi[1],yi=zi[2];he.useImperativeHandle(ut,function(){var Rr,Pr;return{focus:(Rr=Lr.current)===null||Rr===void 0?void 0:Rr.focus,blur:(Pr=Lr.current)===null||Pr===void 0?void 0:Pr.blur,scrollTo:function(xi){var ti;return(ti=jr.current)===null||ti===void 0?void 0:ti.scrollTo(xi)},nativeElement:Ar.current||Nr.current}});var Fr=he.useMemo(function(){var Rr;if(Sn!=="combobox")return Un;var Pr=(Rr=Ct[0])===null||Rr===void 0?void 0:Rr.value;return typeof Pr=="string"||typeof Pr=="number"?String(Pr):""},[Un,Sn,Ct]),Ui=Sn==="combobox"&&typeof qn=="function"&&qn()||null,qr=typeof Hn=="function"&&Hn(),Ti=(0,Ce.x1)(Nr,qr==null||(ke=qr.props)===null||ke===void 0?void 0:ke.ref),Ni=he.useState(!1),Wi=(0,Ee.Z)(Ni,2),bi=Wi[0],Ii=Wi[1];(0,dt.Z)(function(){Ii(!0)},[]);var Vr=(0,We.Z)(!1,{defaultValue:Rn,value:Ln}),Mr=(0,Ee.Z)(Vr,2),ai=Mr[0],pi=Mr[1],Xr=bi?ai:!1,to=!gn&&xt;(Fn||to&&Xr&&Sn==="combobox")&&(Xr=!1);var Ki=to?!1:Xr,yr=he.useCallback(function(Rr){var Pr=Rr!==void 0?Rr:!Xr;Fn||(pi(Pr),Xr!==Pr&&(Zn==null||Zn(Pr)))},[Fn,Xr,pi,Zn]),Ir=he.useMemo(function(){return(Vn||[]).some(function(Rr){return[` `,`\r `].includes(Rr)})},[Vn]),Sr=he.useContext(Ut)||{},Er=Sr.maxCount,$r=Sr.rawValues,Gr=function(Pr,vi,xi){if(!(yn&&ft(Er)&&($r==null?void 0:$r.size)>=Er)){var ti=!0,li=Pr;rr==null||rr(null);var Ji=Bt(Pr,Vn,ft(Er)?Er-$r.size:void 0),Gi=xi?null:Ji;return Sn!=="combobox"&&Gi&&(li="",mr==null||mr(Gi),yr(!1),ti=!1),Tn&&Fr!==li&&Tn(li,{source:vi?"typing":"effect"}),ti}},Xi=function(Pr){!Pr||!Pr.trim()||Tn(Pr,{source:"submit"})};he.useEffect(function(){!Xr&&!yn&&Sn!=="combobox"&&Gr("",!1,!1)},[Xr]),he.useEffect(function(){ai&&Fn&&pi(!1),Fn&&!Jr.current&&ri(!1)},[Fn]);var wi=it(),mi=(0,Ee.Z)(wi,2),ei=mi[0],Zi=mi[1],no=he.useRef(!1),Li=function(Pr){var vi=ei(),xi=Pr.key,ti=xi==="Enter";if(ti&&(Sn!=="combobox"&&Pr.preventDefault(),Xr||yr(!0)),Zi(!!Fr),xi==="Backspace"&&!vi&&yn&&!Fr&&Ct.length){for(var li=(0,Qe.Z)(Ct),Ji=null,Gi=li.length-1;Gi>=0;Gi-=1){var lo=li[Gi];if(!lo.disabled){li.splice(Gi,1),Ji=lo;break}}Ji&&Re(li,{type:"remove",values:[Ji]})}for(var Fi=arguments.length,Ri=new Array(Fi>1?Fi-1:0),Qi=1;Qi1?vi-1:0),ti=1;ti1?Ji-1:0),lo=1;lo=gn},[Xt,gn,Hn==null?void 0:Hn.size]),Vn=function(pn){pn.preventDefault()},Bn=function(pn){var In;(In=Tn.current)===null||In===void 0||In.scrollTo(typeof pn=="number"?{index:pn}:pn)},Yn=he.useCallback(function(ur){return rn==="combobox"?!1:Hn.has(ur)},[rn,(0,Qe.Z)(Hn).toString(),Hn.size]),Jn=function(pn){for(var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,wn=Kn.length,dn=0;dn1&&arguments[1]!==void 0?arguments[1]:!1;hr(pn);var wn={source:In?"keyboard":"mouse"},dn=Kn[pn];if(!dn){Sn(null,-1,wn);return}Sn(dn.value,pn,wn)};(0,he.useEffect)(function(){ar(Fn!==!1?Jn(0):-1)},[Kn.length,Yt]);var pr=he.useCallback(function(ur){return rn==="combobox"?String(ur).toLowerCase()===Yt.toLowerCase():Hn.has(ur)},[rn,Yt,(0,Qe.Z)(Hn).toString(),Hn.size]);(0,he.useEffect)(function(){var ur=setTimeout(function(){if(!Xt&&Ve&&Hn.size===1){var In=Array.from(Hn)[0],wn=Kn.findIndex(function(dn){var Gn=dn.data;return Yt?String(Gn.value).startsWith(Yt):Gn.value===In});wn!==-1&&(ar(wn),Bn(wn))}});if(Ve){var pn;(pn=Tn.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(ur)}},[Ve,Yt]);var fr=function(pn){pn!==void 0&&Xn(pn,{selected:!Hn.has(pn)}),Xt||Ct(!1)};if(he.useImperativeHandle(ke,function(){return{onKeyDown:function(pn){var In=pn.which,wn=pn.ctrlKey;switch(In){case Fe.Z.N:case Fe.Z.P:case Fe.Z.UP:case Fe.Z.DOWN:{var dn=0;if(In===Fe.Z.UP?dn=-1:In===Fe.Z.DOWN?dn=1:ot()&&wn&&(In===Fe.Z.N?dn=1:In===Fe.Z.P&&(dn=-1)),dn!==0){var Gn=Jn(_n+dn,dn);Bn(Gn),ar(Gn,!0)}break}case Fe.Z.TAB:case Fe.Z.ENTER:{var nr,vn=Kn[_n];vn&&!(vn!=null&&(nr=vn.data)!==null&&nr!==void 0&&nr.disabled)&&!mr?fr(vn.value):fr(void 0),Ve&&pn.preventDefault();break}case Fe.Z.ESC:Ct(!1),Ve&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){Bn(pn)}}}),Kn.length===0)return he.createElement("div",{role:"listbox",id:"".concat(pe,"_list"),className:"".concat(Un,"-empty"),onMouseDown:Vn},Re);var wr=Object.keys(Ln).map(function(ur){return Ln[ur]}),br=function(pn){return pn.label};function Or(ur,pn){var In=ur.group;return{role:In?"presentation":"option",id:"".concat(pe,"_list_").concat(pn)}}var _r=function(pn){var In=Kn[pn];if(!In)return null;var wn=In.data||{},dn=wn.value,Gn=In.group,nr=(0,lt.Z)(wn,!0),vn=br(In);return In?he.createElement("div",(0,E.Z)({"aria-label":typeof vn=="string"&&!Gn?vn:null},nr,{key:pn},Or(In,pn),{"aria-selected":pr(dn)}),dn):null},xr={role:"listbox",id:"".concat(pe,"_list")};return he.createElement(he.Fragment,null,Rn&&he.createElement("div",(0,E.Z)({},xr,{style:{height:0,width:0,overflow:"hidden"}}),_r(_n-1),_r(_n),_r(_n+1)),he.createElement(Ne.Z,{itemKey:"key",ref:Tn,data:Kn,height:or,itemHeight:rr,fullHeight:!1,onMouseDown:Vn,onScroll:xt,virtual:Rn,direction:Zn,innerProps:Rn?null:xr},function(ur,pn){var In=ur.group,wn=ur.groupOption,dn=ur.data,Gn=ur.label,nr=ur.value,vn=dn.key;if(In){var yn,jn=(yn=dn.title)!==null&&yn!==void 0?yn:Mt(Gn)?Gn.toString():void 0;return he.createElement("div",{className:Pe()(Un,"".concat(Un,"-group"),dn.className),title:jn},Gn!==void 0?Gn:vn)}var Wn=dn.disabled,vr=dn.title,kr=dn.children,Br=dn.style,Tr=dn.className,Ar=(0,Be.Z)(dn,yt),Nr=(0,jt.Z)(Ar,wr),zr=Yn(nr),Lr=Wn||!zr&&mr,jr="".concat(Un,"-option"),Jr=Pe()(Un,jr,Tr,(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({},"".concat(jr,"-grouped"),wn),"".concat(jr,"-active"),_n===pn&&!Lr),"".concat(jr,"-disabled"),Lr),"".concat(jr,"-selected"),zr)),Zr=br(ur),zi=!qn||typeof qn=="function"||zr,ui=typeof Zr=="number"?Zr:Zr||nr,ri=Mt(ui)?ui.toString():void 0;return vr!==void 0&&(ri=vr),he.createElement("div",(0,E.Z)({},(0,lt.Z)(Nr),Rn?{}:Or(ur,pn),{"aria-selected":pr(nr),className:Jr,title:ri,onMouseMove:function(){_n===pn||Lr||ar(pn)},onClick:function(){Lr||fr(nr)},style:Br}),he.createElement("div",{className:"".concat(jr,"-content")},typeof ir=="function"?ir(ur,{index:pn}):ui),he.isValidElement(qn)||zr,zi&&he.createElement(_e,{className:"".concat(Un,"-option-state"),customizeIcon:qn,customizeIconProps:{value:nr,disabled:Lr,isSelected:zr}},zr?"\u2713":null))}))},cn=he.forwardRef(Kt),Dn=cn,kn=function(Xe,ut){var ke=he.useRef({values:new Map,options:new Map}),be=he.useMemo(function(){var pe=ke.current,Ve=pe.values,Xt=pe.options,rn=Xe.map(function(Re){if(Re.label===void 0){var xt;return(0,tt.Z)((0,tt.Z)({},Re),{},{label:(xt=Ve.get(Re.value))===null||xt===void 0?void 0:xt.label})}return Re}),Yt=new Map,Ct=new Map;return rn.forEach(function(Re){Yt.set(Re.value,Re),Ct.set(Re.value,ut.get(Re.value)||Xt.get(Re.value))}),ke.current.values=Yt,ke.current.options=Ct,rn},[Xe,ut]),fe=he.useCallback(function(pe){return ut.get(pe)||ke.current.options.get(pe)},[ut]);return[be,fe]};function un(Xe,ut){return Le(Xe).join("").toUpperCase().includes(ut)}var bn=function(Xe,ut,ke,be,fe){return he.useMemo(function(){if(!ke||be===!1)return Xe;var pe=ut.options,Ve=ut.label,Xt=ut.value,rn=[],Yt=typeof be=="function",Ct=ke.toUpperCase(),Re=Yt?be:function(Jt,gn){return fe?un(gn[fe],Ct):gn[pe]?un(gn[Ve!=="children"?Ve:"label"],Ct):un(gn[Xt],Ct)},xt=Yt?function(Jt){return mt(Jt)}:function(Jt){return Jt};return Xe.forEach(function(Jt){if(Jt[pe]){var gn=Re(ke,xt(Jt));if(gn)rn.push(Jt);else{var On=Jt[pe].filter(function(Sn){return Re(ke,xt(Sn))});On.length&&rn.push((0,tt.Z)((0,tt.Z)({},Jt),{},(0,xe.Z)({},pe,On)))}return}Re(ke,xt(Jt))&&rn.push(Jt)}),rn},[Xe,be,fe,ke,ut])},fn=ne(6551),Gt=ne(11592),Rt=["children","value"],_t=["children"];function Ot(Xe){var ut=Xe,ke=ut.key,be=ut.props,fe=be.children,pe=be.value,Ve=(0,Be.Z)(be,Rt);return(0,tt.Z)({key:ke,value:pe!==void 0?pe:ke,children:fe},Ve)}function an(Xe){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Gt.Z)(Xe).map(function(ke,be){if(!he.isValidElement(ke)||!ke.type)return null;var fe=ke,pe=fe.type.isSelectOptGroup,Ve=fe.key,Xt=fe.props,rn=Xt.children,Yt=(0,Be.Z)(Xt,_t);return ut||!pe?Ot(ke):(0,tt.Z)((0,tt.Z)({key:"__RC_SELECT_GRP__".concat(Ve===null?be:Ve,"__"),label:Ve},Yt),{},{options:an(rn)})}).filter(function(ke){return ke})}var nn=function(ut,ke,be,fe,pe){return he.useMemo(function(){var Ve=ut,Xt=!ut;Xt&&(Ve=an(ke));var rn=new Map,Yt=new Map,Ct=function(Jt,gn,On){On&&typeof On=="string"&&Jt.set(gn[On],gn)},Re=function xt(Jt){for(var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On1&&arguments[1]!==void 0?arguments[1]:!1,Ve=0;Ve0?yr(Er.options):Er.options}):Er})},zi=he.useMemo(function(){return Xn?Zr(Jr):Jr},[Jr,Xn,xr]),ui=he.useMemo(function(){return Ye(zi,{fieldNames:br,childrenAsData:fr})},[zi,br,fr]),ri=function(Ir){var Sr=Gn(Ir);if(jn(Sr),sr&&(Sr.length!==Br.length||Sr.some(function(Gr,Xi){var wi;return((wi=Br[Xi])===null||wi===void 0?void 0:wi.value)!==(Gr==null?void 0:Gr.value)}))){var Er=dr?Sr:Sr.map(function(Gr){return Gr.value}),$r=Sr.map(function(Gr){return mt(Tr(Gr.value))});sr(pr?Er:Er[0],pr?$r:$r[0])}},yi=he.useState(null),Fr=(0,Ee.Z)(yi,2),Ui=Fr[0],qr=Fr[1],Ti=he.useState(0),Ni=(0,Ee.Z)(Ti,2),Wi=Ni[0],bi=Ni[1],Ii=or!==void 0?or:be!=="combobox",Vr=he.useCallback(function(yr,Ir){var Sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Er=Sr.source,$r=Er===void 0?"keyboard":Er;bi(Ir),Ve&&be==="combobox"&&yr!==null&&$r==="keyboard"&&qr(String(yr))},[Ve,be]),Mr=function(Ir,Sr,Er){var $r=function(){var ao,Yi=Tr(Ir);return[dr?{label:Yi==null?void 0:Yi[br.label],value:Ir,key:(ao=Yi==null?void 0:Yi.key)!==null&&ao!==void 0?ao:Ir}:Ir,mt(Yi)]};if(Sr&&Jt){var Gr=$r(),Xi=(0,Ee.Z)(Gr,2),wi=Xi[0],mi=Xi[1];Jt(wi,mi)}else if(!Sr&&gn&&Er!=="clear"){var ei=$r(),Zi=(0,Ee.Z)(ei,2),no=Zi[0],Li=Zi[1];gn(no,Li)}},ai=xn(function(yr,Ir){var Sr,Er=pr?Ir.selected:!0;Er?Sr=pr?[].concat((0,Qe.Z)(Br),[yr]):[yr]:Sr=Br.filter(function($r){return $r.value!==yr}),ri(Sr),Mr(yr,Er),be==="combobox"?qr(""):(!qt||xt)&&(ur(""),qr(""))}),pi=function(Ir,Sr){ri(Ir);var Er=Sr.type,$r=Sr.values;(Er==="remove"||Er==="clear")&&$r.forEach(function(Gr){Mr(Gr.value,!1,Er)})},Xr=function(Ir,Sr){if(ur(Ir),qr(null),Sr.source==="submit"){var Er=(Ir||"").trim();if(Er){var $r=Array.from(new Set([].concat((0,Qe.Z)(Nr),[Er])));ri($r),Mr(Er,!0),ur("")}return}Sr.source!=="blur"&&(be==="combobox"&&ri(Ir),Ct==null||Ct(Ir))},to=function(Ir){var Sr=Ir;be!=="tags"&&(Sr=Ir.map(function($r){var Gr=wn.get($r);return Gr==null?void 0:Gr.value}).filter(function($r){return $r!==void 0}));var Er=Array.from(new Set([].concat((0,Qe.Z)(Nr),(0,Qe.Z)(Sr))));ri(Er),Er.forEach(function($r){Mr($r,!0)})},Ki=he.useMemo(function(){var yr=ir!==!1&&Sn!==!1;return(0,tt.Z)((0,tt.Z)({},pn),{},{flattenOptions:ui,onActiveValue:Vr,defaultActiveFirstOption:Ii,onSelect:ai,menuItemSelectedIcon:rr,rawValues:Nr,fieldNames:br,virtual:yr,direction:Un,listHeight:Tn,listItemHeight:Vn,childrenAsData:fr,maxCount:_n,optionRender:Rn})},[_n,pn,ui,Vr,Ii,ai,rr,Nr,br,ir,Sn,Un,Tn,Vn,fr,Rn]);return he.createElement(Ut.Provider,{value:Ki},he.createElement(Dt,(0,E.Z)({},hr,{id:ar,prefixCls:pe,ref:ut,omitDomProps:Qn,mode:be,displayValues:Ar,onDisplayValuesChange:pi,direction:Un,searchValue:xr,onSearch:Xr,autoClearSearchValue:xt,onSearchSplit:to,dropdownMatchSelectWidth:Sn,OptionList:Dn,emptyOptions:!ui.length,activeValue:Ui,activeDescendantId:"".concat(ar,"_list_").concat(Wi)})))}),Qt=Nt;Qt.Option=pt,Qt.OptGroup=Vt;var En=Qt,mn=En},22711:function(on,$t,ne){"use strict";ne.r($t),ne.d($t,{ResizableTextArea:function(){return Me},default:function(){return qe}});var E=ne(60499),Qe=ne(18642),xe=ne(85899),tt=ne(77654),Ee=ne(72190),Be=ne(42244),De=ne(92310),We=ne.n(De),Ie=ne(36901),he=ne(66003),Je=ne(30292),Pe=ne(18929),dt=ne(59301),Ze=ne(43749),Ce=ne(29301),Te=ne(34280),_e=ne(16089),rt=` 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; `,gt=["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"],Pt={},ht;function it(Le){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=Le.getAttribute("id")||Le.getAttribute("data-reactid")||Le.getAttribute("name");if(Ae&&Pt[ct])return Pt[ct];var ye=window.getComputedStyle(Le),ce=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),Ue=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),It=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),bt=gt.map(function(He){return"".concat(He,":").concat(ye.getPropertyValue(He))}).join(";"),ge={sizingStyle:bt,paddingSize:Ue,borderSize:It,boxSizing:ce};return Ae&&ct&&(Pt[ct]=ge),ge}function nt(Le){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ht||(ht=document.createElement("textarea"),ht.setAttribute("tab-index","-1"),ht.setAttribute("aria-hidden","true"),ht.setAttribute("name","hiddenTextarea"),document.body.appendChild(ht)),Le.getAttribute("wrap")?ht.setAttribute("wrap",Le.getAttribute("wrap")):ht.removeAttribute("wrap");var ce=it(Le,Ae),Ue=ce.paddingSize,It=ce.borderSize,bt=ce.boxSizing,ge=ce.sizingStyle;ht.setAttribute("style","".concat(ge,";").concat(rt)),ht.value=Le.value||Le.placeholder||"";var He=void 0,Ge=void 0,Tt,wt=ht.scrollHeight;if(bt==="border-box"?wt+=It:bt==="content-box"&&(wt-=Ue),ct!==null||ye!==null){ht.value=" ";var Lt=ht.scrollHeight-Ue;ct!==null&&(He=Lt*ct,bt==="border-box"&&(He=He+Ue+It),wt=Math.max(He,wt)),ye!==null&&(Ge=Lt*ye,bt==="border-box"&&(Ge=Ge+Ue+It),Tt=wt>Ge?"":"hidden",wt=Math.min(Ge,wt))}var $e={height:wt,overflowY:Tt,resize:"none"};return He&&($e.minHeight=He),Ge&&($e.maxHeight=Ge),$e}var Fe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kt=0,lt=1,et=2,St=dt.forwardRef(function(Le,Ae){var ct=Le,ye=ct.prefixCls,ce=ct.defaultValue,Ue=ct.value,It=ct.autoSize,bt=ct.onResize,ge=ct.className,He=ct.style,Ge=ct.disabled,Tt=ct.onChange,wt=ct.onInternalAutoSize,Lt=(0,Be.Z)(ct,Fe),$e=(0,Pe.Z)(ce,{value:Ue,postState:function(pt){return pt!=null?pt:""}}),At=(0,Ee.Z)($e,2),st=At[0],ae=At[1],te=function(pt){ae(pt.target.value),Tt==null||Tt(pt)},ee=dt.useRef();dt.useImperativeHandle(Ae,function(){return{textArea:ee.current}});var oe=dt.useMemo(function(){return It&&(0,Ze.Z)(It)==="object"?[It.minRows,It.maxRows]:[]},[It]),ue=(0,Ee.Z)(oe,2),re=ue[0],ve=ue[1],we=!!It,ft=function(){try{if(document.activeElement===ee.current){var pt=ee.current,Ft=pt.selectionStart,jt=pt.selectionEnd,Ne=pt.scrollTop;ee.current.setSelectionRange(Ft,jt),ee.current.scrollTop=Ne}}catch(ot){}},Oe=dt.useState(et),Ye=(0,Ee.Z)(Oe,2),mt=Ye[0],Bt=Ye[1],Et=dt.useState(),Ut=(0,Ee.Z)(Et,2),Wt=Ut[0],Ht=Ut[1],ln=function(){Bt(kt)};(0,Te.Z)(function(){we&&ln()},[Ue,re,ve,we]),(0,Te.Z)(function(){if(mt===kt)Bt(lt);else if(mt===lt){var je=nt(ee.current,!1,re,ve);Bt(et),Ht(je)}else ft()},[mt]);var qt=dt.useRef(),sn=function(){_e.Z.cancel(qt.current)},Dt=function(pt){mt===et&&(bt==null||bt(pt),It&&(sn(),qt.current=(0,_e.Z)(function(){ln()})))};dt.useEffect(function(){return sn},[]);var tn=we?Wt:null,Vt=(0,xe.Z)((0,xe.Z)({},He),tn);return(mt===kt||mt===lt)&&(Vt.overflowY="hidden",Vt.overflowX="hidden"),dt.createElement(Ce.Z,{onResize:Dt,disabled:!(It||bt)},dt.createElement("textarea",(0,E.Z)({},Lt,{ref:ee,style:Vt,className:We()(ye,ge,(0,Qe.Z)({},"".concat(ye,"-disabled"),Ge)),disabled:Ge,value:st,onChange:te})))}),Me=St,Ke=["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"],ze=dt.forwardRef(function(Le,Ae){var ct,ye=Le.defaultValue,ce=Le.value,Ue=Le.onFocus,It=Le.onBlur,bt=Le.onChange,ge=Le.allowClear,He=Le.maxLength,Ge=Le.onCompositionStart,Tt=Le.onCompositionEnd,wt=Le.suffix,Lt=Le.prefixCls,$e=Lt===void 0?"rc-textarea":Lt,At=Le.showCount,st=Le.count,ae=Le.className,te=Le.style,ee=Le.disabled,oe=Le.hidden,ue=Le.classNames,re=Le.styles,ve=Le.onResize,we=Le.onClear,ft=Le.onPressEnter,Oe=Le.readOnly,Ye=Le.autoSize,mt=Le.onKeyDown,Bt=(0,Be.Z)(Le,Ke),Et=(0,Pe.Z)(ye,{value:ce,defaultValue:ye}),Ut=(0,Ee.Z)(Et,2),Wt=Ut[0],Ht=Ut[1],ln=Wt==null?"":String(Wt),qt=dt.useState(!1),sn=(0,Ee.Z)(qt,2),Dt=sn[0],tn=sn[1],Vt=dt.useRef(!1),je=dt.useState(null),pt=(0,Ee.Z)(je,2),Ft=pt[0],jt=pt[1],Ne=(0,dt.useRef)(null),ot=(0,dt.useRef)(null),yt=function(){var Qt;return(Qt=ot.current)===null||Qt===void 0?void 0:Qt.textArea},Mt=function(){yt().focus()};(0,dt.useImperativeHandle)(Ae,function(){var Nt;return{resizableTextArea:ot.current,focus:Mt,blur:function(){yt().blur()},nativeElement:((Nt=Ne.current)===null||Nt===void 0?void 0:Nt.nativeElement)||yt()}}),(0,dt.useEffect)(function(){tn(function(Nt){return!ee&&Nt})},[ee]);var Kt=dt.useState(null),cn=(0,Ee.Z)(Kt,2),Dn=cn[0],kn=cn[1];dt.useEffect(function(){if(Dn){var Nt;(Nt=yt()).setSelectionRange.apply(Nt,(0,tt.Z)(Dn))}},[Dn]);var un=(0,he.Z)(st,At),bn=(ct=un.max)!==null&&ct!==void 0?ct:He,fn=Number(bn)>0,Gt=un.strategy(ln),Rt=!!bn&&Gt>bn,_t=function(Qt,En){var mn=En;!Vt.current&&un.exceedFormatter&&un.max&&un.strategy(En)>un.max&&(mn=un.exceedFormatter(En,{max:un.max}),En!==mn&&kn([yt().selectionStart||0,yt().selectionEnd||0])),Ht(mn),(0,Je.rJ)(Qt.currentTarget,Qt,bt,mn)},Ot=function(Qt){Vt.current=!0,Ge==null||Ge(Qt)},an=function(Qt){Vt.current=!1,_t(Qt,Qt.currentTarget.value),Tt==null||Tt(Qt)},nn=function(Qt){_t(Qt,Qt.target.value)},en=function(Qt){Qt.key==="Enter"&&ft&&ft(Qt),mt==null||mt(Qt)},xn=function(Qt){tn(!0),Ue==null||Ue(Qt)},Pn=function(Qt){tn(!1),It==null||It(Qt)},Cn=function(Qt){Ht(""),Mt(),(0,Je.rJ)(yt(),Qt,bt)},Nn=wt,An;un.show&&(un.showFormatter?An=un.showFormatter({value:ln,count:Gt,maxLength:bn}):An="".concat(Gt).concat(fn?" / ".concat(bn):""),Nn=dt.createElement(dt.Fragment,null,Nn,dt.createElement("span",{className:We()("".concat($e,"-data-count"),ue==null?void 0:ue.count),style:re==null?void 0:re.count},An)));var Qn=function(Qt){var En;ve==null||ve(Qt),(En=yt())!==null&&En!==void 0&&En.style.height&&jt(!0)},zn=!Ye&&!At&&!ge;return dt.createElement(Ie.BaseInput,{ref:Ne,value:ln,allowClear:ge,handleReset:Cn,suffix:Nn,prefixCls:$e,classNames:(0,xe.Z)((0,xe.Z)({},ue),{},{affixWrapper:We()(ue==null?void 0:ue.affixWrapper,(0,Qe.Z)((0,Qe.Z)({},"".concat($e,"-show-count"),At),"".concat($e,"-textarea-allow-clear"),ge))}),disabled:ee,focused:Dt,className:We()(ae,Rt&&"".concat($e,"-out-of-range")),style:(0,xe.Z)((0,xe.Z)({},te),Ft&&!zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof An=="string"?An:void 0}},hidden:oe,readOnly:Oe,onClear:we},dt.createElement(Me,(0,E.Z)({},Bt,{autoSize:Ye,maxLength:He,onKeyDown:en,onChange:nn,onFocus:xn,onBlur:Pn,onCompositionStart:Ot,onCompositionEnd:an,className:We()(ue==null?void 0:ue.textarea),style:(0,xe.Z)((0,xe.Z)({},re==null?void 0:re.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:$e,onResize:Qn,ref:ot,readOnly:Oe})))}),se=ze,qe=se},48911:function(on,$t,ne){"use strict";ne.d($t,{Z:function(){return st}});var E=ne(60499),Qe=ne(43749),xe=ne(85899),tt=ne(18642),Ee=ne(72190),Be=ne(42244),De=ne(92310),We=ne.n(De),Ie=ne(29301),he=ne(70425),Je=ne(34280),Pe=ne(59301),dt=ne(4676),Ze=Pe.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,ue=ae.offsetX,re=ae.children,ve=ae.prefixCls,we=ae.onInnerResize,ft=ae.innerProps,Oe=ae.rtl,Ye=ae.extra,mt={},Bt={display:"flex",flexDirection:"column"};return oe!==void 0&&(mt={height:ee,position:"relative",overflow:"hidden"},Bt=(0,xe.Z)((0,xe.Z)({},Bt),{},(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)({transform:"translateY(".concat(oe,"px)")},Oe?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),Pe.createElement("div",{style:mt},Pe.createElement(Ie.Z,{onResize:function(Ut){var Wt=Ut.offsetHeight;Wt&&we&&we()}},Pe.createElement("div",(0,E.Z)({style:Bt,className:We()((0,tt.Z)({},"".concat(ve,"-holder-inner"),ve)),ref:te},ft),re,Ye)))});Ze.displayName="Filler";var Ce=Ze;function Te(ae){var te=ae.children,ee=ae.setRef,oe=Pe.useCallback(function(ue){ee(ue)},[]);return Pe.cloneElement(te,{ref:oe})}function _e(ae,te,ee,oe,ue,re,ve,we){var ft=we.getKey;return ae.slice(te,ee+1).map(function(Oe,Ye){var mt=te+Ye,Bt=ve(Oe,mt,{style:{width:oe},offsetX:ue}),Et=ft(Oe);return Pe.createElement(Te,{key:Et,setRef:function(Wt){return re(Oe,Wt)}},Bt)})}function rt(ae,te,ee,oe){var ue=ee-ae,re=te-ee,ve=Math.min(ue,re)*2;if(oe<=ve){var we=Math.floor(oe/2);return oe%2?ee+we+1:ee-we}return ue>re?ee-(oe-re):ee+(oe-ue)}function gt(ae,te,ee){var oe=ae.length,ue=te.length,re,ve;if(oe===0&&ue===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,mt=ft?Oe<0&&we.current.left||Oe>0&&we.current.right:Oe<0&&we.current.top||Oe>0&&we.current.bottom;return Ye&&mt?(clearTimeout(re.current),ue.current=!1):(!mt||ue.current)&&ve(),!ue.current&&mt}};function kt(ae,te,ee,oe,ue,re,ve){var we=(0,Pe.useRef)(0),ft=(0,Pe.useRef)(null),Oe=(0,Pe.useRef)(null),Ye=(0,Pe.useRef)(!1),mt=Fe(te,ee,oe,ue);function Bt(qt,sn){if(ht.Z.cancel(ft.current),!mt(!1,sn)){var Dt=qt;if(!Dt._virtualHandled)Dt._virtualHandled=!0;else return;we.current+=sn,Oe.current=sn,nt||Dt.preventDefault(),ft.current=(0,ht.Z)(function(){var tn=Ye.current?10:1;ve(we.current*tn,!1),we.current=0})}}function Et(qt,sn){ve(sn,!0),nt||qt.preventDefault()}var Ut=(0,Pe.useRef)(null),Wt=(0,Pe.useRef)(null);function Ht(qt){if(ae){ht.Z.cancel(Wt.current),Wt.current=(0,ht.Z)(function(){Ut.current=null},2);var sn=qt.deltaX,Dt=qt.deltaY,tn=qt.shiftKey,Vt=sn,je=Dt;(Ut.current==="sx"||!Ut.current&&tn&&Dt&&!sn)&&(Vt=Dt,je=0,Ut.current="sx");var pt=Math.abs(Vt),Ft=Math.abs(je);Ut.current===null&&(Ut.current=re&&pt>Ft?"x":"y"),Ut.current==="y"?Bt(qt,je):Et(qt,Vt)}}function ln(qt){ae&&(Ye.current=qt.detail===Oe.current)}return[Ht,ln]}function lt(ae,te,ee,oe){var ue=Pe.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),re=(0,Ee.Z)(ue,2),ve=re[0],we=re[1],ft=function(Ye){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ye,Bt=ve.get(Ye),Et=ve.get(mt);if(Bt===void 0||Et===void 0)for(var Ut=ae.length,Wt=we.length;Wt0&&arguments[0]!==void 0?arguments[0]:!1;Ye();var Ut=function(){var ln=!1;we.current.forEach(function(qt,sn){if(qt&&qt.offsetParent){var Dt=qt.offsetHeight,tn=getComputedStyle(qt),Vt=tn.marginTop,je=tn.marginBottom,pt=ze(Vt),Ft=ze(je),jt=Dt+pt+Ft;ft.current.get(sn)!==jt&&(ft.current.set(sn,jt),ln=!0)}}),ln&&ve(function(qt){return qt+1})};if(Et)Ut();else{Oe.current+=1;var Wt=Oe.current;Promise.resolve().then(function(){Wt===Oe.current&&Ut()})}}function Bt(Et,Ut){var Wt=ae(Et),Ht=we.current.get(Wt);Ut?(we.current.set(Wt,Ut),mt()):we.current.delete(Wt),!Ht!=!Ut&&(Ut?te==null||te(Et):ee==null||ee(Et))}return(0,Pe.useEffect)(function(){return Ye},[]),[Bt,mt,ft.current,re]}var qe=14/15;function Le(ae,te,ee){var oe=(0,Pe.useRef)(!1),ue=(0,Pe.useRef)(0),re=(0,Pe.useRef)(0),ve=(0,Pe.useRef)(null),we=(0,Pe.useRef)(null),ft,Oe=function(Et){if(oe.current){var Ut=Math.ceil(Et.touches[0].pageX),Wt=Math.ceil(Et.touches[0].pageY),Ht=ue.current-Ut,ln=re.current-Wt,qt=Math.abs(Ht)>Math.abs(ln);qt?ue.current=Ut:re.current=Wt;var sn=ee(qt,qt?Ht:ln,!1,Et);sn&&Et.preventDefault(),clearInterval(we.current),sn&&(we.current=setInterval(function(){qt?Ht*=qe:ln*=qe;var Dt=Math.floor(qt?Ht:ln);(!ee(qt,Dt,!0)||Math.abs(Dt)<=.1)&&clearInterval(we.current)},16))}},Ye=function(){oe.current=!1,ft()},mt=function(Et){ft(),Et.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(Et.touches[0].pageX),re.current=Math.ceil(Et.touches[0].pageY),ve.current=Et.target,ve.current.addEventListener("touchmove",Oe,{passive:!1}),ve.current.addEventListener("touchend",Ye,{passive:!0}))};ft=function(){ve.current&&(ve.current.removeEventListener("touchmove",Oe),ve.current.removeEventListener("touchend",Ye))},(0,Je.Z)(function(){return ae&&te.current.addEventListener("touchstart",mt,{passive:!0}),function(){var Bt;(Bt=te.current)===null||Bt===void 0||Bt.removeEventListener("touchstart",mt),ft(),clearInterval(we.current)}},[ae])}function Ae(ae){return Math.floor(Math.pow(ae,.5))}function ct(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ye(ae,te,ee){Pe.useEffect(function(){var oe=te.current;if(ae&&oe){var ue=!1,re,ve,we=function(){ht.Z.cancel(re)},ft=function Bt(){we(),re=(0,ht.Z)(function(){ee(ve),Bt()})},Oe=function(){ue=!1,we()},Ye=function(Et){if(!(Et.target.draggable||Et.button!==0)){var Ut=Et;Ut._virtualHandled||(Ut._virtualHandled=!0,ue=!0)}},mt=function(Et){if(ue){var Ut=ct(Et,!1),Wt=oe.getBoundingClientRect(),Ht=Wt.top,ln=Wt.bottom;if(Ut<=Ht){var qt=Ht-Ut;ve=-Ae(qt),ft()}else if(Ut>=ln){var sn=Ut-ln;ve=Ae(sn),ft()}else we()}};return oe.addEventListener("mousedown",Ye),oe.ownerDocument.addEventListener("mouseup",Oe),oe.ownerDocument.addEventListener("mousemove",mt),oe.ownerDocument.addEventListener("dragend",Oe),function(){oe.removeEventListener("mousedown",Ye),oe.ownerDocument.removeEventListener("mouseup",Oe),oe.ownerDocument.removeEventListener("mousemove",mt),oe.ownerDocument.removeEventListener("dragend",Oe),we()}}},[ae])}var ce=10;function Ue(ae,te,ee,oe,ue,re,ve,we){var ft=Pe.useRef(),Oe=Pe.useState(null),Ye=(0,Ee.Z)(Oe,2),mt=Ye[0],Bt=Ye[1];return(0,Je.Z)(function(){if(mt&&mt.times=0;Mt-=1){var Kt=ue(te[Mt]),cn=ee.get(Kt);if(cn===void 0){qt=!0;break}if(yt-=cn,yt<=0)break}switch(tn){case"top":Dt=je-Ht;break;case"bottom":Dt=pt-ln+Ht;break;default:{var Dn=ae.current.scrollTop,kn=Dn+ln;jekn&&(sn="bottom")}}Dt!==null&&ve(Dt),Dt!==mt.lastTop&&(qt=!0)}qt&&Bt((0,xe.Z)((0,xe.Z)({},mt),{},{times:mt.times+1,targetAlign:sn,lastTop:Dt}))}},[mt,ae.current]),function(Et){if(Et==null){we();return}if(ht.Z.cancel(ft.current),typeof Et=="number")ve(Et);else if(Et&&(0,Qe.Z)(Et)==="object"){var Ut,Wt=Et.align;"index"in Et?Ut=Et.index:Ut=te.findIndex(function(qt){return ue(qt)===Et.key});var Ht=Et.offset,ln=Ht===void 0?0:Ht;Bt({times:0,index:Ut,offset:ln,originAlign:Wt})}}}var It=Pe.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,re=ae.scrollRange,ve=ae.onStartMove,we=ae.onStopMove,ft=ae.onScroll,Oe=ae.horizontal,Ye=ae.spinSize,mt=ae.containerSize,Bt=ae.style,Et=ae.thumbStyle,Ut=ae.showScrollBar,Wt=Pe.useState(!1),Ht=(0,Ee.Z)(Wt,2),ln=Ht[0],qt=Ht[1],sn=Pe.useState(null),Dt=(0,Ee.Z)(sn,2),tn=Dt[0],Vt=Dt[1],je=Pe.useState(null),pt=(0,Ee.Z)(je,2),Ft=pt[0],jt=pt[1],Ne=!oe,ot=Pe.useRef(),yt=Pe.useRef(),Mt=Pe.useState(Ut),Kt=(0,Ee.Z)(Mt,2),cn=Kt[0],Dn=Kt[1],kn=Pe.useRef(),un=function(){Ut===!0||Ut===!1||(clearTimeout(kn.current),Dn(!0),kn.current=setTimeout(function(){Dn(!1)},3e3))},bn=re-mt||0,fn=mt-Ye||0,Gt=Pe.useMemo(function(){if(ue===0||bn===0)return 0;var Cn=ue/bn;return Cn*fn},[ue,bn,fn]),Rt=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},_t=Pe.useRef({top:Gt,dragging:ln,pageY:tn,startTop:Ft});_t.current={top:Gt,dragging:ln,pageY:tn,startTop:Ft};var Ot=function(Nn){qt(!0),Vt(ct(Nn,Oe)),jt(_t.current.top),ve(),Nn.stopPropagation(),Nn.preventDefault()};Pe.useEffect(function(){var Cn=function(zn){zn.preventDefault()},Nn=ot.current,An=yt.current;return Nn.addEventListener("touchstart",Cn,{passive:!1}),An.addEventListener("touchstart",Ot,{passive:!1}),function(){Nn.removeEventListener("touchstart",Cn),An.removeEventListener("touchstart",Ot)}},[]);var an=Pe.useRef();an.current=bn;var nn=Pe.useRef();nn.current=fn,Pe.useEffect(function(){if(ln){var Cn,Nn=function(zn){var Nt=_t.current,Qt=Nt.dragging,En=Nt.pageY,mn=Nt.startTop;ht.Z.cancel(Cn);var Xe=ot.current.getBoundingClientRect(),ut=mt/(Oe?Xe.width:Xe.height);if(Qt){var ke=(ct(zn,Oe)-En)*ut,be=mn;!Ne&&Oe?be-=ke:be+=ke;var fe=an.current,pe=nn.current,Ve=pe?be/pe:0,Xt=Math.ceil(Ve*fe);Xt=Math.max(Xt,0),Xt=Math.min(Xt,fe),Cn=(0,ht.Z)(function(){ft(Xt,Oe)})}},An=function(){qt(!1),we()};return window.addEventListener("mousemove",Nn,{passive:!0}),window.addEventListener("touchmove",Nn,{passive:!0}),window.addEventListener("mouseup",An,{passive:!0}),window.addEventListener("touchend",An,{passive:!0}),function(){window.removeEventListener("mousemove",Nn),window.removeEventListener("touchmove",Nn),window.removeEventListener("mouseup",An),window.removeEventListener("touchend",An),ht.Z.cancel(Cn)}}},[ln]),Pe.useEffect(function(){return un(),function(){clearTimeout(kn.current)}},[ue]),Pe.useImperativeHandle(te,function(){return{delayHidden:un}});var en="".concat(ee,"-scrollbar"),xn={position:"absolute",visibility:cn?null:"hidden"},Pn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Oe?(Object.assign(xn,{height:8,left:0,right:0,bottom:0}),Object.assign(Pn,(0,tt.Z)({height:"100%",width:Ye},Ne?"left":"right",Gt))):(Object.assign(xn,(0,tt.Z)({width:8,top:0,bottom:0},Ne?"right":"left",0)),Object.assign(Pn,{width:"100%",height:Ye,top:Gt})),Pe.createElement("div",{ref:ot,className:We()(en,(0,tt.Z)((0,tt.Z)((0,tt.Z)({},"".concat(en,"-horizontal"),Oe),"".concat(en,"-vertical"),!Oe),"".concat(en,"-visible"),cn)),style:(0,xe.Z)((0,xe.Z)({},xn),Bt),onMouseDown:Rt,onMouseMove:un},Pe.createElement("div",{ref:yt,className:We()("".concat(en,"-thumb"),(0,tt.Z)({},"".concat(en,"-thumb-moving"),ln)),style:(0,xe.Z)((0,xe.Z)({},Pn),Et),onMouseDown:Ot}))}),bt=It,ge=20;function He(){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,ge),Math.floor(ee)}var Ge=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Tt=[],wt={overflowY:"auto",overflowAnchor:"none"};function Lt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,ue=ae.className,re=ae.height,ve=ae.itemHeight,we=ae.fullHeight,ft=we===void 0?!0:we,Oe=ae.style,Ye=ae.data,mt=ae.children,Bt=ae.itemKey,Et=ae.virtual,Ut=ae.direction,Wt=ae.scrollWidth,Ht=ae.component,ln=Ht===void 0?"div":Ht,qt=ae.onScroll,sn=ae.onVirtualScroll,Dt=ae.onVisibleChange,tn=ae.innerProps,Vt=ae.extraRender,je=ae.styles,pt=ae.showScrollBar,Ft=pt===void 0?"optional":pt,jt=(0,Be.Z)(ae,Ge),Ne=Pe.useCallback(function(pn){return typeof Bt=="function"?Bt(pn):pn==null?void 0:pn[Bt]},[Bt]),ot=se(Ne,null,null),yt=(0,Ee.Z)(ot,4),Mt=yt[0],Kt=yt[1],cn=yt[2],Dn=yt[3],kn=!!(Et!==!1&&re&&ve),un=Pe.useMemo(function(){return Object.values(cn.maps).reduce(function(pn,In){return pn+In},0)},[cn.id,cn.maps]),bn=kn&&Ye&&(Math.max(ve*Ye.length,un)>re||!!Wt),fn=Ut==="rtl",Gt=We()(oe,(0,tt.Z)({},"".concat(oe,"-rtl"),fn),ue),Rt=Ye||Tt,_t=(0,Pe.useRef)(),Ot=(0,Pe.useRef)(),an=(0,Pe.useRef)(),nn=(0,Pe.useState)(0),en=(0,Ee.Z)(nn,2),xn=en[0],Pn=en[1],Cn=(0,Pe.useState)(0),Nn=(0,Ee.Z)(Cn,2),An=Nn[0],Qn=Nn[1],zn=(0,Pe.useState)(!1),Nt=(0,Ee.Z)(zn,2),Qt=Nt[0],En=Nt[1],mn=function(){En(!0)},Xe=function(){En(!1)},ut={getKey:Ne};function ke(pn){Pn(function(In){var wn;typeof pn=="function"?wn=pn(In):wn=pn;var dn=or(wn);return _t.current.scrollTop=dn,dn})}var be=(0,Pe.useRef)({start:0,end:Rt.length}),fe=(0,Pe.useRef)(),pe=Pt(Rt,Ne),Ve=(0,Ee.Z)(pe,1),Xt=Ve[0];fe.current=Xt;var rn=Pe.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:Rt.length-1,offset:void 0};if(!bn){var pn;return{scrollHeight:((pn=Ot.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:Rt.length-1,offset:void 0}}for(var In=0,wn,dn,Gn,nr=Rt.length,vn=0;vn=xn&&wn===void 0&&(wn=vn,dn=In),vr>xn+re&&Gn===void 0&&(Gn=vn),In=vr}return wn===void 0&&(wn=0,dn=0,Gn=Math.ceil(re/ve)),Gn===void 0&&(Gn=Rt.length-1),Gn=Math.min(Gn+1,Rt.length-1),{scrollHeight:In,start:wn,end:Gn,offset:dn}},[bn,kn,xn,Rt,Dn,re]),Yt=rn.scrollHeight,Ct=rn.start,Re=rn.end,xt=rn.offset;be.current.start=Ct,be.current.end=Re,Pe.useLayoutEffect(function(){var pn=cn.getRecord();if(pn.size===1){var In=Array.from(pn.keys())[0],wn=pn.get(In),dn=Rt[Ct];if(dn&&wn===void 0){var Gn=Ne(dn);if(Gn===In){var nr=cn.get(In),vn=nr-ve;ke(function(yn){return yn+vn})}}}cn.resetRecord()},[Yt]);var Jt=Pe.useState({width:0,height:re}),gn=(0,Ee.Z)(Jt,2),On=gn[0],Sn=gn[1],Fn=function(In){Sn({width:In.offsetWidth,height:In.offsetHeight})},Xn=(0,Pe.useRef)(),qn=(0,Pe.useRef)(),Hn=Pe.useMemo(function(){return He(On.width,Wt)},[On.width,Wt]),Ln=Pe.useMemo(function(){return He(On.height,Yt)},[On.height,Yt]),Rn=Yt-re,Zn=(0,Pe.useRef)(Rn);Zn.current=Rn;function or(pn){var In=pn;return Number.isNaN(Zn.current)||(In=Math.min(In,Zn.current)),In=Math.max(In,0),In}var rr=xn<=0,ir=xn>=Rn,Un=An<=0,Kn=An>=Wt,Tn=Fe(rr,ir,Un,Kn),mr=function(){return{x:fn?-An:An,y:xn}},Vn=(0,Pe.useRef)(mr()),Bn=(0,he.zX)(function(pn){if(sn){var In=(0,xe.Z)((0,xe.Z)({},mr()),pn);(Vn.current.x!==In.x||Vn.current.y!==In.y)&&(sn(In),Vn.current=In)}});function Yn(pn,In){var wn=pn;In?((0,dt.flushSync)(function(){Qn(wn)}),Bn()):ke(wn)}function Jn(pn){var In=pn.currentTarget.scrollTop;In!==xn&&ke(In),qt==null||qt(pn),Bn()}var dr=function(In){var wn=In,dn=Wt?Wt-On.width:0;return wn=Math.max(wn,0),wn=Math.min(wn,dn),wn},sr=(0,he.zX)(function(pn,In){In?((0,dt.flushSync)(function(){Qn(function(wn){var dn=wn+(fn?-pn:pn);return dr(dn)})}),Bn()):ke(function(wn){var dn=wn+pn;return dn})}),_n=kt(kn,rr,ir,Un,Kn,!!Wt,sr),hr=(0,Ee.Z)(_n,2),ar=hr[0],pr=hr[1];Le(kn,_t,function(pn,In,wn,dn){var Gn=dn;return Tn(pn,In,wn)?!1:!Gn||!Gn._virtualHandled?(Gn&&(Gn._virtualHandled=!0),ar({preventDefault:function(){},deltaX:pn?In:0,deltaY:pn?0:In}),!0):!1}),ye(bn,_t,function(pn){ke(function(In){return In+pn})}),(0,Je.Z)(function(){function pn(wn){var dn=rr&&wn.detail<0,Gn=ir&&wn.detail>0;kn&&!dn&&!Gn&&wn.preventDefault()}var In=_t.current;return In.addEventListener("wheel",ar,{passive:!1}),In.addEventListener("DOMMouseScroll",pr,{passive:!0}),In.addEventListener("MozMousePixelScroll",pn,{passive:!1}),function(){In.removeEventListener("wheel",ar),In.removeEventListener("DOMMouseScroll",pr),In.removeEventListener("MozMousePixelScroll",pn)}},[kn,rr,ir]),(0,Je.Z)(function(){if(Wt){var pn=dr(An);Qn(pn),Bn({x:pn})}},[On.width,Wt]);var fr=function(){var In,wn;(In=Xn.current)===null||In===void 0||In.delayHidden(),(wn=qn.current)===null||wn===void 0||wn.delayHidden()},wr=Ue(_t,Rt,cn,ve,Ne,function(){return Kt(!0)},ke,fr);Pe.useImperativeHandle(te,function(){return{nativeElement:an.current,getScrollInfo:mr,scrollTo:function(In){function wn(dn){return dn&&(0,Qe.Z)(dn)==="object"&&("left"in dn||"top"in dn)}wn(In)?(In.left!==void 0&&Qn(dr(In.left)),wr(In.top)):wr(In)}}}),(0,Je.Z)(function(){if(Dt){var pn=Rt.slice(Ct,Re+1);Dt(pn,Rt)}},[Ct,Re,Rt]);var br=lt(Rt,Ne,cn,ve),Or=Vt==null?void 0:Vt({start:Ct,end:Re,virtual:bn,offsetX:An,offsetY:xt,rtl:fn,getSize:br}),_r=_e(Rt,Ct,Re,Wt,An,Mt,mt,ut),xr=null;re&&(xr=(0,xe.Z)((0,tt.Z)({},ft?"height":"maxHeight",re),wt),kn&&(xr.overflowY="hidden",Wt&&(xr.overflowX="hidden"),Qt&&(xr.pointerEvents="none")));var ur={};return fn&&(ur.dir="rtl"),Pe.createElement("div",(0,E.Z)({ref:an,style:(0,xe.Z)((0,xe.Z)({},Oe),{},{position:"relative"}),className:Gt},ur,jt),Pe.createElement(Ie.Z,{onResize:Fn},Pe.createElement(ln,{className:"".concat(oe,"-holder"),style:xr,ref:_t,onScroll:Jn,onMouseEnter:fr},Pe.createElement(Ce,{prefixCls:oe,height:Yt,offsetX:An,offsetY:xt,scrollWidth:Wt,onInnerResize:Kt,ref:Ot,innerProps:tn,rtl:fn,extra:Or},_r))),bn&&Yt>re&&Pe.createElement(bt,{ref:Xn,prefixCls:oe,scrollOffset:xn,scrollRange:Yt,rtl:fn,onScroll:Yn,onStartMove:mn,onStopMove:Xe,spinSize:Ln,containerSize:On.height,style:je==null?void 0:je.verticalScrollBar,thumbStyle:je==null?void 0:je.verticalScrollBarThumb,showScrollBar:Ft}),bn&&Wt>On.width&&Pe.createElement(bt,{ref:qn,prefixCls:oe,scrollOffset:An,scrollRange:Wt,rtl:fn,onScroll:Yn,onStartMove:mn,onStopMove:Xe,spinSize:Hn,containerSize:On.width,horizontal:!0,style:je==null?void 0:je.horizontalScrollBar,thumbStyle:je==null?void 0:je.horizontalScrollBarThumb,showScrollBar:Ft}))}var $e=Pe.forwardRef(Lt);$e.displayName="List";var At=$e,st=At},51581:function(on,$t,ne){"use strict";Object.defineProperty($t,"__esModule",{value:!0});var E=function(){function Pe(dt,Ze){for(var Ce=0;Ce=0||Object.prototype.hasOwnProperty.call(Pe,Ce)&&(Ze[Ce]=Pe[Ce]);return Ze}function We(Pe,dt){if(!(Pe instanceof dt))throw new TypeError("Cannot call a class as a function")}function Ie(Pe,dt){if(!Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt&&(typeof dt=="object"||typeof dt=="function")?dt:Pe}function he(Pe,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof dt);Pe.prototype=Object.create(dt&&dt.prototype,{constructor:{value:Pe,enumerable:!1,writable:!0,configurable:!0}}),dt&&(Object.setPrototypeOf?Object.setPrototypeOf(Pe,dt):Pe.__proto__=dt)}var Je=function(Pe){he(dt,Pe);function dt(Ze){We(this,dt);var Ce=Ie(this,(dt.__proto__||Object.getPrototypeOf(dt)).call(this,Ze));return Ce.scrollListener=Ce.scrollListener.bind(Ce),Ce.eventListenerOptions=Ce.eventListenerOptions.bind(Ce),Ce.mousewheelListener=Ce.mousewheelListener.bind(Ce),Ce}return E(dt,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var Ce=this.getParentElement(this.scrollComponent);Ce.scrollTop=Ce.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var Ce=!1,Te={get passive(){Ce=!0}};try{document.addEventListener("test",null,Te),document.removeEventListener("test",null,Te)}catch(_e){}return Ce}},{key:"eventListenerOptions",value:function(){var Ce=this.props.useCapture;return this.isPassiveSupported()&&(Ce={useCapture:this.props.useCapture,passive:!0}),Ce}},{key:"setDefaultLoader",value:function(Ce){this.defaultLoader=Ce}},{key:"detachMousewheelListener",value:function(){var Ce=window;this.props.useWindow===!1&&(Ce=this.scrollComponent.parentNode),Ce.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var Ce=window;this.props.useWindow===!1&&(Ce=this.getParentElement(this.scrollComponent)),Ce.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Ce.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(Ce){var Te=this.props.getScrollParent&&this.props.getScrollParent();return Te!=null?Te:Ce&&Ce.parentNode}},{key:"filterProps",value:function(Ce){return Ce}},{key:"attachScrollListener",value:function(){var Ce=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!Ce)){var Te=window;this.props.useWindow===!1&&(Te=Ce),Te.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),Te.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Te.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(Ce){Ce.deltaY===1&&!this.isPassiveSupported()&&Ce.preventDefault()}},{key:"scrollListener",value:function(){var Ce=this.scrollComponent,Te=window,_e=this.getParentElement(Ce),rt=void 0;if(this.props.useWindow){var gt=document.documentElement||document.body.parentNode||document.body,Pt=Te.pageYOffset!==void 0?Te.pageYOffset:gt.scrollTop;this.props.isReverse?rt=Pt:rt=this.calculateOffset(Ce,Pt)}else this.props.isReverse?rt=_e.scrollTop:rt=Ce.scrollHeight-_e.scrollTop-_e.clientHeight;rttypeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,Qe=(Ie,he)=>(!he||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",xe=(Ie,he)=>{if(Ie.clientHeight{const dt=(Ze=>{if(!Ze.ownerDocument||!Ze.ownerDocument.defaultView)return null;try{return Ze.ownerDocument.defaultView.frameElement}catch(Ce){return null}})(Pe);return!!dt&&(dt.clientHeightZehe||Ze>Ie&&Ce=he&&Te>=Je?Ze-Ie-Pe:Ce>he&&TeJe?Ce-he+dt:0,Ee=Ie=>{const he=Ie.parentElement;return he==null?Ie.getRootNode().host||null:he},Be=(Ie,he)=>{var Je,Pe,dt,Ze;if(typeof document=="undefined")return[];const{scrollMode:Ce,block:Te,inline:_e,boundary:rt,skipOverflowHiddenElements:gt}=he,Pt=typeof rt=="function"?rt:bt=>bt!==rt;if(!E(Ie))throw new TypeError("Invalid target");const ht=document.scrollingElement||document.documentElement,it=[];let nt=Ie;for(;E(nt)&&Pt(nt);){if(nt=Ee(nt),nt===ht){it.push(nt);break}nt!=null&&nt===document.body&&xe(nt)&&!xe(document.documentElement)||nt!=null&&xe(nt,gt)&&it.push(nt)}const Fe=(Pe=(Je=window.visualViewport)==null?void 0:Je.width)!=null?Pe:innerWidth,kt=(Ze=(dt=window.visualViewport)==null?void 0:dt.height)!=null?Ze:innerHeight,{scrollX:lt,scrollY:et}=window,{height:St,width:Me,top:Ke,right:ze,bottom:se,left:qe}=Ie.getBoundingClientRect(),{top:Le,right:Ae,bottom:ct,left:ye}=(bt=>{const ge=window.getComputedStyle(bt);return{top:parseFloat(ge.scrollMarginTop)||0,right:parseFloat(ge.scrollMarginRight)||0,bottom:parseFloat(ge.scrollMarginBottom)||0,left:parseFloat(ge.scrollMarginLeft)||0}})(Ie);let ce=Te==="start"||Te==="nearest"?Ke-Le:Te==="end"?se+ct:Ke+St/2-Le+ct,Ue=_e==="center"?qe+Me/2-ye+Ae:_e==="end"?ze+Ae:qe-ye;const It=[];for(let bt=0;bt=0&&qe>=0&&se<=kt&&ze<=Fe&&(ge===ht&&!xe(ge)||Ke>=Tt&&se<=Lt&&qe>=$e&&ze<=wt))return It;const At=getComputedStyle(ge),st=parseInt(At.borderLeftWidth,10),ae=parseInt(At.borderTopWidth,10),te=parseInt(At.borderRightWidth,10),ee=parseInt(At.borderBottomWidth,10);let oe=0,ue=0;const re="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-st-te:0,ve="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-ae-ee:0,we="offsetWidth"in ge?ge.offsetWidth===0?0:Ge/ge.offsetWidth:0,ft="offsetHeight"in ge?ge.offsetHeight===0?0:He/ge.offsetHeight:0;if(ht===ge)oe=Te==="start"?ce:Te==="end"?ce-kt:Te==="nearest"?tt(et,et+kt,kt,ae,ee,et+ce,et+ce+St,St):ce-kt/2,ue=_e==="start"?Ue:_e==="center"?Ue-Fe/2:_e==="end"?Ue-Fe:tt(lt,lt+Fe,Fe,st,te,lt+Ue,lt+Ue+Me,Me),oe=Math.max(0,oe+et),ue=Math.max(0,ue+lt);else{oe=Te==="start"?ce-Tt-ae:Te==="end"?ce-Lt+ee+ve:Te==="nearest"?tt(Tt,Lt,He,ae,ee+ve,ce,ce+St,St):ce-(Tt+He/2)+ve/2,ue=_e==="start"?Ue-$e-st:_e==="center"?Ue-($e+Ge/2)+re/2:_e==="end"?Ue-wt+te+re:tt($e,wt,Ge,st,te+re,Ue,Ue+Me,Me);const{scrollLeft:Oe,scrollTop:Ye}=ge;oe=ft===0?0:Math.max(0,Math.min(Ye+oe/ft,ge.scrollHeight-He/ft+ve)),ue=we===0?0:Math.max(0,Math.min(Oe+ue/we,ge.scrollWidth-Ge/we+re)),ce+=Ye-oe,Ue+=Oe-ue}It.push({el:ge,top:oe,left:ue})}return It},De=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function We(Ie,he){if(!Ie.isConnected||!(dt=>{let Ze=dt;for(;Ze&&Ze.parentNode;){if(Ze.parentNode===document)return!0;Ze=Ze.parentNode instanceof ShadowRoot?Ze.parentNode.host:Ze.parentNode}return!1})(Ie))return;const Je=(dt=>{const Ze=window.getComputedStyle(dt);return{top:parseFloat(Ze.scrollMarginTop)||0,right:parseFloat(Ze.scrollMarginRight)||0,bottom:parseFloat(Ze.scrollMarginBottom)||0,left:parseFloat(Ze.scrollMarginLeft)||0}})(Ie);if((dt=>typeof dt=="object"&&typeof dt.behavior=="function")(he))return he.behavior(Be(Ie,he));const Pe=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:dt,top:Ze,left:Ce}of Be(Ie,De(he))){const Te=Ze-Je.top+Je.bottom,_e=Ce-Je.left+Je.right;dt.scroll({top:Te,left:_e,behavior:Pe})}}}}]);