You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__virtualSpaces__Lists__Kn...

1201 lines
928 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[1045],{40001:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},26227:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},41464:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},73331:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},15277:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},33853:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},61485:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},47472:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},87395:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(54476),it=ie(59301),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(he,Xe){return it.createElement(Ee.Z,(0,z.Z)({},he,{ref:Xe,icon:qe}))},Ne=it.forwardRef(Se),$e=Ne},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(an,Kt){"use strict";Kt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},70031:function(an,Kt){"use strict";Kt.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"}},93510: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 an={},Kt="5.0",ie={},z=null,it=!1,ye=!1,qe=null,Ee=!1,Se=null,Ne=null,$e=0;$e<arguments.length;$e++){var Ie=arguments[$e];if(Ie!==null)switch(typeof Ie){case"number":Kt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?Kt=Ie:qe=Ie;break;case"object":typeof Ie.is3D!="undefined"?z=Ie:ie=Ie;break;case"boolean":it=Ie,ye=!0;break}}z===null&&(z={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!ye&&(it=!0)),qe!==null&&ie.id===void 0&&(ie.id=qe);var he="",Xe="",we=!1,Ot=null,ot=null,Re=null,Ge=!1,He=null,Ct=null,Mt=null,jt=null,Dt=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var et=function(pe){return parseFloat(pe)>4?parseFloat(pe):5};an.setHTML5Codebase=function(pe,Me){Ne=pe,_e(pe,Me)},an.setJavaCodebase=an.setJavaCodebaseVersion=an.isCompiledInstalled=an.setPreCompiledScriptPath=an.setPreCompiledResourcePath=function(){},an.setHTML5CodebaseVersion=function(pe,Me){var ze=parseFloat(pe);if(ze!==NaN&&ze<5){console.log("The GeoGebra HTML5 codebase version "+ze+" is deprecated. Using version latest instead.");return}Se=pe,de(pe,Me)},an.getHTML5CodebaseVersion=function(){return ot},an.getParameters=function(){return ie},an.setFontsCSSURL=function(pe){jt=pe},an.setGiacJSURL=function(pe){},an.setJNLPFile=function(pe){he=pe},an.setJNLPBaseDir=function(pe){},an.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Me="auto",ze=ie.id,Nt,At=!1,Zt=0;Zt<arguments.length;Zt++){var Fe=arguments[Zt];typeof Fe=="string"?(Fe=Fe.toLowerCase(),Fe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Me=Fe:ze=arguments[Zt]):typeof Fe=="boolean"?At=Fe:Fe instanceof HTMLElement&&(Nt=Fe)}Lt();function Lt(){if(!Ee){setTimeout(Lt,200);return}Me=Et(Me);var st=Nt||document.getElementById(ze);if(!st){console.log("possibly bug on ajax loading? ");return}if(an.removeExistingApplet(st,!1),ie.width===void 0&&st.clientWidth&&(ie.width=st.clientWidth),ie.height===void 0&&st.clientHeight&&(ie.height=st.clientHeight),!(ie.width&&ie.height)&&Me==="html5"&&(delete ie.width,delete ie.height),Ot=Me,Me==="screenshot")rt(st,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!yt()||pe())&&Ue()),ae?(Ot="screenshot",bt(st,ie,At,Me)):nt(st,ie,At)}}};function yt(){try{return window.self!==window.top}catch(pe){return!0}}function Ue(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}an.getViews=function(){return z},an.isJavaInstalled=function(){return!1};var Ft=function(pe){var Me=function(Zt){var Fe=JSON.parse(Zt),Lt=function(te){return te.type=="G"||te.type=="E"},st=Fe.elements?Fe.elements.filter(Lt)[0]:Fe;if(!st||!st.url){ze();return}ie.fileName=st.url,vt(st.settings||{}),z.is3D=!0;var ae="https://www.geogebra.org/images/";an.setPreviewImage(He||st.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),pe()},ze=function(){ie.onError&&ie.onError(),Wt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",At="/materials/"+ie.material_id+"?scope=basic";dt("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(At),Me,ze)};function vt(pe){var Me=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ze){pe[ze]=!!pe[ze]}),Me.forEach(function(ze){ie[ze]===void 0&&pe[ze]!==void 0&&(ie[ze]=pe[ze])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function dt(pe,Me,ze){var Nt=new XMLHttpRequest;Nt.open("GET",pe),Nt.onload=function(){Me(Nt.responseText)},Nt.onerror=ze,Nt.send()}an.isHTML5Installed=function(){return!0},an.getLoadedAppletType=function(){return Ot},an.setPreviewImage=function(pe,Me,ze){He=pe,Ct=Me,Mt=ze},an.removeExistingApplet=function(pe,Me){var ze;typeof pe=="string"&&(pe=document.getElementById(pe)),Ot=null;var Nt=null;for(ze=0;ze<pe.childNodes.length;ze++){var At=pe.childNodes[ze],Zt=At.className;Zt==="applet_screenshot"?Me?(At.style.display="block",Ot="screenshot"):At.style.display="none":Zt!=="applet_scaler prerender"&&(pe.removeChild(At),Nt=Zt&&Zt.indexOf("appletParameters")!=-1?At.id:null,ze--)}var Fe=ie.id!==void 0?ie.id:Nt,Lt=window[Fe];Lt&&typeof Lt.getBase64=="function"&&(Lt.remove(),window[Fe]=null)},an.refreshHitPoints=function(){if(et(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=an.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},an.startAnimation=function(){var pe=an.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},an.stopAnimation=function(){var pe=an.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},an.getAppletObject=function(){var pe=ie.id!==void 0?ie.id:"ggbApplet";return window[pe]},an.resize=function(){};var St=function(pe,Me,ze){var Nt=document.createElement("param");Nt.setAttribute("name",Me),Nt.setAttribute("value",ze),pe.appendChild(Nt)},Oe=function(pe){return pe&&pe!=="false"},nt=function(pe,Me,ze){et(ot)<=4.2&&(ze=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ot||ggbHTML5LoadedCodebaseIsWebSimple&&!Ge)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var At=document.createElement("div");At.classList.add("appletParameters","notranslate");var Zt=Me.width,Fe=Me.height;if(Me.disableAutoScale=Me.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Me.disableAutoScale,Me.width!==void 0)if(et(ot)<=4.4)Oe(Me.showToolBar)&&(Me.height-=7),Oe(Me.showAlgebraInput)&&(Me.height-=37),Me.width<605&&Oe(Me.showToolBar)&&(Me.width=605,Zt=605);else{var Lt=100;(Oe(Me.showToolBar)||Oe(Me.showMenuBar))&&(Me.hasOwnProperty("customToolBar")&&(Me.customToolbar=Me.customToolBar),Lt=Oe(Me.showMenuBar)?245:155),Zt<Lt&&(Me.width=Lt,Zt=Lt)}At.style.border="none",At.style.display="inline-block";for(var st in Me)Me.hasOwnProperty(st)&&st!=="appletOnLoad"&&At.setAttribute("data-param-"+st,Me[st]);jt&&At.setAttribute("data-param-fontscssurl",jt),an.resize=function(){GGBAppletUtils.responsiveResize(pe,Me)},window.addEventListener("resize",function(It){an.resize()});var ae=typeof Me.appletOnLoad=="function"?Me.appletOnLoad:function(){};if(!ze&&Me.width!==void 0){Me.hasOwnProperty("showSplash")||At.setAttribute("data-param-showSplash","false");var te=pe.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=tt(Zt,Fe,Me.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Zt+"px",te.style.height=Fe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),et(ot)>=5?(Me.appletOnLoad=function(It){var wt=pe.querySelector(".ggb_preview");wt&&wt.parentNode.removeChild(wt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(It)},ee||te.appendChild(oe)):At.appendChild(oe),te.appendChild(At),ee||pe.appendChild(te),setTimeout(function(){an.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(At),pe.appendChild(se),Me.appletOnLoad=function(It){an.resize(),ae(It)}}function ne(It,wt){wt&&typeof wt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(It,wt.appletOnLoad):renderGGBElement(It),Wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",wt)}function me(It,wt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:It,params:wt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qt){ne(Qt.article,Qt.params)}),html5AppletsToProcess=null)},et(ot)<5&&(It.className+=" geogebraweb")):ne(It,wt)}if(Nt){scriptLoadStarted=!0;for(var Ce=0;Ce<At.childNodes.length;Ce++){var mt=At.childNodes[Ce].tagName;mt==="TABLE"&&(At.removeChild(At.childNodes[Ce]),Ce--)}if(ggbHTML5LoadedScript!==null){var Pe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pe!=null&&Pe.parentNode.removeChild(Pe)}var Ke=document.createElement("script"),ft=function(){me(At,Me)};Ke.src=Xe+Re,ggbHTML5LoadedCodebaseIsWebSimple=Ge,ggbHTML5LoadedCodebaseVersion=ot,ggbHTML5LoadedScript=Ke.src,Wt("GeoGebra HTML5 codebase loaded: '"+Xe+"'.",Me),!Ne&&(!Se||Se=="5.0")?(Ge?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ft()):Xe.requirejs?__webpack_require__.e(3861).then(function(){var It=[__webpack_require__(40341)];ft.apply(null,It)}.bind(this)).catch(__webpack_require__.oe):(Ke.onload=ft,pe.appendChild(Ke))}else me(At,Me);Me.height=Fe,Me.width=Zt},rt=function(pe,Me,ze){var Nt=tt(Me.width,Me.height,Me.borderColor,ze),At=document.createElement("div");At.style.position="relative",At.style.display="block",At.style.width=Me.width+"px",At.style.height=Me.height+"px",At.className="applet_screenshot applet_scaler"+(ze?" applet_screenshot_play":""),At.appendChild(Nt);var Zt=GGBAppletUtils.getScale(Me,pe,ze);ze?(pe.appendChild(Be()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),pe.appendChild(At),Zt!==1&&!isNaN(Zt)&&(GGBAppletUtils.scaleElement(At,Zt),At.style.width=Me.width+"px",At.style.height=Me.height+"px",At.parentNode.style.width=Me.width*Zt+"px",At.parentNode.style.height=Me.height*Zt+"px"),an.resize=function(){ue(pe,Nt,At,ze)},window.addEventListener("resize",function(Fe){an.resize()}),an.resize()};function ue(pe,Me,ze,Nt){if(pe.contains(Me)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var At=GGBAppletUtils.getScale(ie,pe,Nt);ze.parentNode!==null&&(!isNaN(At)&&At!==1?(GGBAppletUtils.scaleElement(ze,At),ze.parentNode.style.width=ie.width*At+"px",ze.parentNode.style.height=ie.height*At+"px"):(GGBAppletUtils.scaleElement(ze,1),ze.parentNode.style.width=ie.width+"px",ze.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}an.onExitFullscreen=function(pe,Me){Me.appendChild(pe)};var bt=function(pe,Me,ze,Nt){rt(pe,Me,!0);for(var At=function(){var Lt=[];for(Fe=0;Fe<pe.childNodes.length;Fe++)Lt.push(pe.childNodes[Fe]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(pe,Me.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(pe).find(".fullscreencontent");te.length>0?(st.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):nt(st,Me,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Ot=Nt,nt(pe,Me,!1);if(!window.GGBT_wsf_view)for(Fe=0;Fe<Lt.length;Fe++)pe.removeChild(Lt[Fe])},Zt=pe.getElementsByClassName("ggb_preview_play"),Fe=0;Fe<Zt.length;Fe++)Zt[Fe].addEventListener("click",At,!1),Zt[Fe].addEventListener("ontouchstart",At,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),Ue()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Be=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Me='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',ze=document.createElement("style");ze.styleSheet?ze.styleSheet.cssText=Me:ze.appendChild(document.createTextNode(Me)),document.getElementsByTagName("head")[0].appendChild(ze)}return pe},tt=function(pe,Me,ze,Nt){var At=document.createElement("div");At.className="ggb_preview",At.style.position="absolute",At.style.zIndex="90",At.style.width=pe-2+"px",At.style.height=Me-2+"px",At.style.top="0px",At.style.left="0px",At.style.overflow="hidden",At.style.backgroundColor="white";var Zt="lightgrey";ze!==void 0&&(ze==="none"?Zt="transparent":Zt=ze),At.style.border="1px solid "+Zt;var Fe=document.createElement("img");if(Fe.style.position="relative",Fe.style.zIndex="1000",Fe.style.top="-1px",Fe.style.left="-1px",He!==null&&Fe.setAttribute("src",He),Fe.style.opacity=.7,Ct!==null){var Lt,st,ae;if(!Nt){Lt=document.createElement("img"),Lt.style.position="absolute",Lt.style.zIndex="1001",Lt.style.opacity=1,Fe.style.opacity=.3,st=360,st>pe/4*3&&(st=pe/4*3),ae=st/5.8,Lt.setAttribute("src",Ct),Lt.setAttribute("width",st),Lt.setAttribute("height",ae);var te=(pe-st)/2,ee=(Me-ae)/2;Lt.style.left=te+"px",Lt.style.top=ee+"px",At.appendChild(Lt)}}return At.appendChild(Fe),At},Et=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},ge=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(pe,Me){if(ot=pe,Me){_e(ot,!0);return}var ze=!it;if(ze){var Nt=et(ot);!isNaN(Nt)&&Nt<4.4&&(ze=!1)}var At,Zt;window.location.protocol.substr(0,4)==="http"?At=window.location.protocol:At="http:";var Fe=ot.indexOf("//");Fe>0?Zt=ot:Fe===0?Zt=At+ot:Zt="https://www.geogebra.org/apps/5.2.814.0/";for(var Lt in ge)if(ot.slice(ge[Lt].length*-1)===ge[Lt]||ot.slice((ge[Lt].length+1)*-1)===ge[Lt]+"/"){_e(Zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ze&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Oe(ie.showToolBar)&&!Oe(ie.showMenuBar)&&!Oe(ie.showAlgebraInput)&&!Oe(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?Zt+="webSimple/":Zt+="web3d/",_e(Zt,!1)},_e=function(pe,Me){if(pe.requirejs){Xe=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),Xe=pe,Me===null&&(Me=pe.indexOf("http")===-1),we=Me,Re="web.nocache.js",Ge=!1;var ze=Xe.split("/");ze.length>1&&(!Me&&ze[ze.length-2]==="webSimple"?(Re="webSimple.nocache.js",Ge=!0):ge.indexOf(ze[ze.length-2])>=0&&(Re=ze[ze.length-2]+".nocache.js")),ze=pe.split("/"),ot=ze[ze.length-3],ot.substr(0,4)==="test"?ot=ot.substr(4,1)+"."+ot.substr(5,1):(ot.substr(0,3)==="war"||ot.substr(0,4)==="beta")&&(ot="5.0");var Nt=parseFloat(ot);Nt!==NaN&&Nt<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),de("5.0",Me))},Wt=function(pe,Me){window.console&&window.console.log&&(!Me||typeof Me.showLogging=="undefined"||Me.showLogging&&Me.showLogging!=="false")&&console.log(pe)};ie.material_id!==void 0?Ft(xt):xt();function xt(){var pe=Kt;Se!==null?pe=Se:parseFloat(pe)<5&&(pe="5.0"),de(pe,!1),Ne!==null&&_e(Ne,we),Ee=!0}return an},GGBAppletUtils=function(){"use strict";function an(){return window.GGBT_wsf_edit!==void 0}function Kt(Ee,Se){Se!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+Se+","+Se+")",Ee.style.webkitTransform="scale("+Se+","+Se+")",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 ie(Ee,Se,Ne,$e,Ie,he){var Xe=null;if(he!=null&&he!="")for(var we=Ee.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+he+" ")>-1){Xe=we;break}else we=we.parentNode;var Ot=0,ot=0,Re=0,Ge=0,He=0,Ct=0,Mt=0;if(Xe)Ot=Xe.offsetWidth,ot=Math.max($e?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ot=Math.min(window.innerWidth,document.documentElement.clientWidth),ot=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=Ot):(Ot=window.innerWidth,ot=window.innerHeight,Re=window.innerWidth),Ee){var jt=Ee.getBoundingClientRect();jt.left>0&&jt.left<=Ot&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(He=Ot-jt.width-jt.left,Ct=Re<=480?10:30):(Ct=jt.left,He=Re<=480?10:30),Ge=Ct+He)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Dt=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge=40,Mt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge=0,Mt=40)}}return Ee&&((Ne===void 0||!Ne)&&Se>0&&Se+Ge<Ot?Ot=Se:Ot-=Ge,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ne===void 0||!Ne)&&(ot-=Mt)),{width:Ot,height:ot}}function z(Ee,Se,Ne,$e,Ie){if(Ee.isScreenshoGenerator)return 1;var he=$e!==void 0&&$e,Xe=Ee.noScaleMargin!=null&&Ee.noScaleMargin,we=function(Dt){return Dt&&Dt!=="false"},Ot=we(Ee.autoHeight),ot=ie(Se,Ee.width,Ne,Ot,he&&window.GGBT_wsf_view||Xe,Ie),Re=parseInt(ot.width),Ge=Ee.width,He=Ee.height;if(Ge===void 0){var Ct=Se.querySelector(".appletParameters");Ct&&(Ge=Ct.offsetWidth,He=Ct.offsetHeight)}var Mt=Re/Ge,jt=he?1:ot.height/He;return Ne!==void 0&&!Ne&&(Mt=Math.min(1,Mt),jt=Math.min(1,jt)),Math.min(Mt,jt)}function it(Ee,Se,Ne){var $e=1,Ie,he=!1;if(Ee.hasOwnProperty("allowUpscale")&&(he=Ee.allowUpscale),Ee.hasOwnProperty("scale")&&($e=parseFloat(Ee.scale),(isNaN($e)||$e===null||$e===0)&&($e=1),$e>1&&(he=!0)),Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))Ie=z(Ee,Se,he,Ne,Ee.scaleContainerClass);else return $e;return he&&(!Ee.hasOwnProperty("scale")||$e===1)?Ie:Math.min($e,Ie)}function ye(Ee){var Se=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=Ee.getBoundingClientRect(),Ie=(Se-$e.width)/2,he=(Ne-$e.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 qe(Ee,Se){var Ne=Ee.querySelector(".appletParameters");if(Ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Se.id!==Ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(Ne.parentElement&&/fullscreen/.test(Ne.parentElement.className))return;var $e=it(Se,Ee);an()&&Ne.setAttribute("data-param-scale",$e);for(var Ie=null,he=0;he<Ee.childNodes.length;he++)if(Ee.childNodes[he].className!==void 0&&Ee.childNodes[he].className.match(/^applet_scaler/)){Ie=Ee.childNodes[he];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var Xe=Se.id!==void 0?Se.id:"ggbApplet",we=window[Xe];(we==null||!we.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN($e)&&$e!==1?(Ie.parentNode.style.width=Se.width*$e+"px",Ie.parentNode.style.height=Se.height*$e+"px",Kt(Ie,$e)):(Kt(Ie,1),Ie.parentNode.style.width=Se.width+"px",Ie.parentNode.style.height=Se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ye(Ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ne).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:an,positionCenter:ye,getScale:it,scaleElement:Kt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var an=n.location.search;return an.indexOf(J)!=-1||an.indexOf(K)!=-1}function q(an,Kt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(an){var Kt=s[L].bindings;s[L].bindings=function(){for(var ie=Kt?Kt():{},z=an[webModule.__softPermutationId],it=O;it<z.length;it++){var ye=z[it];ie[ye[O]]=ye[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var an=o.createElement(Q);if(an.id=L,an.style.cssText=R+S,an.tabIndex=-1,o.body.appendChild(an),t=an.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Kt=document.compatMode==U?V:W;t.write(Kt+X),t.close()}}}function w(an){function Kt(z){function it(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ye=it();if(ye){z();return}function qe(){if(!ye){if(!it())return;ye=!0,z(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),Ee&&clearInterval(Ee)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var Ee=setInterval(function(){qe()},$)}function ie(z){var it=u(),ye=it.body,qe=it.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=z,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ye.appendChild(qe)}Kt(function(){ie(an)})}webModule.__startLoadingFragment=function(an){return C(an)},webModule.__installRunAsyncCode=function(an){var Kt=u(),ie=Kt.body,z=Kt.createElement(_);z.language=ab,z.text=an,ie.appendChild(z),ie.removeChild(z)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=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(an){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(an){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(an){var Kt=c[an];return Kt==null?null:Kt},r=d,webModule.__errFn=e}function B(){function an(Ee){var Se=Ee.lastIndexOf(rb);Se==-1&&(Se=Ee.length);var Ne=Ee.indexOf(sb);Ne==-1&&(Ne=Ee.length);var $e=Ee.lastIndexOf(tb,Math.min(Ne,Se));return $e>=O?Ee.substring(O,$e+P):W}function Kt(Ee){if(!Ee.match(/^\w+:\/\//)){var Se=o.createElement(ub);Se.src=Ee+vb,Ee=an(Se.src)}return Ee}function ie(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function z(){for(var Ee=o.getElementsByTagName(_),Se=O;Se<Ee.length;++Se)if(Ee[Se].src.indexOf(xb)!=-1)return an(Ee[Se].src);return W}function it(){var Ee=o.getElementsByTagName(yb);return Ee.length>O?Ee[Ee.length-P].href:W}function ye(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var qe=ie();return qe==W&&(qe=z()),qe==W&&(qe=it()),qe==W&&ye()&&(qe=an(o.location.href)),qe=Kt(qe),qe}function C(an){return an.match(/^\//)||an.match(/^[a-zA-Z]+:\/\//)?an:webModule.__moduleBase+an}function D(){var an=[],Kt=O,ie=[],z=[];function it(Ee){var Se=z[Ee](),Ne=ie[Ee];if(Se in Ne)return Se;var $e=[];for(var Ie in Ne)$e[Ne[Ie]]=Ie;throw r&&r(Ee,$e,Se),null}if(__gwt_isKnownPropertyValue=function(Ee,Se){return Se in ie[Ee]},webModule.__getPropMap=function(){var Ee={};for(var Se in ie)ie.hasOwnProperty(Se)&&(Ee[Se]=it(Se));return Ee},webModule.__computePropValue=it,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ye;try{ye=Cb;var qe=ye.indexOf(Db);qe!=-1&&(Kt=parseInt(ye.substring(qe+P),$),ye=ye.substring(O,qe))}catch(Ee){}return webModule.__softPermutationId=Kt,C(ye+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})()},28735:function(an,Kt,ie){"use strict";ie.d(Kt,{Ax:function(){return qe},Ds:function(){return Ee},KI:function(){return Ne},SI:function(){return ye},f1:function(){return it}});var z=ie(74128);function it($e){let Ie=!0;if($e.length>0){for(let he=0;he<$e.length;he++)if($e[he].compile_success==0||!$e[he].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function ye($e,Ie=""){let he=[];for(let Xe=0;Xe<$e.length;Xe++){let we=$e[Xe],Ot=Ie?`${Ie}/${we.name}`:`${we.name}`;he.push({title:we.name,type:we.type,isLeaf:we.type!=="tree",key:Ot})}return he}function qe($e,Ie,he){for(let Xe=0;Xe<$e.length;Xe++){let we=$e[Xe];if(we.key===Ie){we.children=he;break}we.children&&qe(we.children,Ie,he)}return $e}function Ee($e,Ie,he){let Xe;return function(){let we=this,Ot=arguments,ot=function(){Xe=null,he||$e.apply(we,Ot)},Re=he&&!Xe;clearTimeout(Xe),Xe=setTimeout(ot,Ie),Re&&$e.apply(we,Ot)}}const Se=!0,Ne=z.Z.API_SERVER},16750:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Xe}});var z=ie(59301),it={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ye=ie(92310),qe=ie.n(ye),Ee=ie(29787),Se=ie(2859),Ne=ie(38147),$e=ie(65862),Ie=(we,Ot,ot)=>new Promise((Re,Ge)=>{var He=jt=>{try{Mt(ot.next(jt))}catch(Dt){Ge(Dt)}},Ct=jt=>{try{Mt(ot.throw(jt))}catch(Dt){Ge(Dt)}},Mt=jt=>jt.done?Re(jt.value):Promise.resolve(jt.value).then(He,Ct);Mt((ot=ot.apply(we,Ot)).next())}),Xe=({data:we,className:Ot,fullWidth:ot,style:Re={},onClose:Ge,onOk:He,showFullTools:Ct,noAssociationId:Mt})=>{const jt=(0,z.useRef)(null),Dt=(0,z.useRef)(null),et=(0,z.useRef)(null),yt=(0,z.useRef)(null),[Ue,Ft]=(0,z.useState)(!1),[vt,dt]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(et.current||(et.current=document.createElement("style"),document.head.appendChild(et.current)),we!=null&&we.visible?(document.body.setAttribute("data-custom","y-hidden"),et.current.innerHTML=" html { overflow-y: hidden; }",we!=null&&we.src&&St()):(document.body.removeAttribute("data-custom"),et.current&&(document.head.removeChild(et.current),et.current=null)),()=>{document.body.removeAttribute("data-custom"),et.current&&(document.head.removeChild(et.current),et.current=null)}),[we==null?void 0:we.visible]);const St=()=>Ie(void 0,null,function*(){Ft(!0),dt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,$e.ZJ)(we==null?void 0:we.src);jt.current.src="",jt.current.src=ue,jt.current.onload=function(){rt()},Ft(!1),dt("")}),Oe=ue=>Ie(void 0,null,function*(){Ft(!0),dt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const bt=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:we.title,file:ue.dataUrl}});bt!=null&&bt.id&&!Mt?(yield(0,Ne.ZP)(`/api/attachments/${we.id}/add_subitem.json`,{method:"post",body:{subitem_id:bt==null?void 0:bt.id,settings:JSON.stringify(ue.state)}})).status===0&&He():bt!=null&&bt.id&&He(bt),Ft(!1),dt("")}),nt=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Be=>{const tt=document.querySelector(Be.name);tt&&tt.setAttribute("title",Be.title)})},rt=()=>{Dt.current=new Se.hP(jt.current),Dt.current.targetRoot=yt.current,Dt.current.addEventListener("render",Oe),Dt.current.addEventListener("beforeclose",Ge),Ct&&(Dt.current.availableMarkerTypes=Dt.current.ALL_MARKER_TYPES,Dt.current.uiStyleSettings.redoButtonVisible=!0,Dt.current.uiStyleSettings.notesButtonVisible=!0,Dt.current.uiStyleSettings.zoomButtonVisible=!0,Dt.current.uiStyleSettings.zoomOutButtonVisible=!0,Dt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Dt.current.uiStyleSettings,Dt.current.show(),we!=null&&we.snapshotData&&Dt.current.restoreState(we.snapshotData),setTimeout(()=>{window.scrollTo(0,0),nt()},300)};return z.createElement(z.Fragment,null,(we==null?void 0:we.visible)&&z.createElement(Ee.Z,{spinning:Ue,tip:vt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:yt,className:qe()(it.imageDimensions,Ot,ot?it.fullWidth:""),style:Re},z.createElement("img",{className:it.img,ref:jt}))))}},99298:function(an,Kt,ie){"use strict";var z=ie(59301),it=ie(77019),ye=ie(5269),qe=ie(31691),Ee=ie(7939),Se=ie(95097),Ne=ie(96408),$e=ie(48136),Ie=ie(59301);const he=(0,z.forwardRef)(({callback:Xe,showSaveButton:we,value:Ot=""},ot)=>{const Re=(0,z.useRef)(),Ge=[{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 "}]}]}],He=[{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}`}]}]}],Ct=Dt=>{Re.current.setValue(Re.current.getValue()+" "+Dt.value+" ")},Mt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(it.Z,{className:Ne.Z.lists,gutter:[10,10]},Ge.map((Dt,et)=>Ie.createElement(ye.Z,{flex:"110px",className:Ne.Z.item},Ie.createElement("div",null,Ie.createElement(Se.Z,{value:`$$${Dt.value}$$`}),Dt.name),Ie.createElement("div",{className:Ne.Z.children},Dt.children.map((yt,Ue)=>Ie.createElement("div",{key:Ue},Ie.createElement("h1",null,yt.name),Ie.createElement(it.Z,{gutter:[10,10]},yt.data.map((Ft,vt)=>Ie.createElement(ye.Z,{key:vt,onClick:()=>Ct(Ft),className:Ne.Z.diamond},Ie.createElement(Se.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(it.Z,{className:Ne.Z.lists,gutter:[10,10]},He.map((Dt,et)=>Ie.createElement(ye.Z,{flex:"110px",className:Ne.Z.item},Ie.createElement("div",null,Ie.createElement(Se.Z,{value:"`$$"+Dt.value+"$$`"}),Dt.name),Ie.createElement("div",{className:Ne.Z.children},Dt.children.map((yt,Ue)=>Ie.createElement("div",{key:Ue},yt.name&&Ie.createElement("h1",null,yt.name),Ie.createElement(it.Z,{gutter:[10,10]},yt.data.map((Ft,vt)=>Ie.createElement(ye.Z,{key:vt,onClick:()=>Ct(Ft),className:Ne.Z.diamond},Ie.createElement(Se.Z,{value:"`$$"+Ft.value+"$$`"}))))))))))}],jt=()=>{var Dt=document.createElement("div");Dt.innerHTML=Re.current.getValue();var et=Dt.innerText;return Xe&&Xe(et),et};return(0,z.useImperativeHandle)(ot,()=>({getData:jt})),Ie.createElement("div",{className:Ne.Z.mathWrap},Ie.createElement(qe.default,{defaultActiveKey:"1",items:Mt}),Ie.createElement("math-field",{locale:"zh_cn",className:Ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Re,style:{width:800,marginTop:30,fontSize:18}},Ot||""),we&&Ie.createElement("div",{className:Ne.Z.button},Ie.createElement(Ee.ZP,{size:"large",onClick:jt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Kt.Z=he},2524:function(an,Kt,ie){"use strict";var z=ie(59301),it=ie(93314),ye=ie(7939),qe=Object.defineProperty,Ee=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,he=(ot,Re,Ge)=>Re in ot?qe(ot,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):ot[Re]=Ge,Xe=(ot,Re)=>{for(var Ge in Re||(Re={}))$e.call(Re,Ge)&&he(ot,Ge,Re[Ge]);if(Ne)for(var Ge of Ne(Re))Ie.call(Re,Ge)&&he(ot,Ge,Re[Ge]);return ot},we=(ot,Re)=>Ee(ot,Se(Re));const Ot=({img:ot,buttonProps:Re={},styles:Ge={},customText:He,ButtonText:Ct,ButtonClick:Mt,Buttonclass:jt,ButtonTwo:Dt,imgStyles:et,loading:yt=!1,className:Ue=""})=>z.createElement("section",{className:`tc animated fadeIn ${Ue}`,style:Xe({color:"#999",margin:"100px auto",visibility:yt?"hidden":"visible"},Ge)},z.createElement("img",{src:ot||it,style:we(Xe({},et),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},He||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ct&&z.createElement(ye.ZP,Xe({className:jt,onClick:Mt},Re),Ct),Dt&&Dt);Kt.Z=Ot},52918:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return jt}});var z=ie(59301),it={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ye=ie(7939),qe=ie(70557),Ee=ie(50258),Se=ie(25399),Ne=ie(65862),$e=ie(87513),Ie=ie(2524),he=ie(74128),Xe=ie(7310),we=ie(59301),Ot=Object.defineProperty,ot=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,He=(Dt,et,yt)=>et in Dt?Ot(Dt,et,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Dt[et]=yt,Ct=(Dt,et)=>{for(var yt in et||(et={}))Re.call(et,yt)&&He(Dt,yt,et[yt]);if(ot)for(var yt of ot(et))Ge.call(et,yt)&&He(Dt,yt,et[yt]);return Dt},Mt=(Dt,et,yt)=>new Promise((Ue,Ft)=>{var vt=Oe=>{try{St(yt.next(Oe))}catch(nt){Ft(nt)}},dt=Oe=>{try{St(yt.throw(Oe))}catch(nt){Ft(nt)}},St=Oe=>Oe.done?Ue(Oe.value):Promise.resolve(Oe.value).then(vt,dt);St((yt=yt.apply(Dt,et)).next())}),jt=({editOffice:Dt="view",data:et,issaver:yt,onSaver:Ue,theme:Ft,type:vt,filename:dt,monacoEditor:St,className:Oe,style:nt,close:rt,onClose:ue,hasMask:bt,disabledDownload:Be,onImgDimensions:tt,showNodata:Et,recordInfo:ge})=>{const[de,_e]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Wt,xt]=(0,z.useState)(""),[pe,Me]=(0,z.useState)(),ze=window.ENV==="build"?"/react/build":"",Nt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Zt=10*(1024*1024),Fe=(0,z.useRef)();et!=null&&et.startsWith("/api")&&vt!=="txt"&&(et=he.Z.API_SERVER+et);const Lt=oe=>oe.substring(oe.lastIndexOf("/")+1).split(".").pop();dt&&St&&(St.filename=dt),(0,z.useEffect)(()=>{var oe,se;const ne=(se=(oe=document.cookie)==null?void 0:oe.replace(/\s/g,""))==null?void 0:se.split(";");ne==null||ne.map(me=>{let Ce=me.split("=");Ce[0]==="_educoder_session"&&xt(Ce[1])})},[]),(0,z.useEffect)(()=>{vt==="office"&&(et.indexOf("bigfilescdn.")>-1||et.indexOf("bigfiles1")>-1?Me({url:et,fileType:Lt(et),model:et.indexOf("model=edit")?"edit":"view"}):et.indexOf("coze")>-1?Me({url:et,fileType:"doc",model:"view"}):ae())},[vt,et]);function st(oe){return Mt(this,null,function*(){oe.data.type==="pdfdata"&&(Ue(oe.data.data),window.removeEventListener("message",st,!1)),console.log("mess---:",oe.data)})}const ae=()=>Mt(void 0,null,function*(){console.log("data:",et);let oe=et;et.startsWith("http")||(oe=location.origin+oe);let se=new URL(oe).pathname.split("/").pop();const ne=yield(0,$e.gJ)({attachment_id:se});ne.url=Nt+ne.url,Me(ne)}),te=()=>{if(et.startsWith("http")||et.startsWith("blob:")){ee();return}(0,Ne.Sv)(dt||"educoder",et,dt)},ee=()=>{ge&&(0,Xe.fc)({id:ge==null?void 0:ge.id,watch_type:1,course_id:ge==null?void 0:ge.course_id}),(0,Ne.Nd)(dt||"educoder",decodeURIComponent(et))};return we.createElement("div",{style:Ct({},nt||{}),className:`${bt&&it.bgBlack} ${vt?it.wrp:"hide"}`},rt&&we.createElement("div",{className:it.close,ref:Fe},!!tt&&we.createElement(Se.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Fe.current},we.createElement("span",{onClick:()=>{ue(),tt()}},we.createElement("i",{className:"icon-yulanpizhu"}))),!Be&&we.createElement(Se.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Fe.current},we.createElement("span",{onClick:ee},we.createElement("i",{className:"icon-quxiaozhiding"}))),yt&&we.createElement(Se.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Fe.current},we.createElement("span",{className:"",onClick:()=>{const oe=document.getElementById("pdfiframe");window.addEventListener("message",st,!1),setTimeout(()=>{oe.contentWindow.postMessage("getData","*")},300)}},we.createElement("i",{className:"icon-baocun"}))),we.createElement(Se.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Fe.current},we.createElement("span",{className:"",onClick:()=>{ue()}},we.createElement("i",{className:"icon-guanbi1"})))),we.createElement("div",{className:`${it[Oe]} ${Oe} ${it.monaco} ${vt==="txt"?"show":"hide"}`},vt==="txt"&&we.createElement(we.Fragment,null,we.createElement(Ee.ZP,Ct({},St)))),vt==="audio"&&we.createElement("audio",{src:`${(et==null?void 0:et.indexOf("http://"))>-1||(et==null?void 0:et.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${et}`,autoPlay:!0}),vt==="video"&&we.createElement(we.Fragment,null,(et==null?void 0:et.indexOf("http"))>-1?we.createElement("video",{controls:!0,src:`${et}`,autoPlay:!0}):we.createElement("video",{controls:!0,src:`data:video/mp4;base64,${et}`,autoPlay:!0})),vt==="office"&&pe&&we.createElement("iframe",{src:`${ze}/office.html?key=${pe.key}&url=${btoa(pe.url)}&callbackUrl=${Nt+(pe.callbackUrl||"")}&fileType=${pe.fileType}&title=${pe.title||""}&model=${Dt}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Be}`}),vt==="html"&&we.createElement("iframe",{src:et+"&disposition=inline"}),vt==="pdf"&&we.createElement("iframe",{id:"pdfiframe",src:`${ze}/js/pdf/index.html?filename=${dt||"educoder.pdf"}&url=${encodeURIComponent(et)}&disabledDownload=${!!Be}&model=${Dt}`}),vt==="image"&&we.createElement("img",{src:`${(et==null?void 0:et.indexOf("http://"))>-1||(et==null?void 0:et.indexOf("https://"))>-1?"":"data:image/png;base64,"}${et}`}),(vt==="other"||vt==="download")&&we.createElement(we.Fragment,null,Et?we.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:we.createElement(ye.ZP,{icon:we.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Be},"\u4E0B\u8F7D")}):we.createElement(ye.ZP,{type:"primary",size:"middle",onClick:te,disabled:Be},we.createElement(qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),vt==="flowChart"&&we.createElement("div",{className:"embed"},we.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${et||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(an,Kt,ie){"use strict";ie.d(Kt,{z:function(){return St},Z:function(){return Oe}});var z=ie(59301),it=ie(48850),ye=ie(49142),qe=ie(64018),Ee=ie(16471),Se=ie(74128),Ne=ie(65862),$e=ie(15342),Ie=ie(44104),he=ie(7939),Xe=ie(1012),we=ie(52918),Ot=ie(59301),Re=({html:nt})=>{const rt=(0,z.useRef)(null),ue=(0,z.useRef)(null),bt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,z.useEffect)(()=>{const Be=rt.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=nt,Be.appendChild(ue.current);const tt=document.createElement("style");return tt.textContent=bt,Be.appendChild(tt),()=>{Be.innerHTML=""}},[]),(0,z.useEffect)(()=>{ue.current&&(ue.current.innerHTML=nt)},[nt]),Ot.createElement("div",{ref:rt})};function Ge(nt){const rt=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ue=new RegExp(`\\b(${rt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return nt.replace(ue,"").trim()}var He={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ct=Object.defineProperty,Mt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,et=(nt,rt,ue)=>rt in nt?Ct(nt,rt,{enumerable:!0,configurable:!0,writable:!0,value:ue}):nt[rt]=ue,yt=(nt,rt)=>{for(var ue in rt||(rt={}))jt.call(rt,ue)&&et(nt,ue,rt[ue]);if(Mt)for(var ue of Mt(rt))Dt.call(rt,ue)&&et(nt,ue,rt[ue]);return nt};const Ue="@\u2581\u2581@",Ft="@\u2581@",vt=/<pre[^>]*>/g;function dt(nt){let rt=document.createElement("div");return rt.innerHTML=nt,rt.childNodes.length===0?"":rt.childNodes[0].nodeValue}const St=(nt,rt)=>{nt=nt||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,bt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Be=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,tt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return rt?nt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Et,ge,de,_e,Wt,xt,pe)=>{const Me=ge||_e||xt,ze=de||Wt||pe||"?";return Se.Z.API_SERVER+"/api/attachments/"+Me+ze+"&t="+(0,Ne.Jn)(Me,Date.now())+(Et.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(nt=nt.replace(tt,(Et,ge,de,_e,Wt,xt,pe)=>{const Me=ge||_e||xt,ze=de||Wt||pe||"?";return Se.Z.API_SERVER+"/attachments/download/"+Me+ze+"&t="+(0,Ne.Jn)(Me,Date.now())+(Et.indexOf(")")>-1?")":"&")}).replace(ue,(Et,ge,de,_e,Wt,xt,pe)=>{const Me=ge||_e||xt,ze=de||Wt||pe||"?";return Se.Z.API_SERVER+"/api/attachments/"+Me+ze+"&t="+(0,Ne.Jn)(Me,Date.now())+(Et.indexOf(")")>-1?")":"&")}).replace(bt,(Et,ge,de,_e,Wt)=>{const xt=ge||_e,pe=de||Wt||"";return'"'+Se.Z.API_SERVER+"/api/attachments/"+xt+pe+xt+pe+"&t="+(0,Ne.Jn)(xt,Date.now())}).replace(Be,(Et,ge,de,_e,Wt)=>{const xt=ge||_e,pe=de||Wt||"";return"("+Se.Z.API_SERVER+"/files/uploads/"+xt+pe+xt+pe+"&t="+(0,Ne.Jn)(xt,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,`
`),nt)};var Oe=({value:nt="",edit:rt=!1,className:ue,showTextOnly:bt,showLines:Be,style:tt={},stylesPrev:Et={},highlightKeywords:ge,showProgramFill:de,isProgramFill:_e,disabledFill:Wt=!1,programFillValue:xt,openEditor:pe=()=>{},onFillChange:Me=At=>{},onFillBlur:ze=()=>{},onFillFocus:Nt=()=>{}})=>{let At=Ge(String(nt||""));const Zt=(0,z.useRef)(),Fe=(0,z.useRef)(),[Lt,st]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,Xe.Z)()),ne={},me=Pt=>/<style[\s\S]*?>/i.test(Pt||""),Ce=(Pt,nn,Ut)=>{const Le=document.createElement(Pt===Ft?"input":"textarea");Le.style.width="100%",Le.style.height=Pt===Ft?"40px":"151px",Le.rows=5,Le.spellcheck=!1,Le.name="edu-program-fill",Le.placeholder="\u8BF7\u8F93\u5165",Le.dataset.id=nn;const ut=Object.keys(ne).length;return ne[ut]=Le,`<span class="edu-program-fill-wrap ${Pt===Ft?"":"show"}" style="width:${Pt===Ft?"600px":"100%"}" title=${Ut||""}><span>${Le.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function mt(Pt){return Pt=Pt.replace(/!\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(/\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Pt=Pt.replace(/<embed.*?>/g,""),Pt=Pt.replace(/<img.*?>/g,""),Pt=Pt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Pt=Pt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Pt=Pt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Pt=Pt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Pt}const Pe=Pt=>!bt&&me(At)?Pt:Pt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(nn,Ut){let Le=Ut.replace(/(\n|\r)/g,"").split("}"),ut=[];return Le.map(Rt=>{Rt!=""&&ut.push(`.${se.current} ${Rt}`)}),`<style>${ut.join("}")}</style>`}),Ke=(0,z.useMemo)(()=>{try{const Le=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ut=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Rt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,$t=/\(\/attachments\/download\//g;At=At.replace($t,"("+Se.Z.API_SERVER+"/attachments/download/").replace(Le,"("+Se.Z.API_SERVER+"/api/attachments/").replace(ut,'"'+Se.Z.API_SERVER+"/api/attachments/").replace(Rt,'"'+Se.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,`
`),Zt.current.style.display="none"}catch(Le){}if(de){let Le=-1;return At=At.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(ut,Rt,$t){var De;return++Le,Ce(ut,Le,(De=xt==null?void 0:xt[Le])==null?void 0:De.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Pe(At||"")}</pre>`}let Pt=Pe(At);Pt=(0,ye.ZP)(Pt);const nn=(0,ye.ez)();At.match(/\[TOC\]/)&&(Pt=Pt.replace("<p>[TOC]</p>",(0,ye.Qv)()),(0,ye.Iy)()),Pt=Pt.replace(/(__special_katext_id_\d+__)/g,(Le,ut)=>{const{type:Rt,expression:$t}=nn[ut];return(0,$e.renderToString)(dt($t)||"",{displayMode:Rt==="block",throwOnError:!1,output:"html"})}),Pt=Pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ye.AL)();const Ut=document.createElement("div");if(Ut.innerHTML=Pt,bt)return Ut.innerText;if(ge){const Le=ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Qt(Ut,Le),Ut.innerHTML}return setTimeout(()=>un(),500),Ut.innerHTML},[At,ge]);(0,z.useEffect)(()=>{Xt.current&&Xt.current.querySelectorAll(["input","textarea"]).forEach(nn=>{nn.oninput=ft,nn.onblur=It,nn.onfocus=wt})},[ee]),(0,z.useEffect)(()=>{var Pt,nn,Ut,Le,ut;if(xt!=null&&xt.length)try{const Rt=Xt.current.querySelectorAll(".edu-program-fill-score"),$t=Xt.current.querySelectorAll('[name="edu-program-fill"]');for(const[De,Ye]of $t.entries())Ye.value=((Pt=xt==null?void 0:xt[De])==null?void 0:Pt.value)||"",((nn=xt==null?void 0:xt[De])==null?void 0:nn.type)==="warning"?Ye.className="program-fill-warning":((Ut=xt==null?void 0:xt[De])==null?void 0:Ut.type)==="success"?Ye.className="program-fill-success":Ye.className="";for(const[De,Ye]of Rt.entries())Ye.innerHTML=(Le=xt==null?void 0:xt[De])!=null&&Le.score?`${(ut=xt==null?void 0:xt[De])==null?void 0:ut.score}\u5206`:"";oe(xt)}catch(Rt){console.log(Rt,"error")}},[xt]);const ft=Pt=>{ee[Pt.target.dataset.id]=ee[Pt.target.dataset.id]||{},ee[Pt.target.dataset.id].value=Pt.target.value,oe([...ee]),Me(ee,Pt.target.dataset.id)},It=Pt=>{ee[Pt.target.dataset.id]=ee[Pt.target.dataset.id]||{},ee[Pt.target.dataset.id].value=Pt.target.value,oe([...ee]),ze(ee,Pt.target.dataset.id)},wt=Pt=>{ee[Pt.target.dataset.id]=ee[Pt.target.dataset.id]||{},ee[Pt.target.dataset.id].value=Pt.target.value,oe([...ee]),Nt(ee,Pt.target.dataset.id)};function Qt(Pt,nn){return Pt.childNodes.forEach(Ut=>{var Le;if(Ut.childNodes.length>0)Qt(Ut,nn);else if(Ut.nodeName!=="IMG")if(Ut.innerHTML)Ut.innerHTML=(Le=Ut.innerHTML)==null?void 0:Le.replace(new RegExp(nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ut=document.createElement("span");ut.innerHTML=Ut.textContent.replace(new RegExp(nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ut.replaceWith(ut)}})}const Xt=(0,z.useRef)();ye.jb.WebkitLineClamp=Be,Be&&(tt=yt(yt({},tt),ye.jb));function Gt(Pt){let nn=Pt.target;if(nn.tagName.toUpperCase()==="A"){let Ut=nn.getAttribute("href");if(Ut.indexOf("office")>-1)Pt.preventDefault(),st(Ut),te("office");else if(Ut.indexOf("application/pdf")>-1)Pt.preventDefault(),st(Ut),te("pdf");else if(Ut.indexOf("text/html")>-1)Pt.preventDefault(),st(Ut),te("html");else if(Ut.startsWith("#")){Pt.preventDefault();let Le=document.getElementById(Ut.replace("#",""));Le&&Le.scrollIntoView(!0)}}}const un=()=>{var Pt;const nn=(Pt=Xt.current)==null?void 0:Pt.querySelectorAll("video");nn==null||nn.forEach(Ut=>{if(Ut.oncontextmenu=()=>!1,Ut.src.indexOf(".m3u8")>-1&&!Ut.canPlayType("application/vnd.apple.mpegurl")){if(Ee.ZP.isSupported()){var Le=new Ee.ZP;Le.loadSource(Ut.src),Le.attachMedia(Ut)}}})};(0,z.useEffect)(()=>{if(Xt.current&&Ke&&Ke.match(vt)&&window.PR.prettyPrint(),Xt.current)return Xt.current.addEventListener("click",Gt),()=>{var Pt;(Pt=Xt.current)==null||Pt.removeEventListener("click",Gt),(0,ye.AL)(),(0,ye.Iy)()}},[Ke,Xt.current,Gt]);const rn=Pt=>{Pt.target.nodeName==="IMG"&&Pt.target.className.indexOf("draw-flowchart")>-1?(Zt.current.style.zIndex=1,Zt.current.style.display="flex",Zt.current.style.width=Pt.target.clientWidth+"px",Zt.current.style.height=Pt.target.clientHeight+"px",Zt.current.style.top=Pt.target.offsetTop+"px",Zt.current.style.left=Pt.target.offsetLeft+"px",Pt.target.id&&(Fe.current=Pt.target.id)):Zt.current.style.display="none"},ln=()=>{Zt.current.style.display="none"};return(0,z.useEffect)(()=>{var Pt;const nn=Ut=>{Ut.preventDefault(),Ut.clipboardData.setData("text",window.getSelection().toString())};return(Pt=Xt.current)==null||Pt.addEventListener("copy",nn),()=>{var Ut;(Ut=Xt.current)==null||Ut.removeEventListener("copy",nn)}},[Xt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:ln},bt&&z.createElement("div",{ref:Xt,className:`${He.mdBody} `},Ke),!bt&&!me(Ke)&&z.createElement("div",{ref:Xt,style:yt({},tt),onMouseOver:rn,className:`${ue||""} ${Wt?"disabled-fill":""} markdown-body ${He.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!bt&&me(Ke)&&z.createElement(Re,{html:Ke}),z.createElement("div",{ref:Zt,className:`${He.button} ${rt?"":He.previewFlowChart}`},z.createElement(Ie.Z,null,z.createElement(he.ZP,{onClick:()=>{rt?pe(Fe.current):(st(Fe.current),te("flowChart"))}},rt?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(we.Z,{close:!0,data:Lt,type:Lt!=null&&Lt.length?ae:"",style:yt({},Et),onClose:()=>st("")}))}},85533:function(an,Kt,ie){"use strict";ie.d(Kt,{h:function(){return Dt}});var z=ie(59301),it=ie(82326),ye=ie(28284),qe=ie(7939),Ee=ie(89780),Se=ie.n(Ee),Ne=ie(45559),$e=ie(42313),Ie=Object.defineProperty,he=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Re=(et,yt,Ue)=>yt in et?Ie(et,yt,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):et[yt]=Ue,Ge=(et,yt)=>{for(var Ue in yt||(yt={}))Ot.call(yt,Ue)&&Re(et,Ue,yt[Ue]);if(we)for(var Ue of we(yt))ot.call(yt,Ue)&&Re(et,Ue,yt[Ue]);return et},He=(et,yt)=>he(et,Xe(yt));const Ct=it.default.Option,Mt={labelCol:{span:4},wrapperCol:{span:20}},jt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Kt.Z=({callback:et,onCancel:yt})=>{const[Ue,Ft]=(0,z.useState)("python");function vt(St){Ft(jt[St][1])}function dt(St){et(St)}return z.createElement(ye.default,He(Ge({},Mt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:dt,style:{width:500}}),z.createElement(ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(it.default,{getPopupContainer:St=>St.parentNode,onChange:vt},Object.keys(jt).map(St=>z.createElement(Ct,{key:St,value:St},jt[St][0])))),z.createElement(ye.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(Dt,{mode:Ue})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(qe.ZP,{type:"ghost",onClick:yt},"\u53D6\u6D88")))};function Dt({value:et,onChange:yt,mode:Ue,options:Ft={}}){const vt=(0,z.useRef)(),[dt,St]=(0,z.useState)();return(0,z.useEffect)(()=>{if(dt){let Oe=function(nt){const rt=nt.getValue();yt&&yt(rt)};return dt.on("change",Oe),()=>{dt.off("change",Oe)}}},[dt,yt]),(0,z.useEffect)(()=>{dt&&dt.setOption("mode",Ue)},[dt,Ue]),(0,z.useEffect)(()=>{dt&&(et!==dt.getValue()||et==="")&&setTimeout(()=>{dt.setValue(et||"")},300)},[dt,et]),(0,z.useEffect)(()=>{if(vt.current&&!dt){const Oe=Se().fromTextArea(vt.current,Ge({mode:Ue,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ft));St(Oe)}},[vt.current,dt]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:vt}))}},25374:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return En}});var z=ie(59301),it=ie(65582),ye=ie(89780),qe=ie.n(ye),Ee=ie(76374),Se=ie(45559),Ne=ie(6313),$e=ie(25717),Ie=ie(99498),he=ie(25419),Xe=ie(67549),we=ie(95097),Ot=({value:qt="",className:zt,showTextOnly:Tt,showLines:Vt,style:tn={}})=>{const xn=(0,z.useMemo)(()=>"",[qt]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:xn}}))},ot=Object.defineProperty,Re=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,jt=(qt,zt,Tt)=>zt in qt?ot(qt,zt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):qt[zt]=Tt,Dt=(qt,zt)=>{for(var Tt in zt||(zt={}))Ct.call(zt,Tt)&&jt(qt,Tt,zt[Tt]);if(He)for(var Tt of He(zt))Mt.call(zt,Tt)&&jt(qt,Tt,zt[Tt]);return qt},et=(qt,zt)=>Re(qt,Ge(zt));let yt=[{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 Ue({onActionCallback:qt,title:zt,icon:Tt,actionName:Vt,className:tn="",children:xn}){function wn(){qt(Vt)}return z.createElement("a",{title:zt,className:tn,onClick:wn},z.createElement("i",{className:`${Tt}`}),xn)}var Ft=({watch:qt,showNullButton:zt,showNullProgramButton:Tt,onActionCallback:Vt,fullScreen:tn,insertTemp:xn,hidetoolBar:wn,extraUse:mn})=>{const vn=[...yt,{title:`${qt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${qt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!wn&&vn.map((Hn,zn)=>z.createElement("li",{key:zn},Hn.actionName?z.createElement(Ue,et(Dt({},Hn),{onActionCallback:Vt})):z.createElement("span",{className:"v-line"}))),zt?z.createElement("li",null,z.createElement(Ue,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Vt},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Tt?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(Ue,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Vt},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(Ue,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Vt},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,xn&&z.createElement("li",null,z.createElement(Ue,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${xn}`,onActionCallback:Vt},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),mn&&z.createElement("li",null,mn),z.createElement("li",{className:"btn-full-screen"},z.createElement(Ue,{icon:`${tn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:tn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Vt})))},vt=ie(57261),dt=ie(28284),St=ie(37568),Oe=ie(7939),nt=Object.defineProperty,rt=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Et=(qt,zt,Tt)=>zt in qt?nt(qt,zt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):qt[zt]=Tt,ge=(qt,zt)=>{for(var Tt in zt||(zt={}))Be.call(zt,Tt)&&Et(qt,Tt,zt[Tt]);if(bt)for(var Tt of bt(zt))tt.call(zt,Tt)&&Et(qt,Tt,zt[Tt]);return qt},de=(qt,zt)=>rt(qt,ue(zt));const _e={labelCol:{span:4},wrapperCol:{span:20}};var Wt=({callback:qt,onCancel:zt})=>{function Tt(Vt){qt(Vt)}return z.createElement(dt.default,de(ge({},_e),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Tt,style:{width:500}}),z.createElement(dt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(St.default,null)),z.createElement(dt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(St.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Oe.ZP,{type:"ghost",onClick:zt},"\u53D6\u6D88")))},xt=ie(85533),pe=ie(45053),Me=ie(62957),ze=ie(77019),Nt=ie(16750),At=ie(59301),Zt=({callback:qt,onCancel:zt})=>{const Tt=document.createElement("canvas"),Vt=Tt.getContext("2d");Tt.width=1e3,Tt.height=800,Vt.fillStyle="#ffffff",Vt.fillRect(0,0,Tt.width,Tt.height);const tn=Tt.toDataURL("image/png");return At.createElement(Me.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},At.createElement(ze.Z,{style:{height:"100vh"}},At.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:tn,visible:!0,title:String(Date.now())},onOk:xn=>{qt({src:xn.url})},onClose:zt})))},Fe=ie(36207),Lt=ie(5269),st=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:qt,editImgId:zt,callback:Tt},Vt)=>{let tn=(0,z.useRef)(),xn=(0,z.useRef)(),wn=(0,z.useRef)(),mn=(0,z.useRef)(!1);const vn=(0,z.useRef)(!1);console.log("ref:",Vt);const[Hn,zn]=(0,z.useState)(0),[Bt,Jt]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{zn(1)},[]),(0,z.useImperativeHandle)(Vt,()=>({setHeight:Jt})),te.createElement("div",{ref:vn,className:"body-overflow-initial"},te.createElement(Fe.Z,{width:"100vw",height:Bt,footer:null,closable:!0,placement:"bottom",open:!!Hn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(On=>{Tt({src:`/api/attachments/${On}`,id:On})})},title:te.createElement(ze.Z,{align:"middle"},te.createElement(Lt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Lt.Z,{onClick:()=>{Jt(Bt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Lt.Z,{onClick:()=>{window.saveDrawData(On=>{if(On===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}}),Tt({src:`/api/attachments/${On}`,id:On,disabledClose:!0})})}},te.createElement(Oe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${zt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:xn})))}),se=ie(74128),ne=ie(47889),me=ie(4875);const Ce=ne.ZP.Group,mt={margin:"0 8px"};var Pe=({callback:qt,onCancel:zt})=>{function Tt(Vt){qt(Vt)}return z.createElement(dt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Tt},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:mt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:mt},"\u884C\u6570"),z.createElement(dt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(me.Z,null)),z.createElement("span",{style:mt},"\u5217\u6570"),z.createElement(dt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(me.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(dt.default.Item,{name:"align"},z.createElement(Ce,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Oe.ZP,{type:"ghost",onClick:zt},"\u53D6\u6D88")))},Ke=ie(58755),ft=ie(93510),It=ie.n(ft),Qt=(0,z.forwardRef)(({use3d:qt,width:zt,height:Tt,callback:Vt,showSaveButton:tn},xn)=>{const wn=(0,z.useRef)(),mn=(0,z.useRef)(),[vn,Hn]=(0,z.useState)(!1),zn=(0,z.useRef)({id:wn,appName:"graphing",width:zt||1e3,height:Tt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{mn.current=new(It())(zn.current,!0),window.onload=function(){mn.current.inject("applet_container")}},[]);const Bt=()=>{var Jt=window.ggbApplet.getPNGBase64(1,!0,72);return Vt&&Vt(Jt),Jt};return(0,z.useEffect)(()=>{zn.current.appName=vn?"3D":"graphing",mn.current.inject("applet_container")},[vn]),(0,z.useEffect)(()=>{Hn(qt)},[qt]),(0,z.useImperativeHandle)(xn,()=>({getImgData:Bt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:wn}),z.createElement(ze.Z,{align:"middle"},z.createElement(Lt.Z,{flex:1},z.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:vn,onChange:Jt=>Hn(Jt)})),z.createElement(Lt.Z,null,z.createElement(Oe.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Xt=ie(99298);const Gt="link",un="upload-image",rn="add-flowchart",ln="draw-image",Pt="add-flowchart",nn="code-block",Ut="add-table",Le="------------",ut={default:Le,left:`:${Le}`,center:`:${Le}:`,right:`${Le}:`};var Rt=ie(31103),$t=ie(65862);function De(){}let Ye=0;const pt=1e4,kt="\u2581",Yt="@\u2581\u2581@",dn="@\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`,Pn=["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 cn(qt){return/^\d+$/.test(qt)?`${qt}px`:qt}const gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$n={[gn+"-B"]:"bold",[gn+"-I"]:"italic"},An={[Gt]:"\u6DFB\u52A0\u94FE\u63A5",[nn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[un]:"\u6DFB\u52A0\u56FE\u7247",[ln]:"\u6DFB\u52A0\u753B\u56FE",[rn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ut]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var En=({defaultValue:qt="",onChange:zt,width:Tt="100%",height:Vt=400,miniToolbar:tn=!1,isFocus:xn=!1,watch:wn,insertTemp:mn,mode:vn="markdown",id:Hn="markdown-editor-id",showResizeBar:zn=!1,noStorage:Bt=!1,showNullButton:Jt=!1,showNullProgramButton:On=!1,hidetoolBar:Mn=!1,fullScreen:Te=!1,onBlur:We,onCMBeforeChange:xe,onFullScreen:ke,className:Ae="",disablePaste:je=!1,disabled:be=!1,disabledFill:Je=!1,placeholder:lt="",values:gt="",extraUse:at,onAddBlank:Ze})=>{const[Ve,ct]=(0,z.useState)(null),[sn,en]=(0,z.useState)(qt),[on,Fn]=(0,z.useState)(wn),[Wn,Un]=(0,z.useState)(Te),[Rn,Bn]=(0,z.useState)(""),[Nn,Gn]=(0,z.useState)(0),[qn,Xn]=(0,z.useState)(Vt),[Jn,kn]=(0,z.useState)(!1),[nr,_n]=(0,z.useState)(0),[dr,pr]=(0,z.useState)(0),sr=(0,z.useRef)(),ur=(0,z.useRef)(),yr=(0,z.useRef)(),lr=(0,z.useRef)(),fr=(0,z.useRef)(),tr=(0,z.useRef)(),mr=(0,it.useDispatch)();(0,z.useEffect)(()=>{const yn=window.scrollY||window.pageYOffset;en(gt),Ve==null||Ve.setValue(gt),window.scrollTo(0,yn)},[gt]),(0,z.useEffect)(()=>{ke==null||ke(Wn)},[Wn]),(0,z.useEffect)(()=>{if(sr.current){let yn=function(Tn,jn){var cr;if(je){jn.preventDefault();return}const Mr=jn.clipboardData;if(Mr){const Ar=Mr.types.toString(),Rr=Mr.items;if(Ar==="Files"||Mr.types.indexOf("Files")>-1){if(jn.preventDefault(),vn=="stex")return;try{let Lr=Rr[1];((cr=Rr[0])==null?void 0:cr.kind)==="file"&&(Lr=Rr[0]);const Fr=Lr.getAsFile(),Gr=Fr.name.split(".").pop();(0,pe.I)(Fr,jr=>{var Kr,ti,Ei;jr.id?((Kr=Fr==null?void 0:Fr.type)==null?void 0:Kr.indexOf("image"))>-1?hn.replaceSelection(`<img width="100%" src="/api/attachments/${jr.id}?type=${jr.content_type})" alt="" />`):((ti=Fr==null?void 0:Fr.type)==null?void 0:ti.indexOf("video"))>-1?hn.replaceSelection(`<video width="100%" controls src="/api/attachments/${jr.id}"></video>`):((Ei=Fr==null?void 0:Fr.type)==null?void 0:Ei.indexOf("pdf"))>-1?hn.replaceSelection(`<a href="/api/attachments/${jr.id}?type=${Fr.type}&disposition=inline" target="_blank">${Fr.name}</a>`):Pn.includes(Gr)?hn.replaceSelection(`<a href="/api/attachments/${jr.id}?type=office&disposition=inline" target="_blank">${Fr.name}</a>`):hn.replaceSelection(`[${Fr.name}](/api/attachments/${jr.id}?type=${jr.content_type})`):(jr==null?void 0:jr.status)===401&&(document.location.href="/user/login")})}catch(Lr){st.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const hn=qe().fromTextArea(sr.current,{mode:vn,lineNumbers:!tn,lineWrapping:!0,value:qt,autoCloseTags:!0,autoCloseBrackets:!0});return hn.on("keyup",function(Tn,jn){jn.keyCode===8&&(Tn.getValue()==""?hn.setOption("placeholder",lt):hn.setOption("placeholder",null))}),hn.on("keydown",function(Tn,jn){if(jn.keyCode===8){var cr=Hr(Tn);cr&&jn.preventDefault()}}),xn&&hn.focus(),hn.on("paste",yn),be&&hn.on("beforeChange",function(Tn,jn){(jn.origin==="paste"||jn.origin==="+input")&&jn.cancel()}),ct(hn),()=>{hn.off("paste",yn)}}},[]);const br=(0,z.useCallback)(()=>{if(ur.current)try{}catch(yn){console.log(yn,"---- to set md editor body height")}},[qn,ur,Wn]);(0,z.useEffect)(()=>{function yn(){let hn=new Ee.Z(Tn=>{for(let jn of Tn)(jn.target.offsetHeight>0||jn.target.offsetWidth>0)&&(br(),Ve.setSize("100%","100%"),Ve.refresh())});return hn.observe(sr.current.parentElement),hn}if(Ve){const hn=yn();return()=>{var Tn,jn;(Tn=sr.current)!=null&&Tn.parentElement&&hn.unobserve((jn=sr.current)==null?void 0:jn.parentElement)}}},[Ve,br]),(0,z.useEffect)(()=>{if(Ve){let yn=[];for(const[hn,Tn]of Object.entries($n)){let jn={[hn]:()=>{Er(Tn)}};yn.push(jn),Ve.addKeyMap(jn)}return()=>{for(let hn of yn)Ve.removeKeyMap(hn)}}},[Ve]),(0,z.useEffect)(()=>{Te!==Wn&&Un(Te)},[Te]),(0,Rt.Z)(()=>{if(!Bt&&Nn>0){let yn=new Date().getTime(),hn=window.sessionStorage.getItem(Hn);yn>=Nn+pt&&(!hn||hn!==sn)&&(window.sessionStorage.setItem(Hn,sn),kn(!0))}},pt),(0,z.useEffect)(()=>{Fn(wn)},[Ve,wn]),(0,z.useEffect)(()=>{Ve&&xn&&Ve.focus()},[Ve,xn]),(0,z.useEffect)(()=>{if(on&&Ve){let yn=function(Tn){let jn=Tn.target;if(lr.current){let cr=jn.scrollTop/jn.scrollHeight;lr.current.scrollTop=lr.current.scrollHeight*cr}};const hn=Ve.getScrollerElement();return hn.addEventListener("scroll",yn),()=>{hn.removeEventListener("scroll",yn)}}},[Ve,on]),(0,z.useEffect)(()=>{if(Ve&&xe){let yn=function(hn,Tn){xe(hn,Tn)};return Ve.on("beforeChange",yn),()=>{Ve.off("beforeChange",yn)}}},[Ve,xe]),(0,z.useEffect)(()=>{if(Ve&&We){let yn=function(){We(Ve.getValue())};return Ve.on("blur",yn),()=>{Ve.off("blur",yn)}}},[Ve,We]);function Hr(yn,hn){var Tn=yn.getDoc(),jn=Tn.getCursor(),cr=Tn.getLine(jn.line),Mr=cr.charAt(jn.ch-1),Ar=cr.lastIndexOf("@\u2581@",jn.ch),Rr=cr.lastIndexOf("@\u2581\u2581@",jn.ch),Lr=Ar>Rr?Ar:Rr,Fr=Ar>Rr?3:4;if(Yt.indexOf(Mr)===-1)return null;if(console.log("change1:",hn,yn,cr,jn,Lr,Ar,Rr,Mr),Lr>=0&&jn.ch-Lr<5){var Gr=Lr+Fr;return Tn.replaceRange("",{line:jn.line,ch:Lr},{line:jn.line,ch:Gr}),{line:jn.line,ch:Gr}}return null}(0,z.useEffect)(()=>{if(Ve){let yn=function(hn,Tn){const jn=hn.getValue();en(jn),Gn(new Date().getTime()),hn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),zt&&(On?zt(jn,Sn(jn)):zt(jn))};return Ve.on("change",yn),()=>{Ve.off("change",yn)}}},[Ve,zt]),(0,z.useEffect)(()=>{if(Ve)if(qt==null)Ve.setValue(""),en("");else{const yn=window.scrollY||window.pageYOffset;qt!==Ve.getValue()&&(Ve.setValue(qt),en(qt),Ve.setCursor(be?1:Ve.lineCount(),0),window.scrollTo(0,yn))}},[Ve,qt]);const Er=(0,z.useCallback)(yn=>{const hn=Ve.getCursor(),Tn=Ve.getSelection();let jn=Tn.split(`
`);switch(yn){case"bold":return Ve.replaceSelection("**"+Tn+"**"),Tn===""&&Ve.setCursor(hn.line,hn.ch+2),Ve.focus();case"italic":return Ve.replaceSelection("*"+Tn+"*"),Tn===""&&Ve.setCursor(hn.line,hn.ch+1),Ve.focus();case"code":return Ve.replaceSelection("`"+Tn+"`"),Tn===""&&Ve.setCursor(hn.line,hn.ch+1),Ve.focus();case"inline-latex":return(0,$t.Ye)(mr)?void 0:(Bn("inline-latex"),Ve.focus());case"latex":return Ve.replaceSelection("```latex\n"+Tn+"\n```"),Ve.setCursor(hn.line+1,Tn.length+1),Ve.focus();case"line-break":return Ve.replaceSelection(`<br/>
`),Ve.focus();case"list-ul":return Tn===""?Ve.replaceSelection("- "+Tn):Ve.replaceSelection(jn.map(cr=>cr===""?"":`- ${cr}`).join(`
`)),Ve.focus();case"list-ol":return Tn===""?Ve.replaceSelection("1. "+Tn):Ve.replaceSelection(jn.map((cr,Mr)=>cr===""?"":`${Mr+1}. ${cr}`).join(`
`)),Ve.focus();case"add-null-ch":Ze==null||Ze();return;case"add-signal":return Tn===""&&Ve.setCursor(hn.line,hn.ch),Ve.replaceSelection(dn),Ve.focus();case"add-multiple":return Tn===""&&Ve.setCursor(hn.line,hn.ch),Ve.replaceSelection(Yt),Ve.focus();case"inster-template-1":return Tn===""&&Ve.setCursor(hn.line,hn.ch),Ve.replaceSelection(Dn),Ve.focus();case"eraser":return Ve.setValue(""),Ve.focus();case"trigger-watch":return Fn(!on),Ve.focus();case"trigger-full-screen":return Un(!Wn),Ve.focus();case Gt:Bn(Gt);return;case nn:Bn(nn);return;case un:Bn(un);return;case ln:Bn(ln);return;case"maths-latex":if((0,$t.Ye)(mr))return;Bn("maths-latex");return;case rn:fr.current="",sessionStorage.removeItem("file_id"),Bn(rn);return;case Ut:Bn(Ut);return;default:throw new Error}},[Ve,on,Wn]),Tr=(0,z.useCallback)((yn,hn)=>{var Tn,jn,cr,Mr,Ar,Rr;yn!=null&&yn.disabledClose||Bn("");const{src:Lr,alt:Fr,id:Gr}=yn||{};switch(Rn){case Gt:const{title:Ni,link:xi}=yn;return Ve.replaceSelection(`[${Ni}](${xi})`),Ve.focus();case nn:const{language:si,content:Ri}=yn;return Ve.replaceSelection(["```"+si,Ri,"```"].join(`
`)),Ve.focus();case"maths-latex":for(var jr=atob(yn),Kr=new Uint8Array(jr.length),ti=0;ti<jr.length;ti++)Kr[ti]=jr.charCodeAt(ti);var Ei=new Blob([Kr],{type:"image/png"});(0,pe.I)(Ei,wr=>{wr.id?Ve.replaceSelection(`![,](/api/attachments/${wr.id}?type=${wr.content_type})`):(wr==null?void 0:wr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,$t.Ye)(mr))return;Ve.replaceSelection("`$$"+yn+"$$`");break;case Pt:if(!Gr)return;Ve.getValue().indexOf(Lr)===-1?Ve.replaceSelection(`<center><img id="${Gr}" width="80%" src="${Lr}" class="draw-flowchart" alt="${Fr||""}" /></center>`):document.getElementById(Gr).src=se.Z.API_SERVER+Lr+"?t="+Date.now();break;case un:case ln:const Wr=hn,_i=(cr=(jn=(Tn=Wr==null?void 0:Wr.name)==null?void 0:Tn.split("."))==null?void 0:jn.pop)==null?void 0:cr.call(jn);return((Mr=Wr==null?void 0:Wr.type)==null?void 0:Mr.indexOf("image"))>-1||!(Wr!=null&&Wr.type)?Wr!=null&&Wr.align||Wr!=null&&Wr.width?Ve.replaceSelection(`<p style="text-align:${Wr.align||"initial"}"><img width="${Wr.width?Wr.width+"%":"initial"}" src="${Lr}" alt="${Fr||""}" /></p>`):Ve.replaceSelection(`<img width="100%" src="${Lr}" alt="${Fr||""}" />`):((Ar=Wr==null?void 0:Wr.type)==null?void 0:Ar.indexOf("video"))>-1?Ve.replaceSelection(`<video width="100%" controls src="${Lr}"></video>`):((Rr=Wr==null?void 0:Wr.type)==null?void 0:Rr.indexOf("pdf"))>-1?Ve.replaceSelection(`<a href="${Lr}?type=${Wr.type}&disposition=inline" target="_blank">${Wr.name}</a>`):Pn.includes(_i)?Ve.replaceSelection(`<a href="${Lr}?type=office&disposition=inline" target="_blank">${Wr.name}</a>`):Ve.replaceSelection(`[${Wr.name}](${Lr})`),Ve.focus();case Ut:const{row:qr,col:xr,align:zr}=yn;let Vr=`
`;for(let wr=0;wr<qr;wr++){let Nr=[],Br=[];for(let ui=0;ui<xr;ui++)wr===1&&Br.push(ut[zr]),Nr.push(" ");wr===1&&(Vr+=`| ${Br.join(" | ")} |
`),Vr+=`| ${Nr.join(xr===1?"":" | ")} |
`}return Ve.replaceSelection(Vr+`
`),Ve.focus();default:throw new Error}},[Ve,Rn]),Ir=(0,z.useMemo)(()=>{switch(Rn){case Gt:return z.createElement(Wt,{callback:Tr,onCancel:Pr});case nn:return z.createElement(xt.Z,{callback:Tr,onCancel:Pr});case un:return z.createElement(pe.Z,{callback:Tr,onCancel:Pr});case rn:return z.createElement(oe,{editImgId:fr.current,callback:Tr,onCancel:Pr});case Ut:return z.createElement(Pe,{callback:Tr,onCancel:Pr});case"maths-latex":return z.createElement(Qt,{showSaveButton:!0,callback:Tr});case"inline-latex":return z.createElement(Xt.Z,{showSaveButton:!0,callback:Tr});default:return null}},[Rn]);function Pr(){Bn("")}(0,z.useEffect)(()=>{if(yr.current){let yn=function(Ar){cr=!0,Mr=Ar.pageY},hn=function(){cr=!1},Tn=function(Ar){if(cr){let Rr=Ar.pageY-Mr;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let Lr=Vt+Rr+"px";Xn(Lr)}},jn=yr.current,cr=!1,Mr=0;return jn.addEventListener("mousedown",yn),document.addEventListener("mousemove",Tn),document.addEventListener("mouseup",hn),()=>{jn.removeEventListener("mousedown",yn),document.removeEventListener("mousemove",Tn),document.removeEventListener("mouseup",hn)}}},[Ve,yr]),(0,z.useEffect)(()=>{Xn(Vt)},[Vt]);const or=cn(Tt),ir=cn(qn),er={width:or,height:ir},pn=(0,z.useMemo)(()=>{if(Nn){let yn=new Date(Nn),hn=yn.getHours(),Tn=yn.getMinutes(),jn=yn.getSeconds();return hn=hn<10?"0"+hn:hn,Tn=Tn<10?"0"+Tn:Tn,jn=jn<10?"0"+jn:jn,`${hn}:${Tn}:${jn}`}return 0},[Nn]),Sn=yn=>{const hn=[];if(On){let Tn=-1;yn=yn.replace(/(@▁▁@|@▁@)/g,function(jn,cr,Mr){hn.push({multiLine:jn!==dn})})}return hn};function Cn(){window.sessionStorage.removeItem(Hn),kn(!1),Gn(0)}function fn(){kn(!1),Gn(0),Ve.setValue(window.sessionStorage.getItem(Hn))}(0,z.useEffect)(()=>{An[Rn]&&Rn!==ln&&Rn!==rn&&setTimeout(()=>{const yn=document.getElementsByClassName("markdown-popup-form")[0],hn=window.innerWidth/2-yn.offsetWidth/2,Tn=window.innerHeight/2-yn.offsetHeight/2;_n(hn),pr(Tn)},0)},[Rn]);const Zn=yn=>{yn.preventDefault();const hn=yn.clientX-nr,Tn=yn.clientY-dr;document.body.onmousemove=jn=>{let cr=jn.clientX-hn,Mr=jn.clientY-Tn;const Ar=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Ar.offsetWidth,Lr=window.innerHeight-Ar.offsetHeight;cr=Math.max(0,Math.min(cr,Rr)),Mr=Math.max(0,Math.min(Mr,Lr)),Kn(jn.clientX,jn.clientY,hn,Tn)&&(_n(cr),pr(Mr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Kn=(yn,hn,Tn,jn)=>{const cr=document.body.clientHeight,Mr=document.body.clientWidth;return yn<20&&Tn>yn||yn>Mr-20&&Tn<yn||hn<20&&jn>hn||hn>cr-20&&jn<hn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:ur},z.createElement("div",{className:`markdown-editor-container ${Ae} ${on?"on-preview":""} ${tn?"mini":""} ${Wn?"full-screen":""}`,style:er},z.createElement(Ft,{insertTemp:mn,watch:on,fullScreen:Wn,showNullButton:Jt,showNullProgramButton:On,onActionCallback:Er,hidetoolBar:Mn,extraUse:at}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:sr,placeholder:lt})),on?z.createElement("div",{ref:lr,className:"preview-container"},vn==="stex"&&z.createElement(Ot,{value:sn}),vn!=="stex"&&z.createElement(we.Z,{edit:!0,disabledFill:Je,showProgramFill:On,value:sn,openEditor:yn=>{var hn;fr.current=yn,(hn=tr.current)==null||hn.setHeight("100vh"),setTimeout(()=>{Bn("add-flowchart")},150)}})):null))),zn?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Rn===ln&&z.createElement(Zt,{callback:Tr,onCancel:Pr}),Rn===rn&&z.createElement(oe,{ref:tr,editImgId:fr.current,callback:Tr,onCancel:Pr}),z.createElement(vt.Z,null,An[Rn]&&Rn!==ln&&Rn!==rn?z.createElement(Me.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:nr,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Zn},An[Rn]),open:!0,onCancel:Pr,footer:null,destroyOnClose:!0,width:Rn===rn?"1200px":null,height:Rn===rn?"80vh":null,className:"markdown-popup-form"},Ir):null))}},45053:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return yt},I:function(){return Ft}});var z=ie(28284),it=ie(6767),ye=ie(37568),qe=ie(44104),Ee=ie(4875),Se=ie(47889),Ne=ie(7939),$e=ie(28735),Ie=ie(59301),he=ie(59301),Xe=Object.defineProperty,we=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,He=(vt,dt,St)=>dt in vt?Xe(vt,dt,{enumerable:!0,configurable:!0,writable:!0,value:St}):vt[dt]=St,Ct=(vt,dt)=>{for(var St in dt||(dt={}))Re.call(dt,St)&&He(vt,St,dt[St]);if(ot)for(var St of ot(dt))Ge.call(dt,St)&&He(vt,St,dt[St]);return vt},Mt=(vt,dt)=>we(vt,Ot(dt));const{useForm:jt}=z.default,Dt={width:280,marginRight:10},et={labelCol:{span:5},wrapperCol:{span:19}};var yt=({callback:vt,onCancel:dt})=>{const[St]=jt();let Oe=(0,Ie.useRef)();function nt(bt){Oe.current.width=St.getFieldValue("width"),Oe.current.align=St.getFieldValue("align"),vt(bt,Oe.current)}function rt(bt,Be){if(bt.status===-1){it.ZP.error(bt.message);return}St.setFieldsValue({src:`/api/attachments/${bt.id}`,type:Be.type})}function ue(bt){let Be=bt.target.files[0];Oe.current=Be,Ft(Be,rt)}return he.createElement(z.default,Mt(Ct({form:St},et),{className:"upload-image-panel",onFinish:nt,style:{width:470,overflow:"hidden"}}),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(ye.default,{style:Dt})),he.createElement(Ue,{onFileChange:ue}))),he.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ye.default,{style:{width:264}})),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(qe.Z,null,he.createElement(z.default.Item,{name:"width",style:{margin:0}},he.createElement(Ee.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Se.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(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Ne.ZP,{type:"default",onClick:dt},"\u53D6\u6D88"))))};function Ue({onFileChange:vt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:vt}))}function Ft(vt,dt){if(!vt)throw new String("\u6CA1\u6709\u6587\u4EF6");let St=new FormData;St.append("editormd-image-file",vt),St.append("file_param_name","editormd-image-file"),St.append("byxhr","true");var Oe=new window.XMLHttpRequest;Oe.withCredentials=!0,Oe.addEventListener("load",function(nt){dt(JSON.parse(nt.target.responseText),vt)},!1),Oe.addEventListener("error",function(nt){console.error(nt)},!1),Oe.open("POST",`${$e.KI}/api/attachments.json`),Oe.send(St)}},57261:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ye}});var z=ie(59301),it=ie(4676);class ye extends z.Component{constructor(Ee){super(Ee);const Se=window.document;this.node=Se.createElement("div"),Se.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,it.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(an,Kt,ie){"use strict";ie.d(Kt,{SV:function(){return Zt},ZP:function(){return At}});var z=ie(59301),it=ie(76374);const ye={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"]},qe={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 <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Se={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Ne={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var $e=ie(53184),Ie=ie.n($e),he=(Fe,Lt,st)=>new Promise((ae,te)=>{var ee=ne=>{try{se(st.next(ne))}catch(me){te(me)}},oe=ne=>{try{se(st.throw(ne))}catch(me){te(me)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((st=st.apply(Fe,Lt)).next())});const Xe={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"]}},we=(Fe,Lt,st,ae)=>{const te=Lt.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:Fe.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Ot=(Fe,Lt,st,ae)=>{Fe.languages.registerCompletionItemProvider(Lt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...we(Fe,te,ee,se),...st.map(Ce=>({label:Ce,kind:Fe.languages.CompletionItemKind.Keyword,documentation:Ce,insertText:Ce,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Ce=>({label:Ce.label,kind:Fe.languages.CompletionItemKind.Snippet,documentation:Ce.content,insertText:ne.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var ot=Fe=>{Xe.languages.forEach(Lt=>{Fe.languages.registerDocumentFormattingEditProvider(Lt,{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}]})}})}),Ot(Fe,"java",qe.keywords,qe.quickKey),Ot(Fe,"cpp",Ee.keywords,Ee.quickKey),Ot(Fe,"c",ye.keywords,[]),Ot(Fe,"python",Se.keywords,Se.quickKey),Ot(Fe,"scala",Ne.keywords,Ne.quickKey)};const Re="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ge=Object.defineProperty,He=(Fe,Lt,st)=>Lt in Fe?Ge(Fe,Lt,{enumerable:!0,configurable:!0,writable:!0,value:st}):Fe[Lt]=st,Ct=(Fe,Lt,st)=>He(Fe,typeof Lt!="symbol"?Lt+"":Lt,st);const Mt=class zs{constructor(Lt,st,ae){this.placeholder=Lt,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 zs.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)}};Ct(Mt,"ID","editor.widget.placeholderHint");var Dt=Mt,et=ie(96236),yt=ie(6767),Ue=ie(25399),Ft=ie(89392),vt=ie(77254),dt=ie(56102),St=Object.defineProperty,Oe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Be=(Fe,Lt,st)=>Lt in Fe?St(Fe,Lt,{enumerable:!0,configurable:!0,writable:!0,value:st}):Fe[Lt]=st,tt=(Fe,Lt)=>{for(var st in Lt||(Lt={}))ue.call(Lt,st)&&Be(Fe,st,Lt[st]);if(rt)for(var st of rt(Lt))bt.call(Lt,st)&&Be(Fe,st,Lt[st]);return Fe},Et=(Fe,Lt)=>Oe(Fe,nt(Lt)),ge=(Fe,Lt)=>{var st={};for(var ae in Fe)ue.call(Fe,ae)&&Lt.indexOf(ae)<0&&(st[ae]=Fe[ae]);if(Fe!=null&&rt)for(var ae of rt(Fe))Lt.indexOf(ae)<0&&bt.call(Fe,ae)&&(st[ae]=Fe[ae]);return st},de=(Fe,Lt,st)=>new Promise((ae,te)=>{var ee=ne=>{try{se(st.next(ne))}catch(me){te(me)}},oe=ne=>{try{se(st.throw(ne))}catch(me){te(me)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((st=st.apply(Fe,Lt)).next())});function _e(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}function Wt(){}let xt=!1;const pe={"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 Me(Fe=[]){let Lt=Fe;if(Array.isArray(Fe)){for(let st=0;st<Fe.length;st++){let ae=pe[Fe[st]];if(ae)return ae}return Lt[0]}return pe[Lt]||Lt}let ze=null;const Nt=()=>de(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Fe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Fe)}});var At=Fe=>{var Lt=Fe,{width:st="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:me="vs-dark",onEditBlur:Ce,isCopy:mt=!1,onSave:Pe,autoHeight:Ke=!1,forbidCopy:ft=!1,forbidCopyTips:It,onChange:wt=Wt,editorDidMount:Qt=Wt,onFocus:Xt=Wt,onBreakPoint:Gt=Wt,breakPointValue:un=[],filename:rn="educoder.txt",errorLine:ln,errorContent:Pt="",highlightLine:nn,openBreakPoint:Ut=!1,placeholder:Le="",showMiniMap:ut=!0}=Lt,Rt=ge(Lt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const $t=(0,z.useRef)(),De=(0,z.useRef)({}),Ye=(0,z.useRef)(),pt=(0,z.useRef)(),kt=(0,z.useRef)([]),Yt=(0,z.useRef)(!1),dn=(0,z.useRef)(),Dn=(0,z.useRef)(),Pn=(0,z.useRef)(!1),[cn,In]=(0,z.useState)(!1);function gn(){let Bt;return $t.current&&(Bt=new it.Z(Jt=>{for(let On of Jt)(On.target.offsetHeight>0||On.target.offsetWidth>0)&&De.current.instance.layout()}),Bt.observe($t.current)),Bt}function $n(){yt.ZP.warning({content:decodeURIComponent(It||Re),key:"monaco-editor-tip"})}const An=()=>{let Bt=De.current.instance;if(te!=null&&Bt&&cn){const Jt=Bt.getModel();Jt&&te!==Jt.getValue()&&(xt=!0,Jt.setValue(te),Bt.layout(),xt=!1)}};(0,z.useEffect)(()=>{const Bt=vt.Z.subscribe("formatDocument",Jt=>{var On;let Mn=De.current.instance;(On=Mn==null?void 0:Mn.getAction)==null||On.call(Mn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Jt=>{wt(Jt)},Bt},[]),(0,z.useEffect)(()=>{var Bt;let Jt=De.current.instance;pt.current&&clearTimeout(pt.current),pt.current=setTimeout(()=>{An()},500),te&&(te!=null&&te.length)&&((Bt=Jt==null?void 0:Jt.updateOptions)==null||Bt.call(Jt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,cn,De.current]),(0,z.useEffect)(()=>{if(ln&&De.current&&De.current.instance){let Jt=De.current.instance;Jt.changeViewZones(function(On){var Mn=document.createElement("div");Mn.style.padding="10px 20px",Mn.style.width="calc(100% - 20px)",Mn.className="my-error-line-wrp",Mn.innerHTML=Pt,On.addZone({afterLineNumber:ln||11,heightInLines:3,domNode:Mn})});var Bt={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}};Jt.addOverlayWidget(Bt),Jt.revealPositionInCenter({lineNumber:20,column:1})}},[ln,De.current,cn]);const En=(Bt="",Jt)=>{if(!Bt||Bt.trim()==="")return!0;const Mn=De.current.instance.getModel().getLineTokens(Jt);let Te=!1;for(let We=0;We<2;We++)Mn.getStandardTokenType(We)===1&&(Te=!0);return Te};(0,z.useEffect)(()=>{var Bt;const Jt=(Bt=De.current)==null?void 0:Bt.instance;if(Jt&&cn&&ft){const On=Jt.onDidBlurEditorWidget(()=>{Pn.current=!1}),Mn=Jt.onDidFocusEditorText(()=>{Pn.current=!0});return()=>{On.dispose(),Mn.dispose()}}},[De.current,cn,ft]),(0,z.useEffect)(()=>{var Bt;if((Bt=De.current)!=null&&Bt.instance&&cn&&Ut){let Jt=De.current.instance,On=Jt.getModel();if(!On)return;(()=>{var at;let Ze=[],Ve=[];const ct=On.getAllDecorations();for(let en of ct)en.options.className==="highlighted-line"&&(Ze.push((at=en==null?void 0:en.range)==null?void 0:at.startLineNumber),Ve.push(en==null?void 0:en.id));if(nn===Ze[0])return;On.deltaDecorations(Ve,[]);const sn=On.getLineCount();nn&&nn<=sn&&(Jt.deltaDecorations([],[{range:new ze.Range(nn,1,nn,On.getLineMaxColumn(nn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Jt.revealLineInCenter(nn))})();const Te=(at=!1)=>{var Ze;let Ve=[],ct=[];const sn=On.getAllDecorations();for(let en of sn)en.options.linesDecorationsClassName==="breakpoints-select"&&(Ve.push((Ze=en==null?void 0:en.range)==null?void 0:Ze.startLineNumber),ct.push(en==null?void 0:en.id));if(at)return{lines:Ve,ids:ct};Gt(Ve)},We=at=>de(void 0,null,function*(){let Ze={range:new ze.Range(at,1,at,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield On.deltaDecorations([],[Ze]),Te()}),xe=at=>de(void 0,null,function*(){let Ze=[];const Ve=Jt.getLineDecorations(at);for(let ct of Ve)ct.options.linesDecorationsClassName==="breakpoints-select"&&Ze.push(ct.id);yield On.deltaDecorations(Ze,[]),Te()}),ke=at=>{let Ze=Jt.getLineDecorations(at);for(let Ve of Ze)if(Ve.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ft.isEqual)(un,Te(!0).lines)){On.deltaDecorations(Te(!0).ids,[]);const at=un.map(Ze=>({range:new ze.Range(Ze,1,Ze,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));On.deltaDecorations([],at)}const Ae=Jt.onDidChangeModelContent(at=>{let Ze=Jt.getPosition();if(Ze){let Ve=Ze.lineNumber;clearTimeout(Dn.current),Dn.current=setTimeout(()=>{En(On.getLineContent(Ve),Ve)?xe(Ve):ke(Ve)?(xe(Ve),We(Ve)):Te()},100)}}),je=Jt.onMouseDown(at=>{var Ze,Ve,ct;if(at.target.detail&&((ct=(Ve=(Ze=at.target)==null?void 0:Ze.element)==null?void 0:Ve.className)!=null&&ct.includes("line-numbers"))){let sn=at.target.position.lineNumber;if(En(On.getLineContent(sn),sn))return;ke(sn)?xe(sn):We(sn)}}),be=at=>{let Ze={range:new ze.Range(at,1,at,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};kt.current=Jt.deltaDecorations(kt.current,[Ze])},Je=()=>{kt.current=Jt.deltaDecorations(kt.current,[])},lt=Jt.onMouseMove(at=>{var Ze,Ve,ct;if(Je(),at.target.detail&&((ct=(Ve=(Ze=at.target)==null?void 0:Ze.element)==null?void 0:Ve.className)!=null&&ct.includes("line-numbers"))){let sn=at.target.position.lineNumber;if(En(On.getLineContent(sn),sn))return;be(sn)}}),gt=Jt.onMouseLeave(()=>{Je()});return()=>{Ae.dispose(),je.dispose(),lt.dispose(),gt.dispose()}}},[De.current,cn,un,nn,Ut,ee]),(0,z.useEffect)(()=>{var Bt;(Bt=De.current)!=null&&Bt.instance&&Ut&&De.current.instance.setPosition({lineNumber:0,column:0})},[nn]);function qt(){let Bt=De.current.instance;if(Bt){const Jt=Bt.getSelection(),On=De.current.pastePos||{},Mn=new ze.Range(On.startLineNumber||Jt.endLineNumber,On.startColumn||Jt.endColumn,On.endLineNumber||Jt.endLineNumber,On.endColumn||Jt.endColumn);setTimeout(()=>{Bt.executeEdits("",[{range:Mn,text:""}])},300)}}function zt(Bt){(window.navigator.platform.match("Mac")?Bt.metaKey:Bt.ctrlKey)&&Bt.keyCode==83&&(Bt.preventDefault(),Pe())}const Tt=()=>{if(Ke&&De.current.instance){const Bt=De.current.instance.getContentHeight();Hn(Bt<ae?ae:Bt)}else Hn(ae)};function Vt(Bt){var Jt=document.createEvent("MouseEvents");Jt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Bt.dispatchEvent(Jt)}const tn=Bt=>{if(!Pn.current)return;const{keyCode:Jt,ctrlKey:On,metaKey:Mn,target:Te,type:We}=Bt;return(We==="paste"||(Jt===67||Jt===86)&&(Mn||On))&&Te.nodeName==="TEXTAREA"&&($n(),Bt.preventDefault()),!1};function xn(Bt,Jt){var On=window.URL||window.webkitURL||window,Mn=new Blob([Jt]),Te=document.createElementNS("http://www.w3.org/1999/xhtml","a");Te.href=On.createObjectURL(Mn),Te.download=Bt,Vt(Te)}(0,z.useEffect)(()=>{Tt()},[Tt]),(0,z.useEffect)(()=>{$t.current&&!cn&&Promise.all([ie.e(8909),ie.e(2460)]).then(ie.bind(ie,71448)).then(Bt=>{try{ze=Bt,De.current.instance=ze.editor.create($t.current,{value:te,language:Me(ee),theme:me,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:ut||!1}},ne);const Jt=De.current.instance;let Te=[...et.BH._menuItems].find(Ae=>Ae[0]._debugName=="EditorContext")[1],We=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xe=(Ae,je)=>{var be,Je;let lt=Ae._first;do je.includes((Je=(be=lt.element)==null?void 0:be.command)==null?void 0:Je.id)&&Ae._remove(lt);while(lt=lt.next)};if(Qt(Jt,ze),setTimeout(()=>{Tt(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{xn(rn||"educoder.txt",Jt.getValue())}})},500),De.current.subscription=Jt.onDidChangeModelContent(Ae=>{Yt.current?clearTimeout(dn.current):(Tt(),wt(Jt.getValue(),Ae)),dn.current=setTimeout(()=>{Yt.current=!1},500)}),window.Monaco||ot(ze,Me(ee)),ft&&(xe(Te,We),$t.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",tn),window.removeEventListener("paste",tn),window.addEventListener("keydown",tn),window.addEventListener("paste",tn)),window.Monaco=ze,Ce&&Jt.onDidBlurEditorWidget(()=>{Ce(Jt.getValue())}),Xt&&Jt.onDidFocusEditorText(()=>{ft&&Nt(),Xt(Jt.getValue())}),ft){Nt();try{Jt.onDidPaste(Ae=>{const je=Jt.getSelection(),be=De.current.pastePos||{},Je=new ze.Range(be.startLineNumber||je.endLineNumber,be.startColumn||je.endColumn,be.endLineNumber||je.endLineNumber,be.endColumn||je.endColumn);Jt.executeEdits("",[{range:Ae.range,text:""}])})}catch(Ae){}}let ke=gn();return Le&&typeof Le=="string"&&new Dt(Le,Jt,ze),In(!0),()=>{const Ae=De.current.instance;Ae.dispose();const je=Ae.getModel();je&&je.dispose(),De.current.subscription&&De.current.subscription.dispose(),ke.unobserve($t.current)}}catch(Jt){}})},[]),(0,z.useEffect)(()=>{if(De.current.instance&&cn)return document.addEventListener("keydown",zt,!1),()=>{document.removeEventListener("keydown",zt)}},[Pe,cn]),(0,z.useEffect)(()=>{let Bt=De.current.instance;if(Bt&&cn){let Jt=Me(ee);ze.editor.setModelLanguage(Bt.getModel(),Jt)}},[ee,cn]),(0,z.useEffect)(()=>{De.current.instance&&cn&&ze.editor.setTheme(me)},[me,cn]),(0,z.useEffect)(()=>{let Bt=De.current.instance;Ye.current=se,Bt&&cn&&(Bt.updateOptions(tt({},se)),setTimeout(()=>{Bt.getModel().updateOptions(tt({},se))},200))},[JSON.stringify(se),cn]),(0,z.useEffect)(()=>{let Bt=De.current.instance;Bt&&cn&&Bt.layout()},[st,ae,cn]);const[wn,mn]=(0,z.useState)(_e(st)),[vn,Hn]=(0,z.useState)(_e(ae)),zn=Et(tt({},oe),{width:wn,height:vn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:$t,style:zn,onFocus:()=>{ft&&Nt()}},mt&&z.createElement(dt.CopyToClipboard,{text:te,onCopy:()=>yt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Ue.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Zt({width:Fe="100%",height:Lt="100%",original:st,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,ne]=(0,z.useState)(null);function me(Ke){let ft;return oe.current&&(ft=new it.Z(It=>{for(let wt of It)(wt.target.offsetHeight>0||wt.target.offsetWidth>0)&&Ke.layout()}),ft.observe(oe.current)),ft}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(Ke=>{ze=Ke;const ft=ze.editor.createDiffEditor(oe.current,Et(tt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ne(ft);let It=me(ft);return()=>{ft.dispose();const wt=ft.getModel();wt&&wt.dispose(),It.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:ze.editor.createModel(st,te),modified:ze.editor.createModel(ae,te)})},[st,ae,te,se]);const Ce=_e(Fe),mt=_e(Lt),Pe={width:Ce,height:mt};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Pe})}},61584:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Xe}});var z={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},it=ie(29787),ye=ie(25399),qe=ie(89787),Ee=ie(92310),Se=ie.n(Ee),Ne=ie(65862),$e=ie(2524),Ie=ie(59301),Xe=({className:we,dataSource:Ot=[],col:ot=4,right:Re,bottom:Ge=23,precision:He=0,wrapWidth:Ct=1200,trackEventItems:Mt,loading:jt,onRemove:Dt=()=>{},isCurrent:et=!0,showProgress:yt=!1,showAlias:Ue=!1,category:Ft,hiddenClick:vt})=>{const dt=Math.floor((Ct-(ot-1)*Re)/ot),St=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ie.createElement(it.Z,{spinning:jt},Ie.createElement("div",{className:Se()(z.list,we)},!!(Ot!=null&&Ot.length)&&(Ot==null?void 0:Ot.map((Oe,nt)=>{var rt,ue,bt,Be,tt,Et,ge,de,_e,Wt,xt,pe,Me;const{name:ze,id:Nt,identifier:At,featured:Zt,school_name:Fe,image_url:Lt,excellent:st,is_plan:ae}=Oe;return Ie.createElement("div",{key:Nt,className:et&&yt?z.wrapisCurrent:z.wrap,style:{width:dt,marginRight:(1+nt)%ot===0?0:Re+He,marginBottom:Ge}},Ie.createElement("a",{className:z.li,onClick:te=>{te.preventDefault(),te.stopPropagation(),Mt&&(0,Ne.L9)([Mt]),(0,Ne.xg)(`/paths/${At}`)}},Ie.createElement("div",{className:z.img},Ie.createElement("img",{className:z.cover,src:`${Lt}`}),(rt=Oe==null?void 0:Oe.subject_tags)==null?void 0:rt.map((te,ee)=>{var oe,se;if(ee===0){const me=(oe=St.find(Ce=>Ce.name==te))==null?void 0:oe.swimg;return Ie.createElement("img",{className:z.sign,src:me,style:{left:"-4px"}})}const ne=(se=St.find(me=>me.name==te))==null?void 0:se.ptimg;return Ie.createElement("img",{className:z.sign,src:ne,style:{left:`${48+52*(ee-1)+2*ee}px`}})}),Ie.createElement("div",{className:z.tagsDom},Ie.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Oe==null?void 0:Oe.excellent)&&Ie.createElement("div",{className:z.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Oe==null?void 0:Oe.custom_tags)==null?void 0:ue.length)>0&&Ie.createElement(ye.Z,{title:(tt=(Be=Oe==null?void 0:Oe.custom_tags)==null?void 0:Be[((bt=Oe==null?void 0:Oe.custom_tags)==null?void 0:bt.length)-1])==null?void 0:tt.tag_name},Ie.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e text-10px"},(de=(ge=Oe==null?void 0:Oe.custom_tags)==null?void 0:ge[((Et=Oe==null?void 0:Oe.custom_tags)==null?void 0:Et.length)-1])==null?void 0:de.tag_name))))),Ft=="hide"&&(Oe==null?void 0:Oe.studying)&&et&&Ie.createElement("div",{className:`${z.movebq} user-path-items`,onClick:te=>{te.stopPropagation(),Dt(Oe)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(Ft)&&et&&Ie.createElement("div",{className:`${z.hiddenbq} user-path-items`,onClick:te=>{te.stopPropagation(),vt(Oe)}},Ie.createElement("i",{className:`iconfont ${Ft=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,Ft=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:z.name},Ie.createElement(ye.Z,{title:Ue&&(Oe!=null&&Oe.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ze}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Oe==null?void 0:Oe.excellent_alias_name}`)):ze},Ie.createElement("span",{className:z.e},Ue&&(Oe==null?void 0:Oe.excellent_alias_name)||ze))),et&&yt&&((_e=Oe==null?void 0:Oe.progress)==null?void 0:_e.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Wt=Oe==null?void 0:Oe.progress)==null?void 0:Wt.my_score)/((xt=Oe==null?void 0:Oe.progress)==null?void 0:xt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(pe=Oe==null?void 0:Oe.progress)==null?void 0:pe.my_score,"/",(Me=Oe==null?void 0:Oe.progress)==null?void 0:Me.all_score),(!et||!yt)&&Ie.createElement(ye.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Fe}`},Ie.createElement("div",{className:z.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Fe)),(!et||!yt)&&Ie.createElement("div",{className:z.tags},Ie.createElement("div",null,Ie.createElement(ye.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,Oe.stages_count))),Ie.createElement(ye.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,Oe.members_count)))))))})),!Ot.length&&Ie.createElement($e.Z,null)))}},82636:function(an,Kt,ie){"use strict";ie.d(Kt,{jL:function(){return Ee},w9:function(){return pe},QD:function(){return nn},cQ:function(){return Be.Z},op:function(){return Xt},O5:function(){return qt},_b:function(){return De},t7:function(){return Ct},Gi:function(){return Fe},YG:function(){return At},qp:function(){return Xe},vr:function(){return ut},qE:function(){return rn},Je:function(){return Dt},wb:function(){return bt},cq:function(){return oe},tp:function(){return ot}});var z=ie(59301),it={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"},ye="data:image/png;base64,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",Ee=({dataSource:zt=[],img:Tt,imgWidth:Vt=346,title:tn,sunTitle:xn,bannerExtraContent:wn})=>z.createElement("div",{className:it.banner},z.createElement("div",{className:it.content},z.createElement("aside",null,z.createElement("p",null,z.createElement("b",null,tn),z.createElement("span",null,xn)),zt.length>0&&z.createElement("div",{className:it.btns},zt.map((mn,vn)=>z.createElement("div",{key:vn,onClick:mn.click},mn.name,mn.sign?z.createElement("img",{src:ye,width:39}):null))),wn),Tt&&z.createElement("img",{style:{marginTop:33,marginRight:38},src:Tt,width:Vt}))),Se={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"},Ne=ie(92310),$e=ie.n(Ne),Ie=ie(89392),Xe=({dataSource:zt=[],value:Tt,onChange:Vt,onTitleChange:tn,className:xn,title:wn,titleWidth:mn=41,style:vn={},fontColor:Hn="#6A7283",showCount:zn})=>{const[Bt,Jt]=(0,z.useState)(1),[On,Mn]=(0,z.useState)(!1),Te=(0,z.useRef)(null),We=(0,z.useRef)(null);return(0,z.useEffect)(()=>{var xe;zt.length!==0&&(((xe=Te==null?void 0:Te.current)==null?void 0:xe.clientHeight)>97?Jt(1):Jt(0)),zt.length===0&&Jt(0),Mn(!1)},[zt]),z.createElement("div",{className:$e()(Se.row,xn,"fadeIn","animated"),style:vn},z.createElement("div",{onClick:(0,Ie.throttle)(()=>tn==null?void 0:tn(),2e3),style:{width:mn,marginTop:On?12:4},className:`${Se.title} ${tn?"current":""}`},wn),z.createElement("div",{className:On?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},z.createElement("div",{className:Se.bar,ref:We,style:Bt>0?{height:Bt===1?97:"auto",overflow:Bt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},z.createElement("div",{className:Se.tag,ref:Te},zt==null?void 0:zt.map(xe=>z.createElement("span",{onClick:()=>Vt(xe.id),key:xe.id,style:{color:Hn},className:Tt===xe.id?Se.active:""},z.createElement("span",{title:xe.name,className:Se.name},xe.name),!!zn&&z.createElement("span",{className:Se.num},xe.count))))),!!Bt&&z.createElement(z.Fragment,null,Bt===1?z.createElement("div",{onClick:()=>{var xe;Jt(2),((xe=Te==null?void 0:Te.current)==null?void 0:xe.clientHeight)>245?Mn(!0):Mn(!1)},className:Se.action},"\u5C55\u5F00",z.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):z.createElement("div",{onClick:()=>{We.current.scrollTop=0,Jt(1),Mn(!1)},className:Se.action},"\u6536\u8D77",z.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},we={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ot=({dataSource:zt=[],value:Tt,onChange:Vt,className:tn,style:xn={}})=>z.createElement("div",{style:xn,className:$e()(we.tabs,tn)},zt.map(wn=>z.createElement("span",{onClick:()=>Vt(wn.id),className:Tt===wn.id?we.active:"",key:wn.id},wn.name))),Re={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"},Ge=ie(37568),Ct=({dataSource:zt=[],value:Tt="",onChange:Vt,onInputChange:tn=()=>{},className:xn,style:wn={},placeholder:mn,allowClear:vn=!1})=>{var Hn;const[zn,Bt]=(0,z.useState)(""),[Jt,On]=(0,z.useState)("");(0,z.useEffect)(()=>{var We;let xe=Tt;(We=JSON.stringify(Tt))!=null&&We.includes("{")&&(Bt(Tt.id),xe=Tt.value||"");try{On(decodeURIComponent(xe||""))}catch(ke){On(decodeURIComponent(xe||""))}},[Tt]);const Mn=()=>{Vt(encodeURIComponent(Jt),zn||null)},Te=We=>{We!==zn&&(Bt(We),Vt(encodeURIComponent(Jt),We))};return z.createElement("div",{className:$e()(Re.input,xn),style:wn},!!zt.length&&z.createElement("div",{className:Re.dropdown},z.createElement("div",{className:Re.text},(Hn=zt.find(We=>We.id===zn))==null?void 0:Hn.name,z.createElement("i",{className:"iconfont icon-zhankai4"}),z.createElement("b",{className:Re.b1}),z.createElement("b",{className:Re.b2})),z.createElement("div",{className:Re.menu},zt.map((We,xe)=>z.createElement("div",{key:xe,onClick:()=>Te(We.id)},We.name)))),z.createElement(Ge.default,{onPressEnter:Mn,value:Jt,onChange:We=>{On(We.target.value),tn(encodeURIComponent(We.target.value),zn||null)},placeholder:mn,variant:"borderless",allowClear:vn,onClear:()=>Vt("",zn||null)}),z.createElement("i",{onClick:Mn,className:"iconfont icon-sousuo9 font14 current"}))},Mt={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"},Dt=({value:zt,onChange:Tt,className:Vt,total:tn,pageSize:xn,style:wn={}})=>{const mn=zt<2,vn=zt>=Math.ceil(tn/xn);return tn<=xn?z.createElement(z.Fragment,null):z.createElement("div",{className:$e()(Mt.quickPager,Vt),style:wn},z.createElement("div",{onClick:()=>{mn||Tt(zt-1,"prev")},className:mn?Mt.disabled:""},"\u4E0A\u4E00\u9875"),z.createElement("div",{onClick:()=>{vn||Tt(zt+1,"next")},className:vn?Mt.disabled:""},"\u4E0B\u4E00\u9875"))},et={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"},yt=ie(29787),Ue=ie(25399),Ft=ie(63139),vt=ie(74128),dt=ie(65862),St=ie(96908),Oe=ie(57177),nt=ie(81378),rt=ie(2524),bt=({className:zt,dataSource:Tt=[],col:Vt=4,right:tn,bottom:xn=23,precision:wn=0,wrapWidth:mn=1200,trackEventItems:vn,loading:Hn})=>{const zn=Math.floor((mn-(Vt-1)*tn)/Vt);return z.createElement(yt.Z,{spinning:Hn},z.createElement("div",{className:$e()(et.list,zt)},!!Tt.length&&Tt.map((Bt,Jt)=>{const{name:On,id:Mn,identifier:Te,power:We,cover_image_id:xe,pic:ke}=Bt;return z.createElement("div",{className:et.wrap,key:Mn,style:{width:zn,marginRight:(1+Jt)%Vt===0?0:tn+wn,marginBottom:xn}},z.createElement("a",{target:"_blank",href:`/shixuns/${Te}/challenges`,className:et.li,onClick:Ae=>{Ae.preventDefault(),vn&&(0,dt.L9)([vn]),We&&(0,dt.xg)(`/shixuns/${Te}/challenges`)}},z.createElement("div",{className:et.img},z.createElement("img",{className:et.cover,src:`${ke}`}),Bt.is_jupyter&&z.createElement("img",{className:et.sign,src:St}),Bt.is_jupyter_lab&&z.createElement("img",{className:et.sign,src:Oe}),Bt.is_unity_3d&&z.createElement("img",{className:et.sign,src:nt})),z.createElement("div",{className:et.name},z.createElement(Ue.Z,{title:On||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},z.createElement("span",{className:et.e},On||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),z.createElement("div",{className:et.tags},z.createElement(Ue.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),z.createElement("span",null,Bt.challenges_count))),!!Bt.myshixuns_count&&z.createElement(Ue.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),z.createElement("span",null,Bt.myshixuns_count))),z.createElement(Ue.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},z.createElement("span",null,z.createElement("span",null,Bt.level))),z.createElement("div",{className:et.rate},z.createElement(Ft.Z,{allowHalf:!0,disabled:!0,defaultValue:Bt.score_info}),z.createElement("span",null,"\xA0",Bt.score_info?`${Bt.score_info}\u5206`:"5\u5206")))),!We&&z.createElement("div",{className:et.lockWrap},z.createElement("img",{src:`${vt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),z.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Tt.length&&z.createElement(rt.Z,null)))},Be=ie(61584),tt={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"},Et=ie(62957),ge=ie(96599),de="data:image/png;base64,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",_e=ie(59301),Wt=(zt,Tt,Vt)=>new Promise((tn,xn)=>{var wn=Hn=>{try{vn(Vt.next(Hn))}catch(zn){xn(zn)}},mn=Hn=>{try{vn(Vt.throw(Hn))}catch(zn){xn(zn)}},vn=Hn=>Hn.done?tn(Hn.value):Promise.resolve(Hn.value).then(wn,mn);vn((Vt=Vt.apply(zt,Tt)).next())}),pe=({className:zt,dataSource:Tt=[],col:Vt=4,right:tn,bottom:xn=23,precision:wn=0,wrapWidth:mn=1200,trackEventItems:vn,loading:Hn,category:zn,hiddenClick:Bt,handleVery:Jt=()=>!0,isCurrent:On})=>{const[Mn,Te]=Et.default.useModal(),We=Math.floor((mn-(Vt-1)*tn)/Vt),xe=ke=>Wt(void 0,null,function*(){Mn.confirm({title:"\u7F6E\u9876",width:500,content:_e.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",_e.createElement("span",{className:"c-blue"},"\u201C",ke.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return _e.createElement(yt.Z,{spinning:Hn},Te,_e.createElement("div",{className:$e()(tt.list,zt)},!!Tt.length&&Tt.map((ke,Ae)=>{const{subject_identifier:je,id:be,identifier:Je,power:lt}=ke,gt=ke.is_public!=0&&ke.is_public;return _e.createElement("div",{className:tt.wrap,key:be,style:{width:We,marginRight:(1+Ae)%Vt===0?0:tn+wn,marginBottom:xn}},ke.homepage_show&&_e.createElement("div",{className:tt.btnsTop},_e.createElement(ge.default,{color:"red"},"\u7F6E\u9876")),_e.createElement("a",{className:tt.li,onClick:at=>{at.preventDefault(),Jt(ke==null?void 0:ke.first_category_url)&&(vn&&(0,dt.L9)([vn]),(0,dt.xg)(ke.first_category_url))}},_e.createElement("div",{className:tt.top},_e.createElement(Ue.Z,{title:ke.name},_e.createElement("div",{className:tt.name},ke.name)),_e.createElement("img",{className:tt.img,src:vt.Z.IMG_SERVER+"/images/"+ke.avatar_url}),_e.createElement("div",{className:tt.text,title:ke.creator},ke.creator),je&&_e.createElement("div",{className:tt.btns},_e.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),_e.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),gt&&_e.createElement("div",{className:tt.sign},"\u516C\u5F00"),On&&_e.createElement("div",{className:tt.hidden,onClick:at=>{at.stopPropagation(),Bt(ke)}},_e.createElement("i",{className:`iconfont ${zn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),zn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),_e.createElement("div",{className:tt.bottom},ke.visits>0&&_e.createElement(Ue.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},_e.createElement("span",null,_e.createElement("i",{className:"iconfont icon-liulanyan"}),_e.createElement("span",null,ke.visits))),ke.course_members_count>0&&_e.createElement(Ue.Z,{title:"\u6210\u5458",placement:"bottom"},_e.createElement("span",null,_e.createElement("i",{className:"iconfont icon-chengyuan"}),ke.course_members_count)),ke.tasks_count>0&&_e.createElement(Ue.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},_e.createElement("span",null,_e.createElement("i",{className:"iconfont icon-zuoye"}),ke.tasks_count)),ke.is_end?_e.createElement("div",{style:{color:"#6B758B"}}):_e.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ke.is_accessible&&_e.createElement("div",{className:tt.lockWrap},_e.createElement("img",{src:`${vt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),_e.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Tt.length&&_e.createElement(rt.Z,null)))},Me={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"},ze=ie(65582),At=({dataSource:zt=[],value:Tt,onChange:Vt,className:tn,style:xn={},tabBarExtraContent:wn})=>z.createElement("div",{className:$e()(Me.tabs,tn),style:xn},z.createElement("div",{className:Me.tabsWrap},zt.map((mn,vn)=>!(mn!=null&&mn.hide)&&z.createElement("aside",{className:Me.tab,onClick:()=>{Vt(mn.id),mn.link&&ze.history.push(mn.link)},key:vn},z.createElement("div",{className:Tt===mn.id?Me.active:""},mn.name),(mn==null?void 0:mn.resetCount)==null&&(mn==null?void 0:mn.total)!==void 0&&z.createElement("span",null,"\uFF08",mn==null?void 0:mn.total,"\uFF09"),(mn==null?void 0:mn.resetCount)!==void 0&&(mn==null?void 0:mn.total)!==void 0&&z.createElement(Ue.Z,{title:(mn==null?void 0:mn.tip)!=null?mn==null?void 0:mn.tip:""},z.createElement("span",{style:{color:"#9096A3"}},"\uFF08",z.createElement("span",{style:{color:"#000"}},mn==null?void 0:mn.resetCount),"/",z.createElement("span",null,mn==null?void 0:mn.total),"\uFF09"))))),z.createElement("div",{className:Me.tabBar},wn)),Fe=({className:zt,style:Tt={},children:Vt})=>z.createElement("div",{className:$e()(zt),style:Tt},Vt),Lt={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"},st=ie(75727),ae=ie(93041);const te=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var oe=({sortValue:zt,dropValue:Tt,className:Vt,onSort:tn,onDrop:xn,dataSource:wn=te})=>{var mn;return z.createElement("div",{className:$e()(Lt.orderWrap,Vt)},z.createElement(st.Z,{dropdownRender:()=>z.createElement(ae.default,null,wn.map((vn,Hn)=>z.createElement(ae.default.Item,{key:Hn,onClick:()=>xn(vn.id)},vn.name)))},z.createElement("span",{className:Lt.orderTextWrap},(mn=wn.find(vn=>Tt===vn.id))==null?void 0:mn.name)),z.createElement("span",{className:Lt.orderIconWrap},z.createElement("span",{className:Lt.orderAsc},z.createElement("i",{className:zt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Lt.cursorPointer} ${Lt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Lt.cursorPointer}`,onClick:()=>tn(zt==="asc"?"desc":"asc")})),z.createElement("span",{className:Lt.orderDesc},z.createElement("i",{className:zt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Lt.cursorPointer} ${Lt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Lt.cursorPointer}`,onClick:()=>tn(zt==="asc"?"desc":"asc")}))))},se={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"},ne=ie(7939),me=Object.defineProperty,Ce=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Ke=(zt,Tt,Vt)=>Tt in zt?me(zt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):zt[Tt]=Vt,ft=(zt,Tt)=>{for(var Vt in Tt||(Tt={}))mt.call(Tt,Vt)&&Ke(zt,Vt,Tt[Vt]);if(Ce)for(var Vt of Ce(Tt))Pe.call(Tt,Vt)&&Ke(zt,Vt,Tt[Vt]);return zt},It=(zt,Tt)=>{var Vt={};for(var tn in zt)mt.call(zt,tn)&&Tt.indexOf(tn)<0&&(Vt[tn]=zt[tn]);if(zt!=null&&Ce)for(var tn of Ce(zt))Tt.indexOf(tn)<0&&Pe.call(zt,tn)&&(Vt[tn]=zt[tn]);return Vt},wt=(zt,Tt,Vt)=>new Promise((tn,xn)=>{var wn=Hn=>{try{vn(Vt.next(Hn))}catch(zn){xn(zn)}},mn=Hn=>{try{vn(Vt.throw(Hn))}catch(zn){xn(zn)}},vn=Hn=>Hn.done?tn(Hn.value):Promise.resolve(Hn.value).then(wn,mn);vn((Vt=Vt.apply(zt,Tt)).next())}),Xt=zt=>{var Tt=zt,{className:Vt,style:tn,children:xn,loading:wn=!1,openLoading:mn,onClick:vn=()=>{},size:Hn="middle",shape:zn="round"}=Tt,Bt=It(Tt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Jt,On]=(0,z.useState)(!1);return z.createElement(ne.ZP,ft({onClick:(0,Ie.throttle)(Mn=>wt(void 0,null,function*(){mn&&On(!0);try{yield vn(Mn)}catch(Te){console.log("error",Te)}mn&&On(!1)}),2e3,{leading:!0,trailing:!1}),className:$e()(se.btn,se[`${Hn}-${zn}`],Vt),style:tn,size:Hn,shape:zn,loading:Jt||wn},Bt),xn)},Gt={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"},rn=({className:zt,style:Tt,children:Vt=null,onClick:tn,title:xn})=>z.createElement("div",{className:$e()(Gt.head,zt),style:Tt},z.createElement("span",{className:"primary-hover",onClick:tn},z.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),z.createElement("b",{title:xn},xn),z.createElement("div",{className:Gt.node},Vt)),ln={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"},nn=({confirmShow:zt=!0,confirmTitle:Tt,confirmClick:Vt,cancelShow:tn=!0,cancelTitle:xn,cancelClick:wn,className:mn,style:vn,confirmLoading:Hn=!1})=>z.createElement("div",{className:$e()(ln.btns,mn),style:vn},zt&&z.createElement(ne.ZP,{loading:Hn,onClick:Vt,type:"primary",className:ln.confirm},Tt),tn&&z.createElement(ne.ZP,{onClick:wn,className:ln.cancel},xn)),Ut={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"},ut=({className:zt,style:Tt={},LeftContent:Vt,children:tn,RightContent:xn})=>z.createElement("div",{className:$e()(Ut.fixedBottom,zt),style:Tt},z.createElement("div",{className:Ut.wrap},z.createElement("div",{className:Ut.left},Vt),z.createElement("div",{className:Ut.center},tn),z.createElement("div",{className:Ut.right},xn))),Rt={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"},De=({className:zt,style:Tt={},dataSource:Vt=[]})=>z.createElement("div",{className:$e()(Rt.crumbs,zt),style:Tt},Vt.map((tn,xn)=>xn<Vt.length-1?z.createElement(z.Fragment,{key:xn},tn.path||tn.onClick?z.createElement("span",{className:Rt.hover,onClick:tn!=null&&tn.onClick?tn.onClick:()=>ze.history.push(tn.path)},tn.name):z.createElement("span",null,tn.name),z.createElement("span",null,"\xA0",">","\xA0")):z.createElement("span",{key:xn,style:{color:"#5F6368"}},tn.name))),Ye=ie(11938),pt=Object.defineProperty,kt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,dn=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,cn=(zt,Tt,Vt)=>Tt in zt?pt(zt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):zt[Tt]=Vt,In=(zt,Tt)=>{for(var Vt in Tt||(Tt={}))Dn.call(Tt,Vt)&&cn(zt,Vt,Tt[Vt]);if(dn)for(var Vt of dn(Tt))Pn.call(Tt,Vt)&&cn(zt,Vt,Tt[Vt]);return zt},gn=(zt,Tt)=>kt(zt,Yt(Tt)),$n=(zt,Tt)=>{var Vt={};for(var tn in zt)Dn.call(zt,tn)&&Tt.indexOf(tn)<0&&(Vt[tn]=zt[tn]);if(zt!=null&&dn)for(var tn of dn(zt))Tt.indexOf(tn)<0&&Pn.call(zt,tn)&&(Vt[tn]=zt[tn]);return Vt};const{Countdown:An}=Ye.default;var qt=zt=>{var Tt=zt,{onChange:Vt}=Tt,tn=$n(Tt,["onChange"]);const[xn,wn]=(0,z.useState)(null);(0,z.useEffect)(()=>{typeof xn=="number"&&xn>=0&&Vt(xn)},[xn]);const mn=vn=>{const Hn=Math.floor(vn/1e3);wn(Hn)};return z.createElement(An,gn(In({},tn),{onChange:mn}))}},31103:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return it}});var z=ie(59301);function it(ye,qe){const Ee=(0,z.useRef)();(0,z.useEffect)(()=>{Ee.current=ye}),(0,z.useEffect)(()=>{function Se(){Ee.current()}if(qe!==null){let Ne=setInterval(Se,qe);return()=>clearInterval(Ne)}},[qe])}},18457:function(an,Kt,ie){"use strict";ie.r(Kt),ie.d(Kt,{default:function(){return Be}});var z=ie(59301),it=ie(38147),ye={flex_box_center:"flex_box_center___XSfK9",flex_space_between:"flex_space_between___fNQw6",flex_box_vertical_center:"flex_box_vertical_center___lE1Os",flex_box_center_end:"flex_box_center_end___IyHt0",flex_box_column:"flex_box_column___s_S14",wrap:"wrap___jhaRK",title:"title___yHGiU",tags:"tags___NT3qR",tag:"tag___PxWDv",btns:"btns___NjqzR"},qe=ie(6767),Ee=ie(37568),Se=ie(4875),Ne={flex_box_center:"flex_box_center___yia5q",flex_space_between:"flex_space_between___WWLmb",flex_box_vertical_center:"flex_box_vertical_center___N_pbo",flex_box_center_end:"flex_box_center_end___DSwEA",flex_box_column:"flex_box_column___jCGMT",add:"add___QhmVz",row:"row___jUJhV",input:"input___rAwei",title:"title___IS6B6",list:"list___oafqL",listRow:"listRow___JbnHf",listNextRow:"listNextRow___zlQFB"},$e=ie(82636),Ie=ie(25374),he=ie(89392),Xe=ie(65862),we=ie(65582),Ot=(tt,Et,ge)=>new Promise((de,_e)=>{var Wt=Me=>{try{pe(ge.next(Me))}catch(ze){_e(ze)}},xt=Me=>{try{pe(ge.throw(Me))}catch(ze){_e(ze)}},pe=Me=>Me.done?de(Me.value):Promise.resolve(Me.value).then(Wt,xt);pe((ge=ge.apply(tt,Et)).next())}),Re=({})=>{const tt=(0,we.useParams)(),{virtual_spacesId:Et,id:ge}=tt,[de,_e]=(0,z.useState)(""),[Wt,xt]=(0,z.useState)([]),[pe,Me]=(0,z.useState)(!1);(0,z.useEffect)(()=>{ge&&ze()},[ge]);const ze=()=>Ot(void 0,null,function*(){var Lt,st;const ae=yield(0,it.ZP)(`/api/virtual_classrooms/${tt.virtual_spacesId}/knowledge_systems/${ge}/show_content.json`,{method:"get"});(ae==null?void 0:ae.status)!==-1&&(xt((Lt=ae==null?void 0:ae.members)==null?void 0:Lt.module_content),_e((st=ae==null?void 0:ae.members)==null?void 0:st.module_name))}),Nt=()=>{const Lt={knowledge_point:"",content:"",target:"",class_hour:"",lesson_plan:""};xt([...Wt,Lt])},At=Lt=>{const st=Wt.filter((ae,te)=>te!==Lt);xt(st)},Zt=(Lt,st,ae)=>{const te=(0,he.cloneDeep)(Wt);te[st][Lt]=ae,xt(te)},Fe=()=>Ot(void 0,null,function*(){if(!de){qe.ZP.warning("\u8BF7\u8F93\u5165\u6A21\u5757\u540D\u79F0");return}if(!Wt.length){qe.ZP.warning("\u8BF7\u6DFB\u52A0\u77E5\u8BC6\u70B9");return}Me(!0);let Lt=`/api/virtual_classrooms/${tt.virtual_spacesId}/knowledge_systems/add_content.json`;ge&&(Lt=`/api/virtual_classrooms/${tt.virtual_spacesId}/knowledge_systems/${ge}/update_content.json`);const st=yield(0,it.ZP)(Lt,{method:ge?"put":"post",body:{module_content:Wt,module_name:de,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});(st==null?void 0:st.status)!==-1&&(st==null?void 0:st.status)!==403&&(qe.ZP.success("\u64CD\u4F5C\u6210\u529F"),we.history.push(`/${Xe.AS}/${tt.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)),Me(!1)});return z.createElement("div",{style:{marginTop:ge?30:0},className:Ne.add},z.createElement("div",{className:Ne.row},z.createElement("span",{className:"c-grey-666 font14 mr20"},"\u6A21\u5757\u540D\u79F0"),z.createElement(Ee.default,{placeholder:"\u8BF7\u8F93\u5165",onChange:Lt=>_e(Lt.target.value),value:de,className:Ne.input})),z.createElement("div",{className:Ne.title},z.createElement("b",null),z.createElement("span",null,"\u6A21\u5757\u5185\u5BB9")),Wt.map((Lt,st)=>{const{knowledge_point:ae,content:te,target:ee,class_hour:oe,lesson_plan:se}=Lt;return z.createElement("div",{className:Ne.list,key:st},z.createElement("div",{className:Ne.listRow},z.createElement("span",null,"\u77E5\u8BC6\u70B9"),z.createElement(Ee.default,{onChange:ne=>Zt("knowledge_point",st,ne.target.value),value:ae,placeholder:"\u8BF7\u8F93\u5165",className:Ne.input})),z.createElement("div",{className:Ne.listRow},z.createElement("span",null,"\u4E3B\u8981\u5185\u5BB9"),z.createElement(Ee.default.TextArea,{onChange:ne=>Zt("content",st,ne.target.value),value:te,autoSize:{minRows:3,maxRows:6},className:Ne.input})),z.createElement("div",{className:Ne.listRow},z.createElement("span",null,"\u80FD\u529B\u76EE\u6807"),z.createElement(Ee.default.TextArea,{onChange:ne=>Zt("target",st,ne.target.value),value:ee,autoSize:{minRows:3,maxRows:6},className:Ne.input})),z.createElement("div",{className:Ne.listRow},z.createElement("span",null,"\u53C2\u8003\u5B66\u65F6"),z.createElement(Se.Z,{onChange:ne=>Zt("class_hour",st,ne),precision:1,min:.1,value:oe,className:Ne.input})),z.createElement("div",{className:Ne.listNextRow},z.createElement("span",null,"\u6559\u6848"),z.createElement("div",{style:{flex:1}},z.createElement(Ie.Z,{onChange:ne=>Zt("lesson_plan",st,ne),defaultValue:se,height:280,values:"2222"})),z.createElement("i",{onClick:()=>At(st),className:"iconfont icon-piliangshanchubeifen"})))}),z.createElement($e.op,{onClick:Nt,style:{display:"inline-block",marginTop:20}},z.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u65B0\u589E\u77E5\u8BC6\u70B9"),z.createElement($e.QD,{confirmTitle:"\u786E\u8BA4\u53D1\u5E03",confirmLoading:pe,confirmClick:Fe,cancelClick:()=>{we.history.push(`/${Xe.AS}/${tt.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt20"}))},Ge=ie(62957),He=ie(77019),Ct=ie(94968),Mt={flex_box_center:"flex_box_center___MWmFU",flex_space_between:"flex_space_between___YKGNN",flex_box_vertical_center:"flex_box_vertical_center___DDTno",flex_box_center_end:"flex_box_center_end___nE28i",flex_box_column:"flex_box_column___OZbik"},jt=ie(74128),Dt=ie(70031),et=ie(59301),yt=Object.defineProperty,Ue=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,dt=(tt,Et,ge)=>Et in tt?yt(tt,Et,{enumerable:!0,configurable:!0,writable:!0,value:ge}):tt[Et]=ge,St=(tt,Et)=>{for(var ge in Et||(Et={}))Ft.call(Et,ge)&&dt(tt,ge,Et[ge]);if(Ue)for(var ge of Ue(Et))vt.call(Et,ge)&&dt(tt,ge,Et[ge]);return tt},Oe=(tt,Et,ge)=>new Promise((de,_e)=>{var Wt=Me=>{try{pe(ge.next(Me))}catch(ze){_e(ze)}},xt=Me=>{try{pe(ge.throw(Me))}catch(ze){_e(ze)}},pe=Me=>Me.done?de(Me.value):Promise.resolve(Me.value).then(Wt,xt);pe((ge=ge.apply(tt,Et)).next())}),rt=({})=>{const tt=(0,we.useParams)(),{virtual_spacesId:Et}=tt,[ge,de]=(0,z.useState)([]),[_e,Wt]=(0,z.useState)(!1),xt={onRemove:()=>{de([])},beforeUpload:Me=>{var ze,Nt,At;let Zt=(At=Me==null?void 0:Me.name)==null?void 0:At.substring((ze=Me==null?void 0:Me.name)==null?void 0:ze.lastIndexOf("."),(Nt=Me==null?void 0:Me.name)==null?void 0:Nt.length);if(Zt=Zt==null?void 0:Zt.toLowerCase(),Zt!==".xls"&&Zt!==".xlsx")return qe.ZP.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();let Fe=[];return Fe.push(Me),de([...Fe]),Promise.reject()},fileList:ge,accept:".xls,.xlsx"},pe=()=>Oe(void 0,null,function*(){var Me;if((ge==null?void 0:ge.length)<=0){qe.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}const ze=new FormData;ze.append("file",ge[0]),ze.append("virtual_module_id",window.localStorage.getItem("vtrsModuleId")),Wt(!0);let Nt=`/api/virtual_classrooms/${tt.virtual_spacesId}/knowledge_systems/batch_import.json`;const At=yield(0,it.ZP)(Nt,{method:"post",body:ze},!0);(At==null?void 0:At.status)!==-1&&(At==null?void 0:At.status)!==403&&Ge.default.info({centered:!0,keyboard:!1,maskClosable:!1,okText:"\u786E\u5B9A",icon:null,title:"\u63D0\u793A",className:Dt.Z.CustomTipsModalCss,content:et.createElement("div",null,et.createElement("div",null,"\u6210\u529F",At==null?void 0:At.success,"\u6761"),et.createElement("div",null,"\u5931\u8D25",((Me=At==null?void 0:At.fail)==null?void 0:Me.length)||0,"\u6761")),onOk:()=>{we.history.push(`/${Xe.AS}/${tt.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}}),Wt(!1)});return et.createElement("div",{className:Mt.add},et.createElement(He.Z,{className:"mt20"},et.createElement("div",{className:"c-grey-666 font14 mr20 pt5"},"\u4E0A\u4F20\u6587\u4EF6"),et.createElement("div",null,et.createElement(Ct.default,St({},xt),et.createElement($e.op,{style:{borderRadius:2}},et.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u9009\u62E9\u6587\u4EF6")),et.createElement("div",{className:"c-grey-666 font14 mt35"},"\u6CE8\u610F\uFF1A"),et.createElement("div",{className:"c-grey-666 font14 pt5 pb5"},"1\u3001\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx \u6216 .xls\u7C7B\u578B\u7684\u6587\u4EF6"),et.createElement("div",{className:"c-grey-666 font14"},"2\u3001\u9700\u6309\u7167\u6307\u5B9A\u6A21\u677F\u4E0A\u4F20\u6570\u636E ",et.createElement("a",{className:"ml5 mr5",onClick:()=>Oe(void 0,null,function*(){(0,Xe.FH)("",(0,Xe.NY)({url:jt.Z.API_SERVER+"/api/virtual_classrooms/download_content_module_template",query:{}}))})},"\u70B9\u51FB\u4E0B\u8F7D\u6A21\u677F")))),et.createElement($e.QD,{confirmTitle:"\u786E\u8BA4\u4E0A\u4F20",confirmLoading:_e,confirmClick:pe,cancelClick:()=>{we.history.push(`/${Xe.AS}/${tt.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt20"}))},ue=(tt,Et,ge)=>new Promise((de,_e)=>{var Wt=Me=>{try{pe(ge.next(Me))}catch(ze){_e(ze)}},xt=Me=>{try{pe(ge.throw(Me))}catch(ze){_e(ze)}},pe=Me=>Me.done?de(Me.value):Promise.resolve(Me.value).then(Wt,xt);pe((ge=ge.apply(tt,Et)).next())}),Be=({})=>{const tt=(0,we.useParams)(),[Et,ge]=(0,z.useState)("1"),{virtual_spacesId:de,id:_e}=tt,[Wt,xt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{Me()},[]);const pe=[{id:"1",name:"\u5355\u4E2A\u65B0\u589E"},{id:"2",name:"\u6279\u91CF\u5BFC\u5165"}],Me=()=>ue(void 0,null,function*(){(yield(0,it.ZP)(`/api/virtual_classrooms/${de}/settings_auth.json`,{method:"get"})).status===0&&xt(!0)});return Wt?z.createElement("div",{className:ye.wrap},z.createElement($e.qE,{title:_e?"\u7F16\u8F91\u77E5\u8BC6\u70B9\u6A21\u5757":"\u65B0\u5EFA\u77E5\u8BC6\u70B9\u6A21\u5757",onClick:()=>we.history.push(`/${Xe.AS}/${de}/knowledge?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}),!_e&&z.createElement($e.qp,{titleWidth:56,dataSource:pe,className:"mt25",title:"\u65B0\u589E\u6A21\u5F0F",value:Et,onChange:ze=>ge(ze)}),Et==="1"&&z.createElement(Re,null),Et==="2"&&z.createElement(rt,null)):z.createElement(z.Fragment,null)}},49142:function(an,Kt,ie){"use strict";ie.d(Kt,{AL:function(){return Dt},Iy:function(){return Xe},Qv:function(){return ot},ez:function(){return jt},jb:function(){return we}});var z=ie(32834),it=ie.n(z),ye=ie(11690),qe=ie.n(ye);let Ee=1;function Se(vt,dt){const St=vt.match(/^(\s+)(?:```)/);if(St===null)return dt;const Oe=St[1];return dt.split(`
`).map(nt=>{const rt=nt.match(/^\s+/);if(rt===null)return nt;const[ue]=rt;return ue.length>=Oe.length?nt.slice(Oe.length):nt}).join(`
`)}let Ne=[],$e=["<ul>"];const Ie=new(it()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Xe(){Ne.length=0,$e=["<ul>"]}const we={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ot(vt,dt,St,Oe){if(dt>=vt.length||vt[dt].level<=St)return dt;var nt=vt[dt];Oe.push("<li><a href='#"+Ee+nt.anchor+"'>"+nt.text+"</a>"),dt++;var rt=[];return dt=Ot(vt,dt,nt.level,rt),rt.length>0&&(Oe.push("<ul>"),rt.forEach(function(ue){Oe.push(ue)}),Oe.push("</ul>")),Oe.push("</li>"),dt=Ot(vt,dt,St,Oe),dt}function ot(){return Ot(Ne,0,0,$e),$e.push("</ul>"),$e.join("")}const Re={heading(vt){const dt=he.exec(vt);if(Ee+=1,dt)return{type:"heading",raw:dt[0],depth:dt[1].length,text:dt[2]}},fences(vt){const dt=this.rules.block.fences.exec(vt);if(dt){const St=dt[0];let Oe=Se(St,dt[3]||"");const nt=dt[2]?dt[2].trim():dt[2];if(["latex","katex","math"].indexOf(nt)>=0){const rt=Ct(),ue=Oe;Oe=rt,Mt[rt]={type:"block",expression:ue}}return{type:"code",raw:St,lang:nt,text:Oe}}}},Ge=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let He=0;const Ct=()=>`__special_katext_id_${He++}__`;let Mt={};function jt(){return Mt}function Dt(){He=0,Mt={}}function et(vt){return vt=vt.replace(Ge,(dt,St)=>{const Oe=Ct();return Mt[Oe]={type:"inline",expression:St},Oe}),vt}const yt=Ie.listitem;Ie.listitem=function(vt){return yt(et(vt))};const Ue=Ie.paragraph;Ie.paragraph=function(vt){return Ue(et(vt))};const Ft=Ie.tablecell;Ie.tablecell=function(vt,dt){return Ft(et(vt),dt)},Ie.code=function(vt,dt,St){const Oe=(dt||"").match(/\S*/)[0];return Oe?["latex","katex","math"].indexOf(Oe)>=0?`<p class='editormd-tex'>${vt}</p>`:`<pre class="prettyprint linenums"><code class="language-${dt}">${St?vt:(0,ye.escape)(vt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(St?vt:(0,ye.escape)(vt,!0))+"</code></pre>"},Ie.heading=function(vt,dt,St){let Oe=this.options.headerPrefix+St.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ne.push({anchor:Oe,level:dt,text:vt}),"<h"+dt+' id="'+Ee+Oe+'">'+vt+"</h"+dt+">"},it().setOptions({silent:!0,gfm:!0,pedantic:!1}),it().use({tokenizer:Re,renderer:Ie}),Kt.ZP=it()},86013:function(an,Kt,ie){"use strict";var z=ie(59301),it=ie(19248);const ye=qe=>{let Ee;return typeof qe=="object"&&(qe!=null&&qe.clearIcon)?Ee=qe:qe&&(Ee={clearIcon:z.createElement(it.Z,null)}),Ee};Kt.Z=ye},38406:function(an,Kt,ie){"use strict";var z=ie(59301),it=ie(48755),ye=ie(584);const qe=Ee=>{const{componentName:Se}=Ee,{getPrefixCls:Ne}=(0,z.useContext)(it.E_),$e=Ne("empty");switch(Se){case"Table":case"List":return z.createElement(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE,className:`${$e}-small`});case"Table.filter":return null;default:return z.createElement(ye.Z,null)}};Kt.Z=qe},36207:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return mt}});var z=ie(59301),it=ie(92310),ye=ie.n(it),qe=ie(33885),Ee=ie(42978),Se=ie(43403),Ne=ie(34280),$e=z.createContext(null),Ie=z.createContext({}),he=$e,Xe=ie(20068),we=ie(54476),Ot=ie(77900),ot=ie(10228),Re=ie(26112),Ge=ie(75931),He=ie(8654),Ct=["prefixCls","className","containerRef"],Mt=function(Ke){var ft=Ke.prefixCls,It=Ke.className,wt=Ke.containerRef,Qt=(0,Ge.Z)(Ke,Ct),Xt=z.useContext(Ie),Gt=Xt.panel,un=(0,He.x1)(Gt,wt);return z.createElement("div",(0,we.Z)({className:ye()("".concat(ft,"-content"),It),role:"dialog",ref:un},(0,Re.Z)(Ke,{aria:!0}),{"aria-modal":"true"},Qt))},jt=Mt,Dt=ie(48736);function et(Pe){return typeof Pe=="string"&&String(Number(Pe))===Pe?((0,Dt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Pe)):Pe}function yt(Pe){warning(!("wrapperClassName"in Pe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Pe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ue={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ft(Pe,Ke){var ft,It,wt,Qt=Pe.prefixCls,Xt=Pe.open,Gt=Pe.placement,un=Pe.inline,rn=Pe.push,ln=Pe.forceRender,Pt=Pe.autoFocus,nn=Pe.keyboard,Ut=Pe.classNames,Le=Pe.rootClassName,ut=Pe.rootStyle,Rt=Pe.zIndex,$t=Pe.className,De=Pe.id,Ye=Pe.style,pt=Pe.motion,kt=Pe.width,Yt=Pe.height,dn=Pe.children,Dn=Pe.mask,Pn=Pe.maskClosable,cn=Pe.maskMotion,In=Pe.maskClassName,gn=Pe.maskStyle,$n=Pe.afterOpenChange,An=Pe.onClose,En=Pe.onMouseEnter,qt=Pe.onMouseOver,zt=Pe.onMouseLeave,Tt=Pe.onClick,Vt=Pe.onKeyDown,tn=Pe.onKeyUp,xn=Pe.styles,wn=Pe.drawerRender,mn=z.useRef(),vn=z.useRef(),Hn=z.useRef();z.useImperativeHandle(Ke,function(){return mn.current});var zn=function(Ze){var Ve=Ze.keyCode,ct=Ze.shiftKey;switch(Ve){case ot.Z.TAB:{if(Ve===ot.Z.TAB){if(!ct&&document.activeElement===Hn.current){var sn;(sn=vn.current)===null||sn===void 0||sn.focus({preventScroll:!0})}else if(ct&&document.activeElement===vn.current){var en;(en=Hn.current)===null||en===void 0||en.focus({preventScroll:!0})}}break}case ot.Z.ESC:{An&&nn&&(Ze.stopPropagation(),An(Ze));break}}};z.useEffect(function(){if(Xt&&Pt){var at;(at=mn.current)===null||at===void 0||at.focus({preventScroll:!0})}},[Xt]);var Bt=z.useState(!1),Jt=(0,Ee.Z)(Bt,2),On=Jt[0],Mn=Jt[1],Te=z.useContext(he),We;typeof rn=="boolean"?We=rn?{}:{distance:0}:We=rn||{};var xe=(ft=(It=(wt=We)===null||wt===void 0?void 0:wt.distance)!==null&&It!==void 0?It:Te==null?void 0:Te.pushDistance)!==null&&ft!==void 0?ft:180,ke=z.useMemo(function(){return{pushDistance:xe,push:function(){Mn(!0)},pull:function(){Mn(!1)}}},[xe]);z.useEffect(function(){if(Xt){var at;Te==null||(at=Te.push)===null||at===void 0||at.call(Te)}else{var Ze;Te==null||(Ze=Te.pull)===null||Ze===void 0||Ze.call(Te)}},[Xt]),z.useEffect(function(){return function(){var at;Te==null||(at=Te.pull)===null||at===void 0||at.call(Te)}},[]);var Ae=Dn&&z.createElement(Ot.default,(0,we.Z)({key:"mask"},cn,{visible:Xt}),function(at,Ze){var Ve=at.className,ct=at.style;return z.createElement("div",{className:ye()("".concat(Qt,"-mask"),Ve,Ut==null?void 0:Ut.mask,In),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},ct),gn),xn==null?void 0:xn.mask),onClick:Pn&&Xt?An:void 0,ref:Ze})}),je=typeof pt=="function"?pt(Gt):pt,be={};if(On&&xe)switch(Gt){case"top":be.transform="translateY(".concat(xe,"px)");break;case"bottom":be.transform="translateY(".concat(-xe,"px)");break;case"left":be.transform="translateX(".concat(xe,"px)");break;default:be.transform="translateX(".concat(-xe,"px)");break}Gt==="left"||Gt==="right"?be.width=et(kt):be.height=et(Yt);var Je={onMouseEnter:En,onMouseOver:qt,onMouseLeave:zt,onClick:Tt,onKeyDown:Vt,onKeyUp:tn},lt=z.createElement(Ot.default,(0,we.Z)({key:"panel"},je,{visible:Xt,forceRender:ln,onVisibleChanged:function(Ze){$n==null||$n(Ze)},removeOnLeave:!1,leavedClassName:"".concat(Qt,"-content-wrapper-hidden")}),function(at,Ze){var Ve=at.className,ct=at.style,sn=z.createElement(jt,(0,we.Z)({id:De,containerRef:Ze,prefixCls:Qt,className:ye()($t,Ut==null?void 0:Ut.content),style:(0,qe.Z)((0,qe.Z)({},Ye),xn==null?void 0:xn.content)},(0,Re.Z)(Pe,{aria:!0}),Je),dn);return z.createElement("div",(0,we.Z)({className:ye()("".concat(Qt,"-content-wrapper"),Ut==null?void 0:Ut.wrapper,Ve),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},be),ct),xn==null?void 0:xn.wrapper)},(0,Re.Z)(Pe,{data:!0})),wn?wn(sn):sn)}),gt=(0,qe.Z)({},ut);return Rt&&(gt.zIndex=Rt),z.createElement(he.Provider,{value:ke},z.createElement("div",{className:ye()(Qt,"".concat(Qt,"-").concat(Gt),Le,(0,Xe.Z)((0,Xe.Z)({},"".concat(Qt,"-open"),Xt),"".concat(Qt,"-inline"),un)),style:gt,tabIndex:-1,ref:mn,onKeyDown:zn},Ae,z.createElement("div",{tabIndex:0,ref:vn,style:Ue,"aria-hidden":"true","data-sentinel":"start"}),lt,z.createElement("div",{tabIndex:0,ref:Hn,style:Ue,"aria-hidden":"true","data-sentinel":"end"})))}var vt=z.forwardRef(Ft),dt=vt,St=function(Ke){var ft=Ke.open,It=ft===void 0?!1:ft,wt=Ke.prefixCls,Qt=wt===void 0?"rc-drawer":wt,Xt=Ke.placement,Gt=Xt===void 0?"right":Xt,un=Ke.autoFocus,rn=un===void 0?!0:un,ln=Ke.keyboard,Pt=ln===void 0?!0:ln,nn=Ke.width,Ut=nn===void 0?378:nn,Le=Ke.mask,ut=Le===void 0?!0:Le,Rt=Ke.maskClosable,$t=Rt===void 0?!0:Rt,De=Ke.getContainer,Ye=Ke.forceRender,pt=Ke.afterOpenChange,kt=Ke.destroyOnClose,Yt=Ke.onMouseEnter,dn=Ke.onMouseOver,Dn=Ke.onMouseLeave,Pn=Ke.onClick,cn=Ke.onKeyDown,In=Ke.onKeyUp,gn=Ke.panelRef,$n=z.useState(!1),An=(0,Ee.Z)($n,2),En=An[0],qt=An[1],zt=z.useState(!1),Tt=(0,Ee.Z)(zt,2),Vt=Tt[0],tn=Tt[1];(0,Ne.Z)(function(){tn(!0)},[]);var xn=Vt?It:!1,wn=z.useRef(),mn=z.useRef();(0,Ne.Z)(function(){xn&&(mn.current=document.activeElement)},[xn]);var vn=function(On){var Mn;if(qt(On),pt==null||pt(On),!On&&mn.current&&!((Mn=wn.current)!==null&&Mn!==void 0&&Mn.contains(mn.current))){var Te;(Te=mn.current)===null||Te===void 0||Te.focus({preventScroll:!0})}},Hn=z.useMemo(function(){return{panel:gn}},[gn]);if(!Ye&&!En&&!xn&&kt)return null;var zn={onMouseEnter:Yt,onMouseOver:dn,onMouseLeave:Dn,onClick:Pn,onKeyDown:cn,onKeyUp:In},Bt=(0,qe.Z)((0,qe.Z)({},Ke),{},{open:xn,prefixCls:Qt,placement:Gt,autoFocus:rn,keyboard:Pt,width:Ut,mask:ut,maskClosable:$t,inline:De===!1,afterOpenChange:vn,ref:wn},zn);return z.createElement(Ie.Provider,{value:Hn},z.createElement(Se.Z,{open:xn||Ye||En,autoDestroy:!1,getContainer:De,autoLock:ut&&(xn||En)},z.createElement(dt,Bt)))},Oe=St,nt=Oe,rt=ie(62487),ue=ie(75030),bt=ie(86641),Be=ie(55743),tt=ie(48755),Et=ie(91190),ge=ie(78776),de=ie(458),Wt=Pe=>{var Ke,ft;const{prefixCls:It,title:wt,footer:Qt,extra:Xt,loading:Gt,onClose:un,headerStyle:rn,bodyStyle:ln,footerStyle:Pt,children:nn,classNames:Ut,styles:Le}=Pe,ut=(0,tt.dj)("drawer"),Rt=z.useCallback(kt=>z.createElement("button",{type:"button",onClick:un,"aria-label":"Close",className:`${It}-close`},kt),[un]),[$t,De]=(0,ge.Z)((0,ge.w)(Pe),(0,ge.w)(ut),{closable:!0,closeIconRender:Rt}),Ye=z.useMemo(()=>{var kt,Yt;return!wt&&!$t?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(kt=ut.styles)===null||kt===void 0?void 0:kt.header),rn),Le==null?void 0:Le.header),className:ye()(`${It}-header`,{[`${It}-header-close-only`]:$t&&!wt&&!Xt},(Yt=ut.classNames)===null||Yt===void 0?void 0:Yt.header,Ut==null?void 0:Ut.header)},z.createElement("div",{className:`${It}-header-title`},De,wt&&z.createElement("div",{className:`${It}-title`},wt)),Xt&&z.createElement("div",{className:`${It}-extra`},Xt))},[$t,De,Xt,rn,It,wt]),pt=z.useMemo(()=>{var kt,Yt;if(!Qt)return null;const dn=`${It}-footer`;return z.createElement("div",{className:ye()(dn,(kt=ut.classNames)===null||kt===void 0?void 0:kt.footer,Ut==null?void 0:Ut.footer),style:Object.assign(Object.assign(Object.assign({},(Yt=ut.styles)===null||Yt===void 0?void 0:Yt.footer),Pt),Le==null?void 0:Le.footer)},Qt)},[Qt,Pt,It]);return z.createElement(z.Fragment,null,Ye,z.createElement("div",{className:ye()(`${It}-body`,Ut==null?void 0:Ut.body,(Ke=ut.classNames)===null||Ke===void 0?void 0:Ke.body),style:Object.assign(Object.assign(Object.assign({},(ft=ut.styles)===null||ft===void 0?void 0:ft.body),ln),Le==null?void 0:Le.body)},Gt?z.createElement(de.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${It}-body-skeleton`}):nn),pt)},xt=ie(36237),pe=ie(63356),Me=ie(16931),ze=ie(51636);const Nt=Pe=>{const Ke="100%";return{left:`translateX(-${Ke})`,right:`translateX(${Ke})`,top:`translateY(-${Ke})`,bottom:`translateY(${Ke})`}[Pe]},At=(Pe,Ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},Pe),{"&-active":Ke}),"&-leave":Object.assign(Object.assign({},Ke),{"&-active":Pe})}),Zt=(Pe,Ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ke}`}}},At({opacity:Pe},{opacity:1})),Fe=(Pe,Ke)=>[Zt(.7,Ke),At({transform:Nt(Pe)},{transform:"none"})];var st=Pe=>{const{componentCls:Ke,motionDurationSlow:ft}=Pe;return{[Ke]:{[`${Ke}-mask-motion`]:Zt(0,ft),[`${Ke}-panel-motion`]:["left","right","top","bottom"].reduce((It,wt)=>Object.assign(Object.assign({},It),{[`&-${wt}`]:Fe(wt,ft)}),{})}}};const ae=Pe=>{const{borderRadiusSM:Ke,componentCls:ft,zIndexPopup:It,colorBgMask:wt,colorBgElevated:Qt,motionDurationSlow:Xt,motionDurationMid:Gt,paddingXS:un,padding:rn,paddingLG:ln,fontSizeLG:Pt,lineHeightLG:nn,lineWidth:Ut,lineType:Le,colorSplit:ut,marginXS:Rt,colorIcon:$t,colorIconHover:De,colorBgTextHover:Ye,colorBgTextActive:pt,colorText:kt,fontWeightStrong:Yt,footerPaddingBlock:dn,footerPaddingInline:Dn,calc:Pn}=Pe,cn=`${ft}-content-wrapper`;return{[ft]:{position:"fixed",inset:0,zIndex:It,pointerEvents:"none",color:kt,"&-pure":{position:"relative",background:Qt,display:"flex",flexDirection:"column",[`&${ft}-left`]:{boxShadow:Pe.boxShadowDrawerLeft},[`&${ft}-right`]:{boxShadow:Pe.boxShadowDrawerRight},[`&${ft}-top`]:{boxShadow:Pe.boxShadowDrawerUp},[`&${ft}-bottom`]:{boxShadow:Pe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ft}-mask`]:{position:"absolute",inset:0,zIndex:It,background:wt,pointerEvents:"auto"},[cn]:{position:"absolute",zIndex:It,maxWidth:"100vw",transition:`all ${Xt}`,"&-hidden":{display:"none"}},[`&-left > ${cn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Pe.boxShadowDrawerLeft},[`&-right > ${cn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Pe.boxShadowDrawerRight},[`&-top > ${cn}`]:{top:0,insetInline:0,boxShadow:Pe.boxShadowDrawerUp},[`&-bottom > ${cn}`]:{bottom:0,insetInline:0,boxShadow:Pe.boxShadowDrawerDown},[`${ft}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Qt,pointerEvents:"auto"},[`${ft}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,xt.unit)(rn)} ${(0,xt.unit)(ln)}`,fontSize:Pt,lineHeight:nn,borderBottom:`${(0,xt.unit)(Ut)} ${Le} ${ut}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ft}-extra`]:{flex:"none"},[`${ft}-close`]:Object.assign({display:"inline-flex",width:Pn(Pt).add(un).equal(),height:Pn(Pt).add(un).equal(),borderRadius:Ke,justifyContent:"center",alignItems:"center",marginInlineEnd:Rt,color:$t,fontWeight:Yt,fontSize:Pt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Gt}`,textRendering:"auto","&:hover":{color:De,backgroundColor:Ye,textDecoration:"none"},"&:active":{backgroundColor:pt}},(0,pe.Qy)(Pe)),[`${ft}-title`]:{flex:1,margin:0,fontWeight:Pe.fontWeightStrong,fontSize:Pt,lineHeight:nn},[`${ft}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ln,overflow:"auto",[`${ft}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ft}-footer`]:{flexShrink:0,padding:`${(0,xt.unit)(dn)} ${(0,xt.unit)(Dn)}`,borderTop:`${(0,xt.unit)(Ut)} ${Le} ${ut}`},"&-rtl":{direction:"rtl"}}}},te=Pe=>({zIndexPopup:Pe.zIndexPopupBase,footerPaddingBlock:Pe.paddingXS,footerPaddingInline:Pe.padding});var ee=(0,Me.I$)("Drawer",Pe=>{const Ke=(0,ze.mergeToken)(Pe,{});return[ae(Ke),st(Ke)]},te),oe=function(Pe,Ke){var ft={};for(var It in Pe)Object.prototype.hasOwnProperty.call(Pe,It)&&Ke.indexOf(It)<0&&(ft[It]=Pe[It]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,It=Object.getOwnPropertySymbols(Pe);wt<It.length;wt++)Ke.indexOf(It[wt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,It[wt])&&(ft[It[wt]]=Pe[It[wt]]);return ft};const se=null,ne={distance:180},me=Pe=>{var Ke;const{rootClassName:ft,width:It,height:wt,size:Qt="default",mask:Xt=!0,push:Gt=ne,open:un,afterOpenChange:rn,onClose:ln,prefixCls:Pt,getContainer:nn,style:Ut,className:Le,visible:ut,afterVisibleChange:Rt,maskStyle:$t,drawerStyle:De,contentWrapperStyle:Ye}=Pe,pt=oe(Pe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:kt,getPrefixCls:Yt,direction:dn,className:Dn,style:Pn,classNames:cn,styles:In}=(0,tt.dj)("drawer"),gn=Yt("drawer",Pt),[$n,An,En]=ee(gn),qt=nn===void 0&&kt?()=>kt(document.body):nn,zt=ye()({"no-mask":!Xt,[`${gn}-rtl`]:dn==="rtl"},ft,An,En),Tt=z.useMemo(()=>It!=null?It:Qt==="large"?736:378,[It,Qt]),Vt=z.useMemo(()=>wt!=null?wt:Qt==="large"?736:378,[wt,Qt]),tn={motionName:(0,bt.m)(gn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},xn=Bt=>({motionName:(0,bt.m)(gn,`panel-motion-${Bt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),wn=(0,Et.H)(),[mn,vn]=(0,ue.Cn)("Drawer",pt.zIndex),{classNames:Hn={},styles:zn={}}=pt;return $n(z.createElement(rt.Z,{form:!0,space:!0},z.createElement(Be.Z.Provider,{value:vn},z.createElement(nt,Object.assign({prefixCls:gn,onClose:ln,maskMotion:tn,motion:xn},pt,{classNames:{mask:ye()(Hn.mask,cn.mask),content:ye()(Hn.content,cn.content),wrapper:ye()(Hn.wrapper,cn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},zn.mask),$t),In.mask),content:Object.assign(Object.assign(Object.assign({},zn.content),De),In.content),wrapper:Object.assign(Object.assign(Object.assign({},zn.wrapper),Ye),In.wrapper)},open:un!=null?un:ut,mask:Xt,push:Gt,width:Tt,height:Vt,style:Object.assign(Object.assign({},Pn),Ut),className:ye()(Dn,Le),rootClassName:zt,getContainer:qt,afterOpenChange:rn!=null?rn:Rt,panelRef:wn,zIndex:mn}),z.createElement(Wt,Object.assign({prefixCls:gn},pt,{onClose:ln}))))))},Ce=Pe=>{const{prefixCls:Ke,style:ft,className:It,placement:wt="right"}=Pe,Qt=oe(Pe,["prefixCls","style","className","placement"]),{getPrefixCls:Xt}=z.useContext(tt.E_),Gt=Xt("drawer",Ke),[un,rn,ln]=ee(Gt),Pt=ye()(Gt,`${Gt}-pure`,`${Gt}-${wt}`,rn,ln,It);return un(z.createElement("div",{className:Pt,style:ft},z.createElement(Wt,Object.assign({prefixCls:Gt},Qt))))};me._InternalPanelDoNotUseOrYouWillBeFired=Ce;var mt=me},19563:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xt}});var z=ie(59301),it=ie(33853),ye=ie(38819),qe=ie(92310),Ee=ie.n(qe),Se=ie(96478),Ne=ie(6089),$e=ie(18929),Ie=ie(2738),he=ie(75030),we=pe=>typeof pe!="object"&&typeof pe!="function"||pe===null,Ot=ie(52838),ot=ie(45915),Re=ie(22703),Ge=ie(32383),He=ie(55743),Ct=ie(48755),Mt=ie(83397),jt=ie(93041),Dt=ie(78857),et=ie(57700),yt=ie(36237),Ue=ie(63356),Ft=ie(46e3),vt=ie(93873),dt=ie(34925),St=ie(37645),Oe=ie(36305),nt=ie(16931),rt=ie(51636),bt=pe=>{const{componentCls:Me,menuCls:ze,colorError:Nt,colorTextLightSolid:At}=pe,Zt=`${ze}-item`;return{[`${Me}, ${Me}-menu-submenu`]:{[`${ze} ${Zt}`]:{[`&${Zt}-danger:not(${Zt}-disabled)`]:{color:Nt,"&:hover":{color:At,backgroundColor:Nt}}}}}};const Be=pe=>{const{componentCls:Me,menuCls:ze,zIndexPopup:Nt,dropdownArrowDistance:At,sizePopupArrow:Zt,antCls:Fe,iconCls:Lt,motionDurationMid:st,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:me}=pe;return[{[Me]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Nt,display:"block","&::before":{position:"absolute",insetBlock:pe.calc(Zt).div(2).sub(At).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Fe}-btn`]:{[`& > ${Lt}-down, & > ${Fe}-btn-icon > ${Lt}-down`]:{fontSize:se}},[`${Me}-wrap`]:{position:"relative",[`${Fe}-btn > ${Lt}-down`]:{fontSize:se},[`${Lt}-down::before`]:{transition:`transform ${st}`}},[`${Me}-wrap-open`]:{[`${Lt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Me}-placement-bottomLeft,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Me}-placement-bottomLeft,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Me}-placement-bottom,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Me}-placement-bottom,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Me}-placement-bottomRight,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Me}-placement-bottomRight`]:{animationName:Ft.fJ},[`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Me}-placement-topLeft,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Me}-placement-topLeft,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Me}-placement-top,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Me}-placement-top,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Me}-placement-topRight,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Me}-placement-topRight`]:{animationName:Ft.Qt},[`&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Me}-placement-bottomLeft,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Me}-placement-bottom,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Me}-placement-bottomRight`]:{animationName:Ft.Uw},[`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Me}-placement-topLeft,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Me}-placement-top,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Me}-placement-topRight`]:{animationName:Ft.ly}}},(0,St.ZP)(pe,me,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Me} ${ze}`]:{position:"relative",margin:0},[`${ze}-submenu-popup`]:{position:"absolute",zIndex:Nt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Me}, ${Me}-menu-submenu`]:Object.assign(Object.assign({},(0,Ue.Wf)(pe)),{[ze]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary},(0,Ue.Qy)(pe)),{"&:empty":{padding:0,boxShadow:"none"},[`${ze}-item-group-title`]:{padding:`${(0,yt.unit)(ae)} ${(0,yt.unit)(ne)}`,color:pe.colorTextDescription,transition:`all ${st}`},[`${ze}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ze}-item-icon`]:{minWidth:te,marginInlineEnd:pe.marginXS,fontSize:pe.fontSizeSM},[`${ze}-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:'""'}},[`${ze}-item-extra`]:{paddingInlineStart:pe.padding,marginInlineStart:"auto",fontSize:pe.fontSizeSM,color:pe.colorTextDescription}},[`${ze}-item, ${ze}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,yt.unit)(ae)} ${(0,yt.unit)(ne)}`,color:pe.colorText,fontWeight:"normal",fontSize:te,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${st}`,borderRadius:pe.borderRadiusSM,"&:hover, &-active":{backgroundColor:pe.controlItemBgHover}},(0,Ue.Qy)(pe)),{"&-selected":{color:pe.colorPrimary,backgroundColor:pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:pe.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,yt.unit)(pe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:pe.colorSplit},[`${Me}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:pe.paddingXS,[`${Me}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:pe.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${ze}-item-group-list`]:{margin:`0 ${(0,yt.unit)(pe.marginXS)}`,padding:0,listStyle:"none"},[`${ze}-submenu-title`]:{paddingInlineEnd:pe.calc(ne).add(pe.fontSizeSM).equal()},[`${ze}-submenu-vertical`]:{position:"relative"},[`${ze}-submenu${ze}-submenu-disabled ${Me}-menu-submenu-title`]:{[`&, ${Me}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:me,cursor:"not-allowed"}},[`${ze}-submenu-selected ${Me}-menu-submenu-title`]:{color:pe.colorPrimary}})})},[(0,Ft.oN)(pe,"slide-up"),(0,Ft.oN)(pe,"slide-down"),(0,vt.Fm)(pe,"move-up"),(0,vt.Fm)(pe,"move-down"),(0,dt._y)(pe,"zoom-big")]]},tt=pe=>Object.assign(Object.assign({zIndexPopup:pe.zIndexPopupBase+50,paddingBlock:(pe.controlHeight-pe.fontSize*pe.lineHeight)/2},(0,St.wZ)({contentRadius:pe.borderRadiusLG,limitVerticalRadius:!0})),(0,Oe.w)(pe));var Et=(0,nt.I$)("Dropdown",pe=>{const{marginXXS:Me,sizePopupArrow:ze,paddingXXS:Nt,componentCls:At}=pe,Zt=(0,rt.mergeToken)(pe,{menuCls:`${At}-menu`,dropdownArrowDistance:pe.calc(ze).div(2).add(Me).equal(),dropdownEdgeChildPadding:Nt});return[Be(Zt),bt(Zt)]},tt,{resetStyle:!1});const ge=null,de=pe=>{var Me;const{menu:ze,arrow:Nt,prefixCls:At,children:Zt,trigger:Fe,disabled:Lt,dropdownRender:st,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:me,onVisibleChange:Ce,mouseEnterDelay:mt=.15,mouseLeaveDelay:Pe=.1,autoAdjustOverflow:Ke=!0,placement:ft="",overlay:It,transitionName:wt}=pe,{getPopupContainer:Qt,getPrefixCls:Xt,direction:Gt,dropdown:un}=z.useContext(Ct.E_),rn=(0,Ge.ln)("Dropdown"),ln=z.useMemo(()=>{const qt=Xt();return wt!==void 0?wt:ft.includes("top")?`${qt}-slide-down`:`${qt}-slide-up`},[Xt,ft,wt]),Pt=z.useMemo(()=>ft?ft.includes("Center")?ft.slice(0,ft.indexOf("Center")):ft:Gt==="rtl"?"bottomRight":"bottomLeft",[ft,Gt]),nn=Xt("dropdown",At),Ut=(0,Mt.Z)(nn),[Le,ut,Rt]=Et(nn,Ut),[,$t]=(0,et.ZP)(),De=z.Children.only(we(Zt)?z.createElement("span",null,Zt):Zt),Ye=(0,Re.Tm)(De,{className:Ee()(`${nn}-trigger`,{[`${nn}-rtl`]:Gt==="rtl"},De.props.className),disabled:(Me=De.props.disabled)!==null&&Me!==void 0?Me:Lt}),pt=Lt?[]:Fe,kt=!!(pt!=null&&pt.includes("contextMenu")),[Yt,dn]=(0,$e.Z)(!1,{value:se!=null?se:me}),Dn=(0,Ne.Z)(qt=>{ne==null||ne(qt,{source:"trigger"}),Ce==null||Ce(qt),dn(qt)}),Pn=Ee()(te,ee,ut,Rt,Ut,un==null?void 0:un.className,{[`${nn}-rtl`]:Gt==="rtl"}),cn=(0,Ot.Z)({arrowPointAtCenter:typeof Nt=="object"&&Nt.pointAtCenter,autoAdjustOverflow:Ke,offset:$t.marginXXS,arrowWidth:Nt?$t.sizePopupArrow:0,borderRadius:$t.borderRadius}),In=z.useCallback(()=>{ze!=null&&ze.selectable&&(ze!=null&&ze.multiple)||(ne==null||ne(!1,{source:"menu"}),dn(!1))},[ze==null?void 0:ze.selectable,ze==null?void 0:ze.multiple]),gn=()=>{let qt;return ze!=null&&ze.items?qt=z.createElement(jt.default,Object.assign({},ze)):typeof It=="function"?qt=It():qt=It,st&&(qt=st(qt)),qt=z.Children.only(typeof qt=="string"?z.createElement("span",null,qt):qt),z.createElement(Dt.J,{prefixCls:`${nn}-menu`,rootClassName:Ee()(Rt,Ut),expandIcon:z.createElement("span",{className:`${nn}-menu-submenu-arrow`},Gt==="rtl"?z.createElement(it.Z,{className:`${nn}-menu-submenu-arrow-icon`}):z.createElement(ye.Z,{className:`${nn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:In,validator:zt=>{let{mode:Tt}=zt}},qt)},[$n,An]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let En=z.createElement(Se.Z,Object.assign({alignPoint:kt},(0,Ie.Z)(pe,["rootClassName"]),{mouseEnterDelay:mt,mouseLeaveDelay:Pe,visible:Yt,builtinPlacements:cn,arrow:!!Nt,overlayClassName:Pn,prefixCls:nn,getPopupContainer:ae||Qt,transitionName:ln,trigger:pt,overlay:gn,placement:Pt,onVisibleChange:Dn,overlayStyle:Object.assign(Object.assign(Object.assign({},un==null?void 0:un.style),oe),{zIndex:$n})}),Ye);return $n&&(En=z.createElement(He.Z.Provider,{value:An},En)),Le(En)},_e=(0,ot.Z)(de,"align",void 0,"dropdown",pe=>pe),Wt=pe=>z.createElement(_e,Object.assign({},pe),z.createElement("span",null));de._InternalPanelDoNotUseOrYouWillBeFired=Wt;var xt=de},75727:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return ot}});var z=ie(19563),it=ie(59301),ye=ie(18785),qe=ie(92310),Ee=ie.n(qe),Se=ie(7939),Ne=ie(48755),$e=ie(44104),Ie=ie(70045),he=function(Re,Ge){var He={};for(var Ct in Re)Object.prototype.hasOwnProperty.call(Re,Ct)&&Ge.indexOf(Ct)<0&&(He[Ct]=Re[Ct]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ct=Object.getOwnPropertySymbols(Re);Mt<Ct.length;Mt++)Ge.indexOf(Ct[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ct[Mt])&&(He[Ct[Mt]]=Re[Ct[Mt]]);return He};const Xe=Re=>{const{getPopupContainer:Ge,getPrefixCls:He,direction:Ct}=it.useContext(Ne.E_),{prefixCls:Mt,type:jt="default",danger:Dt,disabled:et,loading:yt,onClick:Ue,htmlType:Ft,children:vt,className:dt,menu:St,arrow:Oe,autoFocus:nt,overlay:rt,trigger:ue,align:bt,open:Be,onOpenChange:tt,placement:Et,getPopupContainer:ge,href:de,icon:_e=it.createElement(ye.Z,null),title:Wt,buttonsRender:xt=mt=>mt,mouseEnterDelay:pe,mouseLeaveDelay:Me,overlayClassName:ze,overlayStyle:Nt,destroyPopupOnHide:At,dropdownRender:Zt}=Re,Fe=he(Re,["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"]),Lt=He("dropdown",Mt),st=`${Lt}-button`,ae={menu:St,arrow:Oe,autoFocus:nt,align:bt,disabled:et,trigger:et?[]:ue,onOpenChange:tt,getPopupContainer:ge||Ge,mouseEnterDelay:pe,mouseLeaveDelay:Me,overlayClassName:ze,overlayStyle:Nt,destroyPopupOnHide:At,dropdownRender:Zt},{compactSize:te,compactItemClassnames:ee}=(0,Ie.ri)(Lt,Ct),oe=Ee()(st,ee,dt);"overlay"in Re&&(ae.overlay=rt),"open"in Re&&(ae.open=Be),"placement"in Re?ae.placement=Et:ae.placement=Ct==="rtl"?"bottomLeft":"bottomRight";const se=it.createElement(Se.ZP,{type:jt,danger:Dt,disabled:et,loading:yt,onClick:Ue,htmlType:Ft,href:de,title:Wt},vt),ne=it.createElement(Se.ZP,{type:jt,danger:Dt,icon:_e}),[me,Ce]=xt([se,ne]);return it.createElement($e.Z.Compact,Object.assign({className:oe,size:te,block:!0},Fe),me,it.createElement(z.Z,Object.assign({},ae),Ce))};Xe.__ANT_BUTTON=!0;var we=Xe;const Ot=z.Z;Ot.Button=we;var ot=Ot},584:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return jt}});var z=ie(59301),it=ie(92310),ye=ie.n(it),qe=ie(9017),Ee=ie(17835),Se=ie(57700),$e=()=>{const[,Dt]=(0,Se.ZP)(),[et]=(0,qe.Z)("Empty"),Ue=new Ee.FastColor(Dt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Ue,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(et==null?void 0:et.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,Dt]=(0,Se.ZP)(),[et]=(0,qe.Z)("Empty"),{colorFill:yt,colorFillTertiary:Ue,colorFillQuaternary:Ft,colorBgContainer:vt}=Dt,{borderColor:dt,shadowColor:St,contentColor:Oe}=(0,z.useMemo)(()=>({borderColor:new Ee.FastColor(yt).onBackground(vt).toHexString(),shadowColor:new Ee.FastColor(Ue).onBackground(vt).toHexString(),contentColor:new Ee.FastColor(Ft).onBackground(vt).toHexString()}),[yt,Ue,Ft,vt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(et==null?void 0:et.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:St,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:dt},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Oe}))))},Xe=ie(16931),we=ie(51636);const Ot=Dt=>{const{componentCls:et,margin:yt,marginXS:Ue,marginXL:Ft,fontSize:vt,lineHeight:dt}=Dt;return{[et]:{marginInline:Ue,fontSize:vt,lineHeight:dt,textAlign:"center",[`${et}-image`]:{height:Dt.emptyImgHeight,marginBottom:Ue,opacity:Dt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${et}-description`]:{color:Dt.colorTextDescription},[`${et}-footer`]:{marginTop:yt},"&-normal":{marginBlock:Ft,color:Dt.colorTextDescription,[`${et}-description`]:{color:Dt.colorTextDescription},[`${et}-image`]:{height:Dt.emptyImgHeightMD}},"&-small":{marginBlock:Ue,color:Dt.colorTextDescription,[`${et}-image`]:{height:Dt.emptyImgHeightSM}}}}};var ot=(0,Xe.I$)("Empty",Dt=>{const{componentCls:et,controlHeightLG:yt,calc:Ue}=Dt,Ft=(0,we.mergeToken)(Dt,{emptyImgCls:`${et}-img`,emptyImgHeight:Ue(yt).mul(2.5).equal(),emptyImgHeightMD:yt,emptyImgHeightSM:Ue(yt).mul(.875).equal()});return[Ot(Ft)]}),Re=ie(48755),Ge=function(Dt,et){var yt={};for(var Ue in Dt)Object.prototype.hasOwnProperty.call(Dt,Ue)&&et.indexOf(Ue)<0&&(yt[Ue]=Dt[Ue]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Ue=Object.getOwnPropertySymbols(Dt);Ft<Ue.length;Ft++)et.indexOf(Ue[Ft])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Ue[Ft])&&(yt[Ue[Ft]]=Dt[Ue[Ft]]);return yt};const He=z.createElement($e,null),Ct=z.createElement(he,null),Mt=Dt=>{const{className:et,rootClassName:yt,prefixCls:Ue,image:Ft=He,description:vt,children:dt,imageStyle:St,style:Oe,classNames:nt,styles:rt}=Dt,ue=Ge(Dt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:bt,direction:Be,className:tt,style:Et,classNames:ge,styles:de}=(0,Re.dj)("empty"),_e=bt("empty",Ue),[Wt,xt,pe]=ot(_e),[Me]=(0,qe.Z)("Empty"),ze=typeof vt!="undefined"?vt:Me==null?void 0:Me.description,Nt=typeof ze=="string"?ze:"empty";let At=null;return typeof Ft=="string"?At=z.createElement("img",{alt:Nt,src:Ft}):At=Ft,Wt(z.createElement("div",Object.assign({className:ye()(xt,pe,_e,tt,{[`${_e}-normal`]:Ft===Ct,[`${_e}-rtl`]:Be==="rtl"},et,yt,ge.root,nt==null?void 0:nt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),Et),rt==null?void 0:rt.root),Oe)},ue),z.createElement("div",{className:ye()(`${_e}-image`,ge.image,nt==null?void 0:nt.image),style:Object.assign(Object.assign(Object.assign({},St),de.image),rt==null?void 0:rt.image)},At),ze&&z.createElement("div",{className:ye()(`${_e}-description`,ge.description,nt==null?void 0:nt.description),style:Object.assign(Object.assign({},de.description),rt==null?void 0:rt.description)},ze),dt&&z.createElement("div",{className:ye()(`${_e}-footer`,ge.footer,nt==null?void 0:nt.footer),style:Object.assign(Object.assign({},de.footer),rt==null?void 0:rt.footer)},dt)))};Mt.PRESENTED_IMAGE_DEFAULT=He,Mt.PRESENTED_IMAGE_SIMPLE=Ct;var jt=Mt},28284:function(an,Kt,ie){"use strict";ie.d(Kt,{default:function(){return We}});var z=ie(56553),it=ie(94480),ye=ie(59301),qe=ie(92310),Ee=ie.n(qe),Se=ie(77900),Ne=ie(86641),$e=ie(83397);function Ie(xe){const[ke,Ae]=ye.useState(xe);return ye.useEffect(()=>{const je=setTimeout(()=>{Ae(xe)},xe.length?0:10);return()=>{clearTimeout(je)}},[xe]),ke}var he=ie(36237),Xe=ie(63356),we=ie(34925),Ot=ie(34961),ot=ie(51636),Re=ie(16931),He=xe=>{const{componentCls:ke}=xe,Ae=`${ke}-show-help`,je=`${ke}-show-help-item`;return{[Ae]:{transition:`opacity ${xe.motionDurationFast} ${xe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[je]:{overflow:"hidden",transition:`height ${xe.motionDurationFast} ${xe.motionEaseInOut},
opacity ${xe.motionDurationFast} ${xe.motionEaseInOut},
transform ${xe.motionDurationFast} ${xe.motionEaseInOut} !important`,[`&${je}-appear, &${je}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${je}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ct=xe=>({legend:{display:"block",width:"100%",marginBottom:xe.marginLG,padding:0,color:xe.colorTextDescription,fontSize:xe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(xe.lineWidth)} ${xe.lineType} ${xe.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)(xe.controlOutlineWidth)} ${xe.controlOutline}`},output:{display:"block",paddingTop:15,color:xe.colorText,fontSize:xe.fontSize,lineHeight:xe.lineHeight}}),Mt=(xe,ke)=>{const{formItemCls:Ae}=xe;return{[Ae]:{[`${Ae}-label > label`]:{height:ke},[`${Ae}-control-input`]:{minHeight:ke}}}},jt=xe=>{const{componentCls:ke}=xe;return{[xe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(xe)),Ct(xe)),{[`${ke}-text`]:{display:"inline-block",paddingInlineEnd:xe.paddingSM},"&-small":Object.assign({},Mt(xe,xe.controlHeightSM)),"&-large":Object.assign({},Mt(xe,xe.controlHeightLG))})}},Dt=xe=>{const{formItemCls:ke,iconCls:Ae,rootPrefixCls:je,antCls:be,labelRequiredMarkColor:Je,labelColor:lt,labelFontSize:gt,labelHeight:at,labelColonMarginInlineStart:Ze,labelColonMarginInlineEnd:Ve,itemMarginBottom:ct}=xe;return{[ke]:Object.assign(Object.assign({},(0,Xe.Wf)(xe)),{marginBottom:ct,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${be}-row`]:{display:"none"},"&-has-warning":{[`${ke}-split`]:{color:xe.colorError}},"&-has-error":{[`${ke}-split`]:{color:xe.colorWarning}},[`${ke}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:xe.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:at,color:lt,fontSize:gt,[`> ${Ae}`]:{fontSize:xe.fontSize,verticalAlign:"top"},[`&${ke}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:xe.marginXXS,color:Je,fontSize:xe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${ke}-required-mark-hidden, &${ke}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${ke}-optional`]:{display:"inline-block",marginInlineStart:xe.marginXXS,color:xe.colorTextDescription,[`&${ke}-required-mark-hidden`]:{display:"none"}},[`${ke}-tooltip`]:{color:xe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:xe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ze,marginInlineEnd:Ve},[`&${ke}-no-colon::after`]:{content:'"\\a0"'}}},[`${ke}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${je}-col-'"]):not([class*="' ${je}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:xe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ke]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:xe.colorTextDescription,fontSize:xe.fontSize,lineHeight:xe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:xe.controlHeightSM,transition:`color ${xe.motionDurationMid} ${xe.motionEaseOut}`},"&-explain":{"&-error":{color:xe.colorError},"&-warning":{color:xe.colorWarning}}},[`&-with-help ${ke}-explain`]:{height:"auto",opacity:1},[`${ke}-feedback-icon`]:{fontSize:xe.fontSize,textAlign:"center",visibility:"visible",animationName:we.kr,animationDuration:xe.motionDurationMid,animationTimingFunction:xe.motionEaseOutBack,pointerEvents:"none","&-success":{color:xe.colorSuccess},"&-error":{color:xe.colorError},"&-warning":{color:xe.colorWarning},"&-validating":{color:xe.colorPrimary}}})}},et=(xe,ke)=>{const{formItemCls:Ae}=xe;return{[`${ke}-horizontal`]:{[`${Ae}-label`]:{flexGrow:0},[`${Ae}-control`]:{flex:"1 1 0",minWidth:0},[`${Ae}-label[class$='-24'], ${Ae}-label[class*='-24 ']`]:{[`& + ${Ae}-control`]:{minWidth:"unset"}}}}},yt=xe=>{const{componentCls:ke,formItemCls:Ae,inlineItemMarginBottom:je}=xe;return{[`${ke}-inline`]:{display:"flex",flexWrap:"wrap",[Ae]:{flex:"none",marginInlineEnd:xe.margin,marginBottom:je,"&-row":{flexWrap:"nowrap"},[`> ${Ae}-label,
> ${Ae}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ae}-label`]:{flex:"none"},[`${ke}-text`]:{display:"inline-block"},[`${Ae}-has-feedback`]:{display:"inline-block"}}}}},Ue=xe=>({padding:xe.verticalLabelPadding,margin:xe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ft=xe=>{const{componentCls:ke,formItemCls:Ae,rootPrefixCls:je}=xe;return{[`${Ae} ${Ae}-label`]:Ue(xe),[`${ke}:not(${ke}-inline)`]:{[Ae]:{flexWrap:"wrap",[`${Ae}-label, ${Ae}-control`]:{[`&:not([class*=" ${je}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},vt=xe=>{const{componentCls:ke,formItemCls:Ae,antCls:je}=xe;return{[`${ke}-vertical`]:{[`${Ae}:not(${Ae}-horizontal)`]:{[`${Ae}-row`]:{flexDirection:"column"},[`${Ae}-label > label`]:{height:"auto"},[`${Ae}-control`]:{width:"100%"},[`${Ae}-label,
${je}-col-24${Ae}-label,
${je}-col-xl-24${Ae}-label`]:Ue(xe)}},[`@media (max-width: ${(0,he.unit)(xe.screenXSMax)})`]:[Ft(xe),{[ke]:{[`${Ae}:not(${Ae}-horizontal)`]:{[`${je}-col-xs-24${Ae}-label`]:Ue(xe)}}}],[`@media (max-width: ${(0,he.unit)(xe.screenSMMax)})`]:{[ke]:{[`${Ae}:not(${Ae}-horizontal)`]:{[`${je}-col-sm-24${Ae}-label`]:Ue(xe)}}},[`@media (max-width: ${(0,he.unit)(xe.screenMDMax)})`]:{[ke]:{[`${Ae}:not(${Ae}-horizontal)`]:{[`${je}-col-md-24${Ae}-label`]:Ue(xe)}}},[`@media (max-width: ${(0,he.unit)(xe.screenLGMax)})`]:{[ke]:{[`${Ae}:not(${Ae}-horizontal)`]:{[`${je}-col-lg-24${Ae}-label`]:Ue(xe)}}}}},dt=xe=>{const{formItemCls:ke,antCls:Ae}=xe;return{[`${ke}-vertical`]:{[`${ke}-row`]:{flexDirection:"column"},[`${ke}-label > label`]:{height:"auto"},[`${ke}-control`]:{width:"100%"}},[`${ke}-vertical ${ke}-label,
${Ae}-col-24${ke}-label,
${Ae}-col-xl-24${ke}-label`]:Ue(xe),[`@media (max-width: ${(0,he.unit)(xe.screenXSMax)})`]:[Ft(xe),{[ke]:{[`${Ae}-col-xs-24${ke}-label`]:Ue(xe)}}],[`@media (max-width: ${(0,he.unit)(xe.screenSMMax)})`]:{[ke]:{[`${Ae}-col-sm-24${ke}-label`]:Ue(xe)}},[`@media (max-width: ${(0,he.unit)(xe.screenMDMax)})`]:{[ke]:{[`${Ae}-col-md-24${ke}-label`]:Ue(xe)}},[`@media (max-width: ${(0,he.unit)(xe.screenLGMax)})`]:{[ke]:{[`${Ae}-col-lg-24${ke}-label`]:Ue(xe)}}}},St=xe=>({labelRequiredMarkColor:xe.colorError,labelColor:xe.colorTextHeading,labelFontSize:xe.fontSize,labelHeight:xe.controlHeight,labelColonMarginInlineStart:xe.marginXXS/2,labelColonMarginInlineEnd:xe.marginXS,itemMarginBottom:xe.marginLG,verticalLabelPadding:`0 0 ${xe.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Oe=(xe,ke)=>(0,ot.mergeToken)(xe,{formItemCls:`${xe.componentCls}-item`,rootPrefixCls:ke});var nt=(0,Re.I$)("Form",(xe,ke)=>{let{rootPrefixCls:Ae}=ke;const je=Oe(xe,Ae);return[jt(je),Dt(je),He(je),et(je,je.componentCls),et(je,je.formItemCls),yt(je),vt(je),dt(je),(0,Ot.Z)(je),we.kr]},St,{order:-1e3});const rt=[];function ue(xe,ke,Ae){let je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof xe=="string"?xe:`${ke}-${je}`,error:xe,errorStatus:Ae}}var Be=xe=>{let{help:ke,helpStatus:Ae,errors:je=rt,warnings:be=rt,className:Je,fieldId:lt,onVisibleChanged:gt}=xe;const{prefixCls:at}=ye.useContext(z.Rk),Ze=`${at}-item-explain`,Ve=(0,$e.Z)(at),[ct,sn,en]=nt(at,Ve),on=ye.useMemo(()=>(0,Ne.Z)(at),[at]),Fn=Ie(je),Wn=Ie(be),Un=ye.useMemo(()=>ke!=null?[ue(ke,"help",Ae)]:[].concat((0,it.Z)(Fn.map((Nn,Gn)=>ue(Nn,"error","error",Gn))),(0,it.Z)(Wn.map((Nn,Gn)=>ue(Nn,"warning","warning",Gn)))),[ke,Ae,Fn,Wn]),Rn=ye.useMemo(()=>{const Nn={};return Un.forEach(Gn=>{let{key:qn}=Gn;Nn[qn]=(Nn[qn]||0)+1}),Un.map((Gn,qn)=>Object.assign(Object.assign({},Gn),{key:Nn[Gn.key]>1?`${Gn.key}-fallback-${qn}`:Gn.key}))},[Un]),Bn={};return lt&&(Bn.id=`${lt}_help`),ct(ye.createElement(Se.default,{motionDeadline:on.motionDeadline,motionName:`${at}-show-help`,visible:!!Rn.length,onVisibleChanged:gt},Nn=>{const{className:Gn,style:qn}=Nn;return ye.createElement("div",Object.assign({},Bn,{className:Ee()(Ze,Gn,en,Ve,Je,sn),style:qn}),ye.createElement(Se.CSSMotionList,Object.assign({keys:Rn},(0,Ne.Z)(at),{motionName:`${at}-show-help-item`,component:!1}),Xn=>{const{key:Jn,error:kn,errorStatus:nr,className:_n,style:dr}=Xn;return ye.createElement("div",{key:Jn,className:Ee()(_n,{[`${Ze}-${nr}`]:nr}),style:dr},kn)}))}))},tt=ie(22001),Et=ie(48755),ge=ie(2171),de=ie(31756),_e=ie(23069),Wt=ie(76846),xt=ie(16722);const pe=["parentNode"],Me="form_item";function ze(xe){return xe===void 0||xe===!1?[]:Array.isArray(xe)?xe:[xe]}function Nt(xe,ke){if(!xe.length)return;const Ae=xe.join("_");return ke?`${ke}_${Ae}`:pe.includes(Ae)?`${Me}_${Ae}`:Ae}function At(xe,ke,Ae,je,be,Je){let lt=je;return Je!==void 0?lt=Je:Ae.validating?lt="validating":xe.length?lt="error":ke.length?lt="warning":(Ae.touched||be&&Ae.validated)&&(lt="success"),lt}var Zt=function(xe,ke){var Ae={};for(var je in xe)Object.prototype.hasOwnProperty.call(xe,je)&&ke.indexOf(je)<0&&(Ae[je]=xe[je]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,je=Object.getOwnPropertySymbols(xe);be<je.length;be++)ke.indexOf(je[be])<0&&Object.prototype.propertyIsEnumerable.call(xe,je[be])&&(Ae[je[be]]=xe[je[be]]);return Ae};function Fe(xe){return ze(xe).join("_")}function Lt(xe,ke){const Ae=ke.getFieldInstance(xe),je=(0,Wt.bn)(Ae);if(je)return je;const be=Nt(ze(xe),ke.__INTERNAL__.name);if(be)return document.getElementById(be)}function st(xe){const[ke]=(0,tt.useForm)(),Ae=ye.useRef({}),je=ye.useMemo(()=>xe!=null?xe:Object.assign(Object.assign({},ke),{__INTERNAL__:{itemRef:be=>Je=>{const lt=Fe(be);Je?Ae.current[lt]=Je:delete Ae.current[lt]}},scrollToField:function(be){let Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:lt}=Je,gt=Zt(Je,["focus"]),at=Lt(be,je);at&&((0,xt.Z)(at,Object.assign({scrollMode:"if-needed",block:"nearest"},gt)),lt&&je.focusField(be))},focusField:be=>{var Je,lt;const gt=je.getFieldInstance(be);typeof(gt==null?void 0:gt.focus)=="function"?gt.focus():(lt=(Je=Lt(be,je))===null||Je===void 0?void 0:Je.focus)===null||lt===void 0||lt.call(Je)},getFieldInstance:be=>{const Je=Fe(be);return Ae.current[Je]}}),[xe,ke]);return[je]}var ae=ie(98350),te=function(xe,ke){var Ae={};for(var je in xe)Object.prototype.hasOwnProperty.call(xe,je)&&ke.indexOf(je)<0&&(Ae[je]=xe[je]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,je=Object.getOwnPropertySymbols(xe);be<je.length;be++)ke.indexOf(je[be])<0&&Object.prototype.propertyIsEnumerable.call(xe,je[be])&&(Ae[je[be]]=xe[je[be]]);return Ae};const ee=(xe,ke)=>{const Ae=ye.useContext(ge.Z),{getPrefixCls:je,direction:be,requiredMark:Je,colon:lt,scrollToFirstError:gt,className:at,style:Ze}=(0,Et.dj)("form"),{prefixCls:Ve,className:ct,rootClassName:sn,size:en,disabled:on=Ae,form:Fn,colon:Wn,labelAlign:Un,labelWrap:Rn,labelCol:Bn,wrapperCol:Nn,hideRequiredMark:Gn,layout:qn="horizontal",scrollToFirstError:Xn,requiredMark:Jn,onFinishFailed:kn,name:nr,style:_n,feedbackIcons:dr,variant:pr}=xe,sr=te(xe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,de.Z)(en),yr=ye.useContext(ae.Z),lr=ye.useMemo(()=>Jn!==void 0?Jn:Gn?!1:Je!==void 0?Je:!0,[Gn,Jn,Je]),fr=Wn!=null?Wn:lt,tr=je("form",Ve),mr=(0,$e.Z)(tr),[br,Hr,Er]=nt(tr,mr),Tr=Ee()(tr,`${tr}-${qn}`,{[`${tr}-hide-required-mark`]:lr===!1,[`${tr}-rtl`]:be==="rtl",[`${tr}-${ur}`]:ur},Er,mr,Hr,at,ct,sn),[Ir]=st(Fn),{__INTERNAL__:Pr}=Ir;Pr.name=nr;const or=ye.useMemo(()=>({name:nr,labelAlign:Un,labelCol:Bn,labelWrap:Rn,wrapperCol:Nn,vertical:qn==="vertical",colon:fr,requiredMark:lr,itemRef:Pr.itemRef,form:Ir,feedbackIcons:dr}),[nr,Un,Bn,Nn,qn,fr,lr,Ir,dr]),ir=ye.useRef(null);ye.useImperativeHandle(ke,()=>{var Sn;return Object.assign(Object.assign({},Ir),{nativeElement:(Sn=ir.current)===null||Sn===void 0?void 0:Sn.nativeElement})});const er=(Sn,Cn)=>{if(Sn){let fn={block:"nearest"};typeof Sn=="object"&&(fn=Object.assign(Object.assign({},fn),Sn)),Ir.scrollToField(Cn,fn)}},pn=Sn=>{if(kn==null||kn(Sn),Sn.errorFields.length){const Cn=Sn.errorFields[0].name;if(Xn!==void 0){er(Xn,Cn);return}gt!==void 0&&er(gt,Cn)}};return br(ye.createElement(z.pg.Provider,{value:pr},ye.createElement(ge.n,{disabled:on},ye.createElement(_e.Z.Provider,{value:ur},ye.createElement(z.RV,{validateMessages:yr},ye.createElement(z.q3.Provider,{value:or},ye.createElement(tt.default,Object.assign({id:nr},sr,{name:nr,onFinishFailed:pn,form:Ir,ref:ir,style:Object.assign(Object.assign({},Ze),_n),className:Tr}))))))))};var se=ye.forwardRef(ee),ne=ie(41799),me=ie(8654),Ce=ie(22703),mt=ie(32383),Pe=ie(11592);function Ke(xe){if(typeof xe=="function")return xe;const ke=(0,Pe.Z)(xe);return ke.length<=1?ke[0]:ke}const ft=()=>{const{status:xe,errors:ke=[],warnings:Ae=[]}=ye.useContext(z.aM);return{status:xe,errors:ke,warnings:Ae}};ft.Context=z.aM;var It=ft,wt=ie(16089);function Qt(xe){const[ke,Ae]=ye.useState(xe),je=ye.useRef(null),be=ye.useRef([]),Je=ye.useRef(!1);ye.useEffect(()=>(Je.current=!1,()=>{Je.current=!0,wt.Z.cancel(je.current),je.current=null}),[]);function lt(gt){Je.current||(je.current===null&&(be.current=[],je.current=(0,wt.Z)(()=>{je.current=null,Ae(at=>{let Ze=at;return be.current.forEach(Ve=>{Ze=Ve(Ze)}),Ze})})),be.current.push(gt))}return[ke,lt]}function Xt(){const{itemRef:xe}=ye.useContext(z.q3),ke=ye.useRef({});function Ae(je,be){const Je=be&&typeof be=="object"&&(0,me.C4)(be),lt=je.join("_");return(ke.current.name!==lt||ke.current.originRef!==Je)&&(ke.current.name=lt,ke.current.originRef=Je,ke.current.ref=(0,me.sQ)(xe(je),Je)),ke.current.ref}return Ae}var Gt=ie(29194),un=ie(34280),rn=ie(2738),ln=ie(65970),Pt=ie(70425),nn=ie(5472);const Ut=xe=>{const{formItemCls:ke}=xe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ke}-control`]:{display:"flex"}}}};var Le=(0,Re.bk)(["Form","item-item"],(xe,ke)=>{let{rootPrefixCls:Ae}=ke;const je=Oe(xe,Ae);return[Ut(je)]}),ut=function(xe,ke){var Ae={};for(var je in xe)Object.prototype.hasOwnProperty.call(xe,je)&&ke.indexOf(je)<0&&(Ae[je]=xe[je]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,je=Object.getOwnPropertySymbols(xe);be<je.length;be++)ke.indexOf(je[be])<0&&Object.prototype.propertyIsEnumerable.call(xe,je[be])&&(Ae[je[be]]=xe[je[be]]);return Ae};const Rt=24;var De=xe=>{const{prefixCls:ke,status:Ae,labelCol:je,wrapperCol:be,children:Je,errors:lt,warnings:gt,_internalItemRender:at,extra:Ze,help:Ve,fieldId:ct,marginBottom:sn,onErrorVisibleChanged:en,label:on}=xe,Fn=`${ke}-item`,Wn=ye.useContext(z.q3),Un=ye.useMemo(()=>{let sr=Object.assign({},be||Wn.wrapperCol||{});return on===null&&!je&&!be&&Wn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,Pt.U2)(Wn.labelCol,lr),tr=typeof fr=="object"?fr:{},mr=(0,Pt.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in tr&&!("offset"in br)&&tr.span<Rt&&(sr=(0,Pt.t8)(sr,[].concat(lr,["offset"]),tr.span))}),sr},[be,Wn]),Rn=Ee()(`${Fn}-control`,Un.className),Bn=ye.useMemo(()=>{const{labelCol:sr,wrapperCol:ur}=Wn;return ut(Wn,["labelCol","wrapperCol"])},[Wn]),Nn=ye.useRef(null),[Gn,qn]=ye.useState(0);(0,un.Z)(()=>{Ze&&Nn.current?qn(Nn.current.clientHeight):qn(0)},[Ze]);const Xn=ye.createElement("div",{className:`${Fn}-control-input`},ye.createElement("div",{className:`${Fn}-control-input-content`},Je)),Jn=ye.useMemo(()=>({prefixCls:ke,status:Ae}),[ke,Ae]),kn=sn!==null||lt.length||gt.length?ye.createElement(z.Rk.Provider,{value:Jn},ye.createElement(Be,{fieldId:ct,errors:lt,warnings:gt,help:Ve,helpStatus:Ae,className:`${Fn}-explain-connected`,onVisibleChanged:en})):null,nr={};ct&&(nr.id=`${ct}_extra`);const _n=Ze?ye.createElement("div",Object.assign({},nr,{className:`${Fn}-extra`,ref:Nn}),Ze):null,dr=kn||_n?ye.createElement("div",{className:`${Fn}-additional`,style:sn?{minHeight:sn+Gn}:{}},kn,_n):null,pr=at&&at.mark==="pro_table_render"&&at.render?at.render(xe,{input:Xn,errorList:kn,extra:_n}):ye.createElement(ye.Fragment,null,Xn,dr);return ye.createElement(z.q3.Provider,{value:Bn},ye.createElement(nn.Z,Object.assign({},Un,{className:Rn}),pr),ye.createElement(Le,{prefixCls:ke}))},Ye=ie(61485),pt=ie(9017),kt=ie(85981),Yt=ie(25399),dn=function(xe,ke){var Ae={};for(var je in xe)Object.prototype.hasOwnProperty.call(xe,je)&&ke.indexOf(je)<0&&(Ae[je]=xe[je]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,je=Object.getOwnPropertySymbols(xe);be<je.length;be++)ke.indexOf(je[be])<0&&Object.prototype.propertyIsEnumerable.call(xe,je[be])&&(Ae[je[be]]=xe[je[be]]);return Ae};function Dn(xe){return xe?typeof xe=="object"&&!ye.isValidElement(xe)?xe:{title:xe}:null}var cn=xe=>{let{prefixCls:ke,label:Ae,htmlFor:je,labelCol:be,labelAlign:Je,colon:lt,required:gt,requiredMark:at,tooltip:Ze,vertical:Ve}=xe;var ct;const[sn]=(0,pt.Z)("Form"),{labelAlign:en,labelCol:on,labelWrap:Fn,colon:Wn}=ye.useContext(z.q3);if(!Ae)return null;const Un=be||on||{},Rn=Je||en,Bn=`${ke}-item-label`,Nn=Ee()(Bn,Rn==="left"&&`${Bn}-left`,Un.className,{[`${Bn}-wrap`]:!!Fn});let Gn=Ae;const qn=lt===!0||Wn!==!1&&lt!==!1;qn&&!Ve&&typeof Ae=="string"&&Ae.trim()&&(Gn=Ae.replace(/[:|]\s*$/,""));const Jn=Dn(Ze);if(Jn){const{icon:sr=ye.createElement(Ye.Z,null)}=Jn,ur=dn(Jn,["icon"]),yr=ye.createElement(Yt.Z,Object.assign({},ur),ye.cloneElement(sr,{className:`${ke}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Gn=ye.createElement(ye.Fragment,null,Gn,yr)}const kn=at==="optional",nr=typeof at=="function",_n=at===!1;nr?Gn=at(Gn,{required:!!gt}):kn&&!gt&&(Gn=ye.createElement(ye.Fragment,null,Gn,ye.createElement("span",{className:`${ke}-item-optional`,title:""},(sn==null?void 0:sn.optional)||((ct=kt.Z.Form)===null||ct===void 0?void 0:ct.optional))));let dr;_n?dr="hidden":(kn||nr)&&(dr="optional");const pr=Ee()({[`${ke}-item-required`]:gt,[`${ke}-item-required-mark-${dr}`]:dr,[`${ke}-item-no-colon`]:!qn});return ye.createElement(nn.Z,Object.assign({},Un,{className:Nn}),ye.createElement("label",{htmlFor:je,className:pr,title:typeof Ae=="string"?Ae:""},Gn))},In=ie(29679),gn=ie(19248),$n=ie(96512),An=ie(58617);const En={success:In.Z,warning:$n.Z,error:gn.Z,validating:An.Z};function qt(xe){let{children:ke,errors:Ae,warnings:je,hasFeedback:be,validateStatus:Je,prefixCls:lt,meta:gt,noStyle:at}=xe;const Ze=`${lt}-item`,{feedbackIcons:Ve}=ye.useContext(z.q3),ct=At(Ae,je,gt,null,!!be,Je),{isFormItemInput:sn,status:en,hasFeedback:on,feedbackIcon:Fn}=ye.useContext(z.aM),Wn=ye.useMemo(()=>{var Un;let Rn;if(be){const Nn=be!==!0&&be.icons||Ve,Gn=ct&&((Un=Nn==null?void 0:Nn({status:ct,errors:Ae,warnings:je}))===null||Un===void 0?void 0:Un[ct]),qn=ct&&En[ct];Rn=Gn!==!1&&qn?ye.createElement("span",{className:Ee()(`${Ze}-feedback-icon`,`${Ze}-feedback-icon-${ct}`)},Gn||ye.createElement(qn,null)):null}const Bn={status:ct||"",errors:Ae,warnings:je,hasFeedback:!!be,feedbackIcon:Rn,isFormItemInput:!0};return at&&(Bn.status=(ct!=null?ct:en)||"",Bn.isFormItemInput=sn,Bn.hasFeedback=!!(be!=null?be:on),Bn.feedbackIcon=be!==void 0?Bn.feedbackIcon:Fn),Bn},[ct,be,at,sn,en]);return ye.createElement(z.aM.Provider,{value:Wn},ke)}var zt=function(xe,ke){var Ae={};for(var je in xe)Object.prototype.hasOwnProperty.call(xe,je)&&ke.indexOf(je)<0&&(Ae[je]=xe[je]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,je=Object.getOwnPropertySymbols(xe);be<je.length;be++)ke.indexOf(je[be])<0&&Object.prototype.propertyIsEnumerable.call(xe,je[be])&&(Ae[je[be]]=xe[je[be]]);return Ae};function Tt(xe){const{prefixCls:ke,className:Ae,rootClassName:je,style:be,help:Je,errors:lt,warnings:gt,validateStatus:at,meta:Ze,hasFeedback:Ve,hidden:ct,children:sn,fieldId:en,required:on,isRequired:Fn,onSubItemMetaChange:Wn,layout:Un}=xe,Rn=zt(xe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Bn=`${ke}-item`,{requiredMark:Nn,vertical:Gn}=ye.useContext(z.q3),qn=Gn||Un==="vertical",Xn=ye.useRef(null),Jn=Ie(lt),kn=Ie(gt),nr=Je!=null,_n=!!(nr||lt.length||gt.length),dr=!!Xn.current&&(0,Gt.Z)(Xn.current),[pr,sr]=ye.useState(null);(0,un.Z)(()=>{if(_n&&Xn.current){const tr=getComputedStyle(Xn.current);sr(parseInt(tr.marginBottom,10))}},[_n,dr]);const ur=tr=>{tr||sr(null)},lr=function(){let tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=tr?Jn:Ze.errors,br=tr?kn:Ze.warnings;return At(mr,br,Ze,"",!!Ve,at)}(),fr=Ee()(Bn,Ae,je,{[`${Bn}-with-help`]:nr||Jn.length||kn.length,[`${Bn}-has-feedback`]:lr&&Ve,[`${Bn}-has-success`]:lr==="success",[`${Bn}-has-warning`]:lr==="warning",[`${Bn}-has-error`]:lr==="error",[`${Bn}-is-validating`]:lr==="validating",[`${Bn}-hidden`]:ct,[`${Bn}-${Un}`]:Un});return ye.createElement("div",{className:fr,style:be,ref:Xn},ye.createElement(ln.Z,Object.assign({className:`${Bn}-row`},(0,rn.Z)(Rn,["_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"])),ye.createElement(cn,Object.assign({htmlFor:en},xe,{requiredMark:Nn,required:on!=null?on:Fn,prefixCls:ke,vertical:qn})),ye.createElement(De,Object.assign({},xe,Ze,{errors:Jn,warnings:kn,prefixCls:ke,status:lr,help:Je,marginBottom:pr,onErrorVisibleChanged:ur}),ye.createElement(z.qI.Provider,{value:Wn},ye.createElement(qt,{prefixCls:ke,meta:Ze,errors:Ze.errors,warnings:Ze.warnings,hasFeedback:Ve,validateStatus:lr},sn)))),!!pr&&ye.createElement("div",{className:`${Bn}-margin-offset`,style:{marginBottom:-pr}}))}const Vt="__SPLIT__",tn=null;function xn(xe,ke){const Ae=Object.keys(xe),je=Object.keys(ke);return Ae.length===je.length&&Ae.every(be=>{const Je=xe[be],lt=ke[be];return Je===lt||typeof Je=="function"||typeof lt=="function"})}const wn=ye.memo(xe=>{let{children:ke}=xe;return ke},(xe,ke)=>xn(xe.control,ke.control)&&xe.update===ke.update&&xe.childProps.length===ke.childProps.length&&xe.childProps.every((Ae,je)=>Ae===ke.childProps[je]));function mn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function vn(xe){const{name:ke,noStyle:Ae,className:je,dependencies:be,prefixCls:Je,shouldUpdate:lt,rules:gt,children:at,required:Ze,label:Ve,messageVariables:ct,trigger:sn="onChange",validateTrigger:en,hidden:on,help:Fn,layout:Wn}=xe,{getPrefixCls:Un}=ye.useContext(Et.E_),{name:Rn}=ye.useContext(z.q3),Bn=Ke(at),Nn=typeof Bn=="function",Gn=ye.useContext(z.qI),{validateTrigger:qn}=ye.useContext(tt.FieldContext),Xn=en!==void 0?en:qn,Jn=ke!=null,kn=Un("form",Je),nr=(0,$e.Z)(kn),[_n,dr,pr]=nt(kn,nr),sr=(0,mt.ln)("Form.Item"),ur=ye.useContext(tt.ListContext),yr=ye.useRef(null),[lr,fr]=Qt({}),[tr,mr]=(0,ne.Z)(()=>mn()),br=ir=>{const er=ur==null?void 0:ur.getKey(ir.name);if(mr(ir.destroy?mn():ir,!0),Ae&&Fn!==!1&&Gn){let pn=ir.name;if(ir.destroy)pn=yr.current||pn;else if(er!==void 0){const[Sn,Cn]=er;pn=[Sn].concat((0,it.Z)(Cn)),yr.current=pn}Gn(ir,pn)}},Hr=(ir,er)=>{fr(pn=>{const Sn=Object.assign({},pn),fn=[].concat((0,it.Z)(ir.name.slice(0,-1)),(0,it.Z)(er)).join(Vt);return ir.destroy?delete Sn[fn]:Sn[fn]=ir,Sn})},[Er,Tr]=ye.useMemo(()=>{const ir=(0,it.Z)(tr.errors),er=(0,it.Z)(tr.warnings);return Object.values(lr).forEach(pn=>{ir.push.apply(ir,(0,it.Z)(pn.errors||[])),er.push.apply(er,(0,it.Z)(pn.warnings||[]))}),[ir,er]},[lr,tr.errors,tr.warnings]),Ir=Xt();function Pr(ir,er,pn){return Ae&&!on?ye.createElement(qt,{prefixCls:kn,hasFeedback:xe.hasFeedback,validateStatus:xe.validateStatus,meta:tr,errors:Er,warnings:Tr,noStyle:!0},ir):ye.createElement(Tt,Object.assign({key:"row"},xe,{className:Ee()(je,pr,nr,dr),prefixCls:kn,fieldId:er,isRequired:pn,errors:Er,warnings:Tr,meta:tr,onSubItemMetaChange:Hr,layout:Wn}),ir)}if(!Jn&&!Nn&&!be)return _n(Pr(Bn));let or={};return typeof Ve=="string"?or.label=Ve:ke&&(or.label=String(ke)),ct&&(or=Object.assign(Object.assign({},or),ct)),_n(ye.createElement(tt.Field,Object.assign({},xe,{messageVariables:or,trigger:sn,validateTrigger:Xn,onMetaChange:br}),(ir,er,pn)=>{const Sn=ze(ke).length&&er?er.name:[],Cn=Nt(Sn,Rn),fn=Ze!==void 0?Ze:!!(gt!=null&&gt.some(yn=>{if(yn&&typeof yn=="object"&&yn.required&&!yn.warningOnly)return!0;if(typeof yn=="function"){const hn=yn(pn);return(hn==null?void 0:hn.required)&&!(hn!=null&&hn.warningOnly)}return!1})),Zn=Object.assign({},ir);let Kn=null;if(Array.isArray(Bn)&&Jn)Kn=Bn;else if(!(Nn&&(!(lt||be)||Jn))){if(!(be&&!Nn&&!Jn))if(ye.isValidElement(Bn)){const yn=Object.assign(Object.assign({},Bn.props),Zn);if(yn.id||(yn.id=Cn),Fn||Er.length>0||Tr.length>0||xe.extra){const jn=[];(Fn||Er.length>0)&&jn.push(`${Cn}_help`),xe.extra&&jn.push(`${Cn}_extra`),yn["aria-describedby"]=jn.join(" ")}Er.length>0&&(yn["aria-invalid"]="true"),fn&&(yn["aria-required"]="true"),(0,me.Yr)(Bn)&&(yn.ref=Ir(Sn,Bn)),new Set([].concat((0,it.Z)(ze(sn)),(0,it.Z)(ze(Xn)))).forEach(jn=>{yn[jn]=function(){for(var cr,Mr,Ar,Rr,Lr,Fr=arguments.length,Gr=new Array(Fr),jr=0;jr<Fr;jr++)Gr[jr]=arguments[jr];(Ar=Zn[jn])===null||Ar===void 0||(cr=Ar).call.apply(cr,[Zn].concat(Gr)),(Lr=(Rr=Bn.props)[jn])===null||Lr===void 0||(Mr=Lr).call.apply(Mr,[Rr].concat(Gr))}});const Tn=[yn["aria-required"],yn["aria-invalid"],yn["aria-describedby"]];Kn=ye.createElement(wn,{control:Zn,update:Bn,childProps:Tn},(0,Ce.Tm)(Bn,yn))}else Nn&&(lt||be)&&!Jn?Kn=Bn(pn):Kn=Bn}return Pr(Kn,Cn,fn)}))}const Hn=vn;Hn.useStatus=It;var zn=Hn,Bt=function(xe,ke){var Ae={};for(var je in xe)Object.prototype.hasOwnProperty.call(xe,je)&&ke.indexOf(je)<0&&(Ae[je]=xe[je]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,je=Object.getOwnPropertySymbols(xe);be<je.length;be++)ke.indexOf(je[be])<0&&Object.prototype.propertyIsEnumerable.call(xe,je[be])&&(Ae[je[be]]=xe[je[be]]);return Ae},On=xe=>{var{prefixCls:ke,children:Ae}=xe,je=Bt(xe,["prefixCls","children"]);const{getPrefixCls:be}=ye.useContext(Et.E_),Je=be("form",ke),lt=ye.useMemo(()=>({prefixCls:Je,status:"error"}),[Je]);return ye.createElement(tt.List,Object.assign({},je),(gt,at,Ze)=>ye.createElement(z.Rk.Provider,{value:lt},Ae(gt.map(Ve=>Object.assign(Object.assign({},Ve),{fieldKey:Ve.key})),at,{errors:Ze.errors,warnings:Ze.warnings})))};function Mn(){const{form:xe}=ye.useContext(z.q3);return xe}const Te=se;Te.Item=zn,Te.List=On,Te.ErrorList=Be,Te.useForm=st,Te.useFormInstance=Mn,Te.useWatch=tt.useWatch,Te.Provider=z.RV,Te.create=()=>{};var We=Te},4875:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $t}});var z=ie(59301),it=ie(84105),ye=ie(87395),qe=ie(92310),Ee=ie.n(qe),Se=ie(54476),Ne=ie(20068),$e=ie(76190),Ie=ie(42978),he=ie(75931),Xe=ie(67732),we=ie(83652);function Ot(){return typeof BigInt=="function"}function ot(De){return!De&&De!==0&&!Number.isNaN(De)||!String(De).trim()}function Re(De){var Ye=De.trim(),pt=Ye.startsWith("-");pt&&(Ye=Ye.slice(1)),Ye=Ye.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ye.startsWith(".")&&(Ye="0".concat(Ye));var kt=Ye||"0",Yt=kt.split("."),dn=Yt[0]||"0",Dn=Yt[1]||"0";dn==="0"&&Dn==="0"&&(pt=!1);var Pn=pt?"-":"";return{negative:pt,negativeStr:Pn,trimStr:kt,integerStr:dn,decimalStr:Dn,fullStr:"".concat(Pn).concat(kt)}}function Ge(De){var Ye=String(De);return!Number.isNaN(Number(Ye))&&Ye.includes("e")}function He(De){var Ye=String(De);if(Ge(De)){var pt=Number(Ye.slice(Ye.indexOf("e-")+2)),kt=Ye.match(/\.(\d+)/);return kt!=null&&kt[1]&&(pt+=kt[1].length),pt}return Ye.includes(".")&&Mt(Ye)?Ye.length-Ye.indexOf(".")-1:0}function Ct(De){var Ye=String(De);if(Ge(De)){if(De>Number.MAX_SAFE_INTEGER)return String(Ot()?BigInt(De).toString():Number.MAX_SAFE_INTEGER);if(De<Number.MIN_SAFE_INTEGER)return String(Ot()?BigInt(De).toString():Number.MIN_SAFE_INTEGER);Ye=De.toFixed(He(Ye))}return Re(Ye).fullStr}function Mt(De){return typeof De=="number"?!Number.isNaN(De):De?/^\s*-?\d+(\.\d+)?\s*$/.test(De)||/^\s*-?\d+\.\s*$/.test(De)||/^\s*-?\.\d+\s*$/.test(De):!1}var jt=function(){function De(Ye){if((0,Xe.Z)(this,De),(0,Ne.Z)(this,"origin",""),(0,Ne.Z)(this,"negative",void 0),(0,Ne.Z)(this,"integer",void 0),(0,Ne.Z)(this,"decimal",void 0),(0,Ne.Z)(this,"decimalLen",void 0),(0,Ne.Z)(this,"empty",void 0),(0,Ne.Z)(this,"nan",void 0),ot(Ye)){this.empty=!0;return}if(this.origin=String(Ye),Ye==="-"||Number.isNaN(Ye)){this.nan=!0;return}var pt=Ye;if(Ge(pt)&&(pt=Number(pt)),pt=typeof pt=="string"?pt:Ct(pt),Mt(pt)){var kt=Re(pt);this.negative=kt.negative;var Yt=kt.trimStr.split(".");this.integer=BigInt(Yt[0]);var dn=Yt[1]||"0";this.decimal=BigInt(dn),this.decimalLen=dn.length}else this.nan=!0}return(0,we.Z)(De,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(pt){var kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(pt,"0"));return BigInt(kt)}},{key:"negate",value:function(){var pt=new De(this.toString());return pt.negative=!pt.negative,pt}},{key:"cal",value:function(pt,kt,Yt){var dn=Math.max(this.getDecimalStr().length,pt.getDecimalStr().length),Dn=this.alignDecimal(dn),Pn=pt.alignDecimal(dn),cn=kt(Dn,Pn).toString(),In=Yt(dn),gn=Re(cn),$n=gn.negativeStr,An=gn.trimStr,En="".concat($n).concat(An.padStart(In+1,"0"));return new De("".concat(En.slice(0,-In),".").concat(En.slice(-In)))}},{key:"add",value:function(pt){if(this.isInvalidate())return new De(pt);var kt=new De(pt);return kt.isInvalidate()?this:this.cal(kt,function(Yt,dn){return Yt+dn},function(Yt){return Yt})}},{key:"multi",value:function(pt){var kt=new De(pt);return this.isInvalidate()||kt.isInvalidate()?new De(NaN):this.cal(kt,function(Yt,dn){return Yt*dn},function(Yt){return Yt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(pt){return this.toString()===(pt==null?void 0:pt.toString())}},{key:"lessEquals",value:function(pt){return this.add(pt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":Re("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),De}(),Dt=function(){function De(Ye){if((0,Xe.Z)(this,De),(0,Ne.Z)(this,"origin",""),(0,Ne.Z)(this,"number",void 0),(0,Ne.Z)(this,"empty",void 0),ot(Ye)){this.empty=!0;return}this.origin=String(Ye),this.number=Number(Ye)}return(0,we.Z)(De,[{key:"negate",value:function(){return new De(-this.toNumber())}},{key:"add",value:function(pt){if(this.isInvalidate())return new De(pt);var kt=Number(pt);if(Number.isNaN(kt))return this;var Yt=this.number+kt;if(Yt>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(Yt<Number.MIN_SAFE_INTEGER)return new De(Number.MIN_SAFE_INTEGER);var dn=Math.max(He(this.number),He(kt));return new De(Yt.toFixed(dn))}},{key:"multi",value:function(pt){var kt=Number(pt);if(this.isInvalidate()||Number.isNaN(kt))return new De(NaN);var Yt=this.number*kt;if(Yt>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(Yt<Number.MIN_SAFE_INTEGER)return new De(Number.MIN_SAFE_INTEGER);var dn=Math.max(He(this.number),He(kt));return new De(Yt.toFixed(dn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(pt){return this.toNumber()===(pt==null?void 0:pt.toNumber())}},{key:"lessEquals",value:function(pt){return this.add(pt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":Ct(this.number):this.origin}}]),De}();function et(De){return Ot()?new jt(De):new Dt(De)}function yt(De,Ye,pt){var kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(De==="")return"";var Yt=Re(De),dn=Yt.negativeStr,Dn=Yt.integerStr,Pn=Yt.decimalStr,cn="".concat(Ye).concat(Pn),In="".concat(dn).concat(Dn);if(pt>=0){var gn=Number(Pn[pt]);if(gn>=5&&!kt){var $n=et(De).add("".concat(dn,"0.").concat("0".repeat(pt)).concat(10-gn));return yt($n.toString(),Ye,pt,kt)}return pt===0?In:"".concat(In).concat(Ye).concat(Pn.padEnd(pt,"0").slice(0,pt))}return cn===".0"?In:"".concat(In).concat(cn)}var Ue=et,Ft=ie(36901),vt=ie(34280);function dt(De,Ye){return typeof Proxy!="undefined"&&De?new Proxy(De,{get:function(kt,Yt){if(Ye[Yt])return Ye[Yt];var dn=kt[Yt];return typeof dn=="function"?dn.bind(kt):dn}}):De}var St=ie(8654),Oe=ie(48736);function nt(De,Ye){var pt=(0,z.useRef)(null);function kt(){try{var dn=De.selectionStart,Dn=De.selectionEnd,Pn=De.value,cn=Pn.substring(0,dn),In=Pn.substring(Dn);pt.current={start:dn,end:Dn,value:Pn,beforeTxt:cn,afterTxt:In}}catch(gn){}}function Yt(){if(De&&pt.current&&Ye)try{var dn=De.value,Dn=pt.current,Pn=Dn.beforeTxt,cn=Dn.afterTxt,In=Dn.start,gn=dn.length;if(dn.startsWith(Pn))gn=Pn.length;else if(dn.endsWith(cn))gn=dn.length-pt.current.afterTxt.length;else{var $n=Pn[In-1],An=dn.indexOf($n,In-1);An!==-1&&(gn=An+1)}De.setSelectionRange(gn,gn)}catch(En){(0,Oe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(En.message))}}return[kt,Yt]}var rt=ie(49658),ue=function(){var Ye=(0,z.useState)(!1),pt=(0,Ie.Z)(Ye,2),kt=pt[0],Yt=pt[1];return(0,vt.Z)(function(){Yt((0,rt.Z)())},[]),kt},bt=ue,Be=ie(16089),tt=200,Et=600;function ge(De){var Ye=De.prefixCls,pt=De.upNode,kt=De.downNode,Yt=De.upDisabled,dn=De.downDisabled,Dn=De.onStep,Pn=z.useRef(),cn=z.useRef([]),In=z.useRef();In.current=Dn;var gn=function(){clearTimeout(Pn.current)},$n=function(xn,wn){xn.preventDefault(),gn(),In.current(wn);function mn(){In.current(wn),Pn.current=setTimeout(mn,tt)}Pn.current=setTimeout(mn,Et)};z.useEffect(function(){return function(){gn(),cn.current.forEach(function(tn){return Be.Z.cancel(tn)})}},[]);var An=bt();if(An)return null;var En="".concat(Ye,"-handler"),qt=Ee()(En,"".concat(En,"-up"),(0,Ne.Z)({},"".concat(En,"-up-disabled"),Yt)),zt=Ee()(En,"".concat(En,"-down"),(0,Ne.Z)({},"".concat(En,"-down-disabled"),dn)),Tt=function(){return cn.current.push((0,Be.Z)(gn))},Vt={unselectable:"on",role:"button",onMouseUp:Tt,onMouseLeave:Tt};return z.createElement("div",{className:"".concat(En,"-wrap")},z.createElement("span",(0,Se.Z)({},Vt,{onMouseDown:function(xn){$n(xn,!0)},"aria-label":"Increase Value","aria-disabled":Yt,className:qt}),pt||z.createElement("span",{unselectable:"on",className:"".concat(Ye,"-handler-up-inner")})),z.createElement("span",(0,Se.Z)({},Vt,{onMouseDown:function(xn){$n(xn,!1)},"aria-label":"Decrease Value","aria-disabled":dn,className:zt}),kt||z.createElement("span",{unselectable:"on",className:"".concat(Ye,"-handler-down-inner")})))}function de(De){var Ye=typeof De=="number"?Ct(De):Re(De).fullStr,pt=Ye.includes(".");return pt?Re(Ye.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:De+"0"}var _e=ie(30292),Wt=function(){var De=(0,z.useRef)(0),Ye=function(){Be.Z.cancel(De.current)};return(0,z.useEffect)(function(){return Ye},[]),function(pt){Ye(),De.current=(0,Be.Z)(function(){pt()})}},xt=["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"],pe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Me=function(Ye,pt){return Ye||pt.isEmpty()?pt.toString():pt.toNumber()},ze=function(Ye){var pt=Ue(Ye);return pt.isInvalidate()?null:pt},Nt=z.forwardRef(function(De,Ye){var pt=De.prefixCls,kt=De.className,Yt=De.style,dn=De.min,Dn=De.max,Pn=De.step,cn=Pn===void 0?1:Pn,In=De.defaultValue,gn=De.value,$n=De.disabled,An=De.readOnly,En=De.upHandler,qt=De.downHandler,zt=De.keyboard,Tt=De.changeOnWheel,Vt=Tt===void 0?!1:Tt,tn=De.controls,xn=tn===void 0?!0:tn,wn=De.classNames,mn=De.stringMode,vn=De.parser,Hn=De.formatter,zn=De.precision,Bt=De.decimalSeparator,Jt=De.onChange,On=De.onInput,Mn=De.onPressEnter,Te=De.onStep,We=De.changeOnBlur,xe=We===void 0?!0:We,ke=De.domRef,Ae=(0,he.Z)(De,xt),je="".concat(pt,"-input"),be=z.useRef(null),Je=z.useState(!1),lt=(0,Ie.Z)(Je,2),gt=lt[0],at=lt[1],Ze=z.useRef(!1),Ve=z.useRef(!1),ct=z.useRef(!1),sn=z.useState(function(){return Ue(gn!=null?gn:In)}),en=(0,Ie.Z)(sn,2),on=en[0],Fn=en[1];function Wn(Cn){gn===void 0&&Fn(Cn)}var Un=z.useCallback(function(Cn,fn){if(!fn)return zn>=0?zn:Math.max(He(Cn),He(cn))},[zn,cn]),Rn=z.useCallback(function(Cn){var fn=String(Cn);if(vn)return vn(fn);var Zn=fn;return Bt&&(Zn=Zn.replace(Bt,".")),Zn.replace(/[^\w.-]+/g,"")},[vn,Bt]),Bn=z.useRef(""),Nn=z.useCallback(function(Cn,fn){if(Hn)return Hn(Cn,{userTyping:fn,input:String(Bn.current)});var Zn=typeof Cn=="number"?Ct(Cn):Cn;if(!fn){var Kn=Un(Zn,fn);if(Mt(Zn)&&(Bt||Kn>=0)){var yn=Bt||".";Zn=yt(Zn,yn,Kn)}}return Zn},[Hn,Un,Bt]),Gn=z.useState(function(){var Cn=In!=null?In:gn;return on.isInvalidate()&&["string","number"].includes((0,$e.Z)(Cn))?Number.isNaN(Cn)?"":Cn:Nn(on.toString(),!1)}),qn=(0,Ie.Z)(Gn,2),Xn=qn[0],Jn=qn[1];Bn.current=Xn;function kn(Cn,fn){Jn(Nn(Cn.isInvalidate()?Cn.toString(!1):Cn.toString(!fn),fn))}var nr=z.useMemo(function(){return ze(Dn)},[Dn,zn]),_n=z.useMemo(function(){return ze(dn)},[dn,zn]),dr=z.useMemo(function(){return!nr||!on||on.isInvalidate()?!1:nr.lessEquals(on)},[nr,on]),pr=z.useMemo(function(){return!_n||!on||on.isInvalidate()?!1:on.lessEquals(_n)},[_n,on]),sr=nt(be.current,gt),ur=(0,Ie.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(fn){return nr&&!fn.lessEquals(nr)?nr:_n&&!_n.lessEquals(fn)?_n:null},tr=function(fn){return!fr(fn)},mr=function(fn,Zn){var Kn=fn,yn=tr(Kn)||Kn.isEmpty();if(!Kn.isEmpty()&&!Zn&&(Kn=fr(Kn)||Kn,yn=!0),!An&&!$n&&yn){var hn=Kn.toString(),Tn=Un(hn,Zn);return Tn>=0&&(Kn=Ue(yt(hn,".",Tn)),tr(Kn)||(Kn=Ue(yt(hn,".",Tn,!0)))),Kn.equals(on)||(Wn(Kn),Jt==null||Jt(Kn.isEmpty()?null:Me(mn,Kn)),gn===void 0&&kn(Kn,Zn)),Kn}return on},br=Wt(),Hr=function Cn(fn){if(yr(),Bn.current=fn,Jn(fn),!Ve.current){var Zn=Rn(fn),Kn=Ue(Zn);Kn.isNaN()||mr(Kn,!0)}On==null||On(fn),br(function(){var yn=fn;vn||(yn=fn.replace(/。/g,".")),yn!==fn&&Cn(yn)})},Er=function(){Ve.current=!0},Tr=function(){Ve.current=!1,Hr(be.current.value)},Ir=function(fn){Hr(fn.target.value)},Pr=function(fn){var Zn;if(!(fn&&dr||!fn&&pr)){Ze.current=!1;var Kn=Ue(ct.current?de(cn):cn);fn||(Kn=Kn.negate());var yn=(on||Ue(0)).add(Kn.toString()),hn=mr(yn,!1);Te==null||Te(Me(mn,hn),{offset:ct.current?de(cn):cn,type:fn?"up":"down"}),(Zn=be.current)===null||Zn===void 0||Zn.focus()}},or=function(fn){var Zn=Ue(Rn(Xn)),Kn;Zn.isNaN()?Kn=mr(on,fn):Kn=mr(Zn,fn),gn!==void 0?kn(on,!1):Kn.isNaN()||kn(Kn,!1)},ir=function(){Ze.current=!0},er=function(fn){var Zn=fn.key,Kn=fn.shiftKey;Ze.current=!0,ct.current=Kn,Zn==="Enter"&&(Ve.current||(Ze.current=!1),or(!1),Mn==null||Mn(fn)),zt!==!1&&!Ve.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Zn)&&(Pr(Zn==="Up"||Zn==="ArrowUp"),fn.preventDefault())},pn=function(){Ze.current=!1,ct.current=!1};z.useEffect(function(){if(Vt&&gt){var Cn=function(Kn){Pr(Kn.deltaY<0),Kn.preventDefault()},fn=be.current;if(fn)return fn.addEventListener("wheel",Cn,{passive:!1}),function(){return fn.removeEventListener("wheel",Cn)}}});var Sn=function(){xe&&or(!1),at(!1),Ze.current=!1};return(0,vt.o)(function(){on.isInvalidate()||kn(on,!1)},[zn,Hn]),(0,vt.o)(function(){var Cn=Ue(gn);Fn(Cn);var fn=Ue(Rn(Xn));(!Cn.equals(fn)||!Ze.current||Hn)&&kn(Cn,Ze.current)},[gn]),(0,vt.o)(function(){Hn&&lr()},[Xn]),z.createElement("div",{ref:ke,className:Ee()(pt,kt,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(pt,"-focused"),gt),"".concat(pt,"-disabled"),$n),"".concat(pt,"-readonly"),An),"".concat(pt,"-not-a-number"),on.isNaN()),"".concat(pt,"-out-of-range"),!on.isInvalidate()&&!tr(on))),style:Yt,onFocus:function(){at(!0)},onBlur:Sn,onKeyDown:er,onKeyUp:pn,onCompositionStart:Er,onCompositionEnd:Tr,onBeforeInput:ir},xn&&z.createElement(ge,{prefixCls:pt,upNode:En,downNode:qt,upDisabled:dr,downDisabled:pr,onStep:Pr}),z.createElement("div",{className:"".concat(je,"-wrap")},z.createElement("input",(0,Se.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":dn,"aria-valuemax":Dn,"aria-valuenow":on.isInvalidate()?null:on.toString(),step:cn},Ae,{ref:(0,St.sQ)(be,Ye),className:je,value:Xn,onChange:Ir,disabled:$n,readOnly:An}))))}),At=z.forwardRef(function(De,Ye){var pt=De.disabled,kt=De.style,Yt=De.prefixCls,dn=Yt===void 0?"rc-input-number":Yt,Dn=De.value,Pn=De.prefix,cn=De.suffix,In=De.addonBefore,gn=De.addonAfter,$n=De.className,An=De.classNames,En=(0,he.Z)(De,pe),qt=z.useRef(null),zt=z.useRef(null),Tt=z.useRef(null),Vt=function(xn){Tt.current&&(0,_e.nH)(Tt.current,xn)};return z.useImperativeHandle(Ye,function(){return dt(Tt.current,{focus:Vt,nativeElement:qt.current.nativeElement||zt.current})}),z.createElement(Ft.BaseInput,{className:$n,triggerFocus:Vt,prefixCls:dn,value:Dn,disabled:pt,style:kt,prefix:Pn,suffix:cn,addonAfter:gn,addonBefore:In,classNames:An,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:qt},z.createElement(Nt,(0,Se.Z)({prefixCls:dn,disabled:pt,ref:Tt,domRef:zt,className:An==null?void 0:An.input},En)))}),Zt=At,Fe=Zt,Lt=ie(62487),st=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),me=ie(24971),Ce=ie(70045),mt=ie(36237),Pe=ie(53075),Ke=ie(64910),ft=ie(39082),It=ie(63356),wt=ie(56119),Qt=ie(16931),Xt=ie(51636),Gt=ie(17835);const un=De=>{var Ye;const pt=(Ye=De.handleVisible)!==null&&Ye!==void 0?Ye:"auto",kt=De.controlHeightSM-De.lineWidth*2;return Object.assign(Object.assign({},(0,Ke.T)(De)),{controlWidth:90,handleWidth:kt,handleFontSize:De.fontSize/2,handleVisible:pt,handleActiveBg:De.colorFillAlter,handleBg:De.colorBgContainer,filledHandleBg:new Gt.FastColor(De.colorFillSecondary).onBackground(De.colorBgContainer).toHexString(),handleHoverColor:De.colorPrimary,handleBorderColor:De.colorBorder,handleOpacity:pt===!0?1:0,handleVisibleWidth:pt===!0?kt:0})},rn=(De,Ye)=>{let{componentCls:pt,borderRadiusSM:kt,borderRadiusLG:Yt}=De;const dn=Ye==="lg"?Yt:kt;return{[`&-${Ye}`]:{[`${pt}-handler-wrap`]:{borderStartEndRadius:dn,borderEndEndRadius:dn},[`${pt}-handler-up`]:{borderStartEndRadius:dn},[`${pt}-handler-down`]:{borderEndEndRadius:dn}}}},ln=De=>{const{componentCls:Ye,lineWidth:pt,lineType:kt,borderRadius:Yt,inputFontSizeSM:dn,inputFontSizeLG:Dn,controlHeightLG:Pn,controlHeightSM:cn,colorError:In,paddingInlineSM:gn,paddingBlockSM:$n,paddingBlockLG:An,paddingInlineLG:En,colorTextDescription:qt,motionDurationMid:zt,handleHoverColor:Tt,handleOpacity:Vt,paddingInline:tn,paddingBlock:xn,handleBg:wn,handleActiveBg:mn,colorTextDisabled:vn,borderRadiusSM:Hn,borderRadiusLG:zn,controlWidth:Bt,handleBorderColor:Jt,filledHandleBg:On,lineHeightLG:Mn,calc:Te}=De;return[{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(De)),(0,Pe.ik)(De)),{display:"inline-block",width:Bt,margin:0,padding:0,borderRadius:Yt}),(0,ft.qG)(De,{[`${Ye}-handler-wrap`]:{background:wn,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,mt.unit)(pt)} ${kt} ${Jt}`}}})),(0,ft.H8)(De,{[`${Ye}-handler-wrap`]:{background:On,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,mt.unit)(pt)} ${kt} ${Jt}`}},"&:focus-within":{[`${Ye}-handler-wrap`]:{background:wn}}})),(0,ft.vc)(De,{[`${Ye}-handler-wrap`]:{background:wn,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,mt.unit)(pt)} ${kt} ${Jt}`}}})),(0,ft.Mu)(De)),{"&-rtl":{direction:"rtl",[`${Ye}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dn,lineHeight:Mn,borderRadius:zn,[`input${Ye}-input`]:{height:Te(Pn).sub(Te(pt).mul(2)).equal(),padding:`${(0,mt.unit)(An)} ${(0,mt.unit)(En)}`}},"&-sm":{padding:0,fontSize:dn,borderRadius:Hn,[`input${Ye}-input`]:{height:Te(cn).sub(Te(pt).mul(2)).equal(),padding:`${(0,mt.unit)($n)} ${(0,mt.unit)(gn)}`}},"&-out-of-range":{[`${Ye}-input-wrap`]:{input:{color:In}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,It.Wf)(De)),(0,Pe.s7)(De)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ye}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ye}-group-addon`]:{borderRadius:zn,fontSize:De.fontSizeLG}},"&-sm":{[`${Ye}-group-addon`]:{borderRadius:Hn}}},(0,ft.ir)(De)),(0,ft.S5)(De)),{[`&:not(${Ye}-compact-first-item):not(${Ye}-compact-last-item)${Ye}-compact-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderRadius:0}},[`&:not(${Ye}-compact-last-item)${Ye}-compact-first-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ye}-compact-first-item)${Ye}-compact-last-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ye}-input`]:{cursor:"not-allowed"},[Ye]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(De)),{width:"100%",padding:`${(0,mt.unit)(xn)} ${(0,mt.unit)(tn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Yt,outline:0,transition:`all ${zt} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Pe.nz)(De.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ye}-handler-wrap, &-focused ${Ye}-handler-wrap`]:{width:De.handleWidth,opacity:1}})},{[Ye]:Object.assign(Object.assign(Object.assign({[`${Ye}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:De.handleVisibleWidth,opacity:Vt,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Yt,borderEndEndRadius:Yt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${zt}`,overflow:"hidden",[`${Ye}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Ye}-handler-up-inner,
${Ye}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:De.handleFontSize}}},[`${Ye}-handler`]:{height:"50%",overflow:"hidden",color:qt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,mt.unit)(pt)} ${kt} ${Jt}`,transition:`all ${zt} linear`,"&:active":{background:mn},"&:hover":{height:"60%",[`
${Ye}-handler-up-inner,
${Ye}-handler-down-inner
`]:{color:Tt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,It.Ro)()),{color:qt,transition:`all ${zt} linear`,userSelect:"none"})},[`${Ye}-handler-up`]:{borderStartEndRadius:Yt},[`${Ye}-handler-down`]:{borderEndEndRadius:Yt}},rn(De,"lg")),rn(De,"sm")),{"&-disabled, &-readonly":{[`${Ye}-handler-wrap`]:{display:"none"},[`${Ye}-input`]:{color:"inherit"}},[`
${Ye}-handler-up-disabled,
${Ye}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Ye}-handler-up-disabled:hover &-handler-up-inner,
${Ye}-handler-down-disabled:hover &-handler-down-inner
`]:{color:vn}})}]},Pt=De=>{const{componentCls:Ye,paddingBlock:pt,paddingInline:kt,inputAffixPadding:Yt,controlWidth:dn,borderRadiusLG:Dn,borderRadiusSM:Pn,paddingInlineLG:cn,paddingInlineSM:In,paddingBlockLG:gn,paddingBlockSM:$n,motionDurationMid:An}=De;return{[`${Ye}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ye}-input`]:{padding:`${(0,mt.unit)(pt)} 0`}},(0,Pe.ik)(De)),{position:"relative",display:"inline-flex",alignItems:"center",width:dn,padding:0,paddingInlineStart:kt,"&-lg":{borderRadius:Dn,paddingInlineStart:cn,[`input${Ye}-input`]:{padding:`${(0,mt.unit)(gn)} 0`}},"&-sm":{borderRadius:Pn,paddingInlineStart:In,[`input${Ye}-input`]:{padding:`${(0,mt.unit)($n)} 0`}},[`&:not(${Ye}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ye}-disabled`]:{background:"transparent"},[`> div${Ye}`]:{width:"100%",border:"none",outline:"none",[`&${Ye}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ye}-handler-wrap`]:{zIndex:2},[Ye]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Yt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:kt,marginInlineStart:Yt,transition:`margin ${An}`}},[`&:hover ${Ye}-handler-wrap, &-focused ${Ye}-handler-wrap`]:{width:De.handleWidth,opacity:1},[`&:not(${Ye}-affix-wrapper-without-controls):hover ${Ye}-suffix`]:{marginInlineEnd:De.calc(De.handleWidth).add(kt).equal()}})}};var nn=(0,Qt.I$)("InputNumber",De=>{const Ye=(0,Xt.mergeToken)(De,(0,Ke.e)(De));return[ln(Ye),Pt(Ye),(0,wt.c)(Ye)]},un,{unitless:{handleOpacity:!0}}),Ut=function(De,Ye){var pt={};for(var kt in De)Object.prototype.hasOwnProperty.call(De,kt)&&Ye.indexOf(kt)<0&&(pt[kt]=De[kt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,kt=Object.getOwnPropertySymbols(De);Yt<kt.length;Yt++)Ye.indexOf(kt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(De,kt[Yt])&&(pt[kt[Yt]]=De[kt[Yt]]);return pt};const Le=z.forwardRef((De,Ye)=>{const{getPrefixCls:pt,direction:kt}=z.useContext(ae.E_),Yt=z.useRef(null);z.useImperativeHandle(Ye,()=>Yt.current);const{className:dn,rootClassName:Dn,size:Pn,disabled:cn,prefixCls:In,addonBefore:gn,addonAfter:$n,prefix:An,suffix:En,bordered:qt,readOnly:zt,status:Tt,controls:Vt,variant:tn}=De,xn=Ut(De,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),wn=pt("input-number",In),mn=(0,oe.Z)(wn),[vn,Hn,zn]=nn(wn,mn),{compactSize:Bt,compactItemClassnames:Jt}=(0,Ce.ri)(wn,kt);let On=z.createElement(ye.Z,{className:`${wn}-handler-up-inner`}),Mn=z.createElement(it.Z,{className:`${wn}-handler-down-inner`});const Te=typeof Vt=="boolean"?Vt:void 0;typeof Vt=="object"&&(On=typeof Vt.upIcon=="undefined"?On:z.createElement("span",{className:`${wn}-handler-up-inner`},Vt.upIcon),Mn=typeof Vt.downIcon=="undefined"?Mn:z.createElement("span",{className:`${wn}-handler-down-inner`},Vt.downIcon));const{hasFeedback:We,status:xe,isFormItemInput:ke,feedbackIcon:Ae}=z.useContext(ne.aM),je=(0,st.F)(xe,Tt),be=(0,se.Z)(en=>{var on;return(on=Pn!=null?Pn:Bt)!==null&&on!==void 0?on:en}),Je=z.useContext(ee.Z),lt=cn!=null?cn:Je,[gt,at]=(0,me.Z)("inputNumber",tn,qt),Ze=We&&z.createElement(z.Fragment,null,Ae),Ve=Ee()({[`${wn}-lg`]:be==="large",[`${wn}-sm`]:be==="small",[`${wn}-rtl`]:kt==="rtl",[`${wn}-in-form-item`]:ke},Hn),ct=`${wn}-group`,sn=z.createElement(Fe,Object.assign({ref:Yt,disabled:lt,className:Ee()(zn,mn,dn,Dn,Jt),upHandler:On,downHandler:Mn,prefixCls:wn,readOnly:zt,controls:Te,prefix:An,suffix:Ze||En,addonBefore:gn&&z.createElement(Lt.Z,{form:!0,space:!0},gn),addonAfter:$n&&z.createElement(Lt.Z,{form:!0,space:!0},$n),classNames:{input:Ve,variant:Ee()({[`${wn}-${gt}`]:at},(0,st.Z)(wn,je,We)),affixWrapper:Ee()({[`${wn}-affix-wrapper-sm`]:be==="small",[`${wn}-affix-wrapper-lg`]:be==="large",[`${wn}-affix-wrapper-rtl`]:kt==="rtl",[`${wn}-affix-wrapper-without-controls`]:Vt===!1||lt},Hn),wrapper:Ee()({[`${ct}-rtl`]:kt==="rtl"},Hn),groupWrapper:Ee()({[`${wn}-group-wrapper-sm`]:be==="small",[`${wn}-group-wrapper-lg`]:be==="large",[`${wn}-group-wrapper-rtl`]:kt==="rtl",[`${wn}-group-wrapper-${gt}`]:at},(0,st.Z)(`${wn}-group-wrapper`,je,We),Hn)}},xn));return vn(sn)}),ut=Le,Rt=De=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Le,Object.assign({},De)));ut._InternalPanelDoNotUseOrYouWillBeFired=Rt;var $t=ut},49397:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Dt}});var z=ie(59301),it=ie(92310),ye=ie.n(it),qe=ie(36901),Ee=ie(8654),Se=ie(62487),Ne=ie(86013),$e=ie(82855),Ie=ie(48755),he=ie(2171),Xe=ie(83397),we=ie(31756),Ot=ie(56553),ot=ie(24971),Re=ie(70045),Ge=ie(23826),He=ie(53075);function Ct(et){return!!(et.prefix||et.suffix||et.allowClear||et.showCount)}var Mt=function(et,yt){var Ue={};for(var Ft in et)Object.prototype.hasOwnProperty.call(et,Ft)&&yt.indexOf(Ft)<0&&(Ue[Ft]=et[Ft]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ft=Object.getOwnPropertySymbols(et);vt<Ft.length;vt++)yt.indexOf(Ft[vt])<0&&Object.prototype.propertyIsEnumerable.call(et,Ft[vt])&&(Ue[Ft[vt]]=et[Ft[vt]]);return Ue},Dt=(0,z.forwardRef)((et,yt)=>{const{prefixCls:Ue,bordered:Ft=!0,status:vt,size:dt,disabled:St,onBlur:Oe,onFocus:nt,suffix:rt,allowClear:ue,addonAfter:bt,addonBefore:Be,className:tt,style:Et,styles:ge,rootClassName:de,onChange:_e,classNames:Wt,variant:xt}=et,pe=Mt(et,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Me,direction:ze,allowClear:Nt,autoComplete:At,className:Zt,style:Fe,classNames:Lt,styles:st}=(0,Ie.dj)("input"),ae=Me("input",Ue),te=(0,z.useRef)(null),ee=(0,Xe.Z)(ae),[oe,se,ne]=(0,He.TI)(ae,de),[me]=(0,He.ZP)(ae,ee),{compactSize:Ce,compactItemClassnames:mt}=(0,Re.ri)(ae,ze),Pe=(0,we.Z)($t=>{var De;return(De=dt!=null?dt:Ce)!==null&&De!==void 0?De:$t}),Ke=z.useContext(he.Z),ft=St!=null?St:Ke,{status:It,hasFeedback:wt,feedbackIcon:Qt}=(0,z.useContext)(Ot.aM),Xt=(0,$e.F)(It,vt),Gt=Ct(et)||!!wt,un=(0,z.useRef)(Gt),rn=(0,Ge.Z)(te,!0),ln=$t=>{rn(),Oe==null||Oe($t)},Pt=$t=>{rn(),nt==null||nt($t)},nn=$t=>{rn(),_e==null||_e($t)},Ut=(wt||rt)&&z.createElement(z.Fragment,null,rt,wt&&Qt),Le=(0,Ne.Z)(ue!=null?ue:Nt),[ut,Rt]=(0,ot.Z)("input",xt,Ft);return oe(me(z.createElement(qe.default,Object.assign({ref:(0,Ee.sQ)(yt,te),prefixCls:ae,autoComplete:At},pe,{disabled:ft,onBlur:ln,onFocus:Pt,style:Object.assign(Object.assign({},Fe),Et),styles:Object.assign(Object.assign({},st),ge),suffix:Ut,allowClear:Le,className:ye()(tt,de,ne,ee,mt,Zt),onChange:nn,addonBefore:Be&&z.createElement(Se.Z,{form:!0,space:!0},Be),addonAfter:bt&&z.createElement(Se.Z,{form:!0,space:!0},bt),classNames:Object.assign(Object.assign(Object.assign({},Wt),Lt),{input:ye()({[`${ae}-sm`]:Pe==="small",[`${ae}-lg`]:Pe==="large",[`${ae}-rtl`]:ze==="rtl"},Wt==null?void 0:Wt.input,Lt.input,se),variant:ye()({[`${ae}-${ut}`]:Rt},(0,$e.Z)(ae,Xt)),affixWrapper:ye()({[`${ae}-affix-wrapper-sm`]:Pe==="small",[`${ae}-affix-wrapper-lg`]:Pe==="large",[`${ae}-affix-wrapper-rtl`]:ze==="rtl"},se),wrapper:ye()({[`${ae}-group-rtl`]:ze==="rtl"},se),groupWrapper:ye()({[`${ae}-group-wrapper-sm`]:Pe==="small",[`${ae}-group-wrapper-lg`]:Pe==="large",[`${ae}-group-wrapper-rtl`]:ze==="rtl",[`${ae}-group-wrapper-${ut}`]:Rt},(0,$e.Z)(`${ae}-group-wrapper`,Xt,wt),se)})}))))})},79809:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return yt}});var z=ie(59301),it=ie(92310),ye=ie.n(it),qe=ie(22711),Ee=ie(86013),Se=ie(82855),Ne=ie(48755),$e=ie(2171),Ie=ie(83397),he=ie(31756),Xe=ie(56553),we=ie(24971),Ot=ie(70045),ot=ie(30292),Re=ie(53075),Ge=ie(16931),He=ie(51636),Ct=ie(64910);const Mt=Ue=>{const{componentCls:Ft,paddingLG:vt}=Ue,dt=`${Ft}-textarea`;return{[`textarea${Ft}`]:{maxWidth:"100%",height:"auto",minHeight:Ue.controlHeight,lineHeight:Ue.lineHeight,verticalAlign:"bottom",transition:`all ${Ue.motionDurationSlow}`,resize:"vertical",[`&${Ft}-mouse-active`]:{transition:`all ${Ue.motionDurationSlow}, height 0s, width 0s`}},[`${Ft}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[dt]:{position:"relative","&-show-count":{[`> ${Ft}`]:{height:"100%"},[`${Ft}-data-count`]:{position:"absolute",bottom:Ue.calc(Ue.fontSize).mul(Ue.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ue.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${Ft},
&-affix-wrapper${dt}-has-feedback ${Ft}
`]:{paddingInlineEnd:vt},[`&-affix-wrapper${Ft}-affix-wrapper`]:{padding:0,[`> textarea${Ft}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ue.calc(Ue.controlHeight).sub(Ue.calc(Ue.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Ft}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ft}-clear-icon`]:{position:"absolute",insetInlineEnd:Ue.paddingInline,insetBlockStart:Ue.paddingXS},[`${dt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ue.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Ft}-affix-wrapper-sm`]:{[`${Ft}-suffix`]:{[`${Ft}-clear-icon`]:{insetInlineEnd:Ue.paddingInlineSM}}}}}};var jt=(0,Ge.I$)(["Input","TextArea"],Ue=>{const Ft=(0,He.mergeToken)(Ue,(0,Ct.e)(Ue));return[Mt(Ft)]},Ct.T,{resetFont:!1}),Dt=function(Ue,Ft){var vt={};for(var dt in Ue)Object.prototype.hasOwnProperty.call(Ue,dt)&&Ft.indexOf(dt)<0&&(vt[dt]=Ue[dt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,dt=Object.getOwnPropertySymbols(Ue);St<dt.length;St++)Ft.indexOf(dt[St])<0&&Object.prototype.propertyIsEnumerable.call(Ue,dt[St])&&(vt[dt[St]]=Ue[dt[St]]);return vt},yt=(0,z.forwardRef)((Ue,Ft)=>{var vt;const{prefixCls:dt,bordered:St=!0,size:Oe,disabled:nt,status:rt,allowClear:ue,classNames:bt,rootClassName:Be,className:tt,style:Et,styles:ge,variant:de,showCount:_e,onMouseDown:Wt,onResize:xt}=Ue,pe=Dt(Ue,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Me,direction:ze,allowClear:Nt,autoComplete:At,className:Zt,style:Fe,classNames:Lt,styles:st}=(0,Ne.dj)("textArea"),ae=z.useContext($e.Z),te=nt!=null?nt:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(Xe.aM),ne=(0,Se.F)(ee,rt),me=z.useRef(null);z.useImperativeHandle(Ft,()=>{var Rt;return{resizableTextArea:(Rt=me.current)===null||Rt===void 0?void 0:Rt.resizableTextArea,focus:$t=>{var De,Ye;(0,ot.nH)((Ye=(De=me.current)===null||De===void 0?void 0:De.resizableTextArea)===null||Ye===void 0?void 0:Ye.textArea,$t)},blur:()=>{var $t;return($t=me.current)===null||$t===void 0?void 0:$t.blur()}}});const Ce=Me("input",dt),mt=(0,Ie.Z)(Ce),[Pe,Ke,ft]=(0,Re.TI)(Ce,Be),[It]=jt(Ce,mt),{compactSize:wt,compactItemClassnames:Qt}=(0,Ot.ri)(Ce,ze),Xt=(0,he.Z)(Rt=>{var $t;return($t=Oe!=null?Oe:wt)!==null&&$t!==void 0?$t:Rt}),[Gt,un]=(0,we.Z)("textArea",de,St),rn=(0,Ee.Z)(ue!=null?ue:Nt),[ln,Pt]=z.useState(!1),[nn,Ut]=z.useState(!1),Le=Rt=>{Pt(!0),Wt==null||Wt(Rt);const $t=()=>{Pt(!1),document.removeEventListener("mouseup",$t)};document.addEventListener("mouseup",$t)},ut=Rt=>{var $t,De;if(xt==null||xt(Rt),ln&&typeof getComputedStyle=="function"){const Ye=(De=($t=me.current)===null||$t===void 0?void 0:$t.nativeElement)===null||De===void 0?void 0:De.querySelector("textarea");Ye&&getComputedStyle(Ye).resize==="both"&&Ut(!0)}};return Pe(It(z.createElement(qe.default,Object.assign({autoComplete:At},pe,{style:Object.assign(Object.assign({},Fe),Et),styles:Object.assign(Object.assign({},st),ge),disabled:te,allowClear:rn,className:ye()(ft,mt,tt,Be,Qt,Zt,nn&&`${Ce}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},bt),Lt),{textarea:ye()({[`${Ce}-sm`]:Xt==="small",[`${Ce}-lg`]:Xt==="large"},Ke,bt==null?void 0:bt.textarea,Lt.textarea,ln&&`${Ce}-mouse-active`),variant:ye()({[`${Ce}-${Gt}`]:un},(0,Se.Z)(Ce,ne)),affixWrapper:ye()(`${Ce}-textarea-affix-wrapper`,{[`${Ce}-affix-wrapper-rtl`]:ze==="rtl",[`${Ce}-affix-wrapper-sm`]:Xt==="small",[`${Ce}-affix-wrapper-lg`]:Xt==="large",[`${Ce}-textarea-show-count`]:_e||((vt=Ue.count)===null||vt===void 0?void 0:vt.show)},Ke)}),prefixCls:Ce,suffix:oe&&z.createElement("span",{className:`${Ce}-textarea-suffix`},se),showCount:_e,ref:me,onResize:ut,onMouseDown:Le}))))})},23826:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return it}});var z=ie(59301);function it(ye,qe){const Ee=(0,z.useRef)([]),Se=()=>{Ee.current.push(setTimeout(()=>{var Ne,$e,Ie,he;!((Ne=ye.current)===null||Ne===void 0)&&Ne.input&&(($e=ye.current)===null||$e===void 0?void 0:$e.input.getAttribute("type"))==="password"&&(!((Ie=ye.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((he=ye.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(qe&&Se(),()=>Ee.current.forEach(Ne=>{Ne&&clearTimeout(Ne)})),[]),Se}},37568:function(an,Kt,ie){"use strict";ie.d(Kt,{default:function(){return Lt}});var z=ie(59301),it=ie(92310),ye=ie.n(it),qe=ie(48755),Ee=ie(56553),Se=ie(53075),$e=st=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(qe.E_),{prefixCls:ee,className:oe}=st,se=ae("input-group",ee),ne=ae("input"),[me,Ce,mt]=(0,Se.ZP)(ne),Pe=ye()(se,mt,{[`${se}-lg`]:st.size==="large",[`${se}-sm`]:st.size==="small",[`${se}-compact`]:st.compact,[`${se}-rtl`]:te==="rtl"},Ce,oe),Ke=(0,z.useContext)(Ee.aM),ft=(0,z.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return me(z.createElement("span",{className:Pe,style:st.style,onMouseEnter:st.onMouseEnter,onMouseLeave:st.onMouseLeave,onFocus:st.onFocus,onBlur:st.onBlur},z.createElement(Ee.aM.Provider,{value:ft},st.children)))},Ie=ie(49397),he=ie(94480),Xe=ie(6089),we=ie(26112),Ot=ie(82855),ot=ie(31756),Re=ie(16931),Ge=ie(51636),He=ie(64910);const Ct=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 Mt=(0,Re.I$)(["Input","OTP"],st=>{const ae=(0,Ge.mergeToken)(st,(0,He.e)(st));return[Ct(ae)]},He.T),jt=ie(16089),Dt=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<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te},yt=z.forwardRef((st,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=st,me=Dt(st,["value","onChange","onActiveChange","index","mask"]),Ce=te&&typeof ne=="string"?ne:te,mt=wt=>{ee(se,wt.target.value)},Pe=z.useRef(null);z.useImperativeHandle(ae,()=>Pe.current);const Ke=()=>{(0,jt.Z)(()=>{var wt;const Qt=(wt=Pe.current)===null||wt===void 0?void 0:wt.input;document.activeElement===Qt&&Qt&&Qt.select()})},ft=wt=>{const{key:Qt,ctrlKey:Xt,metaKey:Gt}=wt;Qt==="ArrowLeft"?oe(se-1):Qt==="ArrowRight"?oe(se+1):Qt==="z"&&(Xt||Gt)&&wt.preventDefault(),Ke()},It=wt=>{wt.key==="Backspace"&&!te&&oe(se-1),Ke()};return z.createElement(Ie.Z,Object.assign({type:ne===!0?"password":"text"},me,{ref:Pe,value:Ce,onInput:mt,onFocus:Ke,onKeyDown:ft,onKeyUp:It,onMouseDown:Ke,onMouseUp:Ke}))}),Ue=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<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te};function Ft(st){return(st||"").split("")}const vt=st=>{const{index:ae,prefixCls:te,separator:ee}=st,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var St=z.forwardRef((st,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:me,formatter:Ce,separator:mt,variant:Pe,disabled:Ke,status:ft,autoFocus:It,mask:wt,type:Qt,onInput:Xt,inputMode:Gt}=st,un=Ue(st,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:rn,direction:ln}=z.useContext(qe.E_),Pt=rn("otp",te),nn=(0,we.Z)(un,{aria:!0,data:!0,attr:!0}),[Ut,Le,ut]=Mt(Pt),Rt=(0,ot.Z)(An=>oe!=null?oe:An),$t=z.useContext(Ee.aM),De=(0,Ot.F)($t.status,ft),Ye=z.useMemo(()=>Object.assign(Object.assign({},$t),{status:De,hasFeedback:!1,feedbackIcon:null}),[$t,De]),pt=z.useRef(null),kt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var An;(An=kt.current[0])===null||An===void 0||An.focus()},blur:()=>{var An;for(let En=0;En<ee;En+=1)(An=kt.current[En])===null||An===void 0||An.blur()},nativeElement:pt.current}));const Yt=An=>Ce?Ce(An):An,[dn,Dn]=z.useState(()=>Ft(Yt(se||"")));z.useEffect(()=>{ne!==void 0&&Dn(Ft(ne))},[ne]);const Pn=(0,Xe.Z)(An=>{Dn(An),Xt&&Xt(An),me&&An.length===ee&&An.every(En=>En)&&An.some((En,qt)=>dn[qt]!==En)&&me(An.join(""))}),cn=(0,Xe.Z)((An,En)=>{let qt=(0,he.Z)(dn);for(let Tt=0;Tt<An;Tt+=1)qt[Tt]||(qt[Tt]="");En.length<=1?qt[An]=En:qt=qt.slice(0,An).concat(Ft(En)),qt=qt.slice(0,ee);for(let Tt=qt.length-1;Tt>=0&&!qt[Tt];Tt-=1)qt.pop();const zt=Yt(qt.map(Tt=>Tt||" ").join(""));return qt=Ft(zt).map((Tt,Vt)=>Tt===" "&&!qt[Vt]?qt[Vt]:Tt),qt}),In=(An,En)=>{var qt;const zt=cn(An,En),Tt=Math.min(An+En.length,ee-1);Tt!==An&&zt[An]!==void 0&&((qt=kt.current[Tt])===null||qt===void 0||qt.focus()),Pn(zt)},gn=An=>{var En;(En=kt.current[An])===null||En===void 0||En.focus()},$n={variant:Pe,disabled:Ke,status:De,mask:wt,type:Qt,inputMode:Gt};return Ut(z.createElement("div",Object.assign({},nn,{ref:pt,className:ye()(Pt,{[`${Pt}-sm`]:Rt==="small",[`${Pt}-lg`]:Rt==="large",[`${Pt}-rtl`]:ln==="rtl"},ut,Le)}),z.createElement(Ee.aM.Provider,{value:Ye},Array.from({length:ee}).map((An,En)=>{const qt=`otp-${En}`,zt=dn[En]||"";return z.createElement(z.Fragment,{key:qt},z.createElement(yt,Object.assign({ref:Tt=>{kt.current[En]=Tt},index:En,size:Rt,htmlSize:1,className:`${Pt}-input`,onChange:In,value:zt,onActiveChange:gn,autoFocus:En===0&&It},$n)),En<ee-1&&z.createElement(vt,{separator:mt,index:En,prefixCls:Pt}))}))))}),Oe=ie(73331),nt=ie(15277),rt=ie(2738),ue=ie(8654),bt=ie(2171),Be=ie(23826),tt=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<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te};const Et=st=>st?z.createElement(nt.Z,null):z.createElement(Oe.Z,null),ge={click:"onClick",hover:"onMouseOver"};var _e=z.forwardRef((st,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Et}=st,ne=z.useContext(bt.Z),me=te!=null?te:ne,Ce=typeof oe=="object"&&oe.visible!==void 0,[mt,Pe]=(0,z.useState)(()=>Ce?oe.visible:!1),Ke=(0,z.useRef)(null);z.useEffect(()=>{Ce&&Pe(oe.visible)},[Ce,oe]);const ft=(0,Be.Z)(Ke),It=()=>{var Rt;if(me)return;mt&&ft();const $t=!mt;Pe($t),typeof oe=="object"&&((Rt=oe.onVisibleChange)===null||Rt===void 0||Rt.call(oe,$t))},wt=Rt=>{const $t=ge[ee]||"",De=se(mt),Ye={[$t]:It,className:`${Rt}-icon`,key:"passwordIcon",onMouseDown:pt=>{pt.preventDefault()},onMouseUp:pt=>{pt.preventDefault()}};return z.cloneElement(z.isValidElement(De)?De:z.createElement("span",null,De),Ye)},{className:Qt,prefixCls:Xt,inputPrefixCls:Gt,size:un}=st,rn=tt(st,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ln}=z.useContext(qe.E_),Pt=ln("input",Gt),nn=ln("input-password",Xt),Ut=oe&&wt(nn),Le=ye()(nn,Qt,{[`${nn}-${un}`]:!!un}),ut=Object.assign(Object.assign({},(0,rt.Z)(rn,["suffix","iconRender","visibilityToggle"])),{type:mt?"text":"password",className:Le,prefixCls:Pt,suffix:Ut});return un&&(ut.size=un),z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(ae,Ke)},ut))}),Wt=ie(47472),xt=ie(22703),pe=ie(7939),Me=ie(70045),ze=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<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te},At=z.forwardRef((st,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:me=!1,addonAfter:Ce,loading:mt,disabled:Pe,onSearch:Ke,onChange:ft,onCompositionStart:It,onCompositionEnd:wt}=st,Qt=ze(st,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Xt,direction:Gt}=z.useContext(qe.E_),un=z.useRef(!1),rn=Xt("input-search",te),ln=Xt("input",ee),{compactSize:Pt}=(0,Me.ri)(rn,Gt),nn=(0,ot.Z)(In=>{var gn;return(gn=se!=null?se:Pt)!==null&&gn!==void 0?gn:In}),Ut=z.useRef(null),Le=In=>{In!=null&&In.target&&In.type==="click"&&Ke&&Ke(In.target.value,In,{source:"clear"}),ft==null||ft(In)},ut=In=>{var gn;document.activeElement===((gn=Ut.current)===null||gn===void 0?void 0:gn.input)&&In.preventDefault()},Rt=In=>{var gn,$n;Ke&&Ke(($n=(gn=Ut.current)===null||gn===void 0?void 0:gn.input)===null||$n===void 0?void 0:$n.value,In,{source:"input"})},$t=In=>{un.current||mt||Rt(In)},De=typeof me=="boolean"?z.createElement(Wt.Z,null):null,Ye=`${rn}-button`;let pt;const kt=me||{},Yt=kt.type&&kt.type.__ANT_BUTTON===!0;Yt||kt.type==="button"?pt=(0,xt.Tm)(kt,Object.assign({onMouseDown:ut,onClick:In=>{var gn,$n;($n=(gn=kt==null?void 0:kt.props)===null||gn===void 0?void 0:gn.onClick)===null||$n===void 0||$n.call(gn,In),Rt(In)},key:"enterButton"},Yt?{className:Ye,size:nn}:{})):pt=z.createElement(pe.ZP,{className:Ye,type:me?"primary":void 0,size:nn,disabled:Pe,key:"enterButton",onMouseDown:ut,onClick:Rt,loading:mt,icon:De},me),Ce&&(pt=[pt,(0,xt.Tm)(Ce,{key:"addonAfter"})]);const dn=ye()(rn,{[`${rn}-rtl`]:Gt==="rtl",[`${rn}-${nn}`]:!!nn,[`${rn}-with-button`]:!!me},oe),Dn=Object.assign(Object.assign({},Qt),{className:dn,prefixCls:ln,type:"search"}),Pn=In=>{un.current=!0,It==null||It(In)},cn=In=>{un.current=!1,wt==null||wt(In)};return z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(Ut,ae),onPressEnter:$t},Dn,{size:nn,onCompositionStart:Pn,onCompositionEnd:cn,addonAfter:pt,suffix:ne,onChange:Le,disabled:Pe}))}),Zt=ie(79809);const Fe=Ie.Z;Fe.Group=$e,Fe.Search=At,Fe.TextArea=Zt.Z,Fe.Password=_e,Fe.OTP=St;var Lt=Fe},24303:function(an,Kt,ie){"use strict";ie.d(Kt,{D:function(){return Ue},Z:function(){return dt}});var z=ie(59301),it=ie(54476),ye={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},qe=ye,Ee=ie(7657),Se=function(Oe,nt){return z.createElement(Ee.Z,(0,it.Z)({},Oe,{ref:nt,icon:qe}))},Ne=z.forwardRef(Se),$e=Ne,Ie=ie(33853),he=ie(38819),Xe=ie(92310),we=ie.n(Xe),Ot=ie(2738),ot=ie(48755),Re=ie(6989),Ge=ie(36237),He=ie(48923),Ct=ie(16931);const Mt=St=>{const{componentCls:Oe,siderBg:nt,motionDurationMid:rt,motionDurationSlow:ue,antCls:bt,triggerHeight:Be,triggerColor:tt,triggerBg:Et,headerHeight:ge,zeroTriggerWidth:de,zeroTriggerHeight:_e,borderRadiusLG:Wt,lightSiderBg:xt,lightTriggerColor:pe,lightTriggerBg:Me,bodyBg:ze}=St;return{[Oe]:{position:"relative",minWidth:0,background:nt,transition:`all ${rt}, background 0s`,"&-has-trigger":{paddingBottom:Be},"&-right":{order:1},[`${Oe}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${bt}-menu${bt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Oe}-children`]:{overflow:"hidden"},[`${Oe}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Be,color:tt,lineHeight:(0,Ge.unit)(Be),textAlign:"center",background:Et,cursor:"pointer",transition:`all ${rt}`},[`${Oe}-zero-width-trigger`]:{position:"absolute",top:ge,insetInlineEnd:St.calc(de).mul(-1).equal(),zIndex:1,width:de,height:_e,color:tt,fontSize:St.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderRadius:`0 ${(0,Ge.unit)(Wt)} ${(0,Ge.unit)(Wt)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:St.calc(de).mul(-1).equal(),borderRadius:`${(0,Ge.unit)(Wt)} 0 0 ${(0,Ge.unit)(Wt)}`}},"&-light":{background:xt,[`${Oe}-trigger`]:{color:pe,background:Me},[`${Oe}-zero-width-trigger`]:{color:pe,background:Me,border:`1px solid ${ze}`,borderInlineStart:0}}}}};var jt=(0,Ct.I$)(["Layout","Sider"],St=>[Mt(St)],He.eh,{deprecatedTokens:He.jn}),Dt=function(St,Oe){var nt={};for(var rt in St)Object.prototype.hasOwnProperty.call(St,rt)&&Oe.indexOf(rt)<0&&(nt[rt]=St[rt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,rt=Object.getOwnPropertySymbols(St);ue<rt.length;ue++)Oe.indexOf(rt[ue])<0&&Object.prototype.propertyIsEnumerable.call(St,rt[ue])&&(nt[rt[ue]]=St[rt[ue]]);return nt};const et={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},yt=St=>!Number.isNaN(Number.parseFloat(St))&&isFinite(St),Ue=z.createContext({}),Ft=(()=>{let St=0;return function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return St+=1,`${Oe}${St}`}})();var dt=z.forwardRef((St,Oe)=>{const{prefixCls:nt,className:rt,trigger:ue,children:bt,defaultCollapsed:Be=!1,theme:tt="dark",style:Et={},collapsible:ge=!1,reverseArrow:de=!1,width:_e=200,collapsedWidth:Wt=80,zeroWidthTriggerStyle:xt,breakpoint:pe,onCollapse:Me,onBreakpoint:ze}=St,Nt=Dt(St,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:At}=(0,z.useContext)(Re.V),[Zt,Fe]=(0,z.useState)("collapsed"in St?St.collapsed:Be),[Lt,st]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in St&&Fe(St.collapsed)},[St.collapsed]);const ae=(nn,Ut)=>{"collapsed"in St||Fe(nn),Me==null||Me(nn,Ut)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(ot.E_),oe=te("layout-sider",nt),[se,ne,me]=jt(oe),Ce=(0,z.useRef)(null);Ce.current=nn=>{st(nn.matches),ze==null||ze(nn.matches),Zt!==nn.matches&&ae(nn.matches,"responsive")},(0,z.useEffect)(()=>{function nn(Le){return Ce.current(Le)}let Ut;if(typeof window!="undefined"){const{matchMedia:Le}=window;if(Le&&pe&&pe in et){Ut=Le(`screen and (max-width: ${et[pe]})`);try{Ut.addEventListener("change",nn)}catch(ut){Ut.addListener(nn)}nn(Ut)}}return()=>{try{Ut==null||Ut.removeEventListener("change",nn)}catch(Le){Ut==null||Ut.removeListener(nn)}}},[pe]),(0,z.useEffect)(()=>{const nn=Ft("ant-sider-");return At.addSider(nn),()=>At.removeSider(nn)},[]);const mt=()=>{ae(!Zt,"clickTrigger")},Pe=(0,Ot.Z)(Nt,["collapsed"]),Ke=Zt?Wt:_e,ft=yt(Ke)?`${Ke}px`:String(Ke),It=parseFloat(String(Wt||0))===0?z.createElement("span",{onClick:mt,className:we()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${de?"right":"left"}`),style:xt},ue||z.createElement($e,null)):null,wt=ee==="rtl"==!de,Gt={expanded:wt?z.createElement(he.Z,null):z.createElement(Ie.Z,null),collapsed:wt?z.createElement(Ie.Z,null):z.createElement(he.Z,null)}[Zt?"collapsed":"expanded"],un=ue!==null?It||z.createElement("div",{className:`${oe}-trigger`,onClick:mt,style:{width:ft}},ue||Gt):null,rn=Object.assign(Object.assign({},Et),{flex:`0 0 ${ft}`,maxWidth:ft,minWidth:ft,width:ft}),ln=we()(oe,`${oe}-${tt}`,{[`${oe}-collapsed`]:!!Zt,[`${oe}-has-trigger`]:ge&&ue!==null&&!It,[`${oe}-below`]:!!Lt,[`${oe}-zero-width`]:parseFloat(ft)===0},rt,ne,me),Pt=z.useMemo(()=>({siderCollapsed:Zt}),[Zt]);return se(z.createElement(Ue.Provider,{value:Pt},z.createElement("aside",Object.assign({className:ln},Pe,{style:rn,ref:Oe}),z.createElement("div",{className:`${oe}-children`},bt),ge||Lt&&It?un:null)))})},6989:function(an,Kt,ie){"use strict";ie.d(Kt,{V:function(){return it}});var z=ie(59301);const it=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(an,Kt,ie){"use strict";ie.d(Kt,{eh:function(){return qe},jn:function(){return Ee}});var z=ie(36237),it=ie(16931);const ye=Se=>{const{antCls:Ne,componentCls:$e,colorText:Ie,footerBg:he,headerHeight:Xe,headerPadding:we,headerColor:Ot,footerPadding:ot,fontSize:Re,bodyBg:Ge,headerBg:He}=Se;return{[$e]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ge,"&, *":{boxSizing:"border-box"},[`&${$e}-has-sider`]:{flexDirection:"row",[`> ${$e}, > ${$e}-content`]:{width:0}},[`${$e}-header, &${$e}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${$e}-header`]:{height:Xe,padding:we,color:Ot,lineHeight:(0,z.unit)(Xe),background:He,[`${Ne}-menu`]:{lineHeight:"inherit"}},[`${$e}-footer`]:{padding:ot,color:Ie,fontSize:Re,background:he},[`${$e}-content`]:{flex:"auto",color:Ie,minHeight:0}}},qe=Se=>{const{colorBgLayout:Ne,controlHeight:$e,controlHeightLG:Ie,colorText:he,controlHeightSM:Xe,marginXXS:we,colorTextLightSolid:Ot,colorBgContainer:ot}=Se,Re=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:Ne,colorBgTrigger:"#002140",bodyBg:Ne,headerBg:"#001529",headerHeight:$e*2,headerPadding:`0 ${Re}px`,headerColor:he,footerPadding:`${Xe}px ${Re}px`,footerBg:Ne,siderBg:"#001529",triggerHeight:Ie+we*2,triggerBg:"#002140",triggerColor:Ot,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:ot,lightTriggerBg:ot,lightTriggerColor:he}},Ee=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Kt.ZP=(0,it.I$)("Layout",Se=>[ye(Se)],qe,{deprecatedTokens:Ee})},78857:function(an,Kt,ie){"use strict";ie.d(Kt,{J:function(){return Se}});var z=ie(59301),it=ie(8654),ye=ie(62487),qe=function(Ne,$e){var Ie={};for(var he in Ne)Object.prototype.hasOwnProperty.call(Ne,he)&&$e.indexOf(he)<0&&(Ie[he]=Ne[he]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,he=Object.getOwnPropertySymbols(Ne);Xe<he.length;Xe++)$e.indexOf(he[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Ne,he[Xe])&&(Ie[he[Xe]]=Ne[he[Xe]]);return Ie};const Ee=z.createContext(null),Se=z.forwardRef((Ne,$e)=>{const{children:Ie}=Ne,he=qe(Ne,["children"]),Xe=z.useContext(Ee),we=z.useMemo(()=>Object.assign(Object.assign({},Xe),he),[Xe,he.prefixCls,he.mode,he.selectable,he.rootClassName]),Ot=(0,it.t4)(Ie),ot=(0,it.x1)($e,Ot?(0,it.C4)(Ie):null);return z.createElement(Ee.Provider,{value:we},z.createElement(ye.Z,{space:!0},Ot?z.cloneElement(Ie,{ref:ot}):Ie))});Kt.Z=Ee},93041:function(an,Kt,ie){"use strict";ie.d(Kt,{default:function(){return se}});var z=ie(59301),it=ie(28321),ye=ie(24303),qe=ie(18785),Ee=ie(92310),Se=ie.n(Ee),Ne=ie(6089),$e=ie(2738),Ie=ie(86641),he=ie(22703),Xe=ie(48755),we=ie(83397),ot=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Re=function(ne,me){var Ce={};for(var mt in ne)Object.prototype.hasOwnProperty.call(ne,mt)&&me.indexOf(mt)<0&&(Ce[mt]=ne[mt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,mt=Object.getOwnPropertySymbols(ne);Pe<mt.length;Pe++)me.indexOf(mt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,mt[Pe])&&(Ce[mt[Pe]]=ne[mt[Pe]]);return Ce},He=ne=>{const{prefixCls:me,className:Ce,dashed:mt}=ne,Pe=Re(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=z.useContext(Xe.E_),ft=Ke("menu",me),It=Se()({[`${ft}-item-divider-dashed`]:!!mt},Ce);return z.createElement(it.iz,Object.assign({className:It},Pe))},Ct=ie(11592),Mt=ie(25399),Dt=ne=>{var me;const{className:Ce,children:mt,icon:Pe,title:Ke,danger:ft,extra:It}=ne,{prefixCls:wt,firstLevel:Qt,direction:Xt,disableMenuItemTitleTooltip:Gt,inlineCollapsed:un}=z.useContext(ot),rn=ut=>{const Rt=mt==null?void 0:mt[0],$t=z.createElement("span",{className:Se()(`${wt}-title-content`,{[`${wt}-title-content-with-extra`]:!!It||It===0})},mt);return(!Pe||z.isValidElement(mt)&&mt.type==="span")&&mt&&ut&&Qt&&typeof Rt=="string"?z.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Rt.charAt(0)):$t},{siderCollapsed:ln}=z.useContext(ye.D);let Pt=Ke;typeof Ke=="undefined"?Pt=Qt?mt:"":Ke===!1&&(Pt="");const nn={title:Pt};!ln&&!un&&(nn.title=null,nn.open=!1);const Ut=(0,Ct.Z)(mt).length;let Le=z.createElement(it.ck,Object.assign({},(0,$e.Z)(ne,["title","icon","danger"]),{className:Se()({[`${wt}-item-danger`]:ft,[`${wt}-item-only-child`]:(Pe?Ut+1:Ut)===1},Ce),title:typeof Ke=="string"?Ke:void 0}),(0,he.Tm)(Pe,{className:Se()(z.isValidElement(Pe)?(me=Pe.props)===null||me===void 0?void 0:me.className:"",`${wt}-item-icon`)}),rn(un));return Gt||(Le=z.createElement(Mt.Z,Object.assign({},nn,{placement:Xt==="rtl"?"left":"right",classNames:{root:`${wt}-inline-collapsed-tooltip`}}),Le)),Le},et=ie(78857),yt=ie(36237),Ue=ie(17835),Ft=ie(63356),vt=ie(34961),dt=ie(46e3),St=ie(34925),Oe=ie(16931),nt=ie(51636),ue=ne=>{const{componentCls:me,motionDurationSlow:Ce,horizontalLineHeight:mt,colorSplit:Pe,lineWidth:Ke,lineType:ft,itemPaddingInline:It}=ne;return{[`${me}-horizontal`]:{lineHeight:mt,border:0,borderBottom:`${(0,yt.unit)(Ke)} ${ft} ${Pe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${me}-item, ${me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:It},[`> ${me}-item:hover,
> ${me}-item-active,
> ${me}-submenu ${me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${me}-item, ${me}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${me}-submenu-arrow`]:{display:"none"}}}},Be=ne=>{let{componentCls:me,menuArrowOffset:Ce,calc:mt}=ne;return{[`${me}-rtl`]:{direction:"rtl"},[`${me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${me}-rtl${me}-vertical,
${me}-submenu-rtl ${me}-vertical`]:{[`${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,yt.unit)(mt(Ce).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,yt.unit)(Ce)})`}}}}};const tt=ne=>Object.assign({},(0,Ft.oN)(ne));var ge=(ne,me)=>{const{componentCls:Ce,itemColor:mt,itemSelectedColor:Pe,subMenuItemSelectedColor:Ke,groupTitleColor:ft,itemBg:It,subMenuItemBg:wt,itemSelectedBg:Qt,activeBarHeight:Xt,activeBarWidth:Gt,activeBarBorderWidth:un,motionDurationSlow:rn,motionEaseInOut:ln,motionEaseOut:Pt,itemPaddingInline:nn,motionDurationMid:Ut,itemHoverColor:Le,lineType:ut,colorSplit:Rt,itemDisabledColor:$t,dangerItemColor:De,dangerItemHoverColor:Ye,dangerItemSelectedColor:pt,dangerItemActiveBg:kt,dangerItemSelectedBg:Yt,popupBg:dn,itemHoverBg:Dn,itemActiveBg:Pn,menuSubMenuBg:cn,horizontalItemSelectedColor:In,horizontalItemSelectedBg:gn,horizontalItemBorderRadius:$n,horizontalItemHoverBg:An}=ne;return{[`${Ce}-${me}, ${Ce}-${me} > ${Ce}`]:{color:mt,background:It,[`&${Ce}-root:focus-visible`]:Object.assign({},tt(ne)),[`${Ce}-item`]:{"&-group-title, &-extra":{color:ft}},[`${Ce}-submenu-selected > ${Ce}-submenu-title`]:{color:Ke},[`${Ce}-item, ${Ce}-submenu-title`]:{color:mt,[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},tt(ne))},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${$t} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:Le}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Pn}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Pn}}},[`${Ce}-item-danger`]:{color:De,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:Ye}},[`&${Ce}-item:active`]:{background:kt}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:Pe,[`&${Ce}-item-danger`]:{color:pt},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:Qt,[`&${Ce}-item-danger`]:{backgroundColor:Yt}},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:cn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:dn},[`&${Ce}-submenu-popup > ${Ce}`]:{backgroundColor:dn},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},me==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:un,marginTop:ne.calc(un).mul(-1).equal(),marginBottom:0,borderRadius:$n,"&::after":{position:"absolute",insetInline:nn,bottom:0,borderBottom:`${(0,yt.unit)(Xt)} solid transparent`,transition:`border-color ${rn} ${ln}`,content:'""'},"&:hover, &-active, &-open":{background:An,"&::after":{borderBottomWidth:Xt,borderBottomColor:In}},"&-selected":{color:In,backgroundColor:gn,"&:hover":{backgroundColor:gn},"&::after":{borderBottomWidth:Xt,borderBottomColor:In}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${(0,yt.unit)(un)} ${ut} ${Rt}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:wt},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,yt.unit)(Gt)} solid ${Pe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${Pt}`,`opacity ${Ut} ${Pt}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:pt}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${ln}`,`opacity ${Ut} ${ln}`].join(",")}}}}}};const de=ne=>{const{componentCls:me,itemHeight:Ce,itemMarginInline:mt,padding:Pe,menuArrowSize:Ke,marginXS:ft,itemMarginBlock:It,itemWidth:wt,itemPaddingInline:Qt}=ne,Xt=ne.calc(Ke).add(Pe).add(ft).equal();return{[`${me}-item`]:{position:"relative",overflow:"hidden"},[`${me}-item, ${me}-submenu-title`]:{height:Ce,lineHeight:(0,yt.unit)(Ce),paddingInline:Qt,overflow:"hidden",textOverflow:"ellipsis",marginInline:mt,marginBlock:It,width:wt},[`> ${me}-item,
> ${me}-submenu > ${me}-submenu-title`]:{height:Ce,lineHeight:(0,yt.unit)(Ce)},[`${me}-item-group-list ${me}-submenu-title,
${me}-submenu-title`]:{paddingInlineEnd:Xt}}};var Wt=ne=>{const{componentCls:me,iconCls:Ce,itemHeight:mt,colorTextLightSolid:Pe,dropdownWidth:Ke,controlHeightLG:ft,motionEaseOut:It,paddingXL:wt,itemMarginInline:Qt,fontSizeLG:Xt,motionDurationFast:Gt,motionDurationSlow:un,paddingXS:rn,boxShadowSecondary:ln,collapsedWidth:Pt,collapsedIconSize:nn}=ne,Ut={height:mt,lineHeight:(0,yt.unit)(mt),listStylePosition:"inside",listStyleType:"disc"};return[{[me]:{"&-inline, &-vertical":Object.assign({[`&${me}-root`]:{boxShadow:"none"}},de(ne))},[`${me}-submenu-popup`]:{[`${me}-vertical`]:Object.assign(Object.assign({},de(ne)),{boxShadow:ln})}},{[`${me}-submenu-popup ${me}-vertical${me}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${(0,yt.unit)(ne.calc(ft).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${me}-inline`]:{width:"100%",[`&${me}-root`]:{[`${me}-item, ${me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${un}`,`background ${un}`,`padding ${Gt} ${It}`].join(","),[`> ${me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${me}-sub${me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${me}-submenu > ${me}-submenu-title`]:Ut,[`& ${me}-item-group-title`]:{paddingInlineStart:wt}},[`${me}-item`]:Ut}},{[`${me}-inline-collapsed`]:{width:Pt,[`&${me}-root`]:{[`${me}-item, ${me}-submenu ${me}-submenu-title`]:{[`> ${me}-inline-collapsed-noicon`]:{fontSize:Xt,textAlign:"center"}}},[`> ${me}-item,
> ${me}-item-group > ${me}-item-group-list > ${me}-item,
> ${me}-item-group > ${me}-item-group-list > ${me}-submenu > ${me}-submenu-title,
> ${me}-submenu > ${me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,yt.unit)(ne.calc(nn).div(2).equal())} - ${(0,yt.unit)(Qt)})`,textOverflow:"clip",[`
${me}-submenu-arrow,
${me}-submenu-expand-icon
`]:{opacity:0},[`${me}-item-icon, ${Ce}`]:{margin:0,fontSize:nn,lineHeight:(0,yt.unit)(mt),"+ span":{display:"inline-block",opacity:0}}},[`${me}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${me}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:Pe}},[`${me}-item-group-title`]:Object.assign(Object.assign({},Ft.vS),{paddingInline:rn})}}]};const xt=ne=>{const{componentCls:me,motionDurationSlow:Ce,motionDurationMid:mt,motionEaseInOut:Pe,motionEaseOut:Ke,iconCls:ft,iconSize:It,iconMarginInlineEnd:wt}=ne;return{[`${me}-item, ${me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding calc(${Ce} + 0.1s) ${Pe}`].join(","),[`${me}-item-icon, ${ft}`]:{minWidth:It,fontSize:It,transition:[`font-size ${mt} ${Ke}`,`margin ${Ce} ${Pe}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:wt,opacity:1,transition:[`opacity ${Ce} ${Pe}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${me}-item-icon`]:Object.assign({},(0,Ft.Ro)()),[`&${me}-item-only-child`]:{[`> ${ft}, > ${me}-item-icon`]:{marginInlineEnd:0}}},[`${me}-item-disabled, ${me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pe=ne=>{const{componentCls:me,motionDurationSlow:Ce,motionEaseInOut:mt,borderRadius:Pe,menuArrowSize:Ke,menuArrowOffset:ft}=ne;return{[`${me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${mt}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ke).mul(.6).equal(),height:ne.calc(Ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Pe,transition:[`background ${Ce} ${mt}`,`transform ${Ce} ${mt}`,`top ${Ce} ${mt}`,`color ${Ce} ${mt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,yt.unit)(ne.calc(ft).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,yt.unit)(ft)})`}}}}},Me=ne=>{const{antCls:me,componentCls:Ce,fontSize:mt,motionDurationSlow:Pe,motionDurationMid:Ke,motionEaseInOut:ft,paddingXS:It,padding:wt,colorSplit:Qt,lineWidth:Xt,zIndexPopup:Gt,borderRadiusLG:un,subMenuItemBorderRadius:rn,menuArrowSize:ln,menuArrowOffset:Pt,lineType:nn,groupTitleLineHeight:Ut,groupTitleFontSize:Le}=ne;return[{"":{[Ce]:Object.assign(Object.assign({},(0,Ft.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(ne)),(0,Ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:mt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Pe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${(0,yt.unit)(It)} ${(0,yt.unit)(wt)}`,fontSize:Le,lineHeight:Ut,transition:`all ${Pe}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${Pe} ${ft}`,`background ${Pe} ${ft}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${Pe} ${ft}`,`background ${Pe} ${ft}`,`padding ${Ke} ${ft}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${Pe} ${ft}`,`padding ${Pe} ${ft}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${Pe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${me}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ce}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Qt,borderStyle:nn,borderWidth:0,borderTopWidth:Xt,marginBlock:Xt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xt(ne)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${(0,yt.unit)(ne.calc(mt).mul(2).equal())} ${(0,yt.unit)(wt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Gt,borderRadius:un,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:un},xt(ne)),pe(ne)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:rn},[`${Ce}-submenu-title::after`]:{transition:`transform ${Pe} ${ft}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),pe(ne)),{[`&-inline-collapsed ${Ce}-submenu-arrow,
&-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,yt.unit)(Pt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,yt.unit)(ne.calc(Pt).mul(-1).equal())})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(${(0,yt.unit)(ne.calc(ln).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,yt.unit)(ne.calc(Pt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,yt.unit)(Pt)})`}}})},{[`${me}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]},ze=ne=>{var me,Ce,mt;const{colorPrimary:Pe,colorError:Ke,colorTextDisabled:ft,colorErrorBg:It,colorText:wt,colorTextDescription:Qt,colorBgContainer:Xt,colorFillAlter:Gt,colorFillContent:un,lineWidth:rn,lineWidthBold:ln,controlItemBgActive:Pt,colorBgTextHover:nn,controlHeightLG:Ut,lineHeight:Le,colorBgElevated:ut,marginXXS:Rt,padding:$t,fontSize:De,controlHeightSM:Ye,fontSizeLG:pt,colorTextLightSolid:kt,colorErrorHover:Yt}=ne,dn=(me=ne.activeBarWidth)!==null&&me!==void 0?me:0,Dn=(Ce=ne.activeBarBorderWidth)!==null&&Ce!==void 0?Ce:rn,Pn=(mt=ne.itemMarginInline)!==null&&mt!==void 0?mt:ne.marginXXS,cn=new Ue.FastColor(kt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:wt,itemColor:wt,colorItemTextHover:wt,itemHoverColor:wt,colorItemTextHoverHorizontal:Pe,horizontalItemHoverColor:Pe,colorGroupTitle:Qt,groupTitleColor:Qt,colorItemTextSelected:Pe,itemSelectedColor:Pe,subMenuItemSelectedColor:Pe,colorItemTextSelectedHorizontal:Pe,horizontalItemSelectedColor:Pe,colorItemBg:Xt,itemBg:Xt,colorItemBgHover:nn,itemHoverBg:nn,colorItemBgActive:un,itemActiveBg:Pt,colorSubItemBg:Gt,subMenuItemBg:Gt,colorItemBgSelected:Pt,itemSelectedBg:Pt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:dn,colorActiveBarHeight:ln,activeBarHeight:ln,colorActiveBarBorderSize:rn,activeBarBorderWidth:Dn,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:It,dangerItemActiveBg:It,colorDangerItemBgSelected:It,dangerItemSelectedBg:It,itemMarginInline:Pn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ut,groupTitleLineHeight:Le,collapsedWidth:Ut*2,popupBg:ut,itemMarginBlock:Rt,itemPaddingInline:$t,horizontalLineHeight:`${Ut*1.15}px`,iconSize:De,iconMarginInlineEnd:Ye-De,collapsedIconSize:pt,groupTitleFontSize:De,darkItemDisabledColor:new Ue.FastColor(kt).setA(.25).toRgbString(),darkItemColor:cn,darkDangerItemColor:Ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:kt,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:cn,darkItemHoverColor:kt,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:kt,darkDangerItemActiveBg:Ke,itemWidth:dn?`calc(100% + ${Dn}px)`:`calc(100% - ${Pn*2}px)`}};var Nt=function(ne){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Oe.I$)("Menu",Pe=>{const{colorBgElevated:Ke,controlHeightLG:ft,fontSize:It,darkItemColor:wt,darkDangerItemColor:Qt,darkItemBg:Xt,darkSubMenuItemBg:Gt,darkItemSelectedColor:un,darkItemSelectedBg:rn,darkDangerItemSelectedBg:ln,darkItemHoverBg:Pt,darkGroupTitleColor:nn,darkItemHoverColor:Ut,darkItemDisabledColor:Le,darkDangerItemHoverColor:ut,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:$t,popupBg:De,darkPopupBg:Ye}=Pe,pt=Pe.calc(It).div(7).mul(5).equal(),kt=(0,nt.mergeToken)(Pe,{menuArrowSize:pt,menuHorizontalHeight:Pe.calc(ft).mul(1.15).equal(),menuArrowOffset:Pe.calc(pt).mul(.25).equal(),menuSubMenuBg:Ke,calc:Pe.calc,popupBg:De}),Yt=(0,nt.mergeToken)(kt,{itemColor:wt,itemHoverColor:Ut,groupTitleColor:nn,itemSelectedColor:un,subMenuItemSelectedColor:un,itemBg:Xt,popupBg:Ye,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:rn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Pt,itemDisabledColor:Le,dangerItemColor:Qt,dangerItemHoverColor:ut,dangerItemSelectedColor:Rt,dangerItemActiveBg:$t,dangerItemSelectedBg:ln,menuSubMenuBg:Gt,horizontalItemSelectedColor:un,horizontalItemSelectedBg:rn});return[Me(kt),ue(kt),Wt(kt),ge(kt,"light"),ge(Yt,"dark"),Be(kt),(0,vt.Z)(kt),(0,dt.oN)(kt,"slide-up"),(0,dt.oN)(kt,"slide-down"),(0,St._y)(kt,"zoom-big")]},ze,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Ce,unitless:{groupTitleLineHeight:!0}})(ne,me)},At=ie(75030),Fe=ne=>{var me;const{popupClassName:Ce,icon:mt,title:Pe,theme:Ke}=ne,ft=z.useContext(ot),{prefixCls:It,inlineCollapsed:wt,theme:Qt}=ft,Xt=(0,it.Xl)();let Gt;if(!mt)Gt=wt&&!Xt.length&&Pe&&typeof Pe=="string"?z.createElement("div",{className:`${It}-inline-collapsed-noicon`},Pe.charAt(0)):z.createElement("span",{className:`${It}-title-content`},Pe);else{const ln=z.isValidElement(Pe)&&Pe.type==="span";Gt=z.createElement(z.Fragment,null,(0,he.Tm)(mt,{className:Se()(z.isValidElement(mt)?(me=mt.props)===null||me===void 0?void 0:me.className:"",`${It}-item-icon`)}),ln?Pe:z.createElement("span",{className:`${It}-title-content`},Pe))}const un=z.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]),[rn]=(0,At.Cn)("Menu");return z.createElement(ot.Provider,{value:un},z.createElement(it.Wd,Object.assign({},(0,$e.Z)(ne,["icon"]),{title:Gt,popupClassName:Se()(It,Ce,`${It}-${Ke||Qt}`),popupStyle:Object.assign({zIndex:rn},ne.popupStyle)})))},Lt=function(ne,me){var Ce={};for(var mt in ne)Object.prototype.hasOwnProperty.call(ne,mt)&&me.indexOf(mt)<0&&(Ce[mt]=ne[mt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,mt=Object.getOwnPropertySymbols(ne);Pe<mt.length;Pe++)me.indexOf(mt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,mt[Pe])&&(Ce[mt[Pe]]=ne[mt[Pe]]);return Ce};function st(ne){return ne===null||ne===!1}const ae={item:Dt,submenu:Fe,divider:He};var ee=(0,z.forwardRef)((ne,me)=>{var Ce;const mt=z.useContext(et.Z),Pe=mt||{},{getPrefixCls:Ke,getPopupContainer:ft,direction:It,menu:wt}=z.useContext(Xe.E_),Qt=Ke(),{prefixCls:Xt,className:Gt,style:un,theme:rn="light",expandIcon:ln,_internalDisableMenuItemTitleTooltip:Pt,inlineCollapsed:nn,siderCollapsed:Ut,rootClassName:Le,mode:ut,selectable:Rt,onClick:$t,overflowedIndicatorPopupClassName:De}=ne,Ye=Lt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),pt=(0,$e.Z)(Ye,["collapsedWidth"]);(Ce=Pe.validator)===null||Ce===void 0||Ce.call(Pe,{mode:ut});const kt=(0,Ne.Z)(function(){var Tt;$t==null||$t.apply(void 0,arguments),(Tt=Pe.onClick)===null||Tt===void 0||Tt.call(Pe)}),Yt=Pe.mode||ut,dn=Rt!=null?Rt:Pe.selectable,Dn=nn!=null?nn:Ut,Pn={horizontal:{motionName:`${Qt}-slide-up`},inline:(0,Ie.Z)(Qt),other:{motionName:`${Qt}-zoom-big`}},cn=Ke("menu",Xt||Pe.prefixCls),In=(0,we.Z)(cn),[gn,$n,An]=Nt(cn,In,!mt),En=Se()(`${cn}-${rn}`,wt==null?void 0:wt.className,Gt),qt=z.useMemo(()=>{var Tt,Vt;if(typeof ln=="function"||st(ln))return ln||null;if(typeof Pe.expandIcon=="function"||st(Pe.expandIcon))return Pe.expandIcon||null;if(typeof(wt==null?void 0:wt.expandIcon)=="function"||st(wt==null?void 0:wt.expandIcon))return(wt==null?void 0:wt.expandIcon)||null;const tn=(Tt=ln!=null?ln:Pe==null?void 0:Pe.expandIcon)!==null&&Tt!==void 0?Tt:wt==null?void 0:wt.expandIcon;return(0,he.Tm)(tn,{className:Se()(`${cn}-submenu-expand-icon`,z.isValidElement(tn)?(Vt=tn.props)===null||Vt===void 0?void 0:Vt.className:void 0)})},[ln,Pe==null?void 0:Pe.expandIcon,wt==null?void 0:wt.expandIcon,cn]),zt=z.useMemo(()=>({prefixCls:cn,inlineCollapsed:Dn||!1,direction:It,firstLevel:!0,theme:rn,mode:Yt,disableMenuItemTitleTooltip:Pt}),[cn,Dn,It,Pt,rn]);return gn(z.createElement(et.Z.Provider,{value:null},z.createElement(ot.Provider,{value:zt},z.createElement(it.ZP,Object.assign({getPopupContainer:ft,overflowedIndicator:z.createElement(qe.Z,null),overflowedIndicatorPopupClassName:Se()(cn,`${cn}-${rn}`,De),mode:Yt,selectable:dn,onClick:kt},pt,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),un),className:En,prefixCls:cn,direction:It,defaultMotions:Pn,expandIcon:qt,ref:me,rootClassName:Se()(Le,$n,Pe.rootClassName,An,In),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,me)=>{const Ce=(0,z.useRef)(null),mt=z.useContext(ye.D);return(0,z.useImperativeHandle)(me,()=>({menu:Ce.current,focus:Pe=>{var Ke;(Ke=Ce.current)===null||Ke===void 0||Ke.focus(Pe)}})),z.createElement(ee,Object.assign({ref:Ce},ne,mt))});oe.Item=Dt,oe.SubMenu=Fe,oe.Divider=He,oe.ItemGroup=it.BW;var se=oe},89787:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return Ut}});var z=ie(59301),it=ie(17835),ye=ie(29679),qe=ie(40001),Ee=ie(19248),Se=ie(99267),Ne=ie(92310),$e=ie.n(Ne),Ie=ie(2738),he=ie(48755),Xe=ie(54476),we=ie(33885),Ot=ie(75931),ot={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Re=function(){var ut=(0,z.useRef)([]),Rt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var $t=Date.now(),De=!1;ut.current.forEach(function(Ye){if(Ye){De=!0;var pt=Ye.style;pt.transitionDuration=".3s, .3s, .3s, .06s",Rt.current&&$t-Rt.current<100&&(pt.transitionDuration="0s, 0s")}}),De&&(Rt.current=Date.now())}),ut.current},Ge=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],He=function(ut){var Rt=(0,we.Z)((0,we.Z)({},ot),ut),$t=Rt.className,De=Rt.percent,Ye=Rt.prefixCls,pt=Rt.strokeColor,kt=Rt.strokeLinecap,Yt=Rt.strokeWidth,dn=Rt.style,Dn=Rt.trailColor,Pn=Rt.trailWidth,cn=Rt.transition,In=(0,Ot.Z)(Rt,Ge);delete In.gapPosition;var gn=Array.isArray(De)?De:[De],$n=Array.isArray(pt)?pt:[pt],An=Re(),En=Yt/2,qt=100-Yt/2,zt="M ".concat(kt==="round"?En:0,",").concat(En,`
L `).concat(kt==="round"?qt:100,",").concat(En),Tt="0 0 100 ".concat(Yt),Vt=0;return z.createElement("svg",(0,Xe.Z)({className:$e()("".concat(Ye,"-line"),$t),viewBox:Tt,preserveAspectRatio:"none",style:dn},In),z.createElement("path",{className:"".concat(Ye,"-line-trail"),d:zt,strokeLinecap:kt,stroke:Dn,strokeWidth:Pn||Yt,fillOpacity:"0"}),gn.map(function(tn,xn){var wn=1;switch(kt){case"round":wn=1-Yt/100;break;case"square":wn=1-Yt/2/100;break;default:wn=1;break}var mn={strokeDasharray:"".concat(tn*wn,"px, 100px"),strokeDashoffset:"-".concat(Vt,"px"),transition:cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},vn=$n[xn]||$n[$n.length-1];return Vt+=tn,z.createElement("path",{key:xn,className:"".concat(Ye,"-line-path"),d:zt,strokeLinecap:kt,stroke:vn,strokeWidth:Yt,fillOpacity:"0",ref:function(zn){An[xn]=zn},style:mn})}))},Ct=He,Mt=ie(76190),jt=ie(42978),Dt=ie(47273),et=0,yt=(0,Dt.Z)();function Ue(){var Le;return yt?(Le=et,et+=1):Le="TEST_OR_SSR",Le}var Ft=function(Le){var ut=z.useState(),Rt=(0,jt.Z)(ut,2),$t=Rt[0],De=Rt[1];return z.useEffect(function(){De("rc_progress_".concat(Ue()))},[]),Le||$t},vt=function(ut){var Rt=ut.bg,$t=ut.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:Rt}},$t)};function dt(Le,ut){return Object.keys(Le).map(function(Rt){var $t=parseFloat(Rt),De="".concat(Math.floor($t*ut),"%");return"".concat(Le[Rt]," ").concat(De)})}var St=z.forwardRef(function(Le,ut){var Rt=Le.prefixCls,$t=Le.color,De=Le.gradientId,Ye=Le.radius,pt=Le.style,kt=Le.ptg,Yt=Le.strokeLinecap,dn=Le.strokeWidth,Dn=Le.size,Pn=Le.gapDegree,cn=$t&&(0,Mt.Z)($t)==="object",In=cn?"#FFF":void 0,gn=Dn/2,$n=z.createElement("circle",{className:"".concat(Rt,"-circle-path"),r:Ye,cx:gn,cy:gn,stroke:In,strokeLinecap:Yt,strokeWidth:dn,opacity:kt===0?0:1,style:pt,ref:ut});if(!cn)return $n;var An="".concat(De,"-conic"),En=Pn?"".concat(180+Pn/2,"deg"):"0deg",qt=dt($t,(360-Pn)/360),zt=dt($t,1),Tt="conic-gradient(from ".concat(En,", ").concat(qt.join(", "),")"),Vt="linear-gradient(to ".concat(Pn?"bottom":"top",", ").concat(zt.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:An},$n),z.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat(An,")")},z.createElement(vt,{bg:Vt},z.createElement(vt,{bg:Tt}))))}),Oe=St,nt=100,rt=function(ut,Rt,$t,De,Ye,pt,kt,Yt,dn,Dn){var Pn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cn=$t/100*360*((360-pt)/360),In=pt===0?0:{bottom:0,top:180,left:90,right:-90}[kt],gn=(100-De)/100*Rt;dn==="round"&&De!==100&&(gn+=Dn/2,gn>=Rt&&(gn=Rt-.01));var $n=nt/2;return{stroke:typeof Yt=="string"?Yt:void 0,strokeDasharray:"".concat(Rt,"px ").concat(ut),strokeDashoffset:gn+Pn,transform:"rotate(".concat(Ye+cn+In,"deg)"),transformOrigin:"".concat($n,"px ").concat($n,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function bt(Le){var ut=Le!=null?Le:[];return Array.isArray(ut)?ut:[ut]}var Be=function(ut){var Rt=(0,we.Z)((0,we.Z)({},ot),ut),$t=Rt.id,De=Rt.prefixCls,Ye=Rt.steps,pt=Rt.strokeWidth,kt=Rt.trailWidth,Yt=Rt.gapDegree,dn=Yt===void 0?0:Yt,Dn=Rt.gapPosition,Pn=Rt.trailColor,cn=Rt.strokeLinecap,In=Rt.style,gn=Rt.className,$n=Rt.strokeColor,An=Rt.percent,En=(0,Ot.Z)(Rt,ue),qt=nt/2,zt=Ft($t),Tt="".concat(zt,"-gradient"),Vt=qt-pt/2,tn=Math.PI*2*Vt,xn=dn>0?90+dn/2:-90,wn=tn*((360-dn)/360),mn=(0,Mt.Z)(Ye)==="object"?Ye:{count:Ye,gap:2},vn=mn.count,Hn=mn.gap,zn=bt(An),Bt=bt($n),Jt=Bt.find(function(Ae){return Ae&&(0,Mt.Z)(Ae)==="object"}),On=Jt&&(0,Mt.Z)(Jt)==="object",Mn=On?"butt":cn,Te=rt(tn,wn,0,100,xn,dn,Dn,Pn,Mn,pt),We=Re(),xe=function(){var je=0;return zn.map(function(be,Je){var lt=Bt[Je]||Bt[Bt.length-1],gt=rt(tn,wn,je,be,xn,dn,Dn,lt,Mn,pt);return je+=be,z.createElement(Oe,{key:Je,color:lt,ptg:be,radius:Vt,prefixCls:De,gradientId:Tt,style:gt,strokeLinecap:Mn,strokeWidth:pt,gapDegree:dn,ref:function(Ze){We[Je]=Ze},size:nt})}).reverse()},ke=function(){var je=Math.round(vn*(zn[0]/100)),be=100/vn,Je=0;return new Array(vn).fill(null).map(function(lt,gt){var at=gt<=je-1?Bt[0]:Pn,Ze=at&&(0,Mt.Z)(at)==="object"?"url(#".concat(Tt,")"):void 0,Ve=rt(tn,wn,Je,be,xn,dn,Dn,at,"butt",pt,Hn);return Je+=(wn-Ve.strokeDashoffset+Hn)*100/wn,z.createElement("circle",{key:gt,className:"".concat(De,"-circle-path"),r:Vt,cx:qt,cy:qt,stroke:Ze,strokeWidth:pt,opacity:1,style:Ve,ref:function(sn){We[gt]=sn}})})};return z.createElement("svg",(0,Xe.Z)({className:$e()("".concat(De,"-circle"),gn),viewBox:"0 0 ".concat(nt," ").concat(nt),style:In,id:$t,role:"presentation"},En),!vn&&z.createElement("circle",{className:"".concat(De,"-circle-trail"),r:Vt,cx:qt,cy:qt,stroke:Pn,strokeLinecap:Mn,strokeWidth:kt||pt,style:Te}),vn?ke():xe())},tt=Be,Et={Line:Ct,Circle:tt},ge=ie(25399),de=ie(68361);function _e(Le){return!Le||Le<0?0:Le>100?100:Le}function Wt(Le){let{success:ut,successPercent:Rt}=Le,$t=Rt;return ut&&"progress"in ut&&($t=ut.progress),ut&&"percent"in ut&&($t=ut.percent),$t}const xt=Le=>{let{percent:ut,success:Rt,successPercent:$t}=Le;const De=_e(Wt({success:Rt,successPercent:$t}));return[De,_e(_e(ut)-De)]},pe=Le=>{let{success:ut={},strokeColor:Rt}=Le;const{strokeColor:$t}=ut;return[$t||de.presetPrimaryColors.green,Rt||null]},Me=(Le,ut,Rt)=>{var $t,De,Ye,pt;let kt=-1,Yt=-1;if(ut==="step"){const dn=Rt.steps,Dn=Rt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(kt=Le==="small"?2:14,Yt=Dn!=null?Dn:8):typeof Le=="number"?[kt,Yt]=[Le,Le]:[kt=14,Yt=8]=Array.isArray(Le)?Le:[Le.width,Le.height],kt*=dn}else if(ut==="line"){const dn=Rt==null?void 0:Rt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?Yt=dn||(Le==="small"?6:8):typeof Le=="number"?[kt,Yt]=[Le,Le]:[kt=-1,Yt=8]=Array.isArray(Le)?Le:[Le.width,Le.height]}else(ut==="circle"||ut==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[kt,Yt]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[kt,Yt]=[Le,Le]:Array.isArray(Le)&&(kt=(De=($t=Le[0])!==null&&$t!==void 0?$t:Le[1])!==null&&De!==void 0?De:120,Yt=(pt=(Ye=Le[0])!==null&&Ye!==void 0?Ye:Le[1])!==null&&pt!==void 0?pt:120));return[kt,Yt]},ze=3,Nt=Le=>ze/Le*100;var Zt=Le=>{const{prefixCls:ut,trailColor:Rt=null,strokeLinecap:$t="round",gapPosition:De,gapDegree:Ye,width:pt=120,type:kt,children:Yt,success:dn,size:Dn=pt,steps:Pn}=Le,[cn,In]=Me(Dn,"circle");let{strokeWidth:gn}=Le;gn===void 0&&(gn=Math.max(Nt(cn),6));const $n={width:cn,height:In,fontSize:cn*.15+6},An=z.useMemo(()=>{if(Ye||Ye===0)return Ye;if(kt==="dashboard")return 75},[Ye,kt]),En=xt(Le),qt=De||kt==="dashboard"&&"bottom"||void 0,zt=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",Tt=pe({success:dn,strokeColor:Le.strokeColor}),Vt=$e()(`${ut}-inner`,{[`${ut}-circle-gradient`]:zt}),tn=z.createElement(tt,{steps:Pn,percent:Pn?En[1]:En,strokeWidth:gn,trailWidth:gn,strokeColor:Pn?Tt[1]:Tt,strokeLinecap:$t,trailColor:Rt,prefixCls:ut,gapDegree:An,gapPosition:qt}),xn=cn<=20,wn=z.createElement("div",{className:Vt,style:$n},tn,!xn&&Yt);return xn?z.createElement(ge.Z,{title:Yt},wn):wn},Fe=ie(36237),Lt=ie(63356),st=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Le=>{const ut=Le?"100%":"-100%";return new Fe.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ut}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ut}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Le=>{const{componentCls:ut,iconCls:Rt}=Le;return{[ut]:Object.assign(Object.assign({},(0,Lt.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize},[`${ut}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${ut}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Le.defaultColor}},[`${ut}-success-bg, ${ut}-bg`]:{position:"relative",background:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${ut}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${ut}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Le.marginXXS}},[`${ut}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${ut}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${ut}-text-inner`]:{color:Le.colorWhite,[`&${ut}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${ut}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${ut}-text`]:{display:"inline-block",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Rt]:{fontSize:Le.fontSize},[`&${ut}-text-outer`]:{width:"max-content"},[`&${ut}-text-outer${ut}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Le.marginXS}},[`${ut}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Fe.unit)(Le.paddingXXS)}`,[`&${ut}-text-start`]:{justifyContent:"start"},[`&${ut}-text-end`]:{justifyContent:"end"}},[`&${ut}-status-active`]:{[`${ut}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ut}-rtl${ut}-status-active`]:{[`${ut}-bg::before`]:{animationName:oe(!0)}},[`&${ut}-status-exception`]:{[`${ut}-bg`]:{backgroundColor:Le.colorError},[`${ut}-text`]:{color:Le.colorError}},[`&${ut}-status-exception ${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Le.colorError}},[`&${ut}-status-success`]:{[`${ut}-bg`]:{backgroundColor:Le.colorSuccess},[`${ut}-text`]:{color:Le.colorSuccess}},[`&${ut}-status-success ${ut}-inner:not(${ut}-circle-gradient)`]:{[`${ut}-circle-path`]:{stroke:Le.colorSuccess}}})}},ne=Le=>{const{componentCls:ut,iconCls:Rt}=Le;return{[ut]:{[`${ut}-circle-trail`]:{stroke:Le.remainingColor},[`&${ut}-circle ${ut}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ut}-circle ${ut}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Rt]:{fontSize:Le.circleIconFontSize}},[`${ut}-circle&-status-exception`]:{[`${ut}-text`]:{color:Le.colorError}},[`${ut}-circle&-status-success`]:{[`${ut}-text`]:{color:Le.colorSuccess}}},[`${ut}-inline-circle`]:{lineHeight:1,[`${ut}-inner`]:{verticalAlign:"bottom"}}}},me=Le=>{const{componentCls:ut}=Le;return{[ut]:{[`${ut}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},Ce=Le=>{const{componentCls:ut,iconCls:Rt}=Le;return{[ut]:{[`${ut}-small&-line, ${ut}-small&-line ${ut}-text ${Rt}`]:{fontSize:Le.fontSizeSM}}}},mt=Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Le.fontSize/Le.fontSizeSM}em`});var Pe=(0,st.I$)("Progress",Le=>{const ut=Le.calc(Le.marginXXS).div(2).equal(),Rt=(0,ae.mergeToken)(Le,{progressStepMarginInlineEnd:ut,progressStepMinWidth:ut,progressActiveMotionDuration:"2.4s"});return[se(Rt),ne(Rt),me(Rt),Ce(Rt)]},mt),Ke=function(Le,ut){var Rt={};for(var $t in Le)Object.prototype.hasOwnProperty.call(Le,$t)&&ut.indexOf($t)<0&&(Rt[$t]=Le[$t]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,$t=Object.getOwnPropertySymbols(Le);De<$t.length;De++)ut.indexOf($t[De])<0&&Object.prototype.propertyIsEnumerable.call(Le,$t[De])&&(Rt[$t[De]]=Le[$t[De]]);return Rt};const ft=Le=>{let ut=[];return Object.keys(Le).forEach(Rt=>{const $t=parseFloat(Rt.replace(/%/g,""));Number.isNaN($t)||ut.push({key:$t,value:Le[Rt]})}),ut=ut.sort((Rt,$t)=>Rt.key-$t.key),ut.map(Rt=>{let{key:$t,value:De}=Rt;return`${De} ${$t}%`}).join(", ")},It=(Le,ut)=>{const{from:Rt=de.presetPrimaryColors.blue,to:$t=de.presetPrimaryColors.blue,direction:De=ut==="rtl"?"to left":"to right"}=Le,Ye=Ke(Le,["from","to","direction"]);if(Object.keys(Ye).length!==0){const kt=ft(Ye),Yt=`linear-gradient(${De}, ${kt})`;return{background:Yt,[te]:Yt}}const pt=`linear-gradient(${De}, ${Rt}, ${$t})`;return{background:pt,[te]:pt}};var Qt=Le=>{const{prefixCls:ut,direction:Rt,percent:$t,size:De,strokeWidth:Ye,strokeColor:pt,strokeLinecap:kt="round",children:Yt,trailColor:dn=null,percentPosition:Dn,success:Pn}=Le,{align:cn,type:In}=Dn,gn=pt&&typeof pt!="string"?It(pt,Rt):{[te]:pt,background:pt},$n=kt==="square"||kt==="butt"?0:void 0,An=De!=null?De:[-1,Ye||(De==="small"?6:8)],[En,qt]=Me(An,"line",{strokeWidth:Ye}),zt={backgroundColor:dn||void 0,borderRadius:$n},Tt=Object.assign(Object.assign({width:`${_e($t)}%`,height:qt,borderRadius:$n},gn),{[ee]:_e($t)/100}),Vt=Wt(Le),tn={width:`${_e(Vt)}%`,height:qt,borderRadius:$n,backgroundColor:Pn==null?void 0:Pn.strokeColor},xn={width:En<0?"100%":En},wn=z.createElement("div",{className:`${ut}-inner`,style:zt},z.createElement("div",{className:$e()(`${ut}-bg`,`${ut}-bg-${In}`),style:Tt},In==="inner"&&Yt),Vt!==void 0&&z.createElement("div",{className:`${ut}-success-bg`,style:tn})),mn=In==="outer"&&cn==="start",vn=In==="outer"&&cn==="end";return In==="outer"&&cn==="center"?z.createElement("div",{className:`${ut}-layout-bottom`},wn,Yt):z.createElement("div",{className:`${ut}-outer`,style:xn},mn&&Yt,wn,vn&&Yt)},Gt=Le=>{const{size:ut,steps:Rt,rounding:$t=Math.round,percent:De=0,strokeWidth:Ye=8,strokeColor:pt,trailColor:kt=null,prefixCls:Yt,children:dn}=Le,Dn=$t(Rt*(De/100)),Pn=ut==="small"?2:14,cn=ut!=null?ut:[Pn,Ye],[In,gn]=Me(cn,"step",{steps:Rt,strokeWidth:Ye}),$n=In/Rt,An=Array.from({length:Rt});for(let En=0;En<Rt;En++){const qt=Array.isArray(pt)?pt[En]:pt;An[En]=z.createElement("div",{key:En,className:$e()(`${Yt}-steps-item`,{[`${Yt}-steps-item-active`]:En<=Dn-1}),style:{backgroundColor:En<=Dn-1?qt:kt,width:$n,height:gn}})}return z.createElement("div",{className:`${Yt}-steps-outer`},An,dn)},un=function(Le,ut){var Rt={};for(var $t in Le)Object.prototype.hasOwnProperty.call(Le,$t)&&ut.indexOf($t)<0&&(Rt[$t]=Le[$t]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,$t=Object.getOwnPropertySymbols(Le);De<$t.length;De++)ut.indexOf($t[De])<0&&Object.prototype.propertyIsEnumerable.call(Le,$t[De])&&(Rt[$t[De]]=Le[$t[De]]);return Rt};const rn=null,ln=["normal","exception","active","success"];var nn=z.forwardRef((Le,ut)=>{const{prefixCls:Rt,className:$t,rootClassName:De,steps:Ye,strokeColor:pt,percent:kt=0,size:Yt="default",showInfo:dn=!0,type:Dn="line",status:Pn,format:cn,style:In,percentPosition:gn={}}=Le,$n=un(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:An="end",type:En="outer"}=gn,qt=Array.isArray(pt)?pt[0]:pt,zt=typeof pt=="string"||Array.isArray(pt)?pt:void 0,Tt=z.useMemo(()=>{if(qt){const xe=typeof qt=="string"?qt:Object.values(qt)[0];return new it.FastColor(xe).isLight()}return!1},[pt]),Vt=z.useMemo(()=>{var xe,ke;const Ae=Wt(Le);return parseInt(Ae!==void 0?(xe=Ae!=null?Ae:0)===null||xe===void 0?void 0:xe.toString():(ke=kt!=null?kt:0)===null||ke===void 0?void 0:ke.toString(),10)},[kt,Le.success,Le.successPercent]),tn=z.useMemo(()=>!ln.includes(Pn)&&Vt>=100?"success":Pn||"normal",[Pn,Vt]),{getPrefixCls:xn,direction:wn,progress:mn}=z.useContext(he.E_),vn=xn("progress",Rt),[Hn,zn,Bt]=Pe(vn),Jt=Dn==="line",On=Jt&&!Ye,Mn=z.useMemo(()=>{if(!dn)return null;const xe=Wt(Le);let ke;const Ae=cn||(be=>`${be}%`),je=Jt&&Tt&&En==="inner";return En==="inner"||cn||tn!=="exception"&&tn!=="success"?ke=Ae(_e(kt),_e(xe)):tn==="exception"?ke=Jt?z.createElement(Ee.Z,null):z.createElement(Se.Z,null):tn==="success"&&(ke=Jt?z.createElement(ye.Z,null):z.createElement(qe.Z,null)),z.createElement("span",{className:$e()(`${vn}-text`,{[`${vn}-text-bright`]:je,[`${vn}-text-${An}`]:On,[`${vn}-text-${En}`]:On}),title:typeof ke=="string"?ke:void 0},ke)},[dn,kt,Vt,tn,Dn,vn,cn]);let Te;Dn==="line"?Te=Ye?z.createElement(Gt,Object.assign({},Le,{strokeColor:zt,prefixCls:vn,steps:typeof Ye=="object"?Ye.count:Ye}),Mn):z.createElement(Qt,Object.assign({},Le,{strokeColor:qt,prefixCls:vn,direction:wn,percentPosition:{align:An,type:En}}),Mn):(Dn==="circle"||Dn==="dashboard")&&(Te=z.createElement(Zt,Object.assign({},Le,{strokeColor:qt,prefixCls:vn,progressStatus:tn}),Mn));const We=$e()(vn,`${vn}-status-${tn}`,{[`${vn}-${Dn==="dashboard"&&"circle"||Dn}`]:Dn!=="line",[`${vn}-inline-circle`]:Dn==="circle"&&Me(Yt,"circle")[0]<=20,[`${vn}-line`]:On,[`${vn}-line-align-${An}`]:On,[`${vn}-line-position-${En}`]:On,[`${vn}-steps`]:Ye,[`${vn}-show-info`]:dn,[`${vn}-${Yt}`]:typeof Yt=="string",[`${vn}-rtl`]:wn==="rtl"},mn==null?void 0:mn.className,$t,De,zn,Bt);return Hn(z.createElement("div",Object.assign({ref:ut,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),In),className:We,role:"progressbar","aria-valuenow":Vt,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)($n,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Te))}),Ut=nn},63139:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return xt}});var z=ie(59301),it=ie(54476),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},qe=ye,Ee=ie(7657),Se=function(Me,ze){return z.createElement(Ee.Z,(0,it.Z)({},Me,{ref:ze,icon:qe}))},Ne=z.forwardRef(Se),$e=Ne,Ie=ie(92310),he=ie.n(Ie),Xe=ie(20068),we=ie(42978),Ot=ie(75931),ot=ie(18929),Re=ie(10228),Ge=ie(26112);function He(pe,Me){var ze=pe.disabled,Nt=pe.prefixCls,At=pe.character,Zt=pe.characterRender,Fe=pe.index,Lt=pe.count,st=pe.value,ae=pe.allowHalf,te=pe.focused,ee=pe.onHover,oe=pe.onClick,se=function(It){ee(It,Fe)},ne=function(It){oe(It,Fe)},me=function(It){It.keyCode===Re.Z.ENTER&&oe(It,Fe)},Ce=Fe+1,mt=new Set([Nt]);st===0&&Fe===0&&te?mt.add("".concat(Nt,"-focused")):ae&&st+.5>=Ce&&st<Ce?(mt.add("".concat(Nt,"-half")),mt.add("".concat(Nt,"-active")),te&&mt.add("".concat(Nt,"-focused"))):(Ce<=st?mt.add("".concat(Nt,"-full")):mt.add("".concat(Nt,"-zero")),Ce===st&&te&&mt.add("".concat(Nt,"-focused")));var Pe=typeof At=="function"?At(pe):At,Ke=z.createElement("li",{className:he()(Array.from(mt)),ref:Me},z.createElement("div",{onClick:ze?null:ne,onKeyDown:ze?null:me,onMouseMove:ze?null:se,role:"radio","aria-checked":st>Fe?"true":"false","aria-posinset":Fe+1,"aria-setsize":Lt,tabIndex:ze?-1:0},z.createElement("div",{className:"".concat(Nt,"-first")},Pe),z.createElement("div",{className:"".concat(Nt,"-second")},Pe)));return Zt&&(Ke=Zt(Ke,pe)),Ke}var Ct=z.forwardRef(He);function Mt(){var pe=z.useRef({});function Me(Nt){return pe.current[Nt]}function ze(Nt){return function(At){pe.current[Nt]=At}}return[Me,ze]}function jt(pe){var Me=pe.pageXOffset,ze="scrollLeft";if(typeof Me!="number"){var Nt=pe.document;Me=Nt.documentElement[ze],typeof Me!="number"&&(Me=Nt.body[ze])}return Me}function Dt(pe){var Me,ze,Nt=pe.ownerDocument,At=Nt.body,Zt=Nt&&Nt.documentElement,Fe=pe.getBoundingClientRect();return Me=Fe.left,ze=Fe.top,Me-=Zt.clientLeft||At.clientLeft||0,ze-=Zt.clientTop||At.clientTop||0,{left:Me,top:ze}}function et(pe){var Me=Dt(pe),ze=pe.ownerDocument,Nt=ze.defaultView||ze.parentWindow;return Me.left+=jt(Nt),Me.left}var yt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ue(pe,Me){var ze=pe.prefixCls,Nt=ze===void 0?"rc-rate":ze,At=pe.className,Zt=pe.defaultValue,Fe=pe.value,Lt=pe.count,st=Lt===void 0?5:Lt,ae=pe.allowHalf,te=ae===void 0?!1:ae,ee=pe.allowClear,oe=ee===void 0?!0:ee,se=pe.keyboard,ne=se===void 0?!0:se,me=pe.character,Ce=me===void 0?"\u2605":me,mt=pe.characterRender,Pe=pe.disabled,Ke=pe.direction,ft=Ke===void 0?"ltr":Ke,It=pe.tabIndex,wt=It===void 0?0:It,Qt=pe.autoFocus,Xt=pe.onHoverChange,Gt=pe.onChange,un=pe.onFocus,rn=pe.onBlur,ln=pe.onKeyDown,Pt=pe.onMouseLeave,nn=(0,Ot.Z)(pe,yt),Ut=Mt(),Le=(0,we.Z)(Ut,2),ut=Le[0],Rt=Le[1],$t=z.useRef(null),De=function(){if(!Pe){var Mn;(Mn=$t.current)===null||Mn===void 0||Mn.focus()}};z.useImperativeHandle(Me,function(){return{focus:De,blur:function(){if(!Pe){var Mn;(Mn=$t.current)===null||Mn===void 0||Mn.blur()}}}});var Ye=(0,ot.Z)(Zt||0,{value:Fe}),pt=(0,we.Z)(Ye,2),kt=pt[0],Yt=pt[1],dn=(0,ot.Z)(null),Dn=(0,we.Z)(dn,2),Pn=Dn[0],cn=Dn[1],In=function(Mn,Te){var We=ft==="rtl",xe=Mn+1;if(te){var ke=ut(Mn),Ae=et(ke),je=ke.clientWidth;(We&&Te-Ae>je/2||!We&&Te-Ae<je/2)&&(xe-=.5)}return xe},gn=function(Mn){Yt(Mn),Gt==null||Gt(Mn)},$n=z.useState(!1),An=(0,we.Z)($n,2),En=An[0],qt=An[1],zt=function(){qt(!0),un==null||un()},Tt=function(){qt(!1),rn==null||rn()},Vt=z.useState(null),tn=(0,we.Z)(Vt,2),xn=tn[0],wn=tn[1],mn=function(Mn,Te){var We=In(Te,Mn.pageX);We!==Pn&&(wn(We),cn(null)),Xt==null||Xt(We)},vn=function(Mn){Pe||(wn(null),cn(null),Xt==null||Xt(void 0)),Mn&&(Pt==null||Pt(Mn))},Hn=function(Mn,Te){var We=In(Te,Mn.pageX),xe=!1;oe&&(xe=We===kt),vn(),gn(xe?0:We),cn(xe?We:null)},zn=function(Mn){var Te=Mn.keyCode,We=ft==="rtl",xe=te?.5:1;ne&&(Te===Re.Z.RIGHT&&kt<st&&!We?(gn(kt+xe),Mn.preventDefault()):Te===Re.Z.LEFT&&kt>0&&!We||Te===Re.Z.RIGHT&&kt>0&&We?(gn(kt-xe),Mn.preventDefault()):Te===Re.Z.LEFT&&kt<st&&We&&(gn(kt+xe),Mn.preventDefault())),ln==null||ln(Mn)};z.useEffect(function(){Qt&&!Pe&&De()},[]);var Bt=new Array(st).fill(0).map(function(On,Mn){return z.createElement(Ct,{ref:Rt(Mn),index:Mn,count:st,disabled:Pe,prefixCls:"".concat(Nt,"-star"),allowHalf:te,value:xn===null?kt:xn,onClick:Hn,onHover:mn,key:On||Mn,character:Ce,characterRender:mt,focused:En})}),Jt=he()(Nt,At,(0,Xe.Z)((0,Xe.Z)({},"".concat(Nt,"-disabled"),Pe),"".concat(Nt,"-rtl"),ft==="rtl"));return z.createElement("ul",(0,it.Z)({className:Jt,onMouseLeave:vn,tabIndex:Pe?-1:wt,onFocus:Pe?null:zt,onBlur:Pe?null:Tt,onKeyDown:Pe?null:zn,ref:$t},(0,Ge.Z)(nn,{aria:!0,data:!0,attr:!0})),Bt)}var Ft=z.forwardRef(Ue),vt=Ft,dt=ie(48755),St=ie(25399),Oe=ie(36237),nt=ie(63356),rt=ie(16931),ue=ie(51636);const bt=pe=>{const{componentCls:Me}=pe;return{[`${Me}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:pe.marginXS},"> div":{transition:`all ${pe.motionDurationMid}, outline 0s`,"&:hover":{transform:pe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Oe.unit)(pe.lineWidth)} dashed ${pe.starColor}`,transform:pe.starHoverScale}},"&-first, &-second":{color:pe.starBg,transition:`all ${pe.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Me}-star-first, &-half ${Me}-star-second`]:{opacity:1},[`&-half ${Me}-star-first, &-full ${Me}-star-second`]:{color:"inherit"}}}},Be=pe=>({[`&-rtl${pe.componentCls}`]:{direction:"rtl"}}),tt=pe=>{const{componentCls:Me}=pe;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(pe)),{display:"inline-block",margin:0,padding:0,color:pe.starColor,fontSize:pe.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Me} ${Me}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),bt(pe)),Be(pe))}},Et=pe=>({starColor:pe.yellow6,starSize:pe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:pe.colorFillContent});var ge=(0,rt.I$)("Rate",pe=>{const Me=(0,ue.mergeToken)(pe,{});return[tt(Me)]},Et),de=ie(2171),_e=function(pe,Me){var ze={};for(var Nt in pe)Object.prototype.hasOwnProperty.call(pe,Nt)&&Me.indexOf(Nt)<0&&(ze[Nt]=pe[Nt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Nt=Object.getOwnPropertySymbols(pe);At<Nt.length;At++)Me.indexOf(Nt[At])<0&&Object.prototype.propertyIsEnumerable.call(pe,Nt[At])&&(ze[Nt[At]]=pe[Nt[At]]);return ze},xt=z.forwardRef((pe,Me)=>{const{prefixCls:ze,className:Nt,rootClassName:At,style:Zt,tooltips:Fe,character:Lt=z.createElement($e,null),disabled:st}=pe,ae=_e(pe,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(It,wt)=>{let{index:Qt}=wt;return Fe?z.createElement(St.Z,{title:Fe[Qt]},It):It},{getPrefixCls:ee,direction:oe,rate:se}=z.useContext(dt.E_),ne=ee("rate",ze),[me,Ce,mt]=ge(ne),Pe=Object.assign(Object.assign({},se==null?void 0:se.style),Zt),Ke=z.useContext(de.Z),ft=st!=null?st:Ke;return me(z.createElement(vt,Object.assign({ref:Me,character:Lt,characterRender:te,disabled:ft},ae,{className:he()(Nt,At,Ce,mt,se==null?void 0:se.className),style:Pe,prefixCls:ne,direction:oe})))})},82326:function(an,Kt,ie){"use strict";var z=ie(59301),it=ie(92310),ye=ie.n(it),qe=ie(37463),Ee=ie(2738),Se=ie(75030),Ne=ie(86641),$e=ie(45915),Ie=ie(82855),he=ie(48755),Xe=ie(38406),we=ie(2171),Ot=ie(83397),ot=ie(31756),Re=ie(56553),Ge=ie(24971),He=ie(70045),Ct=ie(57700),Mt=ie(1722),jt=ie(90376),Dt=ie(68525),et=ie(90005),yt=function(St,Oe){var nt={};for(var rt in St)Object.prototype.hasOwnProperty.call(St,rt)&&Oe.indexOf(rt)<0&&(nt[rt]=St[rt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,rt=Object.getOwnPropertySymbols(St);ue<rt.length;ue++)Oe.indexOf(rt[ue])<0&&Object.prototype.propertyIsEnumerable.call(St,rt[ue])&&(nt[rt[ue]]=St[rt[ue]]);return nt};const Ue="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ft=(St,Oe)=>{var nt;const{prefixCls:rt,bordered:ue,className:bt,rootClassName:Be,getPopupContainer:tt,popupClassName:Et,dropdownClassName:ge,listHeight:de=256,placement:_e,listItemHeight:Wt,size:xt,disabled:pe,notFoundContent:Me,status:ze,builtinPlacements:Nt,dropdownMatchSelectWidth:At,popupMatchSelectWidth:Zt,direction:Fe,style:Lt,allowClear:st,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=St,me=yt(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:Ce,getPrefixCls:mt,renderEmpty:Pe,direction:Ke,virtual:ft,popupMatchSelectWidth:It,popupOverflow:wt}=z.useContext(he.E_),Qt=(0,he.dj)("select"),[,Xt]=(0,Ct.ZP)(),Gt=Wt!=null?Wt:Xt==null?void 0:Xt.controlHeight,un=mt("select",rt),rn=mt(),ln=Fe!=null?Fe:Ke,{compactSize:Pt,compactItemClassnames:nn}=(0,He.ri)(un,ln),[Ut,Le]=(0,Ge.Z)("select",ae,ue),ut=(0,Ot.Z)(un),[Rt,$t,De]=(0,jt.Z)(un,ut),Ye=z.useMemo(()=>{const{mode:zn}=St;if(zn!=="combobox")return zn===Ue?"combobox":zn},[St.mode]),pt=Ye==="multiple"||Ye==="tags",kt=(0,et.Z)(St.suffixIcon,St.showArrow),Yt=(nt=Zt!=null?Zt:At)!==null&&nt!==void 0?nt:It,{status:dn,hasFeedback:Dn,isFormItemInput:Pn,feedbackIcon:cn}=z.useContext(Re.aM),In=(0,Ie.F)(dn,ze);let gn;Me!==void 0?gn=Me:Ye==="combobox"?gn=null:gn=(Pe==null?void 0:Pe("Select"))||z.createElement(Xe.Z,{componentName:"Select"});const{suffixIcon:$n,itemIcon:An,removeIcon:En,clearIcon:qt}=(0,Dt.Z)(Object.assign(Object.assign({},me),{multiple:pt,hasFeedback:Dn,feedbackIcon:cn,showSuffixIcon:kt,prefixCls:un,componentName:"Select"})),zt=st===!0?{clearIcon:qt}:st,Tt=(0,Ee.Z)(me,["suffixIcon","itemIcon"]),Vt=ye()(Et||ge,{[`${un}-dropdown-${ln}`]:ln==="rtl"},Be,De,ut,$t),tn=(0,ot.Z)(zn=>{var Bt;return(Bt=xt!=null?xt:Pt)!==null&&Bt!==void 0?Bt:zn}),xn=z.useContext(we.Z),wn=pe!=null?pe:xn,mn=ye()({[`${un}-lg`]:tn==="large",[`${un}-sm`]:tn==="small",[`${un}-rtl`]:ln==="rtl",[`${un}-${Ut}`]:Le,[`${un}-in-form-item`]:Pn},(0,Ie.Z)(un,In,Dn),nn,Qt.className,bt,Be,De,ut,$t),vn=z.useMemo(()=>_e!==void 0?_e:ln==="rtl"?"bottomRight":"bottomLeft",[_e,ln]),[Hn]=(0,Se.Cn)("SelectLike",te==null?void 0:te.zIndex);return Rt(z.createElement(qe.ZP,Object.assign({ref:Oe,virtual:ft,showSearch:Qt.showSearch},Tt,{style:Object.assign(Object.assign({},Qt.style),Lt),dropdownMatchSelectWidth:Yt,transitionName:(0,Ne.m)(rn,"slide-up",ee),builtinPlacements:(0,Mt.Z)(Nt,wt),listHeight:de,listItemHeight:Gt,mode:Ye,prefixCls:un,placement:vn,direction:ln,prefix:ne,suffixIcon:$n,menuItemSelectedIcon:An,removeIcon:En,allowClear:zt,notFoundContent:gn,className:mn,getPopupContainer:tt||Ce,dropdownClassName:Vt,disabled:wn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Hn}),maxCount:pt?se:void 0,tagRender:pt?oe:void 0})))},vt=z.forwardRef(Ft),dt=(0,$e.Z)(vt,"dropdownAlign");vt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ue,vt.Option=qe.Wx,vt.OptGroup=qe.Xo,vt._InternalPanelDoNotUseOrYouWillBeFired=dt,Kt.default=vt},1722:function(an,Kt){"use strict";const ie=it=>{const qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:it==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},qe),{points:["br","tr"],offset:[0,-4]})}};function z(it,ye){return it||ie(ye)}Kt.Z=z},90376:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return rt}});var z=ie(63356),it=ie(56119),ye=ie(16931),qe=ie(51636),Ee=ie(46e3),Se=ie(93873);const Ne=ue=>{const{optionHeight:bt,optionFontSize:Be,optionLineHeight:tt,optionPadding:Et}=ue;return{position:"relative",display:"block",minHeight:bt,padding:Et,color:ue.colorText,fontWeight:"normal",fontSize:Be,lineHeight:tt,boxSizing:"border-box"}};var Ie=ue=>{const{antCls:bt,componentCls:Be}=ue,tt=`${Be}-item`,Et=`&${bt}-slide-up-enter${bt}-slide-up-enter-active`,ge=`&${bt}-slide-up-appear${bt}-slide-up-appear-active`,de=`&${bt}-slide-up-leave${bt}-slide-up-leave-active`,_e=`${Be}-dropdown-placement-`,Wt=`${tt}-option-selected`;return[{[`${Be}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[`
${Et}${_e}bottomLeft,
${ge}${_e}bottomLeft
`]:{animationName:Ee.fJ},[`
${Et}${_e}topLeft,
${ge}${_e}topLeft,
${Et}${_e}topRight,
${ge}${_e}topRight
`]:{animationName:Ee.Qt},[`${de}${_e}bottomLeft`]:{animationName:Ee.Uw},[`
${de}${_e}topLeft,
${de}${_e}topRight
`]:{animationName:Ee.ly},"&-hidden":{display:"none"},[tt]:Object.assign(Object.assign({},Ne(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${tt}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${tt}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${tt}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${tt}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ne(ue)),{color:ue.colorTextDisabled})}),[`${Wt}:has(+ ${Wt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Wt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ee.oN)(ue,"slide-up"),(0,Ee.oN)(ue,"slide-down"),(0,Se.Fm)(ue,"move-up"),(0,Se.Fm)(ue,"move-down")]},he=ie(26743),Xe=ie(36237);function we(ue,bt){const{componentCls:Be,inputPaddingHorizontalBase:tt,borderRadius:Et}=ue,ge=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),de=bt?`${Be}-${bt}`:"";return{[`${Be}-single${de}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${Be}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(ue,!0)),{display:"flex",borderRadius:Et,flex:"1 1 auto",[`${Be}-selection-wrap:after`]:{lineHeight:(0,Xe.unit)(ge)},[`${Be}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Be}-selection-item,
${Be}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Xe.unit)(ge),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Be}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Be}-selection-item:empty:after`,`${Be}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Be}-show-arrow ${Be}-selection-item,
&${Be}-show-arrow ${Be}-selection-search,
&${Be}-show-arrow ${Be}-selection-placeholder
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${Be}-open ${Be}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${Be}-customize-input)`]:{[`${Be}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Xe.unit)(tt)}`,[`${Be}-selection-search-input`]:{height:ge,fontSize:ue.fontSize},"&:after":{lineHeight:(0,Xe.unit)(ge)}}},[`&${Be}-customize-input`]:{[`${Be}-selector`]:{"&:after":{display:"none"},[`${Be}-selection-search`]:{position:"static",width:"100%"},[`${Be}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Xe.unit)(tt)}`,"&:after":{display:"none"}}}}}}}function Ot(ue){const{componentCls:bt}=ue,Be=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[we(ue),we((0,qe.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${bt}-single${bt}-sm`]:{[`&:not(${bt}-customize-input)`]:{[`${bt}-selector`]:{padding:`0 ${(0,Xe.unit)(Be)}`},[`&${bt}-show-arrow ${bt}-selection-search`]:{insetInlineEnd:ue.calc(Be).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[`
&${bt}-show-arrow ${bt}-selection-item,
&${bt}-show-arrow ${bt}-selection-placeholder
`]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},we((0,qe.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const ot=ue=>{const{fontSize:bt,lineHeight:Be,lineWidth:tt,controlHeight:Et,controlHeightSM:ge,controlHeightLG:de,paddingXXS:_e,controlPaddingHorizontal:Wt,zIndexPopupBase:xt,colorText:pe,fontWeightStrong:Me,controlItemBgActive:ze,controlItemBgHover:Nt,colorBgContainer:At,colorFillSecondary:Zt,colorBgContainerDisabled:Fe,colorTextDisabled:Lt,colorPrimaryHover:st,colorPrimary:ae,controlOutline:te}=ue,ee=_e*2,oe=tt*2,se=Math.min(Et-ee,Et-oe),ne=Math.min(ge-ee,ge-oe),me=Math.min(de-ee,de-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(_e/2),zIndexPopup:xt+50,optionSelectedColor:pe,optionSelectedFontWeight:Me,optionSelectedBg:ze,optionActiveBg:Nt,optionPadding:`${(Et-bt*Be)/2}px ${Wt}px`,optionFontSize:bt,optionLineHeight:Be,optionHeight:Et,selectorBg:At,clearBg:At,singleItemHeightLG:de,multipleItemBg:Zt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:me,multipleSelectorBgDisabled:Fe,multipleItemColorDisabled:Lt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:st,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:_e}},Re=(ue,bt)=>{const{componentCls:Be,antCls:tt,controlOutlineWidth:Et}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${bt.borderColor}`,background:ue.selectorBg},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${tt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:bt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:bt.activeBorderColor,boxShadow:`0 0 0 ${(0,Xe.unit)(Et)} ${bt.activeOutlineColor}`,outline:0},[`${Be}-prefix`]:{color:bt.color}}}},Ge=(ue,bt)=>({[`&${ue.componentCls}-status-${bt.status}`]:Object.assign({},Re(ue,bt))}),He=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Re(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ge(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ge(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),Ct=(ue,bt)=>{const{componentCls:Be,antCls:tt}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{background:bt.bg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:bt.color},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${tt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{background:bt.hoverBg},[`${Be}-focused& ${Be}-selector`]:{background:ue.selectorBg,borderColor:bt.activeBorderColor,outline:0}}}},Mt=(ue,bt)=>({[`&${ue.componentCls}-status-${bt.status}`]:Object.assign({},Ct(ue,bt))}),jt=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ct(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),Mt(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),Mt(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),Dt=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),et=(ue,bt)=>{const{componentCls:Be,antCls:tt}=ue;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{borderWidth:`0 0 ${(0,Xe.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:bt.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${tt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:bt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:bt.activeBorderColor,outline:0},[`${Be}-prefix`]:{color:bt.color}}}},yt=(ue,bt)=>({[`&${ue.componentCls}-status-${bt.status}`]:Object.assign({},et(ue,bt))}),Ue=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},et(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),yt(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),yt(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var vt=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},He(ue)),jt(ue)),Dt(ue)),Ue(ue))});const dt=ue=>{const{componentCls:bt}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${bt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${bt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},St=ue=>{const{componentCls:bt}=ue;return{[`${bt}-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"}}}},Oe=ue=>{const{antCls:bt,componentCls:Be,inputPaddingHorizontalBase:tt,iconCls:Et}=ue;return{[Be]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Be}-customize-input) ${Be}-selector`]:Object.assign(Object.assign({},dt(ue)),St(ue)),[`${Be}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${bt}-typography`]:{display:"inline"}}),[`${Be}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${Be}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tt,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[Et]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Be}-suffix)`]:{pointerEvents:"auto"}},[`${Be}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Be}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Be}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${Be}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:tt,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${Be}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${Be}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Be}-has-feedback`]:{[`${Be}-clear`]:{insetInlineEnd:ue.calc(tt).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},nt=ue=>{const{componentCls:bt}=ue;return[{[bt]:{[`&${bt}-in-form-item`]:{width:"100%"}}},Oe(ue),Ot(ue),(0,he.ZP)(ue),Ie(ue),{[`${bt}-rtl`]:{direction:"rtl"}},(0,it.c)(ue,{borderElCls:`${bt}-selector`,focusElCls:`${bt}-focused`})]};var rt=(0,ye.I$)("Select",(ue,bt)=>{let{rootPrefixCls:Be}=bt;const tt=(0,qe.mergeToken)(ue,{rootPrefixCls:Be,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[nt(tt),vt(tt)]},ot,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(an,Kt,ie){"use strict";ie.d(Kt,{_z:function(){return Se},gp:function(){return qe}});var z=ie(36237),it=ie(63356),ye=ie(51636);const qe=he=>{const{multipleSelectItemHeight:Xe,paddingXXS:we,lineWidth:Ot,INTERNAL_FIXED_ITEM_MARGIN:ot}=he,Re=he.max(he.calc(we).sub(Ot).equal(),0),Ge=he.max(he.calc(Re).sub(ot).equal(),0);return{basePadding:Re,containerPadding:Ge,itemHeight:(0,z.unit)(Xe),itemLineHeight:(0,z.unit)(he.calc(Xe).sub(he.calc(he.lineWidth).mul(2)).equal())}},Ee=he=>{const{multipleSelectItemHeight:Xe,selectHeight:we,lineWidth:Ot}=he;return he.calc(we).sub(Xe).div(2).sub(Ot).equal()},Se=he=>{const{componentCls:Xe,iconCls:we,borderRadiusSM:Ot,motionDurationSlow:ot,paddingXS:Re,multipleItemColorDisabled:Ge,multipleItemBorderColorDisabled:He,colorIcon:Ct,colorIconHover:Mt,INTERNAL_FIXED_ITEM_MARGIN:jt}=he;return{[`${Xe}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Xe}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:jt,borderRadius:Ot,cursor:"default",transition:`font-size ${ot}, line-height ${ot}, height ${ot}`,marginInlineEnd:he.calc(jt).mul(2).equal(),paddingInlineStart:Re,paddingInlineEnd:he.calc(Re).div(2).equal(),[`${Xe}-disabled&`]:{color:Ge,borderColor:He,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Re).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,it.Ro)()),{display:"inline-flex",alignItems:"center",color:Ct,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${we}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Mt}})}}}},Ne=(he,Xe)=>{const{componentCls:we,INTERNAL_FIXED_ITEM_MARGIN:Ot}=he,ot=`${we}-selection-overflow`,Re=he.multipleSelectItemHeight,Ge=Ee(he),He=Xe?`${we}-${Xe}`:"",Ct=qe(he);return{[`${we}-multiple${He}`]:Object.assign(Object.assign({},Se(he)),{[`${we}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ct.basePadding,paddingBlock:Ct.containerPadding,borderRadius:he.borderRadius,[`${we}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Ot)} 0`,lineHeight:(0,z.unit)(Re),visibility:"hidden",content:'"\\a0"'}},[`${we}-selection-item`]:{height:Ct.itemHeight,lineHeight:(0,z.unit)(Ct.itemLineHeight)},[`${we}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Re),marginBlock:Ot}},[`${we}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ct.basePadding).equal()},[`${ot}-item + ${ot}-item,
${we}-prefix + ${we}-selection-wrap
`]:{[`${we}-selection-search`]:{marginInlineStart:0},[`${we}-selection-placeholder`]:{insetInlineStart:0}},[`${ot}-item-suffix`]:{minHeight:Ct.itemHeight,marginBlock:Ot},[`${we}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ge).equal(),"\n &-input,\n &-mirror\n ":{height:Re,fontFamily:he.fontFamily,lineHeight:(0,z.unit)(Re),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"}},[`${we}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ct.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function $e(he,Xe){const{componentCls:we}=he,Ot=Xe?`${we}-${Xe}`:"",ot={[`${we}-multiple${Ot}`]:{fontSize:he.fontSize,[`${we}-selector`]:{[`${we}-show-search&`]:{cursor:"text"}},[`
&${we}-show-arrow ${we}-selector,
&${we}-allow-clear ${we}-selector
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Ne(he,Xe),ot]}const Ie=he=>{const{componentCls:Xe}=he,we=(0,ye.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),Ot=(0,ye.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[$e(he),$e(we,"sm"),{[`${Xe}-multiple${Xe}-sm`]:{[`${Xe}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Xe}-selection-search`]:{marginInlineStart:2}}},$e(Ot,"lg")]};Kt.ZP=Ie},68525:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});var z=ie(59301),it=ie(40001),ye=ie(19248),qe=ie(99267),Ee=ie(84105),Se=ie(58617),Ne=ie(47472);function $e(Ie){let{suffixIcon:he,clearIcon:Xe,menuItemSelectedIcon:we,removeIcon:Ot,loading:ot,multiple:Re,hasFeedback:Ge,prefixCls:He,showSuffixIcon:Ct,feedbackIcon:Mt,showArrow:jt,componentName:Dt}=Ie;const et=Xe!=null?Xe:z.createElement(ye.Z,null),yt=dt=>he===null&&!Ge&&!jt?null:z.createElement(z.Fragment,null,Ct!==!1&&dt,Ge&&Mt);let Ue=null;if(he!==void 0)Ue=yt(he);else if(ot)Ue=yt(z.createElement(Se.Z,{spin:!0}));else{const dt=`${He}-suffix`;Ue=St=>{let{open:Oe,showSearch:nt}=St;return yt(Oe&&nt?z.createElement(Ne.Z,{className:dt}):z.createElement(Ee.Z,{className:dt}))}}let Ft=null;we!==void 0?Ft=we:Re?Ft=z.createElement(it.Z,null):Ft=null;let vt=null;return Ot!==void 0?vt=Ot:vt=z.createElement(qe.Z,null),{clearIcon:et,suffixIcon:Ue,itemIcon:Ft,removeIcon:vt}}},90005:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return z}});function z(it,ye){return ye!==void 0?ye:it!==null}},11938:function(an,Kt,ie){"use strict";ie.d(Kt,{default:function(){return St}});var z=ie(59301),it=ie(40192),ye=ie(22703),qe=ie(92310),Ee=ie.n(qe),Se=ie(26112),Ne=ie(48755),$e=ie(458),he=Oe=>{const{value:nt,formatter:rt,precision:ue,decimalSeparator:bt,groupSeparator:Be="",prefixCls:tt}=Oe;let Et;if(typeof rt=="function")Et=rt(nt);else{const ge=String(nt),de=ge.match(/^(-?)(\d*)(\.(\d+))?$/);if(!de||ge==="-")Et=ge;else{const _e=de[1];let Wt=de[2]||"0",xt=de[4]||"";Wt=Wt.replace(/\B(?=(\d{3})+(?!\d))/g,Be),typeof ue=="number"&&(xt=xt.padEnd(ue,"0").slice(0,ue>0?ue:0)),xt&&(xt=`${bt}${xt}`),Et=[z.createElement("span",{key:"int",className:`${tt}-content-value-int`},_e,Wt),xt&&z.createElement("span",{key:"decimal",className:`${tt}-content-value-decimal`},xt)]}}return z.createElement("span",{className:`${tt}-content-value`},Et)},Xe=ie(63356),we=ie(16931),Ot=ie(51636);const ot=Oe=>{const{componentCls:nt,marginXXS:rt,padding:ue,colorTextDescription:bt,titleFontSize:Be,colorTextHeading:tt,contentFontSize:Et,fontFamily:ge}=Oe;return{[nt]:Object.assign(Object.assign({},(0,Xe.Wf)(Oe)),{[`${nt}-title`]:{marginBottom:rt,color:bt,fontSize:Be},[`${nt}-skeleton`]:{paddingTop:ue},[`${nt}-content`]:{color:tt,fontSize:Et,fontFamily:ge,[`${nt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${nt}-content-prefix, ${nt}-content-suffix`]:{display:"inline-block"},[`${nt}-content-prefix`]:{marginInlineEnd:rt},[`${nt}-content-suffix`]:{marginInlineStart:rt}}})}},Re=Oe=>{const{fontSizeHeading3:nt,fontSize:rt}=Oe;return{titleFontSize:rt,contentFontSize:nt}};var Ge=(0,we.I$)("Statistic",Oe=>{const nt=(0,Ot.mergeToken)(Oe,{});return[ot(nt)]},Re),He=function(Oe,nt){var rt={};for(var ue in Oe)Object.prototype.hasOwnProperty.call(Oe,ue)&&nt.indexOf(ue)<0&&(rt[ue]=Oe[ue]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ue=Object.getOwnPropertySymbols(Oe);bt<ue.length;bt++)nt.indexOf(ue[bt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ue[bt])&&(rt[ue[bt]]=Oe[ue[bt]]);return rt},Mt=Oe=>{const{prefixCls:nt,className:rt,rootClassName:ue,style:bt,valueStyle:Be,value:tt=0,title:Et,valueRender:ge,prefix:de,suffix:_e,loading:Wt=!1,formatter:xt,precision:pe,decimalSeparator:Me=".",groupSeparator:ze=",",onMouseEnter:Nt,onMouseLeave:At}=Oe,Zt=He(Oe,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Fe,direction:Lt,className:st,style:ae}=(0,Ne.dj)("statistic"),te=Fe("statistic",nt),[ee,oe,se]=Ge(te),ne=z.createElement(he,{decimalSeparator:Me,groupSeparator:ze,prefixCls:te,formatter:xt,precision:pe,value:tt}),me=Ee()(te,{[`${te}-rtl`]:Lt==="rtl"},st,rt,ue,oe,se),Ce=(0,Se.Z)(Zt,{aria:!0,data:!0});return ee(z.createElement("div",Object.assign({},Ce,{className:me,style:Object.assign(Object.assign({},ae),bt),onMouseEnter:Nt,onMouseLeave:At}),Et&&z.createElement("div",{className:`${te}-title`},Et),z.createElement($e.Z,{paragraph:!1,loading:Wt,className:`${te}-skeleton`},z.createElement("div",{style:Be,className:`${te}-content`},de&&z.createElement("span",{className:`${te}-content-prefix`},de),ge?ge(ne):ne,_e&&z.createElement("span",{className:`${te}-content-suffix`},_e)))))};const jt=[["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 Dt(Oe,nt){let rt=Oe;const ue=/\[[^\]]*]/g,bt=(nt.match(ue)||[]).map(ge=>ge.slice(1,-1)),Be=nt.replace(ue,"[]"),tt=jt.reduce((ge,de)=>{let[_e,Wt]=de;if(ge.includes(_e)){const xt=Math.floor(rt/Wt);return rt-=xt*Wt,ge.replace(new RegExp(`${_e}+`,"g"),pe=>{const Me=pe.length;return xt.toString().padStart(Me,"0")})}return ge},Be);let Et=0;return tt.replace(ue,()=>{const ge=bt[Et];return Et+=1,ge})}function et(Oe,nt){const{format:rt=""}=nt,ue=new Date(Oe).getTime(),bt=Date.now(),Be=Math.max(ue-bt,0);return Dt(Be,rt)}var yt=function(Oe,nt){var rt={};for(var ue in Oe)Object.prototype.hasOwnProperty.call(Oe,ue)&&nt.indexOf(ue)<0&&(rt[ue]=Oe[ue]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ue=Object.getOwnPropertySymbols(Oe);bt<ue.length;bt++)nt.indexOf(ue[bt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ue[bt])&&(rt[ue[bt]]=Oe[ue[bt]]);return rt};const Ue=1e3/30;function Ft(Oe){return new Date(Oe).getTime()}const vt=Oe=>{const{value:nt,format:rt="HH:mm:ss",onChange:ue,onFinish:bt}=Oe,Be=yt(Oe,["value","format","onChange","onFinish"]),tt=(0,it.Z)(),Et=z.useRef(null),ge=()=>{bt==null||bt(),Et.current&&(clearInterval(Et.current),Et.current=null)},de=()=>{const xt=Ft(nt);xt>=Date.now()&&(Et.current=setInterval(()=>{tt(),ue==null||ue(xt-Date.now()),xt<Date.now()&&ge()},Ue))};z.useEffect(()=>(de(),()=>{Et.current&&(clearInterval(Et.current),Et.current=null)}),[nt]);const _e=(xt,pe)=>et(xt,Object.assign(Object.assign({},pe),{format:rt})),Wt=xt=>(0,ye.Tm)(xt,{title:void 0});return z.createElement(Mt,Object.assign({},Be,{value:nt,valueRender:Wt,formatter:_e}))};var dt=z.memo(vt);Mt.Countdown=dt;var St=Mt},58755:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return bt}});var z=ie(59301),it=ie(58617),ye=ie(92310),qe=ie.n(ye),Ee=ie(54476),Se=ie(20068),Ne=ie(42978),$e=ie(75931),Ie=ie(18929),he=ie(10228),Xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],we=z.forwardRef(function(Be,tt){var Et,ge=Be.prefixCls,de=ge===void 0?"rc-switch":ge,_e=Be.className,Wt=Be.checked,xt=Be.defaultChecked,pe=Be.disabled,Me=Be.loadingIcon,ze=Be.checkedChildren,Nt=Be.unCheckedChildren,At=Be.onClick,Zt=Be.onChange,Fe=Be.onKeyDown,Lt=(0,$e.Z)(Be,Xe),st=(0,Ie.Z)(!1,{value:Wt,defaultValue:xt}),ae=(0,Ne.Z)(st,2),te=ae[0],ee=ae[1];function oe(Ce,mt){var Pe=te;return pe||(Pe=Ce,ee(Pe),Zt==null||Zt(Pe,mt)),Pe}function se(Ce){Ce.which===he.Z.LEFT?oe(!1,Ce):Ce.which===he.Z.RIGHT&&oe(!0,Ce),Fe==null||Fe(Ce)}function ne(Ce){var mt=oe(!te,Ce);At==null||At(mt,Ce)}var me=qe()(de,_e,(Et={},(0,Se.Z)(Et,"".concat(de,"-checked"),te),(0,Se.Z)(Et,"".concat(de,"-disabled"),pe),Et));return z.createElement("button",(0,Ee.Z)({},Lt,{type:"button",role:"switch","aria-checked":te,disabled:pe,className:me,ref:tt,onKeyDown:se,onClick:ne}),Me,z.createElement("span",{className:"".concat(de,"-inner")},z.createElement("span",{className:"".concat(de,"-inner-checked")},ze),z.createElement("span",{className:"".concat(de,"-inner-unchecked")},Nt)))});we.displayName="Switch";var Ot=we,ot=ie(12919),Re=ie(48755),Ge=ie(2171),He=ie(31756),Ct=ie(36237),Mt=ie(17835),jt=ie(63356),Dt=ie(16931),et=ie(51636);const yt=Be=>{const{componentCls:tt,trackHeightSM:Et,trackPadding:ge,trackMinWidthSM:de,innerMinMarginSM:_e,innerMaxMarginSM:Wt,handleSizeSM:xt,calc:pe}=Be,Me=`${tt}-inner`,ze=(0,Ct.unit)(pe(xt).add(pe(ge).mul(2)).equal()),Nt=(0,Ct.unit)(pe(Wt).mul(2).equal());return{[tt]:{[`&${tt}-small`]:{minWidth:de,height:Et,lineHeight:(0,Ct.unit)(Et),[`${tt}-inner`]:{paddingInlineStart:Wt,paddingInlineEnd:_e,[`${Me}-checked, ${Me}-unchecked`]:{minHeight:Et},[`${Me}-checked`]:{marginInlineStart:`calc(-100% + ${ze} - ${Nt})`,marginInlineEnd:`calc(100% - ${ze} + ${Nt})`},[`${Me}-unchecked`]:{marginTop:pe(Et).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${tt}-handle`]:{width:xt,height:xt},[`${tt}-loading-icon`]:{top:pe(pe(xt).sub(Be.switchLoadingIconSize)).div(2).equal(),fontSize:Be.switchLoadingIconSize},[`&${tt}-checked`]:{[`${tt}-inner`]:{paddingInlineStart:_e,paddingInlineEnd:Wt,[`${Me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Me}-unchecked`]:{marginInlineStart:`calc(100% - ${ze} + ${Nt})`,marginInlineEnd:`calc(-100% + ${ze} - ${Nt})`}},[`${tt}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ct.unit)(pe(xt).add(ge).equal())})`}},[`&:not(${tt}-disabled):active`]:{[`&:not(${tt}-checked) ${Me}`]:{[`${Me}-unchecked`]:{marginInlineStart:pe(Be.marginXXS).div(2).equal(),marginInlineEnd:pe(Be.marginXXS).mul(-1).div(2).equal()}},[`&${tt}-checked ${Me}`]:{[`${Me}-checked`]:{marginInlineStart:pe(Be.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:pe(Be.marginXXS).div(2).equal()}}}}}}},Ue=Be=>{const{componentCls:tt,handleSize:Et,calc:ge}=Be;return{[tt]:{[`${tt}-loading-icon${Be.iconCls}`]:{position:"relative",top:ge(ge(Et).sub(Be.fontSize)).div(2).equal(),color:Be.switchLoadingIconColor,verticalAlign:"top"},[`&${tt}-checked ${tt}-loading-icon`]:{color:Be.switchColor}}}},Ft=Be=>{const{componentCls:tt,trackPadding:Et,handleBg:ge,handleShadow:de,handleSize:_e,calc:Wt}=Be,xt=`${tt}-handle`;return{[tt]:{[xt]:{position:"absolute",top:Et,insetInlineStart:Et,width:_e,height:_e,transition:`all ${Be.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ge,borderRadius:Wt(_e).div(2).equal(),boxShadow:de,transition:`all ${Be.switchDuration} ease-in-out`,content:'""'}},[`&${tt}-checked ${xt}`]:{insetInlineStart:`calc(100% - ${(0,Ct.unit)(Wt(_e).add(Et).equal())})`},[`&:not(${tt}-disabled):active`]:{[`${xt}::before`]:{insetInlineEnd:Be.switchHandleActiveInset,insetInlineStart:0},[`&${tt}-checked ${xt}::before`]:{insetInlineEnd:0,insetInlineStart:Be.switchHandleActiveInset}}}}},vt=Be=>{const{componentCls:tt,trackHeight:Et,trackPadding:ge,innerMinMargin:de,innerMaxMargin:_e,handleSize:Wt,calc:xt}=Be,pe=`${tt}-inner`,Me=(0,Ct.unit)(xt(Wt).add(xt(ge).mul(2)).equal()),ze=(0,Ct.unit)(xt(_e).mul(2).equal());return{[tt]:{[pe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:_e,paddingInlineEnd:de,transition:`padding-inline-start ${Be.switchDuration} ease-in-out, padding-inline-end ${Be.switchDuration} ease-in-out`,[`${pe}-checked, ${pe}-unchecked`]:{display:"block",color:Be.colorTextLightSolid,fontSize:Be.fontSizeSM,transition:`margin-inline-start ${Be.switchDuration} ease-in-out, margin-inline-end ${Be.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Et},[`${pe}-checked`]:{marginInlineStart:`calc(-100% + ${Me} - ${ze})`,marginInlineEnd:`calc(100% - ${Me} + ${ze})`},[`${pe}-unchecked`]:{marginTop:xt(Et).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${tt}-checked ${pe}`]:{paddingInlineStart:de,paddingInlineEnd:_e,[`${pe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pe}-unchecked`]:{marginInlineStart:`calc(100% - ${Me} + ${ze})`,marginInlineEnd:`calc(-100% + ${Me} - ${ze})`}},[`&:not(${tt}-disabled):active`]:{[`&:not(${tt}-checked) ${pe}`]:{[`${pe}-unchecked`]:{marginInlineStart:xt(ge).mul(2).equal(),marginInlineEnd:xt(ge).mul(-1).mul(2).equal()}},[`&${tt}-checked ${pe}`]:{[`${pe}-checked`]:{marginInlineStart:xt(ge).mul(-1).mul(2).equal(),marginInlineEnd:xt(ge).mul(2).equal()}}}}}},dt=Be=>{const{componentCls:tt,trackHeight:Et,trackMinWidth:ge}=Be;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,jt.Wf)(Be)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ge,height:Et,lineHeight:(0,Ct.unit)(Et),verticalAlign:"middle",background:Be.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Be.motionDurationMid}`,userSelect:"none",[`&:hover:not(${tt}-disabled)`]:{background:Be.colorTextTertiary}}),(0,jt.Qy)(Be)),{[`&${tt}-checked`]:{background:Be.switchColor,[`&:hover:not(${tt}-disabled)`]:{background:Be.colorPrimaryHover}},[`&${tt}-loading, &${tt}-disabled`]:{cursor:"not-allowed",opacity:Be.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${tt}-rtl`]:{direction:"rtl"}})}},St=Be=>{const{fontSize:tt,lineHeight:Et,controlHeight:ge,colorWhite:de}=Be,_e=tt*Et,Wt=ge/2,xt=2,pe=_e-xt*2,Me=Wt-xt*2;return{trackHeight:_e,trackHeightSM:Wt,trackMinWidth:pe*2+xt*4,trackMinWidthSM:Me*2+xt*2,trackPadding:xt,handleBg:de,handleSize:pe,handleSizeSM:Me,handleShadow:`0 2px 4px 0 ${new Mt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:pe/2,innerMaxMargin:pe+xt+xt*2,innerMinMarginSM:Me/2,innerMaxMarginSM:Me+xt+xt*2}};var Oe=(0,Dt.I$)("Switch",Be=>{const tt=(0,et.mergeToken)(Be,{switchDuration:Be.motionDurationMid,switchColor:Be.colorPrimary,switchDisabledOpacity:Be.opacityLoading,switchLoadingIconSize:Be.calc(Be.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Be.opacityLoading})`,switchHandleActiveInset:"-30%"});return[dt(tt),vt(tt),Ft(tt),Ue(tt),yt(tt)]},St),nt=function(Be,tt){var Et={};for(var ge in Be)Object.prototype.hasOwnProperty.call(Be,ge)&&tt.indexOf(ge)<0&&(Et[ge]=Be[ge]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ge=Object.getOwnPropertySymbols(Be);de<ge.length;de++)tt.indexOf(ge[de])<0&&Object.prototype.propertyIsEnumerable.call(Be,ge[de])&&(Et[ge[de]]=Be[ge[de]]);return Et};const ue=z.forwardRef((Be,tt)=>{const{prefixCls:Et,size:ge,disabled:de,loading:_e,className:Wt,rootClassName:xt,style:pe,checked:Me,value:ze,defaultChecked:Nt,defaultValue:At,onChange:Zt}=Be,Fe=nt(Be,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Lt,st]=(0,Ie.Z)(!1,{value:Me!=null?Me:ze,defaultValue:Nt!=null?Nt:At}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Re.E_),oe=z.useContext(Ge.Z),se=(de!=null?de:oe)||_e,ne=ae("switch",Et),me=z.createElement("div",{className:`${ne}-handle`},_e&&z.createElement(it.Z,{className:`${ne}-loading-icon`})),[Ce,mt,Pe]=Oe(ne),Ke=(0,He.Z)(ge),ft=qe()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ke==="small",[`${ne}-loading`]:_e,[`${ne}-rtl`]:te==="rtl"},Wt,xt,mt,Pe),It=Object.assign(Object.assign({},ee==null?void 0:ee.style),pe),wt=function(){st(arguments.length<=0?void 0:arguments[0]),Zt==null||Zt.apply(void 0,arguments)};return Ce(z.createElement(ot.Z,{component:"Switch"},z.createElement(Ot,Object.assign({},Fe,{checked:Lt,onChange:wt,prefixCls:ne,className:ft,style:It,disabled:se,ref:tt,loadingIcon:me}))))});ue.__ANT_SWITCH=!0;var bt=ue},96599:function(an,Kt,ie){"use strict";ie.d(Kt,{default:function(){return rt}});var z=ie(59301),it=ie(92310),ye=ie.n(it),qe=ie(2738),Ee=ie(29509),Se=ie(78776),Ne=ie(22703),$e=ie(12919),Ie=ie(48755),he=ie(36237),Xe=ie(17835),we=ie(63356),Ot=ie(51636),ot=ie(16931);const Re=ue=>{const{paddingXXS:bt,lineWidth:Be,tagPaddingHorizontal:tt,componentCls:Et,calc:ge}=ue,de=ge(tt).sub(Be).equal(),_e=ge(bt).sub(Be).equal();return{[Et]:Object.assign(Object.assign({},(0,we.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:de,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,he.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Et}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Et}-close-icon`]:{marginInlineStart:_e,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Et}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Et}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:de}}),[`${Et}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ge=ue=>{const{lineWidth:bt,fontSizeIcon:Be,calc:tt}=ue,Et=ue.fontSizeSM;return(0,Ot.mergeToken)(ue,{tagFontSize:Et,tagLineHeight:(0,he.unit)(tt(ue.lineHeightSM).mul(Et).equal()),tagIconSize:tt(Be).sub(tt(bt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},He=ue=>({defaultBg:new Xe.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var Ct=(0,ot.I$)("Tag",ue=>{const bt=Ge(ue);return Re(bt)},He),Mt=function(ue,bt){var Be={};for(var tt in ue)Object.prototype.hasOwnProperty.call(ue,tt)&&bt.indexOf(tt)<0&&(Be[tt]=ue[tt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,tt=Object.getOwnPropertySymbols(ue);Et<tt.length;Et++)bt.indexOf(tt[Et])<0&&Object.prototype.propertyIsEnumerable.call(ue,tt[Et])&&(Be[tt[Et]]=ue[tt[Et]]);return Be},Dt=z.forwardRef((ue,bt)=>{const{prefixCls:Be,style:tt,className:Et,checked:ge,onChange:de,onClick:_e}=ue,Wt=Mt(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:xt,tag:pe}=z.useContext(Ie.E_),Me=Lt=>{de==null||de(!ge),_e==null||_e(Lt)},ze=xt("tag",Be),[Nt,At,Zt]=Ct(ze),Fe=ye()(ze,`${ze}-checkable`,{[`${ze}-checkable-checked`]:ge},pe==null?void 0:pe.className,Et,At,Zt);return Nt(z.createElement("span",Object.assign({},Wt,{ref:bt,style:Object.assign(Object.assign({},tt),pe==null?void 0:pe.style),className:Fe,onClick:Me})))}),et=ie(93427);const yt=ue=>(0,et.Z)(ue,(bt,Be)=>{let{textColor:tt,lightBorderColor:Et,lightColor:ge,darkColor:de}=Be;return{[`${ue.componentCls}${ue.componentCls}-${bt}`]:{color:tt,background:ge,borderColor:Et,"&-inverse":{color:ue.colorTextLightSolid,background:de,borderColor:de},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ue=(0,ot.bk)(["Tag","preset"],ue=>{const bt=Ge(ue);return yt(bt)},He);function Ft(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const vt=(ue,bt,Be)=>{const tt=Ft(Be);return{[`${ue.componentCls}${ue.componentCls}-${bt}`]:{color:ue[`color${Be}`],background:ue[`color${tt}Bg`],borderColor:ue[`color${tt}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var dt=(0,ot.bk)(["Tag","status"],ue=>{const bt=Ge(ue);return[vt(bt,"success","Success"),vt(bt,"processing","Info"),vt(bt,"error","Error"),vt(bt,"warning","Warning")]},He),St=function(ue,bt){var Be={};for(var tt in ue)Object.prototype.hasOwnProperty.call(ue,tt)&&bt.indexOf(tt)<0&&(Be[tt]=ue[tt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,tt=Object.getOwnPropertySymbols(ue);Et<tt.length;Et++)bt.indexOf(tt[Et])<0&&Object.prototype.propertyIsEnumerable.call(ue,tt[Et])&&(Be[tt[Et]]=ue[tt[Et]]);return Be};const nt=z.forwardRef((ue,bt)=>{const{prefixCls:Be,className:tt,rootClassName:Et,style:ge,children:de,icon:_e,color:Wt,onClose:xt,bordered:pe=!0,visible:Me}=ue,ze=St(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Nt,direction:At,tag:Zt}=z.useContext(Ie.E_),[Fe,Lt]=z.useState(!0),st=(0,qe.Z)(ze,["closeIcon","closable"]);z.useEffect(()=>{Me!==void 0&&Lt(Me)},[Me]);const ae=(0,Ee.o2)(Wt),te=(0,Ee.yT)(Wt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Wt&&!ee?Wt:void 0},Zt==null?void 0:Zt.style),ge),se=Nt("tag",Be),[ne,me,Ce]=Ct(se),mt=ye()(se,Zt==null?void 0:Zt.className,{[`${se}-${Wt}`]:ee,[`${se}-has-color`]:Wt&&!ee,[`${se}-hidden`]:!Fe,[`${se}-rtl`]:At==="rtl",[`${se}-borderless`]:!pe},tt,Et,me,Ce),Pe=Xt=>{Xt.stopPropagation(),xt==null||xt(Xt),!Xt.defaultPrevented&&Lt(!1)},[,Ke]=(0,Se.Z)((0,Se.w)(ue),(0,Se.w)(Zt),{closable:!1,closeIconRender:Xt=>{const Gt=z.createElement("span",{className:`${se}-close-icon`,onClick:Pe},Xt);return(0,Ne.wm)(Xt,Gt,un=>({onClick:rn=>{var ln;(ln=un==null?void 0:un.onClick)===null||ln===void 0||ln.call(un,rn),Pe(rn)},className:ye()(un==null?void 0:un.className,`${se}-close-icon`)}))}}),ft=typeof ze.onClick=="function"||de&&de.type==="a",It=_e||null,wt=It?z.createElement(z.Fragment,null,It,de&&z.createElement("span",null,de)):de,Qt=z.createElement("span",Object.assign({},st,{ref:bt,className:mt,style:oe}),wt,Ke,ae&&z.createElement(Ue,{key:"preset",prefixCls:se}),te&&z.createElement(dt,{key:"status",prefixCls:se}));return ne(ft?z.createElement($e.Z,{component:"Tag"},Qt):Qt)});nt.CheckableTag=Dt;var rt=nt},94968:function(an,Kt,ie){"use strict";ie.d(Kt,{default:function(){return je}});var z=ie(59301),it=ie(94480),ye=ie(4676),qe=ie(92310),Ee=ie.n(qe),Se=ie(54476),Ne=ie(67732),$e=ie(83652),Ie=ie(31226),he=ie(42403),Xe=ie(158),we=ie(20068),Ot=ie(33885),ot=ie(75931),Re=ie(76190),Ge=ie(75044),He=ie(3202),Ct=ie(26112),Mt=ie(48736),jt=function(be,Je){if(be&&Je){var lt=Array.isArray(Je)?Je:Je.split(","),gt=be.name||"",at=be.type||"",Ze=at.replace(/\/.*$/,"");return lt.some(function(Ve){var ct=Ve.trim();if(/^\*(\/\*)?$/.test(Ve))return!0;if(ct.charAt(0)==="."){var sn=gt.toLowerCase(),en=ct.toLowerCase(),on=[en];return(en===".jpg"||en===".jpeg")&&(on=[".jpg",".jpeg"]),on.some(function(Fn){return sn.endsWith(Fn)})}return/\/\*$/.test(ct)?Ze===ct.replace(/\/.*$/,""):at===ct?!0:/^\w+$/.test(ct)?((0,Mt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ct,"'.Skip for check.")),!0):!1})}return!0};function Dt(be,Je){var lt="cannot ".concat(be.method," ").concat(be.action," ").concat(Je.status,"'"),gt=new Error(lt);return gt.status=Je.status,gt.method=be.method,gt.url=be.action,gt}function et(be){var Je=be.responseText||be.response;if(!Je)return Je;try{return JSON.parse(Je)}catch(lt){return Je}}function yt(be){var Je=new XMLHttpRequest;be.onProgress&&Je.upload&&(Je.upload.onprogress=function(Ze){Ze.total>0&&(Ze.percent=Ze.loaded/Ze.total*100),be.onProgress(Ze)});var lt=new FormData;be.data&&Object.keys(be.data).forEach(function(at){var Ze=be.data[at];if(Array.isArray(Ze)){Ze.forEach(function(Ve){lt.append("".concat(at,"[]"),Ve)});return}lt.append(at,Ze)}),be.file instanceof Blob?lt.append(be.filename,be.file,be.file.name):lt.append(be.filename,be.file),Je.onerror=function(Ze){be.onError(Ze)},Je.onload=function(){return Je.status<200||Je.status>=300?be.onError(Dt(be,Je),et(Je)):be.onSuccess(et(Je),Je)},Je.open(be.method,be.action,!0),be.withCredentials&&"withCredentials"in Je&&(Je.withCredentials=!0);var gt=be.headers||{};return gt["X-Requested-With"]!==null&&Je.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(gt).forEach(function(at){gt[at]!==null&&Je.setRequestHeader(at,gt[at])}),Je.send(lt),{abort:function(){Je.abort()}}}var Ue=function(){var be=(0,He.Z)((0,Ge.Z)().mark(function Je(lt,gt){var at,Ze,Ve,ct,sn,en,on,Fn;return(0,Ge.Z)().wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:en=function(){return en=(0,He.Z)((0,Ge.Z)().mark(function Bn(Nn){return(0,Ge.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qn.abrupt("return",new Promise(function(Xn){Nn.file(function(Jn){gt(Jn)?(Nn.fullPath&&!Jn.webkitRelativePath&&(Object.defineProperties(Jn,{webkitRelativePath:{writable:!0}}),Jn.webkitRelativePath=Nn.fullPath.replace(/^\//,""),Object.defineProperties(Jn,{webkitRelativePath:{writable:!1}})),Xn(Jn)):Xn(null)})}));case 1:case"end":return qn.stop()}},Bn)})),en.apply(this,arguments)},sn=function(Bn){return en.apply(this,arguments)},ct=function(){return ct=(0,He.Z)((0,Ge.Z)().mark(function Bn(Nn){var Gn,qn,Xn,Jn,kn;return(0,Ge.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:Gn=Nn.createReader(),qn=[];case 2:return _n.next=5,new Promise(function(dr){Gn.readEntries(dr,function(){return dr([])})});case 5:if(Xn=_n.sent,Jn=Xn.length,Jn){_n.next=9;break}return _n.abrupt("break",12);case 9:for(kn=0;kn<Jn;kn++)qn.push(Xn[kn]);_n.next=2;break;case 12:return _n.abrupt("return",qn);case 13:case"end":return _n.stop()}},Bn)})),ct.apply(this,arguments)},Ve=function(Bn){return ct.apply(this,arguments)},at=[],Ze=[],lt.forEach(function(Rn){return Ze.push(Rn.webkitGetAsEntry())}),on=function(){var Rn=(0,He.Z)((0,Ge.Z)().mark(function Bn(Nn,Gn){var qn,Xn;return(0,Ge.Z)().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:if(Nn){kn.next=2;break}return kn.abrupt("return");case 2:if(Nn.path=Gn||"",!Nn.isFile){kn.next=10;break}return kn.next=6,sn(Nn);case 6:qn=kn.sent,qn&&at.push(qn),kn.next=15;break;case 10:if(!Nn.isDirectory){kn.next=15;break}return kn.next=13,Ve(Nn);case 13:Xn=kn.sent,Ze.push.apply(Ze,(0,it.Z)(Xn));case 15:case"end":return kn.stop()}},Bn)}));return function(Nn,Gn){return Rn.apply(this,arguments)}}(),Fn=0;case 9:if(!(Fn<Ze.length)){Un.next=15;break}return Un.next=12,on(Ze[Fn]);case 12:Fn++,Un.next=9;break;case 15:return Un.abrupt("return",at);case 16:case"end":return Un.stop()}},Je)}));return function(lt,gt){return be.apply(this,arguments)}}(),Ft=Ue,vt=+new Date,dt=0;function St(){return"rc-upload-".concat(vt,"-").concat(++dt)}var Oe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],nt=function(be){(0,he.Z)(lt,be);var Je=(0,Xe.Z)(lt);function lt(){var gt;(0,Ne.Z)(this,lt);for(var at=arguments.length,Ze=new Array(at),Ve=0;Ve<at;Ve++)Ze[Ve]=arguments[Ve];return gt=Je.call.apply(Je,[this].concat(Ze)),(0,we.Z)((0,Ie.Z)(gt),"state",{uid:St()}),(0,we.Z)((0,Ie.Z)(gt),"reqs",{}),(0,we.Z)((0,Ie.Z)(gt),"fileInput",void 0),(0,we.Z)((0,Ie.Z)(gt),"_isMounted",void 0),(0,we.Z)((0,Ie.Z)(gt),"onChange",function(ct){var sn=gt.props,en=sn.accept,on=sn.directory,Fn=ct.target.files,Wn=(0,it.Z)(Fn).filter(function(Un){return!on||jt(Un,en)});gt.uploadFiles(Wn),gt.reset()}),(0,we.Z)((0,Ie.Z)(gt),"onClick",function(ct){var sn=gt.fileInput;if(sn){var en=ct.target,on=gt.props.onClick;if(en&&en.tagName==="BUTTON"){var Fn=sn.parentNode;Fn.focus(),en.blur()}sn.click(),on&&on(ct)}}),(0,we.Z)((0,Ie.Z)(gt),"onKeyDown",function(ct){ct.key==="Enter"&&gt.onClick(ct)}),(0,we.Z)((0,Ie.Z)(gt),"onFileDrop",function(){var ct=(0,He.Z)((0,Ge.Z)().mark(function sn(en){var on,Fn,Wn;return(0,Ge.Z)().wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:if(on=gt.props.multiple,en.preventDefault(),en.type!=="dragover"){Rn.next=4;break}return Rn.abrupt("return");case 4:if(!gt.props.directory){Rn.next=11;break}return Rn.next=7,Ft(Array.prototype.slice.call(en.dataTransfer.items),function(Bn){return jt(Bn,gt.props.accept)});case 7:Fn=Rn.sent,gt.uploadFiles(Fn),Rn.next=14;break;case 11:Wn=(0,it.Z)(en.dataTransfer.files).filter(function(Bn){return jt(Bn,gt.props.accept)}),on===!1&&(Wn=Wn.slice(0,1)),gt.uploadFiles(Wn);case 14:case"end":return Rn.stop()}},sn)}));return function(sn){return ct.apply(this,arguments)}}()),(0,we.Z)((0,Ie.Z)(gt),"uploadFiles",function(ct){var sn=(0,it.Z)(ct),en=sn.map(function(on){return on.uid=St(),gt.processFile(on,sn)});Promise.all(en).then(function(on){var Fn=gt.props.onBatchStart;Fn==null||Fn(on.map(function(Wn){var Un=Wn.origin,Rn=Wn.parsedFile;return{file:Un,parsedFile:Rn}})),on.filter(function(Wn){return Wn.parsedFile!==null}).forEach(function(Wn){gt.post(Wn)})})}),(0,we.Z)((0,Ie.Z)(gt),"processFile",function(){var ct=(0,He.Z)((0,Ge.Z)().mark(function sn(en,on){var Fn,Wn,Un,Rn,Bn,Nn,Gn,qn,Xn;return(0,Ge.Z)().wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:if(Fn=gt.props.beforeUpload,Wn=en,!Fn){kn.next=14;break}return kn.prev=3,kn.next=6,Fn(en,on);case 6:Wn=kn.sent,kn.next=12;break;case 9:kn.prev=9,kn.t0=kn.catch(3),Wn=!1;case 12:if(Wn!==!1){kn.next=14;break}return kn.abrupt("return",{origin:en,parsedFile:null,action:null,data:null});case 14:if(Un=gt.props.action,typeof Un!="function"){kn.next=21;break}return kn.next=18,Un(en);case 18:Rn=kn.sent,kn.next=22;break;case 21:Rn=Un;case 22:if(Bn=gt.props.data,typeof Bn!="function"){kn.next=29;break}return kn.next=26,Bn(en);case 26:Nn=kn.sent,kn.next=30;break;case 29:Nn=Bn;case 30:return Gn=((0,Re.Z)(Wn)==="object"||typeof Wn=="string")&&Wn?Wn:en,Gn instanceof File?qn=Gn:qn=new File([Gn],en.name,{type:en.type}),Xn=qn,Xn.uid=en.uid,kn.abrupt("return",{origin:en,data:Nn,parsedFile:Xn,action:Rn});case 35:case"end":return kn.stop()}},sn,null,[[3,9]])}));return function(sn,en){return ct.apply(this,arguments)}}()),(0,we.Z)((0,Ie.Z)(gt),"saveFileInput",function(ct){gt.fileInput=ct}),gt}return(0,$e.Z)(lt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var Ze=this,Ve=at.data,ct=at.origin,sn=at.action,en=at.parsedFile;if(this._isMounted){var on=this.props,Fn=on.onStart,Wn=on.customRequest,Un=on.name,Rn=on.headers,Bn=on.withCredentials,Nn=on.method,Gn=ct.uid,qn=Wn||yt,Xn={action:sn,filename:Un,data:Ve,file:en,headers:Rn,withCredentials:Bn,method:Nn||"post",onProgress:function(kn){var nr=Ze.props.onProgress;nr==null||nr(kn,en)},onSuccess:function(kn,nr){var _n=Ze.props.onSuccess;_n==null||_n(kn,en,nr),delete Ze.reqs[Gn]},onError:function(kn,nr){var _n=Ze.props.onError;_n==null||_n(kn,nr,en),delete Ze.reqs[Gn]}};Fn(ct),this.reqs[Gn]=qn(Xn)}}},{key:"reset",value:function(){this.setState({uid:St()})}},{key:"abort",value:function(at){var Ze=this.reqs;if(at){var Ve=at.uid?at.uid:at;Ze[Ve]&&Ze[Ve].abort&&Ze[Ve].abort(),delete Ze[Ve]}else Object.keys(Ze).forEach(function(ct){Ze[ct]&&Ze[ct].abort&&Ze[ct].abort(),delete Ze[ct]})}},{key:"render",value:function(){var at=this.props,Ze=at.component,Ve=at.prefixCls,ct=at.className,sn=at.classNames,en=sn===void 0?{}:sn,on=at.disabled,Fn=at.id,Wn=at.name,Un=at.style,Rn=at.styles,Bn=Rn===void 0?{}:Rn,Nn=at.multiple,Gn=at.accept,qn=at.capture,Xn=at.children,Jn=at.directory,kn=at.openFileDialogOnClick,nr=at.onMouseEnter,_n=at.onMouseLeave,dr=at.hasControlInside,pr=(0,ot.Z)(at,Oe),sr=Ee()((0,we.Z)((0,we.Z)((0,we.Z)({},Ve,!0),"".concat(Ve,"-disabled"),on),ct,ct)),ur=Jn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},yr=on?{}:{onClick:kn?this.onClick:function(){},onKeyDown:kn?this.onKeyDown:function(){},onMouseEnter:nr,onMouseLeave:_n,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:dr?void 0:"0"};return z.createElement(Ze,(0,Se.Z)({},yr,{className:sr,role:dr?void 0:"button",style:Un}),z.createElement("input",(0,Se.Z)({},(0,Ct.Z)(pr,{aria:!0,data:!0}),{id:Fn,name:Wn,disabled:on,type:"file",ref:this.saveFileInput,onClick:function(fr){return fr.stopPropagation()},key:this.state.uid,style:(0,Ot.Z)({display:"none"},Bn.input),className:en.input,accept:Gn},ur,{multiple:Nn,onChange:this.onChange},qn!=null?{capture:qn}:{})),Xn)}}]),lt}(z.Component),rt=nt;function ue(){}var bt=function(be){(0,he.Z)(lt,be);var Je=(0,Xe.Z)(lt);function lt(){var gt;(0,Ne.Z)(this,lt);for(var at=arguments.length,Ze=new Array(at),Ve=0;Ve<at;Ve++)Ze[Ve]=arguments[Ve];return gt=Je.call.apply(Je,[this].concat(Ze)),(0,we.Z)((0,Ie.Z)(gt),"uploader",void 0),(0,we.Z)((0,Ie.Z)(gt),"saveUploader",function(ct){gt.uploader=ct}),gt}return(0,$e.Z)(lt,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return z.createElement(rt,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),lt}(z.Component);(0,we.Z)(bt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ue,onError:ue,onSuccess:ue,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Be=bt,tt=Be,Et=ie(18929),ge=ie(48755),de=ie(2171),_e=ie(9017),Wt=ie(85981),xt=ie(63356),pe=ie(34961),Me=ie(16931),ze=ie(51636),Nt=ie(36237),Zt=be=>{const{componentCls:Je,iconCls:lt}=be;return{[`${Je}-wrapper`]:{[`${Je}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:be.colorFillAlter,border:`${(0,Nt.unit)(be.lineWidth)} dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[Je]:{padding:be.padding},[`${Je}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:be.borderRadiusLG,"&:focus-visible":{outline:`${(0,Nt.unit)(be.lineWidthFocus)} solid ${be.colorPrimaryBorder}`}},[`${Je}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Je}-disabled):hover,
&-hover:not(${Je}-disabled)
`]:{borderColor:be.colorPrimaryHover},[`p${Je}-drag-icon`]:{marginBottom:be.margin,[lt]:{color:be.colorPrimary,fontSize:be.uploadThumbnailSize}},[`p${Je}-text`]:{margin:`0 0 ${(0,Nt.unit)(be.marginXXS)}`,color:be.colorTextHeading,fontSize:be.fontSizeLG},[`p${Je}-hint`]:{color:be.colorTextDescription,fontSize:be.fontSize},[`&${Je}-disabled`]:{[`p${Je}-drag-icon ${lt},
p${Je}-text,
p${Je}-hint
`]:{color:be.colorTextDisabled}}}}}},Lt=be=>{const{componentCls:Je,iconCls:lt,fontSize:gt,lineHeight:at,calc:Ze}=be,Ve=`${Je}-list-item`,ct=`${Ve}-actions`,sn=`${Ve}-action`;return{[`${Je}-wrapper`]:{[`${Je}-list`]:Object.assign(Object.assign({},(0,xt.dF)()),{lineHeight:be.lineHeight,[Ve]:{position:"relative",height:Ze(be.lineHeight).mul(gt).equal(),marginTop:be.marginXS,fontSize:gt,display:"flex",alignItems:"center",transition:`background-color ${be.motionDurationSlow}`,borderRadius:be.borderRadiusSM,"&:hover":{backgroundColor:be.controlItemBgHover},[`${Ve}-name`]:Object.assign(Object.assign({},xt.vS),{padding:`0 ${(0,Nt.unit)(be.paddingXS)}`,lineHeight:at,flex:"auto",transition:`all ${be.motionDurationSlow}`}),[ct]:{whiteSpace:"nowrap",[sn]:{opacity:0},[lt]:{color:be.actionsColor,transition:`all ${be.motionDurationSlow}`},[`
${sn}:focus-visible,
&.picture ${sn}
`]:{opacity:1}},[`${Je}-icon ${lt}`]:{color:be.colorTextDescription,fontSize:gt},[`${Ve}-progress`]:{position:"absolute",bottom:be.calc(be.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Ze(gt).add(be.paddingXS).equal(),fontSize:gt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ve}:hover ${sn}`]:{opacity:1},[`${Ve}-error`]:{color:be.colorError,[`${Ve}-name, ${Je}-icon ${lt}`]:{color:be.colorError},[ct]:{[`${lt}, ${lt}:hover`]:{color:be.colorError},[sn]:{opacity:1}}},[`${Je}-list-item-container`]:{transition:`opacity ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},st=ie(99495),te=be=>{const{componentCls:Je}=be,lt=new Nt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:be.calc(be.marginXS).div(-2).equal()}}),gt=new Nt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:be.calc(be.marginXS).div(-2).equal()}}),at=`${Je}-animate-inline`;return[{[`${Je}-wrapper`]:{[`${at}-appear, ${at}-enter, ${at}-leave`]:{animationDuration:be.motionDurationSlow,animationTimingFunction:be.motionEaseInOutCirc,animationFillMode:"forwards"},[`${at}-appear, ${at}-enter`]:{animationName:lt},[`${at}-leave`]:{animationName:gt}}},{[`${Je}-wrapper`]:(0,st.J$)(be)},lt,gt]},ee=ie(68361);const oe=be=>{const{componentCls:Je,iconCls:lt,uploadThumbnailSize:gt,uploadProgressOffset:at,calc:Ze}=be,Ve=`${Je}-list`,ct=`${Ve}-item`;return{[`${Je}-wrapper`]:{[`
${Ve}${Ve}-picture,
${Ve}${Ve}-picture-card,
${Ve}${Ve}-picture-circle
`]:{[ct]:{position:"relative",height:Ze(gt).add(Ze(be.lineWidth).mul(2)).add(Ze(be.paddingXS).mul(2)).equal(),padding:be.paddingXS,border:`${(0,Nt.unit)(be.lineWidth)} ${be.lineType} ${be.colorBorder}`,borderRadius:be.borderRadiusLG,"&:hover":{background:"transparent"},[`${ct}-thumbnail`]:Object.assign(Object.assign({},xt.vS),{width:gt,height:gt,lineHeight:(0,Nt.unit)(Ze(gt).add(be.paddingSM).equal()),textAlign:"center",flex:"none",[lt]:{fontSize:be.fontSizeHeading2,color:be.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ct}-progress`]:{bottom:at,width:`calc(100% - ${(0,Nt.unit)(Ze(be.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Ze(gt).add(be.paddingXS).equal()}},[`${ct}-error`]:{borderColor:be.colorError,[`${ct}-thumbnail ${lt}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:be.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:be.colorError}}},[`${ct}-uploading`]:{borderStyle:"dashed",[`${ct}-name`]:{marginBottom:at}}},[`${Ve}${Ve}-picture-circle ${ct}`]:{[`&, &::before, ${ct}-thumbnail`]:{borderRadius:"50%"}}}}},se=be=>{const{componentCls:Je,iconCls:lt,fontSizeLG:gt,colorTextLightSolid:at,calc:Ze}=be,Ve=`${Je}-list`,ct=`${Ve}-item`,sn=be.uploadPicCardSize;return{[`
${Je}-wrapper${Je}-picture-card-wrapper,
${Je}-wrapper${Je}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,xt.dF)()),{display:"block",[`${Je}${Je}-select`]:{width:sn,height:sn,textAlign:"center",verticalAlign:"top",backgroundColor:be.colorFillAlter,border:`${(0,Nt.unit)(be.lineWidth)} dashed ${be.colorBorder}`,borderRadius:be.borderRadiusLG,cursor:"pointer",transition:`border-color ${be.motionDurationSlow}`,[`> ${Je}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Je}-disabled):hover`]:{borderColor:be.colorPrimary}},[`${Ve}${Ve}-picture-card, ${Ve}${Ve}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:be.marginXS,marginInlineEnd:be.marginXS}},"@supports (gap: 1px)":{gap:be.marginXS},[`${Ve}-item-container`]:{display:"inline-block",width:sn,height:sn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[ct]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Nt.unit)(Ze(be.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Nt.unit)(Ze(be.paddingXS).mul(2).equal())})`,backgroundColor:be.colorBgMask,opacity:0,transition:`all ${be.motionDurationSlow}`,content:'" "'}},[`${ct}:hover`]:{[`&::before, ${ct}-actions`]:{opacity:1}},[`${ct}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${be.motionDurationSlow}`,[`
${lt}-eye,
${lt}-download,
${lt}-delete
`]:{zIndex:10,width:gt,margin:`0 ${(0,Nt.unit)(be.marginXXS)}`,fontSize:gt,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,color:at,"&:hover":{color:at},svg:{verticalAlign:"baseline"}}},[`${ct}-thumbnail, ${ct}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ct}-name`]:{display:"none",textAlign:"center"},[`${ct}-file + ${ct}-name`]:{position:"absolute",bottom:be.margin,display:"block",width:`calc(100% - ${(0,Nt.unit)(Ze(be.paddingXS).mul(2).equal())})`},[`${ct}-uploading`]:{[`&${ct}`]:{backgroundColor:be.colorFillAlter},[`&::before, ${lt}-eye, ${lt}-download, ${lt}-delete`]:{display:"none"}},[`${ct}-progress`]:{bottom:be.marginXL,width:`calc(100% - ${(0,Nt.unit)(Ze(be.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Je}-wrapper${Je}-picture-circle-wrapper`]:{[`${Je}${Je}-select`]:{borderRadius:"50%"}}}};var me=be=>{const{componentCls:Je}=be;return{[`${Je}-rtl`]:{direction:"rtl"}}};const Ce=be=>{const{componentCls:Je,colorTextDisabled:lt}=be;return{[`${Je}-wrapper`]:Object.assign(Object.assign({},(0,xt.Wf)(be)),{[Je]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Je}-select`]:{display:"inline-block"},[`${Je}-hidden`]:{display:"none"},[`${Je}-disabled`]:{color:lt,cursor:"not-allowed"}})}},mt=be=>({actionsColor:be.colorTextDescription});var Pe=(0,Me.I$)("Upload",be=>{const{fontSizeHeading3:Je,fontHeight:lt,lineWidth:gt,controlHeightLG:at,calc:Ze}=be,Ve=(0,ze.mergeToken)(be,{uploadThumbnailSize:Ze(Je).mul(2).equal(),uploadProgressOffset:Ze(Ze(lt).div(2)).add(gt).equal(),uploadPicCardSize:Ze(at).mul(2.55).equal()});return[Ce(Ve),Zt(Ve),oe(Ve),se(Ve),Lt(Ve),te(Ve),me(Ve),(0,pe.Z)(Ve)]},mt),Ke={icon:function(Je,lt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:lt}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Je}}]}},name:"file",theme:"twotone"},ft=Ke,It=ie(7657),wt=function(Je,lt){return z.createElement(It.Z,(0,Se.Z)({},Je,{ref:lt,icon:ft}))},Qt=z.forwardRef(wt),Xt=Qt,Gt=ie(58617),un={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},rn=un,ln=function(Je,lt){return z.createElement(It.Z,(0,Se.Z)({},Je,{ref:lt,icon:rn}))},Pt=z.forwardRef(ln),nn=Pt,Ut={icon:function(Je,lt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Je}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:lt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:lt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:lt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Je}}]}},name:"picture",theme:"twotone"},Le=Ut,ut=function(Je,lt){return z.createElement(It.Z,(0,Se.Z)({},Je,{ref:lt,icon:Le}))},Rt=z.forwardRef(ut),$t=Rt,De=ie(77900),Ye=ie(2738),pt=ie(40192),kt=ie(86641),Yt=ie(22703),dn=ie(7939);function Dn(be){return Object.assign(Object.assign({},be),{lastModified:be.lastModified,lastModifiedDate:be.lastModifiedDate,name:be.name,size:be.size,type:be.type,uid:be.uid,percent:0,originFileObj:be})}function Pn(be,Je){const lt=(0,it.Z)(Je),gt=lt.findIndex(at=>{let{uid:Ze}=at;return Ze===be.uid});return gt===-1?lt.push(be):lt[gt]=be,lt}function cn(be,Je){const lt=be.uid!==void 0?"uid":"name";return Je.filter(gt=>gt[lt]===be[lt])[0]}function In(be,Je){const lt=be.uid!==void 0?"uid":"name",gt=Je.filter(at=>at[lt]!==be[lt]);return gt.length===Je.length?null:gt}const gn=function(){const Je=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),gt=Je[Je.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(gt)||[""])[0]},$n=be=>be.indexOf("image/")===0,An=be=>{if(be.type&&!be.thumbUrl)return $n(be.type);const Je=be.thumbUrl||be.url||"",lt=gn(Je);return/^data:image\//.test(Je)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(lt)?!0:!(/^data:/.test(Je)||lt)},En=200;function qt(be){return new Promise(Je=>{if(!be.type||!$n(be.type)){Je("");return}const lt=document.createElement("canvas");lt.width=En,lt.height=En,lt.style.cssText=`position: fixed; left: 0; top: 0; width: ${En}px; height: ${En}px; z-index: 9999; display: none;`,document.body.appendChild(lt);const gt=lt.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:Ze,height:Ve}=at;let ct=En,sn=En,en=0,on=0;Ze>Ve?(sn=Ve*(En/Ze),on=-(sn-ct)/2):(ct=Ze*(En/Ve),en=-(ct-sn)/2),gt.drawImage(at,en,on,ct,sn);const Fn=lt.toDataURL();document.body.removeChild(lt),window.URL.revokeObjectURL(at.src),Je(Fn)},at.crossOrigin="anonymous",be.type.startsWith("image/svg+xml")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&typeof Ze.result=="string"&&(at.src=Ze.result)},Ze.readAsDataURL(be)}else if(be.type.startsWith("image/gif")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&Je(Ze.result)},Ze.readAsDataURL(be)}else at.src=window.URL.createObjectURL(be)})}var zt=ie(26227),Tt=ie(41464),Vt=ie(15277),tn=ie(89787),xn=ie(25399),mn=z.forwardRef((be,Je)=>{let{prefixCls:lt,className:gt,style:at,locale:Ze,listType:Ve,file:ct,items:sn,progress:en,iconRender:on,actionIconRender:Fn,itemRender:Wn,isImgUrl:Un,showPreviewIcon:Rn,showRemoveIcon:Bn,showDownloadIcon:Nn,previewIcon:Gn,removeIcon:qn,downloadIcon:Xn,extra:Jn,onPreview:kn,onDownload:nr,onClose:_n}=be;var dr,pr;const{status:sr}=ct,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const hn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(hn)}},[]);const tr=on(ct);let mr=z.createElement("div",{className:`${lt}-icon`},tr);if(Ve==="picture"||Ve==="picture-card"||Ve==="picture-circle")if(ur==="uploading"||!ct.thumbUrl&&!ct.url){const hn=Ee()(`${lt}-list-item-thumbnail`,{[`${lt}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:hn},tr)}else{const hn=Un!=null&&Un(ct)?z.createElement("img",{src:ct.thumbUrl||ct.url,alt:ct.name,className:`${lt}-list-item-image`,crossOrigin:ct.crossOrigin}):tr,Tn=Ee()(`${lt}-list-item-thumbnail`,{[`${lt}-list-item-file`]:Un&&!Un(ct)});mr=z.createElement("a",{className:Tn,onClick:jn=>kn(ct,jn),href:ct.url||ct.thumbUrl,target:"_blank",rel:"noopener noreferrer"},hn)}const br=Ee()(`${lt}-list-item`,`${lt}-list-item-${ur}`),Hr=typeof ct.linkProps=="string"?JSON.parse(ct.linkProps):ct.linkProps,Er=(typeof Bn=="function"?Bn(ct):Bn)?Fn((typeof qn=="function"?qn(ct):qn)||z.createElement(zt.Z,null),()=>_n(ct),lt,Ze.removeFile,!0):null,Tr=(typeof Nn=="function"?Nn(ct):Nn)&&ur==="done"?Fn((typeof Xn=="function"?Xn(ct):Xn)||z.createElement(Tt.Z,null),()=>nr(ct),lt,Ze.downloadFile):null,Ir=Ve!=="picture-card"&&Ve!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:Ee()(`${lt}-list-item-actions`,{picture:Ve==="picture"})},Tr,Er),Pr=typeof Jn=="function"?Jn(ct):Jn,or=Pr&&z.createElement("span",{className:`${lt}-list-item-extra`},Pr),ir=Ee()(`${lt}-list-item-name`),er=ct.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ir,title:ct.name},Hr,{href:ct.url,onClick:hn=>kn(ct,hn)}),ct.name,or):z.createElement("span",{key:"view",className:ir,onClick:hn=>kn(ct,hn),title:ct.name},ct.name,or),pn=(typeof Rn=="function"?Rn(ct):Rn)&&(ct.url||ct.thumbUrl)?z.createElement("a",{href:ct.url||ct.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:hn=>kn(ct,hn),title:Ze.previewFile},typeof Gn=="function"?Gn(ct):Gn||z.createElement(Vt.Z,null)):null,Sn=(Ve==="picture-card"||Ve==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${lt}-list-item-actions`},pn,ur==="done"&&Tr,Er),{getPrefixCls:Cn}=z.useContext(ge.E_),fn=Cn(),Zn=z.createElement("div",{className:br},mr,er,Ir,Sn,lr&&z.createElement(De.default,{motionName:`${fn}-fade`,visible:ur==="uploading",motionDeadline:2e3},hn=>{let{className:Tn}=hn;const jn="percent"in ct?z.createElement(tn.Z,Object.assign({},en,{type:"line",percent:ct.percent,"aria-label":ct["aria-label"],"aria-labelledby":ct["aria-labelledby"]})):null;return z.createElement("div",{className:Ee()(`${lt}-list-item-progress`,Tn)},jn)})),Kn=ct.response&&typeof ct.response=="string"?ct.response:((dr=ct.error)===null||dr===void 0?void 0:dr.statusText)||((pr=ct.error)===null||pr===void 0?void 0:pr.message)||Ze.uploadError,yn=ur==="error"?z.createElement(xn.Z,{title:Kn,getPopupContainer:hn=>hn.parentNode},Zn):Zn;return z.createElement("div",{className:Ee()(`${lt}-list-item-container`,gt),style:at,ref:Je},Wn?Wn(yn,ct,sn,{download:nr.bind(null,ct),preview:kn.bind(null,ct),remove:_n.bind(null,ct)}):yn)});const vn=(be,Je)=>{const{listType:lt="text",previewFile:gt=qt,onPreview:at,onDownload:Ze,onRemove:Ve,locale:ct,iconRender:sn,isImageUrl:en=An,prefixCls:on,items:Fn=[],showPreviewIcon:Wn=!0,showRemoveIcon:Un=!0,showDownloadIcon:Rn=!1,removeIcon:Bn,previewIcon:Nn,downloadIcon:Gn,extra:qn,progress:Xn={size:[-1,2],showInfo:!1},appendAction:Jn,appendActionVisible:kn=!0,itemRender:nr,disabled:_n}=be,dr=(0,pt.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(lt);z.useEffect(()=>{lt.startsWith("picture")&&(Fn||[]).forEach(or=>{!(or.originFileObj instanceof File||or.originFileObj instanceof Blob)||or.thumbUrl!==void 0||(or.thumbUrl="",gt==null||gt(or.originFileObj).then(ir=>{or.thumbUrl=ir||"",dr()}))})},[lt,Fn,gt]),z.useEffect(()=>{sr(!0)},[]);const yr=(or,ir)=>{if(at)return ir==null||ir.preventDefault(),at(or)},lr=or=>{typeof Ze=="function"?Ze(or):or.url&&window.open(or.url)},fr=or=>{Ve==null||Ve(or)},tr=or=>{if(sn)return sn(or,lt);const ir=or.status==="uploading";if(lt.startsWith("picture")){const er=lt==="picture"?z.createElement(Gt.Z,null):ct.uploading,pn=en!=null&&en(or)?z.createElement($t,null):z.createElement(Xt,null);return ir?er:pn}return ir?z.createElement(Gt.Z,null):z.createElement(nn,null)},mr=(or,ir,er,pn,Sn)=>{const Cn={type:"text",size:"small",title:pn,onClick:fn=>{var Zn,Kn;ir(),z.isValidElement(or)&&((Kn=(Zn=or.props).onClick)===null||Kn===void 0||Kn.call(Zn,fn))},className:`${er}-list-item-action`};return Sn&&(Cn.disabled=_n),z.isValidElement(or)?z.createElement(dn.ZP,Object.assign({},Cn,{icon:(0,Yt.Tm)(or,Object.assign(Object.assign({},or.props),{onClick:()=>{}}))})):z.createElement(dn.ZP,Object.assign({},Cn),z.createElement("span",null,or))};z.useImperativeHandle(Je,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(ge.E_),Hr=br("upload",on),Er=br(),Tr=Ee()(`${Hr}-list`,`${Hr}-list-${lt}`),Ir=z.useMemo(()=>(0,Ye.Z)((0,kt.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Pr=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${Hr}-${ur?"animate-inline":"animate"}`,keys:(0,it.Z)(Fn.map(or=>({key:or.uid,file:or}))),motionAppear:pr});return z.createElement("div",{className:Tr},z.createElement(De.CSSMotionList,Object.assign({},Pr,{component:!1}),or=>{let{key:ir,file:er,className:pn,style:Sn}=or;return z.createElement(mn,{key:ir,locale:ct,prefixCls:Hr,className:pn,style:Sn,file:er,items:Fn,progress:Xn,listType:lt,isImgUrl:en,showPreviewIcon:Wn,showRemoveIcon:Un,showDownloadIcon:Rn,removeIcon:Bn,previewIcon:Nn,downloadIcon:Gn,extra:qn,iconRender:tr,actionIconRender:mr,itemRender:nr,onPreview:yr,onDownload:lr,onClose:fr})}),Jn&&z.createElement(De.default,Object.assign({},Pr,{visible:kn,forceRender:!0}),or=>{let{className:ir,style:er}=or;return(0,Yt.Tm)(Jn,pn=>({className:Ee()(pn.className,ir),style:Object.assign(Object.assign(Object.assign({},er),{pointerEvents:ir?"none":void 0}),pn.style)}))}))};var zn=z.forwardRef(vn),Bt=function(be,Je,lt,gt){function at(Ze){return Ze instanceof lt?Ze:new lt(function(Ve){Ve(Ze)})}return new(lt||(lt=Promise))(function(Ze,Ve){function ct(on){try{en(gt.next(on))}catch(Fn){Ve(Fn)}}function sn(on){try{en(gt.throw(on))}catch(Fn){Ve(Fn)}}function en(on){on.done?Ze(on.value):at(on.value).then(ct,sn)}en((gt=gt.apply(be,Je||[])).next())})};const Jt=`__LIST_IGNORE_${Date.now()}__`,On=(be,Je)=>{const{fileList:lt,defaultFileList:gt,onRemove:at,showUploadList:Ze=!0,listType:Ve="text",onPreview:ct,onDownload:sn,onChange:en,onDrop:on,previewFile:Fn,disabled:Wn,locale:Un,iconRender:Rn,isImageUrl:Bn,progress:Nn,prefixCls:Gn,className:qn,type:Xn="select",children:Jn,style:kn,itemRender:nr,maxCount:_n,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=be,tr=z.useContext(de.Z),mr=Wn!=null?Wn:tr,[br,Hr]=(0,Et.Z)(gt||[],{value:lt,postState:xr=>xr!=null?xr:[]}),[Er,Tr]=z.useState("drop"),Ir=z.useRef(null),Pr=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(lt||[]).forEach((zr,Vr)=>{!zr.uid&&!Object.isFrozen(zr)&&(zr.uid=`__AUTO__${xr}_${Vr}__`)})},[lt]);const or=(xr,zr,Vr)=>{let wr=(0,it.Z)(zr),Nr=!1;_n===1?wr=wr.slice(-1):_n&&(Nr=wr.length>_n,wr=wr.slice(0,_n)),(0,ye.flushSync)(()=>{Hr(wr)});const Br={file:xr,fileList:wr};Vr&&(Br.event=Vr),(!Nr||xr.status==="removed"||wr.some(ui=>ui.uid===xr.uid))&&(0,ye.flushSync)(()=>{en==null||en(Br)})},ir=(xr,zr)=>Bt(void 0,void 0,void 0,function*(){const{beforeUpload:Vr,transformFile:wr}=be;let Nr=xr;if(Vr){const Br=yield Vr(xr,zr);if(Br===!1)return!1;if(delete xr[Jt],Br===Jt)return Object.defineProperty(xr,Jt,{value:!0,configurable:!0}),!1;typeof Br=="object"&&Br&&(Nr=Br)}return wr&&(Nr=yield wr(Nr)),Nr}),er=xr=>{const zr=xr.filter(Nr=>!Nr.file[Jt]);if(!zr.length)return;const Vr=zr.map(Nr=>Dn(Nr.file));let wr=(0,it.Z)(br);Vr.forEach(Nr=>{wr=Pn(Nr,wr)}),Vr.forEach((Nr,Br)=>{let ui=Nr;if(zr[Br].parsedFile)Nr.status="uploading";else{const{originFileObj:Pi}=Nr;let fi;try{fi=new File([Pi],Pi.name,{type:Pi.type})}catch(ni){fi=new Blob([Pi],{type:Pi.type}),fi.name=Pi.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}or(ui,wr)})},pn=(xr,zr,Vr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Br){}if(!cn(zr,br))return;const wr=Dn(zr);wr.status="done",wr.percent=100,wr.response=xr,wr.xhr=Vr;const Nr=Pn(wr,br);or(wr,Nr)},Sn=(xr,zr)=>{if(!cn(zr,br))return;const Vr=Dn(zr);Vr.status="uploading",Vr.percent=xr.percent;const wr=Pn(Vr,br);or(Vr,wr,xr)},Cn=(xr,zr,Vr)=>{if(!cn(Vr,br))return;const wr=Dn(Vr);wr.error=xr,wr.response=zr,wr.status="error";const Nr=Pn(wr,br);or(wr,Nr)},fn=xr=>{let zr;Promise.resolve(typeof at=="function"?at(xr):at).then(Vr=>{var wr;if(Vr===!1)return;const Nr=In(xr,br);Nr&&(zr=Object.assign(Object.assign({},xr),{status:"removed"}),br==null||br.forEach(Br=>{const ui=zr.uid!==void 0?"uid":"name";Br[ui]===zr[ui]&&!Object.isFrozen(Br)&&(Br.status="removed")}),(wr=Ir.current)===null||wr===void 0||wr.abort(zr),or(zr,Nr))})},Zn=xr=>{Tr(xr.type),xr.type==="drop"&&(on==null||on(xr))};z.useImperativeHandle(Je,()=>({onBatchStart:er,onSuccess:pn,onProgress:Sn,onError:Cn,fileList:br,upload:Ir.current,nativeElement:Pr.current}));const{getPrefixCls:Kn,direction:yn,upload:hn}=z.useContext(ge.E_),Tn=Kn("upload",Gn),jn=Object.assign(Object.assign({onBatchStart:er,onError:Cn,onProgress:Sn,onSuccess:pn},be),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:Tn,disabled:mr,beforeUpload:ir,onChange:void 0,hasControlInside:sr});delete jn.className,delete jn.style,(!Jn||mr)&&delete jn.id;const cr=`${Tn}-wrapper`,[Mr,Ar,Rr]=Pe(Tn,cr),[Lr]=(0,_e.Z)("Upload",Wt.Z.Upload),{showRemoveIcon:Fr,showPreviewIcon:Gr,showDownloadIcon:jr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof Ze=="boolean"?{}:Ze,xi=typeof Fr=="undefined"?!mr:Fr,si=(xr,zr)=>Ze?z.createElement(zn,{prefixCls:Tn,listType:Ve,items:br,previewFile:Fn,onPreview:ct,onDownload:sn,onRemove:fn,showRemoveIcon:xi,showPreviewIcon:Gr,showDownloadIcon:jr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,iconRender:Rn,extra:Ni,locale:Object.assign(Object.assign({},Lr),Un),isImageUrl:Bn,progress:Nn,appendAction:xr,appendActionVisible:zr,itemRender:nr,disabled:mr}):xr,Ri=Ee()(cr,qn,fr,Ar,Rr,hn==null?void 0:hn.className,{[`${Tn}-rtl`]:yn==="rtl",[`${Tn}-picture-card-wrapper`]:Ve==="picture-card",[`${Tn}-picture-circle-wrapper`]:Ve==="picture-circle"}),Wr=Object.assign(Object.assign({},hn==null?void 0:hn.style),kn);if(Xn==="drag"){const xr=Ee()(Ar,Tn,`${Tn}-drag`,{[`${Tn}-drag-uploading`]:br.some(zr=>zr.status==="uploading"),[`${Tn}-drag-hover`]:Er==="dragover",[`${Tn}-disabled`]:mr,[`${Tn}-rtl`]:yn==="rtl"});return Mr(z.createElement("span",{className:Ri,ref:Pr},z.createElement("div",{className:xr,style:Wr,onDrop:Zn,onDragOver:Zn,onDragLeave:Zn},z.createElement(tt,Object.assign({},jn,{ref:Ir,className:`${Tn}-btn`}),z.createElement("div",{className:`${Tn}-drag-container`},Jn))),si()))}const _i=Ee()(Tn,`${Tn}-select`,{[`${Tn}-disabled`]:mr,[`${Tn}-hidden`]:!Jn}),qr=z.createElement("div",{className:_i},z.createElement(tt,Object.assign({},jn,{ref:Ir})));return Mr(Ve==="picture-card"||Ve==="picture-circle"?z.createElement("span",{className:Ri,ref:Pr},si(qr,!!Jn)):z.createElement("span",{className:Ri,ref:Pr},qr,si()))};var Te=z.forwardRef(On),We=function(be,Je){var lt={};for(var gt in be)Object.prototype.hasOwnProperty.call(be,gt)&&Je.indexOf(gt)<0&&(lt[gt]=be[gt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,gt=Object.getOwnPropertySymbols(be);at<gt.length;at++)Je.indexOf(gt[at])<0&&Object.prototype.propertyIsEnumerable.call(be,gt[at])&&(lt[gt[at]]=be[gt[at]]);return lt},ke=z.forwardRef((be,Je)=>{var{style:lt,height:gt,hasControlInside:at=!1}=be,Ze=We(be,["style","height","hasControlInside"]);return z.createElement(Te,Object.assign({ref:Je,hasControlInside:at},Ze,{type:"drag",style:Object.assign(Object.assign({},lt),{height:gt})}))});const Ae=Te;Ae.Dragger=ke,Ae.LIST_IGNORE=Jt;var je=Ae},99498:function(an,Kt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function($e,Ie,he){var Xe=he&&he!=z.Init;if(Ie&&!Xe)$e.on("blur",Ee),$e.on("change",Se),$e.on("swapDoc",Se),z.on($e.getInputField(),"compositionupdate",$e.state.placeholderCompose=function(){qe($e)}),Se($e);else if(!Ie&&Xe){$e.off("blur",Ee),$e.off("change",Se),$e.off("swapDoc",Se),z.off($e.getInputField(),"compositionupdate",$e.state.placeholderCompose),it($e);var we=$e.getWrapperElement();we.className=we.className.replace(" CodeMirror-empty","")}Ie&&!$e.hasFocus()&&Ee($e)});function it($e){$e.state.placeholder&&($e.state.placeholder.parentNode.removeChild($e.state.placeholder),$e.state.placeholder=null)}function ye($e){it($e);var Ie=$e.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=$e.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var he=$e.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ie.appendChild(he),$e.display.lineSpace.insertBefore(Ie,$e.display.lineSpace.firstChild)}function qe($e){setTimeout(function(){var Ie=!1,he=$e.getInputField();he.nodeName=="TEXTAREA"?Ie=!he.value:$e.lineCount()==1&&(Ie=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ie?ye($e):it($e)},20)}function Ee($e){Ne($e)&&ye($e)}function Se($e){var Ie=$e.getWrapperElement(),he=Ne($e);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ye($e):it($e)}function Ne($e){return $e.lineCount()===1&&$e.getLine(0)===""}})},25717:function(an,Kt,ie){(function(z){z(ie(89780))})(function(z){var it={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ye=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Re,Ge,He){He&&He!=z.Init&&(Re.removeKeyMap(Ee),Re.state.closeBrackets=null),Ge&&(Se(qe(Ge,"pairs")),Re.state.closeBrackets=Ge,Re.addKeyMap(Ee))});function qe(Re,Ge){return Ge=="pairs"&&typeof Re=="string"?Re:typeof Re=="object"&&Re[Ge]!=null?Re[Ge]:it[Ge]}var Ee={Backspace:Ie,Enter:he};function Se(Re){for(var Ge=0;Ge<Re.length;Ge++){var He=Re.charAt(Ge),Ct="'"+He+"'";Ee[Ct]||(Ee[Ct]=Ne(He))}}Se(it.pairs+"`");function Ne(Re){return function(Ge){return we(Ge,Re)}}function $e(Re){var Ge=Re.state.closeBrackets;if(!Ge||Ge.override)return Ge;var He=Re.getModeAt(Re.getCursor());return He.closeBrackets||Ge}function Ie(Re){var Ge=$e(Re);if(!Ge||Re.getOption("disableInput"))return z.Pass;for(var He=qe(Ge,"pairs"),Ct=Re.listSelections(),Mt=0;Mt<Ct.length;Mt++){if(!Ct[Mt].empty())return z.Pass;var jt=Ot(Re,Ct[Mt].head);if(!jt||He.indexOf(jt)%2!=0)return z.Pass}for(var Mt=Ct.length-1;Mt>=0;Mt--){var Dt=Ct[Mt].head;Re.replaceRange("",ye(Dt.line,Dt.ch-1),ye(Dt.line,Dt.ch+1),"+delete")}}function he(Re){var Ge=$e(Re),He=Ge&&qe(Ge,"explode");if(!He||Re.getOption("disableInput"))return z.Pass;for(var Ct=Re.listSelections(),Mt=0;Mt<Ct.length;Mt++){if(!Ct[Mt].empty())return z.Pass;var jt=Ot(Re,Ct[Mt].head);if(!jt||He.indexOf(jt)%2!=0)return z.Pass}Re.operation(function(){var Dt=Re.lineSeparator()||`
`;Re.replaceSelection(Dt+Dt,null),Re.execCommand("goCharLeft"),Ct=Re.listSelections();for(var et=0;et<Ct.length;et++){var yt=Ct[et].head.line;Re.indentLine(yt,null,!0),Re.indentLine(yt+1,null,!0)}})}function Xe(Re){var Ge=z.cmpPos(Re.anchor,Re.head)>0;return{anchor:new ye(Re.anchor.line,Re.anchor.ch+(Ge?-1:1)),head:new ye(Re.head.line,Re.head.ch+(Ge?1:-1))}}function we(Re,Ge){var He=$e(Re);if(!He||Re.getOption("disableInput"))return z.Pass;var Ct=qe(He,"pairs"),Mt=Ct.indexOf(Ge);if(Mt==-1)return z.Pass;for(var jt=qe(He,"closeBefore"),Dt=qe(He,"triples"),et=Ct.charAt(Mt+1)==Ge,yt=Re.listSelections(),Ue=Mt%2==0,Ft,vt=0;vt<yt.length;vt++){var dt=yt[vt],St=dt.head,Oe,nt=Re.getRange(St,ye(St.line,St.ch+1));if(Ue&&!dt.empty())Oe="surround";else if((et||!Ue)&&nt==Ge)et&&ot(Re,St)?Oe="both":Dt.indexOf(Ge)>=0&&Re.getRange(St,ye(St.line,St.ch+3))==Ge+Ge+Ge?Oe="skipThree":Oe="skip";else if(et&&St.ch>1&&Dt.indexOf(Ge)>=0&&Re.getRange(ye(St.line,St.ch-2),St)==Ge+Ge){if(St.ch>2&&/\bstring/.test(Re.getTokenTypeAt(ye(St.line,St.ch-2))))return z.Pass;Oe="addFour"}else if(et){var rt=St.ch==0?" ":Re.getRange(ye(St.line,St.ch-1),St);if(!z.isWordChar(nt)&&rt!=Ge&&!z.isWordChar(rt))Oe="both";else return z.Pass}else if(Ue&&(nt.length===0||/\s/.test(nt)||jt.indexOf(nt)>-1))Oe="both";else return z.Pass;if(!Ft)Ft=Oe;else if(Ft!=Oe)return z.Pass}var ue=Mt%2?Ct.charAt(Mt-1):Ge,bt=Mt%2?Ge:Ct.charAt(Mt+1);Re.operation(function(){if(Ft=="skip")Re.execCommand("goCharRight");else if(Ft=="skipThree")for(var Be=0;Be<3;Be++)Re.execCommand("goCharRight");else if(Ft=="surround"){for(var tt=Re.getSelections(),Be=0;Be<tt.length;Be++)tt[Be]=ue+tt[Be]+bt;Re.replaceSelections(tt,"around"),tt=Re.listSelections().slice();for(var Be=0;Be<tt.length;Be++)tt[Be]=Xe(tt[Be]);Re.setSelections(tt)}else Ft=="both"?(Re.replaceSelection(ue+bt,null),Re.triggerElectric(ue+bt),Re.execCommand("goCharLeft")):Ft=="addFour"&&(Re.replaceSelection(ue+ue+ue+ue,"before"),Re.execCommand("goCharRight"))})}function Ot(Re,Ge){var He=Re.getRange(ye(Ge.line,Ge.ch-1),ye(Ge.line,Ge.ch+1));return He.length==2?He:null}function ot(Re,Ge){var He=Re.getTokenAt(ye(Ge.line,Ge.ch+1));return/\bstring/.test(He.type)&&He.start==Ge.ch&&(Ge.ch==0||!/\bstring/.test(Re.getTokenTypeAt(Ge)))}})},6313:function(an,Kt,ie){(function(z){z(ie(89780),ie(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(Ie,he,Xe){if(Xe!=z.Init&&Xe&&Ie.removeKeyMap("autoCloseTags"),!!he){var we={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(we["'/'"]=function(Ot){return Se(Ot)}),(typeof he!="object"||he.whenOpening!==!1)&&(we["'>'"]=function(Ot){return qe(Ot)}),Ie.addKeyMap(we)}});var it=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ye=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function qe(Ie){if(Ie.getOption("disableInput"))return z.Pass;for(var he=Ie.listSelections(),Xe=[],we=Ie.getOption("autoCloseTags"),Ot=0;Ot<he.length;Ot++){if(!he[Ot].empty())return z.Pass;var ot=he[Ot].head,Re=Ie.getTokenAt(ot),Ge=z.innerMode(Ie.getMode(),Re.state),He=Ge.state,Ct=Ge.mode.xmlCurrentTag&&Ge.mode.xmlCurrentTag(He),Mt=Ct&&Ct.name;if(!Mt)return z.Pass;var jt=Ge.mode.configuration=="html",Dt=typeof we=="object"&&we.dontCloseTags||jt&&it,et=typeof we=="object"&&we.indentTags||jt&&ye;Re.end>ot.ch&&(Mt=Mt.slice(0,Mt.length-Re.end+ot.ch));var yt=Mt.toLowerCase();if(!Mt||Re.type=="string"&&(Re.end!=ot.ch||!/[\"\']/.test(Re.string.charAt(Re.string.length-1))||Re.string.length==1)||Re.type=="tag"&&Ct.close||Re.string.indexOf("/")==ot.ch-Re.start-1||Dt&&Ne(Dt,yt)>-1||$e(Ie,Ge.mode.xmlCurrentContext&&Ge.mode.xmlCurrentContext(He)||[],Mt,ot,!0))return z.Pass;var Ue=typeof we=="object"&&we.emptyTags;if(Ue&&Ne(Ue,Mt)>-1){Xe[Ot]={text:"/>",newPos:z.Pos(ot.line,ot.ch+2)};continue}var Ft=et&&Ne(et,yt)>-1;Xe[Ot]={indent:Ft,text:">"+(Ft?`
`:"")+"</"+Mt+">",newPos:Ft?z.Pos(ot.line+1,0):z.Pos(ot.line,ot.ch+1)}}for(var vt=typeof we=="object"&&we.dontIndentOnAutoClose,Ot=he.length-1;Ot>=0;Ot--){var dt=Xe[Ot];Ie.replaceRange(dt.text,he[Ot].head,he[Ot].anchor,"+insert");var St=Ie.listSelections().slice(0);St[Ot]={head:dt.newPos,anchor:dt.newPos},Ie.setSelections(St),!vt&&dt.indent&&(Ie.indentLine(dt.newPos.line,null,!0),Ie.indentLine(dt.newPos.line+1,null,!0))}}function Ee(Ie,he){for(var Xe=Ie.listSelections(),we=[],Ot=he?"/":"</",ot=Ie.getOption("autoCloseTags"),Re=typeof ot=="object"&&ot.dontIndentOnSlash,Ge=0;Ge<Xe.length;Ge++){if(!Xe[Ge].empty())return z.Pass;var He=Xe[Ge].head,Ct=Ie.getTokenAt(He),Mt=z.innerMode(Ie.getMode(),Ct.state),jt=Mt.state;if(he&&(Ct.type=="string"||Ct.string.charAt(0)!="<"||Ct.start!=He.ch-1))return z.Pass;var Dt,et=Mt.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(et&&Mt.mode.name=="javascript")Dt=Ot+"script";else if(et&&Mt.mode.name=="css")Dt=Ot+"style";else{var yt=Mt.mode.xmlCurrentContext&&Mt.mode.xmlCurrentContext(jt);if(!yt||yt.length&&$e(Ie,yt,yt[yt.length-1],He))return z.Pass;Dt=Ot+yt[yt.length-1]}Ie.getLine(He.line).charAt(Ct.end)!=">"&&(Dt+=">"),we[Ge]=Dt}if(Ie.replaceSelections(we),Xe=Ie.listSelections(),!Re)for(var Ge=0;Ge<Xe.length;Ge++)(Ge==Xe.length-1||Xe[Ge].head.line<Xe[Ge+1].head.line)&&Ie.indentLine(Xe[Ge].head.line)}function Se(Ie){return Ie.getOption("disableInput")?z.Pass:Ee(Ie,!0)}z.commands.closeTag=function(Ie){return Ee(Ie)};function Ne(Ie,he){if(Ie.indexOf)return Ie.indexOf(he);for(var Xe=0,we=Ie.length;Xe<we;++Xe)if(Ie[Xe]==he)return Xe;return-1}function $e(Ie,he,Xe,we,Ot){if(!z.scanForClosingTag)return!1;var ot=Math.min(Ie.lastLine()+1,we.line+500),Re=z.scanForClosingTag(Ie,we,null,ot);if(!Re||Re.tag!=Xe)return!1;for(var Ge=Ot?1:0,He=he.length-1;He>=0&&he[He]==Xe;He--)++Ge;we=Re.to;for(var He=1;He<Ge;He++){var Ct=z.scanForClosingTag(Ie,we,null,ot);if(!Ct||Ct.tag!=Xe)return!1;we=Ct.to}return!0}})},32855:function(an,Kt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var it=z.Pos;function ye(He,Ct){return He.line-Ct.line||He.ch-Ct.ch}var qe="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ee=qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Se=new RegExp("<(/?)(["+qe+"]["+Ee+"]*)","g");function Ne(He,Ct,Mt,jt){this.line=Ct,this.ch=Mt,this.cm=He,this.text=He.getLine(Ct),this.min=jt?Math.max(jt.from,He.firstLine()):He.firstLine(),this.max=jt?Math.min(jt.to-1,He.lastLine()):He.lastLine()}function $e(He,Ct){var Mt=He.cm.getTokenTypeAt(it(He.line,Ct));return Mt&&/\btag\b/.test(Mt)}function Ie(He){if(!(He.line>=He.max))return He.ch=0,He.text=He.cm.getLine(++He.line),!0}function he(He){if(!(He.line<=He.min))return He.text=He.cm.getLine(--He.line),He.ch=He.text.length,!0}function Xe(He){for(;;){var Ct=He.text.indexOf(">",He.ch);if(Ct==-1){if(Ie(He))continue;return}if(!$e(He,Ct+1)){He.ch=Ct+1;continue}var Mt=He.text.lastIndexOf("/",Ct),jt=Mt>-1&&!/\S/.test(He.text.slice(Mt+1,Ct));return He.ch=Ct+1,jt?"selfClose":"regular"}}function we(He){for(;;){var Ct=He.ch?He.text.lastIndexOf("<",He.ch-1):-1;if(Ct==-1){if(he(He))continue;return}if(!$e(He,Ct+1)){He.ch=Ct;continue}Se.lastIndex=Ct,He.ch=Ct;var Mt=Se.exec(He.text);if(Mt&&Mt.index==Ct)return Mt}}function Ot(He){for(;;){Se.lastIndex=He.ch;var Ct=Se.exec(He.text);if(!Ct){if(Ie(He))continue;return}if(!$e(He,Ct.index+1)){He.ch=Ct.index+1;continue}return He.ch=Ct.index+Ct[0].length,Ct}}function ot(He){for(;;){var Ct=He.ch?He.text.lastIndexOf(">",He.ch-1):-1;if(Ct==-1){if(he(He))continue;return}if(!$e(He,Ct+1)){He.ch=Ct;continue}var Mt=He.text.lastIndexOf("/",Ct),jt=Mt>-1&&!/\S/.test(He.text.slice(Mt+1,Ct));return He.ch=Ct+1,jt?"selfClose":"regular"}}function Re(He,Ct){for(var Mt=[];;){var jt=Ot(He),Dt,et=He.line,yt=He.ch-(jt?jt[0].length:0);if(!jt||!(Dt=Xe(He)))return;if(Dt!="selfClose")if(jt[1]){for(var Ue=Mt.length-1;Ue>=0;--Ue)if(Mt[Ue]==jt[2]){Mt.length=Ue;break}if(Ue<0&&(!Ct||Ct==jt[2]))return{tag:jt[2],from:it(et,yt),to:it(He.line,He.ch)}}else Mt.push(jt[2])}}function Ge(He,Ct){for(var Mt=[];;){var jt=ot(He);if(!jt)return;if(jt=="selfClose"){we(He);continue}var Dt=He.line,et=He.ch,yt=we(He);if(!yt)return;if(yt[1])Mt.push(yt[2]);else{for(var Ue=Mt.length-1;Ue>=0;--Ue)if(Mt[Ue]==yt[2]){Mt.length=Ue;break}if(Ue<0&&(!Ct||Ct==yt[2]))return{tag:yt[2],from:it(He.line,He.ch),to:it(Dt,et)}}}}z.registerHelper("fold","xml",function(He,Ct){for(var Mt=new Ne(He,Ct.line,0);;){var jt=Ot(Mt);if(!jt||Mt.line!=Ct.line)return;var Dt=Xe(Mt);if(!Dt)return;if(!jt[1]&&Dt!="selfClose"){var et=it(Mt.line,Mt.ch),yt=Re(Mt,jt[2]);return yt&&ye(yt.from,et)>0?{from:et,to:yt.from}:null}}}),z.findMatchingTag=function(He,Ct,Mt){var jt=new Ne(He,Ct.line,Ct.ch,Mt);if(!(jt.text.indexOf(">")==-1&&jt.text.indexOf("<")==-1)){var Dt=Xe(jt),et=Dt&&it(jt.line,jt.ch),yt=Dt&&we(jt);if(!(!Dt||!yt||ye(jt,Ct)>0)){var Ue={from:it(jt.line,jt.ch),to:et,tag:yt[2]};return Dt=="selfClose"?{open:Ue,close:null,at:"open"}:yt[1]?{open:Ge(jt,yt[2]),close:Ue,at:"close"}:(jt=new Ne(He,et.line,et.ch,Mt),{open:Ue,close:Re(jt,yt[2]),at:"open"})}}},z.findEnclosingTag=function(He,Ct,Mt,jt){for(var Dt=new Ne(He,Ct.line,Ct.ch,Mt);;){var et=Ge(Dt,jt);if(!et)break;var yt=new Ne(He,Ct.line,Ct.ch,Mt),Ue=Re(yt,et.tag);if(Ue)return{open:et,close:Ue}}},z.scanForClosingTag=function(He,Ct,Mt,jt){var Dt=new Ne(He,Ct.line,Ct.ch,jt?{from:0,to:jt}:null);return Re(Dt,Mt)}})},89780:function(an){(function(Kt,ie){an.exports=ie()})(this,function(){"use strict";var Kt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Kt),it=/MSIE \d/.test(Kt),ye=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),qe=/Edge\/(\d+)/.exec(Kt),Ee=it||ye||qe,Se=Ee&&(it?document.documentMode||6:+(qe||ye)[1]),Ne=!qe&&/WebKit\//.test(Kt),$e=Ne&&/Qt\/\d+\.\d+/.test(Kt),Ie=!qe&&/Chrome\//.test(Kt),he=/Opera\//.test(Kt),Xe=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Kt),Ot=/PhantomJS/.test(Kt),ot=!qe&&/AppleWebKit/.test(Kt)&&/Mobile\/\w+/.test(Kt),Re=/Android/.test(Kt),Ge=ot||Re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Kt),He=ot||/Mac/.test(ie),Ct=/\bCrOS\b/.test(Kt),Mt=/win/i.test(ie),jt=he&&Kt.match(/Version\/(\d*\.\d*)/);jt&&(jt=Number(jt[1])),jt&&jt>=15&&(he=!1,Ne=!0);var Dt=He&&($e||he&&(jt==null||jt<12.11)),et=z||Ee&&Se>=9;function yt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ue=function(a,y){var x=a.className,b=yt(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function Ft(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function vt(a,y){return Ft(a).appendChild(y)}function dt(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var re=0;re<y.length;++re)E.appendChild(y[re]);return E}function St(a,y,x,b){var E=dt(a,y,x,b);return E.setAttribute("role","presentation"),E}var Oe;document.createRange?Oe=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Oe=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(E){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function nt(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function rt(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function ue(a,y){var x=a.className;yt(y).test(x)||(a.className+=(x?" ":"")+y)}function bt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!yt(x[b]).test(y)&&(y+=" "+x[b]);return y}var Be=function(a){a.select()};ot?Be=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ee&&(Be=function(a){try{a.select()}catch(y){}});function tt(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Et(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function ge(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var re=b||0,le=E||0;;){var ce=a.indexOf(" ",re);if(ce<0||ce>=y)return le+(y-re);le+=ce-re,le+=x-le%x,re=ce+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=tt(this.onTimeout,this)};de.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},de.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function _e(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Wt=50,xt={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},Me={origin:"*mouse"},ze={origin:"+move"};function Nt(a,y,x){for(var b=0,E=0;;){var re=a.indexOf(" ",b);re==-1&&(re=a.length);var le=re-b;if(re==a.length||E+le>=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var At=[""];function Zt(a){for(;At.length<=a;)At.push(Fe(At)+" ");return At[a]}function Fe(a){return a[a.length-1]}function Lt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function st(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function ae(){}function te(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&Et(y,x),x}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var me=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ce(a){return a.charCodeAt(0)>=768&&me.test(a)}function mt(a,y,x){for(;(x<0?y>0:y<a.length)&&Ce(a.charAt(y));)y+=x;return y}function Pe(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,re=b<0?Math.ceil(E):Math.floor(E);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function Ke(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;re<a.length;++re){var le=a[re];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),E=!0)}E||b(y,x,"ltr")}var ft=null;function It(a,y,x){var b;ft=null;for(var E=0;E<a.length;++E){var re=a[E];if(re.from<y&&re.to>y)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:ft=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:ft=E)}return b!=null?b:ft}var wt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ve){return ve<=247?a.charAt(ve):1424<=ve&&ve<=1524?"R":1536<=ve&&ve<=1785?y.charAt(ve-1536):1774<=ve&&ve<=2220?"r":8192<=ve&&ve<=8203?"w":ve==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function fe(ve,Qe,ht){this.level=ve,this.from=Qe,this.to=ht}return function(ve,Qe){var ht=Qe=="ltr"?"L":"R";if(ve.length==0||Qe=="ltr"&&!b.test(ve))return!1;for(var _t=ve.length,Ht=[],bn=0;bn<_t;++bn)Ht.push(x(ve.charCodeAt(bn)));for(var Ln=0,Vn=ht;Ln<_t;++Ln){var Yn=Ht[Ln];Yn=="m"?Ht[Ln]=Vn:Vn=Yn}for(var rr=0,Qn=ht;rr<_t;++rr){var ar=Ht[rr];ar=="1"&&Qn=="r"?Ht[rr]="n":re.test(ar)&&(Qn=ar,ar=="r"&&(Ht[rr]="R"))}for(var vr=1,hr=Ht[0];vr<_t-1;++vr){var kr=Ht[vr];kr=="+"&&hr=="1"&&Ht[vr+1]=="1"?Ht[vr]="1":kr==","&&hr==Ht[vr+1]&&(hr=="1"||hr=="n")&&(Ht[vr]=hr),hr=kr}for(var Yr=0;Yr<_t;++Yr){var mi=Ht[Yr];if(mi==",")Ht[Yr]="N";else if(mi=="%"){var Jr=void 0;for(Jr=Yr+1;Jr<_t&&Ht[Jr]=="%";++Jr);for(var Wi=Yr&&Ht[Yr-1]=="!"||Jr<_t&&Ht[Jr]=="1"?"1":"N",ki=Yr;ki<Jr;++ki)Ht[ki]=Wi;Yr=Jr-1}}for(var ai=0,Ti=ht;ai<_t;++ai){var bi=Ht[ai];Ti=="L"&&bi=="1"?Ht[ai]="L":re.test(bi)&&(Ti=bi)}for(var di=0;di<_t;++di)if(E.test(Ht[di])){var li=void 0;for(li=di+1;li<_t&&E.test(Ht[li]);++li);for(var ei=(di?Ht[di-1]:ht)=="L",Li=(li<_t?Ht[li]:ht)=="L",Go=ei==Li?ei?"L":"R":ht,bo=di;bo<li;++bo)Ht[bo]=Go;di=li-1}for(var Si=[],ro,gi=0;gi<_t;)if(le.test(Ht[gi])){var bl=gi;for(++gi;gi<_t&&le.test(Ht[gi]);++gi);Si.push(new fe(0,bl,gi))}else{var lo=gi,Po=Si.length,Oo=Qe=="rtl"?1:0;for(++gi;gi<_t&&Ht[gi]!="L";++gi);for(var Di=lo;Di<gi;)if(ce.test(Ht[Di])){lo<Di&&(Si.splice(Po,0,new fe(1,lo,Di)),Po+=Oo);var Uo=Di;for(++Di;Di<gi&&ce.test(Ht[Di]);++Di);Si.splice(Po,0,new fe(2,Uo,Di)),Po+=Oo,lo=Di}else++Di;lo<gi&&Si.splice(Po,0,new fe(1,lo,gi))}return Qe=="ltr"&&(Si[0].level==1&&(ro=ve.match(/^\s+/))&&(Si[0].from=ro[0].length,Si.unshift(new fe(0,0,ro[0].length))),Fe(Si).level==1&&(ro=ve.match(/\s+$/))&&(Fe(Si).to-=ro[0].length,Si.push(new fe(0,_t-ro[0].length,_t)))),Qe=="rtl"?Si.reverse():Si}}();function Qt(a,y){var x=a.order;return x==null&&(x=a.order=wt(a.text,y)),x}var Xt=[],Gt=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||Xt).concat(x)}};function un(a,y){return a._handlers&&a._handlers[y]||Xt}function rn(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,E=b&&b[y];if(E){var re=_e(E,x);re>-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function ln(a,y){var x=un(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E<x.length;++E)x[E].apply(null,b)}function Pt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),ln(a,x||y.type,a,y),$t(y)||y.codemirrorIgnore}function nn(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)_e(x,y[b])==-1&&x.push(y[b])}function Ut(a,y){return un(a,y).length>0}function Le(a){a.prototype.on=function(y,x){Gt(this,y,x)},a.prototype.off=function(y,x){rn(this,y,x)}}function ut(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Rt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function $t(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function De(a){ut(a),Rt(a)}function Ye(a){return a.target||a.srcElement}function pt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),He&&a.ctrlKey&&y==1&&(y=3),y}var kt=function(){if(Ee&&Se<9)return!1;var a=dt("div");return"draggable"in a||"dragDrop"in a}(),Yt;function dn(a){if(Yt==null){var y=dt("span","\u200B");vt(a,dt("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Yt=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ee&&Se<8))}var x=Yt?dt("span","\u200B"):dt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Dn;function Pn(a){if(Dn!=null)return Dn;var y=vt(a,document.createTextNode("A\u062EA")),x=Oe(y,0,1).getBoundingClientRect(),b=Oe(y,1,2).getBoundingClientRect();return Ft(a),!x||x.left==x.right?!1:Dn=b.right-x.right<3}var cn=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
`,y);E==-1&&(E=a.length);var re=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},In=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},gn=function(){var a=dt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),$n=null;function An(a){if($n!=null)return $n;var y=vt(a,dt("span","x")),x=y.getBoundingClientRect(),b=Oe(y,0,1).getBoundingClientRect();return $n=Math.abs(x.left-b.left)>1}var En={},qt={};function zt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),En[a]=y}function Tt(a,y){qt[a]=y}function Vt(a){if(typeof a=="string"&&qt.hasOwnProperty(a))a=qt[a];else if(a&&typeof a.name=="string"&&qt.hasOwnProperty(a.name)){var y=qt[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 Vt("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Vt("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function tn(a,y){y=Vt(y);var x=En[y.name];if(!x)return tn(a,"text/plain");var b=x(a,y);if(xn.hasOwnProperty(y.name)){var E=xn[y.name];for(var re in E)E.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=E[re])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var xn={};function wn(a,y){var x=xn.hasOwnProperty(a)?xn[a]:xn[a]={};Et(y,x)}function mn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function vn(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 Hn(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.pos<this.string.length)return this.string.charAt(this.pos++)},zn.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},zn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},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.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},zn.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},zn.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var re=this.string.slice(this.pos).match(a);return re&&re.index>0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},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 Bt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],re=E.chunkSize();if(y<re){x=E;break}y-=re}return x.lines[y]}function Jt(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(re){var le=re.text;E==x.line&&(le=le.slice(0,x.ch)),E==y.line&&(le=le.slice(y.ch)),b.push(le),++E}),b}function On(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function Mn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Te(a){if(a.parent==null)return null;for(var y=a.parent,x=_e(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var E=0;b.children[E]!=y;++E)x+=b.children[E].chunkSize();return x+y.first}function We(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],re=E.height;if(y<re){a=E;continue e}y-=re,x+=E.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var ce=a.lines[le],fe=ce.height;if(y<fe)break;y-=fe}return x+le}function xe(a,y){return y>=a.first&&y<a.first+a.size}function ke(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Ae(a,y,x){if(x===void 0&&(x=null),!(this instanceof Ae))return new Ae(a,y,x);this.line=a,this.ch=y,this.sticky=x}function je(a,y){return a.line-y.line||a.ch-y.ch}function be(a,y){return a.sticky==y.sticky&&je(a,y)==0}function Je(a){return Ae(a.line,a.ch)}function lt(a,y){return je(a,y)<0?y:a}function gt(a,y){return je(a,y)<0?a:y}function at(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Ze(a,y){if(y.line<a.first)return Ae(a.first,0);var x=a.first+a.size-1;return y.line>x?Ae(x,Bt(a,x).text.length):Ve(y,Bt(a,y.line).text.length)}function Ve(a,y){var x=a.ch;return x==null||x>y?Ae(a.line,y):x<0?Ae(a.line,0):a}function ct(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Ze(a,y[b]);return x}var sn=function(a,y){this.state=a,this.lookAhead=y},en=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};en.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},en.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}},en.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},en.fromSaved=function(a,y,x){return y instanceof sn?new en(a,mn(a.mode,y.state),x,y.lookAhead):new en(a,mn(a.mode,y),x)},en.prototype.save=function(a){var y=a!==!1?mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new sn(y,this.maxLookAhead):y};function on(a,y,x,b){var E=[a.state.modeGen],re={};Xn(a,y.text,a.doc.mode,x,function(ve,Qe){return E.push(ve,Qe)},re,b);for(var le=x.state,ce=function(ve){x.baseTokens=E;var Qe=a.state.overlays[ve],ht=1,_t=0;x.state=!0,Xn(a,y.text,Qe.mode,x,function(Ht,bn){for(var Ln=ht;_t<Ht;){var Vn=E[ht];Vn>Ht&&E.splice(ht,1,Ht,E[ht+1],Vn),ht+=2,_t=Math.min(Ht,Vn)}if(bn)if(Qe.opaque)E.splice(Ln,ht-Ln,Ht,"overlay "+bn),ht=Ln+2;else for(;Ln<ht;Ln+=2){var Yn=E[Ln+1];E[Ln+1]=(Yn?Yn+" ":"")+"overlay "+bn}},re),x.state=le,x.baseTokens=null,x.baseTokenPos=1},fe=0;fe<a.state.overlays.length;++fe)ce(fe);return{styles:E,classes:re.bgClass||re.textClass?re:null}}function Fn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Wn(a,Te(y)),E=y.text.length>a.options.maxHighlightLength&&mn(a.doc.mode,b.state),re=on(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=re.styles,re.classes?y.styleClasses=re.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Wn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new en(b,!0,y);var re=Jn(a,y,x),le=re>b.first&&Bt(b,re-1).stateAfter,ce=le?en.fromSaved(b,le,re):new en(b,Hn(b.mode),re);return b.iter(re,y,function(fe){Un(a,fe.text,ce);var ve=ce.line;fe.stateAfter=ve==y-1||ve%5==0||ve>=E.viewFrom&&ve<E.viewTo?ce.save():null,ce.nextLine()}),x&&(b.modeFrontier=ce.line),ce}function Un(a,y,x,b){var E=a.doc.mode,re=new zn(y,a.options.tabSize,x);for(re.start=re.pos=b||0,y==""&&Rn(E,x.state);!re.eol();)Bn(E,re,x.state),re.start=re.pos}function Rn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=vn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Bn(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=vn(a,x).mode);var re=a.token(y,x);if(y.pos>y.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var Nn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Gn(a,y,x,b){var E=a.doc,re=E.mode,le;y=Ze(E,y);var ce=Bt(E,y.line),fe=Wn(a,y.line,x),ve=new zn(ce.text,a.options.tabSize,fe),Qe;for(b&&(Qe=[]);(b||ve.pos<y.ch)&&!ve.eol();)ve.start=ve.pos,le=Bn(re,ve,fe.state),b&&Qe.push(new Nn(ve,le,mn(E.mode,fe.state)));return b?Qe:new Nn(ve,le,fe.state)}function qn(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function Xn(a,y,x,b,E,re,le){var ce=x.flattenSpans;ce==null&&(ce=a.options.flattenSpans);var fe=0,ve=null,Qe=new zn(y,a.options.tabSize,b),ht,_t=a.options.addModeClass&&[null];for(y==""&&qn(Rn(x,b.state),re);!Qe.eol();){if(Qe.pos>a.options.maxHighlightLength?(ce=!1,le&&Un(a,y,b,Qe.pos),Qe.pos=y.length,ht=null):ht=qn(Bn(x,Qe,b.state,_t),re),_t){var Ht=_t[0].name;Ht&&(ht="m-"+(ht?Ht+" "+ht:Ht))}if(!ce||ve!=ht){for(;fe<Qe.start;)fe=Math.min(Qe.start,fe+5e3),E(fe,ve);ve=ht}Qe.start=Qe.pos}for(;fe<Qe.pos;){var bn=Math.min(Qe.pos,fe+5e3);E(bn,ve),fe=bn}}function Jn(a,y,x){for(var b,E,re=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ce=y;ce>le;--ce){if(ce<=re.first)return re.first;var fe=Bt(re,ce-1),ve=fe.stateAfter;if(ve&&(!x||ce+(ve instanceof sn?ve.lookAhead:0)<=re.modeFrontier))return ce;var Qe=ge(fe.text,null,a.options.tabSize);(E==null||b>Qe)&&(E=ce-1,b=Qe)}return E}function kn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var E=Bt(a,b).stateAfter;if(E&&(!(E instanceof sn)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var nr=!1,_n=!1;function dr(){nr=!0}function pr(){_n=!0}function sr(a,y,x){this.marker=a,this.from=y,this.to=x}function ur(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function yr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function lr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function fr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ce=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||!re.marker.insertLeft)){var fe=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);(b||(b=[])).push(new sr(le,re.from,fe?null:re.to))}}return b}function tr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ce=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var fe=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);(b||(b=[])).push(new sr(le,fe?null:re.from-y,re.to==null?null:re.to-y))}}return b}function mr(a,y){if(y.full)return null;var x=xe(a,y.from.line)&&Bt(a,y.from.line).markedSpans,b=xe(a,y.to.line)&&Bt(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,re=y.to.ch,le=je(y.from,y.to)==0,ce=fr(x,E,le),fe=tr(b,re,le),ve=y.text.length==1,Qe=Fe(y.text).length+(ve?E:0);if(ce)for(var ht=0;ht<ce.length;++ht){var _t=ce[ht];if(_t.to==null){var Ht=ur(fe,_t.marker);Ht?ve&&(_t.to=Ht.to==null?null:Ht.to+Qe):_t.to=E}}if(fe)for(var bn=0;bn<fe.length;++bn){var Ln=fe[bn];if(Ln.to!=null&&(Ln.to+=Qe),Ln.from==null){var Vn=ur(ce,Ln.marker);Vn||(Ln.from=Qe,ve&&(ce||(ce=[])).push(Ln))}else Ln.from+=Qe,ve&&(ce||(ce=[])).push(Ln)}ce&&(ce=br(ce)),fe&&fe!=ce&&(fe=br(fe));var Yn=[ce];if(!ve){var rr=y.text.length-2,Qn;if(rr>0&&ce)for(var ar=0;ar<ce.length;++ar)ce[ar].to==null&&(Qn||(Qn=[])).push(new sr(ce[ar].marker,null,null));for(var vr=0;vr<rr;++vr)Yn.push(Qn);Yn.push(fe)}return Yn}function br(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Hr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Ht){if(Ht.markedSpans)for(var bn=0;bn<Ht.markedSpans.length;++bn){var Ln=Ht.markedSpans[bn].marker;Ln.readOnly&&(!b||_e(b,Ln)==-1)&&(b||(b=[])).push(Ln)}}),!b)return null;for(var E=[{from:y,to:x}],re=0;re<b.length;++re)for(var le=b[re],ce=le.find(0),fe=0;fe<E.length;++fe){var ve=E[fe];if(!(je(ve.to,ce.from)<0||je(ve.from,ce.to)>0)){var Qe=[fe,1],ht=je(ve.from,ce.from),_t=je(ve.to,ce.to);(ht<0||!le.inclusiveLeft&&!ht)&&Qe.push({from:ve.from,to:ce.from}),(_t>0||!le.inclusiveRight&&!_t)&&Qe.push({from:ce.to,to:ve.to}),E.splice.apply(E,Qe),fe+=Qe.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Tr(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function Ir(a){return a.inclusiveLeft?-1:0}function Pr(a){return a.inclusiveRight?1:0}function or(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),re=je(b.from,E.from)||Ir(a)-Ir(y);if(re)return-re;var le=je(b.to,E.to)||Pr(a)-Pr(y);return le||y.id-a.id}function ir(a,y){var x=_n&&a.markedSpans,b;if(x)for(var E=void 0,re=0;re<x.length;++re)E=x[re],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||or(b,E.marker)<0)&&(b=E.marker);return b}function er(a){return ir(a,!0)}function pn(a){return ir(a,!1)}function Sn(a,y){var x=_n&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var re=x[E];re.marker.collapsed&&(re.from==null||re.from<y)&&(re.to==null||re.to>y)&&(!b||or(b,re.marker)<0)&&(b=re.marker)}return b}function Cn(a,y,x,b,E){var re=Bt(a,y),le=_n&&re.markedSpans;if(le)for(var ce=0;ce<le.length;++ce){var fe=le[ce];if(fe.marker.collapsed){var ve=fe.marker.find(0),Qe=je(ve.from,x)||Ir(fe.marker)-Ir(E),ht=je(ve.to,b)||Pr(fe.marker)-Pr(E);if(!(Qe>=0&&ht<=0||Qe<=0&&ht>=0)&&(Qe<=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?je(ve.to,x)>=0:je(ve.to,x)>0)||Qe>=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?je(ve.from,b)<=0:je(ve.from,b)<0)))return!0}}}function fn(a){for(var y;y=er(a);)a=y.find(-1,!0).line;return a}function Zn(a){for(var y;y=pn(a);)a=y.find(1,!0).line;return a}function Kn(a){for(var y,x;y=pn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function yn(a,y){var x=Bt(a,y),b=fn(x);return x==b?y:Te(b)}function hn(a,y){if(y>a.lastLine())return y;var x=Bt(a,y),b;if(!Tn(a,x))return y;for(;b=pn(x);)x=b.find(1,!0).line;return Te(x)+1}function Tn(a,y){var x=_n&&y.markedSpans;if(x){for(var b=void 0,E=0;E<x.length;++E)if(b=x[E],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&jn(a,y,b))return!0}}}function jn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return jn(a,b.line,ur(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,re=0;re<y.markedSpans.length;++re)if(E=y.markedSpans[re],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&jn(a,y,E))return!0}function cr(a){a=fn(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var E=x.lines[b];if(E==a)break;y+=E.height}for(var re=x.parent;re;x=re,re=x.parent)for(var le=0;le<re.children.length;++le){var ce=re.children[le];if(ce==x)break;y+=ce.height}return y}function Mr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=er(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=pn(b);){var re=x.find(0,!0);y-=b.text.length-re.from.ch,b=re.to.line,y+=b.text.length-re.to.ch}return y}function Ar(a){var y=a.display,x=a.doc;y.maxLine=Bt(x,x.first),y.maxLineLength=Mr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=Mr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Rr=function(a,y,x){this.text=a,Tr(this,y),this.height=x?x(this):1};Rr.prototype.lineNo=function(){return Te(this)},Le(Rr);function Lr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Tr(a,x);var E=b?b(a):1;E!=a.height&&Mn(a,E)}function Fr(a){a.parent=null,Er(a)}var Gr={},jr={};function Kr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?jr:Gr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=St("span",null,null,Ne?"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 E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Pn(a.display.measure)&&(le=Qt(re,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Te(re);Wr(re,b,Fn(a,re,ce)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=bt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=bt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(dn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ne){var fe=b.content.lastChild;(/\bcm-tab\b/.test(fe.className)||fe.querySelector&&fe.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return ln(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=bt(b.pre.className,b.textClass||"")),b}function Ei(a){var y=dt("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Ni(a,y,x,b,E,re,le){if(y){var ce=a.splitSpaces?xi(y,a.trailingSpace):y,fe=a.cm.state.specialChars,ve=!1,Qe;if(!fe.test(y))a.col+=y.length,Qe=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,Qe),Ee&&Se<9&&(ve=!0),a.pos+=y.length;else{Qe=document.createDocumentFragment();for(var ht=0;;){fe.lastIndex=ht;var _t=fe.exec(y),Ht=_t?_t.index-ht:y.length-ht;if(Ht){var bn=document.createTextNode(ce.slice(ht,ht+Ht));Ee&&Se<9?Qe.appendChild(dt("span",[bn])):Qe.appendChild(bn),a.map.push(a.pos,a.pos+Ht,bn),a.col+=Ht,a.pos+=Ht}if(!_t)break;ht+=Ht+1;var Ln=void 0;if(_t[0]==" "){var Vn=a.cm.options.tabSize,Yn=Vn-a.col%Vn;Ln=Qe.appendChild(dt("span",Zt(Yn),"cm-tab")),Ln.setAttribute("role","presentation"),Ln.setAttribute("cm-text"," "),a.col+=Yn}else _t[0]=="\r"||_t[0]==`
`?(Ln=Qe.appendChild(dt("span",_t[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ln.setAttribute("cm-text",_t[0]),a.col+=1):(Ln=a.cm.options.specialCharPlaceholder(_t[0]),Ln.setAttribute("cm-text",_t[0]),Ee&&Se<9?Qe.appendChild(dt("span",[Ln])):Qe.appendChild(Ln),a.col+=1);a.map.push(a.pos,a.pos+1,Ln),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||ve||re||le){var rr=x||"";b&&(rr+=b),E&&(rr+=E);var Qn=dt("span",[Qe],rr,re);if(le)for(var ar in le)le.hasOwnProperty(ar)&&ar!="style"&&ar!="class"&&Qn.setAttribute(ar,le[ar]);return a.content.appendChild(Qn)}a.content.appendChild(Qe)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var re=a.charAt(E);re==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(re="\xA0"),b+=re,x=re==" "}return b}function si(a,y){return function(x,b,E,re,le,ce,fe){E=E?E+" cm-force-border":"cm-force-border";for(var ve=x.pos,Qe=ve+b.length;;){for(var ht=void 0,_t=0;_t<y.length&&(ht=y[_t],!(ht.to>ve&&ht.from<=ve));_t++);if(ht.to>=Qe)return a(x,b,E,re,le,ce,fe);a(x,b.slice(0,ht.to-ve),E,re,null,ce,fe),re=null,b=b.slice(ht.to-ve),ve=ht.to}}}function Ri(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function Wr(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,E.slice(re,re=x[le]),Kr(x[le+1],y.cm.options));return}for(var ce=E.length,fe=0,ve=1,Qe="",ht,_t,Ht=0,bn,Ln,Vn,Yn,rr;;){if(Ht==fe){bn=Ln=Vn=_t="",rr=null,Yn=null,Ht=1/0;for(var Qn=[],ar=void 0,vr=0;vr<b.length;++vr){var hr=b[vr],kr=hr.marker;if(kr.type=="bookmark"&&hr.from==fe&&kr.widgetNode)Qn.push(kr);else if(hr.from<=fe&&(hr.to==null||hr.to>fe||kr.collapsed&&hr.to==fe&&hr.from==fe)){if(hr.to!=null&&hr.to!=fe&&Ht>hr.to&&(Ht=hr.to,Ln=""),kr.className&&(bn+=" "+kr.className),kr.css&&(_t=(_t?_t+";":"")+kr.css),kr.startStyle&&hr.from==fe&&(Vn+=" "+kr.startStyle),kr.endStyle&&hr.to==Ht&&(ar||(ar=[])).push(kr.endStyle,hr.to),kr.title&&((rr||(rr={})).title=kr.title),kr.attributes)for(var Yr in kr.attributes)(rr||(rr={}))[Yr]=kr.attributes[Yr];kr.collapsed&&(!Yn||or(Yn.marker,kr)<0)&&(Yn=hr)}else hr.from>fe&&Ht>hr.from&&(Ht=hr.from)}if(ar)for(var mi=0;mi<ar.length;mi+=2)ar[mi+1]==Ht&&(Ln+=" "+ar[mi]);if(!Yn||Yn.from==fe)for(var Jr=0;Jr<Qn.length;++Jr)Ri(y,0,Qn[Jr]);if(Yn&&(Yn.from||0)==fe){if(Ri(y,(Yn.to==null?ce+1:Yn.to)-fe,Yn.marker,Yn.from==null),Yn.to==null)return;Yn.to==fe&&(Yn=!1)}}if(fe>=ce)break;for(var Wi=Math.min(ce,Ht);;){if(Qe){var ki=fe+Qe.length;if(!Yn){var ai=ki>Wi?Qe.slice(0,Wi-fe):Qe;y.addToken(y,ai,ht?ht+bn:bn,Vn,fe+ai.length==Ht?Ln:"",_t,rr)}if(ki>=Wi){Qe=Qe.slice(Wi-fe),fe=Wi;break}fe=ki,Vn=""}Qe=E.slice(re,re=x[ve++]),ht=Kr(x[ve++],y.cm.options)}}}function _i(a,y,x){this.line=y,this.rest=Kn(y),this.size=this.rest?Te(Fe(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Tn(a,y)}function qr(a,y,x){for(var b=[],E,re=y;re<x;re=E){var le=new _i(a.doc,Bt(a.doc,re),re);E=re+le.size,b.push(le)}return b}var xr=null;function zr(a){xr?xr.ops.push(a):a.ownsGroup=xr={ops:[a],delayedCallbacks:[]}}function Vr(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var E=a.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<y.length)}function wr(a,y){var x=a.ownsGroup;if(x)try{Vr(x)}finally{xr=null,y(x)}}var Nr=null;function Br(a,y){var x=un(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;xr?E=xr.delayedCallbacks:Nr?E=Nr:(E=Nr=[],setTimeout(ui,0));for(var re=function(ce){E.push(function(){return x[ce].apply(null,b)})},le=0;le<x.length;++le)re(le)}}function ui(){var a=Nr;Nr=null;for(var y=0;y<a.length;++y)a[y]()}function Pi(a,y,x,b){for(var E=0;E<y.changes.length;E++){var re=y.changes[E];re=="text"?so(a,y):re=="gutter"?Dr(a,y,x,b):re=="class"?gr(a,y):re=="widget"&&Cr(a,y,b)}y.changes=null}function fi(a){return a.node==a.text&&(a.node=dt("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ee&&Se<8&&(a.node.style.zIndex=2)),a.node}function ni(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=fi(y);y.background=b.insertBefore(dt("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function xo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):ti(a,y)}function so(a,y){var x=y.text.className,b=xo(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,gr(a,y)):x&&(y.text.className=x)}function gr(a,y){ni(a,y),y.line.wrapClass?fi(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function Dr(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var E=fi(y);y.gutterBackground=dt("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var re=y.line.gutterMarkers;if(a.options.lineNumbers||re){var le=fi(y),ce=y.gutter=dt("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ce),le.insertBefore(ce,y.text),y.line.gutterClass&&(ce.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(y.lineNumber=ce.appendChild(dt("div",ke(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),re)for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var ve=a.display.gutterSpecs[fe].className,Qe=re.hasOwnProperty(ve)&&re[ve];Qe&&ce.appendChild(dt("div",[Qe],"CodeMirror-gutter-elt","left: "+b.gutterLeft[ve]+"px; width: "+b.gutterWidth[ve]+"px"))}}}function Cr(a,y,x){y.alignable&&(y.alignable=null);for(var b=yt("CodeMirror-linewidget"),E=y.node.firstChild,re=void 0;E;E=re)re=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);$r(a,y,x)}function Sr(a,y,x,b){var E=xo(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),gr(a,y),Dr(a,y,x,b),$r(a,y,b),y.node}function $r(a,y,x){if(Xr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Xr(a,y.rest[b],y,x,!1)}function Xr(a,y,x,b,E){if(y.widgets)for(var re=fi(x),le=0,ce=y.widgets;le<ce.length;++le){var fe=ce[le],ve=dt("div",[fe.node],"CodeMirror-linewidget"+(fe.className?" "+fe.className:""));fe.handleMouseEvents||ve.setAttribute("cm-ignore-events","true"),Ki(fe,ve,x,b),a.display.input.setUneditable(ve),E&&fe.above?re.insertBefore(ve,x.gutter||x.text):re.appendChild(ve),Br(fe,"redraw")}}function Ki(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var E=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(E-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function Ii(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!nt(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),vt(y.display.measure,dt("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function vi(a,y){for(var x=Ye(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function ri(a){return a.lineSpace.offsetTop}function Vi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function eo(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=vt(a.measure,dt("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function Fi(a){return Wt-a.display.nativeBarWidth}function to(a){return a.display.scroller.clientWidth-Fi(a)-a.display.barWidth}function io(a){return a.display.scroller.clientHeight-Fi(a)-a.display.barHeight}function Xi(a,y,x){var b=a.options.lineWrapping,E=b&&to(a);if(!y.measure.heights||b&&y.measure.width!=E){var re=y.measure.heights=[];if(b){y.measure.width=E;for(var le=y.text.firstChild.getClientRects(),ce=0;ce<le.length-1;ce++){var fe=le[ce],ve=le[ce+1];Math.abs(fe.bottom-ve.bottom)>2&&re.push((fe.bottom+ve.top)/2-x.top)}}re.push(x.bottom-x.top)}}function Mo(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var E=0;E<a.rest.length;E++)if(Te(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Va(a,y){y=fn(y);var x=Te(y),b=a.display.externalMeasured=new _i(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,vt(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Gi(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[So(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function uo(a,y){var x=Te(y),b=no(a,x);b&&!b.text?b=null:b&&b.changes&&(Pi(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=Va(a,y));var E=Mo(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Gi(a,y,x,b,E){y.before&&(x=-1);var re=x+(b||""),le;return y.cache.hasOwnProperty(re)?le=y.cache[re]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Xi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[re]=le)),{left:le.left,right:le.right,top:E?le.rtop:le.top,bottom:E?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,E,re,le,ce,fe,ve=0;ve<a.length;ve+=3)if(ce=a[ve],fe=a[ve+1],y<ce?(E=0,re=1,le="left"):y<fe?(E=y-ce,re=E+1):(ve==a.length-3||y==fe&&a[ve+3]>y)&&(re=fe-ce,E=re-1,y>=fe&&(le="right")),E!=null){if(b=a[ve+2],ce==fe&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;ve&&a[ve-2]==a[ve-3]&&a[ve-1].insertLeft;)b=a[(ve-=3)+2],le="left";if(x=="right"&&E==fe-ce)for(;ve<a.length-3&&a[ve+3]==a[ve+4]&&!a[ve+5].insertLeft;)b=a[(ve+=3)+2],le="right";break}return{node:b,start:E,end:re,collapse:le,coverStart:ce,coverEnd:fe}}function Ga(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var E=a.length-1;E>=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),re=E.node,le=E.start,ce=E.end,fe=E.collapse,ve;if(re.nodeType==3){for(var Qe=0;Qe<4;Qe++){for(;le&&Ce(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce<E.coverEnd&&Ce(y.line.text.charAt(E.coverStart+ce));)++ce;if(Ee&&Se<9&&le==0&&ce==E.coverEnd-E.coverStart?ve=re.parentNode.getBoundingClientRect():ve=Ga(Oe(re,le,ce).getClientRects(),b),ve.left||ve.right||le==0)break;ce=le,le=le-1,fe="right"}Ee&&Se<11&&(ve=Ua(a.display.measure,ve))}else{le>0&&(fe=b="right");var ht;a.options.lineWrapping&&(ht=re.getClientRects()).length>1?ve=ht[b=="right"?ht.length-1:0]:ve=re.getBoundingClientRect()}if(Ee&&Se<9&&!le&&(!ve||!ve.left&&!ve.right)){var _t=re.parentNode.getClientRects()[0];_t?ve={left:_t.left,right:_t.left+Qi(a.display),top:_t.top,bottom:_t.bottom}:ve=ba}for(var Ht=ve.top-y.rect.top,bn=ve.bottom-y.rect.top,Ln=(Ht+bn)/2,Vn=y.view.measure.heights,Yn=0;Yn<Vn.length-1&&!(Ln<Vn[Yn]);Yn++);var rr=Yn?Vn[Yn-1]:0,Qn=Vn[Yn],ar={left:(fe=="right"?ve.right:ve.left)-y.rect.left,right:(fe=="left"?ve.left:ve.right)-y.rect.left,top:rr,bottom:Qn};return!ve.left&&!ve.right&&(ar.bogus=!0),a.options.singleCursorHeightPerLine||(ar.rtop=Ht,ar.rbottom=bn),ar}function Ua(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!An(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 _o(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function Ko(a){a.display.externalMeasure=null,Ft(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)_o(a.display.view[y])}function Co(a){Ko(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return Ie&&Re?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function wa(){return Ie&&Re?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=Ii(a.widgets[x]));return y}function Bo(a,y,x,b,E){if(!E){var re=Yo(y);x.top+=re,x.bottom+=re}if(b=="line")return x;b||(b="local");var le=cr(y);if(b=="local"?le+=ri(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ce=a.display.lineSpace.getBoundingClientRect();le+=ce.top+(b=="window"?0:wa());var fe=ce.left+(b=="window"?0:Xo());x.left+=fe,x.right+=fe}return x.top+=le,x.bottom+=le,x}function Sa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=wa();else if(x=="local"||!x){var re=a.display.sizer.getBoundingClientRect();b+=re.left,E+=re.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:E-le.top}}function ko(a,y,x,b,E){return b||(b=Bt(a.doc,y.line)),Bo(a,b,ya(a,b,y.ch,E),x)}function Oi(a,y,x,b,E,re){b=b||Bt(a.doc,y.line),E||(E=uo(a,b));function le(bn,Ln){var Vn=Gi(a,E,bn,Ln?"right":"left",re);return Ln?Vn.left=Vn.right:Vn.right=Vn.left,Bo(a,b,Vn,x)}var ce=Qt(b,a.doc.direction),fe=y.ch,ve=y.sticky;if(fe>=b.text.length?(fe=b.text.length,ve="before"):fe<=0&&(fe=0,ve="after"),!ce)return le(ve=="before"?fe-1:fe,ve=="before");function Qe(bn,Ln,Vn){var Yn=ce[Ln],rr=Yn.level==1;return le(Vn?bn-1:bn,rr!=Vn)}var ht=It(ce,fe,ve),_t=ft,Ht=Qe(fe,ht,ve=="before");return _t!=null&&(Ht.other=Qe(fe,_t,ve!="before")),Ht}function Zr(a,y){var x=0;y=Ze(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=Bt(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Or(a,y,x,b,E){var re=Ae(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Or(b.first,0,null,-1,-1);var E=We(b,x),re=b.first+b.size-1;if(E>re)return Or(b.first+b.size-1,Bt(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=Bt(b,E);;){var ce=Yi(a,le,E,y,x),fe=Sn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!fe)return ce;var ve=fe.find(1);if(ve.line==E)return ve;le=Bt(b,E=ve.line)}}function Ci(a,y,x,b){b-=Yo(y);var E=y.text.length,re=Pe(function(le){return Gi(a,x,le-1).bottom<=b},E,0);return E=Pe(function(le){return Gi(a,x,le).top>b},re,E),{begin:re,end:E}}function ii(a,y,x,b){x||(x=uo(a,y));var E=Bo(a,y,Gi(a,x,b),"line").top;return Ci(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Yi(a,y,x,b,E){E-=cr(y);var re=uo(a,y),le=Yo(y),ce=0,fe=y.text.length,ve=!0,Qe=Qt(y,a.doc.direction);if(Qe){var ht=(a.options.lineWrapping?oo:Ui)(a,y,x,re,Qe,b,E);ve=ht.level!=1,ce=ve?ht.from:ht.to-1,fe=ve?ht.to:ht.from-1}var _t=null,Ht=null,bn=Pe(function(vr){var hr=Gi(a,re,vr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(_t=vr,Ht=hr),!0):!1},ce,fe),Ln,Vn,Yn=!1;if(Ht){var rr=b-Ht.left<Ht.right-b,Qn=rr==ve;bn=_t+(Qn?0:1),Vn=Qn?"after":"before",Ln=rr?Ht.left:Ht.right}else{!ve&&(bn==fe||bn==ce)&&bn++,Vn=bn==0?"after":bn==y.text.length?"before":Gi(a,re,bn-(ve?1:0)).bottom+le<=E==ve?"after":"before";var ar=Oi(a,Ae(x,bn,Vn),"line",y,re);Ln=ar.left,Yn=E<ar.top?-1:E>=ar.bottom?1:0}return bn=mt(y.text,bn,1),Or(x,bn,Vn,Yn,b-Ln)}function Ui(a,y,x,b,E,re,le){var ce=Pe(function(ht){var _t=E[ht],Ht=_t.level!=1;return ci(Oi(a,Ae(x,Ht?_t.to:_t.from,Ht?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),fe=E[ce];if(ce>0){var ve=fe.level!=1,Qe=Oi(a,Ae(x,ve?fe.from:fe.to,ve?"after":"before"),"line",y,b);ci(Qe,re,le,!0)&&Qe.top>le&&(fe=E[ce-1])}return fe}function oo(a,y,x,b,E,re,le){var ce=Ci(a,y,b,le),fe=ce.begin,ve=ce.end;/\s/.test(y.text.charAt(ve-1))&&ve--;for(var Qe=null,ht=null,_t=0;_t<E.length;_t++){var Ht=E[_t];if(!(Ht.from>=ve||Ht.to<=fe)){var bn=Ht.level!=1,Ln=Gi(a,b,bn?Math.min(ve,Ht.to)-1:Math.max(fe,Ht.from)).right,Vn=Ln<re?re-Ln+1e9:Ln-re;(!Qe||ht>Vn)&&(Qe=Ht,ht=Vn)}}return Qe||(Qe=E[E.length-1]),Qe.from<fe&&(Qe={from:fe,to:Qe.to,level:Qe.level}),Qe.to>ve&&(Qe={from:Qe.from,to:ve,level:Qe.level}),Qe}var zi;function Hi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(zi==null){zi=dt("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)zi.appendChild(document.createTextNode("x")),zi.appendChild(dt("br"));zi.appendChild(document.createTextNode("x"))}vt(a.measure,zi);var x=zi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Ft(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=dt("span","xxxxxxxxxx"),x=dt("pre",[y],"CodeMirror-line-like");vt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=re.offsetLeft+re.clientLeft+E,b[ce]=re.clientWidth}return{fixedPos:_a(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function _a(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Hi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(Tn(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le<E.widgets.length;le++)E.widgets[le].height&&(re+=E.widgets[le].height);return x?re+(Math.ceil(E.text.length/b)||1)*y:re+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var E=x(b);E!=b.height&&Mn(b,E)})}function wo(a,y,x,b){var E=a.display;if(!x&&Ye(y).getAttribute("cm-not-content")=="true")return null;var re,le,ce=E.lineSpace.getBoundingClientRect();try{re=y.clientX-ce.left,le=y.clientY-ce.top}catch(ht){return null}var fe=yi(a,re,le),ve;if(b&&fe.xRel>0&&(ve=Bt(a.doc,fe.line).text).length==fe.ch){var Qe=ge(ve,ve.length,a.options.tabSize)-ve.length;fe=Ae(fe.line,Math.max(0,Math.round((re-eo(a.display).left)/Qi(a.display))-Qe))}return fe}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Mi(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var E=a.display;if(b&&x<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)_n&&yn(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)_n&&hn(a.doc,x+b)>E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ce=Ea(a,y,y,-1),fe=Ea(a,x,x+b,1);ce&&fe?(E.view=E.view.slice(0,ce.index).concat(qr(a,ce.lineN,fe.lineN)).concat(E.view.slice(fe.index)),E.viewTo+=b):ho(a)}var ve=E.externalMeasured;ve&&(x<ve.lineN?ve.lineN+=b:y<ve.lineN+ve.size&&(E.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var re=b.view[So(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);_e(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),re,le=a.display.view;if(!_n||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,fe=0;fe<E;fe++)ce+=le[fe].size;if(ce!=y){if(b>0){if(E==le.length-1)return null;re=ce+le[E].size-y,E++}else re=ce-y;y+=re,x+=re}for(;yn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function Hs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(So(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(qr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function wl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Sl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),re=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var ce=x.sel.ranges[le];if(!(ce.from().line>=a.display.viewTo||ce.to().line<a.display.viewFrom)){var fe=ce.empty();(fe||a.options.showCursorWhenSelecting)&&El(a,ce.head,E),fe||js(a,ce,re)}}return b}function El(a,y,x){var b=Oi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(dt("div","\xA0","CodeMirror-cursor"));if(E.style.left=b.left+"px",E.style.top=b.top+"px",E.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var re=x.appendChild(dt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));re.style.display="",re.style.left=b.other.left+"px",re.style.top=b.other.top+"px",re.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function js(a,y,x){var b=a.display,E=a.doc,re=document.createDocumentFragment(),le=eo(a.display),ce=le.left,fe=Math.max(b.sizerWidth,to(a)-b.sizer.offsetLeft)-le.right,ve=E.direction=="ltr";function Qe(Qn,ar,vr,hr){ar<0&&(ar=0),ar=Math.round(ar),hr=Math.round(hr),re.appendChild(dt("div",null,"CodeMirror-selected","position: absolute; left: "+Qn+`px;
top: `+ar+"px; width: "+(vr==null?fe-Qn:vr)+`px;
height: `+(hr-ar)+"px"))}function ht(Qn,ar,vr){var hr=Bt(E,Qn),kr=hr.text.length,Yr,mi;function Jr(ai,Ti){return ko(a,Ae(Qn,ai),"div",hr,Ti)}function Wi(ai,Ti,bi){var di=ii(a,hr,null,ai),li=Ti=="ltr"==(bi=="after")?"left":"right",ei=bi=="after"?di.begin:di.end-(/\s/.test(hr.text.charAt(di.end-1))?2:1);return Jr(ei,li)[li]}var ki=Qt(hr,E.direction);return Ke(ki,ar||0,vr==null?kr:vr,function(ai,Ti,bi,di){var li=bi=="ltr",ei=Jr(ai,li?"left":"right"),Li=Jr(Ti-1,li?"right":"left"),Go=ar==null&&ai==0,bo=vr==null&&Ti==kr,Si=di==0,ro=!ki||di==ki.length-1;if(Li.top-ei.top<=3){var gi=(ve?Go:bo)&&Si,bl=(ve?bo:Go)&&ro,lo=gi?ce:(li?ei:Li).left,Po=bl?fe:(li?Li:ei).right;Qe(lo,ei.top,Po-lo,ei.bottom)}else{var Oo,Di,Uo,xl;li?(Oo=ve&&Go&&Si?ce:ei.left,Di=ve?fe:Wi(ai,bi,"before"),Uo=ve?ce:Wi(Ti,bi,"after"),xl=ve&&bo&&ro?fe:Li.right):(Oo=ve?Wi(ai,bi,"before"):ce,Di=!ve&&Go&&Si?fe:ei.right,Uo=!ve&&bo&&ro?ce:Li.left,xl=ve?Wi(Ti,bi,"after"):fe),Qe(Oo,ei.top,Di-Oo,ei.bottom),ei.bottom<Li.top&&Qe(ce,ei.bottom,null,Li.top),Qe(Uo,Li.top,xl-Uo,Li.bottom)}(!Yr||Ia(ei,Yr)<0)&&(Yr=ei),Ia(Li,Yr)<0&&(Yr=Li),(!mi||Ia(ei,mi)<0)&&(mi=ei),Ia(Li,mi)<0&&(mi=Li)}),{start:Yr,end:mi}}var _t=y.from(),Ht=y.to();if(_t.line==Ht.line)ht(_t.line,_t.ch,Ht.ch);else{var bn=Bt(E,_t.line),Ln=Bt(E,Ht.line),Vn=fn(bn)==fn(Ln),Yn=ht(_t.line,_t.ch,Vn?bn.text.length+1:null).end,rr=ht(Ht.line,Vn?0:null,Ht.ch).start;Vn&&(Yn.top<rr.top-2?(Qe(Yn.right,Yn.top,null,Yn.bottom),Qe(ce,rr.top,rr.left,rr.bottom)):Qe(Yn.right,Yn.top,rr.left-Yn.right,Yn.bottom)),Yn.bottom<rr.top&&Qe(ce,Yn.bottom,null,rr.top)}x.appendChild(re)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?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 Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Al(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||(ln(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ne&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function To(a,y){a.state.delayingBlurEvent||(a.state.focused&&(ln(a,"blur",a,y),a.state.focused=!1,Ue(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Aa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],re=a.options.lineWrapping,le=void 0,ce=0;if(!E.hidden){if(Ee&&Se<8){var fe=E.node.offsetTop+E.node.offsetHeight;le=fe-x,x=fe}else{var ve=E.node.getBoundingClientRect();le=ve.bottom-ve.top,!re&&E.text.firstChild&&(ce=E.text.firstChild.getBoundingClientRect().right-ve.left-1)}var Qe=E.line.height-le;if((Qe>.005||Qe<-.005)&&(Mn(E.line,le),Dl(E.line),E.rest))for(var ht=0;ht<E.rest.length;ht++)Dl(E.rest[ht]);if(ce>a.display.sizerWidth){var _t=Math.ceil(ce/Qi(a.display));_t>a.display.maxLineLength&&(a.display.maxLineLength=_t,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Dl(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function Da(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-ri(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,re=We(y,b),le=We(y,E);if(x&&x.ensure){var ce=x.ensure.from.line,fe=x.ensure.to.line;ce<re?(re=ce,le=We(y,cr(Bt(y,ce))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=le&&(re=We(y,cr(Bt(y,fe))-a.wrapper.clientHeight),le=fe)}return{from:re,to:Math.max(le,re+1)}}function Ws(a,y){if(!Pt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!Ot){var re=dt("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-ri(a.display))+`px;
height: `+(y.bottom-y.top+Fi(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function Zs(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Ae(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Ae(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ce=Oi(a,y),fe=!x||x==y?ce:Oi(a,x);E={left:Math.min(ce.left,fe.left),top:Math.min(ce.top,fe.top)-b,right:Math.max(ce.left,fe.left),bottom:Math.max(ce.bottom,fe.bottom)+b};var ve=Qa(a,E),Qe=a.doc.scrollTop,ht=a.doc.scrollLeft;if(ve.scrollTop!=null&&(qo(a,ve.scrollTop),Math.abs(a.doc.scrollTop-Qe)>1&&(le=!0)),ve.scrollLeft!=null&&(Eo(a,ve.scrollLeft),Math.abs(a.doc.scrollLeft-ht)>1&&(le=!0)),!le)break}return E}function $s(a,y){var x=Qa(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=Hi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=io(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ce=a.doc.height+Vi(x),fe=y.top<b,ve=y.bottom>ce-b;if(y.top<E)le.scrollTop=fe?0:y.top;else if(y.bottom>E+re){var Qe=Math.min(y.top,(ve?ce:y.bottom)-re);Qe!=E&&(le.scrollTop=Qe)}var ht=a.options.fixedGutter?0:x.gutters.offsetWidth,_t=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-ht,Ht=to(a)-x.gutters.offsetWidth,bn=y.right-y.left>Ht;return bn&&(y.right=y.left+Ht),y.left<10?le.scrollLeft=0:y.left<_t?le.scrollLeft=Math.max(0,y.left+ht-(bn?0:10)):y.right>Ht+_t-3&&(le.scrollLeft=y.right+(bn?0:10)-Ht),le}function Ja(a,y){y!=null&&(Pa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Lo(a){Pa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&Pa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Vs(a,y){Pa(a),a.curOp.scrollToPos=y}function Pa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Zr(a,y.from),b=Zr(a,y.to);Pl(a,x,b,y.margin)}}function Pl(a,y,x,b){var E=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Jo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ol(a,y,!0),z&&el(a),na(a,100))}function Ol(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,Ll(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Vi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Fi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=dt("div",[dt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=dt("div",[dt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Gt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Gt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ee&&Se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=He&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new de,this.disableVert=new de},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Ml(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Aa(a),Ml(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Ml(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 Bl={native:Io,null:ta};function kl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ue(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Bl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Gt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Gs=0;function Ao(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gs},zr(a.curOp)}function Do(a){var y=a.curOp;y&&wr(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Us(x)})}function Us(a){for(var y=a.ops,x=0;x<y.length;x++)_s(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var re=0;re<y.length;re++)Ys(y[re]);for(var le=0;le<y.length;le++)Qs(y[le])}function _s(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&Ar(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Oa(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&&Aa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Fi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==rt();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&No(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Qs(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Tl(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Ol(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=Zs(y,Ze(b,a.scrollToPos.from),Ze(b,a.scrollToPos.to),a.scrollToPos.margin);Ws(y,E)}var re=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(re)for(var ce=0;ce<re.length;++ce)re[ce].lines.length||ln(re[ce],"hide");if(le)for(var fe=0;fe<le.length;++fe)le[fe].lines.length&&ln(le[fe],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&ln(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function ji(a,y){if(a.curOp)return y();Ao(a);try{return y()}finally{Do(a)}}function hi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Ao(a);try{return y.apply(a,arguments)}finally{Do(a)}}}function Ai(a){return function(){if(this.curOp)return a.apply(this,arguments);Ao(this);try{return a.apply(this,arguments)}finally{Do(this)}}}function pi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Ao(y);try{return a.apply(this,arguments)}finally{Do(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,tt(Js,a))}function Js(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Wn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ce=re.text.length>a.options.maxHighlightLength?mn(y.mode,b.state):null,fe=on(a,re,b,!0);ce&&(b.state=ce),re.styles=fe.styles;var ve=re.styleClasses,Qe=fe.classes;Qe?re.styleClasses=Qe:ve&&(re.styleClasses=null);for(var ht=!le||le.length!=re.styles.length||ve!=Qe&&(!ve||!Qe||ve.bgClass!=Qe.bgClass||ve.textClass!=Qe.textClass),_t=0;!ht&&_t<le.length;++_t)ht=le[_t]!=re.styles[_t];ht&&E.push(b.line),re.stateAfter=b.save(),b.nextLine()}else re.text.length<=a.options.maxHighlightLength&&Un(a,re.text,b),re.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&ji(a,function(){for(var re=0;re<E.length;re++)fo(a,E[re],"text")})}}var Oa=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Da(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=to(a),this.force=x,this.dims=co(a),this.events=[]};Oa.prototype.signal=function(a,y){Ut(a,y)&&this.events.push(arguments)},Oa.prototype.finish=function(){for(var a=0;a<this.events.length;a++)ln.apply(null,this.events[a])};function qs(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Fi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Fi(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=rt();if(!y||!nt(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&nt(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==rt())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&nt(document.body,a.anchorNode)&&nt(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function qa(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return ho(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&wl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<re&&re-x.viewFrom<20&&(re=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),_n&&(re=yn(a.doc,re),le=hn(a.doc,le));var ce=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hs(a,re,le),x.viewOffset=cr(Bt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var fe=wl(a);if(!ce&&fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ve=eu(a);return fe>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),fe>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ve),Ft(x.cursorDiv),Ft(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Tl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Vi(a.display)-io(a),x.top)}),y.visible=Da(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Da(a.display,a.doc,x));if(!qa(a,y))break;Aa(a);var E=ea(a);Qo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Oa(a,y);if(qa(a,x)){Aa(a),Tl(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ce(bn){var Ln=bn.nextSibling;return Ne&&He&&a.display.currentWheelTarget==bn?bn.style.display="none":bn.parentNode.removeChild(bn),Ln}for(var fe=b.view,ve=b.viewFrom,Qe=0;Qe<fe.length;Qe++){var ht=fe[Qe];if(!ht.hidden)if(!ht.node||ht.node.parentNode!=re){var _t=Sr(a,ht,ve,x);re.insertBefore(_t,le)}else{for(;le!=ht.node;)le=ce(le);var Ht=E&&y!=null&&y<=ve&&ht.lineNumber;ht.changes&&(_e(ht.changes,"gutter")>-1&&(Ht=!1),Pi(a,ht,ve,x)),Ht&&(Ft(ht.lineNumber),ht.lineNumber.appendChild(document.createTextNode(ke(a.options,ve)))),le=ht.node.nextSibling}ve+=ht.size}for(;le;)le=ce(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Fi(a)+"px"}function Ll(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=_a(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,re=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=re),x[le].gutterBackground&&(x[le].gutterBackground.style.left=re));var ce=x[le].alignable;if(ce)for(var fe=0;fe<ce.length;fe++)ce[fe].style.left=re}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=ke(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(dt("div",[dt("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),re=E.firstChild.offsetWidth,le=E.offsetWidth-re;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(re,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var re=a[E],le=null;if(typeof re!="string"&&(le=re.style,re=re.className),re=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:re,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;Ft(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],re=E.className,le=E.style,ce=y.appendChild(dt("div",null,"CodeMirror-gutter "+re));le&&(ce.style.cssText=le),re=="CodeMirror-linenumbers"&&(a.lineGutter=ce,ce.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),Mi(a),Ll(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=dt("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=dt("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=St("div",null,"CodeMirror-code"),E.selectionDiv=dt("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=dt("div",null,"CodeMirror-cursors"),E.measure=dt("div",null,"CodeMirror-measure"),E.lineMeasure=dt("div",null,"CodeMirror-measure"),E.lineSpace=St("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var re=St("div",[E.lineSpace],"CodeMirror-lines");E.mover=dt("div",[re],null,"position: relative"),E.sizer=dt("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=dt("div",null,null,"position: absolute; height: "+Wt+"px; width: 1px;"),E.gutters=dt("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=dt("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=dt("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),Ee&&Se<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Ne&&!(z&&Ge)&&(E.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(E.wrapper):a(E.wrapper)),E.viewFrom=E.viewTo=y.first,E.reportedViewFrom=E.reportedViewTo=y.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=rl(b.gutters,b.lineNumbers),Rl(E),x.init(E)}var Ma=0,Zi=null;Ee?Zi=-.53:z?Zi=15:Ie?Zi=-.7:Xe&&(Zi=-1/3);function Fl(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=Fl(a);return y.x*=Zi,y.y*=Zi,y}function zl(a,y){var x=Fl(y),b=x.x,E=x.y,re=a.display,le=re.scroller,ce=le.scrollWidth>le.clientWidth,fe=le.scrollHeight>le.clientHeight;if(b&&ce||E&&fe){if(E&&He&&Ne){e:for(var ve=y.target,Qe=re.view;ve!=le;ve=ve.parentNode)for(var ht=0;ht<Qe.length;ht++)if(Qe[ht].node==ve){a.display.currentWheelTarget=ve;break e}}if(b&&!z&&!he&&Zi!=null){E&&fe&&qo(a,Math.max(0,le.scrollTop+E*Zi)),Eo(a,Math.max(0,le.scrollLeft+b*Zi)),(!E||E&&fe)&&ut(y),re.wheelStartX=null;return}if(E&&Zi!=null){var _t=E*Zi,Ht=a.doc.scrollTop,bn=Ht+re.wrapper.clientHeight;_t<0?Ht=Math.max(0,Ht+_t-50):bn=Math.min(a.doc.height,bn+_t+50),el(a,{top:Ht,bottom:bn})}Ma<20&&(re.wheelStartX==null?(re.wheelStartX=le.scrollLeft,re.wheelStartY=le.scrollTop,re.wheelDX=b,re.wheelDY=E,setTimeout(function(){if(re.wheelStartX!=null){var Ln=le.scrollLeft-re.wheelStartX,Vn=le.scrollTop-re.wheelStartY,Yn=Vn&&re.wheelDY&&Vn/re.wheelDY||Ln&&re.wheelDX&&Ln/re.wheelDX;re.wheelStartX=re.wheelStartY=null,Yn&&(Zi=(Zi*Ma+Yn)/(Ma+1),++Ma)}},200)):(re.wheelDX+=b,re.wheelDY+=E))}}var $i=function(a,y){this.ranges=a,this.primIndex=y};$i.prototype.primary=function(){return this.ranges[this.primIndex]},$i.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],b=a.ranges[y];if(!be(x.anchor,b.anchor)||!be(x.head,b.head))return!1}return!0},$i.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Ur(Je(this.ranges[y].anchor),Je(this.ranges[y].head));return new $i(a,this.primIndex)},$i.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},$i.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(je(y,b.from())>=0&&je(a,b.to())<=0)return x}return-1};var Ur=function(a,y){this.anchor=a,this.head=y};Ur.prototype.from=function(){return gt(this.anchor,this.head)},Ur.prototype.to=function(){return lt(this.anchor,this.head)},Ur.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(_t,Ht){return je(_t.from(),Ht.from())}),x=_e(y,E);for(var re=1;re<y.length;re++){var le=y[re],ce=y[re-1],fe=je(ce.to(),le.from());if(b&&!le.empty()?fe>0:fe>=0){var ve=gt(ce.from(),le.from()),Qe=lt(ce.to(),le.to()),ht=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Ur(ht?Qe:ve,ht?ve:Qe))}}return new $i(y,x)}function po(a,y){return new $i([new Ur(a,y||a)],0)}function mo(a){return a.text?Ae(a.from.line+a.text.length-1,Fe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Hl(a,y){if(je(a,y.from)<0)return a;if(je(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),Ae(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var E=a.sel.ranges[b];x.push(new Ur(Hl(E.anchor,y),Hl(E.head,y)))}return Ji(a.cm,x,a.sel.primIndex)}function jl(a,y,x){return a.line==y.line?Ae(x.line,a.ch-y.ch+x.ch):Ae(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=Ae(a.first,0),re=E,le=0;le<y.length;le++){var ce=y[le],fe=jl(ce.from,E,re),ve=jl(mo(ce),E,re);if(E=ce.to,re=ve,x=="around"){var Qe=a.sel.ranges[le],ht=je(Qe.head,Qe.anchor)<0;b[le]=new Ur(ht?ve:fe,ht?fe:ve)}else b[le]=new Ur(fe,fe)}return new $i(b,a.sel.primIndex)}function ol(a){a.doc.mode=tn(a.options,a.doc.modeOption),ia(a)}function ia(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,na(a,100),a.state.modeGen++,a.curOp&&Mi(a)}function Wl(a,y){return y.from.ch==0&&y.to.ch==0&&Fe(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function E(rr){return x?x[rr]:null}function re(rr,Qn,ar){Lr(rr,Qn,ar,b),Br(rr,"change",rr,y)}function le(rr,Qn){for(var ar=[],vr=rr;vr<Qn;++vr)ar.push(new Rr(ve[vr],E(vr),b));return ar}var ce=y.from,fe=y.to,ve=y.text,Qe=Bt(a,ce.line),ht=Bt(a,fe.line),_t=Fe(ve),Ht=E(ve.length-1),bn=fe.line-ce.line;if(y.full)a.insert(0,le(0,ve.length)),a.remove(ve.length,a.size-ve.length);else if(Wl(a,y)){var Ln=le(0,ve.length-1);re(ht,ht.text,Ht),bn&&a.remove(ce.line,bn),Ln.length&&a.insert(ce.line,Ln)}else if(Qe==ht)if(ve.length==1)re(Qe,Qe.text.slice(0,ce.ch)+_t+Qe.text.slice(fe.ch),Ht);else{var Vn=le(1,ve.length-1);Vn.push(new Rr(_t+Qe.text.slice(fe.ch),Ht,b)),re(Qe,Qe.text.slice(0,ce.ch)+ve[0],E(0)),a.insert(ce.line+1,Vn)}else if(ve.length==1)re(Qe,Qe.text.slice(0,ce.ch)+ve[0]+ht.text.slice(fe.ch),E(0)),a.remove(ce.line+1,bn);else{re(Qe,Qe.text.slice(0,ce.ch)+ve[0],E(0)),re(ht,_t+ht.text.slice(fe.ch),Ht);var Yn=le(1,ve.length-1);bn>1&&a.remove(ce.line+1,bn-1),a.insert(ce.line+1,Yn)}Br(a,"change",a,y)}function go(a,y,x){function b(E,re,le){if(E.linked)for(var ce=0;ce<E.linked.length;++ce){var fe=E.linked[ce];if(fe.doc!=re){var ve=le&&fe.sharedHist;x&&!ve||(y(fe.doc,ve),b(fe.doc,E,ve))}}}b(a,null,!0)}function Zl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),$l(a),a.options.lineWrapping||Ar(a),a.options.mode=y.modeOption,Mi(a)}function $l(a){(a.doc.direction=="rtl"?ue:Ue)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){ji(a,function(){$l(a),Mi(a)})}function Ba(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function ll(a,y){var x={from:Je(y.from),to:mo(y),text:Jt(a,y.from,y.to)};return Ul(a,x,y.from.line,y.to.line+1),go(a,function(b){return Ul(b,x,y.from.line,y.to.line+1)},!0),x}function Vl(a){for(;a.length;){var y=Fe(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Vl(a.done),Fe(a.done);if(a.done.length&&!Fe(a.done).ranges)return Fe(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Fe(a.done)}function Gl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=Fe(le.changes),je(y.from,y.to)==0&&je(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var fe=Fe(E.done);for((!fe||!fe.ranges)&&ka(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||ln(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,re=b&&b.origin;x==E.lastSelOp||re&&E.lastSelOrigin==re&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==re||su(a,re,Fe(E.done),y))?E.done[E.done.length-1]=y:ka(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&Vl(E.undone)}function ka(a,y){var x=Fe(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Ul(a,y,x,b){var E=y["spans_"+a.id],re=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],E=0;E<y.text.length;++E)b.push(cu(x[E]));return b}function _l(a,y){var x=du(a,y),b=mr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var re=x[E],le=b[E];if(re&&le)e:for(var ce=0;ce<le.length;++ce){for(var fe=le[ce],ve=0;ve<re.length;++ve)if(re[ve].marker==fe.marker)continue e;re.push(fe)}else le&&(x[E]=le)}return x}function Ro(a,y,x){for(var b=[],E=0;E<a.length;++E){var re=a[E];if(re.ranges){b.push(x?$i.prototype.deepCopy.call(re):re);continue}var le=re.changes,ce=[];b.push({changes:ce});for(var fe=0;fe<le.length;++fe){var ve=le[fe],Qe=void 0;if(ce.push({from:ve.from,to:ve.to,text:ve.text}),y)for(var ht in ve)(Qe=ht.match(/^spans_(\d+)$/))&&_e(y,Number(Qe[1]))>-1&&(Fe(ce)[ht]=ve[ht],delete ve[ht])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=je(y,E)<0;re!=je(x,E)<0?(E=y,y=x):re!=je(y,x)<0&&(y=x)}return new Ur(E,y)}else return new Ur(x||y,y)}function Ta(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),wi(a,new $i([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re<a.sel.ranges.length;re++)b[re]=sl(a.sel.ranges[re],y[re],null,E);var le=Ji(a.cm,b,a.sel.primIndex);wi(a,le,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,wi(a,Ji(a.cm,E,a.sel.primIndex),b)}function Xl(a,y,x,b){wi(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var re=0;re<E.length;re++)this.ranges[re]=new Ur(Ze(a,E[re].anchor),Ze(a,E[re].head))},origin:x&&x.origin};return ln(a,"beforeSelectionChange",a,b),a.cm&&ln(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ji(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,E=Fe(b);E&&E.ranges?(b[b.length-1]=y,La(a,y,x)):wi(a,y,x)}function wi(a,y,x){La(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function La(a,y,x){(Ut(a,"beforeSelectionChange")||a.cm&&Ut(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(je(y.primary().head,a.sel.primary().head)<0?-1:1);Ql(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Lo(a.cm)}function Ql(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,nn(a.cm)),Br(a,"cursorActivity",a))}function Jl(a){Ql(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var E,re=0;re<y.ranges.length;re++){var le=y.ranges[re],ce=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[re],fe=Na(a,le.anchor,ce&&ce.anchor,x,b),ve=Na(a,le.head,ce&&ce.head,x,b);(E||fe!=le.anchor||ve!=le.head)&&(E||(E=y.ranges.slice(0,re)),E[re]=new Ur(fe,ve))}return E?Ji(a.cm,E,y.primIndex):y}function Fo(a,y,x,b,E){var re=Bt(a,y.line);if(re.markedSpans)for(var le=0;le<re.markedSpans.length;++le){var ce=re.markedSpans[le],fe=ce.marker,ve="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,Qe="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((ce.from==null||(ve?ce.from<=y.ch:ce.from<y.ch))&&(ce.to==null||(Qe?ce.to>=y.ch:ce.to>y.ch))){if(E&&(ln(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!fe.atomic)continue;if(x){var ht=fe.find(b<0?1:-1),_t=void 0;if((b<0?Qe:ve)&&(ht=es(a,ht,-b,ht&&ht.line==y.line?re:null)),ht&&ht.line==y.line&&(_t=je(ht,x))&&(b<0?_t<0:_t>0))return Fo(a,ht,y,b,E)}var Ht=fe.find(b<0?-1:1);return(b<0?ve:Qe)&&(Ht=es(a,Ht,b,Ht.line==y.line?re:null)),Ht?Fo(a,Ht,y,b,E):null}}return y}function Na(a,y,x,b,E){var re=b||1,le=Fo(a,y,x,re,E)||!E&&Fo(a,y,x,re,!0)||Fo(a,y,x,-re,E)||!E&&Fo(a,y,x,-re,!0);return le||(a.cantEdit=!0,Ae(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Ze(a,Ae(y.line-1)):null:x>0&&y.ch==(b||Bt(a,y.line)).text.length?y.line<a.first+a.size-1?Ae(y.line+1,0):null:new Ae(y.line,y.ch+x)}function ts(a){a.setSelection(Ae(a.firstLine(),0),Ae(a.lastLine()),pe)}function ns(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(E,re,le,ce){E&&(b.from=Ze(a,E)),re&&(b.to=Ze(a,re)),le&&(b.text=le),ce!==void 0&&(b.origin=ce)}),ln(a,"beforeChange",a,b),a.cm&&ln(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function zo(a,y,x){if(a.cm){if(!a.cm.curOp)return hi(a.cm,zo)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Ut(a,"beforeChange")||a.cm&&Ut(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=nr&&!x&&Hr(a,y.from,y.to);if(b)for(var E=b.length-1;E>=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&je(y.from,y.to)==0)){var x=il(a,y);Gl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,mr(a,y));var b=[];go(a,function(E,re){!re&&_e(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ce=y=="undo"?E.done:E.undone,fe=y=="undo"?E.undone:E.done,ve=0;ve<ce.length&&(re=ce[ve],!(x?re.ranges&&!re.equals(a.sel):!re.ranges));ve++);if(ve!=ce.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(re=ce.pop(),re.ranges){if(ka(re,fe),x&&!re.equals(a.sel)){wi(a,re,{clearRedo:!1});return}le=re}else if(b){ce.push(re);return}else break;var Qe=[];ka(le,fe),fe.push({changes:Qe,generation:E.generation}),E.generation=re.generation||++E.maxGeneration;for(var ht=Ut(a,"beforeChange")||a.cm&&Ut(a.cm,"beforeChange"),_t=function(Ln){var Vn=re.changes[Ln];if(Vn.origin=y,ht&&!ns(a,Vn,!1))return ce.length=0,{};Qe.push(ll(a,Vn));var Yn=Ln?il(a,Vn):Fe(ce);oa(a,Vn,Yn,_l(a,Vn)),!Ln&&a.cm&&a.cm.scrollIntoView({from:Vn.from,to:mo(Vn)});var rr=[];go(a,function(Qn,ar){!ar&&_e(rr,Qn.history)==-1&&(ls(Qn.history,Vn),rr.push(Qn.history)),oa(Qn,Vn,null,_l(Qn,Vn))})},Ht=re.changes.length-1;Ht>=0;--Ht){var bn=_t(Ht);if(bn)return bn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new $i(Lt(a.sel.ranges,function(E){return new Ur(Ae(E.anchor.line+y,E.anchor.ch),Ae(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Mi(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)fo(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return hi(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){is(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var E=y.text.length-1-(a.first-y.from.line);is(a,E),y={from:Ae(a.first,0),to:Ae(y.to.line+E,y.to.ch),text:[Fe(y.text)],origin:y.origin}}var re=a.lastLine();y.to.line>re&&(y={from:y.from,to:Ae(re,Bt(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Jt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),La(a,x,pe),a.cantEdit&&Na(a,Ae(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ce=!1,fe=re.line;a.options.lineWrapping||(fe=Te(fn(Bt(b,re.line))),b.iter(fe,le.line+1,function(Ht){if(Ht==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&nn(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(fe,re.line+y.text.length,function(Ht){var bn=Mr(Ht);bn>E.maxLineLength&&(E.maxLine=Ht,E.maxLineLength=bn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),kn(b,re.line),na(a,400);var ve=y.text.length-(le.line-re.line)-1;y.full?Mi(a):re.line==le.line&&y.text.length==1&&!Wl(a.doc,y)?fo(a,re.line,"text"):Mi(a,re.line,le.line+1,ve);var Qe=Ut(a,"changes"),ht=Ut(a,"change");if(ht||Qe){var _t={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};ht&&Br(a,"change",a,_t),Qe&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(_t)}a.display.selForContextMenu=null}function Ho(a,y,x,b,E){var re;b||(b=x),je(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),zo(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var E=0;E<a.length;++E){var re=a[E],le=!0;if(re.ranges){re.copied||(re=a[E]=re.deepCopy(),re.copied=!0);for(var ce=0;ce<re.ranges.length;ce++)os(re.ranges[ce].anchor,y,x,b),os(re.ranges[ce].head,y,x,b);continue}for(var fe=0;fe<re.changes.length;++fe){var ve=re.changes[fe];if(x<ve.from.line)ve.from=Ae(ve.from.line+b,ve.from.ch),ve.to=Ae(ve.to.line+b,ve.to.ch);else if(y<=ve.to.line){le=!1;break}}le||(a.splice(0,E+1),E=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;as(a.done,x,b,E),as(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,re=y;return typeof y=="number"?re=Bt(a,at(a,y)):E=Te(y),E==null?null:(b(re,E)&&a.cm&&fo(a.cm,E,x),re)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,Fr(E),Br(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function sa(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var E=a[b];y+=E.chunkSize(),x+=E.height,E.parent=this}this.size=y,this.height=x,this.parent=null}sa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],E=b.chunkSize();if(a<E){var re=Math.min(y,E-a),le=b.height;if(b.removeInner(a,re),this.height-=le-b.height,E==re&&(this.children.splice(x--,1),b.parent=null),(y-=re)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var ce=[];this.collapse(ce),this.children=[new la(ce)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var E=this.children[b],re=E.chunkSize();if(a<=re){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var le=E.lines.length%25+25,ce=le;ce<E.lines.length;){var fe=new la(E.lines.slice(ce,ce+=25));E.height-=fe.height,this.children.splice(++b,0,fe),fe.parent=this}E.lines=E.lines.slice(0,le),this.maybeSpill()}break}a-=re}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=_e(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],re=E.chunkSize();if(a<re){var le=Math.min(y,re-a);if(E.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=re}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=Te(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var re=Ii(this);Mn(x,Math.max(0,x.height-re)),a&&(ji(a,function(){ss(a,x,-re),fo(a,b,"widget")}),Br(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var E=Ii(this)-y;E&&(Tn(this.doc,b)||Mn(b,b.height+E),x&&ji(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),Br(x,"lineWidgetChanged",x,a,Te(b))}))},Le(ua);function ss(a,y,x){cr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Ja(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),re=a.cm;return re&&E.noHScroll&&(re.display.alignWidgets=!0),aa(a,y,"widget",function(le){var ce=le.widgets||(le.widgets=[]);if(E.insertAt==null?ce.push(E):ce.splice(Math.min(ce.length-1,Math.max(0,E.insertAt)),0,E),E.line=le,re&&!Tn(a,le)){var fe=cr(le)<a.scrollTop;Mn(le,le.height+Ii(E)),fe&&Ja(re,E.height),re.curOp.forceUpdate=!0}return!0}),re&&Br(re,"lineWidgetAdded",re,E,typeof y=="number"?y:Te(y)),E}var us=0,vo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};vo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Ao(a),Ut(this,"clear")){var x=this.find();x&&Br(this,"clear",x.from,x.to)}for(var b=null,E=null,re=0;re<this.lines.length;++re){var le=this.lines[re],ce=ur(le.markedSpans,this);a&&!this.collapsed?fo(a,Te(le),"text"):a&&(ce.to!=null&&(E=Te(le)),ce.from!=null&&(b=Te(le))),le.markedSpans=yr(le.markedSpans,ce),ce.from==null&&this.collapsed&&!Tn(this.doc,le)&&a&&Mn(le,Hi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var fe=0;fe<this.lines.length;++fe){var ve=fn(this.lines[fe]),Qe=Mr(ve);Qe>a.display.maxLineLength&&(a.display.maxLine=ve,a.display.maxLineLength=Qe,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Mi(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Br(a,"markerCleared",a,this,b,E),y&&Do(a),this.parent&&this.parent.clear()}},vo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E<this.lines.length;++E){var re=this.lines[E],le=ur(re.markedSpans,this);if(le.from!=null&&(x=Ae(y?re:Te(re),le.from),a==-1))return x;if(le.to!=null&&(b=Ae(y?re:Te(re),le.to),a==1))return b}return x&&{from:x,to:b}},vo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||ji(b,function(){var E=y.line,re=Te(y.line),le=no(b,re);if(le&&(_o(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Tn(x.doc,E)&&x.height!=null){var ce=x.height;x.height=null;var fe=Ii(x)-ce;fe&&Mn(E,E.height+fe)}Br(b,"markerChanged",b,a)})},vo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||_e(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},vo.prototype.detachLine=function(a){if(this.lines.splice(_e(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Le(vo);function jo(a,y,x,b,E){if(b&&b.shared)return mu(a,y,x,b,E);if(a.cm&&!a.cm.curOp)return hi(a.cm,jo)(a,y,x,b,E);var re=new vo(a,E),le=je(y,x);if(b&&Et(b,re,!1),le>0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=St("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(Cn(a,y.line,y,x,re)||y.line!=x.line&&Cn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}re.addToHistory&&Gl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,fe=a.cm,ve;if(a.iter(ce,x.line+1,function(ht){fe&&re.collapsed&&!fe.options.lineWrapping&&fn(ht)==fe.display.maxLine&&(ve=!0),re.collapsed&&ce!=y.line&&Mn(ht,0),lr(ht,new sr(re,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),re.collapsed&&a.iter(y.line,x.line+1,function(ht){Tn(a,ht)&&Mn(ht,0)}),re.clearOnEnter&&Gt(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),fe){if(ve&&(fe.curOp.updateMaxLine=!0),re.collapsed)Mi(fe,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Qe=y.line;Qe<=x.line;Qe++)fo(fe,Qe,"text");re.atomic&&Jl(fe.doc),Br(fe,"markerAdded",fe,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Br(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Le(ca);function mu(a,y,x,b,E){b=Et(b),b.shared=!1;var re=[jo(a,y,x,b,E)],le=re[0],ce=b.widgetNode;return go(a,function(fe){ce&&(b.widgetNode=ce.cloneNode(!0)),re.push(jo(fe,Ze(fe,y),Ze(fe,x),b,E));for(var ve=0;ve<fe.linked.length;++ve)if(fe.linked[ve].isParent)return;le=Fe(re)}),new ca(re,le)}function cs(a){return a.findMarks(Ae(a.first,0),a.clipPos(Ae(a.lastLine())),function(y){return y.parent})}function gu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),re=a.clipPos(E.from),le=a.clipPos(E.to);if(je(re,le)){var ce=jo(a,re,le,b.primary,b.primary.type);b.markers.push(ce),ce.parent=b}}}function vu(a){for(var y=function(b){var E=a[b],re=[E.primary.doc];go(E.primary.doc,function(fe){return re.push(fe)});for(var le=0;le<E.markers.length;le++){var ce=E.markers[le];_e(re,ce.doc)==-1&&(ce.parent=null,E.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,Bi=function(a,y,x,b,E){if(!(this instanceof Bi))return new Bi(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new Rr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var re=Ae(x,0);this.sel=po(re),this.history=new Ba(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:re,to:re,text:a}),wi(this,po(re),pe)};Bi.prototype=te(sa.prototype,{constructor:Bi,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=On(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:pi(function(a){var y=Ae(this.first,0),x=this.first+this.size-1;zo(this,{from:y,to:Ae(x,Bt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Jo(this.cm,0,0),wi(this,po(y),pe)}),replaceRange:function(a,y,x,b){y=Ze(this,y),x=x?Ze(this,x):y,Ho(this,a,y,x,b)},getRange:function(a,y,x){var b=Jt(this,Ze(this,a),Ze(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(xe(this,a))return Bt(this,a)},getLineNumber:function(a){return Te(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Bt(this,a)),fn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Ze(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pi(function(a,y,x){Xl(this,Ze(this,typeof a=="number"?Ae(a,y||0):a),null,x)}),setSelection:pi(function(a,y,x){Xl(this,Ze(this,a),Ze(this,y||a),x)}),extendSelection:pi(function(a,y,x){Ta(this,Ze(this,a),y&&Ze(this,y),x)}),extendSelections:pi(function(a,y){Kl(this,ct(this,a),y)}),extendSelectionsBy:pi(function(a,y){var x=Lt(this.sel.ranges,a);Kl(this,ct(this,x),y)}),setSelections:pi(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Ur(Ze(this,a[E].anchor),Ze(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),wi(this,Ji(this.cm,b,y),x)}}),addSelection:pi(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Ur(Ze(this,a),Ze(this,y||a))),wi(this,Ji(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=Jt(this,y[b].from(),y[b].to());x=x?x.concat(E):E}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var E=Jt(this,x[b].from(),x[b].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[b]=E}return y},replaceSelection:function(a,y,x){for(var b=[],E=0;E<this.sel.ranges.length;E++)b[E]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:pi(function(a,y,x){for(var b=[],E=this.sel,re=0;re<E.ranges.length;re++){var le=E.ranges[re];b[re]={from:le.from(),to:le.to(),text:this.splitLines(a[re]),origin:x}}for(var ce=y&&y!="end"&&ou(this,b,y),fe=b.length-1;fe>=0;fe--)zo(this,b[fe]);ce?Yl(this,ce):this.cm&&Lo(this.cm)}),undo:pi(function(){Ra(this,"undo")}),redo:pi(function(){Ra(this,"redo")}),undoSelection:pi(function(){Ra(this,"undo",!0)}),redoSelection:pi(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Ba(this.history.maxGeneration),go(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(a){var y=this.history=new Ba(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(a.undone.slice(0),null,!0)},setGutterMarker:pi(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&ne(E)&&(b.gutterMarkers=null),!0})}),clearGutter:pi(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,ne(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!xe(this,a)||(y=a,a=Bt(this,a),!a))return null}else if(y=Te(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:pi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[E])b[E]=x;else{if(yt(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:pi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",re=b[E];if(re)if(x==null)b[E]=null;else{var le=re.match(yt(x));if(!le)return!1;var ce=le.index+le[0].length;b[E]=re.slice(0,le.index)+(!le.index||ce==re.length?"":" ")+re.slice(ce)||null}else return!1;return!0})}),addLineWidget:pi(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return jo(this,Ze(this,a),Ze(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Ze(this,a),jo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Ze(this,a);var y=[],x=Bt(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var E=x[b];(E.from==null||E.from<=a.ch)&&(E.to==null||E.to>=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=Ze(this,a),y=Ze(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ce=0;ce<le.length;ce++){var fe=le[ce];!(fe.to!=null&&E==a.line&&a.ch>=fe.to||fe.from==null&&E!=a.line||fe.from!=null&&E==y.line&&fe.from>=y.ch)&&(!x||x(fe.marker))&&b.push(fe.marker.parent||fe.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(E){var re=E.text.length+b;if(re>a)return y=a,!0;a-=re,++x}),Ze(this,Ae(x,y))},indexFromPos:function(a){a=Ze(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new Bi(On(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new Bi(On(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Qr&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),vu(cs(this));break}}if(a.history==this.history){var b=[a.id];go(a,function(E){return b.push(E.id)},!0),a.history=new Ba(null),a.history.done=Ro(this.history.done,b),a.history.undone=Ro(this.history.undone,b)}},iterLinkedDocs:function(a){go(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):cn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:pi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&au(this.cm))})}),Bi.prototype.eachLine=Bi.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(Pt(y,a)||vi(y.display,a))){ut(a),Ee&&(ds=+new Date);var x=wo(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,re=Array(E),le=0,ce=function(){++le==E&&hi(y,function(){x=Ze(y.doc,x);var Ht={from:x,to:x,text:y.doc.splitLines(re.filter(function(bn){return bn!=null}).join(y.doc.lineSeparator())),origin:"paste"};zo(y.doc,Ht),Yl(y.doc,po(Ze(y.doc,x),Ze(y.doc,mo(Ht))))})()},fe=function(Ht,bn){if(y.options.allowDropFileTypes&&_e(y.options.allowDropFileTypes,Ht.type)==-1){ce();return}var Ln=new FileReader;Ln.onerror=function(){return ce()},Ln.onload=function(){var Vn=Ln.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Vn)){ce();return}re[bn]=Vn,ce()},Ln.readAsText(Ht)},ve=0;ve<b.length;ve++)fe(b[ve],ve);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Qe=a.dataTransfer.getData("Text");if(Qe){var ht;if(y.state.draggingText&&!y.state.draggingText.copy&&(ht=y.listSelections()),La(y.doc,po(x,x)),ht)for(var _t=0;_t<ht.length;++_t)Ho(y.doc,"",ht[_t].anchor,ht[_t].head,"drag");y.replaceSelection(Qe,"around","paste"),y.display.input.focus()}}catch(Ht){}}}}function xu(a,y){if(Ee&&(!a.state.draggingText||+new Date-ds<100)){De(y);return}if(!(Pt(a,y)||vi(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Xe)){var x=dt("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",he&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),he&&x.parentNode.removeChild(x)}}function Cu(a,y){var x=wo(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=dt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),vt(a.display.dragCursor,b)}}function fs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var E=y[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var re=0;re<x.length;re++)a(x[re])})}}var ps=!1;function wu(){ps||(Su(),ps=!0)}function Su(){var a;Gt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Gt(window,"blur",function(){return hs(To)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var yo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},da=0;da<10;da++)yo[da+48]=yo[da+96]=String(da);for(var Fa=65;Fa<=90;Fa++)yo[Fa]=String.fromCharCode(Fa);for(var fa=1;fa<=12;fa++)yo[fa+111]=yo[fa+63235]="F"+fa;var ao={};ao.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ao.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ao.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ao.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ao.default=He?ao.macDefault:ao.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,re,le=0;le<y.length-1;le++){var ce=y[le];if(/^(cmd|meta|m)$/i.test(ce))re=!0;else if(/^a(lt)?$/i.test(ce))x=!0;else if(/^(c|ctrl|control)$/i.test(ce))b=!0;else if(/^s(hift)?$/i.test(ce))E=!0;else throw new Error("Unrecognized modifier name: "+ce)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),re&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Au(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var E=Lt(x.split(" "),Iu),re=0;re<E.length;re++){var le=void 0,ce=void 0;re==E.length-1?(ce=E.join(" "),le=b):(ce=E.slice(0,re+1).join(" "),le="...");var fe=y[ce];if(!fe)y[ce]=le;else if(fe!=le)throw new Error("Inconsistent bindings for "+ce)}delete a[x]}for(var ve in y)a[ve]=y[ve];return a}function Wo(a,y,x,b){y=za(y);var E=y.call?y.call(a,b):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&x(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Wo(a,y.fallthrough,x,b);for(var re=0;re<y.fallthrough.length;re++){var le=Wo(a,y.fallthrough[re],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function gs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(Dt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(Dt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vs(a,y){if(he&&a.keyCode==34&&a.char)return!1;var x=yo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),gs(x,a,y))}function za(a){return typeof a=="string"?ao[a]:a}function Zo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var re=y(x[E]);b.length&&je(re.from,Fe(b).to)<=0;){var le=b.pop();if(je(le.from,re.from)<0){re.from=le.from;break}}b.push(re)}ji(a,function(){for(var ce=b.length-1;ce>=0;ce--)Ho(a.doc,"",b[ce].from,b[ce].to,"+delete");Lo(a)})}function cl(a,y,x){var b=mt(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 Ae(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var re=Qt(x,y.doc.direction);if(re){var le=E<0?Fe(re):re[0],ce=E<0==(le.level==1),fe=ce?"after":"before",ve;if(le.level>0||y.doc.direction=="rtl"){var Qe=uo(y,x);ve=E<0?x.text.length-1:0;var ht=Gi(y,Qe,ve).top;ve=Pe(function(_t){return Gi(y,Qe,_t).top==ht},E<0==(le.level==1)?le.from:le.to-1,ve),fe=="before"&&(ve=cl(x,ve,1))}else ve=E<0?le.to:le.from;return new Ae(b,ve,fe)}}return new Ae(b,E<0?x.text.length:0,E<0?"before":"after")}function Du(a,y,x,b){var E=Qt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var re=It(E,x.ch,x.sticky),le=E[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var ce=function(Yn,rr){return cl(y,Yn instanceof Ae?Yn.ch:Yn,rr)},fe,ve=function(Yn){return a.options.lineWrapping?(fe=fe||uo(a,y),ii(a,y,fe,Yn)):{begin:0,end:y.text.length}},Qe=ve(x.sticky=="before"?ce(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var ht=le.level==1==b<0,_t=ce(x,ht?1:-1);if(_t!=null&&(ht?_t<=le.to&&_t<=Qe.end:_t>=le.from&&_t>=Qe.begin)){var Ht=ht?"before":"after";return new Ae(x.line,_t,Ht)}}var bn=function(Yn,rr,Qn){for(var ar=function(Yr,mi){return mi?new Ae(x.line,ce(Yr,1),"before"):new Ae(x.line,Yr,"after")};Yn>=0&&Yn<E.length;Yn+=rr){var vr=E[Yn],hr=rr>0==(vr.level!=1),kr=hr?Qn.begin:ce(Qn.end,-1);if(vr.from<=kr&&kr<vr.to||(kr=hr?vr.from:ce(vr.to,-1),Qn.begin<=kr&&kr<Qn.end))return ar(kr,hr)}},Ln=bn(re+b,b,Qe);if(Ln)return Ln;var Vn=b>0?Qe.end:ce(Qe.begin,-1);return Vn!=null&&!(b>0&&Vn==y.text.length)&&(Ln=bn(b>0?0:E.length-1,b,ve(Vn)),Ln)?Ln:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),pe)},killLine:function(a){return Zo(a,function(y){if(y.empty()){var x=Bt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Ae(y.head.line+1,0)}:{from:y.head,to:Ae(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Zo(a,function(y){return{from:Ae(y.from().line,0),to:Ze(a.doc,Ae(y.to().line+1,0))}})},delLineLeft:function(a){return Zo(a,function(y){return{from:Ae(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Zo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return Zo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Ae(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ae(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ys(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bs(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Pu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},ze)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},ze)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bs(a,y.head):b},ze)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var re=x[E].from(),le=ge(a.getLine(re.line),re.ch,b);y.push(Zt(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ji(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,re=Bt(a.doc,E.line).text;if(re){if(E.ch==re.length&&(E=new Ae(E.line,E.ch-1)),E.ch>0)E=new Ae(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Ae(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Bt(a.doc,E.line-1).text;le&&(E=new Ae(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Ae(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Ur(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return ji(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);Lo(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=Bt(a.doc,y),b=fn(x);return b!=x&&(y=Te(b)),fl(!0,a,b,y,1)}function Pu(a,y){var x=Bt(a.doc,y),b=Zn(x);return b!=x&&(y=Te(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Bt(a.doc,x.line),E=Qt(b,a.doc.direction);if(!E||E[0].level==0){var re=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=re&&y.ch;return Ae(x.line,le?0:re,x.sticky)}return x}function Ha(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),E=y(a)!=xt}finally{a.display.shift=b,a.state.suppressEdits=!1}return E}function Ou(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var E=Wo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&Wo(y,a.options.extraKeys,x,a)||Wo(y,a.options.keyMap,x,a)}var Mu=new de;function pa(a,y,x,b){var E=a.state.keySeq;if(E){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Mu.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,E+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var E=Ou(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&Br(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(ut(x),Xa(a)),!!E}function Cs(a,y){var x=vs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return Ha(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return Ha(a,b)}):pa(a,x,y,function(b){return Ha(a,b)}):!1}function Bu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return Ha(a,b,!0)})}var hl=null;function ws(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=rt(),!Pt(y,a))){Ee&&Se<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);he&&(hl=b?x:null,!b&&x==88&&!gn&&(He?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),z&&!He&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&ku(y)}}function ku(a){var y=a.display.lineDiv;ue(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ue(y,"CodeMirror-crosshair"),rn(document,"keyup",x),rn(document,"mouseover",x))}Gt(document,"keyup",x),Gt(document,"mouseover",x)}function Ss(a){a.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(vi(y.display,a)||Pt(y,a)||a.ctrlKey&&!a.altKey||He&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,ut(a);return}if(!(he&&(!a.which||a.which<10)&&Cs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Bu(y,a,E)||y.display.input.onKeyPress(a))}}}var Tu=400,pl=function(a,y,x){this.time=a,this.pos=y,this.button=x};pl.prototype.compare=function(a,y,x){return this.time+Tu>a&&je(y,this.pos)==0&&x==this.button};var ma,ga;function Lu(a,y){var x=+new Date;return ga&&ga.compare(x,a,y)?(ma=ga=null,"triple"):ma&&ma.compare(x,a,y)?(ga=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),ga=null,"single")}function Is(a){var y=this,x=y.display;if(!(Pt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,vi(x,a)){Ne||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=pt(a),re=b?Lu(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,re,a))&&(E==1?b?Fu(y,b,re,a):Ye(a)==x.scroller&&ut(a):E==2?(b&&Ta(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(et?y.display.input.onContextMenu(a):Al(y)))}}}function Nu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,gs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce=le(a,x)!=xt}finally{a.state.suppressEdits=!1}return ce})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=Ct?x.shiftKey&&x.metaKey:x.altKey;E.unit=re?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=He?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(He?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){Ee?setTimeout(tt(Il,a),0):a.curOp.focus=rt();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&kt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(je((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(je(le.to(),y)>0||y.xRel<0)?zu(a,b,y,E):Hu(a,b,y,E)}function zu(a,y,x,b){var E=a.display,re=!1,le=hi(a,function(ve){Ne&&(E.scroller.draggable=!1),a.state.draggingText=!1,rn(E.wrapper.ownerDocument,"mouseup",le),rn(E.wrapper.ownerDocument,"mousemove",ce),rn(E.scroller,"dragstart",fe),rn(E.scroller,"drop",le),re||(ut(ve),b.addNew||Ta(a.doc,x,null,null,b.extend),Ne&&!Xe||Ee&&Se==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(ve){re=re||Math.abs(y.clientX-ve.clientX)+Math.abs(y.clientY-ve.clientY)>=10},fe=function(){return re=!0};Ne&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Gt(E.wrapper.ownerDocument,"mouseup",le),Gt(E.wrapper.ownerDocument,"mousemove",ce),Gt(E.scroller,"dragstart",fe),Gt(E.scroller,"drop",le),Al(a),setTimeout(function(){return E.input.focus()},20)}function As(a,y,x){if(x=="char")return new Ur(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Ur(Ae(y.line,0),Ze(a.doc,Ae(y.line+1,0)));var b=x(a,y);return new Ur(b.from,b.to)}function Hu(a,y,x,b){var E=a.display,re=a.doc;ut(y);var le,ce,fe=re.sel,ve=fe.ranges;if(b.addNew&&!b.extend?(ce=re.sel.contains(x),ce>-1?le=ve[ce]:le=new Ur(x,x)):(le=re.sel.primary(),ce=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Ur(x,x)),x=wo(a,y,!0,!0),ce=-1;else{var Qe=As(a,x,b.unit);b.extend?le=sl(le,Qe.anchor,Qe.head,b.extend):le=Qe}b.addNew?ce==-1?(ce=ve.length,wi(re,Ji(a,ve.concat([le]),ce),{scroll:!1,origin:"*mouse"})):ve.length>1&&ve[ce].empty()&&b.unit=="char"&&!b.extend?(wi(re,Ji(a,ve.slice(0,ce).concat(ve.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),fe=re.sel):ul(re,ce,le,Me):(ce=0,wi(re,new $i([le],0),Me),fe=re.sel);var ht=x;function _t(Qn){if(je(ht,Qn)!=0)if(ht=Qn,b.unit=="rectangle"){for(var ar=[],vr=a.options.tabSize,hr=ge(Bt(re,x.line).text,x.ch,vr),kr=ge(Bt(re,Qn.line).text,Qn.ch,vr),Yr=Math.min(hr,kr),mi=Math.max(hr,kr),Jr=Math.min(x.line,Qn.line),Wi=Math.min(a.lastLine(),Math.max(x.line,Qn.line));Jr<=Wi;Jr++){var ki=Bt(re,Jr).text,ai=Nt(ki,Yr,vr);Yr==mi?ar.push(new Ur(Ae(Jr,ai),Ae(Jr,ai))):ki.length>ai&&ar.push(new Ur(Ae(Jr,ai),Ae(Jr,Nt(ki,mi,vr))))}ar.length||ar.push(new Ur(x,x)),wi(re,Ji(a,fe.ranges.slice(0,ce).concat(ar),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Qn)}else{var Ti=le,bi=As(a,Qn,b.unit),di=Ti.anchor,li;je(bi.anchor,di)>0?(li=bi.head,di=gt(Ti.from(),bi.anchor)):(li=bi.anchor,di=lt(Ti.to(),bi.head));var ei=fe.ranges.slice(0);ei[ce]=ju(a,new Ur(Ze(re,di),li)),wi(re,Ji(a,ei,ce),Me)}}var Ht=E.wrapper.getBoundingClientRect(),bn=0;function Ln(Qn){var ar=++bn,vr=wo(a,Qn,!0,b.unit=="rectangle");if(vr)if(je(vr,ht)!=0){a.curOp.focus=rt(),_t(vr);var hr=Da(E,re);(vr.line>=hr.to||vr.line<hr.from)&&setTimeout(hi(a,function(){bn==ar&&Ln(Qn)}),150)}else{var kr=Qn.clientY<Ht.top?-20:Qn.clientY>Ht.bottom?20:0;kr&&setTimeout(hi(a,function(){bn==ar&&(E.scroller.scrollTop+=kr,Ln(Qn))}),50)}}function Vn(Qn){a.state.selectingText=!1,bn=1/0,Qn&&(ut(Qn),E.input.focus()),rn(E.wrapper.ownerDocument,"mousemove",Yn),rn(E.wrapper.ownerDocument,"mouseup",rr),re.history.lastSelOrigin=null}var Yn=hi(a,function(Qn){Qn.buttons===0||!pt(Qn)?Vn(Qn):Ln(Qn)}),rr=hi(a,Vn);a.state.selectingText=rr,Gt(E.wrapper.ownerDocument,"mousemove",Yn),Gt(E.wrapper.ownerDocument,"mouseup",rr)}function ju(a,y){var x=y.anchor,b=y.head,E=Bt(a.doc,x.line);if(je(x,b)==0&&x.sticky==b.sticky)return y;var re=Qt(E);if(!re)return y;var le=It(re,x.ch,x.sticky),ce=re[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var fe=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(fe==0||fe==re.length)return y;var ve;if(b.line!=x.line)ve=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Qe=It(re,b.ch,b.sticky),ht=Qe-le||(b.ch-x.ch)*(ce.level==1?-1:1);Qe==fe-1||Qe==fe?ve=ht<0:ve=ht>0}var _t=re[fe+(ve?-1:0)],Ht=ve==(_t.level==1),bn=Ht?_t.from:_t.to,Ln=Ht?"after":"before";return x.ch==bn&&x.sticky==Ln?y:new Ur(new Ae(x.line,bn,Ln),b)}function Ds(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(_t){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&ut(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(re>ce.bottom||!Ut(a,x))return $t(y);re-=ce.top-le.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var ve=le.gutters.childNodes[fe];if(ve&&ve.getBoundingClientRect().right>=E){var Qe=We(a.doc,re),ht=a.display.gutterSpecs[fe];return ln(a,x,a,Qe,ht.className,y),$t(y)}}}function ml(a,y){return Ds(a,y,"gutterClick",!0)}function Ps(a,y){vi(a.display,y)||Wu(a,y)||Pt(a,y,"contextmenu")||et||a.display.input.onContextMenu(y)}function Wu(a,y){return Ut(a,"gutterContextMenu")?Ds(a,y,"gutterContextMenu",!1):!1}function Os(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 $o={toString:function(){return"CodeMirror.Init"}},Ms={},ja={};function Zu(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ce,fe,ve){ve!=$o&&re(ce,fe,ve)}:re)}a.defineOption=x,a.Init=$o,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Mi(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var re=[],le=b.doc.first;b.doc.iter(function(fe){for(var ve=0;;){var Qe=fe.text.indexOf(E,ve);if(Qe==-1)break;ve=Qe+E.length,re.push(Ae(le,Qe))}le++});for(var ce=re.length-1;ce>=0;ce--)Ho(b.doc,E,re[ce],Ae(re[ce].line,re[ce].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=$o&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ge?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!Mt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Os(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=za(E),ce=re!=$o&&za(re);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Vu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?_a(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){kl(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(To(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,$u),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function $u(a,y,x){var b=x&&x!=$o;if(!y!=!b){var E=a.display.dragFunctions,re=y?Gt:rn;re(a.display.scroller,"dragstart",E.start),re(a.display.scroller,"dragenter",E.enter),re(a.display.scroller,"dragover",E.over),re(a.display.scroller,"dragleave",E.leave),re(a.display.scroller,"drop",E.drop)}}function Vu(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ue(a.display.wrapper,"CodeMirror-wrap"),Ar(a)),Ka(a),Mi(a),Co(a),setTimeout(function(){return No(a)},100)}function Qr(a,y){var x=this;if(!(this instanceof Qr))return new Qr(a,y);this.options=y=y?Et(y):{},Et(Ms,y,!1);var b=y.value;typeof b=="string"?b=new Bi(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Qr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Os(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),kl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new de,keySeq:null,specialChars:null},y.autofocus&&!Ge&&re.input.focus(),Ee&&Se<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Gu(this),wu(),Ao(this),this.curOp.forceUpdate=!0,Zl(this,b),y.autofocus&&!Ge||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):To(this);for(var le in ja)ja.hasOwnProperty(le)&&ja[le](this,y[le],$o);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce<gl.length;++ce)gl[ce](this);Do(this),Ne&&y.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}Qr.defaults=Ms,Qr.optionHandlers=ja;function Gu(a){var y=a.display;Gt(y.scroller,"mousedown",hi(a,Is)),Ee&&Se<11?Gt(y.scroller,"dblclick",hi(a,function(fe){if(!Pt(a,fe)){var ve=wo(a,fe);if(!(!ve||ml(a,fe)||vi(a.display,fe))){ut(fe);var Qe=a.findWordAt(ve);Ta(a.doc,Qe.anchor,Qe.head)}}})):Gt(y.scroller,"dblclick",function(fe){return Pt(a,fe)||ut(fe)}),Gt(y.scroller,"contextmenu",function(fe){return Ps(a,fe)}),Gt(y.input.getField(),"contextmenu",function(fe){y.scroller.contains(fe.target)||Ps(a,fe)});var x,b={end:0};function E(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function re(fe){if(fe.touches.length!=1)return!1;var ve=fe.touches[0];return ve.radiusX<=1&&ve.radiusY<=1}function le(fe,ve){if(ve.left==null)return!0;var Qe=ve.left-fe.left,ht=ve.top-fe.top;return Qe*Qe+ht*ht>20*20}Gt(y.scroller,"touchstart",function(fe){if(!Pt(a,fe)&&!re(fe)&&!ml(a,fe)){y.input.ensurePolled(),clearTimeout(x);var ve=+new Date;y.activeTouch={start:ve,moved:!1,prev:ve-b.end<=300?b:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),Gt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Gt(y.scroller,"touchend",function(fe){var ve=y.activeTouch;if(ve&&!vi(y,fe)&&ve.left!=null&&!ve.moved&&new Date-ve.start<300){var Qe=a.coordsChar(y.activeTouch,"page"),ht;!ve.prev||le(ve,ve.prev)?ht=new Ur(Qe,Qe):!ve.prev.prev||le(ve,ve.prev.prev)?ht=a.findWordAt(Qe):ht=new Ur(Ae(Qe.line,0),Ze(a.doc,Ae(Qe.line+1,0))),a.setSelection(ht.anchor,ht.head),a.focus(),ut(fe)}E()}),Gt(y.scroller,"touchcancel",E),Gt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),ln(a,"scroll",a))}),Gt(y.scroller,"mousewheel",function(fe){return zl(a,fe)}),Gt(y.scroller,"DOMMouseScroll",function(fe){return zl(a,fe)}),Gt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){Pt(a,fe)||De(fe)},over:function(fe){Pt(a,fe)||(Cu(a,fe),De(fe))},start:function(fe){return xu(a,fe)},drop:hi(a,bu),leave:function(fe){Pt(a,fe)||fs(a)}};var ce=y.input.getField();Gt(ce,"keyup",function(fe){return Ss.call(a,fe)}),Gt(ce,"keydown",hi(a,ws)),Gt(ce,"keypress",hi(a,Es)),Gt(ce,"focus",function(fe){return Ya(a,fe)}),Gt(ce,"blur",function(fe){return To(a,fe)})}var gl=[];Qr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=Wn(a,y).state:x="prev");var le=a.options.tabSize,ce=Bt(E,y),fe=ge(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ve=ce.text.match(/^\s*/)[0],Qe;if(!b&&!/\S/.test(ce.text))Qe=0,x="not";else if(x=="smart"&&(Qe=E.mode.indent(re,ce.text.slice(ve.length),ce.text),Qe==xt||Qe>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Qe=ge(Bt(E,y-1).text,null,le):Qe=0:x=="add"?Qe=fe+a.options.indentUnit:x=="subtract"?Qe=fe-a.options.indentUnit:typeof x=="number"&&(Qe=fe+x),Qe=Math.max(0,Qe);var ht="",_t=0;if(a.options.indentWithTabs)for(var Ht=Math.floor(Qe/le);Ht;--Ht)_t+=le,ht+=" ";if(_t<Qe&&(ht+=Zt(Qe-_t)),ht!=ve)return Ho(E,ht,Ae(y,0),Ae(y,ve.length),"+input"),ce.stateAfter=null,!0;for(var bn=0;bn<E.sel.ranges.length;bn++){var Ln=E.sel.ranges[bn];if(Ln.head.line==y&&Ln.head.ch<ve.length){var Vn=Ae(y,ve.length);ul(E,bn,new Ur(Vn,Vn));break}}}var qi=null;function Wa(a){qi=a}function vl(a,y,x,b,E){var re=a.doc;a.display.shift=!1,b||(b=re.sel);var le=+new Date-200,ce=E=="paste"||a.state.pasteIncoming>le,fe=cn(y),ve=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(`
`)==y){if(b.ranges.length%qi.text.length==0){ve=[];for(var Qe=0;Qe<qi.text.length;Qe++)ve.push(re.splitLines(qi.text[Qe]))}}else fe.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(ve=Lt(fe,function(Yn){return[Yn]}));for(var ht=a.curOp.updateInput,_t=b.ranges.length-1;_t>=0;_t--){var Ht=b.ranges[_t],bn=Ht.from(),Ln=Ht.to();Ht.empty()&&(x&&x>0?bn=Ae(bn.line,bn.ch-x):a.state.overwrite&&!ce?Ln=Ae(Ln.line,Math.min(Bt(re,Ln.line).text.length,Ln.ch+Fe(fe).length)):ce&&qi&&qi.lineWise&&qi.text.join(`
`)==fe.join(`
`)&&(bn=Ln=Ae(bn.line,0)));var Vn={from:bn,to:Ln,text:ve?ve[_t%ve.length]:fe,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};zo(a.doc,Vn),Br(a,"inputRead",a,Vn)}y&&!ce&&ks(a,y),Lo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ht),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Bs(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ji(y,function(){return vl(y,x,0,null,"paste")}),!0}function ks(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ce=0;ce<re.electricChars.length;ce++)if(y.indexOf(re.electricChars.charAt(ce))>-1){le=va(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(Bt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Br(a,"electricInput",a,E.head.line)}}}function Ts(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,re={anchor:Ae(E,0),head:Ae(E+1,0)};x.push(re),y.push(a.getRange(re.anchor,re.head))}return{text:y,ranges:x}}function Ls(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ns(){var a=dt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=dt("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ne?a.style.width="1000px":a.setAttribute("wrap","off"),ot&&(a.style.border="1px solid black"),Ls(a),y}function Uu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,E){var re=this.options,le=re[b];re[b]==E&&b!="mode"||(re[b]=E,y.hasOwnProperty(b)&&hi(this,y[b])(this,E,le),ln(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"](za(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,re=0;re<E.length;++re)if(E[re]==b||E[re].name==b)return E.splice(re,1),!0},addOverlay:Ai(function(b,E){var re=b.token?b:a.getMode(this.options,b);if(re.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:re,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(le){return le.priority}),this.state.modeGen++,Mi(this)}),removeOverlay:Ai(function(b){for(var E=this.state.overlays,re=0;re<E.length;++re){var le=E[re].modeSpec;if(le==b||typeof b=="string"&&le.name==b){E.splice(re,1),this.state.modeGen++,Mi(this);return}}}),indentLine:Ai(function(b,E,re){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),xe(this.doc,b)&&va(this,b,E,re)}),indentSelection:Ai(function(b){for(var E=this.doc.sel.ranges,re=-1,le=0;le<E.length;le++){var ce=E[le];if(ce.empty())ce.head.line>re&&(va(this,ce.head.line,b,!0),re=ce.head.line,le==this.doc.sel.primIndex&&Lo(this));else{var fe=ce.from(),ve=ce.to(),Qe=Math.max(re,fe.line);re=Math.min(this.lastLine(),ve.line-(ve.ch?0:1))+1;for(var ht=Qe;ht<re;++ht)va(this,ht,b);var _t=this.doc.sel.ranges;fe.ch==0&&E.length==_t.length&&_t[le].from().ch>0&&ul(this.doc,le,new Ur(fe,_t[le].to()),pe)}}}),getTokenAt:function(b,E){return Gn(this,b,E)},getLineTokens:function(b,E){return Gn(this,Ae(b),E,!0)},getTokenTypeAt:function(b){b=Ze(this.doc,b);var E=Fn(this,Bt(this.doc,b.line)),re=0,le=(E.length-1)/2,ce=b.ch,fe;if(ce==0)fe=E[2];else for(;;){var ve=re+le>>1;if((ve?E[ve*2-1]:0)>=ce)le=ve;else if(E[ve*2+1]<ce)re=ve+1;else{fe=E[ve*2+2];break}}var Qe=fe?fe.indexOf("overlay "):-1;return Qe<0?fe:Qe==0?null:fe.slice(0,Qe-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var re=[];if(!x.hasOwnProperty(E))return re;var le=x[E],ce=this.getModeAt(b);if(typeof ce[E]=="string")le[ce[E]]&&re.push(le[ce[E]]);else if(ce[E])for(var fe=0;fe<ce[E].length;fe++){var ve=le[ce[E][fe]];ve&&re.push(ve)}else ce.helperType&&le[ce.helperType]?re.push(le[ce.helperType]):le[ce.name]&&re.push(le[ce.name]);for(var Qe=0;Qe<le._global.length;Qe++){var ht=le._global[Qe];ht.pred(ce,this)&&_e(re,ht.val)==-1&&re.push(ht.val)}return re},getStateAfter:function(b,E){var re=this.doc;return b=at(re,b==null?re.first+re.size-1:b),Wn(this,b+1,E).state},cursorCoords:function(b,E){var re,le=this.doc.sel.primary();return b==null?re=le.head:typeof b=="object"?re=Ze(this.doc,b):re=b?le.from():le.to(),Oi(this,re,E||"page")},charCoords:function(b,E){return ko(this,Ze(this.doc,b),E||"page")},coordsChar:function(b,E){return b=Sa(this,b,E||"page"),yi(this,b.left,b.top)},lineAtHeight:function(b,E){return b=Sa(this,{top:b,left:0},E||"page").top,We(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,re){var le=!1,ce;if(typeof b=="number"){var fe=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>fe&&(b=fe,le=!0),ce=Bt(this.doc,b)}else ce=b;return Bo(this,ce,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-cr(ce):0)},defaultTextHeight:function(){return Hi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ce){var fe=this.display;b=Oi(this,Ze(this.doc,b));var ve=b.bottom,Qe=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),fe.sizer.appendChild(E),le=="over")ve=b.top;else if(le=="above"||le=="near"){var ht=Math.max(fe.wrapper.clientHeight,this.doc.height),_t=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>ht)&&b.top>E.offsetHeight?ve=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=ht&&(ve=b.bottom),Qe+E.offsetWidth>_t&&(Qe=_t-E.offsetWidth)}E.style.top=ve+"px",E.style.left=E.style.right="",ce=="right"?(Qe=fe.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?Qe=0:ce=="middle"&&(Qe=(fe.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Qe+"px"),re&&$s(this,{left:Qe,top:ve,right:Qe+E.offsetWidth,bottom:ve+E.offsetHeight})},triggerOnKeyDown:Ai(ws),triggerOnKeyPress:Ai(Es),triggerOnKeyUp:Ss,triggerOnMouseDown:Ai(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Ai(function(b){ks(this,b)}),findPosH:function(b,E,re,le){var ce=1;E<0&&(ce=-1,E=-E);for(var fe=Ze(this.doc,b),ve=0;ve<E&&(fe=yl(this.doc,fe,ce,re,le),!fe.hitSide);++ve);return fe},moveH:Ai(function(b,E){var re=this;this.extendSelectionsBy(function(le){return re.display.shift||re.doc.extend||le.empty()?yl(re.doc,le.head,b,E,re.options.rtlMoveVisually):b<0?le.from():le.to()},ze)}),deleteH:Ai(function(b,E){var re=this.doc.sel,le=this.doc;re.somethingSelected()?le.replaceSelection("",null,"+delete"):Zo(this,function(ce){var fe=yl(le,ce.head,b,E,!1);return b<0?{from:fe,to:ce.head}:{from:ce.head,to:fe}})}),findPosV:function(b,E,re,le){var ce=1,fe=le;E<0&&(ce=-1,E=-E);for(var ve=Ze(this.doc,b),Qe=0;Qe<E;++Qe){var ht=Oi(this,ve,"div");if(fe==null?fe=ht.left:ht.left=fe,ve=Rs(this,ht,ce,re),ve.hitSide)break}return ve},moveV:Ai(function(b,E){var re=this,le=this.doc,ce=[],fe=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(Qe){if(fe)return b<0?Qe.from():Qe.to();var ht=Oi(re,Qe.head,"div");Qe.goalColumn!=null&&(ht.left=Qe.goalColumn),ce.push(ht.left);var _t=Rs(re,ht,b,E);return E=="page"&&Qe==le.sel.primary()&&Ja(re,ko(re,_t,"div").top-ht.top),_t},ze),ce.length)for(var ve=0;ve<le.sel.ranges.length;ve++)le.sel.ranges[ve].goalColumn=ce[ve]}),findWordAt:function(b){var E=this.doc,re=Bt(E,b.line).text,le=b.ch,ce=b.ch;if(re){var fe=this.getHelper(b,"wordChars");(b.sticky=="before"||ce==re.length)&&le?--le:++ce;for(var ve=re.charAt(le),Qe=se(ve,fe)?function(ht){return se(ht,fe)}:/\s/.test(ve)?function(ht){return/\s/.test(ht)}:function(ht){return!/\s/.test(ht)&&!se(ht)};le>0&&Qe(re.charAt(le-1));)--le;for(;ce<re.length&&Qe(re.charAt(ce));)++ce}return new Ur(Ae(b.line,le),Ae(b.line,ce))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):Ue(this.display.cursorDiv,"CodeMirror-overwrite"),ln(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==rt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ai(function(b,E){Jo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Fi(this)-this.display.barHeight,width:b.scrollWidth-Fi(this)-this.display.barWidth,clientHeight:io(this),clientWidth:to(this)}},scrollIntoView:Ai(function(b,E){b==null?(b={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof b=="number"?b={from:Ae(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=E||0,b.from.line!=null?Vs(this,b):Pl(this,b.from,b.to,b.margin)}),setSize:Ai(function(b,E){var re=this,le=function(fe){return typeof fe=="number"||/^\d+$/.test(String(fe))?fe+"px":fe};b!=null&&(this.display.wrapper.style.width=le(b)),E!=null&&(this.display.wrapper.style.height=le(E)),this.options.lineWrapping&&Ko(this);var ce=this.display.viewFrom;this.doc.iter(ce,this.display.viewTo,function(fe){if(fe.widgets){for(var ve=0;ve<fe.widgets.length;ve++)if(fe.widgets[ve].noHScroll){fo(re,ce,"widget");break}}++ce}),this.curOp.forceUpdate=!0,ln(this,"refresh",this)}),operation:function(b){return ji(this,b)},startOperation:function(){return Ao(this)},endOperation:function(){return Do(this)},refresh:Ai(function(){var b=this.display.cachedTextHeight;Mi(this),this.curOp.forceUpdate=!0,Co(this),Jo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Hi(this.display))>.5||this.options.lineWrapping)&&Ka(this),ln(this,"refresh",this)}),swapDoc:Ai(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Zl(this,b),Co(this),this.display.input.reset(),Jo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Br(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Le(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ce=Bt(a,y.line),fe=E&&a.direction=="rtl"?-x:x;function ve(){var rr=y.line+fe;return rr<a.first||rr>=a.first+a.size?!1:(y=new Ae(rr,y.ch,y.sticky),ce=Bt(a,rr))}function Qe(rr){var Qn;if(b=="codepoint"){var ar=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(ar)?Qn=null:Qn=new Ae(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(ar>=55296&&ar<56320?2:1))),-x)}else E?Qn=Du(a.cm,ce,y,x):Qn=dl(ce,y,x);if(Qn==null)if(!rr&&ve())y=fl(E,a.cm,ce,y.line,fe);else return!1;else y=Qn;return!0}if(b=="char"||b=="codepoint")Qe();else if(b=="column")Qe(!0);else if(b=="word"||b=="group")for(var ht=null,_t=b=="group",Ht=a.cm&&a.cm.getHelper(y,"wordChars"),bn=!0;!(x<0&&!Qe(!bn));bn=!1){var Ln=ce.text.charAt(y.ch)||`
`,Vn=se(Ln,Ht)?"w":_t&&Ln==`
`?"n":!_t||/\s/.test(Ln)?null:"p";if(_t&&!bn&&!Vn&&(Vn="s"),ht&&ht!=Vn){x<0&&(x=1,Qe(),y.sticky="after");break}if(Vn&&(ht=Vn),x>0&&!Qe(!bn))break}var Yn=Na(a,y,re,le,!0);return be(re,Yn)&&(Yn.hitSide=!0),Yn}function Rs(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(ce-.5*Hi(a.display),3);le=(x>0?y.bottom:y.top)+x*fe}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ve;ve=yi(a,re,le),!!ve.outside;){if(x<0?le<=0:le>=E.height){ve.hitSide=!0;break}le+=x*5}return ve}var _r=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_r.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Ls(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ce){for(var fe=ce.target;fe;fe=fe.parentNode){if(fe==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(fe.className))break}return!1}Gt(E,"paste",function(ce){!re(ce)||Pt(b,ce)||Bs(ce,b)||Se<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),Gt(E,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),Gt(E,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),Gt(E,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Gt(E,"touchstart",function(){return x.forceCompositionEnd()}),Gt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!re(ce)||Pt(b,ce))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var fe=Ts(b);Wa({lineWise:!0,text:fe.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(fe.ranges,0,pe),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var ve=qi.text.join(`
`);if(ce.clipboardData.setData("Text",ve),ce.clipboardData.getData("Text")==ve){ce.preventDefault();return}}var Qe=Ns(),ht=Qe.firstChild;b.display.lineSpace.insertBefore(Qe,b.display.lineSpace.firstChild),ht.value=qi.text.join(`
`);var _t=document.activeElement;Be(ht),setTimeout(function(){b.display.lineSpace.removeChild(Qe),_t.focus(),_t==E&&x.showPrimarySelection()},50)}}Gt(E,"copy",le),Gt(E,"cut",le)},_r.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},_r.prototype.prepareSelection=function(){var a=Sl(this.cm,!1);return a.focus=document.activeElement==this.div,a},_r.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},_r.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_r.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var re=Za(y,a.anchorNode,a.anchorOffset),le=Za(y,a.focusNode,a.focusOffset);if(!(re&&!re.bad&&le&&!le.bad&&je(gt(re,le),b)==0&&je(lt(re,le),E)==0)){var ce=y.display.view,fe=b.line>=y.display.viewFrom&&Fs(y,b)||{node:ce[0].measure.map[2],offset:0},ve=E.line<y.display.viewTo&&Fs(y,E);if(!ve){var Qe=ce[ce.length-1].measure,ht=Qe.maps?Qe.maps[Qe.maps.length-1]:Qe.map;ve={node:ht[ht.length-1],offset:ht[ht.length-2]-ht[ht.length-3]}}if(!fe||!ve){a.removeAllRanges();return}var _t=a.rangeCount&&a.getRangeAt(0),Ht;try{Ht=Oe(fe.node,fe.offset,ve.offset,ve.node)}catch(bn){}Ht&&(!z&&y.state.focused?(a.collapse(fe.node,fe.offset),Ht.collapsed||(a.removeAllRanges(),a.addRange(Ht))):(a.removeAllRanges(),a.addRange(Ht)),_t&&a.anchorNode==null?a.addRange(_t):z&&this.startGracePeriod()),this.rememberSelection()}},_r.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},_r.prototype.showMultipleSelections=function(a){vt(this.cm.display.cursorDiv,a.cursors),vt(this.cm.display.selectionDiv,a.selection)},_r.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},_r.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return nt(this.div,y)},_r.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_r.prototype.blur=function(){this.div.blur()},_r.prototype.getField=function(){return this.div},_r.prototype.supportsTouch=function(){return!0},_r.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ji(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},_r.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},_r.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Re&&Ie&&this.cm.display.gutterSpecs.length&&_u(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Za(y,a.anchorNode,a.anchorOffset),b=Za(y,a.focusNode,a.focusOffset);x&&b&&ji(y,function(){wi(y.doc,po(x,b),pe),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},_r.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=Ae(b.line-1,Bt(a.doc,b.line-1).length)),E.ch==Bt(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=Ae(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var re,le,ce;b.line==y.viewFrom||(re=So(a,b.line))==0?(le=Te(y.view[0].line),ce=y.view[0].node):(le=Te(y.view[re].line),ce=y.view[re-1].node.nextSibling);var fe=So(a,E.line),ve,Qe;if(fe==y.view.length-1?(ve=y.viewTo-1,Qe=y.lineDiv.lastChild):(ve=Te(y.view[fe+1].line)-1,Qe=y.view[fe+1].node.previousSibling),!ce)return!1;for(var ht=a.doc.splitLines(Ku(a,ce,Qe,le,ve)),_t=Jt(a.doc,Ae(le,0),Ae(ve,Bt(a.doc,ve).text.length));ht.length>1&&_t.length>1;)if(Fe(ht)==Fe(_t))ht.pop(),_t.pop(),ve--;else if(ht[0]==_t[0])ht.shift(),_t.shift(),le++;else break;for(var Ht=0,bn=0,Ln=ht[0],Vn=_t[0],Yn=Math.min(Ln.length,Vn.length);Ht<Yn&&Ln.charCodeAt(Ht)==Vn.charCodeAt(Ht);)++Ht;for(var rr=Fe(ht),Qn=Fe(_t),ar=Math.min(rr.length-(ht.length==1?Ht:0),Qn.length-(_t.length==1?Ht:0));bn<ar&&rr.charCodeAt(rr.length-bn-1)==Qn.charCodeAt(Qn.length-bn-1);)++bn;if(ht.length==1&&_t.length==1&&le==b.line)for(;Ht&&Ht>b.ch&&rr.charCodeAt(rr.length-bn-1)==Qn.charCodeAt(Qn.length-bn-1);)Ht--,bn++;ht[ht.length-1]=rr.slice(0,rr.length-bn).replace(/^\u200b+/,""),ht[0]=ht[0].slice(Ht).replace(/\u200b+$/,"");var vr=Ae(le,Ht),hr=Ae(ve,_t.length?Fe(_t).length-bn:0);if(ht.length>1||ht[0]||je(vr,hr))return Ho(a.doc,ht,vr,hr,"+input"),!0},_r.prototype.ensurePolled=function(){this.forceCompositionEnd()},_r.prototype.reset=function(){this.forceCompositionEnd()},_r.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_r.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))},_r.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ji(this.cm,function(){return Mi(a.cm)})},_r.prototype.setUneditable=function(a){a.contentEditable="false"},_r.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},_r.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},_r.prototype.onContextMenu=function(){},_r.prototype.resetPosition=function(){},_r.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=Bt(a.doc,y.line),E=Mo(x,b,y.line),re=Qt(b,a.doc.direction),le="left";if(re){var ce=It(re,y.ch);le=ce%2?"right":"left"}var fe=xa(E.map,y.ch,le);return fe.offset=fe.collapse=="right"?fe.end:fe.start,fe}function _u(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Vo(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var re="",le=!1,ce=a.doc.lineSeparator(),fe=!1;function ve(Ht){return function(bn){return bn.id==Ht}}function Qe(){le&&(re+=ce,fe&&(re+=ce),le=fe=!1)}function ht(Ht){Ht&&(Qe(),re+=Ht)}function _t(Ht){if(Ht.nodeType==1){var bn=Ht.getAttribute("cm-text");if(bn){ht(bn);return}var Ln=Ht.getAttribute("cm-marker"),Vn;if(Ln){var Yn=a.findMarks(Ae(b,0),Ae(E+1,0),ve(+Ln));Yn.length&&(Vn=Yn[0].find(0))&&ht(Jt(a.doc,Vn.from,Vn.to).join(ce));return}if(Ht.getAttribute("contenteditable")=="false")return;var rr=/^(pre|div|p|li|table|br)$/i.test(Ht.nodeName);if(!/^br$/i.test(Ht.nodeName)&&Ht.textContent.length==0)return;rr&&Qe();for(var Qn=0;Qn<Ht.childNodes.length;Qn++)_t(Ht.childNodes[Qn]);/^(pre|p)$/i.test(Ht.nodeName)&&(fe=!0),rr&&(le=!0)}else Ht.nodeType==3&&ht(Ht.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;_t(y),y!=x;)y=y.nextSibling,fe=!1;return re}function Za(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Vo(a.clipPos(Ae(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var re=a.display.view[E];if(re.node==b)return Xu(re,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!nt(b,y))return Vo(Ae(Te(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var re=a.rest?Fe(a.rest):a.line;return Vo(Ae(Te(re),re.text.length),E)}var le=y.nodeType==3?y:null,ce=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ce.parentNode!=b;)ce=ce.parentNode;var fe=a.measure,ve=fe.maps;function Qe(Vn,Yn,rr){for(var Qn=-1;Qn<(ve?ve.length:0);Qn++)for(var ar=Qn<0?fe.map:ve[Qn],vr=0;vr<ar.length;vr+=3){var hr=ar[vr+2];if(hr==Vn||hr==Yn){var kr=Te(Qn<0?a.line:a.rest[Qn]),Yr=ar[vr]+rr;return(rr<0||hr!=Vn)&&(Yr=ar[vr+(rr?1:0)]),Ae(kr,Yr)}}}var ht=Qe(le,ce,x);if(ht)return Vo(ht,E);for(var _t=ce.nextSibling,Ht=le?le.nodeValue.length-x:0;_t;_t=_t.nextSibling){if(ht=Qe(_t,_t.firstChild,0),ht)return Vo(Ae(ht.line,ht.ch-Ht),E);Ht+=_t.textContent.length}for(var bn=ce.previousSibling,Ln=x;bn;bn=bn.previousSibling){if(ht=Qe(bn,bn.firstChild,-1),ht)return Vo(Ae(ht.line,ht.ch+Ln),E);Ln+=bn.textContent.length}}var oi=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new de,this.hasSelection=!1,this.composing=null};oi.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),ot&&(E.style.width="0px"),Gt(E,"input",function(){Ee&&Se>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Gt(E,"paste",function(le){Pt(b,le)||Bs(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!Pt(b,le)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=Ts(b);Wa({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,pe):(x.prevInput="",E.value=ce.text.join(`
`),Be(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Gt(E,"cut",re),Gt(E,"copy",re),Gt(a.scroller,"paste",function(le){if(!(vi(a,le)||Pt(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ce=new Event("paste");ce.clipboardData=le.clipboardData,E.dispatchEvent(ce)}}),Gt(a.lineSpace,"selectstart",function(le){vi(a,le)||ut(le)}),Gt(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Gt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},oi.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Sl(a);if(a.options.moveInputWithCursor){var E=Oi(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;vt(x.cursorDiv,a.cursors),vt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},oi.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Be(this.textarea),Ee&&Se>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ee&&Se>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ge||rt()!=this.textarea))try{this.textarea.focus()}catch(a){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},oi.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},oi.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||In(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(Ee&&Se>=9&&this.hasSelection===E||He&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,E.length);le<ce&&b.charCodeAt(le)==E.charCodeAt(le);)++le;return ji(y,function(){vl(y,E.slice(le),b.length-le,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){Ee&&Se>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=wo(x,a),le=b.scroller.scrollTop;if(!re||he)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(re)==-1&&hi(x,wi)(x.doc,po(re),pe);var fe=E.style.cssText,ve=y.wrapper.style.cssText,Qe=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Qe.top-5)+"px; left: "+(a.clientX-Qe.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 ht;Ne&&(ht=window.scrollY),b.input.focus(),Ne&&window.scrollTo(null,ht),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ht,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function _t(){if(E.selectionStart!=null){var Ln=x.somethingSelected(),Vn="\u200B"+(Ln?E.value:"");E.value="\u21DA",E.value=Vn,y.prevInput=Ln?"":"\u200B",E.selectionStart=1,E.selectionEnd=Vn.length,b.selForContextMenu=x.doc.sel}}function Ht(){if(y.contextMenuPending==Ht&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ve,E.style.cssText=fe,Ee&&Se<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!Ee||Ee&&Se<9)&&_t();var Ln=0,Vn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):Ln++<10?b.detectingSelectAll=setTimeout(Vn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Vn,200)}}if(Ee&&Se>=9&&_t(),et){De(a);var bn=function(){rn(window,"mouseup",bn),setTimeout(Ht,20)};Gt(window,"mouseup",bn)}else setTimeout(Ht,50)},oi.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Et(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=rt();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var E;if(a.form&&(Gt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;E=re.submit;try{var le=re.submit=function(){b(),re.submit=E,re.submit(),re.submit=le}}catch(fe){}}y.finishInit=function(fe){fe.save=b,fe.getTextArea=function(){return a},fe.toTextArea=function(){fe.toTextArea=isNaN,b(),a.parentNode.removeChild(fe.getWrapperElement()),a.style.display="",a.form&&(rn(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=Qr(function(fe){return a.parentNode.insertBefore(fe,a.nextSibling)},y);return ce}function Qu(a){a.off=rn,a.on=Gt,a.wheelEventPixels=iu,a.Doc=Bi,a.splitLines=cn,a.countColumn=ge,a.findColumn=Nt,a.isWordChar=oe,a.Pass=xt,a.signal=ln,a.Line=Rr,a.changeEnd=mo,a.scrollbarModel=Bl,a.Pos=Ae,a.cmpPos=je,a.modes=En,a.mimeModes=qt,a.resolveMode=Vt,a.getMode=tn,a.modeExtensions=xn,a.extendMode=wn,a.copyState=mn,a.startState=Hn,a.innerMode=vn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=Au,a.StringStream=zn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=ut,a.e_stopPropagation=Rt,a.e_stop=De,a.addClass=ue,a.contains=nt,a.rmClass=Ue,a.keyNames=yo}Zu(Qr),Uu(Qr);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var $a in Bi.prototype)Bi.prototype.hasOwnProperty($a)&&_e(Ju,$a)<0&&(Qr.prototype[$a]=function(a){return function(){return a.apply(this.doc,arguments)}}(Bi.prototype[$a]));return Le(Bi),Qr.inputStyles={textarea:oi,contenteditable:_r},Qr.defineMode=function(a){!Qr.defaults.mode&&a!="null"&&(Qr.defaults.mode=a),zt.apply(this,arguments)},Qr.defineMIME=Tt,Qr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Qr.defineMIME("text/plain","null"),Qr.defineExtension=function(a,y){Qr.prototype[a]=y},Qr.defineDocExtension=function(a,y){Bi.prototype[a]=y},Qr.fromTextArea=Yu,Qu(Qr),Qr.version="5.58.2",Qr})},25419:function(an,Kt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(it,ye){var qe=z.getMode(it,"text/html"),Ee=qe.name=="null";function Se(ge){if(z.findModeByName){var de=z.findModeByName(ge);de&&(ge=de.mime||de.mimes[0])}var _e=z.getMode(it,ge);return _e.name=="null"?null:_e}ye.highlightFormatting===void 0&&(ye.highlightFormatting=!1),ye.maxBlockquoteDepth===void 0&&(ye.maxBlockquoteDepth=0),ye.taskLists===void 0&&(ye.taskLists=!1),ye.strikethrough===void 0&&(ye.strikethrough=!1),ye.emoji===void 0&&(ye.emoji=!1),ye.fencedCodeBlockHighlighting===void 0&&(ye.fencedCodeBlockHighlighting=!0),ye.fencedCodeBlockDefaultMode===void 0&&(ye.fencedCodeBlockDefaultMode="text/plain"),ye.xml===void 0&&(ye.xml=!0),ye.tokenTypeOverrides===void 0&&(ye.tokenTypeOverrides={});var Ne={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var $e in Ne)Ne.hasOwnProperty($e)&&ye.tokenTypeOverrides[$e]&&(Ne[$e]=ye.tokenTypeOverrides[$e]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Xe=/^\[(x| )\](?=\s)/i,we=ye.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ot=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ot=/^[^#!\[\]*_\\<>` "'(~:]+/,Re=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ge=/^\s*\[[^\]]+?\]:.*$/,He=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ct=" ";function Mt(ge,de,_e){return de.f=de.inline=_e,_e(ge,de)}function jt(ge,de,_e){return de.f=de.block=_e,_e(ge,de)}function Dt(ge){return!ge||!/\S/.test(ge.string)}function et(ge){if(ge.linkTitle=!1,ge.linkHref=!1,ge.linkText=!1,ge.em=!1,ge.strong=!1,ge.strikethrough=!1,ge.quote=0,ge.indentedCode=!1,ge.f==Ue){var de=Ee;if(!de){var _e=z.innerMode(qe,ge.htmlState);de=_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.state.tokenize.isInText}de&&(ge.f=St,ge.block=yt,ge.htmlState=null)}return ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,ge.prevLine=ge.thisLine,ge.thisLine={stream:null},null}function yt(ge,de){var _e=ge.column()===de.indentation,Wt=Dt(de.prevLine.stream),xt=de.indentedCode,pe=de.prevLine.hr,Me=de.list!==!1,ze=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var Nt=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,Me)){for(de.list=null;Nt<de.listStack[de.listStack.length-1];)de.listStack.pop(),de.listStack.length?de.indentation=de.listStack[de.listStack.length-1]:de.list=!1;de.list!==!1&&(de.indentationDiff=Nt-de.listStack[de.listStack.length-1])}var At=!Wt&&!pe&&!de.prevLine.header&&(!Me||!xt)&&!de.prevLine.fencedCodeEnd,Zt=(de.list===!1||pe||Wt)&&de.indentation<=ze&&ge.match(Ie),Fe=null;if(de.indentationDiff>=4&&(xt||de.prevLine.fencedCodeEnd||de.prevLine.header||Wt))return ge.skipToEnd(),de.indentedCode=!0,Ne.code;if(ge.eatSpace())return null;if(_e&&de.indentation<=ze&&(Fe=ge.match(we))&&Fe[1].length<=6)return de.quote=0,de.header=Fe[1].length,de.thisLine.header=!0,ye.highlightFormatting&&(de.formatting="header"),de.f=de.inline,vt(de);if(de.indentation<=ze&&ge.eat(">"))return de.quote=_e?1:de.quote+1,ye.highlightFormatting&&(de.formatting="quote"),ge.eatSpace(),vt(de);if(!Zt&&!de.setext&&_e&&de.indentation<=ze&&(Fe=ge.match(he))){var Lt=Fe[1]?"ol":"ul";return de.indentation=Nt+ge.current().length,de.list=!0,de.quote=0,de.listStack.push(de.indentation),de.em=!1,de.strong=!1,de.code=!1,de.strikethrough=!1,ye.taskLists&&ge.match(Xe,!1)&&(de.taskList=!0),de.f=de.inline,ye.highlightFormatting&&(de.formatting=["list","list-"+Lt]),vt(de)}else{if(_e&&de.indentation<=ze&&(Fe=ge.match(Re,!0)))return de.quote=0,de.fencedEndRE=new RegExp(Fe[1]+"+ *$"),de.localMode=ye.fencedCodeBlockHighlighting&&Se(Fe[2]||ye.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=z.startState(de.localMode)),de.f=de.block=Ft,ye.highlightFormatting&&(de.formatting="code-block"),de.code=-1,vt(de);if(de.setext||(!At||!Me)&&!de.quote&&de.list===!1&&!de.code&&!Zt&&!Ge.test(ge.string)&&(Fe=ge.lookAhead(1))&&(Fe=Fe.match(Ot)))return de.setext?(de.header=de.setext,de.setext=0,ge.skipToEnd(),ye.highlightFormatting&&(de.formatting="header")):(de.header=Fe[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,vt(de);if(Zt)return ge.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Ne.hr;if(ge.peek()==="[")return Mt(ge,de,bt)}return Mt(ge,de,de.inline)}function Ue(ge,de){var _e=qe.token(ge,de.htmlState);if(!Ee){var Wt=z.innerMode(qe,de.htmlState);(Wt.mode.name=="xml"&&Wt.state.tagStart===null&&!Wt.state.context&&Wt.state.tokenize.isInText||de.md_inside&&ge.current().indexOf(">")>-1)&&(de.f=St,de.block=yt,de.htmlState=null)}return _e}function Ft(ge,de){var _e=de.listStack[de.listStack.length-1]||0,Wt=de.indentation<_e,xt=_e+3;if(de.fencedEndRE&&de.indentation<=xt&&(Wt||ge.match(de.fencedEndRE))){ye.highlightFormatting&&(de.formatting="code-block");var pe;return Wt||(pe=vt(de)),de.localMode=de.localState=null,de.block=yt,de.f=St,de.fencedEndRE=null,de.code=0,de.thisLine.fencedCodeEnd=!0,Wt?jt(ge,de,de.block):pe}else return de.localMode?de.localMode.token(ge,de.localState):(ge.skipToEnd(),Ne.code)}function vt(ge){var de=[];if(ge.formatting){de.push(Ne.formatting),typeof ge.formatting=="string"&&(ge.formatting=[ge.formatting]);for(var _e=0;_e<ge.formatting.length;_e++)de.push(Ne.formatting+"-"+ge.formatting[_e]),ge.formatting[_e]==="header"&&de.push(Ne.formatting+"-"+ge.formatting[_e]+"-"+ge.header),ge.formatting[_e]==="quote"&&(!ye.maxBlockquoteDepth||ye.maxBlockquoteDepth>=ge.quote?de.push(Ne.formatting+"-"+ge.formatting[_e]+"-"+ge.quote):de.push("error"))}if(ge.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(ge.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(ge.linkHref?de.push(Ne.linkHref,"url"):(ge.strong&&de.push(Ne.strong),ge.em&&de.push(Ne.em),ge.strikethrough&&de.push(Ne.strikethrough),ge.emoji&&de.push(Ne.emoji),ge.linkText&&de.push(Ne.linkText),ge.code&&de.push(Ne.code),ge.image&&de.push(Ne.image),ge.imageAltText&&de.push(Ne.imageAltText,"link"),ge.imageMarker&&de.push(Ne.imageMarker)),ge.header&&de.push(Ne.header,Ne.header+"-"+ge.header),ge.quote&&(de.push(Ne.quote),!ye.maxBlockquoteDepth||ye.maxBlockquoteDepth>=ge.quote?de.push(Ne.quote+"-"+ge.quote):de.push(Ne.quote+"-"+ye.maxBlockquoteDepth)),ge.list!==!1){var Wt=(ge.listStack.length-1)%3;Wt?Wt===1?de.push(Ne.list2):de.push(Ne.list3):de.push(Ne.list1)}return ge.trailingSpaceNewLine?de.push("trailing-space-new-line"):ge.trailingSpace&&de.push("trailing-space-"+(ge.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function dt(ge,de){if(ge.match(ot,!0))return vt(de)}function St(ge,de){var _e=de.text(ge,de);if(typeof _e!="undefined")return _e;if(de.list)return de.list=null,vt(de);if(de.taskList){var Wt=ge.match(Xe,!0)[1]===" ";return Wt?de.taskOpen=!0:de.taskClosed=!0,ye.highlightFormatting&&(de.formatting="task"),de.taskList=!1,vt(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&ge.match(/^#+$/,!0))return ye.highlightFormatting&&(de.formatting="header"),vt(de);var xt=ge.next();if(de.linkTitle){de.linkTitle=!1;var pe=xt;xt==="("&&(pe=")"),pe=(pe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Me="^\\s*(?:[^"+pe+"\\\\]+|\\\\\\\\|\\\\.)"+pe;if(ge.match(new RegExp(Me),!0))return Ne.linkHref}if(xt==="`"){var ze=de.formatting;ye.highlightFormatting&&(de.formatting="code"),ge.eatWhile("`");var Nt=ge.current().length;if(de.code==0&&(!de.quote||Nt==1))return de.code=Nt,vt(de);if(Nt==de.code){var At=vt(de);return de.code=0,At}else return de.formatting=ze,vt(de)}else if(de.code)return vt(de);if(xt==="\\"&&(ge.next(),ye.highlightFormatting)){var Zt=vt(de),Fe=Ne.formatting+"-escape";return Zt?Zt+" "+Fe:Fe}if(xt==="!"&&ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,ye.highlightFormatting&&(de.formatting="image"),vt(de);if(xt==="["&&de.imageMarker&&ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,ye.highlightFormatting&&(de.formatting="image"),vt(de);if(xt==="]"&&de.imageAltText){ye.highlightFormatting&&(de.formatting="image");var Zt=vt(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=nt,Zt}if(xt==="["&&!de.image)return de.linkText&&ge.match(/^.*?\]/)||(de.linkText=!0,ye.highlightFormatting&&(de.formatting="link")),vt(de);if(xt==="]"&&de.linkText){ye.highlightFormatting&&(de.formatting="link");var Zt=vt(de);return de.linkText=!1,de.inline=de.f=ge.match(/\(.*?\)| ?\[.*?\]/,!1)?nt:St,Zt}if(xt==="<"&&ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Oe,ye.highlightFormatting&&(de.formatting="link");var Zt=vt(de);return Zt?Zt+=" ":Zt="",Zt+Ne.linkInline}if(xt==="<"&&ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Oe,ye.highlightFormatting&&(de.formatting="link");var Zt=vt(de);return Zt?Zt+=" ":Zt="",Zt+Ne.linkEmail}if(ye.xml&&xt==="<"&&ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Lt=ge.string.indexOf(">",ge.pos);if(Lt!=-1){var st=ge.string.substring(ge.start,Lt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(st)&&(de.md_inside=!0)}return ge.backUp(1),de.htmlState=z.startState(qe),jt(ge,de,Ue)}if(ye.xml&&xt==="<"&&ge.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(xt==="*"||xt==="_"){for(var ae=1,te=ge.pos==1?" ":ge.string.charAt(ge.pos-2);ae<3&&ge.eat(xt);)ae++;var ee=ge.peek()||" ",oe=!/\s/.test(ee)&&(!He.test(ee)||/\s/.test(te)||He.test(te)),se=!/\s/.test(te)&&(!He.test(te)||/\s/.test(ee)||He.test(ee)),ne=null,me=null;if(ae%2&&(!de.em&&oe&&(xt==="*"||!se||He.test(te))?ne=!0:de.em==xt&&se&&(xt==="*"||!oe||He.test(ee))&&(ne=!1)),ae>1&&(!de.strong&&oe&&(xt==="*"||!se||He.test(te))?me=!0:de.strong==xt&&se&&(xt==="*"||!oe||He.test(ee))&&(me=!1)),me!=null||ne!=null){ye.highlightFormatting&&(de.formatting=ne==null?"strong":me==null?"em":"strong em"),ne===!0&&(de.em=xt),me===!0&&(de.strong=xt);var At=vt(de);return ne===!1&&(de.em=!1),me===!1&&(de.strong=!1),At}}else if(xt===" "&&(ge.eat("*")||ge.eat("_"))){if(ge.peek()===" ")return vt(de);ge.backUp(1)}if(ye.strikethrough){if(xt==="~"&&ge.eatWhile(xt)){if(de.strikethrough){ye.highlightFormatting&&(de.formatting="strikethrough");var At=vt(de);return de.strikethrough=!1,At}else if(ge.match(/^[^\s]/,!1))return de.strikethrough=!0,ye.highlightFormatting&&(de.formatting="strikethrough"),vt(de)}else if(xt===" "&&ge.match(/^~~/,!0)){if(ge.peek()===" ")return vt(de);ge.backUp(2)}}if(ye.emoji&&xt===":"&&ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,ye.highlightFormatting&&(de.formatting="emoji");var Ce=vt(de);return de.emoji=!1,Ce}return xt===" "&&(ge.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),vt(de)}function Oe(ge,de){var _e=ge.next();if(_e===">"){de.f=de.inline=St,ye.highlightFormatting&&(de.formatting="link");var Wt=vt(de);return Wt?Wt+=" ":Wt="",Wt+Ne.linkInline}return ge.match(/^[^>]+/,!0),Ne.linkInline}function nt(ge,de){if(ge.eatSpace())return null;var _e=ge.next();return _e==="("||_e==="["?(de.f=de.inline=ue(_e==="("?")":"]"),ye.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,vt(de)):"error"}var rt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(ge){return function(de,_e){var Wt=de.next();if(Wt===ge){_e.f=_e.inline=St,ye.highlightFormatting&&(_e.formatting="link-string");var xt=vt(_e);return _e.linkHref=!1,xt}return de.match(rt[ge]),_e.linkHref=!0,vt(_e)}}function bt(ge,de){return ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=Be,ge.next(),ye.highlightFormatting&&(de.formatting="link"),de.linkText=!0,vt(de)):Mt(ge,de,St)}function Be(ge,de){if(ge.match(/^\]:/,!0)){de.f=de.inline=tt,ye.highlightFormatting&&(de.formatting="link");var _e=vt(de);return de.linkText=!1,_e}return ge.match(/^([^\]\\]|\\.)+/,!0),Ne.linkText}function tt(ge,de){return ge.eatSpace()?null:(ge.match(/^[^\s]+/,!0),ge.peek()===void 0?de.linkTitle=!0:ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=St,Ne.linkHref+" url")}var Et={startState:function(){return{f:yt,prevLine:{stream:null},thisLine:{stream:null},block:yt,htmlState:null,indentation:0,inline:St,text:dt,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(ge){return{f:ge.f,prevLine:ge.prevLine,thisLine:ge.thisLine,block:ge.block,htmlState:ge.htmlState&&z.copyState(qe,ge.htmlState),indentation:ge.indentation,localMode:ge.localMode,localState:ge.localMode?z.copyState(ge.localMode,ge.localState):null,inline:ge.inline,text:ge.text,formatting:!1,linkText:ge.linkText,linkTitle:ge.linkTitle,linkHref:ge.linkHref,code:ge.code,em:ge.em,strong:ge.strong,strikethrough:ge.strikethrough,emoji:ge.emoji,header:ge.header,setext:ge.setext,hr:ge.hr,taskList:ge.taskList,list:ge.list,listStack:ge.listStack.slice(0),quote:ge.quote,indentedCode:ge.indentedCode,trailingSpace:ge.trailingSpace,trailingSpaceNewLine:ge.trailingSpaceNewLine,md_inside:ge.md_inside,fencedEndRE:ge.fencedEndRE}},token:function(ge,de){if(de.formatting=!1,ge!=de.thisLine.stream){if(de.header=0,de.hr=!1,ge.match(/^\s*$/,!0))return et(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:ge},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Ue)){var _e=ge.match(/^\s*/,!0)[0].replace(/\t/g,Ct).length;if(de.indentation=_e,de.indentationDiff=null,_e>0)return null}}return de.f(ge,de)},innerMode:function(ge){return ge.block==Ue?{state:ge.htmlState,mode:qe}:ge.localState?{state:ge.localState,mode:ge.localMode}:{state:ge,mode:Et}},indent:function(ge,de,_e){return ge.block==Ue&&qe.indent?qe.indent(ge.htmlState,de,_e):ge.localState&&ge.localMode.indent?ge.localMode.indent(ge.localState,de,_e):z.Pass},blankLine:et,getType:vt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Et},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(an,Kt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var it=0;it<z.modeInfo.length;it++){var ye=z.modeInfo[it];ye.mimes&&(ye.mime=ye.mimes[0])}z.findModeByMIME=function(qe){qe=qe.toLowerCase();for(var Ee=0;Ee<z.modeInfo.length;Ee++){var Se=z.modeInfo[Ee];if(Se.mime==qe)return Se;if(Se.mimes){for(var Ne=0;Ne<Se.mimes.length;Ne++)if(Se.mimes[Ne]==qe)return Se}}if(/\+xml$/.test(qe))return z.findModeByMIME("application/xml");if(/\+json$/.test(qe))return z.findModeByMIME("application/json")},z.findModeByExtension=function(qe){qe=qe.toLowerCase();for(var Ee=0;Ee<z.modeInfo.length;Ee++){var Se=z.modeInfo[Ee];if(Se.ext){for(var Ne=0;Ne<Se.ext.length;Ne++)if(Se.ext[Ne]==qe)return Se}}},z.findModeByFileName=function(qe){for(var Ee=0;Ee<z.modeInfo.length;Ee++){var Se=z.modeInfo[Ee];if(Se.file&&Se.file.test(qe))return Se}var Ne=qe.lastIndexOf("."),$e=Ne>-1&&qe.substring(Ne+1,qe.length);if($e)return z.findModeByExtension($e)},z.findModeByName=function(qe){qe=qe.toLowerCase();for(var Ee=0;Ee<z.modeInfo.length;Ee++){var Se=z.modeInfo[Ee];if(Se.name.toLowerCase()==qe)return Se;if(Se.alias){for(var Ne=0;Ne<Se.alias.length;Ne++)if(Se.alias[Ne].toLowerCase()==qe)return Se}}}})},67549:function(an,Kt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.defineMode("stex",function(it,ye){"use strict";function qe(ot,Re){ot.cmdState.push(Re)}function Ee(ot){return ot.cmdState.length>0?ot.cmdState[ot.cmdState.length-1]:null}function Se(ot){var Re=ot.cmdState.pop();Re&&Re.closeBracket()}function Ne(ot){for(var Re=ot.cmdState,Ge=Re.length-1;Ge>=0;Ge--){var He=Re[Ge];if(He.name!="DEFAULT")return He}return{styleIdentifier:function(){return null}}}function $e(ot,Re,Ge){return function(){this.name=ot,this.bracketNo=0,this.style=Re,this.styles=Ge,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=$e("importmodule","tag",["string","builtin"]),Ie.documentclass=$e("documentclass","tag",["","atom"]),Ie.usepackage=$e("usepackage","tag",["atom"]),Ie.begin=$e("begin","tag",["atom"]),Ie.end=$e("end","tag",["atom"]),Ie.label=$e("label","tag",["atom"]),Ie.ref=$e("ref","tag",["atom"]),Ie.eqref=$e("eqref","tag",["atom"]),Ie.cite=$e("cite","tag",["atom"]),Ie.bibitem=$e("bibitem","tag",["atom"]),Ie.Bibitem=$e("Bibitem","tag",["atom"]),Ie.RBibitem=$e("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(ot,Re){ot.f=Re}function Xe(ot,Re){var Ge;if(ot.match(/^\\[a-zA-Z@]+/)){var He=ot.current().slice(1);return Ge=Ie.hasOwnProperty(He)?Ie[He]:Ie.DEFAULT,Ge=new Ge,qe(Re,Ge),he(Re,Ot),Ge.style}if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/\\]/))return"tag";if(ot.match("\\["))return he(Re,function(Mt,jt){return we(Mt,jt,"\\]")}),"keyword";if(ot.match("\\("))return he(Re,function(Mt,jt){return we(Mt,jt,"\\)")}),"keyword";if(ot.match("$$"))return he(Re,function(Mt,jt){return we(Mt,jt,"$$")}),"keyword";if(ot.match("$"))return he(Re,function(Mt,jt){return we(Mt,jt,"$")}),"keyword";var Ct=ot.next();if(Ct=="%")return ot.skipToEnd(),"comment";if(Ct=="}"||Ct=="]"){if(Ge=Ee(Re),Ge)Ge.closeBracket(Ct),he(Re,Ot);else return"error";return"bracket"}else return Ct=="{"||Ct=="["?(Ge=Ie.DEFAULT,Ge=new Ge,qe(Re,Ge),"bracket"):/\d/.test(Ct)?(ot.eatWhile(/[\w.%]/),"atom"):(ot.eatWhile(/[\w\-_]/),Ge=Ne(Re),Ge.name=="begin"&&(Ge.argument=ot.current()),Ge.styleIdentifier())}function we(ot,Re,Ge){if(ot.eatSpace())return null;if(Ge&&ot.match(Ge))return he(Re,Xe),"keyword";if(ot.match(/^\\[a-zA-Z@]+/))return"tag";if(ot.match(/^[a-zA-Z]+/))return"variable-2";if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/]/)||ot.match(/^[\^_&]/))return"tag";if(ot.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ot.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var He=ot.next();return He=="{"||He=="}"||He=="["||He=="]"||He=="("||He==")"?"bracket":He=="%"?(ot.skipToEnd(),"comment"):"error"}function Ot(ot,Re){var Ge=ot.peek(),He;return Ge=="{"||Ge=="["?(He=Ee(Re),He.openBracket(Ge),ot.eat(Ge),he(Re,Xe),"bracket"):/[ \t\r]/.test(Ge)?(ot.eat(Ge),null):(he(Re,Xe),Se(Re),Xe(ot,Re))}return{startState:function(){var ot=ye.inMathMode?function(Re,Ge){return we(Re,Ge)}:Xe;return{cmdState:[],f:ot}},copyState:function(ot){return{cmdState:ot.cmdState.slice(),f:ot.f}},token:function(ot,Re){return Re.f(ot,Re)},blankLine:function(ot){ot.f=Xe,ot.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(an,Kt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var it={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},ye={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(qe,Ee){var Se=qe.indentUnit,Ne={},$e=Ee.htmlMode?it:ye;for(var Ie in $e)Ne[Ie]=$e[Ie];for(var Ie in Ee)Ne[Ie]=Ee[Ie];var he,Xe;function we(Oe,nt){function rt(Be){return nt.tokenize=Be,Be(Oe,nt)}var ue=Oe.next();if(ue=="<")return Oe.eat("!")?Oe.eat("[")?Oe.match("CDATA[")?rt(Re("atom","]]>")):null:Oe.match("--")?rt(Re("comment","-->")):Oe.match("DOCTYPE",!0,!0)?(Oe.eatWhile(/[\w\._\-]/),rt(Ge(1))):null:Oe.eat("?")?(Oe.eatWhile(/[\w\._\-]/),nt.tokenize=Re("meta","?>"),"meta"):(he=Oe.eat("/")?"closeTag":"openTag",nt.tokenize=Ot,"tag bracket");if(ue=="&"){var bt;return Oe.eat("#")?Oe.eat("x")?bt=Oe.eatWhile(/[a-fA-F\d]/)&&Oe.eat(";"):bt=Oe.eatWhile(/[\d]/)&&Oe.eat(";"):bt=Oe.eatWhile(/[\w\.\-:]/)&&Oe.eat(";"),bt?"atom":"error"}else return Oe.eatWhile(/[^&<]/),null}we.isInText=!0;function Ot(Oe,nt){var rt=Oe.next();if(rt==">"||rt=="/"&&Oe.eat(">"))return nt.tokenize=we,he=rt==">"?"endTag":"selfcloseTag","tag bracket";if(rt=="=")return he="equals",null;if(rt=="<"){nt.tokenize=we,nt.state=jt,nt.tagName=nt.tagStart=null;var ue=nt.tokenize(Oe,nt);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(rt)?(nt.tokenize=ot(rt),nt.stringStartCol=Oe.column(),nt.tokenize(Oe,nt)):(Oe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ot(Oe){var nt=function(rt,ue){for(;!rt.eol();)if(rt.next()==Oe){ue.tokenize=Ot;break}return"string"};return nt.isInAttribute=!0,nt}function Re(Oe,nt){return function(rt,ue){for(;!rt.eol();){if(rt.match(nt)){ue.tokenize=we;break}rt.next()}return Oe}}function Ge(Oe){return function(nt,rt){for(var ue;(ue=nt.next())!=null;){if(ue=="<")return rt.tokenize=Ge(Oe+1),rt.tokenize(nt,rt);if(ue==">")if(Oe==1){rt.tokenize=we;break}else return rt.tokenize=Ge(Oe-1),rt.tokenize(nt,rt)}return"meta"}}function He(Oe,nt,rt){this.prev=Oe.context,this.tagName=nt,this.indent=Oe.indented,this.startOfLine=rt,(Ne.doNotIndent.hasOwnProperty(nt)||Oe.context&&Oe.context.noIndent)&&(this.noIndent=!0)}function Ct(Oe){Oe.context&&(Oe.context=Oe.context.prev)}function Mt(Oe,nt){for(var rt;;){if(!Oe.context||(rt=Oe.context.tagName,!Ne.contextGrabbers.hasOwnProperty(rt)||!Ne.contextGrabbers[rt].hasOwnProperty(nt)))return;Ct(Oe)}}function jt(Oe,nt,rt){return Oe=="openTag"?(rt.tagStart=nt.column(),Dt):Oe=="closeTag"?et:jt}function Dt(Oe,nt,rt){return Oe=="word"?(rt.tagName=nt.current(),Xe="tag",Ft):Ne.allowMissingTagName&&Oe=="endTag"?(Xe="tag bracket",Ft(Oe,nt,rt)):(Xe="error",Dt)}function et(Oe,nt,rt){if(Oe=="word"){var ue=nt.current();return rt.context&&rt.context.tagName!=ue&&Ne.implicitlyClosed.hasOwnProperty(rt.context.tagName)&&Ct(rt),rt.context&&rt.context.tagName==ue||Ne.matchClosing===!1?(Xe="tag",yt):(Xe="tag error",Ue)}else return Ne.allowMissingTagName&&Oe=="endTag"?(Xe="tag bracket",yt(Oe,nt,rt)):(Xe="error",Ue)}function yt(Oe,nt,rt){return Oe!="endTag"?(Xe="error",yt):(Ct(rt),jt)}function Ue(Oe,nt,rt){return Xe="error",yt(Oe,nt,rt)}function Ft(Oe,nt,rt){if(Oe=="word")return Xe="attribute",vt;if(Oe=="endTag"||Oe=="selfcloseTag"){var ue=rt.tagName,bt=rt.tagStart;return rt.tagName=rt.tagStart=null,Oe=="selfcloseTag"||Ne.autoSelfClosers.hasOwnProperty(ue)?Mt(rt,ue):(Mt(rt,ue),rt.context=new He(rt,ue,bt==rt.indented)),jt}return Xe="error",Ft}function vt(Oe,nt,rt){return Oe=="equals"?dt:(Ne.allowMissing||(Xe="error"),Ft(Oe,nt,rt))}function dt(Oe,nt,rt){return Oe=="string"?St:Oe=="word"&&Ne.allowUnquoted?(Xe="string",Ft):(Xe="error",Ft(Oe,nt,rt))}function St(Oe,nt,rt){return Oe=="string"?St:Ft(Oe,nt,rt)}return{startState:function(Oe){var nt={tokenize:we,state:jt,indented:Oe||0,tagName:null,tagStart:null,context:null};return Oe!=null&&(nt.baseIndent=Oe),nt},token:function(Oe,nt){if(!nt.tagName&&Oe.sol()&&(nt.indented=Oe.indentation()),Oe.eatSpace())return null;he=null;var rt=nt.tokenize(Oe,nt);return(rt||he)&&rt!="comment"&&(Xe=null,nt.state=nt.state(he||rt,Oe,nt),Xe&&(rt=Xe=="error"?rt+" error":Xe)),rt},indent:function(Oe,nt,rt){var ue=Oe.context;if(Oe.tokenize.isInAttribute)return Oe.tagStart==Oe.indented?Oe.stringStartCol+1:Oe.indented+Se;if(ue&&ue.noIndent)return z.Pass;if(Oe.tokenize!=Ot&&Oe.tokenize!=we)return rt?rt.match(/^(\s*)/)[0].length:0;if(Oe.tagName)return Ne.multilineTagIndentPastTag!==!1?Oe.tagStart+Oe.tagName.length+2:Oe.tagStart+Se*(Ne.multilineTagIndentFactor||1);if(Ne.alignCDATA&&/<!\[CDATA\[/.test(nt))return 0;var bt=nt&&/^<(\/)?([\w_:\.-]*)/.exec(nt);if(bt&&bt[1])for(;ue;)if(ue.tagName==bt[2]){ue=ue.prev;break}else if(Ne.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(bt)for(;ue;){var Be=Ne.contextGrabbers[ue.tagName];if(Be&&Be.hasOwnProperty(bt[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+Se:Oe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ne.htmlMode?"html":"xml",helperType:Ne.htmlMode?"html":"xml",skipAttribute:function(Oe){Oe.state==dt&&(Oe.state=Ft)},xmlCurrentTag:function(Oe){return Oe.tagName?{name:Oe.tagName,close:Oe.type=="closeTag"}:null},xmlCurrentContext:function(Oe){for(var nt=[],rt=Oe.context;rt;rt=rt.prev)rt.tagName&&nt.push(rt.tagName);return nt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(an,Kt,ie){"use strict";ie.d(Kt,{hP:function(){return st}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function it(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ye(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function me(Pe){try{mt(oe.next(Pe))}catch(Ke){ne(Ke)}}function Ce(Pe){try{mt(oe.throw(Pe))}catch(Ke){ne(Ke)}}function mt(Pe){var Ke;Pe.done?se(Pe.value):(Ke=Pe.value,Ke instanceof ee?Ke:new ee(function(ft){ft(Ke)})).then(me,Ce)}mt((oe=oe.apply(ae,te||[])).next())})}function qe(ae,te){var ee,oe,se,ne,me={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Ce(mt){return function(Pe){return function(Ke){if(ee)throw new TypeError("Generator is already executing.");for(;me;)try{if(ee=1,oe&&(se=2&Ke[0]?oe.return:Ke[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Ke[1])).done)return se;switch(oe=0,se&&(Ke=[2&Ke[0],se.value]),Ke[0]){case 0:case 1:se=Ke;break;case 4:return me.label++,{value:Ke[1],done:!1};case 5:me.label++,oe=Ke[1],Ke=[0];continue;case 7:Ke=me.ops.pop(),me.trys.pop();continue;default:if(se=me.trys,!((se=se.length>0&&se[se.length-1])||Ke[0]!==6&&Ke[0]!==2)){me=0;continue}if(Ke[0]===3&&(!se||Ke[1]>se[0]&&Ke[1]<se[3])){me.label=Ke[1];break}if(Ke[0]===6&&me.label<se[1]){me.label=se[1],se=Ke;break}if(se&&me.label<se[2]){me.label=se[2],me.ops.push(Ke);break}se[2]&&me.ops.pop(),me.trys.pop();continue}Ke=te.call(ae,me)}catch(ft){Ke=[6,ft],oe=0}finally{ee=se=0}if(5&Ke[0])throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}([mt,Pe])}}}function Ee(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),se=0;for(te=0;te<ee;te++)for(var ne=arguments[te],me=0,Ce=ne.length;me<Ce;me++,se++)oe[se]=ne[me];return oe}var Se=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(te,ee){for(var oe=0,se=ee;oe<se.length;oe++){var ne=se[oe],me=ne[0],Ce=ne[1];te.setAttribute(me,Ce)}},ae.createRect=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",te.toString()),se.setAttribute("height",ee.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(te,ee,oe,se,ne){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",te.toString()),me.setAttribute("y1",ee.toString()),me.setAttribute("x2",oe.toString()),me.setAttribute("y2",se.toString()),ne&&ae.setAttributes(me,ne),me},ae.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&ae.setAttributes(oe,ee),oe},ae.createCircle=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(te/2).toString()),oe.setAttribute("cy",(te/2).toString()),oe.setAttribute("r",te.toString()),ee&&ae.setAttributes(oe,ee),oe},ae.createEllipse=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(te/2).toString()),se.setAttribute("cy",(ee/2).toString()),se.setAttribute("rx",(te/2).toString()),se.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(se,oe),se},ae.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(ee,te),ee},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,ee,oe,se,ne,me,Ce){var mt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(mt,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",me.toString()]]),mt.appendChild(Ce),mt},ae.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&ae.setAttributes(ee,te),ee},ae.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&ae.setAttributes(oe,ee),oe},ae.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(ee,te),ee},ae.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},ae.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&ae.setAttributes(oe,ee),oe},ae}(),Ne=function(){function ae(){}return ae.addKey=function(te){ae.key=te},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),$e=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var se=this;return new Promise(function(ne){var me=oe!==void 0?oe:document.createElement("canvas");te===null&&(se.markersOnly=!0,se.naturalSize=!1);var Ce=document.createElementNS("http://www.w3.org/2000/svg","svg");Ce.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ce.setAttribute("width",ee.width.baseVal.valueAsString),Ce.setAttribute("height",ee.height.baseVal.valueAsString),Ce.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),Ce.innerHTML=ee.innerHTML,se.naturalSize===!0?(Ce.width.baseVal.value=te.naturalWidth,Ce.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(Ce.width.baseVal.value=se.width,Ce.height.baseVal.value=se.height),me.width=Ce.width.baseVal.value,me.height=Ce.height.baseVal.value;var mt=Ce.outerHTML,Pe=me.getContext("2d");se.markersOnly!==!0&&Pe.drawImage(te,0,0,me.width,me.height);var Ke=window.URL,ft=new Image(me.width,me.height);ft.setAttribute("crossOrigin","anonymous");var It=new Blob([mt],{type:"image/svg+xml"}),wt=Ke.createObjectURL(It);ft.onload=function(){Pe.drawImage(ft,0,0),Ke.revokeObjectURL(wt);var Qt=me.toDataURL(se.imageType,se.imageQuality);ne(Qt)},ft.src=wt})},ae}(),Ie=function(){},he=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},ae.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new Xe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new we("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new we("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),Xe=function(ae,te){this.selector=ae,this.style=te},we=function(ae,te){this.localName=ae,this.style=te},Ot=function(){function ae(te,ee,oe,se,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=se,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(te){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var me=document.createElement("div");me.className=""+ee.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",ne.typeName),me.innerHTML=ne.icon,me.addEventListener("click",function(){ee.markerToolbarButtonClicked(me,ne)}),ee.buttons.push(me),ee.markerButtons.push(me)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"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;ee<this.markerButtons.length;ee++)ee<te||ee===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(te,ee,oe){var se=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=ee,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){se.actionToolbarButtonClicked(ne,oe)}),oe){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new we("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new we("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new we("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new we("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new we("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new we("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new we("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.prototype.markerToolbarButtonClicked=function(te,ee){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&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}(),ot=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new we("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 we("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new we("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new we("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new we("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 we("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new we("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 we("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var me;ne.uiStyleSettings=se.uiStyleSettings;var Ce=document.createElement("div");Ce.className=se.toolboxButtonStyleClass.name+" "+((me=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:se.toolboxButtonStyleColorsClass.name),Ce.innerHTML=ne.icon,Ce.title=ne.title,Ce.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(Ce),se.buttonRow.appendChild(Ce)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,me){var Ce,mt;ne.className=ee.toolboxButtonStyleClass.name+" "+(me===oe?""+((Ce=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ce!==void 0?Ce:ee.toolboxActiveButtonStyleColorsClass.name):""+((mt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&mt!==void 0?mt:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Re=function(ae,te){this.title=ae,this.icon=te},Ge=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=oe,me.currentColor=se,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=ee.getColorBox(se);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=ne-2+"px",me.style.height=ne-2+"px",me.style.padding="1px",me.style.marginRight="2px",me.style.marginBottom="2px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderRadius=(ne+2)/2+"px",me.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){oe.setCurrentColor(ee,me)});var Ce=document.createElement("div");return Ce.style.display="inline-block",Ce.style.width=ne-2+"px",Ce.style.height=ne-2+"px",Ce.style.backgroundColor=ee,Ce.style.borderRadius=ne/2+"px",ee==="transparent"&&(Ce.style.fill=this.uiStyleSettings.toolboxAccentColor,Ce.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),me.appendChild(Ce),me},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Re),He=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}(),Ct=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}(),Mt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Se.createGroup(),this.visual.appendChild(Se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Se.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}(),jt=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}(),Dt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Se.createTransform()),ne.setupControlBox(),ne}return it(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=Se.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),me>=0?(this.top=ne,this.height=me):(this.top=ne+me,this.height=-me),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Se.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Se.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Se.createGroup();var ee=Se.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Se.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=Se.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 Ct,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 Mt;return ee.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,me=(this.height+this.CB_DISTANCE)/2-ee/2,Ce=this.height+this.CB_DISTANCE-ee/2,mt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,mt,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,me),this.positionGrip(this.controlGrips.centerRight.visual,mt,me),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Ce),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Ce),this.positionGrip(this.controlGrips.bottomRight.visual,mt,Ce),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:jt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:jt.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(jt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(jt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(He),et=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Se.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),Se.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&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Se.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}(Dt),yt=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return me.widths=[],me.widthBoxes=[],me.widths=oe,me.currentWidth=se,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.innerText=se.toString(),me.style.marginRight="5px",ne.appendChild(me);var Ce=document.createElement("div");Ce.style.minHeight="20px",Ce.style.flexGrow="2",Ce.style.display="flex",Ce.style.alignItems="center";var mt=document.createElement("hr");mt.style.minWidth="20px",mt.style.border="0px",mt.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,mt.style.flexGrow="2",Ce.appendChild(mt),ne.appendChild(Ce),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Re),Ue=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return me.styles=[],me.styleBoxes=[],me.styles=oe,me.currentStyle=se,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ce=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;me.innerHTML=Ce,ne.appendChild(me),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Re),Ft=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ue("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(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='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(et),vt=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"},dt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return it(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=Se.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 Mt;return ee.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(He),St=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ue("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(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=Se.createGroup(),this.selectorLine=Se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Se.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()),Se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Se.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='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(dt),Oe=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return me.fonts=[],me.fontBoxes=[],me.fonts=oe,me.currentFont=se,me.setCurrentFont=me.setCurrentFont.bind(me),me}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=se,me.style.overflow="hidden";var Ce=document.createElement("div");Ce.style.whiteSpace="nowrap",Ce.style.overflow="hidden",Ce.style.textOverflow="ellipsis",Ce.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ce),ne.appendChild(me),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Re),nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ge("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Oe("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Se.createGroup(),this.bgRectangle=Se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Se.createTransform()),this.textElement.transform.baseVal.appendItem(Se.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(Se.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:se,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*ee,y:se.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Se.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&&Se.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='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',te}(Dt),rt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ge("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return it(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=Se.createGroup(),this.drawingImage=Se.createImage(),this.visual.appendChild(this.drawingImage);var ee=Se.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),Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],ne=oe[1],me=oe[2],Ce=oe[3],mt=!1,Pe=0;Pe<this.canvasElement.height;Pe++)for(var Ke=0;Ke<this.canvasElement.width;Ke++)ee.data[Pe*this.canvasElement.width*4+4*Ke+3]>0&&(mt=!0,Pe<ne&&(ne=Pe),Ke<se&&(se=Ke),Pe>Ce&&(Ce=Pe),Ke>me&&(me=Ke));if(mt){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(me-se)/this.pixelRatio,this.height=(Ce-ne)/this.pixelRatio;var ft=document.createElement("canvas");ft.width=me-se,ft.height=Ce-ne,ft.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,me-se,Ce-ne),0,0),this.drawingImgUrl=ft.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Se.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='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',te}(Dt),ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(Ce){var mt="both";switch(Ce){case 0:mt="both";break;case 1:mt="start";break;case 2:mt="end";break;case 3:mt="none"}var Pe=document.createElement("div");if(Pe.style.display="flex",Pe.style.flexGrow="2",Pe.style.alignItems="center",Pe.style.justifyContent="space-between",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.borderColor=mt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){ee.setCurrentType(mt,Pe)}),oe.appendChild(Pe),mt==="both"||mt==="start"){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ke.style.marginLeft="5px",Pe.appendChild(Ke)}var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.style.flexGrow="2";var It=document.createElement("hr");if(It.style.minWidth="20px",It.style.border="0px",It.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),It.style.flexGrow="2",ft.appendChild(It),Pe.appendChild(ft),mt==="both"||mt==="end"){var wt=document.createElement("div");wt.style.display="flex",wt.style.alignItems="center",wt.style.minHeight="20px",wt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,wt.style.marginRight="5px",Pe.appendChild(wt)}ne.typeBoxes.push(Pe)},ne=this,me=0;me<4;me++)se(me);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Re),bt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ue("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+se/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=Se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Se.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",Se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Se.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(St),Be=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ge("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return it(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='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(et),tt=function(ae){function te(ee,oe,se,ne){var me=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return me.opacities=[],me.opacityBoxes=[],me.opacities=oe,me.currentOpacity=se,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var me=document.createElement("div");me.innerText=100*se+"%",ne.appendChild(me),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Re),Et=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Ge("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new tt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return it(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Se.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='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',te}(Be),ge='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',de='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',_e=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ge("Text color",se.defaultColorSet,ne.color,ge),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ge("Fill color",se.defaultColorSet,ne.bgColor,de),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Oe("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Mt,ne.tipGrip.visual.transform.baseVal.appendItem(Se.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return it(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(){Se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Se.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&&(Se.setAttributes(this.bgRectangle,[["fill",ee]]),Se.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){Se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ee=this.tipGrip.visual.transform.baseVal.getItem(0);ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ee,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.tipPosition={x:this.tipPosition.x*ee,y:this.tipPosition.y*oe},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',te}(nt),Wt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Ge("Line color",Ee(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ge("Fill color",Ee(se.defaultColorSet,["transparent"]),ne.fillColor,de),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ue("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new tt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Se.createEllipse(this.width/2,this.height/2,[["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),Se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},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:this.opacity},ae.prototype.getState.call(this));return ee.typeName=te.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.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.typeName="EllipseMarker",te.title="Ellipse marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(Dt),xt=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return it(te,ae),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=Se.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Se.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.tip2)},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.tip1&&this.tip2&&(Se.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',te}(St),pe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return it(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='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(Wt),Me=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}(),ze=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ue("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(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=Se.createGroup(),this.selectorCurve=Se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Se.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()),Se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Se.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='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',te}(dt),Nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ge("Line color",Ee(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ge("Fill color",Ee(se.defaultColorSet,["transparent"]),ne.fillColor,de),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ue("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Oe("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ge("Text color",se.defaultColorSet,ne.textColor,ge),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return it(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=Se.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Se.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Se.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=Se.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),Se.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')"]]),Se.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&&Se.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&&Se.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),Se.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&&Se.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Se.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Se.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Se.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='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',te}(Dt),At=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}(),Zt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return it(te,ae),te}(At),Fe=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,ee,se)||this;return ne.marker=oe,ne}return it(te,ae),te}(At),Lt=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 vt,this._isOpen=!1,this.undoRedoManager=new Me,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 Lt,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[Ft,rt,bt,nt,pe,Wt,Et,_e,xt,Be,St,ze,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ft,rt,bt,nt,Wt,Et,_e]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ft,rt,bt,nt,Et]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ne.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new At(te))})},ae.prototype.render=function(){return ye(this,void 0,void 0,function(){var te;return qe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new $e).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var ne=new At(ee,!0);se(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new At(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,se=ee/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ee),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,se=this;this._currentMarker&&this._currentMarker instanceof nt?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==se._currentMarker&&ne.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=Se.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ot(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ot(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Fe(te,te._currentMarker,!0);se(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new Fe(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ce=new Fe(te,void 0,!0);me(Ce),Ce.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(me){var Ce=se.markers[me];se.setCurrentMarker(se.markers[me]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(mt){return mt(new Fe(te,Ce))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new At(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new At(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new At(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new At(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return ye(this,void 0,void 0,function(){var te,ee,oe=this;return qe(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return te=se.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new Zt(oe,te,ee))}),this.close(!0),[2]}})})},ae.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return ee.markers.push(oe.getState())}),ee},ae.prototype.restoreState=function(te){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(oe){var se=ee._availableMarkerTypes.find(function(me){return me.typeName===oe.typeName});if(se!==void 0){var ne=ee.addNewMarker(se);ne.restoreState(oe),ee.markers.push(ne)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new At(ee))})},ae.prototype.addNewMarker=function(te){var ee=Se.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(te){var ee,oe=this;(ee=typeof te=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new Fe(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof rt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(rt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new Fe(ee,ee._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new Fe(ee,te))})},ae.prototype.setCurrentMarker=function(te){var ee=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new Fe(ee,ee._currentMarker))})),this._currentMarker=te,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new Fe(ee,ee._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Ne.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new At(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 At(te))}))},ae.instanceCounter=0,ae}()},6551:function(an,Kt,ie){"use strict";ie.d(Kt,{ZP:function(){return Ne}});var z=ie(42978),it=ie(59301),ye=ie(47273),qe=0,Ee=(0,ye.Z)();function Se(){var $e;return Ee?($e=qe,qe+=1):$e="TEST_OR_SSR",$e}function Ne($e){var Ie=it.useState(),he=(0,z.Z)(Ie,2),Xe=he[0],we=he[1];return it.useEffect(function(){we("rc_select_".concat(Se()))},[]),$e||Xe}},37463:function(an,Kt,ie){"use strict";ie.d(Kt,{Ac:function(){return Pt},Xo:function(){return Ut},Wx:function(){return ut},ZP:function(){return Mn},lk:function(){return jt}});var z=ie(54476),it=ie(94480),ye=ie(20068),qe=ie(33885),Ee=ie(42978),Se=ie(75931),Ne=ie(76190),$e=ie(18929),Ie=ie(48736),he=ie(59301),Xe=ie(92310),we=ie.n(Xe),Ot=ie(34280),ot=ie(49658),Re=ie(8654),Ge=function(We){var xe=We.className,ke=We.customizeIcon,Ae=We.customizeIconProps,je=We.children,be=We.onMouseDown,Je=We.onClick,lt=typeof ke=="function"?ke(Ae):ke;return he.createElement("span",{className:xe,onMouseDown:function(at){at.preventDefault(),be==null||be(at)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Je,"aria-hidden":!0},lt!==void 0?lt:he.createElement("span",{className:we()(xe.split(/\s+/).map(function(gt){return"".concat(gt,"-icon")}))},je))},He=Ge,Ct=function(We,xe,ke,Ae,je){var be=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Je=arguments.length>6?arguments[6]:void 0,lt=arguments.length>7?arguments[7]:void 0,gt=he.useMemo(function(){if((0,Ne.Z)(Ae)==="object")return Ae.clearIcon;if(je)return je},[Ae,je]),at=he.useMemo(function(){return!!(!be&&Ae&&(ke.length||Je)&&!(lt==="combobox"&&Je===""))},[Ae,be,ke.length,Je,lt]);return{allowClear:at,clearIcon:he.createElement(He,{className:"".concat(We,"-clear"),onMouseDown:xe,customizeIcon:gt},"\xD7")}},Mt=he.createContext(null);function jt(){return he.useContext(Mt)}function Dt(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,We=he.useState(!1),xe=(0,Ee.Z)(We,2),ke=xe[0],Ae=xe[1],je=he.useRef(null),be=function(){window.clearTimeout(je.current)};he.useEffect(function(){return be},[]);var Je=function(gt,at){be(),je.current=window.setTimeout(function(){Ae(gt),at&&at()},Te)};return[ke,Je,be]}function et(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,We=he.useRef(null),xe=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(xe.current)}},[]);function ke(Ae){(Ae||We.current===null)&&(We.current=Ae),window.clearTimeout(xe.current),xe.current=window.setTimeout(function(){We.current=null},Te)}return[function(){return We.current},ke]}function yt(Te,We,xe,ke){var Ae=he.useRef(null);Ae.current={open:We,triggerOpen:xe,customizedTrigger:ke},he.useEffect(function(){function je(be){var Je;if(!((Je=Ae.current)!==null&&Je!==void 0&&Je.customizedTrigger)){var lt=be.target;lt.shadowRoot&&be.composed&&(lt=be.composedPath()[0]||lt),Ae.current.open&&Te().filter(function(gt){return gt}).every(function(gt){return!gt.contains(lt)&&gt!==lt})&&Ae.current.triggerOpen(!1)}}return window.addEventListener("mousedown",je),function(){return window.removeEventListener("mousedown",je)}},[])}var Ue=ie(10228);function Ft(Te){return Te&&![Ue.Z.ESC,Ue.Z.SHIFT,Ue.Z.BACKSPACE,Ue.Z.TAB,Ue.Z.WIN_KEY,Ue.Z.ALT,Ue.Z.META,Ue.Z.WIN_KEY_RIGHT,Ue.Z.CTRL,Ue.Z.SEMICOLON,Ue.Z.EQUALS,Ue.Z.CAPS_LOCK,Ue.Z.CONTEXT_MENU,Ue.Z.F1,Ue.Z.F2,Ue.Z.F3,Ue.Z.F4,Ue.Z.F5,Ue.Z.F6,Ue.Z.F7,Ue.Z.F8,Ue.Z.F9,Ue.Z.F10,Ue.Z.F11,Ue.Z.F12].includes(Te)}var vt=ie(26112),dt=ie(83836);function St(Te,We,xe){var ke=(0,qe.Z)((0,qe.Z)({},Te),xe?We:{});return Object.keys(We).forEach(function(Ae){var je=We[Ae];typeof je=="function"&&(ke[Ae]=function(){for(var be,Je=arguments.length,lt=new Array(Je),gt=0;gt<Je;gt++)lt[gt]=arguments[gt];return je.apply(void 0,lt),(be=Te[Ae])===null||be===void 0?void 0:be.call.apply(be,[Te].concat(lt))})}),ke}var Oe=St,nt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],rt=function(We,xe){var ke=We.prefixCls,Ae=We.id,je=We.inputElement,be=We.autoFocus,Je=We.autoComplete,lt=We.editable,gt=We.activeDescendantId,at=We.value,Ze=We.open,Ve=We.attrs,ct=(0,Se.Z)(We,nt),sn=je||he.createElement("input",null),en=sn,on=en.ref,Fn=en.props;return(0,Ie.Kp)(!("maxLength"in sn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),sn=he.cloneElement(sn,(0,qe.Z)((0,qe.Z)((0,qe.Z)({type:"search"},Oe(ct,Fn,!0)),{},{id:Ae,ref:(0,Re.sQ)(xe,on),autoComplete:Je||"off",autoFocus:be,className:we()("".concat(ke,"-selection-search-input"),Fn==null?void 0:Fn.className),role:"combobox","aria-expanded":Ze||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ae,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ae,"_list"),"aria-activedescendant":Ze?gt:void 0},Ve),{},{value:lt?at:"",readOnly:!lt,unselectable:lt?null:"on",style:(0,qe.Z)((0,qe.Z)({},Fn.style),{},{opacity:lt?null:0})})),sn},ue=he.forwardRef(rt),bt=ue;function Be(Te){return Array.isArray(Te)?Te:Te!==void 0?[Te]:[]}var tt=typeof window!="undefined"&&window.document&&window.document.documentElement,Et=tt;function ge(Te){return Te!=null}function de(Te){return!Te&&Te!==0}function _e(Te){return["string","number"].includes((0,Ne.Z)(Te))}function Wt(Te){var We=void 0;return Te&&(_e(Te.title)?We=Te.title.toString():_e(Te.label)&&(We=Te.label.toString())),We}function xt(Te,We){Et?he.useLayoutEffect(Te,We):he.useEffect(Te,We)}function pe(Te){var We;return(We=Te.key)!==null&&We!==void 0?We:Te.value}var Me=function(We){We.preventDefault(),We.stopPropagation()},ze=function(We){var xe=We.id,ke=We.prefixCls,Ae=We.values,je=We.open,be=We.searchValue,Je=We.autoClearSearchValue,lt=We.inputRef,gt=We.placeholder,at=We.disabled,Ze=We.mode,Ve=We.showSearch,ct=We.autoFocus,sn=We.autoComplete,en=We.activeDescendantId,on=We.tabIndex,Fn=We.removeIcon,Wn=We.maxTagCount,Un=We.maxTagTextLength,Rn=We.maxTagPlaceholder,Bn=Rn===void 0?function(Cn){return"+ ".concat(Cn.length," ...")}:Rn,Nn=We.tagRender,Gn=We.onToggleOpen,qn=We.onRemove,Xn=We.onInputChange,Jn=We.onInputPaste,kn=We.onInputKeyDown,nr=We.onInputMouseDown,_n=We.onInputCompositionStart,dr=We.onInputCompositionEnd,pr=We.onInputBlur,sr=he.useRef(null),ur=(0,he.useState)(0),yr=(0,Ee.Z)(ur,2),lr=yr[0],fr=yr[1],tr=(0,he.useState)(!1),mr=(0,Ee.Z)(tr,2),br=mr[0],Hr=mr[1],Er="".concat(ke,"-selection"),Tr=je||Ze==="multiple"&&Je===!1||Ze==="tags"?be:"",Ir=Ze==="tags"||Ze==="multiple"&&Je===!1||Ve&&(je||br);xt(function(){fr(sr.current.scrollWidth)},[Tr]);var Pr=function(fn,Zn,Kn,yn,hn){return he.createElement("span",{title:Wt(fn),className:we()("".concat(Er,"-item"),(0,ye.Z)({},"".concat(Er,"-item-disabled"),Kn))},he.createElement("span",{className:"".concat(Er,"-item-content")},Zn),yn&&he.createElement(He,{className:"".concat(Er,"-item-remove"),onMouseDown:Me,onClick:hn,customizeIcon:Fn},"\xD7"))},or=function(fn,Zn,Kn,yn,hn,Tn){var jn=function(Mr){Me(Mr),Gn(!je)};return he.createElement("span",{onMouseDown:jn},Nn({label:Zn,value:fn,disabled:Kn,closable:yn,onClose:hn,isMaxTag:!!Tn}))},ir=function(fn){var Zn=fn.disabled,Kn=fn.label,yn=fn.value,hn=!at&&!Zn,Tn=Kn;if(typeof Un=="number"&&(typeof Kn=="string"||typeof Kn=="number")){var jn=String(Tn);jn.length>Un&&(Tn="".concat(jn.slice(0,Un),"..."))}var cr=function(Ar){Ar&&Ar.stopPropagation(),qn(fn)};return typeof Nn=="function"?or(yn,Tn,Zn,hn,cr):Pr(fn,Tn,Zn,hn,cr)},er=function(fn){if(!Ae.length)return null;var Zn=typeof Bn=="function"?Bn(fn):Bn;return typeof Nn=="function"?or(void 0,Zn,!1,!1,void 0,!0):Pr({title:Zn},Zn,!1)},pn=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){Hr(!0)},onBlur:function(){Hr(!1)}},he.createElement(bt,{ref:lt,open:je,prefixCls:ke,id:xe,inputElement:null,disabled:at,autoFocus:ct,autoComplete:sn,editable:Ir,activeDescendantId:en,value:Tr,onKeyDown:kn,onMouseDown:nr,onChange:Xn,onPaste:Jn,onCompositionStart:_n,onCompositionEnd:dr,onBlur:pr,tabIndex:on,attrs:(0,vt.Z)(We,!0)}),he.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Tr,"\xA0")),Sn=he.createElement(dt.Z,{prefixCls:"".concat(Er,"-overflow"),data:Ae,renderItem:ir,renderRest:er,suffix:pn,itemKey:pe,maxCount:Wn});return he.createElement("span",{className:"".concat(Er,"-wrap")},Sn,!Ae.length&&!Tr&&he.createElement("span",{className:"".concat(Er,"-placeholder")},gt))},Nt=ze,At=function(We){var xe=We.inputElement,ke=We.prefixCls,Ae=We.id,je=We.inputRef,be=We.disabled,Je=We.autoFocus,lt=We.autoComplete,gt=We.activeDescendantId,at=We.mode,Ze=We.open,Ve=We.values,ct=We.placeholder,sn=We.tabIndex,en=We.showSearch,on=We.searchValue,Fn=We.activeValue,Wn=We.maxLength,Un=We.onInputKeyDown,Rn=We.onInputMouseDown,Bn=We.onInputChange,Nn=We.onInputPaste,Gn=We.onInputCompositionStart,qn=We.onInputCompositionEnd,Xn=We.onInputBlur,Jn=We.title,kn=he.useState(!1),nr=(0,Ee.Z)(kn,2),_n=nr[0],dr=nr[1],pr=at==="combobox",sr=pr||en,ur=Ve[0],yr=on||"";pr&&Fn&&!_n&&(yr=Fn),he.useEffect(function(){pr&&dr(!1)},[pr,Fn]);var lr=at!=="combobox"&&!Ze&&!en?!1:!!yr,fr=Jn===void 0?Wt(ur):Jn,tr=he.useMemo(function(){return ur?null:he.createElement("span",{className:"".concat(ke,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},ct)},[ur,lr,ct,ke]);return he.createElement("span",{className:"".concat(ke,"-selection-wrap")},he.createElement("span",{className:"".concat(ke,"-selection-search")},he.createElement(bt,{ref:je,prefixCls:ke,id:Ae,open:Ze,inputElement:xe,disabled:be,autoFocus:Je,autoComplete:lt,editable:sr,activeDescendantId:gt,value:yr,onKeyDown:Un,onMouseDown:Rn,onChange:function(br){dr(!0),Bn(br)},onPaste:Nn,onCompositionStart:Gn,onCompositionEnd:qn,onBlur:Xn,tabIndex:sn,attrs:(0,vt.Z)(We,!0),maxLength:pr?Wn:void 0})),!pr&&ur?he.createElement("span",{className:"".concat(ke,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,tr)},Zt=At,Fe=function(We,xe){var ke=(0,he.useRef)(null),Ae=(0,he.useRef)(!1),je=We.prefixCls,be=We.open,Je=We.mode,lt=We.showSearch,gt=We.tokenWithEnter,at=We.disabled,Ze=We.prefix,Ve=We.autoClearSearchValue,ct=We.onSearch,sn=We.onSearchSubmit,en=We.onToggleOpen,on=We.onInputKeyDown,Fn=We.onInputBlur,Wn=We.domRef;he.useImperativeHandle(xe,function(){return{focus:function(fr){ke.current.focus(fr)},blur:function(){ke.current.blur()}}});var Un=et(0),Rn=(0,Ee.Z)(Un,2),Bn=Rn[0],Nn=Rn[1],Gn=function(fr){var tr=fr.which,mr=ke.current instanceof HTMLTextAreaElement;!mr&&be&&(tr===Ue.Z.UP||tr===Ue.Z.DOWN)&&fr.preventDefault(),on&&on(fr),tr===Ue.Z.ENTER&&Je==="tags"&&!Ae.current&&!be&&(sn==null||sn(fr.target.value)),!(mr&&!be&&~[Ue.Z.UP,Ue.Z.DOWN,Ue.Z.LEFT,Ue.Z.RIGHT].indexOf(tr))&&Ft(tr)&&en(!0)},qn=function(){Nn(!0)},Xn=(0,he.useRef)(null),Jn=function(fr){ct(fr,!0,Ae.current)!==!1&&en(!0)},kn=function(){Ae.current=!0},nr=function(fr){Ae.current=!1,Je!=="combobox"&&Jn(fr.target.value)},_n=function(fr){var tr=fr.target.value;if(gt&&Xn.current&&/[\r\n]/.test(Xn.current)){var mr=Xn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");tr=tr.replace(mr,Xn.current)}Xn.current=null,Jn(tr)},dr=function(fr){var tr=fr.clipboardData,mr=tr==null?void 0:tr.getData("text");Xn.current=mr||""},pr=function(fr){var tr=fr.target;if(tr!==ke.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){ke.current.focus()}):ke.current.focus()}},sr=function(fr){var tr=Bn();fr.target!==ke.current&&!tr&&!(Je==="combobox"&&at)&&fr.preventDefault(),(Je!=="combobox"&&(!lt||!tr)||!be)&&(be&&Ve!==!1&&ct("",!0,!1),en())},ur={inputRef:ke,onInputKeyDown:Gn,onInputMouseDown:qn,onInputChange:_n,onInputPaste:dr,onInputCompositionStart:kn,onInputCompositionEnd:nr,onInputBlur:Fn},yr=Je==="multiple"||Je==="tags"?he.createElement(Nt,(0,z.Z)({},We,ur)):he.createElement(Zt,(0,z.Z)({},We,ur));return he.createElement("div",{ref:Wn,className:"".concat(je,"-selector"),onClick:pr,onMouseDown:sr},Ze&&he.createElement("div",{className:"".concat(je,"-prefix")},Ze),yr)},Lt=he.forwardRef(Fe),st=Lt,ae=ie(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(We){var xe=We===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"}}},oe=function(We,xe){var ke=We.prefixCls,Ae=We.disabled,je=We.visible,be=We.children,Je=We.popupElement,lt=We.animation,gt=We.transitionName,at=We.dropdownStyle,Ze=We.dropdownClassName,Ve=We.direction,ct=Ve===void 0?"ltr":Ve,sn=We.placement,en=We.builtinPlacements,on=We.dropdownMatchSelectWidth,Fn=We.dropdownRender,Wn=We.dropdownAlign,Un=We.getPopupContainer,Rn=We.empty,Bn=We.getTriggerDOMNode,Nn=We.onPopupVisibleChange,Gn=We.onPopupMouseEnter,qn=(0,Se.Z)(We,te),Xn="".concat(ke,"-dropdown"),Jn=Je;Fn&&(Jn=Fn(Je));var kn=he.useMemo(function(){return en||ee(on)},[en,on]),nr=lt?"".concat(Xn,"-").concat(lt):gt,_n=typeof on=="number",dr=he.useMemo(function(){return _n?null:on===!1?"minWidth":"width"},[on,_n]),pr=at;_n&&(pr=(0,qe.Z)((0,qe.Z)({},pr),{},{width:on}));var sr=he.useRef(null);return he.useImperativeHandle(xe,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),he.createElement(ae.Z,(0,z.Z)({},qn,{showAction:Nn?["click"]:[],hideAction:Nn?["click"]:[],popupPlacement:sn||(ct==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:kn,prefixCls:Xn,popupTransitionName:nr,popup:he.createElement("div",{onMouseEnter:Gn},Jn),ref:sr,stretch:dr,popupAlign:Wn,popupVisible:je,getPopupContainer:Un,popupClassName:we()(Ze,(0,ye.Z)({},"".concat(Xn,"-empty"),Rn)),popupStyle:pr,getTriggerDOMNode:Bn,onPopupVisibleChange:Nn}),be)},se=he.forwardRef(oe),ne=se,me=ie(66712);function Ce(Te,We){var xe=Te.key,ke;return"value"in Te&&(ke=Te.value),xe!=null?xe:ke!==void 0?ke:"rc-index-key-".concat(We)}function mt(Te){return typeof Te!="undefined"&&!Number.isNaN(Te)}function Pe(Te,We){var xe=Te||{},ke=xe.label,Ae=xe.value,je=xe.options,be=xe.groupLabel,Je=ke||(We?"children":"label");return{label:Je,value:Ae||"value",options:je||"options",groupLabel:be||Je}}function Ke(Te){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=We.fieldNames,ke=We.childrenAsData,Ae=[],je=Pe(xe,!1),be=je.label,Je=je.value,lt=je.options,gt=je.groupLabel;function at(Ze,Ve){Array.isArray(Ze)&&Ze.forEach(function(ct){if(Ve||!(lt in ct)){var sn=ct[Je];Ae.push({key:Ce(ct,Ae.length),groupOption:Ve,data:ct,label:ct[be],value:sn})}else{var en=ct[gt];en===void 0&&ke&&(en=ct.label),Ae.push({key:Ce(ct,Ae.length),group:!0,data:ct,label:en}),at(ct[lt],!0)}})}return at(Te,!1),Ae}function ft(Te){var We=(0,qe.Z)({},Te);return"props"in We||Object.defineProperty(We,"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`."),We}}),We}var It=function(We,xe,ke){if(!xe||!xe.length)return null;var Ae=!1,je=function Je(lt,gt){var at=(0,me.Z)(gt),Ze=at[0],Ve=at.slice(1);if(!Ze)return[lt];var ct=lt.split(Ze);return Ae=Ae||ct.length>1,ct.reduce(function(sn,en){return[].concat((0,it.Z)(sn),(0,it.Z)(Je(en,Ve)))},[]).filter(Boolean)},be=je(We,xe);return Ae?typeof ke!="undefined"?be.slice(0,ke):be:null},wt=he.createContext(null),Qt=wt;function Xt(Te){var We=Te.visible,xe=Te.values;if(!We)return null;var ke=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(xe.slice(0,ke).map(function(Ae){var je=Ae.label,be=Ae.value;return["number","string"].includes((0,Ne.Z)(je))?je:be}).join(", ")),xe.length>ke?", ...":null)}var Gt=["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"],un=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],rn=function(We){return We==="tags"||We==="multiple"},ln=he.forwardRef(function(Te,We){var xe,ke=Te.id,Ae=Te.prefixCls,je=Te.className,be=Te.showSearch,Je=Te.tagRender,lt=Te.direction,gt=Te.omitDomProps,at=Te.displayValues,Ze=Te.onDisplayValuesChange,Ve=Te.emptyOptions,ct=Te.notFoundContent,sn=ct===void 0?"Not Found":ct,en=Te.onClear,on=Te.mode,Fn=Te.disabled,Wn=Te.loading,Un=Te.getInputElement,Rn=Te.getRawInputElement,Bn=Te.open,Nn=Te.defaultOpen,Gn=Te.onDropdownVisibleChange,qn=Te.activeValue,Xn=Te.onActiveValueChange,Jn=Te.activeDescendantId,kn=Te.searchValue,nr=Te.autoClearSearchValue,_n=Te.onSearch,dr=Te.onSearchSplit,pr=Te.tokenSeparators,sr=Te.allowClear,ur=Te.prefix,yr=Te.suffixIcon,lr=Te.clearIcon,fr=Te.OptionList,tr=Te.animation,mr=Te.transitionName,br=Te.dropdownStyle,Hr=Te.dropdownClassName,Er=Te.dropdownMatchSelectWidth,Tr=Te.dropdownRender,Ir=Te.dropdownAlign,Pr=Te.placement,or=Te.builtinPlacements,ir=Te.getPopupContainer,er=Te.showAction,pn=er===void 0?[]:er,Sn=Te.onFocus,Cn=Te.onBlur,fn=Te.onKeyUp,Zn=Te.onKeyDown,Kn=Te.onMouseDown,yn=(0,Se.Z)(Te,Gt),hn=rn(on),Tn=(be!==void 0?be:hn)||on==="combobox",jn=(0,qe.Z)({},yn);un.forEach(function(Zr){delete jn[Zr]}),gt==null||gt.forEach(function(Zr){delete jn[Zr]});var cr=he.useState(!1),Mr=(0,Ee.Z)(cr,2),Ar=Mr[0],Rr=Mr[1];he.useEffect(function(){Rr((0,ot.Z)())},[]);var Lr=he.useRef(null),Fr=he.useRef(null),Gr=he.useRef(null),jr=he.useRef(null),Kr=he.useRef(null),ti=he.useRef(!1),Ei=Dt(),Ni=(0,Ee.Z)(Ei,3),xi=Ni[0],si=Ni[1],Ri=Ni[2];he.useImperativeHandle(We,function(){var Zr,Or;return{focus:(Zr=jr.current)===null||Zr===void 0?void 0:Zr.focus,blur:(Or=jr.current)===null||Or===void 0?void 0:Or.blur,scrollTo:function(Ci){var ii;return(ii=Kr.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Lr.current||Fr.current}});var Wr=he.useMemo(function(){var Zr;if(on!=="combobox")return kn;var Or=(Zr=at[0])===null||Zr===void 0?void 0:Zr.value;return typeof Or=="string"||typeof Or=="number"?String(Or):""},[kn,on,at]),_i=on==="combobox"&&typeof Un=="function"&&Un()||null,qr=typeof Rn=="function"&&Rn(),xr=(0,Re.x1)(Fr,qr==null||(xe=qr.props)===null||xe===void 0?void 0:xe.ref),zr=he.useState(!1),Vr=(0,Ee.Z)(zr,2),wr=Vr[0],Nr=Vr[1];(0,Ot.Z)(function(){Nr(!0)},[]);var Br=(0,$e.Z)(!1,{defaultValue:Nn,value:Bn}),ui=(0,Ee.Z)(Br,2),Pi=ui[0],fi=ui[1],ni=wr?Pi:!1,xo=!sn&&Ve;(Fn||xo&&ni&&on==="combobox")&&(ni=!1);var so=xo?!1:ni,gr=he.useCallback(function(Zr){var Or=Zr!==void 0?Zr:!ni;Fn||(fi(Or),ni!==Or&&(Gn==null||Gn(Or)))},[Fn,ni,fi,Gn]),Dr=he.useMemo(function(){return(pr||[]).some(function(Zr){return[`
`,`\r
`].includes(Zr)})},[pr]),Cr=he.useContext(Qt)||{},Sr=Cr.maxCount,$r=Cr.rawValues,Xr=function(Or,yi,Ci){if(!(hn&&mt(Sr)&&($r==null?void 0:$r.size)>=Sr)){var ii=!0,ci=Or;Xn==null||Xn(null);var Yi=It(Or,pr,mt(Sr)?Sr-$r.size:void 0),Ui=Ci?null:Yi;return on!=="combobox"&&Ui&&(ci="",dr==null||dr(Ui),gr(!1),ii=!1),_n&&Wr!==ci&&_n(ci,{source:yi?"typing":"effect"}),ii}},Ki=function(Or){!Or||!Or.trim()||_n(Or,{source:"submit"})};he.useEffect(function(){!ni&&!hn&&on!=="combobox"&&Xr("",!1,!1)},[ni]),he.useEffect(function(){Pi&&Fn&&fi(!1),Fn&&!ti.current&&si(!1)},[Fn]);var Ii=et(),vi=(0,Ee.Z)(Ii,2),ri=vi[0],Vi=vi[1],eo=he.useRef(!1),Fi=function(Or){var yi=ri(),Ci=Or.key,ii=Ci==="Enter";if(ii&&(on!=="combobox"&&Or.preventDefault(),ni||gr(!0)),Vi(!!Wr),Ci==="Backspace"&&!yi&&hn&&!Wr&&at.length){for(var ci=(0,it.Z)(at),Yi=null,Ui=ci.length-1;Ui>=0;Ui-=1){var oo=ci[Ui];if(!oo.disabled){ci.splice(Ui,1),Yi=oo;break}}Yi&&Ze(ci,{type:"remove",values:[Yi]})}for(var zi=arguments.length,Hi=new Array(zi>1?zi-1:0),Qi=1;Qi<zi;Qi++)Hi[Qi-1]=arguments[Qi];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Kr.current)===null||co===void 0||co.onKeyDown.apply(co,[Or].concat(Hi))}Zn==null||Zn.apply(void 0,[Or].concat(Hi))},to=function(Or){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii<yi;ii++)Ci[ii-1]=arguments[ii];if(ni){var ci;(ci=Kr.current)===null||ci===void 0||ci.onKeyUp.apply(ci,[Or].concat(Ci))}Or.key==="Enter"&&(eo.current=!1),fn==null||fn.apply(void 0,[Or].concat(Ci))},io=function(Or){var yi=at.filter(function(Ci){return Ci!==Or});Ze(yi,{type:"remove",values:[Or]})},Xi=function(){eo.current=!1},Mo=he.useRef(!1),Va=function(){si(!0),Fn||(Sn&&!Mo.current&&Sn.apply(void 0,arguments),pn.includes("focus")&&gr(!0)),Mo.current=!0},ya=function(){ti.current=!0,si(!1,function(){Mo.current=!1,ti.current=!1,gr(!1)}),!Fn&&(Wr&&(on==="tags"?_n(Wr,{source:"submit"}):on==="multiple"&&_n("",{source:"blur"})),Cn&&Cn.apply(void 0,arguments))},no=[];he.useEffect(function(){return function(){no.forEach(function(Zr){return clearTimeout(Zr)}),no.splice(0,no.length)}},[]);var uo=function(Or){var yi,Ci=Or.target,ii=(yi=Gr.current)===null||yi===void 0?void 0:yi.getPopupElement();if(ii&&ii.contains(Ci)){var ci=setTimeout(function(){var zi=no.indexOf(ci);if(zi!==-1&&no.splice(zi,1),Ri(),!Ar&&!ii.contains(document.activeElement)){var Hi;(Hi=jr.current)===null||Hi===void 0||Hi.focus()}});no.push(ci)}for(var Yi=arguments.length,Ui=new Array(Yi>1?Yi-1:0),oo=1;oo<Yi;oo++)Ui[oo-1]=arguments[oo];Kn==null||Kn.apply(void 0,[Or].concat(Ui))},Gi=he.useState({}),ba=(0,Ee.Z)(Gi,2),xa=ba[1];function Ga(){xa({})}var Ca;qr&&(Ca=function(Or){gr(Or)}),yt(function(){var Zr;return[Lr.current,(Zr=Gr.current)===null||Zr===void 0?void 0:Zr.getPopupElement()]},so,gr,!!qr);var Ua=he.useMemo(function(){return(0,qe.Z)((0,qe.Z)({},Te),{},{notFoundContent:sn,open:ni,triggerOpen:so,id:ke,showSearch:Tn,multiple:hn,toggleOpen:gr})},[Te,sn,so,ni,ke,Tn,hn,gr]),_o=!!yr||Wn,Ko;_o&&(Ko=he.createElement(He,{className:we()("".concat(Ae,"-arrow"),(0,ye.Z)({},"".concat(Ae,"-arrow-loading"),Wn)),customizeIcon:yr,customizeIconProps:{loading:Wn,searchValue:Wr,open:ni,focused:xi,showSearch:Tn}}));var Co=function(){var Or;en==null||en(),(Or=jr.current)===null||Or===void 0||Or.focus(),Ze([],{type:"clear",values:at}),Xr("",!1,!1)},Xo=Ct(Ae,Co,at,sr,lr,Fn,Wr,on),wa=Xo.allowClear,Yo=Xo.clearIcon,Bo=he.createElement(fr,{ref:Kr}),Sa=we()(Ae,je,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(Ae,"-focused"),xi),"".concat(Ae,"-multiple"),hn),"".concat(Ae,"-single"),!hn),"".concat(Ae,"-allow-clear"),sr),"".concat(Ae,"-show-arrow"),_o),"".concat(Ae,"-disabled"),Fn),"".concat(Ae,"-loading"),Wn),"".concat(Ae,"-open"),ni),"".concat(Ae,"-customize-input"),_i),"".concat(Ae,"-show-search"),Tn)),ko=he.createElement(ne,{ref:Gr,disabled:Fn,prefixCls:Ae,visible:so,popupElement:Bo,animation:tr,transitionName:mr,dropdownStyle:br,dropdownClassName:Hr,direction:lt,dropdownMatchSelectWidth:Er,dropdownRender:Tr,dropdownAlign:Ir,placement:Pr,builtinPlacements:or,getPopupContainer:ir,empty:Ve,getTriggerDOMNode:function(Or){return Fr.current||Or},onPopupVisibleChange:Ca,onPopupMouseEnter:Ga},qr?he.cloneElement(qr,{ref:xr}):he.createElement(st,(0,z.Z)({},Te,{domRef:Fr,prefixCls:Ae,inputElement:_i,ref:jr,id:ke,prefix:ur,showSearch:Tn,autoClearSearchValue:nr,mode:on,activeDescendantId:Jn,tagRender:Je,values:at,open:ni,onToggleOpen:gr,activeValue:qn,searchValue:Wr,onSearch:Xr,onSearchSubmit:Ki,onRemove:io,tokenWithEnter:Dr,onInputBlur:Xi}))),Oi;return qr?Oi=ko:Oi=he.createElement("div",(0,z.Z)({className:Sa},jn,{ref:Lr,onMouseDown:uo,onKeyDown:Fi,onKeyUp:to,onFocus:Va,onBlur:ya}),he.createElement(Xt,{visible:xi&&!ni,values:at}),ko,Ko,wa&&Yo),he.createElement(Mt.Provider,{value:Ua},Oi)}),Pt=ln,nn=function(){return null};nn.isSelectOptGroup=!0;var Ut=nn,Le=function(){return null};Le.isSelectOption=!0;var ut=Le,Rt=ie(80547),$t=ie(2738),De=ie(48911);function Ye(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pt=["disabled","title","children","style","className"];function kt(Te){return typeof Te=="string"||typeof Te=="number"}var Yt=function(We,xe){var ke=jt(),Ae=ke.prefixCls,je=ke.id,be=ke.open,Je=ke.multiple,lt=ke.mode,gt=ke.searchValue,at=ke.toggleOpen,Ze=ke.notFoundContent,Ve=ke.onPopupScroll,ct=he.useContext(Qt),sn=ct.maxCount,en=ct.flattenOptions,on=ct.onActiveValue,Fn=ct.defaultActiveFirstOption,Wn=ct.onSelect,Un=ct.menuItemSelectedIcon,Rn=ct.rawValues,Bn=ct.fieldNames,Nn=ct.virtual,Gn=ct.direction,qn=ct.listHeight,Xn=ct.listItemHeight,Jn=ct.optionRender,kn="".concat(Ae,"-item"),nr=(0,Rt.Z)(function(){return en},[be,en],function(er,pn){return pn[0]&&er[1]!==pn[1]}),_n=he.useRef(null),dr=he.useMemo(function(){return Je&&mt(sn)&&(Rn==null?void 0:Rn.size)>=sn},[Je,sn,Rn==null?void 0:Rn.size]),pr=function(pn){pn.preventDefault()},sr=function(pn){var Sn;(Sn=_n.current)===null||Sn===void 0||Sn.scrollTo(typeof pn=="number"?{index:pn}:pn)},ur=he.useCallback(function(er){return lt==="combobox"?!1:Rn.has(er)},[lt,(0,it.Z)(Rn).toString(),Rn.size]),yr=function(pn){for(var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Cn=nr.length,fn=0;fn<Cn;fn+=1){var Zn=(pn+fn*Sn+Cn)%Cn,Kn=nr[Zn]||{},yn=Kn.group,hn=Kn.data;if(!yn&&!(hn!=null&&hn.disabled)&&(ur(hn.value)||!dr))return Zn}return-1},lr=he.useState(function(){return yr(0)}),fr=(0,Ee.Z)(lr,2),tr=fr[0],mr=fr[1],br=function(pn){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mr(pn);var Cn={source:Sn?"keyboard":"mouse"},fn=nr[pn];if(!fn){on(null,-1,Cn);return}on(fn.value,pn,Cn)};(0,he.useEffect)(function(){br(Fn!==!1?yr(0):-1)},[nr.length,gt]);var Hr=he.useCallback(function(er){return lt==="combobox"?String(er).toLowerCase()===gt.toLowerCase():Rn.has(er)},[lt,gt,(0,it.Z)(Rn).toString(),Rn.size]);(0,he.useEffect)(function(){var er=setTimeout(function(){if(!Je&&be&&Rn.size===1){var Sn=Array.from(Rn)[0],Cn=nr.findIndex(function(fn){var Zn=fn.data;return gt?String(Zn.value).startsWith(gt):Zn.value===Sn});Cn!==-1&&(br(Cn),sr(Cn))}});if(be){var pn;(pn=_n.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(er)}},[be,gt]);var Er=function(pn){pn!==void 0&&Wn(pn,{selected:!Rn.has(pn)}),Je||at(!1)};if(he.useImperativeHandle(xe,function(){return{onKeyDown:function(pn){var Sn=pn.which,Cn=pn.ctrlKey;switch(Sn){case Ue.Z.N:case Ue.Z.P:case Ue.Z.UP:case Ue.Z.DOWN:{var fn=0;if(Sn===Ue.Z.UP?fn=-1:Sn===Ue.Z.DOWN?fn=1:Ye()&&Cn&&(Sn===Ue.Z.N?fn=1:Sn===Ue.Z.P&&(fn=-1)),fn!==0){var Zn=yr(tr+fn,fn);sr(Zn),br(Zn,!0)}break}case Ue.Z.TAB:case Ue.Z.ENTER:{var Kn,yn=nr[tr];yn&&!(yn!=null&&(Kn=yn.data)!==null&&Kn!==void 0&&Kn.disabled)&&!dr?Er(yn.value):Er(void 0),be&&pn.preventDefault();break}case Ue.Z.ESC:at(!1),be&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){sr(pn)}}}),nr.length===0)return he.createElement("div",{role:"listbox",id:"".concat(je,"_list"),className:"".concat(kn,"-empty"),onMouseDown:pr},Ze);var Tr=Object.keys(Bn).map(function(er){return Bn[er]}),Ir=function(pn){return pn.label};function Pr(er,pn){var Sn=er.group;return{role:Sn?"presentation":"option",id:"".concat(je,"_list_").concat(pn)}}var or=function(pn){var Sn=nr[pn];if(!Sn)return null;var Cn=Sn.data||{},fn=Cn.value,Zn=Sn.group,Kn=(0,vt.Z)(Cn,!0),yn=Ir(Sn);return Sn?he.createElement("div",(0,z.Z)({"aria-label":typeof yn=="string"&&!Zn?yn:null},Kn,{key:pn},Pr(Sn,pn),{"aria-selected":Hr(fn)}),fn):null},ir={role:"listbox",id:"".concat(je,"_list")};return he.createElement(he.Fragment,null,Nn&&he.createElement("div",(0,z.Z)({},ir,{style:{height:0,width:0,overflow:"hidden"}}),or(tr-1),or(tr),or(tr+1)),he.createElement(De.Z,{itemKey:"key",ref:_n,data:nr,height:qn,itemHeight:Xn,fullHeight:!1,onMouseDown:pr,onScroll:Ve,virtual:Nn,direction:Gn,innerProps:Nn?null:ir},function(er,pn){var Sn=er.group,Cn=er.groupOption,fn=er.data,Zn=er.label,Kn=er.value,yn=fn.key;if(Sn){var hn,Tn=(hn=fn.title)!==null&&hn!==void 0?hn:kt(Zn)?Zn.toString():void 0;return he.createElement("div",{className:we()(kn,"".concat(kn,"-group"),fn.className),title:Tn},Zn!==void 0?Zn:yn)}var jn=fn.disabled,cr=fn.title,Mr=fn.children,Ar=fn.style,Rr=fn.className,Lr=(0,Se.Z)(fn,pt),Fr=(0,$t.Z)(Lr,Tr),Gr=ur(Kn),jr=jn||!Gr&&dr,Kr="".concat(kn,"-option"),ti=we()(kn,Kr,Rr,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(Kr,"-grouped"),Cn),"".concat(Kr,"-active"),tr===pn&&!jr),"".concat(Kr,"-disabled"),jr),"".concat(Kr,"-selected"),Gr)),Ei=Ir(er),Ni=!Un||typeof Un=="function"||Gr,xi=typeof Ei=="number"?Ei:Ei||Kn,si=kt(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),he.createElement("div",(0,z.Z)({},(0,vt.Z)(Fr),Nn?{}:Pr(er,pn),{"aria-selected":Hr(Kn),className:ti,title:si,onMouseMove:function(){tr===pn||jr||br(pn)},onClick:function(){jr||Er(Kn)},style:Ar}),he.createElement("div",{className:"".concat(Kr,"-content")},typeof Jn=="function"?Jn(er,{index:pn}):xi),he.isValidElement(Un)||Gr,Ni&&he.createElement(He,{className:"".concat(kn,"-option-state"),customizeIcon:Un,customizeIconProps:{value:Kn,disabled:jr,isSelected:Gr}},Gr?"\u2713":null))}))},dn=he.forwardRef(Yt),Dn=dn,Pn=function(Te,We){var xe=he.useRef({values:new Map,options:new Map}),ke=he.useMemo(function(){var je=xe.current,be=je.values,Je=je.options,lt=Te.map(function(Ze){if(Ze.label===void 0){var Ve;return(0,qe.Z)((0,qe.Z)({},Ze),{},{label:(Ve=be.get(Ze.value))===null||Ve===void 0?void 0:Ve.label})}return Ze}),gt=new Map,at=new Map;return lt.forEach(function(Ze){gt.set(Ze.value,Ze),at.set(Ze.value,We.get(Ze.value)||Je.get(Ze.value))}),xe.current.values=gt,xe.current.options=at,lt},[Te,We]),Ae=he.useCallback(function(je){return We.get(je)||xe.current.options.get(je)},[We]);return[ke,Ae]};function cn(Te,We){return Be(Te).join("").toUpperCase().includes(We)}var In=function(Te,We,xe,ke,Ae){return he.useMemo(function(){if(!xe||ke===!1)return Te;var je=We.options,be=We.label,Je=We.value,lt=[],gt=typeof ke=="function",at=xe.toUpperCase(),Ze=gt?ke:function(ct,sn){return Ae?cn(sn[Ae],at):sn[je]?cn(sn[be!=="children"?be:"label"],at):cn(sn[Je],at)},Ve=gt?function(ct){return ft(ct)}:function(ct){return ct};return Te.forEach(function(ct){if(ct[je]){var sn=Ze(xe,Ve(ct));if(sn)lt.push(ct);else{var en=ct[je].filter(function(on){return Ze(xe,Ve(on))});en.length&&lt.push((0,qe.Z)((0,qe.Z)({},ct),{},(0,ye.Z)({},je,en)))}return}Ze(xe,Ve(ct))&&lt.push(ct)}),lt},[Te,ke,Ae,xe,We])},gn=ie(6551),$n=ie(11592),An=["children","value"],En=["children"];function qt(Te){var We=Te,xe=We.key,ke=We.props,Ae=ke.children,je=ke.value,be=(0,Se.Z)(ke,An);return(0,qe.Z)({key:xe,value:je!==void 0?je:xe,children:Ae},be)}function zt(Te){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,$n.Z)(Te).map(function(xe,ke){if(!he.isValidElement(xe)||!xe.type)return null;var Ae=xe,je=Ae.type.isSelectOptGroup,be=Ae.key,Je=Ae.props,lt=Je.children,gt=(0,Se.Z)(Je,En);return We||!je?qt(xe):(0,qe.Z)((0,qe.Z)({key:"__RC_SELECT_GRP__".concat(be===null?ke:be,"__"),label:be},gt),{},{options:zt(lt)})}).filter(function(xe){return xe})}var Tt=function(We,xe,ke,Ae,je){return he.useMemo(function(){var be=We,Je=!We;Je&&(be=zt(xe));var lt=new Map,gt=new Map,at=function(ct,sn,en){en&&typeof en=="string"&&ct.set(sn[en],sn)},Ze=function Ve(ct){for(var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=0;en<ct.length;en+=1){var on=ct[en];!on[ke.options]||sn?(lt.set(on[ke.value],on),at(gt,on,ke.label),at(gt,on,Ae),at(gt,on,je)):Ve(on[ke.options],!0)}};return Ze(be),{options:be,valueOptions:lt,labelOptions:gt}},[We,xe,ke,Ae,je])},Vt=Tt;function tn(Te){var We=he.useRef();We.current=Te;var xe=he.useCallback(function(){return We.current.apply(We,arguments)},[]);return xe}function xn(Te){var We=Te.mode,xe=Te.options,ke=Te.children,Ae=Te.backfill,je=Te.allowClear,be=Te.placeholder,Je=Te.getInputElement,lt=Te.showSearch,gt=Te.onSearch,at=Te.defaultOpen,Ze=Te.autoFocus,Ve=Te.labelInValue,ct=Te.value,sn=Te.inputValue,en=Te.optionLabelProp,on=isMultiple(We),Fn=lt!==void 0?lt:on||We==="combobox",Wn=xe||convertChildrenToData(ke);if(warning(We!=="tags"||Wn.every(function(Nn){return!Nn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),We==="tags"||We==="combobox"){var Un=Wn.some(function(Nn){return Nn.options?Nn.options.some(function(Gn){return typeof("value"in Gn?Gn.value:Gn.key)=="number"}):typeof("value"in Nn?Nn.value:Nn.key)=="number"});warning(!Un,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(We!=="combobox"||!en,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(We==="combobox"||!Ae,"`backfill` only works with `combobox` mode."),warning(We==="combobox"||!Je,"`getInputElement` only work with `combobox` mode."),noteOnce(We!=="combobox"||!Je||!je||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),gt&&!Fn&&We!=="combobox"&&We!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!at||Ze,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ct!=null){var Rn=toArray(ct);warning(!Ve||Rn.every(function(Nn){return _typeof(Nn)==="object"&&("key"in Nn||"value"in Nn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!on||Array.isArray(ct),"`value` should be array when `mode` is `multiple` or `tags`")}if(ke){var Bn=null;toNodeArray(ke).some(function(Nn){if(!React.isValidElement(Nn)||!Nn.type)return!1;var Gn=Nn,qn=Gn.type;if(qn.isSelectOption)return!1;if(qn.isSelectOptGroup){var Xn=toNodeArray(Nn.props.children).every(function(Jn){return!React.isValidElement(Jn)||!Nn.type||Jn.type.isSelectOption?!0:(Bn=Jn.type,!1)});return!Xn}return Bn=qn,!0}),Bn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Bn.displayName||Bn.name||Bn,"`.")),warning(sn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function wn(Te,We){if(Te){var xe=function ke(Ae){for(var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=0;be<Ae.length;be++){var Je=Ae[be];if(Je[We==null?void 0:We.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!je&&Array.isArray(Je[We==null?void 0:We.options])&&ke(Je[We==null?void 0:We.options],!0))break}};xe(Te)}}var mn=null,vn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Hn=["inputValue"];function zn(Te){return!Te||(0,Ne.Z)(Te)!=="object"}var Bt=he.forwardRef(function(Te,We){var xe=Te.id,ke=Te.mode,Ae=Te.prefixCls,je=Ae===void 0?"rc-select":Ae,be=Te.backfill,Je=Te.fieldNames,lt=Te.inputValue,gt=Te.searchValue,at=Te.onSearch,Ze=Te.autoClearSearchValue,Ve=Ze===void 0?!0:Ze,ct=Te.onSelect,sn=Te.onDeselect,en=Te.dropdownMatchSelectWidth,on=en===void 0?!0:en,Fn=Te.filterOption,Wn=Te.filterSort,Un=Te.optionFilterProp,Rn=Te.optionLabelProp,Bn=Te.options,Nn=Te.optionRender,Gn=Te.children,qn=Te.defaultActiveFirstOption,Xn=Te.menuItemSelectedIcon,Jn=Te.virtual,kn=Te.direction,nr=Te.listHeight,_n=nr===void 0?200:nr,dr=Te.listItemHeight,pr=dr===void 0?20:dr,sr=Te.labelRender,ur=Te.value,yr=Te.defaultValue,lr=Te.labelInValue,fr=Te.onChange,tr=Te.maxCount,mr=(0,Se.Z)(Te,vn),br=(0,gn.ZP)(xe),Hr=rn(ke),Er=!!(!Bn&&Gn),Tr=he.useMemo(function(){return Fn===void 0&&ke==="combobox"?!1:Fn},[Fn,ke]),Ir=he.useMemo(function(){return Pe(Je,Er)},[JSON.stringify(Je),Er]),Pr=(0,$e.Z)("",{value:gt!==void 0?gt:lt,postState:function(Dr){return Dr||""}}),or=(0,Ee.Z)(Pr,2),ir=or[0],er=or[1],pn=Vt(Bn,Gn,Ir,Un,Rn),Sn=pn.valueOptions,Cn=pn.labelOptions,fn=pn.options,Zn=he.useCallback(function(gr){var Dr=Be(gr);return Dr.map(function(Cr){var Sr,$r,Xr,Ki,Ii;if(zn(Cr))Sr=Cr;else{var vi;Xr=Cr.key,$r=Cr.label,Sr=(vi=Cr.value)!==null&&vi!==void 0?vi:Xr}var ri=Sn.get(Sr);if(ri){var Vi;if($r===void 0&&($r=ri==null?void 0:ri[Rn||Ir.label]),Xr===void 0&&(Xr=(Vi=ri==null?void 0:ri.key)!==null&&Vi!==void 0?Vi:Sr),Ki=ri==null?void 0:ri.disabled,Ii=ri==null?void 0:ri.title,0)var eo}return{label:$r,value:Sr,key:Xr,disabled:Ki,title:Ii}})},[Ir,Rn,Sn]),Kn=(0,$e.Z)(yr,{value:ur}),yn=(0,Ee.Z)(Kn,2),hn=yn[0],Tn=yn[1],jn=he.useMemo(function(){var gr,Dr=Hr&&hn===null?[]:hn,Cr=Zn(Dr);return ke==="combobox"&&de((gr=Cr[0])===null||gr===void 0?void 0:gr.value)?[]:Cr},[hn,Zn,ke,Hr]),cr=Pn(jn,Sn),Mr=(0,Ee.Z)(cr,2),Ar=Mr[0],Rr=Mr[1],Lr=he.useMemo(function(){if(!ke&&Ar.length===1){var gr=Ar[0];if(gr.value===null&&(gr.label===null||gr.label===void 0))return[]}return Ar.map(function(Dr){var Cr;return(0,qe.Z)((0,qe.Z)({},Dr),{},{label:(Cr=typeof sr=="function"?sr(Dr):Dr.label)!==null&&Cr!==void 0?Cr:Dr.value})})},[ke,Ar,sr]),Fr=he.useMemo(function(){return new Set(Ar.map(function(gr){return gr.value}))},[Ar]);he.useEffect(function(){if(ke==="combobox"){var gr,Dr=(gr=Ar[0])===null||gr===void 0?void 0:gr.value;er(ge(Dr)?String(Dr):"")}},[Ar]);var Gr=tn(function(gr,Dr){var Cr=Dr!=null?Dr:gr;return(0,ye.Z)((0,ye.Z)({},Ir.value,gr),Ir.label,Cr)}),jr=he.useMemo(function(){if(ke!=="tags")return fn;var gr=(0,it.Z)(fn),Dr=function(Sr){return Sn.has(Sr)};return(0,it.Z)(Ar).sort(function(Cr,Sr){return Cr.value<Sr.value?-1:1}).forEach(function(Cr){var Sr=Cr.value;Dr(Sr)||gr.push(Gr(Sr,Cr.label))}),gr},[Gr,fn,Sn,Ar,ke]),Kr=In(jr,Ir,ir,Tr,Un),ti=he.useMemo(function(){return ke!=="tags"||!ir||Kr.some(function(gr){return gr[Un||"value"]===ir})||Kr.some(function(gr){return gr[Ir.value]===ir})?Kr:[Gr(ir)].concat((0,it.Z)(Kr))},[Gr,Un,ke,Kr,ir,Ir]),Ei=function gr(Dr){var Cr=(0,it.Z)(Dr).sort(function(Sr,$r){return Wn(Sr,$r,{searchValue:ir})});return Cr.map(function(Sr){return Array.isArray(Sr.options)?(0,qe.Z)((0,qe.Z)({},Sr),{},{options:Sr.options.length>0?gr(Sr.options):Sr.options}):Sr})},Ni=he.useMemo(function(){return Wn?Ei(ti):ti},[ti,Wn,ir]),xi=he.useMemo(function(){return Ke(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Dr){var Cr=Zn(Dr);if(Tn(Cr),fr&&(Cr.length!==Ar.length||Cr.some(function(Xr,Ki){var Ii;return((Ii=Ar[Ki])===null||Ii===void 0?void 0:Ii.value)!==(Xr==null?void 0:Xr.value)}))){var Sr=lr?Cr:Cr.map(function(Xr){return Xr.value}),$r=Cr.map(function(Xr){return ft(Rr(Xr.value))});fr(Hr?Sr:Sr[0],Hr?$r:$r[0])}},Ri=he.useState(null),Wr=(0,Ee.Z)(Ri,2),_i=Wr[0],qr=Wr[1],xr=he.useState(0),zr=(0,Ee.Z)(xr,2),Vr=zr[0],wr=zr[1],Nr=qn!==void 0?qn:ke!=="combobox",Br=he.useCallback(function(gr,Dr){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Sr=Cr.source,$r=Sr===void 0?"keyboard":Sr;wr(Dr),be&&ke==="combobox"&&gr!==null&&$r==="keyboard"&&qr(String(gr))},[be,ke]),ui=function(Dr,Cr,Sr){var $r=function(){var io,Xi=Rr(Dr);return[lr?{label:Xi==null?void 0:Xi[Ir.label],value:Dr,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:Dr}:Dr,ft(Xi)]};if(Cr&&ct){var Xr=$r(),Ki=(0,Ee.Z)(Xr,2),Ii=Ki[0],vi=Ki[1];ct(Ii,vi)}else if(!Cr&&sn&&Sr!=="clear"){var ri=$r(),Vi=(0,Ee.Z)(ri,2),eo=Vi[0],Fi=Vi[1];sn(eo,Fi)}},Pi=tn(function(gr,Dr){var Cr,Sr=Hr?Dr.selected:!0;Sr?Cr=Hr?[].concat((0,it.Z)(Ar),[gr]):[gr]:Cr=Ar.filter(function($r){return $r.value!==gr}),si(Cr),ui(gr,Sr),ke==="combobox"?qr(""):(!rn||Ve)&&(er(""),qr(""))}),fi=function(Dr,Cr){si(Dr);var Sr=Cr.type,$r=Cr.values;(Sr==="remove"||Sr==="clear")&&$r.forEach(function(Xr){ui(Xr.value,!1,Sr)})},ni=function(Dr,Cr){if(er(Dr),qr(null),Cr.source==="submit"){var Sr=(Dr||"").trim();if(Sr){var $r=Array.from(new Set([].concat((0,it.Z)(Fr),[Sr])));si($r),ui(Sr,!0),er("")}return}Cr.source!=="blur"&&(ke==="combobox"&&si(Dr),at==null||at(Dr))},xo=function(Dr){var Cr=Dr;ke!=="tags"&&(Cr=Dr.map(function($r){var Xr=Cn.get($r);return Xr==null?void 0:Xr.value}).filter(function($r){return $r!==void 0}));var Sr=Array.from(new Set([].concat((0,it.Z)(Fr),(0,it.Z)(Cr))));si(Sr),Sr.forEach(function($r){ui($r,!0)})},so=he.useMemo(function(){var gr=Jn!==!1&&on!==!1;return(0,qe.Z)((0,qe.Z)({},pn),{},{flattenOptions:xi,onActiveValue:Br,defaultActiveFirstOption:Nr,onSelect:Pi,menuItemSelectedIcon:Xn,rawValues:Fr,fieldNames:Ir,virtual:gr,direction:kn,listHeight:_n,listItemHeight:pr,childrenAsData:Er,maxCount:tr,optionRender:Nn})},[tr,pn,xi,Br,Nr,Pi,Xn,Fr,Ir,Jn,on,kn,_n,pr,Er,Nn]);return he.createElement(Qt.Provider,{value:so},he.createElement(Pt,(0,z.Z)({},mr,{id:br,prefixCls:je,ref:We,omitDomProps:Hn,mode:ke,displayValues:Lr,onDisplayValuesChange:fi,direction:kn,searchValue:ir,onSearch:ni,autoClearSearchValue:Ve,onSearchSplit:xo,dropdownMatchSelectWidth:on,OptionList:Dn,emptyOptions:!xi.length,activeValue:_i,activeDescendantId:"".concat(br,"_list_").concat(Vr)})))}),Jt=Bt;Jt.Option=ut,Jt.OptGroup=Ut;var On=Jt,Mn=On},22711:function(an,Kt,ie){"use strict";ie.r(Kt),ie.d(Kt,{ResizableTextArea:function(){return Oe},default:function(){return bt}});var z=ie(54476),it=ie(20068),ye=ie(33885),qe=ie(94480),Ee=ie(42978),Se=ie(75931),Ne=ie(92310),$e=ie.n(Ne),Ie=ie(36901),he=ie(66003),Xe=ie(30292),we=ie(18929),Ot=ie(59301),ot=ie(76190),Re=ie(29301),Ge=ie(34280),He=ie(16089),Ct=`
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;
`,Mt=["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"],jt={},Dt;function et(Be){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=Be.getAttribute("id")||Be.getAttribute("data-reactid")||Be.getAttribute("name");if(tt&&jt[Et])return jt[Et];var ge=window.getComputedStyle(Be),de=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),_e=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),Wt=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),xt=Mt.map(function(Me){return"".concat(Me,":").concat(ge.getPropertyValue(Me))}).join(";"),pe={sizingStyle:xt,paddingSize:_e,borderSize:Wt,boxSizing:de};return tt&&Et&&(jt[Et]=pe),pe}function yt(Be){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Dt||(Dt=document.createElement("textarea"),Dt.setAttribute("tab-index","-1"),Dt.setAttribute("aria-hidden","true"),Dt.setAttribute("name","hiddenTextarea"),document.body.appendChild(Dt)),Be.getAttribute("wrap")?Dt.setAttribute("wrap",Be.getAttribute("wrap")):Dt.removeAttribute("wrap");var de=et(Be,tt),_e=de.paddingSize,Wt=de.borderSize,xt=de.boxSizing,pe=de.sizingStyle;Dt.setAttribute("style","".concat(pe,";").concat(Ct)),Dt.value=Be.value||Be.placeholder||"";var Me=void 0,ze=void 0,Nt,At=Dt.scrollHeight;if(xt==="border-box"?At+=Wt:xt==="content-box"&&(At-=_e),Et!==null||ge!==null){Dt.value=" ";var Zt=Dt.scrollHeight-_e;Et!==null&&(Me=Zt*Et,xt==="border-box"&&(Me=Me+_e+Wt),At=Math.max(Me,At)),ge!==null&&(ze=Zt*ge,xt==="border-box"&&(ze=ze+_e+Wt),Nt=At>ze?"":"hidden",At=Math.min(ze,At))}var Fe={height:At,overflowY:Nt,resize:"none"};return Me&&(Fe.minHeight=Me),ze&&(Fe.maxHeight=ze),Fe}var Ue=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ft=0,vt=1,dt=2,St=Ot.forwardRef(function(Be,tt){var Et=Be,ge=Et.prefixCls,de=Et.defaultValue,_e=Et.value,Wt=Et.autoSize,xt=Et.onResize,pe=Et.className,Me=Et.style,ze=Et.disabled,Nt=Et.onChange,At=Et.onInternalAutoSize,Zt=(0,Se.Z)(Et,Ue),Fe=(0,we.Z)(de,{value:_e,postState:function(ut){return ut!=null?ut:""}}),Lt=(0,Ee.Z)(Fe,2),st=Lt[0],ae=Lt[1],te=function(ut){ae(ut.target.value),Nt==null||Nt(ut)},ee=Ot.useRef();Ot.useImperativeHandle(tt,function(){return{textArea:ee.current}});var oe=Ot.useMemo(function(){return Wt&&(0,ot.Z)(Wt)==="object"?[Wt.minRows,Wt.maxRows]:[]},[Wt]),se=(0,Ee.Z)(oe,2),ne=se[0],me=se[1],Ce=!!Wt,mt=function(){try{if(document.activeElement===ee.current){var ut=ee.current,Rt=ut.selectionStart,$t=ut.selectionEnd,De=ut.scrollTop;ee.current.setSelectionRange(Rt,$t),ee.current.scrollTop=De}}catch(Ye){}},Pe=Ot.useState(dt),Ke=(0,Ee.Z)(Pe,2),ft=Ke[0],It=Ke[1],wt=Ot.useState(),Qt=(0,Ee.Z)(wt,2),Xt=Qt[0],Gt=Qt[1],un=function(){It(Ft)};(0,Ge.Z)(function(){Ce&&un()},[_e,ne,me,Ce]),(0,Ge.Z)(function(){if(ft===Ft)It(vt);else if(ft===vt){var Le=yt(ee.current,!1,ne,me);It(dt),Gt(Le)}else mt()},[ft]);var rn=Ot.useRef(),ln=function(){He.Z.cancel(rn.current)},Pt=function(ut){ft===dt&&(xt==null||xt(ut),Wt&&(ln(),rn.current=(0,He.Z)(function(){un()})))};Ot.useEffect(function(){return ln},[]);var nn=Ce?Xt:null,Ut=(0,ye.Z)((0,ye.Z)({},Me),nn);return(ft===Ft||ft===vt)&&(Ut.overflowY="hidden",Ut.overflowX="hidden"),Ot.createElement(Re.Z,{onResize:Pt,disabled:!(Wt||xt)},Ot.createElement("textarea",(0,z.Z)({},Zt,{ref:ee,style:Ut,className:$e()(ge,pe,(0,it.Z)({},"".concat(ge,"-disabled"),ze)),disabled:ze,value:st,onChange:te})))}),Oe=St,nt=["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"],rt=Ot.forwardRef(function(Be,tt){var Et,ge=Be.defaultValue,de=Be.value,_e=Be.onFocus,Wt=Be.onBlur,xt=Be.onChange,pe=Be.allowClear,Me=Be.maxLength,ze=Be.onCompositionStart,Nt=Be.onCompositionEnd,At=Be.suffix,Zt=Be.prefixCls,Fe=Zt===void 0?"rc-textarea":Zt,Lt=Be.showCount,st=Be.count,ae=Be.className,te=Be.style,ee=Be.disabled,oe=Be.hidden,se=Be.classNames,ne=Be.styles,me=Be.onResize,Ce=Be.onClear,mt=Be.onPressEnter,Pe=Be.readOnly,Ke=Be.autoSize,ft=Be.onKeyDown,It=(0,Se.Z)(Be,nt),wt=(0,we.Z)(ge,{value:de,defaultValue:ge}),Qt=(0,Ee.Z)(wt,2),Xt=Qt[0],Gt=Qt[1],un=Xt==null?"":String(Xt),rn=Ot.useState(!1),ln=(0,Ee.Z)(rn,2),Pt=ln[0],nn=ln[1],Ut=Ot.useRef(!1),Le=Ot.useState(null),ut=(0,Ee.Z)(Le,2),Rt=ut[0],$t=ut[1],De=(0,Ot.useRef)(null),Ye=(0,Ot.useRef)(null),pt=function(){var Jt;return(Jt=Ye.current)===null||Jt===void 0?void 0:Jt.textArea},kt=function(){pt().focus()};(0,Ot.useImperativeHandle)(tt,function(){var Bt;return{resizableTextArea:Ye.current,focus:kt,blur:function(){pt().blur()},nativeElement:((Bt=De.current)===null||Bt===void 0?void 0:Bt.nativeElement)||pt()}}),(0,Ot.useEffect)(function(){nn(function(Bt){return!ee&&Bt})},[ee]);var Yt=Ot.useState(null),dn=(0,Ee.Z)(Yt,2),Dn=dn[0],Pn=dn[1];Ot.useEffect(function(){if(Dn){var Bt;(Bt=pt()).setSelectionRange.apply(Bt,(0,qe.Z)(Dn))}},[Dn]);var cn=(0,he.Z)(st,Lt),In=(Et=cn.max)!==null&&Et!==void 0?Et:Me,gn=Number(In)>0,$n=cn.strategy(un),An=!!In&&$n>In,En=function(Jt,On){var Mn=On;!Ut.current&&cn.exceedFormatter&&cn.max&&cn.strategy(On)>cn.max&&(Mn=cn.exceedFormatter(On,{max:cn.max}),On!==Mn&&Pn([pt().selectionStart||0,pt().selectionEnd||0])),Gt(Mn),(0,Xe.rJ)(Jt.currentTarget,Jt,xt,Mn)},qt=function(Jt){Ut.current=!0,ze==null||ze(Jt)},zt=function(Jt){Ut.current=!1,En(Jt,Jt.currentTarget.value),Nt==null||Nt(Jt)},Tt=function(Jt){En(Jt,Jt.target.value)},Vt=function(Jt){Jt.key==="Enter"&&mt&&mt(Jt),ft==null||ft(Jt)},tn=function(Jt){nn(!0),_e==null||_e(Jt)},xn=function(Jt){nn(!1),Wt==null||Wt(Jt)},wn=function(Jt){Gt(""),kt(),(0,Xe.rJ)(pt(),Jt,xt)},mn=At,vn;cn.show&&(cn.showFormatter?vn=cn.showFormatter({value:un,count:$n,maxLength:In}):vn="".concat($n).concat(gn?" / ".concat(In):""),mn=Ot.createElement(Ot.Fragment,null,mn,Ot.createElement("span",{className:$e()("".concat(Fe,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},vn)));var Hn=function(Jt){var On;me==null||me(Jt),(On=pt())!==null&&On!==void 0&&On.style.height&&$t(!0)},zn=!Ke&&!Lt&&!pe;return Ot.createElement(Ie.BaseInput,{ref:De,value:un,allowClear:pe,handleReset:wn,suffix:mn,prefixCls:Fe,classNames:(0,ye.Z)((0,ye.Z)({},se),{},{affixWrapper:$e()(se==null?void 0:se.affixWrapper,(0,it.Z)((0,it.Z)({},"".concat(Fe,"-show-count"),Lt),"".concat(Fe,"-textarea-allow-clear"),pe))}),disabled:ee,focused:Pt,className:$e()(ae,An&&"".concat(Fe,"-out-of-range")),style:(0,ye.Z)((0,ye.Z)({},te),Rt&&!zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof vn=="string"?vn:void 0}},hidden:oe,readOnly:Pe,onClear:Ce},Ot.createElement(Oe,(0,z.Z)({},It,{autoSize:Ke,maxLength:Me,onKeyDown:Vt,onChange:Tt,onFocus:tn,onBlur:xn,onCompositionStart:qt,onCompositionEnd:zt,className:$e()(se==null?void 0:se.textarea),style:(0,ye.Z)((0,ye.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Fe,onResize:Hn,ref:Ye,readOnly:Pe})))}),ue=rt,bt=ue},48911:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return st}});var z=ie(54476),it=ie(76190),ye=ie(33885),qe=ie(20068),Ee=ie(42978),Se=ie(75931),Ne=ie(92310),$e=ie.n(Ne),Ie=ie(29301),he=ie(70425),Xe=ie(34280),we=ie(59301),Ot=ie(4676),ot=we.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,me=ae.prefixCls,Ce=ae.onInnerResize,mt=ae.innerProps,Pe=ae.rtl,Ke=ae.extra,ft={},It={display:"flex",flexDirection:"column"};return oe!==void 0&&(ft={height:ee,position:"relative",overflow:"hidden"},It=(0,ye.Z)((0,ye.Z)({},It),{},(0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)({transform:"translateY(".concat(oe,"px)")},Pe?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),we.createElement("div",{style:ft},we.createElement(Ie.Z,{onResize:function(Qt){var Xt=Qt.offsetHeight;Xt&&Ce&&Ce()}},we.createElement("div",(0,z.Z)({style:It,className:$e()((0,qe.Z)({},"".concat(me,"-holder-inner"),me)),ref:te},mt),ne,Ke)))});ot.displayName="Filler";var Re=ot;function Ge(ae){var te=ae.children,ee=ae.setRef,oe=we.useCallback(function(se){ee(se)},[]);return we.cloneElement(te,{ref:oe})}function He(ae,te,ee,oe,se,ne,me,Ce){var mt=Ce.getKey;return ae.slice(te,ee+1).map(function(Pe,Ke){var ft=te+Ke,It=me(Pe,ft,{style:{width:oe},offsetX:se}),wt=mt(Pe);return we.createElement(Ge,{key:wt,setRef:function(Xt){return ne(Pe,Xt)}},It)})}function Ct(ae,te,ee,oe){var se=ee-ae,ne=te-ee,me=Math.min(se,ne)*2;if(oe<=me){var Ce=Math.floor(oe/2);return oe%2?ee+Ce+1:ee-Ce}return se>ne?ee-(oe-ne):ee+(oe-se)}function Mt(ae,te,ee){var oe=ae.length,se=te.length,ne,me;if(oe===0&&se===0)return null;oe<se?(ne=ae,me=te):(ne=te,me=ae);var Ce={__EMPTY_ITEM__:!0};function mt(Qt){return Qt!==void 0?ee(Qt):Ce}for(var Pe=null,Ke=Math.abs(oe-se)!==1,ft=0;ft<me.length;ft+=1){var It=mt(ne[ft]),wt=mt(me[ft]);if(It!==wt){Pe=ft,Ke=Ke||It!==mt(me[ft+1]);break}}return Pe===null?null:{index:Pe,multiple:Ke}}function jt(ae,te,ee){var oe=we.useState(ae),se=(0,Ee.Z)(oe,2),ne=se[0],me=se[1],Ce=we.useState(null),mt=(0,Ee.Z)(Ce,2),Pe=mt[0],Ke=mt[1];return we.useEffect(function(){var ft=Mt(ne||[],ae||[],te);(ft==null?void 0:ft.index)!==void 0&&(ee==null||ee(ft.index),Ke(ae[ft.index])),me(ae)},[ae]),[Pe]}var Dt=ie(16089),et=(typeof navigator=="undefined"?"undefined":(0,it.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),yt=et,Ue=function(ae,te,ee,oe){var se=(0,we.useRef)(!1),ne=(0,we.useRef)(null);function me(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var Ce=(0,we.useRef)({top:ae,bottom:te,left:ee,right:oe});return Ce.current.top=ae,Ce.current.bottom=te,Ce.current.left=ee,Ce.current.right=oe,function(mt,Pe){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ft=mt?Pe<0&&Ce.current.left||Pe>0&&Ce.current.right:Pe<0&&Ce.current.top||Pe>0&&Ce.current.bottom;return Ke&&ft?(clearTimeout(ne.current),se.current=!1):(!ft||se.current)&&me(),!se.current&&ft}};function Ft(ae,te,ee,oe,se,ne,me){var Ce=(0,we.useRef)(0),mt=(0,we.useRef)(null),Pe=(0,we.useRef)(null),Ke=(0,we.useRef)(!1),ft=Ue(te,ee,oe,se);function It(rn,ln){if(Dt.Z.cancel(mt.current),!ft(!1,ln)){var Pt=rn;if(!Pt._virtualHandled)Pt._virtualHandled=!0;else return;Ce.current+=ln,Pe.current=ln,yt||Pt.preventDefault(),mt.current=(0,Dt.Z)(function(){var nn=Ke.current?10:1;me(Ce.current*nn,!1),Ce.current=0})}}function wt(rn,ln){me(ln,!0),yt||rn.preventDefault()}var Qt=(0,we.useRef)(null),Xt=(0,we.useRef)(null);function Gt(rn){if(ae){Dt.Z.cancel(Xt.current),Xt.current=(0,Dt.Z)(function(){Qt.current=null},2);var ln=rn.deltaX,Pt=rn.deltaY,nn=rn.shiftKey,Ut=ln,Le=Pt;(Qt.current==="sx"||!Qt.current&&nn&&Pt&&!ln)&&(Ut=Pt,Le=0,Qt.current="sx");var ut=Math.abs(Ut),Rt=Math.abs(Le);Qt.current===null&&(Qt.current=ne&&ut>Rt?"x":"y"),Qt.current==="y"?It(rn,Le):wt(rn,Ut)}}function un(rn){ae&&(Ke.current=rn.detail===Pe.current)}return[Gt,un]}function vt(ae,te,ee,oe){var se=we.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Ee.Z)(se,2),me=ne[0],Ce=ne[1],mt=function(Ke){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,It=me.get(Ke),wt=me.get(ft);if(It===void 0||wt===void 0)for(var Qt=ae.length,Xt=Ce.length;Xt<Qt;Xt+=1){var Gt,un=ae[Xt],rn=te(un);me.set(rn,Xt);var ln=(Gt=ee.get(rn))!==null&&Gt!==void 0?Gt:oe;if(Ce[Xt]=(Ce[Xt-1]||0)+ln,rn===Ke&&(It=Xt),rn===ft&&(wt=Xt),It!==void 0&&wt!==void 0)break}return{top:Ce[It-1]||0,bottom:Ce[wt]}};return mt}var dt=ie(67732),St=ie(83652),Oe=function(){function ae(){(0,dt.Z)(this,ae),(0,qe.Z)(this,"maps",void 0),(0,qe.Z)(this,"id",0),(0,qe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,St.Z)(ae,[{key:"set",value:function(ee,oe){this.diffRecords.set(ee,this.maps[ee]),this.maps[ee]=oe,this.id+=1}},{key:"get",value:function(ee){return this.maps[ee]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),nt=Oe;function rt(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function ue(ae,te,ee){var oe=we.useState(0),se=(0,Ee.Z)(oe,2),ne=se[0],me=se[1],Ce=(0,we.useRef)(new Map),mt=(0,we.useRef)(new nt),Pe=(0,we.useRef)(0);function Ke(){Pe.current+=1}function ft(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ke();var Qt=function(){var un=!1;Ce.current.forEach(function(rn,ln){if(rn&&rn.offsetParent){var Pt=rn.offsetHeight,nn=getComputedStyle(rn),Ut=nn.marginTop,Le=nn.marginBottom,ut=rt(Ut),Rt=rt(Le),$t=Pt+ut+Rt;mt.current.get(ln)!==$t&&(mt.current.set(ln,$t),un=!0)}}),un&&me(function(rn){return rn+1})};if(wt)Qt();else{Pe.current+=1;var Xt=Pe.current;Promise.resolve().then(function(){Xt===Pe.current&&Qt()})}}function It(wt,Qt){var Xt=ae(wt),Gt=Ce.current.get(Xt);Qt?(Ce.current.set(Xt,Qt),ft()):Ce.current.delete(Xt),!Gt!=!Qt&&(Qt?te==null||te(wt):ee==null||ee(wt))}return(0,we.useEffect)(function(){return Ke},[]),[It,ft,mt.current,ne]}var bt=14/15;function Be(ae,te,ee){var oe=(0,we.useRef)(!1),se=(0,we.useRef)(0),ne=(0,we.useRef)(0),me=(0,we.useRef)(null),Ce=(0,we.useRef)(null),mt,Pe=function(wt){if(oe.current){var Qt=Math.ceil(wt.touches[0].pageX),Xt=Math.ceil(wt.touches[0].pageY),Gt=se.current-Qt,un=ne.current-Xt,rn=Math.abs(Gt)>Math.abs(un);rn?se.current=Qt:ne.current=Xt;var ln=ee(rn,rn?Gt:un,!1,wt);ln&&wt.preventDefault(),clearInterval(Ce.current),ln&&(Ce.current=setInterval(function(){rn?Gt*=bt:un*=bt;var Pt=Math.floor(rn?Gt:un);(!ee(rn,Pt,!0)||Math.abs(Pt)<=.1)&&clearInterval(Ce.current)},16))}},Ke=function(){oe.current=!1,mt()},ft=function(wt){mt(),wt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(wt.touches[0].pageX),ne.current=Math.ceil(wt.touches[0].pageY),me.current=wt.target,me.current.addEventListener("touchmove",Pe,{passive:!1}),me.current.addEventListener("touchend",Ke,{passive:!0}))};mt=function(){me.current&&(me.current.removeEventListener("touchmove",Pe),me.current.removeEventListener("touchend",Ke))},(0,Xe.Z)(function(){return ae&&te.current.addEventListener("touchstart",ft,{passive:!0}),function(){var It;(It=te.current)===null||It===void 0||It.removeEventListener("touchstart",ft),mt(),clearInterval(Ce.current)}},[ae])}function tt(ae){return Math.floor(Math.pow(ae,.5))}function Et(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ge(ae,te,ee){we.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,me,Ce=function(){Dt.Z.cancel(ne)},mt=function It(){Ce(),ne=(0,Dt.Z)(function(){ee(me),It()})},Pe=function(){se=!1,Ce()},Ke=function(wt){if(!(wt.target.draggable||wt.button!==0)){var Qt=wt;Qt._virtualHandled||(Qt._virtualHandled=!0,se=!0)}},ft=function(wt){if(se){var Qt=Et(wt,!1),Xt=oe.getBoundingClientRect(),Gt=Xt.top,un=Xt.bottom;if(Qt<=Gt){var rn=Gt-Qt;me=-tt(rn),mt()}else if(Qt>=un){var ln=Qt-un;me=tt(ln),mt()}else Ce()}};return oe.addEventListener("mousedown",Ke),oe.ownerDocument.addEventListener("mouseup",Pe),oe.ownerDocument.addEventListener("mousemove",ft),oe.ownerDocument.addEventListener("dragend",Pe),function(){oe.removeEventListener("mousedown",Ke),oe.ownerDocument.removeEventListener("mouseup",Pe),oe.ownerDocument.removeEventListener("mousemove",ft),oe.ownerDocument.removeEventListener("dragend",Pe),Ce()}}},[ae])}var de=10;function _e(ae,te,ee,oe,se,ne,me,Ce){var mt=we.useRef(),Pe=we.useState(null),Ke=(0,Ee.Z)(Pe,2),ft=Ke[0],It=Ke[1];return(0,Xe.Z)(function(){if(ft&&ft.times<de){if(!ae.current){It(function(cn){return(0,ye.Z)({},cn)});return}ne();var wt=ft.targetAlign,Qt=ft.originAlign,Xt=ft.index,Gt=ft.offset,un=ae.current.clientHeight,rn=!1,ln=wt,Pt=null;if(un){for(var nn=wt||Qt,Ut=0,Le=0,ut=0,Rt=Math.min(te.length-1,Xt),$t=0;$t<=Rt;$t+=1){var De=se(te[$t]);Le=Ut;var Ye=ee.get(De);ut=Le+(Ye===void 0?oe:Ye),Ut=ut}for(var pt=nn==="top"?Gt:un-Gt,kt=Rt;kt>=0;kt-=1){var Yt=se(te[kt]),dn=ee.get(Yt);if(dn===void 0){rn=!0;break}if(pt-=dn,pt<=0)break}switch(nn){case"top":Pt=Le-Gt;break;case"bottom":Pt=ut-un+Gt;break;default:{var Dn=ae.current.scrollTop,Pn=Dn+un;Le<Dn?ln="top":ut>Pn&&(ln="bottom")}}Pt!==null&&me(Pt),Pt!==ft.lastTop&&(rn=!0)}rn&&It((0,ye.Z)((0,ye.Z)({},ft),{},{times:ft.times+1,targetAlign:ln,lastTop:Pt}))}},[ft,ae.current]),function(wt){if(wt==null){Ce();return}if(Dt.Z.cancel(mt.current),typeof wt=="number")me(wt);else if(wt&&(0,it.Z)(wt)==="object"){var Qt,Xt=wt.align;"index"in wt?Qt=wt.index:Qt=te.findIndex(function(rn){return se(rn)===wt.key});var Gt=wt.offset,un=Gt===void 0?0:Gt;It({times:0,index:Qt,offset:un,originAlign:Xt})}}}var Wt=we.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,me=ae.onStartMove,Ce=ae.onStopMove,mt=ae.onScroll,Pe=ae.horizontal,Ke=ae.spinSize,ft=ae.containerSize,It=ae.style,wt=ae.thumbStyle,Qt=ae.showScrollBar,Xt=we.useState(!1),Gt=(0,Ee.Z)(Xt,2),un=Gt[0],rn=Gt[1],ln=we.useState(null),Pt=(0,Ee.Z)(ln,2),nn=Pt[0],Ut=Pt[1],Le=we.useState(null),ut=(0,Ee.Z)(Le,2),Rt=ut[0],$t=ut[1],De=!oe,Ye=we.useRef(),pt=we.useRef(),kt=we.useState(Qt),Yt=(0,Ee.Z)(kt,2),dn=Yt[0],Dn=Yt[1],Pn=we.useRef(),cn=function(){Qt===!0||Qt===!1||(clearTimeout(Pn.current),Dn(!0),Pn.current=setTimeout(function(){Dn(!1)},3e3))},In=ne-ft||0,gn=ft-Ke||0,$n=we.useMemo(function(){if(se===0||In===0)return 0;var wn=se/In;return wn*gn},[se,In,gn]),An=function(mn){mn.stopPropagation(),mn.preventDefault()},En=we.useRef({top:$n,dragging:un,pageY:nn,startTop:Rt});En.current={top:$n,dragging:un,pageY:nn,startTop:Rt};var qt=function(mn){rn(!0),Ut(Et(mn,Pe)),$t(En.current.top),me(),mn.stopPropagation(),mn.preventDefault()};we.useEffect(function(){var wn=function(zn){zn.preventDefault()},mn=Ye.current,vn=pt.current;return mn.addEventListener("touchstart",wn,{passive:!1}),vn.addEventListener("touchstart",qt,{passive:!1}),function(){mn.removeEventListener("touchstart",wn),vn.removeEventListener("touchstart",qt)}},[]);var zt=we.useRef();zt.current=In;var Tt=we.useRef();Tt.current=gn,we.useEffect(function(){if(un){var wn,mn=function(zn){var Bt=En.current,Jt=Bt.dragging,On=Bt.pageY,Mn=Bt.startTop;Dt.Z.cancel(wn);var Te=Ye.current.getBoundingClientRect(),We=ft/(Pe?Te.width:Te.height);if(Jt){var xe=(Et(zn,Pe)-On)*We,ke=Mn;!De&&Pe?ke-=xe:ke+=xe;var Ae=zt.current,je=Tt.current,be=je?ke/je:0,Je=Math.ceil(be*Ae);Je=Math.max(Je,0),Je=Math.min(Je,Ae),wn=(0,Dt.Z)(function(){mt(Je,Pe)})}},vn=function(){rn(!1),Ce()};return window.addEventListener("mousemove",mn,{passive:!0}),window.addEventListener("touchmove",mn,{passive:!0}),window.addEventListener("mouseup",vn,{passive:!0}),window.addEventListener("touchend",vn,{passive:!0}),function(){window.removeEventListener("mousemove",mn),window.removeEventListener("touchmove",mn),window.removeEventListener("mouseup",vn),window.removeEventListener("touchend",vn),Dt.Z.cancel(wn)}}},[un]),we.useEffect(function(){return cn(),function(){clearTimeout(Pn.current)}},[se]),we.useImperativeHandle(te,function(){return{delayHidden:cn}});var Vt="".concat(ee,"-scrollbar"),tn={position:"absolute",visibility:dn?null:"hidden"},xn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Pe?(Object.assign(tn,{height:8,left:0,right:0,bottom:0}),Object.assign(xn,(0,qe.Z)({height:"100%",width:Ke},De?"left":"right",$n))):(Object.assign(tn,(0,qe.Z)({width:8,top:0,bottom:0},De?"right":"left",0)),Object.assign(xn,{width:"100%",height:Ke,top:$n})),we.createElement("div",{ref:Ye,className:$e()(Vt,(0,qe.Z)((0,qe.Z)((0,qe.Z)({},"".concat(Vt,"-horizontal"),Pe),"".concat(Vt,"-vertical"),!Pe),"".concat(Vt,"-visible"),dn)),style:(0,ye.Z)((0,ye.Z)({},tn),It),onMouseDown:An,onMouseMove:cn},we.createElement("div",{ref:pt,className:$e()("".concat(Vt,"-thumb"),(0,qe.Z)({},"".concat(Vt,"-thumb-moving"),un)),style:(0,ye.Z)((0,ye.Z)({},xn),wt),onMouseDown:qt}))}),xt=Wt,pe=20;function Me(){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,pe),Math.floor(ee)}var ze=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nt=[],At={overflowY:"auto",overflowAnchor:"none"};function Zt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,me=ae.itemHeight,Ce=ae.fullHeight,mt=Ce===void 0?!0:Ce,Pe=ae.style,Ke=ae.data,ft=ae.children,It=ae.itemKey,wt=ae.virtual,Qt=ae.direction,Xt=ae.scrollWidth,Gt=ae.component,un=Gt===void 0?"div":Gt,rn=ae.onScroll,ln=ae.onVirtualScroll,Pt=ae.onVisibleChange,nn=ae.innerProps,Ut=ae.extraRender,Le=ae.styles,ut=ae.showScrollBar,Rt=ut===void 0?"optional":ut,$t=(0,Se.Z)(ae,ze),De=we.useCallback(function(pn){return typeof It=="function"?It(pn):pn==null?void 0:pn[It]},[It]),Ye=ue(De,null,null),pt=(0,Ee.Z)(Ye,4),kt=pt[0],Yt=pt[1],dn=pt[2],Dn=pt[3],Pn=!!(wt!==!1&&ne&&me),cn=we.useMemo(function(){return Object.values(dn.maps).reduce(function(pn,Sn){return pn+Sn},0)},[dn.id,dn.maps]),In=Pn&&Ke&&(Math.max(me*Ke.length,cn)>ne||!!Xt),gn=Qt==="rtl",$n=$e()(oe,(0,qe.Z)({},"".concat(oe,"-rtl"),gn),se),An=Ke||Nt,En=(0,we.useRef)(),qt=(0,we.useRef)(),zt=(0,we.useRef)(),Tt=(0,we.useState)(0),Vt=(0,Ee.Z)(Tt,2),tn=Vt[0],xn=Vt[1],wn=(0,we.useState)(0),mn=(0,Ee.Z)(wn,2),vn=mn[0],Hn=mn[1],zn=(0,we.useState)(!1),Bt=(0,Ee.Z)(zn,2),Jt=Bt[0],On=Bt[1],Mn=function(){On(!0)},Te=function(){On(!1)},We={getKey:De};function xe(pn){xn(function(Sn){var Cn;typeof pn=="function"?Cn=pn(Sn):Cn=pn;var fn=qn(Cn);return En.current.scrollTop=fn,fn})}var ke=(0,we.useRef)({start:0,end:An.length}),Ae=(0,we.useRef)(),je=jt(An,De),be=(0,Ee.Z)(je,1),Je=be[0];Ae.current=Je;var lt=we.useMemo(function(){if(!Pn)return{scrollHeight:void 0,start:0,end:An.length-1,offset:void 0};if(!In){var pn;return{scrollHeight:((pn=qt.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:An.length-1,offset:void 0}}for(var Sn=0,Cn,fn,Zn,Kn=An.length,yn=0;yn<Kn;yn+=1){var hn=An[yn],Tn=De(hn),jn=dn.get(Tn),cr=Sn+(jn===void 0?me:jn);cr>=tn&&Cn===void 0&&(Cn=yn,fn=Sn),cr>tn+ne&&Zn===void 0&&(Zn=yn),Sn=cr}return Cn===void 0&&(Cn=0,fn=0,Zn=Math.ceil(ne/me)),Zn===void 0&&(Zn=An.length-1),Zn=Math.min(Zn+1,An.length-1),{scrollHeight:Sn,start:Cn,end:Zn,offset:fn}},[In,Pn,tn,An,Dn,ne]),gt=lt.scrollHeight,at=lt.start,Ze=lt.end,Ve=lt.offset;ke.current.start=at,ke.current.end=Ze,we.useLayoutEffect(function(){var pn=dn.getRecord();if(pn.size===1){var Sn=Array.from(pn.keys())[0],Cn=pn.get(Sn),fn=An[at];if(fn&&Cn===void 0){var Zn=De(fn);if(Zn===Sn){var Kn=dn.get(Sn),yn=Kn-me;xe(function(hn){return hn+yn})}}}dn.resetRecord()},[gt]);var ct=we.useState({width:0,height:ne}),sn=(0,Ee.Z)(ct,2),en=sn[0],on=sn[1],Fn=function(Sn){on({width:Sn.offsetWidth,height:Sn.offsetHeight})},Wn=(0,we.useRef)(),Un=(0,we.useRef)(),Rn=we.useMemo(function(){return Me(en.width,Xt)},[en.width,Xt]),Bn=we.useMemo(function(){return Me(en.height,gt)},[en.height,gt]),Nn=gt-ne,Gn=(0,we.useRef)(Nn);Gn.current=Nn;function qn(pn){var Sn=pn;return Number.isNaN(Gn.current)||(Sn=Math.min(Sn,Gn.current)),Sn=Math.max(Sn,0),Sn}var Xn=tn<=0,Jn=tn>=Nn,kn=vn<=0,nr=vn>=Xt,_n=Ue(Xn,Jn,kn,nr),dr=function(){return{x:gn?-vn:vn,y:tn}},pr=(0,we.useRef)(dr()),sr=(0,he.zX)(function(pn){if(ln){var Sn=(0,ye.Z)((0,ye.Z)({},dr()),pn);(pr.current.x!==Sn.x||pr.current.y!==Sn.y)&&(ln(Sn),pr.current=Sn)}});function ur(pn,Sn){var Cn=pn;Sn?((0,Ot.flushSync)(function(){Hn(Cn)}),sr()):xe(Cn)}function yr(pn){var Sn=pn.currentTarget.scrollTop;Sn!==tn&&xe(Sn),rn==null||rn(pn),sr()}var lr=function(Sn){var Cn=Sn,fn=Xt?Xt-en.width:0;return Cn=Math.max(Cn,0),Cn=Math.min(Cn,fn),Cn},fr=(0,he.zX)(function(pn,Sn){Sn?((0,Ot.flushSync)(function(){Hn(function(Cn){var fn=Cn+(gn?-pn:pn);return lr(fn)})}),sr()):xe(function(Cn){var fn=Cn+pn;return fn})}),tr=Ft(Pn,Xn,Jn,kn,nr,!!Xt,fr),mr=(0,Ee.Z)(tr,2),br=mr[0],Hr=mr[1];Be(Pn,En,function(pn,Sn,Cn,fn){var Zn=fn;return _n(pn,Sn,Cn)?!1:!Zn||!Zn._virtualHandled?(Zn&&(Zn._virtualHandled=!0),br({preventDefault:function(){},deltaX:pn?Sn:0,deltaY:pn?0:Sn}),!0):!1}),ge(In,En,function(pn){xe(function(Sn){return Sn+pn})}),(0,Xe.Z)(function(){function pn(Cn){var fn=Xn&&Cn.detail<0,Zn=Jn&&Cn.detail>0;Pn&&!fn&&!Zn&&Cn.preventDefault()}var Sn=En.current;return Sn.addEventListener("wheel",br,{passive:!1}),Sn.addEventListener("DOMMouseScroll",Hr,{passive:!0}),Sn.addEventListener("MozMousePixelScroll",pn,{passive:!1}),function(){Sn.removeEventListener("wheel",br),Sn.removeEventListener("DOMMouseScroll",Hr),Sn.removeEventListener("MozMousePixelScroll",pn)}},[Pn,Xn,Jn]),(0,Xe.Z)(function(){if(Xt){var pn=lr(vn);Hn(pn),sr({x:pn})}},[en.width,Xt]);var Er=function(){var Sn,Cn;(Sn=Wn.current)===null||Sn===void 0||Sn.delayHidden(),(Cn=Un.current)===null||Cn===void 0||Cn.delayHidden()},Tr=_e(En,An,dn,me,De,function(){return Yt(!0)},xe,Er);we.useImperativeHandle(te,function(){return{nativeElement:zt.current,getScrollInfo:dr,scrollTo:function(Sn){function Cn(fn){return fn&&(0,it.Z)(fn)==="object"&&("left"in fn||"top"in fn)}Cn(Sn)?(Sn.left!==void 0&&Hn(lr(Sn.left)),Tr(Sn.top)):Tr(Sn)}}}),(0,Xe.Z)(function(){if(Pt){var pn=An.slice(at,Ze+1);Pt(pn,An)}},[at,Ze,An]);var Ir=vt(An,De,dn,me),Pr=Ut==null?void 0:Ut({start:at,end:Ze,virtual:In,offsetX:vn,offsetY:Ve,rtl:gn,getSize:Ir}),or=He(An,at,Ze,Xt,vn,kt,ft,We),ir=null;ne&&(ir=(0,ye.Z)((0,qe.Z)({},mt?"height":"maxHeight",ne),At),Pn&&(ir.overflowY="hidden",Xt&&(ir.overflowX="hidden"),Jt&&(ir.pointerEvents="none")));var er={};return gn&&(er.dir="rtl"),we.createElement("div",(0,z.Z)({ref:zt,style:(0,ye.Z)((0,ye.Z)({},Pe),{},{position:"relative"}),className:$n},er,$t),we.createElement(Ie.Z,{onResize:Fn},we.createElement(un,{className:"".concat(oe,"-holder"),style:ir,ref:En,onScroll:yr,onMouseEnter:Er},we.createElement(Re,{prefixCls:oe,height:gt,offsetX:vn,offsetY:Ve,scrollWidth:Xt,onInnerResize:Yt,ref:qt,innerProps:nn,rtl:gn,extra:Pr},or))),In&&gt>ne&&we.createElement(xt,{ref:Wn,prefixCls:oe,scrollOffset:tn,scrollRange:gt,rtl:gn,onScroll:ur,onStartMove:Mn,onStopMove:Te,spinSize:Bn,containerSize:en.height,style:Le==null?void 0:Le.verticalScrollBar,thumbStyle:Le==null?void 0:Le.verticalScrollBarThumb,showScrollBar:Rt}),In&&Xt>en.width&&we.createElement(xt,{ref:Un,prefixCls:oe,scrollOffset:vn,scrollRange:Xt,rtl:gn,onScroll:ur,onStartMove:Mn,onStopMove:Te,spinSize:Rn,containerSize:en.width,horizontal:!0,style:Le==null?void 0:Le.horizontalScrollBar,thumbStyle:Le==null?void 0:Le.horizontalScrollBarThumb,showScrollBar:Rt}))}var Fe=we.forwardRef(Zt);Fe.displayName="List";var Lt=Fe,st=Lt},93314:function(an){"use strict";an.exports="data:image/png;base64,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"},96908:function(an){"use strict";an.exports="data:image/png;base64,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"},57177:function(an){"use strict";an.exports="data:image/png;base64,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"},81378:function(an){"use strict";an.exports="data:image/png;base64,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"},16722:function(an,Kt,ie){"use strict";ie.d(Kt,{Z:function(){return $e}});const z=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,it=(Ie,he)=>(!he||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",ye=(Ie,he)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const Xe=getComputedStyle(Ie,null);return it(Xe.overflowY,he)||it(Xe.overflowX,he)||(we=>{const Ot=(ot=>{if(!ot.ownerDocument||!ot.ownerDocument.defaultView)return null;try{return ot.ownerDocument.defaultView.frameElement}catch(Re){return null}})(we);return!!Ot&&(Ot.clientHeight<we.scrollHeight||Ot.clientWidth<we.scrollWidth)})(Ie)}return!1},qe=(Ie,he,Xe,we,Ot,ot,Re,Ge)=>ot<Ie&&Re>he||ot>Ie&&Re<he?0:ot<=Ie&&Ge<=Xe||Re>=he&&Ge>=Xe?ot-Ie-we:Re>he&&Ge<Xe||ot<Ie&&Ge>Xe?Re-he+Ot:0,Ee=Ie=>{const he=Ie.parentElement;return he==null?Ie.getRootNode().host||null:he},Se=(Ie,he)=>{var Xe,we,Ot,ot;if(typeof document=="undefined")return[];const{scrollMode:Re,block:Ge,inline:He,boundary:Ct,skipOverflowHiddenElements:Mt}=he,jt=typeof Ct=="function"?Ct:xt=>xt!==Ct;if(!z(Ie))throw new TypeError("Invalid target");const Dt=document.scrollingElement||document.documentElement,et=[];let yt=Ie;for(;z(yt)&&jt(yt);){if(yt=Ee(yt),yt===Dt){et.push(yt);break}yt!=null&&yt===document.body&&ye(yt)&&!ye(document.documentElement)||yt!=null&&ye(yt,Mt)&&et.push(yt)}const Ue=(we=(Xe=window.visualViewport)==null?void 0:Xe.width)!=null?we:innerWidth,Ft=(ot=(Ot=window.visualViewport)==null?void 0:Ot.height)!=null?ot:innerHeight,{scrollX:vt,scrollY:dt}=window,{height:St,width:Oe,top:nt,right:rt,bottom:ue,left:bt}=Ie.getBoundingClientRect(),{top:Be,right:tt,bottom:Et,left:ge}=(xt=>{const pe=window.getComputedStyle(xt);return{top:parseFloat(pe.scrollMarginTop)||0,right:parseFloat(pe.scrollMarginRight)||0,bottom:parseFloat(pe.scrollMarginBottom)||0,left:parseFloat(pe.scrollMarginLeft)||0}})(Ie);let de=Ge==="start"||Ge==="nearest"?nt-Be:Ge==="end"?ue+Et:nt+St/2-Be+Et,_e=He==="center"?bt+Oe/2-ge+tt:He==="end"?rt+tt:bt-ge;const Wt=[];for(let xt=0;xt<et.length;xt++){const pe=et[xt],{height:Me,width:ze,top:Nt,right:At,bottom:Zt,left:Fe}=pe.getBoundingClientRect();if(Re==="if-needed"&&nt>=0&&bt>=0&&ue<=Ft&&rt<=Ue&&(pe===Dt&&!ye(pe)||nt>=Nt&&ue<=Zt&&bt>=Fe&&rt<=At))return Wt;const Lt=getComputedStyle(pe),st=parseInt(Lt.borderLeftWidth,10),ae=parseInt(Lt.borderTopWidth,10),te=parseInt(Lt.borderRightWidth,10),ee=parseInt(Lt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in pe?pe.offsetWidth-pe.clientWidth-st-te:0,me="offsetHeight"in pe?pe.offsetHeight-pe.clientHeight-ae-ee:0,Ce="offsetWidth"in pe?pe.offsetWidth===0?0:ze/pe.offsetWidth:0,mt="offsetHeight"in pe?pe.offsetHeight===0?0:Me/pe.offsetHeight:0;if(Dt===pe)oe=Ge==="start"?de:Ge==="end"?de-Ft:Ge==="nearest"?qe(dt,dt+Ft,Ft,ae,ee,dt+de,dt+de+St,St):de-Ft/2,se=He==="start"?_e:He==="center"?_e-Ue/2:He==="end"?_e-Ue:qe(vt,vt+Ue,Ue,st,te,vt+_e,vt+_e+Oe,Oe),oe=Math.max(0,oe+dt),se=Math.max(0,se+vt);else{oe=Ge==="start"?de-Nt-ae:Ge==="end"?de-Zt+ee+me:Ge==="nearest"?qe(Nt,Zt,Me,ae,ee+me,de,de+St,St):de-(Nt+Me/2)+me/2,se=He==="start"?_e-Fe-st:He==="center"?_e-(Fe+ze/2)+ne/2:He==="end"?_e-At+te+ne:qe(Fe,At,ze,st,te+ne,_e,_e+Oe,Oe);const{scrollLeft:Pe,scrollTop:Ke}=pe;oe=mt===0?0:Math.max(0,Math.min(Ke+oe/mt,pe.scrollHeight-Me/mt+me)),se=Ce===0?0:Math.max(0,Math.min(Pe+se/Ce,pe.scrollWidth-ze/Ce+ne)),de+=Ke-oe,_e+=Pe-se}Wt.push({el:pe,top:oe,left:se})}return Wt},Ne=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function $e(Ie,he){if(!Ie.isConnected||!(Ot=>{let ot=Ot;for(;ot&&ot.parentNode;){if(ot.parentNode===document)return!0;ot=ot.parentNode instanceof ShadowRoot?ot.parentNode.host:ot.parentNode}return!1})(Ie))return;const Xe=(Ot=>{const ot=window.getComputedStyle(Ot);return{top:parseFloat(ot.scrollMarginTop)||0,right:parseFloat(ot.scrollMarginRight)||0,bottom:parseFloat(ot.scrollMarginBottom)||0,left:parseFloat(ot.scrollMarginLeft)||0}})(Ie);if((Ot=>typeof Ot=="object"&&typeof Ot.behavior=="function")(he))return he.behavior(Se(Ie,he));const we=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:Ot,top:ot,left:Re}of Se(Ie,Ne(he))){const Ge=ot-Xe.top+Xe.bottom,He=Re-Xe.left+Xe.right;Ot.scroll({top:Ge,left:He,behavior:we})}}}}]);