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__User__Detail__Topics__Po...

1190 lines
945 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([[799],{40001:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(54476),lt=re(59301),ge={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"},Ye=ge,Ee=re(7657),Pe=function(he,tt){return lt.createElement(Ee.Z,(0,E.Z)({},he,{ref:tt,icon:Ye}))},Ae=lt.forwardRef(Pe),Te=Ae},73331:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(54476),lt=re(59301),ge={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"},Ye=ge,Ee=re(7657),Pe=function(he,tt){return lt.createElement(Ee.Z,(0,E.Z)({},he,{ref:tt,icon:Ye}))},Ae=lt.forwardRef(Pe),Te=Ae},15277:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(54476),lt=re(59301),ge={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"},Ye=ge,Ee=re(7657),Pe=function(he,tt){return lt.createElement(Ee.Z,(0,E.Z)({},he,{ref:tt,icon:Ye}))},Ae=lt.forwardRef(Pe),Te=Ae},33853:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(54476),lt=re(59301),ge={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"},Ye=ge,Ee=re(7657),Pe=function(he,tt){return lt.createElement(Ee.Z,(0,E.Z)({},he,{ref:tt,icon:Ye}))},Ae=lt.forwardRef(Pe),Te=Ae},61485:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(54476),lt=re(59301),ge={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"},Ye=ge,Ee=re(7657),Pe=function(he,tt){return lt.createElement(Ee.Z,(0,E.Z)({},he,{ref:tt,icon:Ye}))},Ae=lt.forwardRef(Pe),Te=Ae},47472:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(54476),lt=re(59301),ge={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"},Ye=ge,Ee=re(7657),Pe=function(he,tt){return lt.createElement(Ee.Z,(0,E.Z)({},he,{ref:tt,icon:Ye}))},Ae=lt.forwardRef(Pe),Te=Ae},87395:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(54476),lt=re(59301),ge={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"},Ye=ge,Ee=re(7657),Pe=function(he,tt){return lt.createElement(Ee.Z,(0,E.Z)({},he,{ref:tt,icon:Ye}))},Ae=lt.forwardRef(Pe),Te=Ae},33515:function(){"use strict"},75620:function(){"use strict"},34537:function(tn,_t){"use strict";_t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},47197:function(tn,_t){"use strict";_t.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},28180:function(tn,_t){"use strict";_t.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},75964:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var tn={},_t="5.0",re={},E=null,lt=!1,ge=!1,Ye=null,Ee=!1,Pe=null,Ae=null,Te=0;Te<arguments.length;Te++){var we=arguments[Te];if(we!==null)switch(typeof we){case"number":_t=we.toFixed(1);break;case"string":we.match(new RegExp("^[0-9]\\.[0-9]+$"))?_t=we:Ye=we;break;case"object":typeof we.is3D!="undefined"?E=we:re=we;break;case"boolean":lt=we,ge=!0;break}}E===null&&(E={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!ge&&(lt=!0)),Ye!==null&&re.id===void 0&&(re.id=Ye);var he="",tt="",Se=!1,dt=null,$e=null,Ce=null,Ne=!1,Re=null,et=null,nt=null,Lt=null,wt=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var rt=function(ve){return parseFloat(ve)>4?parseFloat(ve):5};tn.setHTML5Codebase=function(ve,We){Ae=ve,ze(ve,We)},tn.setJavaCodebase=tn.setJavaCodebaseVersion=tn.isCompiledInstalled=tn.setPreCompiledScriptPath=tn.setPreCompiledResourcePath=function(){},tn.setHTML5CodebaseVersion=function(ve,We){var _e=parseFloat(ve);if(_e!==NaN&&_e<5){console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead.");return}Pe=ve,ce(ve,We)},tn.getHTML5CodebaseVersion=function(){return $e},tn.getParameters=function(){return re},tn.setFontsCSSURL=function(ve){Lt=ve},tn.setGiacJSURL=function(ve){},tn.setJNLPFile=function(ve){he=ve},tn.setJNLPBaseDir=function(ve){},tn.inject=function(){function ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var We="auto",_e=re.id,jt,kt=!1,Vt=0;Vt<arguments.length;Vt++){var je=arguments[Vt];typeof je=="string"?(je=je.toLowerCase(),je.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?We=je:_e=arguments[Vt]):typeof je=="boolean"?kt=je:je instanceof HTMLElement&&(jt=je)}Nt();function Nt(){if(!Ee){setTimeout(Nt,200);return}We=ft(We);var st=jt||document.getElementById(_e);if(!st){console.log("possibly bug on ajax loading? ");return}if(tn.removeExistingApplet(st,!1),re.width===void 0&&st.clientWidth&&(re.width=st.clientWidth),re.height===void 0&&st.clientHeight&&(re.height=st.clientHeight),!(re.width&&re.height)&&We==="html5"&&(delete re.width,delete re.height),dt=We,We==="screenshot")Ze(st,re);else{var ae=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?ae=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(ae=(!pt()||ve())&&Qe()),ae?(dt="screenshot",Je(st,re,kt,We)):Ue(st,re,kt)}}};function pt(){try{return window.self!==window.top}catch(ve){return!0}}function Qe(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}tn.getViews=function(){return E},tn.isJavaInstalled=function(){return!1};var Rt=function(ve){var We=function(Vt){var je=JSON.parse(Vt),Nt=function(te){return te.type=="G"||te.type=="E"},st=je.elements?je.elements.filter(Nt)[0]:je;if(!st||!st.url){_e();return}re.fileName=st.url,gt(st.settings||{}),E.is3D=!0;var ae="https://www.geogebra.org/images/";tn.setPreviewImage(Re||st.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ve()},_e=function(){re.onError&&re.onError(),Mt("Error: Fetching material (id "+re.material_id+") failed.",re)},jt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",kt="/materials/"+re.material_id+"?scope=basic";ot("https://"+jt+"/api/proxy.php?path="+encodeURIComponent(kt),We,_e)};function gt(ve){var We=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_e){ve[_e]=!!ve[_e]}),We.forEach(function(_e){re[_e]===void 0&&ve[_e]!==void 0&&(re[_e]=ve[_e])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function ot(ve,We,_e){var jt=new XMLHttpRequest;jt.open("GET",ve),jt.onload=function(){We(jt.responseText)},jt.onerror=_e,jt.send()}tn.isHTML5Installed=function(){return!0},tn.getLoadedAppletType=function(){return dt},tn.setPreviewImage=function(ve,We,_e){Re=ve,et=We,nt=_e},tn.removeExistingApplet=function(ve,We){var _e;typeof ve=="string"&&(ve=document.getElementById(ve)),dt=null;var jt=null;for(_e=0;_e<ve.childNodes.length;_e++){var kt=ve.childNodes[_e],Vt=kt.className;Vt==="applet_screenshot"?We?(kt.style.display="block",dt="screenshot"):kt.style.display="none":Vt!=="applet_scaler prerender"&&(ve.removeChild(kt),jt=Vt&&Vt.indexOf("appletParameters")!=-1?kt.id:null,_e--)}var je=re.id!==void 0?re.id:jt,Nt=window[je];Nt&&typeof Nt.getBase64=="function"&&(Nt.remove(),window[je]=null)},tn.refreshHitPoints=function(){if(rt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ve=tn.getAppletObject();return ve&&typeof ve.recalculateEnvironments=="function"?(ve.recalculateEnvironments(),!0):!1},tn.startAnimation=function(){var ve=tn.getAppletObject();return ve&&typeof ve.startAnimation=="function"?(ve.startAnimation(),!0):!1},tn.stopAnimation=function(){var ve=tn.getAppletObject();return ve&&typeof ve.stopAnimation=="function"?(ve.stopAnimation(),!0):!1},tn.getAppletObject=function(){var ve=re.id!==void 0?re.id:"ggbApplet";return window[ve]},tn.resize=function(){};var It=function(ve,We,_e){var jt=document.createElement("param");jt.setAttribute("name",We),jt.setAttribute("value",_e),ve.appendChild(jt)},Be=function(ve){return ve&&ve!=="false"},Ue=function(ve,We,_e){rt($e)<=4.2&&(_e=!0);var jt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==$e||ggbHTML5LoadedCodebaseIsWebSimple&&!Ne)&&(jt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var kt=document.createElement("div");kt.classList.add("appletParameters","notranslate");var Vt=We.width,je=We.height;if(We.disableAutoScale=We.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():We.disableAutoScale,We.width!==void 0)if(rt($e)<=4.4)Be(We.showToolBar)&&(We.height-=7),Be(We.showAlgebraInput)&&(We.height-=37),We.width<605&&Be(We.showToolBar)&&(We.width=605,Vt=605);else{var Nt=100;(Be(We.showToolBar)||Be(We.showMenuBar))&&(We.hasOwnProperty("customToolBar")&&(We.customToolbar=We.customToolBar),Nt=Be(We.showMenuBar)?245:155),Vt<Nt&&(We.width=Nt,Vt=Nt)}kt.style.border="none",kt.style.display="inline-block";for(var st in We)We.hasOwnProperty(st)&&st!=="appletOnLoad"&&kt.setAttribute("data-param-"+st,We[st]);Lt&&kt.setAttribute("data-param-fontscssurl",Lt),tn.resize=function(){GGBAppletUtils.responsiveResize(ve,We)},window.addEventListener("resize",function(Dt){tn.resize()});var ae=typeof We.appletOnLoad=="function"?We.appletOnLoad:function(){};if(!_e&&We.width!==void 0){We.hasOwnProperty("showSplash")||kt.setAttribute("data-param-showSplash","false");var te=ve.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=Me(Vt,je,We.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Vt+"px",te.style.height=je+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),rt($e)>=5?(We.appletOnLoad=function(Dt){var Ot=ve.querySelector(".ggb_preview");Ot&&Ot.parentNode.removeChild(Ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Dt)},ee||te.appendChild(oe)):kt.appendChild(oe),te.appendChild(kt),ee||ve.appendChild(te),setTimeout(function(){tn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(kt),ve.appendChild(se),We.appletOnLoad=function(Dt){tn.resize(),ae(Dt)}}function ne(Dt,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,Ot.appletOnLoad):renderGGBElement(Dt),Mt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function pe(Dt,Ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:Ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Jt){ne(Jt.article,Jt.params)}),html5AppletsToProcess=null)},rt($e)<5&&(Dt.className+=" geogebraweb")):ne(Dt,Ot)}if(jt){scriptLoadStarted=!0;for(var xe=0;xe<kt.childNodes.length;xe++){var ut=kt.childNodes[xe].tagName;ut==="TABLE"&&(kt.removeChild(kt.childNodes[xe]),xe--)}if(ggbHTML5LoadedScript!==null){var Ie=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ie!=null&&Ie.parentNode.removeChild(Ie)}var Ve=document.createElement("script"),ht=function(){pe(kt,We)};Ve.src=tt+Ce,ggbHTML5LoadedCodebaseIsWebSimple=Ne,ggbHTML5LoadedCodebaseVersion=$e,ggbHTML5LoadedScript=Ve.src,Mt("GeoGebra HTML5 codebase loaded: '"+tt+"'.",We),!Ae&&(!Pe||Pe=="5.0")?(Ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ht()):tt.requirejs?__webpack_require__.e(2408).then(function(){var Dt=[__webpack_require__(39133)];ht.apply(null,Dt)}.bind(this)).catch(__webpack_require__.oe):(Ve.onload=ht,ve.appendChild(Ve))}else pe(kt,We);We.height=je,We.width=Vt},Ze=function(ve,We,_e){var jt=Me(We.width,We.height,We.borderColor,_e),kt=document.createElement("div");kt.style.position="relative",kt.style.display="block",kt.style.width=We.width+"px",kt.style.height=We.height+"px",kt.className="applet_screenshot applet_scaler"+(_e?" applet_screenshot_play":""),kt.appendChild(jt);var Vt=GGBAppletUtils.getScale(We,ve,_e);_e?(ve.appendChild(ke()),window.GGBT_wsf_view||(ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(kt,"66%"),ve.appendChild(kt),Vt!==1&&!isNaN(Vt)&&(GGBAppletUtils.scaleElement(kt,Vt),kt.style.width=We.width+"px",kt.style.height=We.height+"px",kt.parentNode.style.width=We.width*Vt+"px",kt.parentNode.style.height=We.height*Vt+"px"),tn.resize=function(){ue(ve,jt,kt,_e)},window.addEventListener("resize",function(je){tn.resize()}),tn.resize()};function ue(ve,We,_e,jt){if(ve.contains(We)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}var kt=GGBAppletUtils.getScale(re,ve,jt);_e.parentNode!==null&&(!isNaN(kt)&&kt!==1?(GGBAppletUtils.scaleElement(_e,kt),_e.parentNode.style.width=re.width*kt+"px",_e.parentNode.style.height=re.height*kt+"px"):(GGBAppletUtils.scaleElement(_e,1),_e.parentNode.style.width=re.width+"px",_e.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ve),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}tn.onExitFullscreen=function(ve,We){We.appendChild(ve)};var Je=function(ve,We,_e,jt){Ze(ve,We,!0);for(var kt=function(){var Nt=[];for(je=0;je<ve.childNodes.length;je++)Nt.push(ve.childNodes[je]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(ve,We.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(ve).find(".fullscreencontent");te.length>0?(st.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):Ue(st,We,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else dt=jt,Ue(ve,We,!1);if(!window.GGBT_wsf_view)for(je=0;je<Nt.length;je++)ve.removeChild(Nt[je])},Vt=ve.getElementsByClassName("ggb_preview_play"),je=0;je<Vt.length;je++)Vt[je].addEventListener("click",kt,!1),Vt[je].addEventListener("ontouchstart",kt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ve),Qe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ke=function(){var ve=document.createElement("div");if(ve.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var We='.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");}',_e=document.createElement("style");_e.styleSheet?_e.styleSheet.cssText=We:_e.appendChild(document.createTextNode(We)),document.getElementsByTagName("head")[0].appendChild(_e)}return ve},Me=function(ve,We,_e,jt){var kt=document.createElement("div");kt.className="ggb_preview",kt.style.position="absolute",kt.style.zIndex="90",kt.style.width=ve-2+"px",kt.style.height=We-2+"px",kt.style.top="0px",kt.style.left="0px",kt.style.overflow="hidden",kt.style.backgroundColor="white";var Vt="lightgrey";_e!==void 0&&(_e==="none"?Vt="transparent":Vt=_e),kt.style.border="1px solid "+Vt;var je=document.createElement("img");if(je.style.position="relative",je.style.zIndex="1000",je.style.top="-1px",je.style.left="-1px",Re!==null&&je.setAttribute("src",Re),je.style.opacity=.7,et!==null){var Nt,st,ae;if(!jt){Nt=document.createElement("img"),Nt.style.position="absolute",Nt.style.zIndex="1001",Nt.style.opacity=1,je.style.opacity=.3,st=360,st>ve/4*3&&(st=ve/4*3),ae=st/5.8,Nt.setAttribute("src",et),Nt.setAttribute("width",st),Nt.setAttribute("height",ae);var te=(ve-st)/2,ee=(We-ae)/2;Nt.style.left=te+"px",Nt.style.top=ee+"px",kt.appendChild(Nt)}}return kt.appendChild(je),kt},ft=function(ve){return ve=ve.toLowerCase(),ve==="html5"||ve==="screenshot"?ve:"html5"},me=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(ve,We){if($e=ve,We){ze($e,!0);return}var _e=!lt;if(_e){var jt=rt($e);!isNaN(jt)&&jt<4.4&&(_e=!1)}var kt,Vt;window.location.protocol.substr(0,4)==="http"?kt=window.location.protocol:kt="http:";var je=$e.indexOf("//");je>0?Vt=$e:je===0?Vt=kt+$e:Vt="https://www.geogebra.org/apps/5.2.814.0/";for(var Nt in me)if($e.slice(me[Nt].length*-1)===me[Nt]||$e.slice((me[Nt].length+1)*-1)===me[Nt]+"/"){ze(Vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_e&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Be(re.showToolBar)&&!Be(re.showMenuBar)&&!Be(re.showAlgebraInput)&&!Be(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Vt+="webSimple/":Vt+="web3d/",ze(Vt,!1)},ze=function(ve,We){if(ve.requirejs){tt=ve;return}ve.slice(-1)!=="/"&&(ve+="/"),tt=ve,We===null&&(We=ve.indexOf("http")===-1),Se=We,Ce="web.nocache.js",Ne=!1;var _e=tt.split("/");_e.length>1&&(!We&&_e[_e.length-2]==="webSimple"?(Ce="webSimple.nocache.js",Ne=!0):me.indexOf(_e[_e.length-2])>=0&&(Ce=_e[_e.length-2]+".nocache.js")),_e=ve.split("/"),$e=_e[_e.length-3],$e.substr(0,4)==="test"?$e=$e.substr(4,1)+"."+$e.substr(5,1):($e.substr(0,3)==="war"||$e.substr(0,4)==="beta")&&($e="5.0");var jt=parseFloat($e);jt!==NaN&&jt<5&&ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+jt+" is deprecated. Using version latest instead."),ce("5.0",We))},Mt=function(ve,We){window.console&&window.console.log&&(!We||typeof We.showLogging=="undefined"||We.showLogging&&We.showLogging!=="false")&&console.log(ve)};re.material_id!==void 0?Rt(xt):xt();function xt(){var ve=_t;Pe!==null?ve=Pe:parseFloat(ve)<5&&(ve="5.0"),ce(ve,!1),Ae!==null&&ze(Ae,Se),Ee=!0}return tn},GGBAppletUtils=function(){"use strict";function tn(){return window.GGBT_wsf_edit!==void 0}function _t(Ee,Pe){Pe!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+Pe+","+Pe+")",Ee.style.webkitTransform="scale("+Pe+","+Pe+")",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 re(Ee,Pe,Ae,Te,we,he){var tt=null;if(he!=null&&he!="")for(var Se=Ee.parentNode;Se!=null;)if((" "+Se.className+" ").indexOf(" "+he+" ")>-1){tt=Se;break}else Se=Se.parentNode;var dt=0,$e=0,Ce=0,Ne=0,Re=0,et=0,nt=0;if(tt)dt=tt.offsetWidth,$e=Math.max(Te?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(dt=Math.min(window.innerWidth,document.documentElement.clientWidth),$e=Math.min(window.innerHeight,document.documentElement.clientHeight),Ce=dt):(dt=window.innerWidth,$e=window.innerHeight,Ce=window.innerWidth),Ee){var Lt=Ee.getBoundingClientRect();Lt.left>0&&Lt.left<=dt&&(we===void 0||!we)&&(document.dir==="rtl"?(Re=dt-Lt.width-Lt.left,et=Ce<=480?10:30):(et=Lt.left,Re=Ce<=480?10:30),Ne=et+Re)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne=40,nt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ne=0,nt=40)}}return Ee&&((Ae===void 0||!Ae)&&Pe>0&&Pe+Ne<dt?dt=Pe:dt-=Ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae===void 0||!Ae)&&($e-=nt)),{width:dt,height:$e}}function E(Ee,Pe,Ae,Te,we){if(Ee.isScreenshoGenerator)return 1;var he=Te!==void 0&&Te,tt=Ee.noScaleMargin!=null&&Ee.noScaleMargin,Se=function(wt){return wt&&wt!=="false"},dt=Se(Ee.autoHeight),$e=re(Pe,Ee.width,Ae,dt,he&&window.GGBT_wsf_view||tt,we),Ce=parseInt($e.width),Ne=Ee.width,Re=Ee.height;if(Ne===void 0){var et=Pe.querySelector(".appletParameters");et&&(Ne=et.offsetWidth,Re=et.offsetHeight)}var nt=Ce/Ne,Lt=he?1:$e.height/Re;return Ae!==void 0&&!Ae&&(nt=Math.min(1,nt),Lt=Math.min(1,Lt)),Math.min(nt,Lt)}function lt(Ee,Pe,Ae){var Te=1,we,he=!1;if(Ee.hasOwnProperty("allowUpscale")&&(he=Ee.allowUpscale),Ee.hasOwnProperty("scale")&&(Te=parseFloat(Ee.scale),(isNaN(Te)||Te===null||Te===0)&&(Te=1),Te>1&&(he=!0)),Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))we=E(Ee,Pe,he,Ae,Ee.scaleContainerClass);else return Te;return he&&(!Ee.hasOwnProperty("scale")||Te===1)?we:Math.min(Te,we)}function ge(Ee){var Pe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ae=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=Ee.getBoundingClientRect(),we=(Pe-Te.width)/2,he=(Ae-Te.height)/2;he<0&&(he=0),Ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?Ee.style.left="40px":Ee.style.left=we+"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=we+"px")}function Ye(Ee,Pe){var Ae=Ee.querySelector(".appletParameters");if(Ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!==Ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(Ae.parentElement&&/fullscreen/.test(Ae.parentElement.className))return;var Te=lt(Pe,Ee);tn()&&Ae.setAttribute("data-param-scale",Te);for(var we=null,he=0;he<Ee.childNodes.length;he++)if(Ee.childNodes[he].className!==void 0&&Ee.childNodes[he].className.match(/^applet_scaler/)){we=Ee.childNodes[he];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var tt=Pe.id!==void 0?Pe.id:"ggbApplet",Se=window[tt];(Se==null||!Se.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(Te)&&Te!==1?(we.parentNode.style.width=Pe.width*Te+"px",we.parentNode.style.height=Pe.height*Te+"px",_t(we,Te)):(_t(we,1),we.parentNode.style.width=Pe.width+"px",we.parentNode.style.height=Pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ge(Ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ae).parents(".content-added-content"))}}return{responsiveResize:Ye,isFlexibleWorksheetEditor:tn,positionCenter:ge,getScale:lt,scaleElement:_t}}();__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 tn=n.location.search;return tn.indexOf(J)!=-1||tn.indexOf(K)!=-1}function q(tn,_t){}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(tn){var _t=s[L].bindings;s[L].bindings=function(){for(var re=_t?_t():{},E=tn[webModule.__softPermutationId],lt=O;lt<E.length;lt++){var ge=E[lt];re[ge[O]]=ge[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var tn=o.createElement(Q);if(tn.id=L,tn.style.cssText=R+S,tn.tabIndex=-1,o.body.appendChild(tn),t=tn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var _t=document.compatMode==U?V:W;t.write(_t+X),t.close()}}}function w(tn){function _t(E){function lt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ge=lt();if(ge){E();return}function Ye(){if(!ge){if(!lt())return;ge=!0,E(),o.removeEventListener&&o.removeEventListener(Z,Ye,!1),Ee&&clearInterval(Ee)}}o.addEventListener&&o.addEventListener(Z,Ye,!1);var Ee=setInterval(function(){Ye()},$)}function re(E){var lt=u(),ge=lt.body,Ye=lt.createElement(_);Ye.language=ab,Ye.crossOrigin=W,Ye.src=E,webModule.__errFn&&(Ye.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),ge.appendChild(Ye)}_t(function(){re(tn)})}webModule.__startLoadingFragment=function(tn){return C(tn)},webModule.__installRunAsyncCode=function(tn){var _t=u(),re=_t.body,E=_t.createElement(_);E.language=ab,E.text=tn,re.appendChild(E),re.removeChild(E)};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(tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(tn){var _t=c[tn];return _t==null?null:_t},r=d,webModule.__errFn=e}function B(){function tn(Ee){var Pe=Ee.lastIndexOf(rb);Pe==-1&&(Pe=Ee.length);var Ae=Ee.indexOf(sb);Ae==-1&&(Ae=Ee.length);var Te=Ee.lastIndexOf(tb,Math.min(Ae,Pe));return Te>=O?Ee.substring(O,Te+P):W}function _t(Ee){if(!Ee.match(/^\w+:\/\//)){var Pe=o.createElement(ub);Pe.src=Ee+vb,Ee=tn(Pe.src)}return Ee}function re(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function E(){for(var Ee=o.getElementsByTagName(_),Pe=O;Pe<Ee.length;++Pe)if(Ee[Pe].src.indexOf(xb)!=-1)return tn(Ee[Pe].src);return W}function lt(){var Ee=o.getElementsByTagName(yb);return Ee.length>O?Ee[Ee.length-P].href:W}function ge(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var Ye=re();return Ye==W&&(Ye=E()),Ye==W&&(Ye=lt()),Ye==W&&ge()&&(Ye=tn(o.location.href)),Ye=_t(Ye),Ye}function C(tn){return tn.match(/^\//)||tn.match(/^[a-zA-Z]+:\/\//)?tn:webModule.__moduleBase+tn}function D(){var tn=[],_t=O,re=[],E=[];function lt(Ee){var Pe=E[Ee](),Ae=re[Ee];if(Pe in Ae)return Pe;var Te=[];for(var we in Ae)Te[Ae[we]]=we;throw r&&r(Ee,Te,Pe),null}if(__gwt_isKnownPropertyValue=function(Ee,Pe){return Pe in re[Ee]},webModule.__getPropMap=function(){var Ee={};for(var Pe in re)re.hasOwnProperty(Pe)&&(Ee[Pe]=lt(Pe));return Ee},webModule.__computePropValue=lt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var Ye=ge.indexOf(Db);Ye!=-1&&(_t=parseInt(ge.substring(Ye+P),$),ge=ge.substring(O,Ye))}catch(Ee){}return webModule.__softPermutationId=_t,C(ge+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})()},83498:function(tn,_t,re){"use strict";re.d(_t,{Ax:function(){return Ye},Ds:function(){return Ee},KI:function(){return Ae},SI:function(){return ge},f1:function(){return lt}});var E=re(14661);function lt(Te){let we=!0;if(Te.length>0){for(let he=0;he<Te.length;he++)if(Te[he].compile_success==0||!Te[he].compile_success){we=!1;break}}else we=!1;return we}function ge(Te,we=""){let he=[];for(let tt=0;tt<Te.length;tt++){let Se=Te[tt],dt=we?`${we}/${Se.name}`:`${Se.name}`;he.push({title:Se.name,type:Se.type,isLeaf:Se.type!=="tree",key:dt})}return he}function Ye(Te,we,he){for(let tt=0;tt<Te.length;tt++){let Se=Te[tt];if(Se.key===we){Se.children=he;break}Se.children&&Ye(Se.children,we,he)}return Te}function Ee(Te,we,he){let tt;return function(){let Se=this,dt=arguments,$e=function(){tt=null,he||Te.apply(Se,dt)},Ce=he&&!tt;clearTimeout(tt),tt=setTimeout($e,we),Ce&&Te.apply(Se,dt)}}const Pe=!0,Ae=E.Z.API_SERVER},16202:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return tt}});var E=re(59301),lt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ge=re(92310),Ye=re.n(ge),Ee=re(29787),Pe=re(2859),Ae=re(66658),Te=re(7408),we=(Se,dt,$e)=>new Promise((Ce,Ne)=>{var Re=Lt=>{try{nt($e.next(Lt))}catch(wt){Ne(wt)}},et=Lt=>{try{nt($e.throw(Lt))}catch(wt){Ne(wt)}},nt=Lt=>Lt.done?Ce(Lt.value):Promise.resolve(Lt.value).then(Re,et);nt(($e=$e.apply(Se,dt)).next())}),tt=({data:Se,className:dt,fullWidth:$e,style:Ce={},onClose:Ne,onOk:Re,showFullTools:et,noAssociationId:nt})=>{const Lt=(0,E.useRef)(null),wt=(0,E.useRef)(null),rt=(0,E.useRef)(null),pt=(0,E.useRef)(null),[Qe,Rt]=(0,E.useState)(!1),[gt,ot]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(rt.current||(rt.current=document.createElement("style"),document.head.appendChild(rt.current)),Se!=null&&Se.visible?(document.body.setAttribute("data-custom","y-hidden"),rt.current.innerHTML=" html { overflow-y: hidden; }",Se!=null&&Se.src&&It()):(document.body.removeAttribute("data-custom"),rt.current&&(document.head.removeChild(rt.current),rt.current=null)),()=>{document.body.removeAttribute("data-custom"),rt.current&&(document.head.removeChild(rt.current),rt.current=null)}),[Se==null?void 0:Se.visible]);const It=()=>we(void 0,null,function*(){Rt(!0),ot("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Te.ZJ)(Se==null?void 0:Se.src);Lt.current.src="",Lt.current.src=ue,Lt.current.onload=function(){Ze()},Rt(!1),ot("")}),Be=ue=>we(void 0,null,function*(){Rt(!0),ot("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Je=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Se.title,file:ue.dataUrl}});Je!=null&&Je.id&&!nt?(yield(0,Ae.ZP)(`/api/attachments/${Se.id}/add_subitem.json`,{method:"post",body:{subitem_id:Je==null?void 0:Je.id,settings:JSON.stringify(ue.state)}})).status===0&&Re():Je!=null&&Je.id&&Re(Je),Rt(!1),ot("")}),Ue=()=>{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(ke=>{const Me=document.querySelector(ke.name);Me&&Me.setAttribute("title",ke.title)})},Ze=()=>{wt.current=new Pe.hP(Lt.current),wt.current.targetRoot=pt.current,wt.current.addEventListener("render",Be),wt.current.addEventListener("beforeclose",Ne),et&&(wt.current.availableMarkerTypes=wt.current.ALL_MARKER_TYPES,wt.current.uiStyleSettings.redoButtonVisible=!0,wt.current.uiStyleSettings.notesButtonVisible=!0,wt.current.uiStyleSettings.zoomButtonVisible=!0,wt.current.uiStyleSettings.zoomOutButtonVisible=!0,wt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=wt.current.uiStyleSettings,wt.current.show(),Se!=null&&Se.snapshotData&&wt.current.restoreState(Se.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ue()},300)};return E.createElement(E.Fragment,null,(Se==null?void 0:Se.visible)&&E.createElement(Ee.Z,{spinning:Qe,tip:gt,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:pt,className:Ye()(lt.imageDimensions,dt,$e?lt.fullWidth:""),style:Ce},E.createElement("img",{className:lt.img,ref:Lt}))))}},45469:function(tn,_t,re){"use strict";var E=re(59301),lt=re(77019),ge=re(5269),Ye=re(31691),Ee=re(7939),Pe=re(84660),Ae=re(34537),Te=re(48136),we=re(59301);const he=(0,E.forwardRef)(({callback:tt,showSaveButton:Se,value:dt=""},$e)=>{const Ce=(0,E.useRef)(),Ne=[{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 "}]}]}],Re=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],et=wt=>{Ce.current.setValue(Ce.current.getValue()+" "+wt.value+" ")},nt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(lt.Z,{className:Ae.Z.lists,gutter:[10,10]},Ne.map((wt,rt)=>we.createElement(ge.Z,{flex:"110px",className:Ae.Z.item},we.createElement("div",null,we.createElement(Pe.Z,{value:`$$${wt.value}$$`}),wt.name),we.createElement("div",{className:Ae.Z.children},wt.children.map((pt,Qe)=>we.createElement("div",{key:Qe},we.createElement("h1",null,pt.name),we.createElement(lt.Z,{gutter:[10,10]},pt.data.map((Rt,gt)=>we.createElement(ge.Z,{key:gt,onClick:()=>et(Rt),className:Ae.Z.diamond},we.createElement(Pe.Z,{value:"`$$"+Rt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(lt.Z,{className:Ae.Z.lists,gutter:[10,10]},Re.map((wt,rt)=>we.createElement(ge.Z,{flex:"110px",className:Ae.Z.item},we.createElement("div",null,we.createElement(Pe.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),we.createElement("div",{className:Ae.Z.children},wt.children.map((pt,Qe)=>we.createElement("div",{key:Qe},pt.name&&we.createElement("h1",null,pt.name),we.createElement(lt.Z,{gutter:[10,10]},pt.data.map((Rt,gt)=>we.createElement(ge.Z,{key:gt,onClick:()=>et(Rt),className:Ae.Z.diamond},we.createElement(Pe.Z,{value:"`$$"+Rt.value+"$$`"}))))))))))}],Lt=()=>{var wt=document.createElement("div");wt.innerHTML=Ce.current.getValue();var rt=wt.innerText;return tt&&tt(rt),rt};return(0,E.useImperativeHandle)($e,()=>({getData:Lt})),we.createElement("div",{className:Ae.Z.mathWrap},we.createElement(Ye.default,{defaultActiveKey:"1",items:nt}),we.createElement("math-field",{locale:"zh_cn",className:Ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ce,style:{width:800,marginTop:30,fontSize:18}},dt||""),Se&&we.createElement("div",{className:Ae.Z.button},we.createElement(Ee.ZP,{size:"large",onClick:Lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});_t.Z=he},4918:function(tn,_t,re){"use strict";var E=re(59301),lt=re(93314),ge=re(7939),Ye=Object.defineProperty,Ee=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,he=($e,Ce,Ne)=>Ce in $e?Ye($e,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):$e[Ce]=Ne,tt=($e,Ce)=>{for(var Ne in Ce||(Ce={}))Te.call(Ce,Ne)&&he($e,Ne,Ce[Ne]);if(Ae)for(var Ne of Ae(Ce))we.call(Ce,Ne)&&he($e,Ne,Ce[Ne]);return $e},Se=($e,Ce)=>Ee($e,Pe(Ce));const dt=({img:$e,buttonProps:Ce={},styles:Ne={},customText:Re,ButtonText:et,ButtonClick:nt,Buttonclass:Lt,ButtonTwo:wt,imgStyles:rt,loading:pt=!1,className:Qe=""})=>E.createElement("section",{className:`tc animated fadeIn ${Qe}`,style:tt({color:"#999",margin:"100px auto",visibility:pt?"hidden":"visible"},Ne)},E.createElement("img",{src:$e||lt,style:Se(tt({},rt),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},Re||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),et&&E.createElement(ge.ZP,tt({className:Lt,onClick:nt},Ce),et),wt&&wt);_t.Z=dt},75909:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Lt}});var E=re(59301),lt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ge=re(7939),Ye=re(70557),Ee=re(77545),Pe=re(25399),Ae=re(7408),Te=re(81671),we=re(4918),he=re(14661),tt=re(93063),Se=re(59301),dt=Object.defineProperty,$e=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Re=(wt,rt,pt)=>rt in wt?dt(wt,rt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):wt[rt]=pt,et=(wt,rt)=>{for(var pt in rt||(rt={}))Ce.call(rt,pt)&&Re(wt,pt,rt[pt]);if($e)for(var pt of $e(rt))Ne.call(rt,pt)&&Re(wt,pt,rt[pt]);return wt},nt=(wt,rt,pt)=>new Promise((Qe,Rt)=>{var gt=Be=>{try{It(pt.next(Be))}catch(Ue){Rt(Ue)}},ot=Be=>{try{It(pt.throw(Be))}catch(Ue){Rt(Ue)}},It=Be=>Be.done?Qe(Be.value):Promise.resolve(Be.value).then(gt,ot);It((pt=pt.apply(wt,rt)).next())}),Lt=({editOffice:wt="view",data:rt,issaver:pt,onSaver:Qe,theme:Rt,type:gt,filename:ot,monacoEditor:It,className:Be,style:Ue,close:Ze,onClose:ue,hasMask:Je,disabledDownload:ke,onImgDimensions:Me,showNodata:ft,recordInfo:me})=>{const[ce,ze]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Mt,xt]=(0,E.useState)(""),[ve,We]=(0,E.useState)(),_e=window.ENV==="build"?"/react/build":"",jt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Vt=10*(1024*1024),je=(0,E.useRef)();rt!=null&&rt.startsWith("/api")&&gt!=="txt"&&(rt=he.Z.API_SERVER+rt);const Nt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();ot&&It&&(It.filename=ot),(0,E.useEffect)(()=>{var se,ne;const pe=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");pe==null||pe.map(xe=>{let ut=xe.split("=");ut[0]==="_educoder_session"&&xt(ut[1])})},[]),(0,E.useEffect)(()=>{gt==="office"&&(rt.indexOf("bigfilescdn.")>-1||rt.indexOf("bigfiles1")>-1?We({url:rt,fileType:Nt(rt),model:rt.indexOf("model=edit")?"edit":"view"}):rt.indexOf("coze")>-1?We({url:rt,fileType:"doc",model:"view"}):ae())},[gt,rt]);function st(se){return nt(this,null,function*(){se.data.type==="pdfdata"&&(Qe(se.data.data),window.removeEventListener("message",st,!1)),console.log("mess---:",se.data)})}const ae=()=>nt(void 0,null,function*(){console.log("data:",rt);let se=rt;rt.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const pe=yield(0,Te.gJ)({attachment_id:ne});pe.url=jt+pe.url,We(pe)}),te=()=>{if(rt.startsWith("http")||rt.startsWith("blob:")){ee();return}(0,Ae.Sv)(ot||"educoder",rt,ot)},ee=()=>{me&&(0,tt.fc)({id:me==null?void 0:me.id,watch_type:1,course_id:me==null?void 0:me.course_id}),(0,Ae.Nd)(ot||"educoder",decodeURIComponent(rt))};(0,E.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&ue()};return Se.createElement("div",{style:et({},Ue||{}),className:`${Je&&lt.bgBlack} ${gt?lt.wrp:"hide"}`},!!gt&&Ze&&Se.createElement("div",{id:"closePop",className:lt.close,ref:je},!!Me&&Se.createElement(Pe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>je.current},Se.createElement("span",{onClick:()=>{ue(),Me()}},Se.createElement("i",{className:"icon-yulanpizhu"}))),!ke&&window.parent===window&&Se.createElement(Pe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>je.current},Se.createElement("span",{onClick:ee},Se.createElement("i",{className:"icon-quxiaozhiding"}))),pt&&Se.createElement(Pe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>je.current},Se.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",st,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Se.createElement("i",{className:"icon-baocun"}))),Se.createElement(Pe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>je.current},Se.createElement("span",{className:"",onClick:()=>{ue()}},Se.createElement("i",{className:"icon-guanbi1"})))),Se.createElement("div",{className:`${lt[Be]} ${Be} ${lt.monaco} ${gt==="txt"?"show":"hide"}`},gt==="txt"&&Se.createElement(Se.Fragment,null,Se.createElement(Ee.ZP,et({},It)))),gt==="audio"&&Se.createElement("audio",{src:`${(rt==null?void 0:rt.indexOf("http://"))>-1||(rt==null?void 0:rt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${rt}`,autoPlay:!0}),gt==="video"&&Se.createElement(Se.Fragment,null,(rt==null?void 0:rt.indexOf("http"))>-1?Se.createElement("video",{controls:!0,src:`${rt}`,autoPlay:!0}):Se.createElement("video",{controls:!0,src:`data:video/mp4;base64,${rt}`,autoPlay:!0})),gt==="office"&&ve&&Se.createElement("iframe",{src:`${_e}/office.html?key=${ve.key}&url=${btoa(ve.url)}&callbackUrl=${jt+(ve.callbackUrl||"")}&fileType=${ve.fileType}&title=${ve.title||""}&model=${wt}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!ke}`}),gt==="html"&&Se.createElement("iframe",{src:rt+"&disposition=inline"}),gt==="pdf"&&Se.createElement("iframe",{id:"pdfiframe",src:`${_e}/js/pdf/index.html?filename=${ot||"educoder.pdf"}&url=${encodeURIComponent(rt)}&disabledDownload=${!!ke}&model=${wt}`}),gt==="image"&&Se.createElement("img",{src:`${(rt==null?void 0:rt.indexOf("http://"))>-1||(rt==null?void 0:rt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${rt}`}),(gt==="other"||gt==="download")&&Se.createElement(Se.Fragment,null,ft?Se.createElement(we.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Se.createElement(ge.ZP,{icon:Se.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:ke},"\u4E0B\u8F7D")}):Se.createElement(ge.ZP,{type:"primary",size:"middle",onClick:te,disabled:ke},Se.createElement(Ye.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),gt==="flowChart"&&Se.createElement("div",{className:"embed"},Se.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${rt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},51316:function(tn,_t,re){"use strict";re.d(_t,{h:function(){return Ce},x:function(){return Ne}});var E=re(46127),lt=re(47197),ge=re(84660),Ye=re(59301),Ee=Object.defineProperty,Pe=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,tt=(Re,et,nt)=>et in Re?Ee(Re,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Re[et]=nt,Se=(Re,et)=>{for(var nt in et||(et={}))we.call(et,nt)&&tt(Re,nt,et[nt]);if(Te)for(var nt of Te(et))he.call(et,nt)&&tt(Re,nt,et[nt]);return Re},dt=(Re,et)=>Pe(Re,Ae(et)),$e=(Re,et)=>{var nt={};for(var Lt in Re)we.call(Re,Lt)&&et.indexOf(Lt)<0&&(nt[Lt]=Re[Lt]);if(Re!=null&&Te)for(var Lt of Te(Re))et.indexOf(Lt)<0&&he.call(Re,Lt)&&(nt[Lt]=Re[Lt]);return nt};const Ce=Re=>{var et=Re,{value:nt,onChange:Lt,scrollId:wt}=et,rt=$e(et,["value","onChange","scrollId"]);return Ye.createElement("div",{id:wt||""},Ye.createElement(E.Z,dt(Se({},rt),{defaultValue:nt,onChange:(pt,Qe)=>{Qe!=null&&Qe.length?Lt(pt,Qe):Lt(pt)}})))},Ne=({value:Re,onChange:et,placeholder:nt,height:Lt=140,isEdit:wt,miniToolbar:rt,watch:pt=!0})=>wt?Ye.createElement(E.Z,{watch:pt,isFocus:!0,height:Lt||void 0,placeholder:nt,defaultValue:Re,onChange:et,miniToolbar:rt}):Ye.createElement("div",{style:{cursor:"pointer"}},Re?Ye.createElement(ge.Z,{className:lt.Z.inputBorder,value:Re}):Ye.createElement("div",{className:`${lt.Z.inputBorder} ${lt.Z.placeholder} inputBorderError`},nt))},84660:function(tn,_t,re){"use strict";re.d(_t,{z:function(){return It},Z:function(){return Be}});var E=re(59301),lt=re(36175),ge=re(96160),Ye=re(64018),Ee=re(16471),Pe=re(14661),Ae=re(7408),Te=re(15342),we=re(44104),he=re(7939),tt=re(1012),Se=re(75909),dt=re(59301),Ce=({html:Ue})=>{const Ze=(0,E.useRef)(null),ue=(0,E.useRef)(null),Je=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,E.useEffect)(()=>{const ke=Ze.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=Ue,ke.appendChild(ue.current);const Me=document.createElement("style");return Me.textContent=Je,ke.appendChild(Me),()=>{ke.innerHTML=""}},[]),(0,E.useEffect)(()=>{ue.current&&(ue.current.innerHTML=Ue)},[Ue]),dt.createElement("div",{ref:Ze})};function Ne(Ue){const Ze=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ue=new RegExp(`\\b(${Ze.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Je=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Ue.replace(ue,"").replace(Je,"").trim()}var Re={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},et=Object.defineProperty,nt=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,rt=(Ue,Ze,ue)=>Ze in Ue?et(Ue,Ze,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Ue[Ze]=ue,pt=(Ue,Ze)=>{for(var ue in Ze||(Ze={}))Lt.call(Ze,ue)&&rt(Ue,ue,Ze[ue]);if(nt)for(var ue of nt(Ze))wt.call(Ze,ue)&&rt(Ue,ue,Ze[ue]);return Ue};const Qe="@\u2581\u2581@",Rt="@\u2581@",gt=/<pre[^>]*>/g;function ot(Ue){let Ze=document.createElement("div");return Ze.innerHTML=Ue,Ze.childNodes.length===0?"":Ze.childNodes[0].nodeValue}const It=(Ue,Ze)=>{Ue=Ue||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Je=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Me=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ze?Ue.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(ft,me,ce,ze,Mt,xt,ve)=>{const We=me||ze||xt,_e=ce||Mt||ve||"?";return Pe.Z.API_SERVER+"/api/attachments/"+We+_e+"&t="+(0,Ae.Jn)(We,Date.now())+(ft.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ue=Ue.replace(Me,(ft,me,ce,ze,Mt,xt,ve)=>{const We=me||ze||xt,_e=ce||Mt||ve||"?";return Pe.Z.API_SERVER+"/attachments/download/"+We+_e+"&t="+(0,Ae.Jn)(We,Date.now())+(ft.indexOf(")")>-1?")":"&")}).replace(ue,(ft,me,ce,ze,Mt,xt,ve)=>{const We=me||ze||xt,_e=ce||Mt||ve||"?";return Pe.Z.API_SERVER+"/api/attachments/"+We+_e+"&t="+(0,Ae.Jn)(We,Date.now())+(ft.indexOf(")")>-1?")":"&")}).replace(Je,(ft,me,ce,ze,Mt)=>{const xt=me||ze,ve=ce||Mt||"";return'"'+Pe.Z.API_SERVER+"/api/attachments/"+xt+ve+xt+ve+"&t="+(0,Ae.Jn)(xt,Date.now())}).replace(ke,(ft,me,ce,ze,Mt)=>{const xt=me||ze,ve=ce||Mt||"";return"("+Pe.Z.API_SERVER+"/files/uploads/"+xt+ve+xt+ve+"&t="+(0,Ae.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,`
`),Ue)};var Be=({value:Ue="",edit:Ze=!1,className:ue,showTextOnly:Je,showLines:ke,style:Me={},stylesPrev:ft={},highlightKeywords:me,showProgramFill:ce,isProgramFill:ze,disabledFill:Mt=!1,programFillValue:xt,openEditor:ve=()=>{},onFillChange:We=kt=>{},onFillBlur:_e=()=>{},onFillFocus:jt=()=>{}})=>{let kt=Ne(String(Ue||""));const Vt=(0,E.useRef)(),je=(0,E.useRef)(),[Nt,st]=(0,E.useState)(""),[ae,te]=(0,E.useState)("office"),[ee,oe]=(0,E.useState)([]),se=(0,E.useRef)("a"+(0,tt.Z)()),ne={},pe=ct=>/<style[\s\S]*?>/i.test(ct||""),xe=(ct,qt,Ht)=>{const Fe=document.createElement(ct===Rt?"input":"textarea");Fe.style.width="100%",Fe.style.height=ct===Rt?"40px":"151px",Fe.rows=5,Fe.spellcheck=!1,Fe.name="edu-program-fill",Fe.placeholder="\u8BF7\u8F93\u5165",Fe.dataset.id=qt;const it=Object.keys(ne).length;return ne[it]=Fe,`<span class="edu-program-fill-wrap ${ct===Rt?"":"show"}" style="width:${ct===Rt?"600px":"100%"}" title=${Ht||""}><span>${Fe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ut(ct){return ct=ct.replace(/!\[.*?\]\(.*?\)/g,""),ct=ct.replace(/\[.*?\]\(.*?\)/g,""),ct=ct.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ct=ct.replace(/<embed.*?>/g,""),ct=ct.replace(/<img.*?>/g,""),ct=ct.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ct=ct.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ct=ct.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ct=ct.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ct}const Ie=ct=>!Je&&pe(kt)?ct:ct.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(qt,Ht){let Fe=Ht.replace(/(\n|\r)/g,"").split("}"),it=[];return Fe.map(Xe=>{Xe!=""&&it.push(`.${se.current} ${Xe}`)}),`<style>${it.join("}")}</style>`}),Ve=(0,E.useMemo)(()=>{try{const Fe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,it=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Xe=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,St=/\(\/attachments\/download\//g;kt=kt.replace(St,"("+Pe.Z.API_SERVER+"/attachments/download/").replace(Fe,"("+Pe.Z.API_SERVER+"/api/attachments/").replace(it,'"'+Pe.Z.API_SERVER+"/api/attachments/").replace(Xe,'"'+Pe.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Vt.current.style.display="none"}catch(Fe){}if(ce){let Fe=-1;return kt=kt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(it,Xe,St){var De;return++Fe,xe(it,Fe,(De=xt==null?void 0:xt[Fe])==null?void 0:De.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ie(kt||"")}</pre>`}let ct=Ie(kt);ct=(0,ge.ZP)(ct);const qt=(0,ge.ez)();kt.match(/\[TOC\]/)&&(ct=ct.replace("<p>[TOC]</p>",(0,ge.Qv)()),(0,ge.Iy)()),ct=ct.replace(/(__special_katext_id_\d+__)/g,(Fe,it)=>{const{type:Xe,expression:St}=qt[it];return(0,Te.renderToString)(ot(St)||"",{displayMode:Xe==="block",throwOnError:!1,output:"html"})}),ct=ct.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Ht=document.createElement("div");if(Ht.innerHTML=ct,Je)return Ht.innerText;if(me){const Fe=me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Jt(Ht,Fe),Ht.innerHTML}return setTimeout(()=>Pt(),500),Ht.innerHTML},[kt,me]);(0,E.useEffect)(()=>{Yt.current&&Yt.current.querySelectorAll(["input","textarea"]).forEach(qt=>{qt.oninput=ht,qt.onblur=Dt,qt.onfocus=Ot})},[ee]),(0,E.useEffect)(()=>{var ct,qt,Ht,Fe,it;if(xt!=null&&xt.length)try{const Xe=Yt.current.querySelectorAll(".edu-program-fill-score"),St=Yt.current.querySelectorAll('[name="edu-program-fill"]');for(const[De,qe]of St.entries())qe.value=((ct=xt==null?void 0:xt[De])==null?void 0:ct.value)||"",((qt=xt==null?void 0:xt[De])==null?void 0:qt.type)==="warning"?qe.className="program-fill-warning":((Ht=xt==null?void 0:xt[De])==null?void 0:Ht.type)==="success"?qe.className="program-fill-success":qe.className="";for(const[De,qe]of Xe.entries())qe.innerHTML=(Fe=xt==null?void 0:xt[De])!=null&&Fe.score?`${(it=xt==null?void 0:xt[De])==null?void 0:it.score}\u5206`:"";oe(xt)}catch(Xe){console.log(Xe,"error")}},[xt]);const ht=ct=>{ee[ct.target.dataset.id]=ee[ct.target.dataset.id]||{},ee[ct.target.dataset.id].value=ct.target.value,oe([...ee]),We(ee,ct.target.dataset.id)},Dt=ct=>{ee[ct.target.dataset.id]=ee[ct.target.dataset.id]||{},ee[ct.target.dataset.id].value=ct.target.value,oe([...ee]),_e(ee,ct.target.dataset.id)},Ot=ct=>{ee[ct.target.dataset.id]=ee[ct.target.dataset.id]||{},ee[ct.target.dataset.id].value=ct.target.value,oe([...ee]),jt(ee,ct.target.dataset.id)};function Jt(ct,qt){return ct.childNodes.forEach(Ht=>{var Fe;if(Ht.childNodes.length>0)Jt(Ht,qt);else if(Ht.nodeName!=="IMG")if(Ht.innerHTML)Ht.innerHTML=(Fe=Ht.innerHTML)==null?void 0:Fe.replace(new RegExp(qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const it=document.createElement("span");it.innerHTML=Ht.textContent.replace(new RegExp(qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ht.replaceWith(it)}})}const Yt=(0,E.useRef)();ge.jb.WebkitLineClamp=ke,ke&&(Me=pt(pt({},Me),ge.jb));function Ut(ct){let qt=ct.target;if(qt.tagName.toUpperCase()==="A"){let Ht=qt.getAttribute("href");if(Ht.indexOf("office")>-1)ct.preventDefault(),st(Ht),te("office");else if(Ht.indexOf("application/pdf")>-1)ct.preventDefault(),st(Ht),te("pdf");else if(Ht.indexOf("text/html")>-1)ct.preventDefault(),st(Ht),te("html");else if(Ht.startsWith("#")){ct.preventDefault();let Fe=document.getElementById(Ht.replace("#",""));Fe&&Fe.scrollIntoView(!0)}}}const Pt=()=>{var ct;const qt=(ct=Yt.current)==null?void 0:ct.querySelectorAll("video");qt==null||qt.forEach(Ht=>{if(Ht.oncontextmenu=()=>!1,Ht.src.indexOf(".m3u8")>-1&&!Ht.canPlayType("application/vnd.apple.mpegurl")){if(Ee.ZP.isSupported()){var Fe=new Ee.ZP;Fe.loadSource(Ht.src),Fe.attachMedia(Ht)}}})};(0,E.useEffect)(()=>{if(Yt.current&&Ve&&Ve.match(gt)&&window.PR.prettyPrint(),Yt.current)return Yt.current.addEventListener("click",Ut),()=>{var ct;(ct=Yt.current)==null||ct.removeEventListener("click",Ut),(0,ge.AL)(),(0,ge.Iy)()}},[Ve,Yt.current,Ut]);const Et=ct=>{ct.target.nodeName==="IMG"&&ct.target.className.indexOf("draw-flowchart")>-1?(Vt.current.style.zIndex=1,Vt.current.style.display="flex",Vt.current.style.width=ct.target.clientWidth+"px",Vt.current.style.height=ct.target.clientHeight+"px",Vt.current.style.top=ct.target.offsetTop+"px",Vt.current.style.left=ct.target.offsetLeft+"px",ct.target.id&&(je.current=ct.target.id)):Vt.current.style.display="none"},mt=()=>{Vt.current.style.display="none"};return(0,E.useEffect)(()=>{var ct;const qt=Ht=>{Ht.preventDefault(),Ht.clipboardData.setData("text",window.getSelection().toString())};return(ct=Yt.current)==null||ct.addEventListener("copy",qt),()=>{var Ht;(Ht=Yt.current)==null||Ht.removeEventListener("copy",qt)}},[Yt.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:mt},Je&&E.createElement("div",{ref:Yt,className:`${Re.mdBody} `},Ve),!Je&&!pe(Ve)&&E.createElement("div",{ref:Yt,style:pt({},Me),onMouseOver:Et,className:`${ue||""} ${Mt?"disabled-fill":""} markdown-body ${Re.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ve}}),!Je&&pe(Ve)&&E.createElement(Ce,{html:Ve}),E.createElement("div",{ref:Vt,className:`${Re.button} ${Ze?"":Re.previewFlowChart}`},E.createElement(we.Z,null,E.createElement(he.ZP,{onClick:()=>{Ze?ve(je.current):(st(je.current),te("flowChart"))}},Ze?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(Se.Z,{close:!0,data:Nt,type:Nt!=null&&Nt.length?ae:"",style:pt({},ft),onClose:()=>st("")}))}},93620:function(tn,_t,re){"use strict";re.d(_t,{h:function(){return wt}});var E=re(59301),lt=re(82326),ge=re(28284),Ye=re(7939),Ee=re(89780),Pe=re.n(Ee),Ae=re(33515),Te=re(75620),we=Object.defineProperty,he=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ce=(rt,pt,Qe)=>pt in rt?we(rt,pt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):rt[pt]=Qe,Ne=(rt,pt)=>{for(var Qe in pt||(pt={}))dt.call(pt,Qe)&&Ce(rt,Qe,pt[Qe]);if(Se)for(var Qe of Se(pt))$e.call(pt,Qe)&&Ce(rt,Qe,pt[Qe]);return rt},Re=(rt,pt)=>he(rt,tt(pt));const et=lt.default.Option,nt={labelCol:{span:4},wrapperCol:{span:20}},Lt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};_t.Z=({callback:rt,onCancel:pt})=>{const[Qe,Rt]=(0,E.useState)("python");function gt(It){Rt(Lt[It][1])}function ot(It){rt(It)}return E.createElement(ge.default,Re(Ne({},nt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ot,style:{width:500}}),E.createElement(ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(lt.default,{getPopupContainer:It=>It.parentNode,onChange:gt},Object.keys(Lt).map(It=>E.createElement(et,{key:It,value:It},Lt[It][0])))),E.createElement(ge.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(wt,{mode:Qe})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Ye.ZP,{type:"ghost",onClick:pt},"\u53D6\u6D88")))};function wt({value:rt,onChange:pt,mode:Qe,options:Rt={}}){const gt=(0,E.useRef)(),[ot,It]=(0,E.useState)();return(0,E.useEffect)(()=>{if(ot){let Be=function(Ue){const Ze=Ue.getValue();pt&&pt(Ze)};return ot.on("change",Be),()=>{ot.off("change",Be)}}},[ot,pt]),(0,E.useEffect)(()=>{ot&&ot.setOption("mode",Qe)},[ot,Qe]),(0,E.useEffect)(()=>{ot&&(rt!==ot.getValue()||rt==="")&&setTimeout(()=>{ot.setValue(rt||"")},300)},[ot,rt]),(0,E.useEffect)(()=>{if(gt.current&&!ot){const Be=Pe().fromTextArea(gt.current,Ne({mode:Qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Rt));It(Be)}},[gt.current,ot]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:gt}))}},46127:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return an}});var E=re(59301),lt=re(51429),ge=re(89780),Ye=re.n(ge),Ee=re(76374),Pe=re(33515),Ae=re(6313),Te=re(25717),we=re(99498),he=re(25419),tt=re(67549),Se=re(84660),dt=({value:Kt="",className:Tt,showTextOnly:At,showLines:Ft,style:Qt={}})=>{const hn=(0,E.useMemo)(()=>"",[Kt]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:hn}}))},$e=Object.defineProperty,Ce=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Lt=(Kt,Tt,At)=>Tt in Kt?$e(Kt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Kt[Tt]=At,wt=(Kt,Tt)=>{for(var At in Tt||(Tt={}))et.call(Tt,At)&&Lt(Kt,At,Tt[At]);if(Re)for(var At of Re(Tt))nt.call(Tt,At)&&Lt(Kt,At,Tt[At]);return Kt},rt=(Kt,Tt)=>Ce(Kt,Ne(Tt));let pt=[{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 Qe({onActionCallback:Kt,title:Tt,icon:At,actionName:Ft,className:Qt="",children:hn}){function pn(){Kt(Ft)}return E.createElement("a",{title:Tt,className:Qt,onClick:pn},E.createElement("i",{className:`${At}`}),hn)}var Rt=({watch:Kt,showNullButton:Tt,showNullProgramButton:At,onActionCallback:Ft,fullScreen:Qt,insertTemp:hn,hidetoolBar:pn,extraUse:sn})=>{const un=[...pt,{title:`${Kt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Kt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!pn&&un.map((bn,On)=>E.createElement("li",{key:On},bn.actionName?E.createElement(Qe,rt(wt({},bn),{onActionCallback:Ft})):E.createElement("span",{className:"v-line"}))),Tt?E.createElement("li",null,E.createElement(Qe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ft},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,At?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(Qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ft},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(Qe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ft},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,hn&&E.createElement("li",null,E.createElement(Qe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${hn}`,onActionCallback:Ft},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),sn&&E.createElement("li",null,sn),E.createElement("li",{className:"btn-full-screen"},E.createElement(Qe,{icon:`${Qt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Qt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ft})))},gt=re(97450),ot=re(28284),It=re(37568),Be=re(7939),Ue=Object.defineProperty,Ze=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ft=(Kt,Tt,At)=>Tt in Kt?Ue(Kt,Tt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Kt[Tt]=At,me=(Kt,Tt)=>{for(var At in Tt||(Tt={}))ke.call(Tt,At)&&ft(Kt,At,Tt[At]);if(Je)for(var At of Je(Tt))Me.call(Tt,At)&&ft(Kt,At,Tt[At]);return Kt},ce=(Kt,Tt)=>Ze(Kt,ue(Tt));const ze={labelCol:{span:4},wrapperCol:{span:20}};var Mt=({callback:Kt,onCancel:Tt})=>{function At(Ft){Kt(Ft)}return E.createElement(ot.default,ce(me({},ze),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:At,style:{width:500}}),E.createElement(ot.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(It.default,null)),E.createElement(ot.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(It.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Be.ZP,{type:"ghost",onClick:Tt},"\u53D6\u6D88")))},xt=re(93620),ve=re(90519),We=re(62957),_e=re(77019),jt=re(16202),kt=re(59301),Vt=({callback:Kt,onCancel:Tt})=>{const At=document.createElement("canvas"),Ft=At.getContext("2d");At.width=1e3,At.height=800,Ft.fillStyle="#ffffff",Ft.fillRect(0,0,At.width,At.height);const Qt=At.toDataURL("image/png");return kt.createElement(We.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},kt.createElement(_e.Z,{style:{height:"100vh"}},kt.createElement(jt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Qt,visible:!0,title:String(Date.now())},onOk:hn=>{Kt({src:hn.url})},onClose:Tt})))},je=re(36207),Nt=re(5269),st=re(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=re(59301),oe=(0,E.forwardRef)(({onCancel:Kt,editImgId:Tt,callback:At},Ft)=>{let Qt=(0,E.useRef)(),hn=(0,E.useRef)(),pn=(0,E.useRef)(),sn=(0,E.useRef)(!1);const un=(0,E.useRef)(!1);console.log("ref:",Ft);const[bn,On]=(0,E.useState)(0),[vt,Gt]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{On(1)},[]),(0,E.useImperativeHandle)(Ft,()=>({setHeight:Gt})),te.createElement("div",{ref:un,className:"body-overflow-initial"},te.createElement(je.Z,{width:"100vw",height:vt,footer:null,closable:!0,placement:"bottom",open:!!bn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(cn=>{At({src:`/api/attachments/${cn}`,id:cn})})},title:te.createElement(_e.Z,{align:"middle"},te.createElement(Nt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Nt.Z,{onClick:()=>{Gt(vt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Nt.Z,{onClick:()=>{window.saveDrawData(cn=>{if(cn===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}}),At({src:`/api/attachments/${cn}`,id:cn,disabledClose:!0})})}},te.createElement(Be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Tt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:hn})))}),se=re(14661),ne=re(47889),pe=re(4875);const xe=ne.ZP.Group,ut={margin:"0 8px"};var Ie=({callback:Kt,onCancel:Tt})=>{function At(Ft){Kt(Ft)}return E.createElement(ot.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:At},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:ut},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:ut},"\u884C\u6570"),E.createElement(ot.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(pe.Z,null)),E.createElement("span",{style:ut},"\u5217\u6570"),E.createElement(ot.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(pe.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:ut},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(ot.default.Item,{name:"align"},E.createElement(xe,null,E.createElement(ne.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(ne.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(ne.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(ne.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Be.ZP,{type:"ghost",onClick:Tt},"\u53D6\u6D88")))},Ve=re(58755),ht=re(75964),Dt=re.n(ht),Jt=(0,E.forwardRef)(({use3d:Kt,width:Tt,height:At,callback:Ft,showSaveButton:Qt},hn)=>{const pn=(0,E.useRef)(),sn=(0,E.useRef)(),[un,bn]=(0,E.useState)(!1),On=(0,E.useRef)({id:pn,appName:"graphing",width:Tt||1e3,height:At||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{sn.current=new(Dt())(On.current,!0),window.onload=function(){sn.current.inject("applet_container")}},[]);const vt=()=>{var Gt=window.ggbApplet.getPNGBase64(1,!0,72);return Ft&&Ft(Gt),Gt};return(0,E.useEffect)(()=>{On.current.appName=un?"3D":"graphing",sn.current.inject("applet_container")},[un]),(0,E.useEffect)(()=>{bn(Kt)},[Kt]),(0,E.useImperativeHandle)(hn,()=>({getImgData:vt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:pn}),E.createElement(_e.Z,{align:"middle"},E.createElement(Nt.Z,{flex:1},E.createElement(Ve.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:un,onChange:Gt=>bn(Gt)})),E.createElement(Nt.Z,null,E.createElement(Be.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Yt=re(45469);const Ut="link",Pt="upload-image",Et="add-flowchart",mt="draw-image",ct="add-flowchart",qt="code-block",Ht="add-table",Fe="------------",it={default:Fe,left:`:${Fe}`,center:`:${Fe}:`,right:`${Fe}:`};var Xe=re(2914),St=re(7408);function De(){}let qe=0;const yt=1e4,Ct="\u2581",$t="@\u2581\u2581@",rn="@\u2581@",In=`
**\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`,En=["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 nn(Kt){return/^\d+$/.test(Kt)?`${Kt}px`:Kt}const ln=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tn={[ln+"-B"]:"bold",[ln+"-I"]:"italic"},xn={[Ut]:"\u6DFB\u52A0\u94FE\u63A5",[qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Pt]:"\u6DFB\u52A0\u56FE\u7247",[mt]:"\u6DFB\u52A0\u753B\u56FE",[Et]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ht]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var an=({defaultValue:Kt="",onChange:Tt,width:At="100%",height:Ft=400,miniToolbar:Qt=!1,isFocus:hn=!1,watch:pn,insertTemp:sn,mode:un="markdown",id:bn="markdown-editor-id",showResizeBar:On=!1,noStorage:vt=!1,showNullButton:Gt=!1,showNullProgramButton:cn=!1,hidetoolBar:fn=!1,fullScreen:He=!1,onBlur:Ge,onCMBeforeChange:ye,onFullScreen:Le,className:Oe="",disablePaste:Ke=!1,disabled:Bt=!1,disabledFill:on=!1,placeholder:mn="",values:Sn="",extraUse:en,onAddBlank:Wt})=>{const[zt,yn]=(0,E.useState)(null),[Ln,kn]=(0,E.useState)(Kt),[Mn,Xn]=(0,E.useState)(pn),[Qn,Jn]=(0,E.useState)(He),[$n,zn]=(0,E.useState)(""),[Zn,Un]=(0,E.useState)(0),[ur,qn]=(0,E.useState)(Ft),[lr,ir]=(0,E.useState)(!1),[er,tr]=(0,E.useState)(0),[gr,mr]=(0,E.useState)(0),cr=(0,E.useRef)(),vr=(0,E.useRef)(),Cr=(0,E.useRef)(),or=(0,E.useRef)(),dr=(0,E.useRef)(),Gn=(0,E.useRef)(),Sr=(0,lt.useDispatch)();(0,E.useEffect)(()=>{const wn=window.scrollY||window.pageYOffset;kn(Sn),zt==null||zt.setValue(Sn),window.scrollTo(0,wn)},[Sn]),(0,E.useEffect)(()=>{Le==null||Le(Qn)},[Qn]),(0,E.useEffect)(()=>{if(cr.current){let wn=function(Rn,Fn){var rr;if(Ke){Fn.preventDefault();return}const Pr=Fn.clipboardData;if(Pr){const br=Pr.types.toString(),Ar=Pr.items;if(br==="Files"||Pr.types.indexOf("Files")>-1){if(Fn.preventDefault(),un=="stex")return;try{let Or=Ar[1];((rr=Ar[0])==null?void 0:rr.kind)==="file"&&(Or=Ar[0]);const kr=Or.getAsFile(),Hr=kr.name.split(".").pop();(0,ve.I)(kr,Mr=>{var $r,ti,Oi;Mr.id?(($r=kr==null?void 0:kr.type)==null?void 0:$r.indexOf("image"))>-1?Pn.replaceSelection(`<img width="100%" src="/api/attachments/${Mr.id}?type=${Mr.content_type})" alt="" />`):((ti=kr==null?void 0:kr.type)==null?void 0:ti.indexOf("video"))>-1?Pn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Mr.id}"></video>`):((Oi=kr==null?void 0:kr.type)==null?void 0:Oi.indexOf("pdf"))>-1?Pn.replaceSelection(`<a href="/api/attachments/${Mr.id}?type=${kr.type}&disposition=inline" target="_blank">${kr.name}</a>`):En.includes(Hr)?Pn.replaceSelection(`<a href="/api/attachments/${Mr.id}?type=office&disposition=inline" target="_blank">${kr.name}</a>`):Pn.replaceSelection(`[${kr.name}](/api/attachments/${Mr.id}?type=${Mr.content_type})`):(Mr==null?void 0:Mr.status)===401&&(document.location.href="/user/login")})}catch(Or){st.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pn=Ye().fromTextArea(cr.current,{mode:un,lineNumbers:!Qt,lineWrapping:!0,value:Kt,autoCloseTags:!0,autoCloseBrackets:!0});return Pn.on("keyup",function(Rn,Fn){Fn.keyCode===8&&(Rn.getValue()==""?Pn.setOption("placeholder",mn):Pn.setOption("placeholder",null))}),Pn.on("keydown",function(Rn,Fn){if(Fn.keyCode===8){var rr=Wr(Rn);rr&&Fn.preventDefault()}}),hn&&Pn.focus(),Pn.on("paste",wn),Bt&&Pn.on("beforeChange",function(Rn,Fn){(Fn.origin==="paste"||Fn.origin==="+input")&&Fn.cancel()}),yn(Pn),()=>{Pn.off("paste",wn)}}},[]);const Rr=(0,E.useCallback)(()=>{if(vr.current)try{}catch(wn){console.log(wn,"---- to set md editor body height")}},[ur,vr,Qn]);(0,E.useEffect)(()=>{function wn(){let Pn=new Ee.Z(Rn=>{for(let Fn of Rn)(Fn.target.offsetHeight>0||Fn.target.offsetWidth>0)&&(Rr(),zt.setSize("100%","100%"),zt.refresh())});return Pn.observe(cr.current.parentElement),Pn}if(zt){const Pn=wn();return()=>{var Rn,Fn;(Rn=cr.current)!=null&&Rn.parentElement&&Pn.unobserve((Fn=cr.current)==null?void 0:Fn.parentElement)}}},[zt,Rr]),(0,E.useEffect)(()=>{if(zt){let wn=[];for(const[Pn,Rn]of Object.entries(Tn)){let Fn={[Pn]:()=>{Er(Rn)}};wn.push(Fn),zt.addKeyMap(Fn)}return()=>{for(let Pn of wn)zt.removeKeyMap(Pn)}}},[zt]),(0,E.useEffect)(()=>{He!==Qn&&Jn(He)},[He]),(0,Xe.Z)(()=>{if(!vt&&Zn>0){let wn=new Date().getTime(),Pn=window.sessionStorage.getItem(bn);wn>=Zn+yt&&(!Pn||Pn!==Ln)&&(window.sessionStorage.setItem(bn,Ln),ir(!0))}},yt),(0,E.useEffect)(()=>{Xn(pn)},[zt,pn]),(0,E.useEffect)(()=>{zt&&hn&&zt.focus()},[zt,hn]),(0,E.useEffect)(()=>{if(Mn&&zt){let wn=function(Rn){let Fn=Rn.target;if(or.current){let rr=Fn.scrollTop/Fn.scrollHeight;or.current.scrollTop=or.current.scrollHeight*rr}};const Pn=zt.getScrollerElement();return Pn.addEventListener("scroll",wn),()=>{Pn.removeEventListener("scroll",wn)}}},[zt,Mn]),(0,E.useEffect)(()=>{if(zt&&ye){let wn=function(Pn,Rn){ye(Pn,Rn)};return zt.on("beforeChange",wn),()=>{zt.off("beforeChange",wn)}}},[zt,ye]),(0,E.useEffect)(()=>{if(zt&&Ge){let wn=function(){Ge(zt.getValue())};return zt.on("blur",wn),()=>{zt.off("blur",wn)}}},[zt,Ge]);function Wr(wn,Pn){var Rn=wn.getDoc(),Fn=Rn.getCursor(),rr=Rn.getLine(Fn.line),Pr=rr.charAt(Fn.ch-1),br=rr.lastIndexOf("@\u2581@",Fn.ch),Ar=rr.lastIndexOf("@\u2581\u2581@",Fn.ch),Or=br>Ar?br:Ar,kr=br>Ar?3:4;if($t.indexOf(Pr)===-1)return null;if(console.log("change1:",Pn,wn,rr,Fn,Or,br,Ar,Pr),Or>=0&&Fn.ch-Or<5){var Hr=Or+kr;return Rn.replaceRange("",{line:Fn.line,ch:Or},{line:Fn.line,ch:Hr}),{line:Fn.line,ch:Hr}}return null}(0,E.useEffect)(()=>{if(zt){let wn=function(Pn,Rn){const Fn=Pn.getValue();kn(Fn),Un(new Date().getTime()),Pn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Tt&&(cn?Tt(Fn,An(Fn)):Tt(Fn))};return zt.on("change",wn),()=>{zt.off("change",wn)}}},[zt,Tt]),(0,E.useEffect)(()=>{if(zt)if(Kt==null)zt.setValue(""),kn("");else{const wn=window.scrollY||window.pageYOffset;Kt!==zt.getValue()&&(zt.setValue(Kt),kn(Kt),zt.setCursor(Bt?1:zt.lineCount(),0),window.scrollTo(0,wn))}},[zt,Kt]);const Er=(0,E.useCallback)(wn=>{const Pn=zt.getCursor(),Rn=zt.getSelection();let Fn=Rn.split(`
`);switch(wn){case"bold":return zt.replaceSelection("**"+Rn+"**"),Rn===""&&zt.setCursor(Pn.line,Pn.ch+2),zt.focus();case"italic":return zt.replaceSelection("*"+Rn+"*"),Rn===""&&zt.setCursor(Pn.line,Pn.ch+1),zt.focus();case"code":return zt.replaceSelection("`"+Rn+"`"),Rn===""&&zt.setCursor(Pn.line,Pn.ch+1),zt.focus();case"inline-latex":return(0,St.Ye)(Sr)?void 0:(zn("inline-latex"),zt.focus());case"latex":return zt.replaceSelection("```latex\n"+Rn+"\n```"),zt.setCursor(Pn.line+1,Rn.length+1),zt.focus();case"line-break":return zt.replaceSelection(`<br/>
`),zt.focus();case"list-ul":return Rn===""?zt.replaceSelection("- "+Rn):zt.replaceSelection(Fn.map(rr=>rr===""?"":`- ${rr}`).join(`
`)),zt.focus();case"list-ol":return Rn===""?zt.replaceSelection("1. "+Rn):zt.replaceSelection(Fn.map((rr,Pr)=>rr===""?"":`${Pr+1}. ${rr}`).join(`
`)),zt.focus();case"add-null-ch":Wt==null||Wt();return;case"add-signal":return Rn===""&&zt.setCursor(Pn.line,Pn.ch),zt.replaceSelection(rn),zt.focus();case"add-multiple":return Rn===""&&zt.setCursor(Pn.line,Pn.ch),zt.replaceSelection($t),zt.focus();case"inster-template-1":return Rn===""&&zt.setCursor(Pn.line,Pn.ch),zt.replaceSelection(In),zt.focus();case"eraser":return zt.setValue(""),zt.focus();case"trigger-watch":return Xn(!Mn),zt.focus();case"trigger-full-screen":return Jn(!Qn),zt.focus();case Ut:zn(Ut);return;case qt:zn(qt);return;case Pt:zn(Pt);return;case mt:zn(mt);return;case"maths-latex":if((0,St.Ye)(Sr))return;zn("maths-latex");return;case Et:dr.current="",sessionStorage.removeItem("file_id"),zn(Et);return;case Ht:zn(Ht);return;default:throw new Error}},[zt,Mn,Qn]),Lr=(0,E.useCallback)((wn,Pn)=>{var Rn,Fn,rr,Pr,br,Ar;wn!=null&&wn.disabledClose||zn("");const{src:Or,alt:kr,id:Hr}=wn||{};switch($n){case Ut:const{title:Fi,link:xi}=wn;return zt.replaceSelection(`[${Fi}](${xi})`),zt.focus();case qt:const{language:mi,content:Xi}=wn;return zt.replaceSelection(["```"+mi,Xi,"```"].join(`
`)),zt.focus();case"maths-latex":for(var Mr=atob(wn),$r=new Uint8Array(Mr.length),ti=0;ti<Mr.length;ti++)$r[ti]=Mr.charCodeAt(ti);var Oi=new Blob([$r],{type:"image/png"});(0,ve.I)(Oi,vi=>{vi.id?zt.replaceSelection(`![,](/api/attachments/${vi.id}?type=${vi.content_type})`):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,St.Ye)(Sr))return;zt.replaceSelection("`$$"+wn+"$$`");break;case ct:if(!Hr)return;zt.getValue().indexOf(Or)===-1?zt.replaceSelection(`<center><img id="${Hr}" width="80%" src="${Or}" class="draw-flowchart" alt="${kr||""}" /></center>`):document.getElementById(Hr).src=se.Z.API_SERVER+Or+"?t="+Date.now();break;case Pt:case mt:const Tr=Pn,to=(rr=(Fn=(Rn=Tr==null?void 0:Tr.name)==null?void 0:Rn.split("."))==null?void 0:Fn.pop)==null?void 0:rr.call(Fn);return((Pr=Tr==null?void 0:Tr.type)==null?void 0:Pr.indexOf("image"))>-1||!(Tr!=null&&Tr.type)?Tr!=null&&Tr.align||Tr!=null&&Tr.width?zt.replaceSelection(`<p style="text-align:${Tr.align||"initial"}"><img width="${Tr.width?Tr.width+"%":"initial"}" src="${Or}" alt="${kr||""}" /></p>`):zt.replaceSelection(`<img width="100%" src="${Or}" alt="${kr||""}" />`):((br=Tr==null?void 0:Tr.type)==null?void 0:br.indexOf("video"))>-1?zt.replaceSelection(`<video width="100%" controls src="${Or}"></video>`):((Ar=Tr==null?void 0:Tr.type)==null?void 0:Ar.indexOf("pdf"))>-1?zt.replaceSelection(`<a href="${Or}?type=${Tr.type}&disposition=inline" target="_blank">${Tr.name}</a>`):En.includes(to)?zt.replaceSelection(`<a href="${Or}?type=office&disposition=inline" target="_blank">${Tr.name}</a>`):zt.replaceSelection(`[${Tr.name}](${Or})`),zt.focus();case Ht:const{row:ni,col:Ti,align:ao}=wn;let Yi=`
`;for(let vi=0;vi<ni;vi++){let Li=[],Vr=[];for(let zi=0;zi<Ti;zi++)vi===1&&Vr.push(it[ao]),Li.push(" ");vi===1&&(Yi+=`| ${Vr.join(" | ")} |
`),Yi+=`| ${Li.join(Ti===1?"":" | ")} |
`}return zt.replaceSelection(Yi+`
`),zt.focus();default:throw new Error}},[zt,$n]),Ir=(0,E.useMemo)(()=>{switch($n){case Ut:return E.createElement(Mt,{callback:Lr,onCancel:Br});case qt:return E.createElement(xt.Z,{callback:Lr,onCancel:Br});case Pt:return E.createElement(ve.Z,{callback:Lr,onCancel:Br});case Et:return E.createElement(oe,{editImgId:dr.current,callback:Lr,onCancel:Br});case Ht:return E.createElement(Ie,{callback:Lr,onCancel:Br});case"maths-latex":return E.createElement(Jt,{showSaveButton:!0,callback:Lr});case"inline-latex":return E.createElement(Yt.Z,{showSaveButton:!0,callback:Lr});default:return null}},[$n]);function Br(){zn("")}(0,E.useEffect)(()=>{if(Cr.current){let wn=function(br){rr=!0,Pr=br.pageY},Pn=function(){rr=!1},Rn=function(br){if(rr){let Ar=br.pageY-Pr;Ar<0&&(Ar=0),Ar>300&&(Ar=300);let Or=Ft+Ar+"px";qn(Or)}},Fn=Cr.current,rr=!1,Pr=0;return Fn.addEventListener("mousedown",wn),document.addEventListener("mousemove",Rn),document.addEventListener("mouseup",Pn),()=>{Fn.removeEventListener("mousedown",wn),document.removeEventListener("mousemove",Rn),document.removeEventListener("mouseup",Pn)}}},[zt,Cr]),(0,E.useEffect)(()=>{qn(Ft)},[Ft]);const zr=nn(At),fr=nn(ur),Yn={width:zr,height:fr},Cn=(0,E.useMemo)(()=>{if(Zn){let wn=new Date(Zn),Pn=wn.getHours(),Rn=wn.getMinutes(),Fn=wn.getSeconds();return Pn=Pn<10?"0"+Pn:Pn,Rn=Rn<10?"0"+Rn:Rn,Fn=Fn<10?"0"+Fn:Fn,`${Pn}:${Rn}:${Fn}`}return 0},[Zn]),An=wn=>{const Pn=[];if(cn){let Rn=-1;wn=wn.replace(/(@▁▁@|@▁@)/g,function(Fn,rr,Pr){Pn.push({multiLine:Fn!==rn})})}return Pn};function Dn(){window.sessionStorage.removeItem(bn),ir(!1),Un(0)}function dn(){ir(!1),Un(0),zt.setValue(window.sessionStorage.getItem(bn))}(0,E.useEffect)(()=>{xn[$n]&&$n!==mt&&$n!==Et&&setTimeout(()=>{const wn=document.getElementsByClassName("markdown-popup-form")[0],Pn=window.innerWidth/2-wn.offsetWidth/2,Rn=window.innerHeight/2-wn.offsetHeight/2;tr(Pn),mr(Rn)},0)},[$n]);const Hn=wn=>{wn.preventDefault();const Pn=wn.clientX-er,Rn=wn.clientY-gr;document.body.onmousemove=Fn=>{let rr=Fn.clientX-Pn,Pr=Fn.clientY-Rn;const br=document.getElementsByClassName("markdown-popup-form")[0],Ar=window.innerWidth-br.offsetWidth,Or=window.innerHeight-br.offsetHeight;rr=Math.max(0,Math.min(rr,Ar)),Pr=Math.max(0,Math.min(Pr,Or)),_n(Fn.clientX,Fn.clientY,Pn,Rn)&&(tr(rr),mr(Pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},_n=(wn,Pn,Rn,Fn)=>{const rr=document.body.clientHeight,Pr=document.body.clientWidth;return wn<20&&Rn>wn||wn>Pr-20&&Rn<wn||Pn<20&&Fn>Pn||Pn>rr-20&&Fn<Pn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:vr},E.createElement("div",{className:`markdown-editor-container ${Oe} ${Mn?"on-preview":""} ${Qt?"mini":""} ${Qn?"full-screen":""}`,style:Yn},E.createElement(Rt,{insertTemp:sn,watch:Mn,fullScreen:Qn,showNullButton:Gt,showNullProgramButton:cn,onActionCallback:Er,hidetoolBar:fn,extraUse:en}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:cr,placeholder:mn})),Mn?E.createElement("div",{ref:or,className:"preview-container"},un==="stex"&&E.createElement(dt,{value:Ln}),un!=="stex"&&E.createElement(Se.Z,{edit:!0,disabledFill:on,showProgramFill:cn,value:Ln,openEditor:wn=>{var Pn;dr.current=wn,(Pn=Gn.current)==null||Pn.setHeight("100vh"),setTimeout(()=>{zn("add-flowchart")},150)}})):null))),On?E.createElement("a",{ref:Cr,className:"editor-resize"}):null,$n===mt&&E.createElement(Vt,{callback:Lr,onCancel:Br}),$n===Et&&E.createElement(oe,{ref:Gn,editImgId:dr.current,callback:Lr,onCancel:Br}),E.createElement(gt.Z,null,xn[$n]&&$n!==mt&&$n!==Et?E.createElement(We.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:gr},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Hn},xn[$n]),open:!0,onCancel:Br,footer:null,destroyOnClose:!0,width:$n===Et?"1200px":null,height:$n===Et?"80vh":null,className:"markdown-popup-form"},Ir):null))}},90519:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return pt},I:function(){return Rt}});var E=re(28284),lt=re(6767),ge=re(37568),Ye=re(44104),Ee=re(4875),Pe=re(47889),Ae=re(7939),Te=re(83498),we=re(59301),he=re(59301),tt=Object.defineProperty,Se=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Re=(gt,ot,It)=>ot in gt?tt(gt,ot,{enumerable:!0,configurable:!0,writable:!0,value:It}):gt[ot]=It,et=(gt,ot)=>{for(var It in ot||(ot={}))Ce.call(ot,It)&&Re(gt,It,ot[It]);if($e)for(var It of $e(ot))Ne.call(ot,It)&&Re(gt,It,ot[It]);return gt},nt=(gt,ot)=>Se(gt,dt(ot));const{useForm:Lt}=E.default,wt={width:280,marginRight:10},rt={labelCol:{span:5},wrapperCol:{span:19}};var pt=({callback:gt,onCancel:ot})=>{const[It]=Lt();let Be=(0,we.useRef)();function Ue(Je){Be.current.width=It.getFieldValue("width"),Be.current.align=It.getFieldValue("align"),gt(Je,Be.current)}function Ze(Je,ke){if(Je.status===-1){lt.ZP.error(Je.message);return}It.setFieldsValue({src:`/api/attachments/${Je.id}`,type:ke.type})}function ue(Je){let ke=Je.target.files[0];Be.current=ke,Rt(ke,Ze)}return he.createElement(E.default,nt(et({form:It},rt),{className:"upload-image-panel",onFinish:Ue,style:{width:470,overflow:"hidden"}}),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(ge.default,{style:wt})),he.createElement(Qe,{onFileChange:ue}))),he.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ge.default,{style:{width:264}})),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(Ye.Z,null,he.createElement(E.default.Item,{name:"width",style:{margin:0}},he.createElement(Ee.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),he.createElement("aside",null,he.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Ae.ZP,{type:"default",onClick:ot},"\u53D6\u6D88"))))};function Qe({onFileChange:gt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:gt}))}function Rt(gt,ot){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");let It=new FormData;It.append("editormd-image-file",gt),It.append("file_param_name","editormd-image-file"),It.append("byxhr","true");var Be=new window.XMLHttpRequest;Be.withCredentials=!0,Be.addEventListener("load",function(Ue){ot(JSON.parse(Ue.target.responseText),gt)},!1),Be.addEventListener("error",function(Ue){console.error(Ue)},!1),Be.open("POST",`${Te.KI}/api/attachments.json`),Be.send(It)}},97450:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return ge}});var E=re(59301),lt=re(4676);class ge extends E.Component{constructor(Ee){super(Ee);const Pe=window.document;this.node=Pe.createElement("div"),Pe.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,lt.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},77545:function(tn,_t,re){"use strict";re.d(_t,{SV:function(){return Vt},ZP:function(){return kt}});var E=re(59301),lt=re(76374);const ge={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"]},Ye={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(`
`)}]},Pe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Ae={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 Te=re(53184),we=re.n(Te),he=(je,Nt,st)=>new Promise((ae,te)=>{var ee=ne=>{try{se(st.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(st.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((st=st.apply(je,Nt)).next())});const tt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Se=(je,Nt,st,ae)=>{const te=Nt.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:je.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},dt=(je,Nt,st,ae)=>{je.languages.registerCompletionItemProvider(Nt,{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:[...Se(je,te,ee,se),...st.map(xe=>({label:xe,kind:je.languages.CompletionItemKind.Keyword,documentation:xe,insertText:xe,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(xe=>({label:xe.label,kind:je.languages.CompletionItemKind.Snippet,documentation:xe.content,insertText:ne.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var $e=je=>{tt.languages.forEach(Nt=>{je.languages.registerDocumentFormattingEditProvider(Nt,{provideDocumentFormattingEdits(st){return he(this,null,function*(){const ae=we()(st.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:st.getFullModelRange(),text:ae}]})}})}),dt(je,"java",Ye.keywords,Ye.quickKey),dt(je,"cpp",Ee.keywords,Ee.quickKey),dt(je,"c",ge.keywords,[]),dt(je,"python",Pe.keywords,Pe.quickKey),dt(je,"scala",Ae.keywords,Ae.quickKey)};const Ce="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,Re=(je,Nt,st)=>Nt in je?Ne(je,Nt,{enumerable:!0,configurable:!0,writable:!0,value:st}):je[Nt]=st,et=(je,Nt,st)=>Re(je,typeof Nt!="symbol"?Nt+"":Nt,st);const nt=class zs{constructor(Nt,st,ae){this.placeholder=Nt,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)}};et(nt,"ID","editor.widget.placeholderHint");var wt=nt,rt=re(96236),pt=re(6767),Qe=re(25399),Rt=re(89392),gt=re(98614),ot=re(56102),It=Object.defineProperty,Be=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ke=(je,Nt,st)=>Nt in je?It(je,Nt,{enumerable:!0,configurable:!0,writable:!0,value:st}):je[Nt]=st,Me=(je,Nt)=>{for(var st in Nt||(Nt={}))ue.call(Nt,st)&&ke(je,st,Nt[st]);if(Ze)for(var st of Ze(Nt))Je.call(Nt,st)&&ke(je,st,Nt[st]);return je},ft=(je,Nt)=>Be(je,Ue(Nt)),me=(je,Nt)=>{var st={};for(var ae in je)ue.call(je,ae)&&Nt.indexOf(ae)<0&&(st[ae]=je[ae]);if(je!=null&&Ze)for(var ae of Ze(je))Nt.indexOf(ae)<0&&Je.call(je,ae)&&(st[ae]=je[ae]);return st},ce=(je,Nt,st)=>new Promise((ae,te)=>{var ee=ne=>{try{se(st.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(st.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((st=st.apply(je,Nt)).next())});function ze(je){return/^\d+$/.test(je)?`${je}px`:je}function Mt(){}let xt=!1;const ve={"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 We(je=[]){let Nt=je;if(Array.isArray(je)){for(let st=0;st<je.length;st++){let ae=ve[je[st]];if(ae)return ae}return Nt[0]}return ve[Nt]||Nt}let _e=null;const jt=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(je){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",je)}});var kt=je=>{var Nt=je,{width:st="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:xe,isCopy:ut=!1,onSave:Ie,autoHeight:Ve=!1,forbidCopy:ht=!1,forbidCopyTips:Dt,onChange:Ot=Mt,editorDidMount:Jt=Mt,onFocus:Yt=Mt,onBreakPoint:Ut=Mt,breakPointValue:Pt=[],filename:Et="educoder.txt",errorLine:mt,errorContent:ct="",highlightLine:qt,openBreakPoint:Ht=!1,placeholder:Fe="",showMiniMap:it=!0}=Nt,Xe=me(Nt,["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 St=(0,E.useRef)(),De=(0,E.useRef)({}),qe=(0,E.useRef)(),yt=(0,E.useRef)(),Ct=(0,E.useRef)([]),$t=(0,E.useRef)(!1),rn=(0,E.useRef)(),In=(0,E.useRef)(),En=(0,E.useRef)(!1),[nn,vn]=(0,E.useState)(!1);function ln(){let vt;return St.current&&(vt=new lt.Z(Gt=>{for(let cn of Gt)(cn.target.offsetHeight>0||cn.target.offsetWidth>0)&&De.current.instance.layout()}),vt.observe(St.current)),vt}function Tn(){pt.ZP.warning({content:decodeURIComponent(Dt||Ce),key:"monaco-editor-tip"})}const xn=()=>{let vt=De.current.instance;if(te!=null&&vt&&nn){const Gt=vt.getModel();Gt&&te!==Gt.getValue()&&(xt=!0,Gt.setValue(te),vt.layout(),xt=!1)}};(0,E.useEffect)(()=>{const vt=gt.Z.subscribe("formatDocument",Gt=>{var cn;let fn=De.current.instance;(cn=fn==null?void 0:fn.getAction)==null||cn.call(fn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Gt=>{Ot(Gt)},vt},[]),(0,E.useEffect)(()=>{var vt;let Gt=De.current.instance;yt.current&&clearTimeout(yt.current),yt.current=setTimeout(()=>{xn()},500),te&&(te!=null&&te.length)&&((vt=Gt==null?void 0:Gt.updateOptions)==null||vt.call(Gt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,nn,De.current]),(0,E.useEffect)(()=>{if(mt&&De.current&&De.current.instance){let Gt=De.current.instance;Gt.changeViewZones(function(cn){var fn=document.createElement("div");fn.style.padding="10px 20px",fn.style.width="calc(100% - 20px)",fn.className="my-error-line-wrp",fn.innerHTML=ct,cn.addZone({afterLineNumber:mt||11,heightInLines:3,domNode:fn})});var vt={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}};Gt.addOverlayWidget(vt),Gt.revealPositionInCenter({lineNumber:20,column:1})}},[mt,De.current,nn]);const an=(vt="",Gt)=>{if(!vt||vt.trim()==="")return!0;const fn=De.current.instance.getModel().getLineTokens(Gt);let He=!1;for(let Ge=0;Ge<2;Ge++)fn.getStandardTokenType(Ge)===1&&(He=!0);return He};(0,E.useEffect)(()=>{var vt;const Gt=(vt=De.current)==null?void 0:vt.instance;if(Gt&&nn&&ht){const cn=Gt.onDidBlurEditorWidget(()=>{En.current=!1}),fn=Gt.onDidFocusEditorText(()=>{En.current=!0});return()=>{cn.dispose(),fn.dispose()}}},[De.current,nn,ht]),(0,E.useEffect)(()=>{var vt;if((vt=De.current)!=null&&vt.instance&&nn&&Ht){let Gt=De.current.instance,cn=Gt.getModel();if(!cn)return;(()=>{var en;let Wt=[],zt=[];const yn=cn.getAllDecorations();for(let kn of yn)kn.options.className==="highlighted-line"&&(Wt.push((en=kn==null?void 0:kn.range)==null?void 0:en.startLineNumber),zt.push(kn==null?void 0:kn.id));if(qt===Wt[0])return;cn.deltaDecorations(zt,[]);const Ln=cn.getLineCount();qt&&qt<=Ln&&(Gt.deltaDecorations([],[{range:new _e.Range(qt,1,qt,cn.getLineMaxColumn(qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Gt.revealLineInCenter(qt))})();const He=(en=!1)=>{var Wt;let zt=[],yn=[];const Ln=cn.getAllDecorations();for(let kn of Ln)kn.options.linesDecorationsClassName==="breakpoints-select"&&(zt.push((Wt=kn==null?void 0:kn.range)==null?void 0:Wt.startLineNumber),yn.push(kn==null?void 0:kn.id));if(en)return{lines:zt,ids:yn};Ut(zt)},Ge=en=>ce(void 0,null,function*(){let Wt={range:new _e.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield cn.deltaDecorations([],[Wt]),He()}),ye=en=>ce(void 0,null,function*(){let Wt=[];const zt=Gt.getLineDecorations(en);for(let yn of zt)yn.options.linesDecorationsClassName==="breakpoints-select"&&Wt.push(yn.id);yield cn.deltaDecorations(Wt,[]),He()}),Le=en=>{let Wt=Gt.getLineDecorations(en);for(let zt of Wt)if(zt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Rt.isEqual)(Pt,He(!0).lines)){cn.deltaDecorations(He(!0).ids,[]);const en=Pt.map(Wt=>({range:new _e.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));cn.deltaDecorations([],en)}const Oe=Gt.onDidChangeModelContent(en=>{let Wt=Gt.getPosition();if(Wt){let zt=Wt.lineNumber;clearTimeout(In.current),In.current=setTimeout(()=>{an(cn.getLineContent(zt),zt)?ye(zt):Le(zt)?(ye(zt),Ge(zt)):He()},100)}}),Ke=Gt.onMouseDown(en=>{var Wt,zt,yn;if(en.target.detail&&((yn=(zt=(Wt=en.target)==null?void 0:Wt.element)==null?void 0:zt.className)!=null&&yn.includes("line-numbers"))){let Ln=en.target.position.lineNumber;if(an(cn.getLineContent(Ln),Ln))return;Le(Ln)?ye(Ln):Ge(Ln)}}),Bt=en=>{let Wt={range:new _e.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ct.current=Gt.deltaDecorations(Ct.current,[Wt])},on=()=>{Ct.current=Gt.deltaDecorations(Ct.current,[])},mn=Gt.onMouseMove(en=>{var Wt,zt,yn;if(on(),en.target.detail&&((yn=(zt=(Wt=en.target)==null?void 0:Wt.element)==null?void 0:zt.className)!=null&&yn.includes("line-numbers"))){let Ln=en.target.position.lineNumber;if(an(cn.getLineContent(Ln),Ln))return;Bt(Ln)}}),Sn=Gt.onMouseLeave(()=>{on()});return()=>{Oe.dispose(),Ke.dispose(),mn.dispose(),Sn.dispose()}}},[De.current,nn,Pt,qt,Ht,ee]),(0,E.useEffect)(()=>{var vt;(vt=De.current)!=null&&vt.instance&&Ht&&De.current.instance.setPosition({lineNumber:0,column:0})},[qt]);function Kt(){let vt=De.current.instance;if(vt){const Gt=vt.getSelection(),cn=De.current.pastePos||{},fn=new _e.Range(cn.startLineNumber||Gt.endLineNumber,cn.startColumn||Gt.endColumn,cn.endLineNumber||Gt.endLineNumber,cn.endColumn||Gt.endColumn);setTimeout(()=>{vt.executeEdits("",[{range:fn,text:""}])},300)}}function Tt(vt){(window.navigator.platform.match("Mac")?vt.metaKey:vt.ctrlKey)&&vt.keyCode==83&&(vt.preventDefault(),Ie())}const At=()=>{if(Ve&&De.current.instance){const vt=De.current.instance.getContentHeight();bn(vt<ae?ae:vt)}else bn(ae)};function Ft(vt){var Gt=document.createEvent("MouseEvents");Gt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),vt.dispatchEvent(Gt)}const Qt=vt=>{if(!En.current)return;const{keyCode:Gt,ctrlKey:cn,metaKey:fn,target:He,type:Ge}=vt;return(Ge==="paste"||(Gt===67||Gt===86)&&(fn||cn))&&He.nodeName==="TEXTAREA"&&(Tn(),vt.preventDefault()),!1};function hn(vt,Gt){var cn=window.URL||window.webkitURL||window,fn=new Blob([Gt]),He=document.createElementNS("http://www.w3.org/1999/xhtml","a");He.href=cn.createObjectURL(fn),He.download=vt,Ft(He)}(0,E.useEffect)(()=>{At()},[At]),(0,E.useEffect)(()=>{St.current&&!nn&&Promise.all([re.e(8909),re.e(8250)]).then(re.bind(re,71448)).then(vt=>{try{_e=vt,De.current.instance=_e.editor.create(St.current,{value:te,language:We(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:it||!1}},ne);const Gt=De.current.instance;let He=[...rt.BH._menuItems].find(Oe=>Oe[0]._debugName=="EditorContext")[1],Ge=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ye=(Oe,Ke)=>{var Bt,on;let mn=Oe._first;do Ke.includes((on=(Bt=mn.element)==null?void 0:Bt.command)==null?void 0:on.id)&&Oe._remove(mn);while(mn=mn.next)};if(Jt(Gt,_e),setTimeout(()=>{At(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{hn(Et||"educoder.txt",Gt.getValue())}})},500),De.current.subscription=Gt.onDidChangeModelContent(Oe=>{$t.current?clearTimeout(rn.current):(At(),Ot(Gt.getValue(),Oe)),rn.current=setTimeout(()=>{$t.current=!1},500)}),window.Monaco||$e(_e,We(ee)),ht&&(ye(He,Ge),St.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Qt),window.removeEventListener("paste",Qt),window.addEventListener("keydown",Qt),window.addEventListener("paste",Qt)),window.Monaco=_e,xe&&Gt.onDidBlurEditorWidget(()=>{xe(Gt.getValue())}),Yt&&Gt.onDidFocusEditorText(()=>{ht&&jt(),Yt(Gt.getValue())}),ht){jt();try{Gt.onDidPaste(Oe=>{const Ke=Gt.getSelection(),Bt=De.current.pastePos||{},on=new _e.Range(Bt.startLineNumber||Ke.endLineNumber,Bt.startColumn||Ke.endColumn,Bt.endLineNumber||Ke.endLineNumber,Bt.endColumn||Ke.endColumn);Gt.executeEdits("",[{range:Oe.range,text:""}])})}catch(Oe){}}let Le=ln();return Fe&&typeof Fe=="string"&&new wt(Fe,Gt,_e),vn(!0),()=>{const Oe=De.current.instance;Oe.dispose();const Ke=Oe.getModel();Ke&&Ke.dispose(),De.current.subscription&&De.current.subscription.dispose(),Le.unobserve(St.current)}}catch(Gt){}})},[]),(0,E.useEffect)(()=>{if(De.current.instance&&nn)return document.addEventListener("keydown",Tt,!1),()=>{document.removeEventListener("keydown",Tt)}},[Ie,nn]),(0,E.useEffect)(()=>{let vt=De.current.instance;if(vt&&nn){let Gt=We(ee);_e.editor.setModelLanguage(vt.getModel(),Gt)}},[ee,nn]),(0,E.useEffect)(()=>{De.current.instance&&nn&&_e.editor.setTheme(pe)},[pe,nn]),(0,E.useEffect)(()=>{let vt=De.current.instance;qe.current=se,vt&&nn&&(vt.updateOptions(Me({},se)),setTimeout(()=>{vt.getModel().updateOptions(Me({},se))},200))},[JSON.stringify(se),nn]),(0,E.useEffect)(()=>{let vt=De.current.instance;vt&&nn&&vt.layout()},[st,ae,nn]);const[pn,sn]=(0,E.useState)(ze(st)),[un,bn]=(0,E.useState)(ze(ae)),On=ft(Me({},oe),{width:pn,height:un,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:St,style:On,onFocus:()=>{ht&&jt()}},ut&&E.createElement(ot.CopyToClipboard,{text:te,onCopy:()=>pt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Qe.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Vt({width:je="100%",height:Nt="100%",original:st,modified:ae,language:te,options:ee={}}){const oe=(0,E.useRef)(),[se,ne]=(0,E.useState)(null);function pe(Ve){let ht;return oe.current&&(ht=new lt.Z(Dt=>{for(let Ot of Dt)(Ot.target.offsetHeight>0||Ot.target.offsetWidth>0)&&Ve.layout()}),ht.observe(oe.current)),ht}(0,E.useEffect)(()=>(oe.current&&Promise.all([re.e(8909),re.e(9404)]).then(re.bind(re,2550)).then(Ve=>{_e=Ve;const ht=_e.editor.createDiffEditor(oe.current,ft(Me({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(ht);let Dt=pe(ht);return()=>{ht.dispose();const Ot=ht.getModel();Ot&&Ot.dispose(),Dt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{se&&se.setModel({original:_e.editor.createModel(st,te),modified:_e.editor.createModel(ae,te)})},[st,ae,te,se]);const xe=ze(je),ut=ze(Nt),Ie={width:xe,height:ut};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:Ie})}},33854:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return tt}});var E={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},lt=re(29787),ge=re(25399),Ye=re(89787),Ee=re(92310),Pe=re.n(Ee),Ae=re(7408),Te=re(4918),we=re(59301),tt=({className:Se,dataSource:dt=[],col:$e=4,right:Ce,bottom:Ne=23,precision:Re=0,wrapWidth:et=1200,trackEventItems:nt,loading:Lt,onRemove:wt=()=>{},isCurrent:rt=!0,showProgress:pt=!1,showAlias:Qe=!1,category:Rt,hiddenClick:gt})=>{const ot=Math.floor((et-($e-1)*Ce)/$e),It=[{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 we.createElement(lt.Z,{spinning:Lt},we.createElement("div",{className:Pe()(E.list,Se)},!!(dt!=null&&dt.length)&&(dt==null?void 0:dt.map((Be,Ue)=>{var Ze,ue,Je,ke,Me,ft,me,ce,ze,Mt,xt,ve,We;const{name:_e,id:jt,identifier:kt,featured:Vt,school_name:je,image_url:Nt,excellent:st,is_plan:ae}=Be;return we.createElement("div",{key:jt,className:rt&&pt?E.wrapisCurrent:E.wrap,style:{width:ot,marginRight:(1+Ue)%$e===0?0:Ce+Re,marginBottom:Ne}},we.createElement("a",{className:E.li,onClick:te=>{te.preventDefault(),te.stopPropagation(),nt&&(0,Ae.L9)([nt]),(0,Ae.xg)(`/paths/${kt}`)}},we.createElement("div",{className:E.img},we.createElement("img",{className:E.cover,src:`${Nt}`}),(Ze=Be==null?void 0:Be.subject_tags)==null?void 0:Ze.map((te,ee)=>{var oe,se;if(ee===0){const pe=(oe=It.find(xe=>xe.name==te))==null?void 0:oe.swimg;return we.createElement("img",{className:E.sign,src:pe,style:{left:"-4px"}})}const ne=(se=It.find(pe=>pe.name==te))==null?void 0:se.ptimg;return we.createElement("img",{className:E.sign,src:ne,style:{left:`${48+52*(ee-1)+2*ee}px`}})}),we.createElement("div",{className:E.tagsDom},we.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Be==null?void 0:Be.excellent)&&we.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Be==null?void 0:Be.custom_tags)==null?void 0:ue.length)>0&&we.createElement(ge.Z,{title:(Me=(ke=Be==null?void 0:Be.custom_tags)==null?void 0:ke[((Je=Be==null?void 0:Be.custom_tags)==null?void 0:Je.length)-1])==null?void 0:Me.tag_name},we.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},we.createElement("span",{className:"multi-llipsis1e text-10px"},(ce=(me=Be==null?void 0:Be.custom_tags)==null?void 0:me[((ft=Be==null?void 0:Be.custom_tags)==null?void 0:ft.length)-1])==null?void 0:ce.tag_name))))),Rt=="hide"&&(Be==null?void 0:Be.studying)&&rt&&we.createElement("div",{className:`${E.movebq} user-path-items`,onClick:te=>{te.stopPropagation(),wt(Be)}},we.createElement("i",{className:"iconfont icon-yichu1 font12"}),we.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(Rt)&&rt&&we.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:te=>{te.stopPropagation(),gt(Be)}},we.createElement("i",{className:`iconfont ${Rt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),we.createElement("span",null,Rt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),we.createElement("div",{className:E.name},we.createElement(ge.Z,{title:Qe&&(Be!=null&&Be.excellent_alias_name)?we.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${_e}`,we.createElement("br",null),we.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Be==null?void 0:Be.excellent_alias_name}`)):_e},we.createElement("span",{className:E.e},Qe&&(Be==null?void 0:Be.excellent_alias_name)||_e))),rt&&pt&&((ze=Be==null?void 0:Be.progress)==null?void 0:ze.all_score)!=0&&we.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},we.createElement(Ye.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Mt=Be==null?void 0:Be.progress)==null?void 0:Mt.my_score)/((xt=Be==null?void 0:Be.progress)==null?void 0:xt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ve=Be==null?void 0:Be.progress)==null?void 0:ve.my_score,"/",(We=Be==null?void 0:Be.progress)==null?void 0:We.all_score),(!rt||!pt)&&we.createElement(ge.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${je}`},we.createElement("div",{className:E.unit},we.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),je)),(!rt||!pt)&&we.createElement("div",{className:E.tags},we.createElement("div",null,we.createElement(ge.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),we.createElement("span",null,Be.stages_count))),we.createElement(ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),we.createElement("span",null,Be.members_count)))))))})),!dt.length&&we.createElement(Te.Z,null)))}},32305:function(tn,_t,re){"use strict";re.d(_t,{jL:function(){return Ee},w9:function(){return ve},QD:function(){return qt},cQ:function(){return ke.Z},op:function(){return Yt},O5:function(){return Kt},_b:function(){return De},t7:function(){return et},Gi:function(){return je},YG:function(){return kt},qp:function(){return tt},vr:function(){return it},qE:function(){return Et},Je:function(){return wt},wb:function(){return Je},cq:function(){return oe},tp:function(){return $e}});var E=re(59301),lt={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"},ge="data:image/png;base64,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",Ee=({dataSource:Tt=[],img:At,imgWidth:Ft=346,title:Qt,sunTitle:hn,bannerExtraContent:pn})=>E.createElement("div",{className:lt.banner},E.createElement("div",{className:lt.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Qt),E.createElement("span",null,hn)),Tt.length>0&&E.createElement("div",{className:lt.btns},Tt.map((sn,un)=>E.createElement("div",{key:un,onClick:sn.click},sn.name,sn.sign?E.createElement("img",{src:ge,width:39}):null))),pn),At&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:At,width:Ft}))),Pe={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"},Ae=re(92310),Te=re.n(Ae),we=re(89392),tt=({dataSource:Tt=[],value:At,onChange:Ft,onTitleChange:Qt,className:hn,title:pn,titleWidth:sn=41,style:un={},fontColor:bn="#6A7283",showCount:On})=>{const[vt,Gt]=(0,E.useState)(1),[cn,fn]=(0,E.useState)(!1),He=(0,E.useRef)(null),Ge=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var ye;Tt.length!==0&&(((ye=He==null?void 0:He.current)==null?void 0:ye.clientHeight)>97?Gt(1):Gt(0)),Tt.length===0&&Gt(0),fn(!1)},[Tt]),E.createElement("div",{className:Te()(Pe.row,hn,"fadeIn","animated"),style:un},E.createElement("div",{onClick:(0,we.throttle)(()=>Qt==null?void 0:Qt(),2e3),style:{width:sn,marginTop:cn?12:4},className:`${Pe.title} ${Qt?"current":""}`},pn),E.createElement("div",{className:cn?`${Pe.tagsWrap} ${Pe.tagsBorderWrap}`:Pe.tagsWrap},E.createElement("div",{className:Pe.bar,ref:Ge,style:vt>0?{height:vt===1?97:"auto",overflow:vt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Pe.tag,ref:He},Tt==null?void 0:Tt.map(ye=>E.createElement("span",{onClick:()=>Ft(ye.id),key:ye.id,style:{color:bn},className:At===ye.id?Pe.active:""},E.createElement("span",{title:ye.name,className:Pe.name},ye.name),!!On&&E.createElement("span",{className:Pe.num},ye.count))))),!!vt&&E.createElement(E.Fragment,null,vt===1?E.createElement("div",{onClick:()=>{var ye;Gt(2),((ye=He==null?void 0:He.current)==null?void 0:ye.clientHeight)>245?fn(!0):fn(!1)},className:Pe.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{Ge.current.scrollTop=0,Gt(1),fn(!1)},className:Pe.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Se={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"},$e=({dataSource:Tt=[],value:At,onChange:Ft,className:Qt,style:hn={}})=>E.createElement("div",{style:hn,className:Te()(Se.tabs,Qt)},Tt.map(pn=>E.createElement("span",{onClick:()=>Ft(pn.id),className:At===pn.id?Se.active:"",key:pn.id},pn.name))),Ce={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"},Ne=re(37568),et=({dataSource:Tt=[],value:At="",onChange:Ft,onInputChange:Qt=()=>{},className:hn,style:pn={},placeholder:sn,allowClear:un=!1})=>{var bn;const[On,vt]=(0,E.useState)(""),[Gt,cn]=(0,E.useState)("");(0,E.useEffect)(()=>{var Ge;let ye=At;(Ge=JSON.stringify(At))!=null&&Ge.includes("{")&&(vt(At.id),ye=At.value||"");try{cn(decodeURIComponent(ye||""))}catch(Le){cn(decodeURIComponent(ye||""))}},[At]);const fn=()=>{Ft(encodeURIComponent(Gt),On||null)},He=Ge=>{Ge!==On&&(vt(Ge),Ft(encodeURIComponent(Gt),Ge))};return E.createElement("div",{className:Te()(Ce.input,hn),style:pn},!!Tt.length&&E.createElement("div",{className:Ce.dropdown},E.createElement("div",{className:Ce.text},(bn=Tt.find(Ge=>Ge.id===On))==null?void 0:bn.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Ce.b1}),E.createElement("b",{className:Ce.b2})),E.createElement("div",{className:Ce.menu},Tt.map((Ge,ye)=>E.createElement("div",{key:ye,onClick:()=>He(Ge.id)},Ge.name)))),E.createElement(Ne.default,{onPressEnter:fn,value:Gt,onChange:Ge=>{cn(Ge.target.value),Qt(encodeURIComponent(Ge.target.value),On||null)},placeholder:sn,variant:"borderless",allowClear:un,onClear:()=>Ft("",On||null)}),E.createElement("i",{onClick:fn,className:"iconfont icon-sousuo9 font14 current"}))},nt={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"},wt=({value:Tt,onChange:At,className:Ft,total:Qt,pageSize:hn,style:pn={}})=>{const sn=Tt<2,un=Tt>=Math.ceil(Qt/hn);return Qt<=hn?E.createElement(E.Fragment,null):E.createElement("div",{className:Te()(nt.quickPager,Ft),style:pn},E.createElement("div",{onClick:()=>{sn||At(Tt-1,"prev")},className:sn?nt.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{un||At(Tt+1,"next")},className:un?nt.disabled:""},"\u4E0B\u4E00\u9875"))},rt={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"},pt=re(29787),Qe=re(25399),Rt=re(63139),gt=re(14661),ot=re(7408),It=re(96908),Be=re(57177),Ue=re(81378),Ze=re(4918),Je=({className:Tt,dataSource:At=[],col:Ft=4,right:Qt,bottom:hn=23,precision:pn=0,wrapWidth:sn=1200,trackEventItems:un,loading:bn})=>{const On=Math.floor((sn-(Ft-1)*Qt)/Ft);return E.createElement(pt.Z,{spinning:bn},E.createElement("div",{className:Te()(rt.list,Tt)},!!At.length&&At.map((vt,Gt)=>{const{name:cn,id:fn,identifier:He,power:Ge,cover_image_id:ye,pic:Le}=vt;return E.createElement("div",{className:rt.wrap,key:fn,style:{width:On,marginRight:(1+Gt)%Ft===0?0:Qt+pn,marginBottom:hn}},E.createElement("a",{target:"_blank",href:`/shixuns/${He}/challenges`,className:rt.li,onClick:Oe=>{Oe.preventDefault(),un&&(0,ot.L9)([un]),Ge&&(0,ot.xg)(`/shixuns/${He}/challenges`)}},E.createElement("div",{className:rt.img},E.createElement("img",{className:rt.cover,src:`${Le}`}),vt.is_jupyter&&E.createElement("img",{className:rt.sign,src:It}),vt.is_jupyter_lab&&E.createElement("img",{className:rt.sign,src:Be}),vt.is_unity_3d&&E.createElement("img",{className:rt.sign,src:Ue})),E.createElement("div",{className:rt.name},E.createElement(Qe.Z,{title:cn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:rt.e},cn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:rt.tags},E.createElement(Qe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,vt.challenges_count))),!!vt.myshixuns_count&&E.createElement(Qe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,vt.myshixuns_count))),E.createElement(Qe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,vt.level))),E.createElement("div",{className:rt.rate},E.createElement(Rt.Z,{allowHalf:!0,disabled:!0,defaultValue:vt.score_info}),E.createElement("span",null,"\xA0",vt.score_info?`${vt.score_info}\u5206`:"5\u5206")))),!Ge&&E.createElement("div",{className:rt.lockWrap},E.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!At.length&&E.createElement(Ze.Z,null)))},ke=re(33854),Me={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"},ft=re(62957),me=re(96599),ce="data:image/png;base64,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",ze=re(59301),Mt=(Tt,At,Ft)=>new Promise((Qt,hn)=>{var pn=bn=>{try{un(Ft.next(bn))}catch(On){hn(On)}},sn=bn=>{try{un(Ft.throw(bn))}catch(On){hn(On)}},un=bn=>bn.done?Qt(bn.value):Promise.resolve(bn.value).then(pn,sn);un((Ft=Ft.apply(Tt,At)).next())}),ve=({className:Tt,dataSource:At=[],col:Ft=4,right:Qt,bottom:hn=23,precision:pn=0,wrapWidth:sn=1200,trackEventItems:un,loading:bn,category:On,hiddenClick:vt,handleVery:Gt=()=>!0,isCurrent:cn})=>{const[fn,He]=ft.default.useModal(),Ge=Math.floor((sn-(Ft-1)*Qt)/Ft),ye=Le=>Mt(void 0,null,function*(){fn.confirm({title:"\u7F6E\u9876",width:500,content:ze.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",ze.createElement("span",{className:"c-blue"},"\u201C",Le.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return ze.createElement(pt.Z,{spinning:bn},He,ze.createElement("div",{className:Te()(Me.list,Tt)},!!At.length&&At.map((Le,Oe)=>{const{subject_identifier:Ke,id:Bt,identifier:on,power:mn}=Le,Sn=Le.is_public!=0&&Le.is_public;return ze.createElement("div",{className:Me.wrap,key:Bt,style:{width:Ge,marginRight:(1+Oe)%Ft===0?0:Qt+pn,marginBottom:hn}},Le.homepage_show&&ze.createElement("div",{className:Me.btnsTop},ze.createElement(me.default,{color:"red"},"\u7F6E\u9876")),ze.createElement("a",{className:Me.li,onClick:en=>{en.preventDefault(),Gt(Le==null?void 0:Le.first_category_url)&&(un&&(0,ot.L9)([un]),(0,ot.xg)(Le.first_category_url))}},ze.createElement("div",{className:Me.top},ze.createElement(Qe.Z,{title:Le.name},ze.createElement("div",{className:Me.name},Le.name)),ze.createElement("img",{className:Me.img,src:gt.Z.IMG_SERVER+"/images/"+Le.avatar_url}),ze.createElement("div",{className:Me.text,title:Le.creator},Le.creator),Ke&&ze.createElement("div",{className:Me.btns},ze.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ze.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Sn&&ze.createElement("div",{className:Me.sign},"\u516C\u5F00"),cn&&ze.createElement("div",{className:Me.hidden,onClick:en=>{en.stopPropagation(),vt(Le)}},ze.createElement("i",{className:`iconfont ${On=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),On=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),ze.createElement("div",{className:Me.bottom},Le.visits>0&&ze.createElement(Qe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-liulanyan"}),ze.createElement("span",null,Le.visits))),Le.course_members_count>0&&ze.createElement(Qe.Z,{title:"\u6210\u5458",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-chengyuan"}),Le.course_members_count)),Le.tasks_count>0&&ze.createElement(Qe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-zuoye"}),Le.tasks_count)),Le.is_end?ze.createElement("div",{style:{color:"#6B758B"}}):ze.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Le.is_accessible&&ze.createElement("div",{className:Me.lockWrap},ze.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ze.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!At.length&&ze.createElement(Ze.Z,null)))},We={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"},_e=re(51429),kt=({dataSource:Tt=[],value:At,onChange:Ft,className:Qt,style:hn={},tabBarExtraContent:pn})=>E.createElement("div",{className:Te()(We.tabs,Qt),style:hn},E.createElement("div",{className:We.tabsWrap},Tt.map((sn,un)=>!(sn!=null&&sn.hide)&&E.createElement("aside",{className:We.tab,onClick:()=>{Ft(sn.id),sn.link&&_e.history.push(sn.link)},key:un},E.createElement("div",{className:At===sn.id?We.active:""},sn.name),(sn==null?void 0:sn.resetCount)==null&&(sn==null?void 0:sn.total)!==void 0&&E.createElement("span",null,"\uFF08",sn==null?void 0:sn.total,"\uFF09"),(sn==null?void 0:sn.resetCount)!==void 0&&(sn==null?void 0:sn.total)!==void 0&&E.createElement(Qe.Z,{title:(sn==null?void 0:sn.tip)!=null?sn==null?void 0:sn.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},sn==null?void 0:sn.resetCount),"/",E.createElement("span",null,sn==null?void 0:sn.total),"\uFF09"))))),E.createElement("div",{className:We.tabBar},pn)),je=({className:Tt,style:At={},children:Ft})=>E.createElement("div",{className:Te()(Tt),style:At},Ft),Nt={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=re(75727),ae=re(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:Tt,dropValue:At,className:Ft,onSort:Qt,onDrop:hn,dataSource:pn=te})=>{var sn;return E.createElement("div",{className:Te()(Nt.orderWrap,Ft)},E.createElement(st.Z,{dropdownRender:()=>E.createElement(ae.default,null,pn.map((un,bn)=>E.createElement(ae.default.Item,{key:bn,onClick:()=>hn(un.id)},un.name)))},E.createElement("span",{className:Nt.orderTextWrap},(sn=pn.find(un=>At===un.id))==null?void 0:sn.name)),E.createElement("span",{className:Nt.orderIconWrap},E.createElement("span",{className:Nt.orderAsc},E.createElement("i",{className:Tt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer}`,onClick:()=>Qt(Tt==="asc"?"desc":"asc")})),E.createElement("span",{className:Nt.orderDesc},E.createElement("i",{className:Tt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer}`,onClick:()=>Qt(Tt==="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=re(7939),pe=Object.defineProperty,xe=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Ve=(Tt,At,Ft)=>At in Tt?pe(Tt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Tt[At]=Ft,ht=(Tt,At)=>{for(var Ft in At||(At={}))ut.call(At,Ft)&&Ve(Tt,Ft,At[Ft]);if(xe)for(var Ft of xe(At))Ie.call(At,Ft)&&Ve(Tt,Ft,At[Ft]);return Tt},Dt=(Tt,At)=>{var Ft={};for(var Qt in Tt)ut.call(Tt,Qt)&&At.indexOf(Qt)<0&&(Ft[Qt]=Tt[Qt]);if(Tt!=null&&xe)for(var Qt of xe(Tt))At.indexOf(Qt)<0&&Ie.call(Tt,Qt)&&(Ft[Qt]=Tt[Qt]);return Ft},Ot=(Tt,At,Ft)=>new Promise((Qt,hn)=>{var pn=bn=>{try{un(Ft.next(bn))}catch(On){hn(On)}},sn=bn=>{try{un(Ft.throw(bn))}catch(On){hn(On)}},un=bn=>bn.done?Qt(bn.value):Promise.resolve(bn.value).then(pn,sn);un((Ft=Ft.apply(Tt,At)).next())}),Yt=Tt=>{var At=Tt,{className:Ft,style:Qt,children:hn,loading:pn=!1,openLoading:sn,onClick:un=()=>{},size:bn="middle",shape:On="round"}=At,vt=Dt(At,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gt,cn]=(0,E.useState)(!1);return E.createElement(ne.ZP,ht({onClick:(0,we.throttle)(fn=>Ot(void 0,null,function*(){sn&&cn(!0);try{yield un(fn)}catch(He){console.log("error",He)}sn&&cn(!1)}),2e3,{leading:!0,trailing:!1}),className:Te()(se.btn,se[`${bn}-${On}`],Ft),style:Qt,size:bn,shape:On,loading:Gt||pn},vt),hn)},Ut={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"},Et=({className:Tt,style:At,children:Ft=null,onClick:Qt,title:hn})=>E.createElement("div",{className:Te()(Ut.head,Tt),style:At},E.createElement("span",{className:"primary-hover",onClick:Qt},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:hn},hn),E.createElement("div",{className:Ut.node},Ft)),mt={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"},qt=({confirmShow:Tt=!0,confirmTitle:At,confirmClick:Ft,cancelShow:Qt=!0,cancelTitle:hn,cancelClick:pn,className:sn,style:un,confirmLoading:bn=!1})=>E.createElement("div",{className:Te()(mt.btns,sn),style:un},Tt&&E.createElement(ne.ZP,{loading:bn,onClick:Ft,type:"primary",className:mt.confirm},At),Qt&&E.createElement(ne.ZP,{onClick:pn,className:mt.cancel},hn)),Ht={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"},it=({className:Tt,style:At={},LeftContent:Ft,children:Qt,RightContent:hn})=>E.createElement("div",{className:Te()(Ht.fixedBottom,Tt),style:At},E.createElement("div",{className:Ht.wrap},E.createElement("div",{className:Ht.left},Ft),E.createElement("div",{className:Ht.center},Qt),E.createElement("div",{className:Ht.right},hn))),Xe={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:Tt,style:At={},dataSource:Ft=[]})=>E.createElement("div",{className:Te()(Xe.crumbs,Tt),style:At},Ft.map((Qt,hn)=>hn<Ft.length-1?E.createElement(E.Fragment,{key:hn},Qt.path||Qt.onClick?E.createElement("span",{className:Xe.hover,onClick:Qt!=null&&Qt.onClick?Qt.onClick:()=>_e.history.push(Qt.path)},Qt.name):E.createElement("span",null,Qt.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:hn,style:{color:"#5F6368"}},Qt.name))),qe=re(11938),yt=Object.defineProperty,Ct=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,nn=(Tt,At,Ft)=>At in Tt?yt(Tt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):Tt[At]=Ft,vn=(Tt,At)=>{for(var Ft in At||(At={}))In.call(At,Ft)&&nn(Tt,Ft,At[Ft]);if(rn)for(var Ft of rn(At))En.call(At,Ft)&&nn(Tt,Ft,At[Ft]);return Tt},ln=(Tt,At)=>Ct(Tt,$t(At)),Tn=(Tt,At)=>{var Ft={};for(var Qt in Tt)In.call(Tt,Qt)&&At.indexOf(Qt)<0&&(Ft[Qt]=Tt[Qt]);if(Tt!=null&&rn)for(var Qt of rn(Tt))At.indexOf(Qt)<0&&En.call(Tt,Qt)&&(Ft[Qt]=Tt[Qt]);return Ft};const{Countdown:xn}=qe.default;var Kt=Tt=>{var At=Tt,{onChange:Ft}=At,Qt=Tn(At,["onChange"]);const[hn,pn]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof hn=="number"&&hn>=0&&Ft(hn)},[hn]);const sn=un=>{const bn=Math.floor(un/1e3);pn(bn)};return E.createElement(xn,ln(vn({},Qt),{onChange:sn}))}},2914:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return lt}});var E=re(59301);function lt(ge,Ye){const Ee=(0,E.useRef)();(0,E.useEffect)(()=>{Ee.current=ge}),(0,E.useEffect)(()=>{function Pe(){Ee.current()}if(Ye!==null){let Ae=setInterval(Pe,Ye);return()=>clearInterval(Ae)}},[Ye])}},91068:function(tn,_t,re){"use strict";re.r(_t),re.d(_t,{default:function(){return Ut}});var E=re(59301),lt=re(51429),ge=re(28284),Ye=re(6767),Ee=re(37285),Pe=re(91882),Ae=re(77019),Te=re(5269),we=re(62957),he=re(31691),tt=re(25399),Se=re(37568),dt=re(7939),$e=re(51773),Ce=re(24298),Ne=re(62673),Re=re(82326),et=re(84660),nt={flex_box_center:"flex_box_center___ZXamY",flex_space_between:"flex_space_between___OhehO",flex_box_vertical_center:"flex_box_vertical_center___JcdoD",flex_box_center_end:"flex_box_center_end___BQR8z",flex_box_column:"flex_box_column___ZtKH_",wrap:"wrap___ucM4I",modal:"modal___Snz7U",titleWrap:"titleWrap___GoOJH",required:"required___hcR9L",title:"title___Fk25W",colorGray:"colorGray___s_7Rh",choiceWrap:"choiceWrap___Km9CZ",answer:"answer___nCBKN",activeAnswer:"activeAnswer___pykZr",deleteIcon:"deleteIcon___FtIV6",addIcon:"addIcon___pjZkR",editorWrap:"editorWrap___VTBdJ",htmlWrap:"htmlWrap___Cqe4T",radio:"radio___Uahep",color333:"color333___NsMb3",color999:"color999___qJjRp",questionType:"questionType___BC_py",questionChoices:"questionChoices____TjNP"},Lt=Object.defineProperty,wt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Qe=(Pt,Et,mt)=>Et in Pt?Lt(Pt,Et,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[Et]=mt,Rt=(Pt,Et)=>{for(var mt in Et||(Et={}))rt.call(Et,mt)&&Qe(Pt,mt,Et[mt]);if(wt)for(var mt of wt(Et))pt.call(Et,mt)&&Qe(Pt,mt,Et[mt]);return Pt},gt=(Pt,Et)=>{var mt={};for(var ct in Pt)rt.call(Pt,ct)&&Et.indexOf(ct)<0&&(mt[ct]=Pt[ct]);if(Pt!=null&&wt)for(var ct of wt(Pt))Et.indexOf(ct)<0&&pt.call(Pt,ct)&&(mt[ct]=Pt[ct]);return mt},ot=(Pt,Et,mt)=>new Promise((ct,qt)=>{var Ht=Xe=>{try{it(mt.next(Xe))}catch(St){qt(St)}},Fe=Xe=>{try{it(mt.throw(Xe))}catch(St){qt(St)}},it=Xe=>Xe.done?ct(Xe.value):Promise.resolve(Xe.value).then(Ht,Fe);it((mt=mt.apply(Pt,Et)).next())});const It=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Be=(Pt,Et)=>{var mt=Pt,{problemset:ct,globalSetting:qt,loading:Ht,dispatch:Fe,showAnswerTip:it=!0,onRef:Xe=()=>{},editData:St,editKey:De,callback:qe}=mt,yt=gt(mt,["problemset","globalSetting","loading","dispatch","showAnswerTip","onRef","editData","editKey","callback"]);const[Ct,$t]=(0,E.useState)([]),[rn,In]=(0,E.useState)(),[En,nn]=(0,E.useState)([]),[vn,ln]=(0,E.useState)(""),[Tn,xn]=(0,E.useState)(0),[an,Kt]=(0,E.useState)(!0),[Tt,At]=(0,E.useState)(!1),Ft=(0,lt.useParams)(),[Qt,hn]=(0,E.useState)(""),[pn,sn]=(0,E.useState)("");(0,E.useEffect)(()=>{var vt,Gt,cn,fn,He,Ge,ye,Le;if(!((vt=St==null?void 0:St.question)!=null&&vt.question_title)){$t([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Kt(!0),ln(""),At(!1);return}hn((Gt=St==null?void 0:St.question)==null?void 0:Gt.max_choices),sn((cn=St==null?void 0:St.question)==null?void 0:cn.min_choices),ln((fn=St==null?void 0:St.question)==null?void 0:fn.question_title),Kt(!!((He=St==null?void 0:St.question)!=null&&He.is_necessary)),$t((Ge=St==null?void 0:St.question)==null?void 0:Ge.answers.map(Oe=>({value:Oe.answer_text,disabled:Oe.answer_text==="\u5176\u5B83"}))),At(!!((Le=(ye=St==null?void 0:St.question)==null?void 0:ye.answers)!=null&&Le.find(Oe=>Oe.answer_text==="\u5176\u5B83")))},[St]),(0,E.useImperativeHandle)(Et,()=>({onSave:un}));const un=vt=>ot(void 0,null,function*(){var Gt;if(Qt&&!pn||!Qt&&pn){Ye.ZP.info('\u53EF\u9009\uFF1A\u6700\u5C0F\u548C\u6700\u5927\u9650\u5236\u987B\u540C\u65F6\u4E3A\u6570\u503C\u6216\u8005\u201C--"');return}if(pn>Qt){Ye.ZP.info("\u53EF\u9009\u7684\u6700\u5927\u9650\u5236\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u9650\u5236");return}if(!vn)return Ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const cn=Ct.findIndex(Ge=>!Ge.value);if(cn>-1)return Ye.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${It[cn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let fn;const He={question_title:vn,question_type:2,insert_id:St.insert_id,is_necessary:Math.ceil(an),max_choices:Qt,min_choices:pn,question_answers:Ct.map(Ge=>Ge.value)};if((Gt=St.question)!=null&&Gt.id?fn=yield(0,$e.wo)(Rt({pollsId:St.question.id},He)):fn=yield(0,$e.Fd)(Rt({exercise_bank_id:Ft.topicId},He)),fn.status===0){Ye.ZP.success("\u4FDD\u5B58\u6210\u529F"),qe("edit",-1);const Ge=yield Fe({type:"polls/getExerciseBanks",payload:Rt({},Ft)});vt&&(He.answers=He.question_answers.map(ye=>({answer_text:ye})),qe("addContinue",Rt({type:2,insert_id:St.question.id,key:St.key,question_type:1},He),Ge.questions))}}),bn=()=>{var vt,Gt,cn,fn;return E.createElement("aside",null,E.createElement("div",{className:nt.questionType},E.createElement("div",null,E.createElement("span",{className:"font16"},"\u7B2C",St.key,"\u9898"),E.createElement("span",{className:"font16 c-light-black ml10"},"\u591A\u9009\u9898"),E.createElement("span",{className:"tag-grey-eae ml10 mr10"},((vt=St==null?void 0:St.question)==null?void 0:vt.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54"),"\u53EF\u9009",(Gt=St==null?void 0:St.question)==null?void 0:Gt.min_choices,"-",(cn=St==null?void 0:St.question)==null?void 0:cn.max_choices,"\u9879")),E.createElement("div",{className:"mt5"},E.createElement(et.Z,{value:St.question.question_title})),E.createElement("div",{className:nt.questionChoices},(fn=St==null?void 0:St.question.answers)==null?void 0:fn.map(function(He,Ge){return E.createElement(Ae.Z,null,E.createElement(Te.Z,null,E.createElement(Ne.default,{key:Ge,disabled:!0},E.createElement("span",{className:"c-black font14"},He.answer_text))))})))},On=()=>E.createElement("aside",null,E.createElement("div",{className:nt.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u591A\u9009\u9898")," ",E.createElement(Ne.default,{checked:!!an,className:"ml10",onChange:vt=>Kt(vt.target.checked)},"\u5FC5\u7B54"))),E.createElement("p",{className:nt.titleWrap},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},rows:1,value:vn,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:vt=>ln(vt.target.value)})),Ct.map((vt,Gt)=>E.createElement(Ae.Z,{className:nt.choiceWrap,key:Gt,gutter:[12,12]},E.createElement(Te.Z,null,E.createElement("span",{className:"font16"},"\u9009\u9879")),E.createElement(Te.Z,{className:nt.editorWrap,flex:"1"},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},value:Ct[Gt].value,rows:1,disabled:!!vt.disabled,onChange:cn=>{Ct[Gt].value=cn.target.value,$t([...Ct])}})),E.createElement(Te.Z,null,Gt>1&&E.createElement(tt.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${nt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{$t(Ct.filter((cn,fn)=>fn!==Gt)),vt.disabled&&At(!1)}}))))),E.createElement(Ae.Z,{gutter:[12,12]},E.createElement(Te.Z,null,"\u53EF\u9009"),E.createElement(Te.Z,null,E.createElement(Re.default,{value:pn||"",style:{width:120},onChange:vt=>sn(vt)},E.createElement(Re.default.Option,{value:""},"--"),Ct.map(function(vt,Gt){return E.createElement(Re.default.Option,{value:String(Gt+2)},Gt+2)})),E.createElement("span",{className:"ml10 mr10"},"~"),E.createElement(Re.default,{style:{width:120},value:Qt||"",onChange:vt=>hn(vt)},E.createElement(Re.default.Option,{value:""},"--"),Ct.map(function(vt,Gt){return E.createElement(Re.default.Option,{value:String(Gt+2)},Gt+2)})))),E.createElement(Ae.Z,{gutter:[12,12]},E.createElement(Te.Z,{flex:"1"},E.createElement(dt.ZP,{type:"default",onClick:()=>{Ct.find(vt=>vt.value==="\u5176\u5B83")?$t([...Ct.filter(vt=>vt.value!=="\u5176\u5B83"),{value:""},{value:"\u5176\u5B83",disabled:!0}]):$t([...Ct,{value:""}])}},"\u65B0\u589E\u9009\u9879"),!Tt&&E.createElement(dt.ZP,{type:"default",className:"ml20",onClick:()=>{$t([...Ct,{disabled:!0,value:"\u5176\u5B83"}]),At(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),E.createElement(Te.Z,{className:"tl"},E.createElement(dt.ZP,{type:"default",onClick:()=>{var vt;(vt=St.question)!=null&&vt.id?qe("edit",-1):qe("del",St.key)}},"\u53D6\u6D88"),E.createElement(dt.ZP,{className:"ml20",type:"primary",onClick:()=>un()},"\u4FDD\u5B58"),E.createElement(dt.ZP,{className:"ml20",type:"primary",onClick:()=>un(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return E.createElement("section",{className:nt.wrap},De!==St.key&&bn(),De===St.key&&On())};var Ue=(0,lt.connect)(({problemset:Pt,loading:Et,globalSetting:mt})=>({problemset:Pt,globalSetting:mt,loading:Et.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Be)),Ze=re(47889),ue=Object.defineProperty,Je=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ft=(Pt,Et,mt)=>Et in Pt?ue(Pt,Et,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[Et]=mt,me=(Pt,Et)=>{for(var mt in Et||(Et={}))ke.call(Et,mt)&&ft(Pt,mt,Et[mt]);if(Je)for(var mt of Je(Et))Me.call(Et,mt)&&ft(Pt,mt,Et[mt]);return Pt},ce=(Pt,Et)=>{var mt={};for(var ct in Pt)ke.call(Pt,ct)&&Et.indexOf(ct)<0&&(mt[ct]=Pt[ct]);if(Pt!=null&&Je)for(var ct of Je(Pt))Et.indexOf(ct)<0&&Me.call(Pt,ct)&&(mt[ct]=Pt[ct]);return mt},ze=(Pt,Et,mt)=>new Promise((ct,qt)=>{var Ht=Xe=>{try{it(mt.next(Xe))}catch(St){qt(St)}},Fe=Xe=>{try{it(mt.throw(Xe))}catch(St){qt(St)}},it=Xe=>Xe.done?ct(Xe.value):Promise.resolve(Xe.value).then(Ht,Fe);it((mt=mt.apply(Pt,Et)).next())});const Mt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xt=(Pt,Et)=>{var mt=Pt,{problemset:ct,globalSetting:qt,loading:Ht,dispatch:Fe,onRef:it=()=>{},editData:Xe,editKey:St,callback:De,showAnswerTip:qe=!0}=mt,yt=ce(mt,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback","showAnswerTip"]);const[Ct,$t]=(0,E.useState)([]),[rn,In]=(0,E.useState)(),[En,nn]=(0,E.useState)([]),[vn,ln]=(0,E.useState)(""),[Tn,xn]=(0,E.useState)(0),[an,Kt]=(0,E.useState)(!1),[Tt,At]=(0,E.useState)(!1),Ft=(0,lt.useParams)();(0,E.useEffect)(()=>{var bn,On,vt,Gt,cn,fn;if(!((bn=Xe==null?void 0:Xe.question)!=null&&bn.question_title)){$t([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Kt(!1),ln(""),At(!1);return}ln((On=Xe==null?void 0:Xe.question)==null?void 0:On.question_title),Kt(!!((vt=Xe==null?void 0:Xe.question)!=null&&vt.is_necessary)),$t((Gt=Xe==null?void 0:Xe.question)==null?void 0:Gt.answers.map(He=>({value:He.answer_text,disabled:He.answer_text==="\u5176\u5B83"}))),At(!!((fn=(cn=Xe==null?void 0:Xe.question)==null?void 0:cn.answers)!=null&&fn.find(He=>He.answer_text==="\u5176\u5B83")))},[Xe]),(0,E.useImperativeHandle)(Et,()=>({onSave:Qt}));const Qt=bn=>ze(void 0,null,function*(){var On;if(!vn)return Ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const vt=Ct.findIndex(fn=>!fn.value);if(vt>-1)return Ye.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Mt[vt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let Gt;const cn={question_title:vn,question_type:1,insert_id:Xe.insert_id,is_necessary:Math.ceil(an),question_answers:Ct.map(fn=>fn.value)};if((On=Xe.question)!=null&&On.id?Gt=yield(0,$e.wo)(me({pollsId:Xe.question.id},cn)):Gt=yield(0,$e.Fd)(me({exercise_bank_id:Ft.topicId},cn)),Gt.status===0){Ye.ZP.success("\u4FDD\u5B58\u6210\u529F"),De("edit",-1);const fn=yield Fe({type:"polls/getExerciseBanks",payload:me({},Ft)});bn&&(cn.answers=cn.question_answers.map(He=>({answer_text:He})),De("addContinue",me({type:1,insert_id:Xe.question.id,key:Xe.key,question_type:1},cn),fn.questions))}}),hn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current",id:"down"},{name:"\u6DFB\u52A0",icon:"iconfont c-green ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjidaibeijing current",id:"edit"}],pn=bn=>ze(void 0,null,function*(){var On,vt;switch(bn.id){case"del":let Gt;we.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return ze(this,null,function*(){var cn;yield(0,$e.x$)({pollsId:(cn=Xe==null?void 0:Xe.question)==null?void 0:cn.id}),Fe({type:"polls/getExerciseBanks",payload:me({},Ft)})})}});break;case"up":case"down":yield(0,$e.vf)({pollsId:(On=Xe==null?void 0:Xe.question)==null?void 0:On.id,opr:bn.id}),Fe({type:"polls/getExerciseBanks",payload:me({},Ft)});break;case"edit":De("edit",Xe.key);break;case"add":De("add",{type:1,key:Xe.key,insert_id:(vt=Xe==null?void 0:Xe.question)==null?void 0:vt.id,question_type:1});break}}),sn=()=>{var bn,On;return E.createElement("aside",null,E.createElement("div",{className:nt.questionType},E.createElement("div",null,E.createElement("span",{className:"font16"},"\u7B2C",Xe.key,"\u9898"),E.createElement("span",{className:"font16 c-light-black ml10"},"\u5355\u9009\u9898"),E.createElement("span",{className:"tag-grey-eae ml10"},((bn=Xe==null?void 0:Xe.question)==null?void 0:bn.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54"))),E.createElement("div",{className:"mt5"},E.createElement(et.Z,{value:Xe.question.question_title})),E.createElement("div",{className:nt.questionChoices},(On=Xe==null?void 0:Xe.question.answers)==null?void 0:On.map(function(vt,Gt){return E.createElement(Ae.Z,null,E.createElement(Te.Z,null,E.createElement(Ze.ZP,{key:Gt,disabled:!0})),E.createElement(Te.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},vt.answer_text)))})))},un=()=>E.createElement("aside",null,E.createElement("div",{className:nt.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5355\u9009\u9898")," ",E.createElement(Ne.default,{checked:!!an,className:"ml10",onChange:bn=>Kt(bn.target.checked)},"\u5FC5\u7B54"))),E.createElement("p",{className:nt.titleWrap},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},rows:1,value:vn,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:bn=>ln(bn.target.value)})),Ct.map((bn,On)=>E.createElement(Ae.Z,{className:nt.choiceWrap,key:On,gutter:[12,12]},E.createElement(Te.Z,null,E.createElement("span",{className:"font16"},"\u9009\u9879")),E.createElement(Te.Z,{className:nt.editorWrap,flex:"1"},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},value:Ct[On].value,rows:1,disabled:Ct[On].value==="\u5176\u5B83",onChange:vt=>{Ct[On].value=vt.target.value,$t([...Ct])}})),E.createElement(Te.Z,null,On>1&&E.createElement(tt.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${nt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{$t(Ct.filter((vt,Gt)=>Gt!==On)),bn.disabled&&At(!1)}}))))),E.createElement(Ae.Z,{gutter:[12,12]},E.createElement(Te.Z,{flex:"1"},E.createElement(dt.ZP,{type:"default",onClick:()=>{Ct.find(bn=>bn.value==="\u5176\u5B83")?$t([...Ct.filter(bn=>bn.value!=="\u5176\u5B83"),{value:""},{value:"\u5176\u5B83",disabled:!0}]):$t([...Ct,{value:""}]),\u65B0\u589E\u9009\u9879}}),!Tt&&E.createElement(dt.ZP,{type:"default",className:"ml20",onClick:()=>{$t([...Ct,{disabled:!0,value:"\u5176\u5B83"}]),At(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),E.createElement(Te.Z,{className:"tl"},E.createElement(dt.ZP,{type:"default",onClick:()=>{var bn;(bn=Xe.question)!=null&&bn.id?De("edit",-1):De("del",Xe.key)}},"\u53D6\u6D88"),E.createElement(dt.ZP,{className:"ml20",type:"primary",onClick:()=>Qt()},"\u4FDD\u5B58"),E.createElement(dt.ZP,{className:"ml20",type:"primary",onClick:()=>Qt(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return E.createElement("section",{className:nt.wrap},St!==Xe.key&&sn(),St===Xe.key&&un())};var ve=(0,lt.connect)(({problemset:Pt,loading:Et,globalSetting:mt})=>({problemset:Pt,globalSetting:mt,loading:Et.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(xt)),We=Object.defineProperty,_e=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Vt=(Pt,Et,mt)=>Et in Pt?We(Pt,Et,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[Et]=mt,je=(Pt,Et)=>{for(var mt in Et||(Et={}))jt.call(Et,mt)&&Vt(Pt,mt,Et[mt]);if(_e)for(var mt of _e(Et))kt.call(Et,mt)&&Vt(Pt,mt,Et[mt]);return Pt},Nt=(Pt,Et)=>{var mt={};for(var ct in Pt)jt.call(Pt,ct)&&Et.indexOf(ct)<0&&(mt[ct]=Pt[ct]);if(Pt!=null&&_e)for(var ct of _e(Pt))Et.indexOf(ct)<0&&kt.call(Pt,ct)&&(mt[ct]=Pt[ct]);return mt},st=(Pt,Et,mt)=>new Promise((ct,qt)=>{var Ht=Xe=>{try{it(mt.next(Xe))}catch(St){qt(St)}},Fe=Xe=>{try{it(mt.throw(Xe))}catch(St){qt(St)}},it=Xe=>Xe.done?ct(Xe.value):Promise.resolve(Xe.value).then(Ht,Fe);it((mt=mt.apply(Pt,Et)).next())});const ae=null,te=(Pt,Et)=>{var mt=Pt,{problemset:ct,globalSetting:qt,loading:Ht,dispatch:Fe,onRef:it=()=>{},editData:Xe,showAnswerTip:St=!0,editKey:De,callback:qe}=mt,yt=Nt(mt,["problemset","globalSetting","loading","dispatch","onRef","editData","showAnswerTip","editKey","callback"]);const[Ct,$t]=(0,E.useState)(""),[rn,In]=(0,E.useState)(!0),En=(0,lt.useParams)();(0,E.useEffect)(()=>{var an,Kt,Tt;if(!((an=Xe==null?void 0:Xe.question)!=null&&an.question_title)){In(!0),$t("");return}$t((Kt=Xe==null?void 0:Xe.question)==null?void 0:Kt.question_title),In(!!((Tt=Xe==null?void 0:Xe.question)!=null&&Tt.is_necessary))},[Xe]),(0,E.useImperativeHandle)(Et,()=>({onSave:nn}));const nn=an=>st(void 0,null,function*(){var Kt;if(!Ct)return Ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;let Tt;const At={question_title:Ct,question_type:3,insert_id:Xe.insert_id,is_necessary:Math.ceil(rn)};if((Kt=Xe.question)!=null&&Kt.id?Tt=yield(0,$e.wo)(je({pollsId:Xe.question.id},At)):Tt=yield(0,$e.Fd)(je({exercise_bank_id:En.topicId},At)),Tt.status===0){Ye.ZP.success("\u4FDD\u5B58\u6210\u529F"),qe("edit",-1);const Ft=yield Fe({type:"polls/getExerciseBanks",payload:je({},En)});an&&qe("addContinue",je({type:3,insert_id:Xe.question.id,key:Xe.key,question_type:1},At),Ft.questions)}}),vn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current",id:"down"},{name:"\u6DFB\u52A0",icon:"iconfont c-green ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjidaibeijing current",id:"edit"}],ln=an=>st(void 0,null,function*(){var Kt,Tt;switch(an.id){case"del":let At;we.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return st(this,null,function*(){var Ft;yield(0,$e.x$)({pollsId:(Ft=Xe==null?void 0:Xe.question)==null?void 0:Ft.id}),Fe({type:"polls/getExerciseBanks",payload:je({},En)})})}});break;case"up":case"down":yield(0,$e.vf)({pollsId:(Kt=Xe==null?void 0:Xe.question)==null?void 0:Kt.id,opr:an.id}),Fe({type:"polls/getExerciseBanks",payload:je({},En)});break;case"edit":qe("edit",Xe.key);break;case"add":qe("add",{type:3,key:Xe.key,insert_id:(Tt=Xe==null?void 0:Xe.question)==null?void 0:Tt.id,question_type:3});break}}),Tn=()=>{var an,Kt;return E.createElement("aside",null,E.createElement("div",{className:nt.questionType},E.createElement("div",null,E.createElement("span",{className:"font16"},"\u7B2C",Xe.key,"\u9898"),E.createElement("span",{className:"font16 c-light-black ml10"},"\u4E3B\u89C2\u9898"),E.createElement("span",{className:"tag-grey-eae ml10 mr10"},((an=Xe==null?void 0:Xe.question)==null?void 0:an.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54"))),E.createElement("div",{className:"mt5"},E.createElement(et.Z,{value:Xe.question.question_title}),E.createElement("div",{className:"mt15"},E.createElement(Se.default.TextArea,{placeholder:"\u5728\u6B64\u586B\u5165\u7B54\u6848",rows:5,disabled:!0}))),E.createElement("div",{className:nt.questionChoices},(Kt=Xe==null?void 0:Xe.question.answers)==null?void 0:Kt.map(function(Tt,At){return E.createElement(Ae.Z,null,E.createElement(Te.Z,null,E.createElement(Ne.default,{key:At,disabled:!0},E.createElement("span",{className:"c-black font14"},Tt.answer_text))))})))},xn=()=>E.createElement("aside",null,E.createElement("div",{className:nt.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898")," ",E.createElement(Ne.default,{checked:!!rn,className:"ml10",onChange:an=>In(an.target.checked)},"\u5FC5\u7B54"))),E.createElement("p",{className:nt.titleWrap},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},rows:1,value:Ct,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:an=>$t(an.target.value)})),St?E.createElement("p",{className:nt.titleWrap},E.createElement("span",{className:nt.required},"*"),E.createElement("span",{className:nt.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:nt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))):null,E.createElement(Ae.Z,{gutter:[12,12]},E.createElement(Te.Z,{flex:"1"}),E.createElement(Te.Z,{className:"tl"},E.createElement(dt.ZP,{type:"default",onClick:()=>{var an;(an=Xe.question)!=null&&an.id?qe("edit",-1):qe("del",Xe.key)}},"\u53D6\u6D88"),E.createElement(dt.ZP,{className:"ml20",type:"primary",onClick:()=>nn()},"\u4FDD\u5B58"),E.createElement(dt.ZP,{className:"ml20",type:"primary",onClick:()=>nn(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return E.createElement("section",{className:nt.wrap},De!==Xe.key&&Tn(),De===Xe.key&&xn())};var ee=(0,lt.connect)(({problemset:Pt,loading:Et,globalSetting:mt})=>({problemset:Pt,globalSetting:mt,loading:Et.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(te)),oe=re(4918),se={flex_box_center:"flex_box_center___IqikW",flex_space_between:"flex_space_between___H4npu",flex_box_vertical_center:"flex_box_vertical_center___pxWg2",flex_box_center_end:"flex_box_center_end___fI1p7",flex_box_column:"flex_box_column___uFxAf",bg:"bg___Emql5",containerTitle:"containerTitle___fmYJh",containerDesc:"containerDesc___CC8H4",listItem:"listItem___zg_9F",info:"info___RsS8d",title:"title___w3IkP",titleLeft:"titleLeft___IS2Mw",titleRight:"titleRight____welO",acitons:"acitons___np4Mm",export:"export___atwjg"},ne=re(126),pe=re(51316),xe=Object.defineProperty,ut=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,ht=(Pt,Et,mt)=>Et in Pt?xe(Pt,Et,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[Et]=mt,Dt=(Pt,Et)=>{for(var mt in Et||(Et={}))Ie.call(Et,mt)&&ht(Pt,mt,Et[mt]);if(ut)for(var mt of ut(Et))Ve.call(Et,mt)&&ht(Pt,mt,Et[mt]);return Pt},Ot=(Pt,Et)=>{var mt={};for(var ct in Pt)Ie.call(Pt,ct)&&Et.indexOf(ct)<0&&(mt[ct]=Pt[ct]);if(Pt!=null&&ut)for(var ct of ut(Pt))Et.indexOf(ct)<0&&Ve.call(Pt,ct)&&(mt[ct]=Pt[ct]);return mt},Jt=(Pt,Et,mt)=>new Promise((ct,qt)=>{var Ht=Xe=>{try{it(mt.next(Xe))}catch(St){qt(St)}},Fe=Xe=>{try{it(mt.throw(Xe))}catch(St){qt(St)}},it=Xe=>Xe.done?ct(Xe.value):Promise.resolve(Xe.value).then(Ht,Fe);it((mt=mt.apply(Pt,Et)).next())});const Yt=Pt=>{var Et=Pt,{polls:mt,globalSetting:ct,loading:qt,user:Ht,dispatch:Fe}=Et,it=Ot(Et,["polls","globalSetting","loading","user","dispatch"]),Xe,St,De,qe,yt,Ct,$t,rn,In,En,nn,vn,ln,Tn,xn,an,Kt;const Tt=(0,lt.useParams)(),{userInfo:At}=Ht,[Ft]=ge.default.useForm(),[Qt,hn]=(0,E.useState)([]),[pn,sn]=(0,E.useState)(!1);let[un,bn]=(0,E.useState)(-1);const On=[{name:"\u5355\u9009\u9898",id:1},{name:"\u591A\u9009\u9898",id:2},{name:"\u4E3B\u89C2\u9898",id:3}],vt=(0,E.useRef)();(0,E.useEffect)(()=>{var ye,Le,Oe,Ke,Bt,on;(ye=mt.exerciseBanks)!=null&&ye.questions&&(hn([...(Le=mt.exerciseBanks)==null?void 0:Le.questions]),Ft.setFieldsValue({exercise_name:(Ke=(Oe=mt.exerciseBanks)==null?void 0:Oe.poll)==null?void 0:Ke.name,exercise_description:(on=(Bt=mt.exerciseBanks)==null?void 0:Bt.poll)==null?void 0:on.description}))},[mt.exerciseBanks]),(0,E.useEffect)(()=>{Fe({type:"polls/getExerciseBanks",payload:Dt({},Tt)})},[Tt.categoryId]);const Gt=()=>Jt(void 0,null,function*(){yield Ft.validateFields();const ye=Ft.getFieldValue();ye.is_md=!0,ye.topicId=Tt.topicId,sn(!1),yield(0,$e.hO)(Dt({},ye)),Fe({type:"polls/getExerciseBanks",payload:Dt({},Tt)})}),cn=ye=>Jt(void 0,null,function*(){const Le=vt==null?void 0:vt.current;if(un!==-1){Ye.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}bn(Qt.length+1),hn([...Qt,{question:{question_type:ye}}])}),fn=()=>{Fe({type:"userDetail/setActionTabs",payload:{key:"UserDetail-SendToClass",params:{object_id:[Tt.topicId],object_type:"poll"}}})},He=(ye,Le,Oe)=>{switch(ye){case"edit":bn(Le);break;case"add":if(un!=-1){Ye.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}Qt.splice((Le==null?void 0:Le.key)+1,0,{insert_id:Le==null?void 0:Le.insert_id,question:Dt({},Le)}).slice(),hn([...Qt]),bn((Le==null?void 0:Le.key)+1);break;case"addContinue":Oe.splice(Le==null?void 0:Le.key,0,{insert_id:Le==null?void 0:Le.insert_id,question:Dt({},Le)}).slice(),hn([...Oe]),bn((Le==null?void 0:Le.key)+1);break;case"del":Qt.splice(Le-1,1),hn([...Qt]),bn(-1);break}},Ge=function(){return Qt==null?void 0:Qt.map(function(ye,Le){var Oe;if(ye.key=Le+1,ye.len=Qt.length,ye.question.question_type===1)return E.createElement("aside",null,E.createElement(ve,{ref:vt,editKey:un,callback:He,editData:ye}),E.createElement(Ee.Z,null));if(ye.question.question_type===2)return E.createElement("aside",null,E.createElement(Ue,{ref:vt,editKey:un,callback:He,editData:ye}),E.createElement(Ee.Z,null));if(((Oe=ye.question)==null?void 0:Oe.question_type)===3)return E.createElement("aside",null,E.createElement(ee,{ref:vt,editKey:un,callback:He,editData:ye}),E.createElement(Ee.Z,null))})};return E.createElement("section",{className:"edu-container"},E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},At&&E.createElement(Pe.Z,{separator:">"},E.createElement(Pe.Z.Item,null,E.createElement(lt.Link,{to:`/users/${At.login}/topics/personal`},"\u6211\u7684\u8BFE\u5802\u8D44\u6E90")),E.createElement(Pe.Z.Item,null,"\u8BE6\u60C5"))),E.createElement("aside",{className:[se.title,"mt20"].join(" ")},E.createElement(Ae.Z,{style:{width:"100%"}},E.createElement(Te.Z,{flex:"1"},E.createElement("strong",{className:"font20 ml5"},(St=(Xe=mt.exerciseBanks)==null?void 0:Xe.poll)==null?void 0:St.name)),E.createElement(Te.Z,null)))),E.createElement("section",{className:[se.bg,"pl30","pr30","pb30","mt20","relative"].join(" ")},E.createElement("div",{className:se.export},((De=mt.exerciseBanks)==null?void 0:De.authorize)&&E.createElement(E.Fragment,null,E.createElement("a",{onClick:ye=>{ye.preventDefault(),we.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>Jt(void 0,null,function*(){(yield(0,Ce.Tv)({object_type:"normal",object_id:[Tt.topicId]})).status===0&&lt.history.push(`/users/${Tt.username}/topics/personal`)})})}},"\u5220\u9664"),E.createElement(lt.Link,{to:`/users/${At.login}/topics/${Tt.topicId}/${Tt.topictype}/poll/edit`},"\u7F16\u8F91")),E.createElement("a",{onClick:ye=>{ye.preventDefault(),fn()}},"\u53D1\u9001")),E.createElement(he.default,{className:se.tabs},E.createElement(he.default.TabPane,{tab:E.createElement("span",{className:"font16 pt10 pb12"},"\u5185\u5BB9\u8BE6\u60C5"),key:"1"},E.createElement(et.Z,{className:"c-light-black",value:(yt=(qe=mt.exerciseBanks)==null?void 0:qe.poll)==null?void 0:yt.description}))),!pn&&E.createElement("aside",null,E.createElement("div",{className:se.containerDesc},E.createElement("div",null,($t=(Ct=mt.exerciseBanks)==null?void 0:Ct.poll)==null?void 0:$t.name),E.createElement("div",null,E.createElement(tt.Z,{title:"\u7F16\u8F91"},E.createElement("span",{onClick:()=>sn(!0),className:"iconfont c-green ml30 icon-bianjidaibeijing"})))),E.createElement(et.Z,{className:"c-light-black",value:(In=(rn=mt.exerciseBanks)==null?void 0:rn.poll)==null?void 0:In.description})),pn&&E.createElement(ge.default,{layout:"vertical",form:Ft},E.createElement(ge.default.Item,{name:"exercise_name",label:"\u95EE\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u95EE\u5377\u6807\u9898"}]},E.createElement(Se.default,{maxLength:60,placeholder:"\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),E.createElement(ge.default.Item,{label:"\u95EE\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},E.createElement(pe.h,{scrollId:"exercise_description",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),E.createElement(ge.default.Item,{className:"tr"},E.createElement(dt.ZP,{type:"primary",onClick:()=>{Gt()}},"\u4FDD\u5B58")))),Qt!=""&&E.createElement("section",{className:"mt20"},E.createElement(Ae.Z,null,E.createElement(Te.Z,{flex:1},E.createElement("span",{className:"c-light-black mr20"},"\u5355\u9009\u9898 ",(nn=(En=mt.exerciseBanks)==null?void 0:En.question_types)==null?void 0:nn.q_singles," \u9898"),E.createElement("span",{className:"c-light-black mr20"},"\u591A\u9009\u9898 ",(ln=(vn=mt.exerciseBanks)==null?void 0:vn.question_types)==null?void 0:ln.q_doubles," \u9898"),E.createElement("span",{className:"c-light-black"},"\u4E3B\u89C2\u9898 ",(xn=(Tn=mt.exerciseBanks)==null?void 0:Tn.question_types)==null?void 0:xn.q_mains," \u9898")),E.createElement(Te.Z,{className:"c-light-black"},"\u5408\u8BA1 ",E.createElement("span",{className:"c-orange"},(Kt=(an=mt.exerciseBanks)==null?void 0:an.question_types)==null?void 0:Kt.q_counts)," \u9898"))),E.createElement("section",{className:[se.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Qt!=""&&Ge(),Qt==""&&E.createElement(oe.Z,null)),E.createElement(ne.Z,null))};var Ut=(0,lt.connect)(({polls:Pt,loading:Et,user:mt,globalSetting:ct})=>({polls:Pt,globalSetting:ct,user:mt,loading:Et.effects}))(Yt)},126:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Ue}});var E=re(59301),lt=re(51429),ge=re(6767),Ye=re(62957),Ee=re(31691),Pe=re(458),Ae=re(47889),Te={title:"title___XAxiE",radioWrap:"radioWrap___k0pOB",radio:"radio___x9kMt",colorFF0000:"colorFF0000___IMgd0",pagination:"pagination___ou2ht",checkboxWrapper:"checkboxWrapper___kF7xI"},we=re(7408),he=re(32305),tt=re(29787),Se=re(62673),dt=re(24298),$e=re(26724),Ce=re.n($e),Ne=(Ze,ue,Je)=>new Promise((ke,Me)=>{var ft=ze=>{try{ce(Je.next(ze))}catch(Mt){Me(Mt)}},me=ze=>{try{ce(Je.throw(ze))}catch(Mt){Me(Mt)}},ce=ze=>ze.done?ke(ze.value):Promise.resolve(ze.value).then(ft,me);ce((Je=Je.apply(Ze,ue)).next())}),et=({username:Ze,setStages:ue,stages:Je,hasError:ke,setHasError:Me})=>{const[ft,me]=(0,E.useState)(""),[ce,ze]=(0,E.useState)(1),[Mt,xt]=(0,E.useState)([]),[ve,We]=(0,E.useState)(!1),[_e,jt]=(0,E.useState)(0);(0,E.useEffect)(()=>{kt({page:1,search:""},!0)},[]);const kt=(je,Nt)=>Ne(void 0,null,function*(){We(!0);const st=yield(0,dt.w3)({username:Ze,category:"manage",page:je.page,search:je.search});We(!1),xt(ae=>Nt?st==null?void 0:st.subjects:[...ae,...st==null?void 0:st.subjects]),jt(st==null?void 0:st.count)}),Vt=(0,E.useRef)();return E.createElement("div",{className:Te.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:ft,style:{width:500},onChange:je=>{me(je),ze(1),Vt.current.scrollTo({behavior:"smooth",top:0}),kt({page:1,search:je},!0)}})),E.createElement(tt.Z,{spinning:ve},E.createElement("div",{className:Te.radioWrap,ref:Vt},E.createElement(Ce(),{initialLoad:!1,pageStart:1,threshold:6,loadMore:()=>{ze(ce+1),kt({page:ce+1,search:ft},!1)},hasMore:Mt.length<_e,useWindow:!1},E.createElement(Ae.ZP.Group,{value:Je.subjectId,onChange:je=>{ue({subjectId:je.target.value,stage_ids:[]}),Me(!1)}},Mt.map(je=>{const Nt=je.stages.map(st=>({label:st.name,value:st.id}));return E.createElement("div",{key:je.id},E.createElement(Ae.ZP,{className:Te.radio,value:je.id},je.name),je.id===Je.subjectId&&E.createElement("div",{className:Te.checkboxWrapper},Nt.length>0&&E.createElement(Se.default,{indeterminate:Je.stage_ids.length>0&&Je.stage_ids.length<Nt.length,onChange:st=>{ue({subjectId:je.id,stage_ids:st.target.checked?Nt.map(ae=>ae.value):[]})},checked:Je.stage_ids.length===Nt.length},"\u5168\u9009"),E.createElement(Se.default.Group,{options:Nt,value:Je.stage_ids,onChange:st=>ue({subjectId:je.id,stage_ids:st})})))}))))),ke&&E.createElement("div",{className:Te.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u5B9E\u8DF5\u8BFE\u7A0B\u53CA\u7AE0\u8282"))},nt=re(28180),Lt=re(32435),wt=Object.defineProperty,rt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Rt=(Ze,ue,Je)=>ue in Ze?wt(Ze,ue,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Ze[ue]=Je,gt=(Ze,ue)=>{for(var Je in ue||(ue={}))pt.call(ue,Je)&&Rt(Ze,Je,ue[Je]);if(rt)for(var Je of rt(ue))Qe.call(ue,Je)&&Rt(Ze,Je,ue[Je]);return Ze},ot=(Ze,ue)=>{var Je={};for(var ke in Ze)pt.call(Ze,ke)&&ue.indexOf(ke)<0&&(Je[ke]=Ze[ke]);if(Ze!=null&&rt)for(var ke of rt(Ze))ue.indexOf(ke)<0&&Qe.call(Ze,ke)&&(Je[ke]=Ze[ke]);return Je},It=(Ze,ue,Je)=>new Promise((ke,Me)=>{var ft=ze=>{try{ce(Je.next(ze))}catch(Mt){Me(Mt)}},me=ze=>{try{ce(Je.throw(ze))}catch(Mt){Me(Mt)}},ce=ze=>ze.done?ke(ze.value):Promise.resolve(ze.value).then(ft,me);ce((Je=Je.apply(Ze,ue)).next())});const Be=Ze=>{var ue=Ze,{userDetail:Je,globalSetting:ke,loading:Me,user:ft,dispatch:me}=ue,ce=ot(ue,["userDetail","globalSetting","loading","user","dispatch"]),ze,Mt,xt,ve,We;const[_e,jt]=(0,E.useState)("course"),[kt,Vt]=(0,E.useState)(""),[je,Nt]=(0,E.useState)([]),[st,ae]=(0,E.useState)(),[te,ee]=(0,E.useState)(!1),[oe,se]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Je.actionTabs.key==="UserDetail-SendToClass"&&ne(kt)},[Je.actionTabs.key]);const ne=Ie=>It(void 0,null,function*(){ee(!0);const Ve=yield me({type:"userDetail/topicGetCourseList",payload:{search:Ie}});Ve&&Nt((Ve==null?void 0:Ve.courses)||[]),ee(!1)}),[pe,xe]=(0,E.useState)({subjectId:"",stage_ids:[]}),ut=()=>It(void 0,null,function*(){var Ie,Ve,ht,Dt,Ot,Jt;if(_e==="course"){if(!st){se(!0);return}const Yt=yield me({type:"userDetail/topicSendToClass",payload:gt({course_id:st},(Ie=Je.actionTabs)==null?void 0:Ie.params)});if(me({type:"userDetail/setActionTabs",payload:{}}),Yt&&Yt.status===0){const Ut={normal:"common_homework",group:"group_homework",exercise:"exercise",poll:"poll",videos:"video"};(0,we.xg)(`/classrooms/${st}/${Ut[(ht=(Ve=Je.actionTabs)==null?void 0:Ve.params)==null?void 0:ht.object_type]}`)}}else{if(!pe.subjectId||!pe.stage_ids.length){se(!0);return}(yield(0,Lt.nI)({id:(Ot=(Dt=Je.actionTabs)==null?void 0:Dt.params)==null?void 0:Ot.object_id,login:(Jt=ft.userInfo)==null?void 0:Jt.login},{stage_ids:pe.stage_ids})).status===0&&(ge.ZP.success("\u53D1\u9001\u6210\u529F"),me({type:"userDetail/setActionTabs",payload:{}}),(0,we.xg)(`/paths/${pe.subjectId}`))}});return E.createElement(Ye.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Je.actionTabs.key==="UserDetail-SendToClass",title:"\u53D1\u9001",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Me["userDetail/sendToClass"],width:600,afterClose:()=>{se(!1),Nt([]),xe({subjectId:"",stage_ids:[]}),Vt("")},onOk:ut,wrapClassName:nt.Z.CustomCss,onCancel:()=>{me({type:"userDetail/setActionTabs",payload:{}})}},E.createElement(Ee.default,{activeKey:_e,onChange:Ie=>{se(!1),jt(Ie)},items:[{label:"\u8BFE\u5802",key:"course",children:E.createElement("div",{className:Te.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:kt,style:{width:500},onChange:Ie=>{Vt(Ie),ne(Ie)}})),E.createElement(Pe.Z,{active:!0,loading:te},E.createElement("div",{className:Te.radioWrap},E.createElement(Ae.ZP.Group,{value:st,onChange:Ie=>{ae(Ie.target.value),se(!1)}},je.map((Ie,Ve)=>E.createElement(Ae.ZP,{className:Te.radio,value:Ie.course_id,key:Ie.course_id},Ie.course_name))))),((Mt=(ze=Je.actionTabs)==null?void 0:ze.params)==null?void 0:Mt.object_type)!=="videos"&&E.createElement("div",{className:Te.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9009\u62E9\u7684\u9898\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),oe&&E.createElement("div",{className:Te.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802")),show:!0},{label:"\u5B9E\u8DF5\u8BFE\u7A0B",key:"subject",children:E.createElement(et,{username:(xt=ft.userInfo)==null?void 0:xt.login,stages:pe,setStages:xe,hasError:oe,setHasError:se}),show:((We=(ve=Je.actionTabs)==null?void 0:ve.params)==null?void 0:We.object_type)==="videos"}].filter(Ie=>Ie.show)}))};var Ue=(0,lt.connect)(({userDetail:Ze,loading:ue,globalSetting:Je,user:ke})=>({userDetail:Ze,globalSetting:Je,loading:ue.effects,user:ke}))(Be)},96160:function(tn,_t,re){"use strict";re.d(_t,{AL:function(){return wt},Iy:function(){return tt},Qv:function(){return $e},ez:function(){return Lt},jb:function(){return Se}});var E=re(32834),lt=re.n(E),ge=re(11690),Ye=re.n(ge);let Ee=1;function Pe(gt,ot){const It=gt.match(/^(\s+)(?:```)/);if(It===null)return ot;const Be=It[1];return ot.split(`
`).map(Ue=>{const Ze=Ue.match(/^\s+/);if(Ze===null)return Ue;const[ue]=Ze;return ue.length>=Be.length?Ue.slice(Be.length):Ue}).join(`
`)}let Ae=[],Te=["<ul>"];const we=new(lt()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function tt(){Ae.length=0,Te=["<ul>"]}const Se={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function dt(gt,ot,It,Be){if(ot>=gt.length||gt[ot].level<=It)return ot;var Ue=gt[ot];Be.push("<li><a href='#"+Ee+Ue.anchor+"'>"+Ue.text+"</a>"),ot++;var Ze=[];return ot=dt(gt,ot,Ue.level,Ze),Ze.length>0&&(Be.push("<ul>"),Ze.forEach(function(ue){Be.push(ue)}),Be.push("</ul>")),Be.push("</li>"),ot=dt(gt,ot,It,Be),ot}function $e(){return dt(Ae,0,0,Te),Te.push("</ul>"),Te.join("")}const Ce={heading(gt){const ot=he.exec(gt);if(Ee+=1,ot)return{type:"heading",raw:ot[0],depth:ot[1].length,text:ot[2]}},fences(gt){const ot=this.rules.block.fences.exec(gt);if(ot){const It=ot[0];let Be=Pe(It,ot[3]||"");const Ue=ot[2]?ot[2].trim():ot[2];if(["latex","katex","math"].indexOf(Ue)>=0){const Ze=et(),ue=Be;Be=Ze,nt[Ze]={type:"block",expression:ue}}return{type:"code",raw:It,lang:Ue,text:Be}}}},Ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Re=0;const et=()=>`__special_katext_id_${Re++}__`;let nt={};function Lt(){return nt}function wt(){Re=0,nt={}}function rt(gt){return gt=gt.replace(Ne,(ot,It)=>{const Be=et();return nt[Be]={type:"inline",expression:It},Be}),gt}const pt=we.listitem;we.listitem=function(gt){return pt(rt(gt))};const Qe=we.paragraph;we.paragraph=function(gt){return Qe(rt(gt))};const Rt=we.tablecell;we.tablecell=function(gt,ot){return Rt(rt(gt),ot)},we.code=function(gt,ot,It){const Be=(ot||"").match(/\S*/)[0];return Be?["latex","katex","math"].indexOf(Be)>=0?`<p class='editormd-tex'>${gt}</p>`:`<pre class="prettyprint linenums"><code class="language-${ot}">${It?gt:(0,ge.escape)(gt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(It?gt:(0,ge.escape)(gt,!0))+"</code></pre>"},we.heading=function(gt,ot,It){let Be=this.options.headerPrefix+It.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ae.push({anchor:Be,level:ot,text:gt}),"<h"+ot+' id="'+Ee+Be+'">'+gt+"</h"+ot+">"},lt().setOptions({silent:!0,gfm:!0,pedantic:!1}),lt().use({tokenizer:Ce,renderer:we}),_t.ZP=lt()},86013:function(tn,_t,re){"use strict";var E=re(59301),lt=re(19248);const ge=Ye=>{let Ee;return typeof Ye=="object"&&(Ye!=null&&Ye.clearIcon)?Ee=Ye:Ye&&(Ee={clearIcon:E.createElement(lt.Z,null)}),Ee};_t.Z=ge},91882:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return ke}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(11592),Ee=re(26112),Pe=re(22703),Ae=re(48755),Te=re(84105),we=re(19563);const he=Me=>{let{children:ft}=Me;const{getPrefixCls:me}=E.useContext(Ae.E_),ce=me("breadcrumb");return E.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},ft===""?ft:ft||"/")};he.__ANT_BREADCRUMB_SEPARATOR=!0;var tt=he,Se=function(Me,ft){var me={};for(var ce in Me)Object.prototype.hasOwnProperty.call(Me,ce)&&ft.indexOf(ce)<0&&(me[ce]=Me[ce]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ce=Object.getOwnPropertySymbols(Me);ze<ce.length;ze++)ft.indexOf(ce[ze])<0&&Object.prototype.propertyIsEnumerable.call(Me,ce[ze])&&(me[ce[ze]]=Me[ce[ze]]);return me};function dt(Me,ft){if(Me.title===void 0||Me.title===null)return null;const me=Object.keys(ft).join("|");return typeof Me.title=="object"?Me.title:String(Me.title).replace(new RegExp(`:(${me})`,"g"),(ce,ze)=>ft[ze]||ce)}function $e(Me,ft,me,ce){if(me==null)return null;const{className:ze,onClick:Mt}=ft,xt=Se(ft,["className","onClick"]),ve=Object.assign(Object.assign({},(0,Ee.Z)(xt,{data:!0,aria:!0})),{onClick:Mt});return ce!==void 0?E.createElement("a",Object.assign({},ve,{className:ge()(`${Me}-link`,ze),href:ce}),me):E.createElement("span",Object.assign({},ve,{className:ge()(`${Me}-link`,ze)}),me)}function Ce(Me,ft){return(ce,ze,Mt,xt,ve)=>{if(ft)return ft(ce,ze,Mt,xt);const We=dt(ce,ze);return $e(Me,ce,We,ve)}}var Ne=function(Me,ft){var me={};for(var ce in Me)Object.prototype.hasOwnProperty.call(Me,ce)&&ft.indexOf(ce)<0&&(me[ce]=Me[ce]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ce=Object.getOwnPropertySymbols(Me);ze<ce.length;ze++)ft.indexOf(ce[ze])<0&&Object.prototype.propertyIsEnumerable.call(Me,ce[ze])&&(me[ce[ze]]=Me[ce[ze]]);return me};const Re=Me=>{const{prefixCls:ft,separator:me="/",children:ce,menu:ze,overlay:Mt,dropdownProps:xt,href:ve}=Me,_e=(jt=>{if(ze||Mt){const kt=Object.assign({},xt);if(ze){const Vt=ze||{},{items:je}=Vt,Nt=Ne(Vt,["items"]);kt.menu=Object.assign(Object.assign({},Nt),{items:je==null?void 0:je.map((st,ae)=>{var{key:te,title:ee,label:oe,path:se}=st,ne=Ne(st,["key","title","label","path"]);let pe=oe!=null?oe:ee;return se&&(pe=E.createElement("a",{href:`${ve}${se}`},pe)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:pe})})})}else Mt&&(kt.overlay=Mt);return E.createElement(we.Z,Object.assign({placement:"bottom"},kt),E.createElement("span",{className:`${ft}-overlay-link`},jt,E.createElement(Te.Z,null)))}return jt})(ce);return _e!=null?E.createElement(E.Fragment,null,E.createElement("li",null,_e),me&&E.createElement(tt,null,me)):null},et=Me=>{const{prefixCls:ft,children:me,href:ce}=Me,ze=Ne(Me,["prefixCls","children","href"]),{getPrefixCls:Mt}=E.useContext(Ae.E_),xt=Mt("breadcrumb",ft);return E.createElement(Re,Object.assign({},ze,{prefixCls:xt}),$e(xt,ze,me,ce))};et.__ANT_BREADCRUMB_ITEM=!0;var nt=et,Lt=re(36237),wt=re(63356),rt=re(16931),pt=re(51636);const Qe=Me=>{const{componentCls:ft,iconCls:me,calc:ce}=Me;return{[ft]:Object.assign(Object.assign({},(0,wt.Wf)(Me)),{color:Me.itemColor,fontSize:Me.fontSize,[me]:{fontSize:Me.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Me.linkColor,transition:`color ${Me.motionDurationMid}`,padding:`0 ${(0,Lt.unit)(Me.paddingXXS)}`,borderRadius:Me.borderRadiusSM,height:Me.fontHeight,display:"inline-block",marginInline:ce(Me.marginXXS).mul(-1).equal(),"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover}},(0,wt.Qy)(Me)),"li:last-child":{color:Me.lastItemColor},[`${ft}-separator`]:{marginInline:Me.separatorMargin,color:Me.separatorColor},[`${ft}-link`]:{[`
> ${me} + span,
> ${me} + a
`]:{marginInlineStart:Me.marginXXS}},[`${ft}-overlay-link`]:{borderRadius:Me.borderRadiusSM,height:Me.fontHeight,display:"inline-block",padding:`0 ${(0,Lt.unit)(Me.paddingXXS)}`,marginInline:ce(Me.marginXXS).mul(-1).equal(),[`> ${me}`]:{marginInlineStart:Me.marginXXS,fontSize:Me.fontSizeIcon},"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover,a:{color:Me.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Me.componentCls}-rtl`]:{direction:"rtl"}})}},Rt=Me=>({itemColor:Me.colorTextDescription,lastItemColor:Me.colorText,iconFontSize:Me.fontSize,linkColor:Me.colorTextDescription,linkHoverColor:Me.colorText,separatorColor:Me.colorTextDescription,separatorMargin:Me.marginXS});var gt=(0,rt.I$)("Breadcrumb",Me=>{const ft=(0,pt.mergeToken)(Me,{});return Qe(ft)},Rt),ot=function(Me,ft){var me={};for(var ce in Me)Object.prototype.hasOwnProperty.call(Me,ce)&&ft.indexOf(ce)<0&&(me[ce]=Me[ce]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ce=Object.getOwnPropertySymbols(Me);ze<ce.length;ze++)ft.indexOf(ce[ze])<0&&Object.prototype.propertyIsEnumerable.call(Me,ce[ze])&&(me[ce[ze]]=Me[ce[ze]]);return me};function It(Me){const{breadcrumbName:ft,children:me}=Me,ce=ot(Me,["breadcrumbName","children"]),ze=Object.assign({title:ft},ce);return me&&(ze.menu={items:me.map(Mt=>{var{breadcrumbName:xt}=Mt,ve=ot(Mt,["breadcrumbName"]);return Object.assign(Object.assign({},ve),{title:xt})})}),ze}function Be(Me,ft){return(0,E.useMemo)(()=>Me||(ft?ft.map(It):null),[Me,ft])}var Ue=function(Me,ft){var me={};for(var ce in Me)Object.prototype.hasOwnProperty.call(Me,ce)&&ft.indexOf(ce)<0&&(me[ce]=Me[ce]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ce=Object.getOwnPropertySymbols(Me);ze<ce.length;ze++)ft.indexOf(ce[ze])<0&&Object.prototype.propertyIsEnumerable.call(Me,ce[ze])&&(me[ce[ze]]=Me[ce[ze]]);return me};const Ze=(Me,ft)=>{if(ft===void 0)return ft;let me=(ft||"").replace(/^\//,"");return Object.keys(Me).forEach(ce=>{me=me.replace(`:${ce}`,Me[ce])}),me},ue=Me=>{const{prefixCls:ft,separator:me="/",style:ce,className:ze,rootClassName:Mt,routes:xt,items:ve,children:We,itemRender:_e,params:jt={}}=Me,kt=Ue(Me,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Vt,direction:je,breadcrumb:Nt}=E.useContext(Ae.E_);let st;const ae=Vt("breadcrumb",ft),[te,ee,oe]=gt(ae),se=Be(ve,xt),ne=Ce(ae,_e);if(se&&se.length>0){const ut=[],Ie=ve||xt;st=se.map((Ve,ht)=>{const{path:Dt,key:Ot,type:Jt,menu:Yt,overlay:Ut,onClick:Pt,className:Et,separator:mt,dropdownProps:ct}=Ve,qt=Ze(jt,Dt);qt!==void 0&&ut.push(qt);const Ht=Ot!=null?Ot:ht;if(Jt==="separator")return E.createElement(tt,{key:Ht},mt);const Fe={},it=ht===se.length-1;Yt?Fe.menu=Yt:Ut&&(Fe.overlay=Ut);let{href:Xe}=Ve;return ut.length&&qt!==void 0&&(Xe=`#/${ut.join("/")}`),E.createElement(Re,Object.assign({key:Ht},Fe,(0,Ee.Z)(Ve,{data:!0,aria:!0}),{className:Et,dropdownProps:ct,href:Xe,separator:it?"":me,onClick:Pt,prefixCls:ae}),ne(Ve,jt,Ie,ut,Xe))})}else if(We){const ut=(0,Ye.Z)(We).length;st=(0,Ye.Z)(We).map((Ie,Ve)=>{if(!Ie)return Ie;const ht=Ve===ut-1;return(0,Pe.Tm)(Ie,{separator:ht?"":me,key:Ve})})}const pe=ge()(ae,Nt==null?void 0:Nt.className,{[`${ae}-rtl`]:je==="rtl"},ze,Mt,ee,oe),xe=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),ce);return te(E.createElement("nav",Object.assign({className:pe,style:xe},kt),E.createElement("ol",null,st)))};ue.Item=nt,ue.Separator=tt;var Je=ue,ke=Je},62673:function(tn,_t,re){"use strict";re.d(_t,{default:function(){return gt}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(16632),Ee=re(8654),Pe=re(12919),Ae=re(63872),Te=re(48755),we=re(2171),he=re(83397),tt=re(56553),dt=E.createContext(null),$e=re(36170),Ce=re(74632),Ne=function(ot,It){var Be={};for(var Ue in ot)Object.prototype.hasOwnProperty.call(ot,Ue)&&It.indexOf(Ue)<0&&(Be[Ue]=ot[Ue]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ue=Object.getOwnPropertySymbols(ot);Ze<Ue.length;Ze++)It.indexOf(Ue[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ot,Ue[Ze])&&(Be[Ue[Ze]]=ot[Ue[Ze]]);return Be};const Re=(ot,It)=>{var Be;const{prefixCls:Ue,className:Ze,rootClassName:ue,children:Je,indeterminate:ke=!1,style:Me,onMouseEnter:ft,onMouseLeave:me,skipGroup:ce=!1,disabled:ze}=ot,Mt=Ne(ot,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:xt,direction:ve,checkbox:We}=E.useContext(Te.E_),_e=E.useContext(dt),{isFormItemInput:jt}=E.useContext(tt.aM),kt=E.useContext(we.Z),Vt=(Be=(_e==null?void 0:_e.disabled)||ze)!==null&&Be!==void 0?Be:kt,je=E.useRef(Mt.value),Nt=E.useRef(null),st=(0,Ee.sQ)(It,Nt);E.useEffect(()=>{_e==null||_e.registerValue(Mt.value)},[]),E.useEffect(()=>{if(!ce)return Mt.value!==je.current&&(_e==null||_e.cancelValue(je.current),_e==null||_e.registerValue(Mt.value),je.current=Mt.value),()=>_e==null?void 0:_e.cancelValue(Mt.value)},[Mt.value]),E.useEffect(()=>{var Ve;!((Ve=Nt.current)===null||Ve===void 0)&&Ve.input&&(Nt.current.input.indeterminate=ke)},[ke]);const ae=xt("checkbox",Ue),te=(0,he.Z)(ae),[ee,oe,se]=(0,$e.ZP)(ae,te),ne=Object.assign({},Mt);_e&&!ce&&(ne.onChange=function(){Mt.onChange&&Mt.onChange.apply(Mt,arguments),_e.toggleOption&&_e.toggleOption({label:Je,value:Mt.value})},ne.name=_e.name,ne.checked=_e.value.includes(Mt.value));const pe=ge()(`${ae}-wrapper`,{[`${ae}-rtl`]:ve==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:Vt,[`${ae}-wrapper-in-form-item`]:jt},We==null?void 0:We.className,Ze,ue,se,te,oe),xe=ge()({[`${ae}-indeterminate`]:ke},Ae.A,oe),[ut,Ie]=(0,Ce.Z)(ne.onClick);return ee(E.createElement(Pe.Z,{component:"Checkbox",disabled:Vt},E.createElement("label",{className:pe,style:Object.assign(Object.assign({},We==null?void 0:We.style),Me),onMouseEnter:ft,onMouseLeave:me,onClick:ut},E.createElement(Ye.Z,Object.assign({},ne,{onClick:Ie,prefixCls:ae,className:xe,disabled:Vt,ref:st})),Je!==void 0&&E.createElement("span",{className:`${ae}-label`},Je))))};var nt=E.forwardRef(Re),Lt=re(94480),wt=re(2738),rt=function(ot,It){var Be={};for(var Ue in ot)Object.prototype.hasOwnProperty.call(ot,Ue)&&It.indexOf(Ue)<0&&(Be[Ue]=ot[Ue]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Ue=Object.getOwnPropertySymbols(ot);Ze<Ue.length;Ze++)It.indexOf(Ue[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ot,Ue[Ze])&&(Be[Ue[Ze]]=ot[Ue[Ze]]);return Be},Qe=E.forwardRef((ot,It)=>{const{defaultValue:Be,children:Ue,options:Ze=[],prefixCls:ue,className:Je,rootClassName:ke,style:Me,onChange:ft}=ot,me=rt(ot,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:ze}=E.useContext(Te.E_),[Mt,xt]=E.useState(me.value||Be||[]),[ve,We]=E.useState([]);E.useEffect(()=>{"value"in me&&xt(me.value||[])},[me.value]);const _e=E.useMemo(()=>Ze.map(xe=>typeof xe=="string"||typeof xe=="number"?{label:xe,value:xe}:xe),[Ze]),jt=xe=>{We(ut=>ut.filter(Ie=>Ie!==xe))},kt=xe=>{We(ut=>[].concat((0,Lt.Z)(ut),[xe]))},Vt=xe=>{const ut=Mt.indexOf(xe.value),Ie=(0,Lt.Z)(Mt);ut===-1?Ie.push(xe.value):Ie.splice(ut,1),"value"in me||xt(Ie),ft==null||ft(Ie.filter(Ve=>ve.includes(Ve)).sort((Ve,ht)=>{const Dt=_e.findIndex(Jt=>Jt.value===Ve),Ot=_e.findIndex(Jt=>Jt.value===ht);return Dt-Ot}))},je=ce("checkbox",ue),Nt=`${je}-group`,st=(0,he.Z)(je),[ae,te,ee]=(0,$e.ZP)(je,st),oe=(0,wt.Z)(me,["value","disabled"]),se=Ze.length?_e.map(xe=>E.createElement(nt,{prefixCls:je,key:xe.value.toString(),disabled:"disabled"in xe?xe.disabled:me.disabled,value:xe.value,checked:Mt.includes(xe.value),onChange:xe.onChange,className:`${Nt}-item`,style:xe.style,title:xe.title,id:xe.id,required:xe.required},xe.label)):Ue,ne={toggleOption:Vt,value:Mt,disabled:me.disabled,name:me.name,registerValue:kt,cancelValue:jt},pe=ge()(Nt,{[`${Nt}-rtl`]:ze==="rtl"},Je,ke,ee,st,te);return ae(E.createElement("div",Object.assign({className:pe,style:Me},oe,{ref:It}),E.createElement(dt.Provider,{value:ne},se)))});const Rt=nt;Rt.Group=Qe,Rt.__ANT_CHECKBOX=!0;var gt=Rt},36170:function(tn,_t,re){"use strict";re.d(_t,{C2:function(){return Pe}});var E=re(36237),lt=re(63356),ge=re(51636),Ye=re(16931);const Ee=Ae=>{const{checkboxCls:Te}=Ae,we=`${Te}-wrapper`;return[{[`${Te}-group`]:Object.assign(Object.assign({},(0,lt.Wf)(Ae)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ae.marginXS,[`> ${Ae.antCls}-row`]:{flex:1}}),[we]:Object.assign(Object.assign({},(0,lt.Wf)(Ae)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${we}`]:{marginInlineStart:0},[`&${we}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Te]:Object.assign(Object.assign({},(0,lt.Wf)(Ae)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ae.borderRadiusSM,alignSelf:"center",[`${Te}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Te}-inner`]:Object.assign({},(0,lt.oN)(Ae))},[`${Te}-inner`]:{boxSizing:"border-box",display:"block",width:Ae.checkboxSize,height:Ae.checkboxSize,direction:"ltr",backgroundColor:Ae.colorBgContainer,border:`${(0,E.unit)(Ae.lineWidth)} ${Ae.lineType} ${Ae.colorBorder}`,borderRadius:Ae.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ae.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ae.calc(Ae.checkboxSize).div(14).mul(5).equal(),height:Ae.calc(Ae.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(Ae.lineWidthBold)} solid ${Ae.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ae.motionDurationFast} ${Ae.motionEaseInBack}, opacity ${Ae.motionDurationFast}`}},"& + span":{paddingInlineStart:Ae.paddingXS,paddingInlineEnd:Ae.paddingXS}})},{[`
${we}:not(${we}-disabled),
${Te}:not(${Te}-disabled)
`]:{[`&:hover ${Te}-inner`]:{borderColor:Ae.colorPrimary}},[`${we}:not(${we}-disabled)`]:{[`&:hover ${Te}-checked:not(${Te}-disabled) ${Te}-inner`]:{backgroundColor:Ae.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Te}-checked:not(${Te}-disabled):after`]:{borderColor:Ae.colorPrimaryHover}}},{[`${Te}-checked`]:{[`${Te}-inner`]:{backgroundColor:Ae.colorPrimary,borderColor:Ae.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ae.motionDurationMid} ${Ae.motionEaseOutBack} ${Ae.motionDurationFast}`}}},[`
${we}-checked:not(${we}-disabled),
${Te}-checked:not(${Te}-disabled)
`]:{[`&:hover ${Te}-inner`]:{backgroundColor:Ae.colorPrimaryHover,borderColor:"transparent"}}},{[Te]:{"&-indeterminate":{[`${Te}-inner`]:{backgroundColor:`${Ae.colorBgContainer} !important`,borderColor:`${Ae.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ae.calc(Ae.fontSizeLG).div(2).equal(),height:Ae.calc(Ae.fontSizeLG).div(2).equal(),backgroundColor:Ae.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Te}-inner`]:{backgroundColor:`${Ae.colorBgContainer} !important`,borderColor:`${Ae.colorPrimary} !important`}}}},{[`${we}-disabled`]:{cursor:"not-allowed"},[`${Te}-disabled`]:{[`&, ${Te}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Te}-inner`]:{background:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,"&:after":{borderColor:Ae.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ae.colorTextDisabled},[`&${Te}-indeterminate ${Te}-inner::after`]:{background:Ae.colorTextDisabled}}}]};function Pe(Ae,Te){const we=(0,ge.mergeToken)(Te,{checkboxCls:`.${Ae}`,checkboxSize:Te.controlInteractiveSize});return[Ee(we)]}_t.ZP=(0,Ye.I$)("Checkbox",(Ae,Te)=>{let{prefixCls:we}=Te;return[Pe(we,Ae)]})},38406:function(tn,_t,re){"use strict";var E=re(59301),lt=re(48755),ge=re(584);const Ye=Ee=>{const{componentName:Pe}=Ee,{getPrefixCls:Ae}=(0,E.useContext)(lt.E_),Te=Ae("empty");switch(Pe){case"Table":case"List":return E.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE,className:`${Te}-small`});case"Table.filter":return null;default:return E.createElement(ge.Z,null)}};_t.Z=Ye},37285:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return $e}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(48755),Ee=re(36237),Pe=re(63356),Ae=re(16931),Te=re(51636);const we=Ce=>{const{componentCls:Ne,sizePaddingEdgeHorizontal:Re,colorSplit:et,lineWidth:nt,textPaddingInline:Lt,orientationMargin:wt,verticalMarginInline:rt}=Ce;return{[Ne]:Object.assign(Object.assign({},(0,Pe.Wf)(Ce)),{borderBlockStart:`${(0,Ee.unit)(nt)} solid ${et}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:rt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Ee.unit)(nt)} solid ${et}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Ee.unit)(Ce.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Ee.unit)(Ce.dividerHorizontalWithTextGutterMargin)} 0`,color:Ce.colorTextHeading,fontWeight:500,fontSize:Ce.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${et}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Ee.unit)(nt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ne}-with-text-start`]:{"&::before":{width:`calc(${wt} * 100%)`},"&::after":{width:`calc(100% - ${wt} * 100%)`}},[`&-horizontal${Ne}-with-text-end`]:{"&::before":{width:`calc(100% - ${wt} * 100%)`},"&::after":{width:`calc(${wt} * 100%)`}},[`${Ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Lt},"&-dashed":{background:"none",borderColor:et,borderStyle:"dashed",borderWidth:`${(0,Ee.unit)(nt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ne}-dashed`]:{borderInlineStartWidth:nt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:et,borderStyle:"dotted",borderWidth:`${(0,Ee.unit)(nt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ne}-dotted`]:{borderInlineStartWidth:nt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ne}-with-text`]:{color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize},[`&-horizontal${Ne}-with-text-start${Ne}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ne}-inner-text`]:{paddingInlineStart:Re}},[`&-horizontal${Ne}-with-text-end${Ne}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ne}-inner-text`]:{paddingInlineEnd:Re}}})}},he=Ce=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ce.marginXS});var tt=(0,Ae.I$)("Divider",Ce=>{const Ne=(0,Te.mergeToken)(Ce,{dividerHorizontalWithTextGutterMargin:Ce.margin,dividerHorizontalGutterMargin:Ce.marginLG,sizePaddingEdgeHorizontal:0});return[we(Ne)]},he,{unitless:{orientationMargin:!0}}),Se=function(Ce,Ne){var Re={};for(var et in Ce)Object.prototype.hasOwnProperty.call(Ce,et)&&Ne.indexOf(et)<0&&(Re[et]=Ce[et]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Ce);nt<et.length;nt++)Ne.indexOf(et[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,et[nt])&&(Re[et[nt]]=Ce[et[nt]]);return Re},$e=Ce=>{const{getPrefixCls:Ne,direction:Re,className:et,style:nt}=(0,Ye.dj)("divider"),{prefixCls:Lt,type:wt="horizontal",orientation:rt="center",orientationMargin:pt,className:Qe,rootClassName:Rt,children:gt,dashed:ot,variant:It="solid",plain:Be,style:Ue}=Ce,Ze=Se(Ce,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),ue=Ne("divider",Lt),[Je,ke,Me]=tt(ue),ft=!!gt,me=E.useMemo(()=>rt==="left"?Re==="rtl"?"end":"start":rt==="right"?Re==="rtl"?"start":"end":rt,[Re,rt]),ce=me==="start"&&pt!=null,ze=me==="end"&&pt!=null,Mt=ge()(ue,et,ke,Me,`${ue}-${wt}`,{[`${ue}-with-text`]:ft,[`${ue}-with-text-${me}`]:ft,[`${ue}-dashed`]:!!ot,[`${ue}-${It}`]:It!=="solid",[`${ue}-plain`]:!!Be,[`${ue}-rtl`]:Re==="rtl",[`${ue}-no-default-orientation-margin-start`]:ce,[`${ue}-no-default-orientation-margin-end`]:ze},Qe,Rt),xt=E.useMemo(()=>typeof pt=="number"?pt:/^\d+$/.test(pt)?Number(pt):pt,[pt]),ve={marginInlineStart:ce?xt:void 0,marginInlineEnd:ze?xt:void 0};return Je(E.createElement("div",Object.assign({className:Mt,style:Object.assign(Object.assign({},nt),Ue)},Ze,{role:"separator"}),gt&&wt!=="vertical"&&E.createElement("span",{className:`${ue}-inner-text`,style:ve},gt)))}},36207:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return ut}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(33885),Ee=re(42978),Pe=re(43403),Ae=re(34280),Te=E.createContext(null),we=E.createContext({}),he=Te,tt=re(20068),Se=re(54476),dt=re(77900),$e=re(10228),Ce=re(26112),Ne=re(75931),Re=re(8654),et=["prefixCls","className","containerRef"],nt=function(Ve){var ht=Ve.prefixCls,Dt=Ve.className,Ot=Ve.containerRef,Jt=(0,Ne.Z)(Ve,et),Yt=E.useContext(we),Ut=Yt.panel,Pt=(0,Re.x1)(Ut,Ot);return E.createElement("div",(0,Se.Z)({className:ge()("".concat(ht,"-content"),Dt),role:"dialog",ref:Pt},(0,Ce.Z)(Ve,{aria:!0}),{"aria-modal":"true"},Jt))},Lt=nt,wt=re(48736);function rt(Ie){return typeof Ie=="string"&&String(Number(Ie))===Ie?((0,wt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ie)):Ie}function pt(Ie){warning(!("wrapperClassName"in Ie),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ie.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Qe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Rt(Ie,Ve){var ht,Dt,Ot,Jt=Ie.prefixCls,Yt=Ie.open,Ut=Ie.placement,Pt=Ie.inline,Et=Ie.push,mt=Ie.forceRender,ct=Ie.autoFocus,qt=Ie.keyboard,Ht=Ie.classNames,Fe=Ie.rootClassName,it=Ie.rootStyle,Xe=Ie.zIndex,St=Ie.className,De=Ie.id,qe=Ie.style,yt=Ie.motion,Ct=Ie.width,$t=Ie.height,rn=Ie.children,In=Ie.mask,En=Ie.maskClosable,nn=Ie.maskMotion,vn=Ie.maskClassName,ln=Ie.maskStyle,Tn=Ie.afterOpenChange,xn=Ie.onClose,an=Ie.onMouseEnter,Kt=Ie.onMouseOver,Tt=Ie.onMouseLeave,At=Ie.onClick,Ft=Ie.onKeyDown,Qt=Ie.onKeyUp,hn=Ie.styles,pn=Ie.drawerRender,sn=E.useRef(),un=E.useRef(),bn=E.useRef();E.useImperativeHandle(Ve,function(){return sn.current});var On=function(Wt){var zt=Wt.keyCode,yn=Wt.shiftKey;switch(zt){case $e.Z.TAB:{if(zt===$e.Z.TAB){if(!yn&&document.activeElement===bn.current){var Ln;(Ln=un.current)===null||Ln===void 0||Ln.focus({preventScroll:!0})}else if(yn&&document.activeElement===un.current){var kn;(kn=bn.current)===null||kn===void 0||kn.focus({preventScroll:!0})}}break}case $e.Z.ESC:{xn&&qt&&(Wt.stopPropagation(),xn(Wt));break}}};E.useEffect(function(){if(Yt&&ct){var en;(en=sn.current)===null||en===void 0||en.focus({preventScroll:!0})}},[Yt]);var vt=E.useState(!1),Gt=(0,Ee.Z)(vt,2),cn=Gt[0],fn=Gt[1],He=E.useContext(he),Ge;typeof Et=="boolean"?Ge=Et?{}:{distance:0}:Ge=Et||{};var ye=(ht=(Dt=(Ot=Ge)===null||Ot===void 0?void 0:Ot.distance)!==null&&Dt!==void 0?Dt:He==null?void 0:He.pushDistance)!==null&&ht!==void 0?ht:180,Le=E.useMemo(function(){return{pushDistance:ye,push:function(){fn(!0)},pull:function(){fn(!1)}}},[ye]);E.useEffect(function(){if(Yt){var en;He==null||(en=He.push)===null||en===void 0||en.call(He)}else{var Wt;He==null||(Wt=He.pull)===null||Wt===void 0||Wt.call(He)}},[Yt]),E.useEffect(function(){return function(){var en;He==null||(en=He.pull)===null||en===void 0||en.call(He)}},[]);var Oe=In&&E.createElement(dt.default,(0,Se.Z)({key:"mask"},nn,{visible:Yt}),function(en,Wt){var zt=en.className,yn=en.style;return E.createElement("div",{className:ge()("".concat(Jt,"-mask"),zt,Ht==null?void 0:Ht.mask,vn),style:(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},yn),ln),hn==null?void 0:hn.mask),onClick:En&&Yt?xn:void 0,ref:Wt})}),Ke=typeof yt=="function"?yt(Ut):yt,Bt={};if(cn&&ye)switch(Ut){case"top":Bt.transform="translateY(".concat(ye,"px)");break;case"bottom":Bt.transform="translateY(".concat(-ye,"px)");break;case"left":Bt.transform="translateX(".concat(ye,"px)");break;default:Bt.transform="translateX(".concat(-ye,"px)");break}Ut==="left"||Ut==="right"?Bt.width=rt(Ct):Bt.height=rt($t);var on={onMouseEnter:an,onMouseOver:Kt,onMouseLeave:Tt,onClick:At,onKeyDown:Ft,onKeyUp:Qt},mn=E.createElement(dt.default,(0,Se.Z)({key:"panel"},Ke,{visible:Yt,forceRender:mt,onVisibleChanged:function(Wt){Tn==null||Tn(Wt)},removeOnLeave:!1,leavedClassName:"".concat(Jt,"-content-wrapper-hidden")}),function(en,Wt){var zt=en.className,yn=en.style,Ln=E.createElement(Lt,(0,Se.Z)({id:De,containerRef:Wt,prefixCls:Jt,className:ge()(St,Ht==null?void 0:Ht.content),style:(0,Ye.Z)((0,Ye.Z)({},qe),hn==null?void 0:hn.content)},(0,Ce.Z)(Ie,{aria:!0}),on),rn);return E.createElement("div",(0,Se.Z)({className:ge()("".concat(Jt,"-content-wrapper"),Ht==null?void 0:Ht.wrapper,zt),style:(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},Bt),yn),hn==null?void 0:hn.wrapper)},(0,Ce.Z)(Ie,{data:!0})),pn?pn(Ln):Ln)}),Sn=(0,Ye.Z)({},it);return Xe&&(Sn.zIndex=Xe),E.createElement(he.Provider,{value:Le},E.createElement("div",{className:ge()(Jt,"".concat(Jt,"-").concat(Ut),Fe,(0,tt.Z)((0,tt.Z)({},"".concat(Jt,"-open"),Yt),"".concat(Jt,"-inline"),Pt)),style:Sn,tabIndex:-1,ref:sn,onKeyDown:On},Oe,E.createElement("div",{tabIndex:0,ref:un,style:Qe,"aria-hidden":"true","data-sentinel":"start"}),mn,E.createElement("div",{tabIndex:0,ref:bn,style:Qe,"aria-hidden":"true","data-sentinel":"end"})))}var gt=E.forwardRef(Rt),ot=gt,It=function(Ve){var ht=Ve.open,Dt=ht===void 0?!1:ht,Ot=Ve.prefixCls,Jt=Ot===void 0?"rc-drawer":Ot,Yt=Ve.placement,Ut=Yt===void 0?"right":Yt,Pt=Ve.autoFocus,Et=Pt===void 0?!0:Pt,mt=Ve.keyboard,ct=mt===void 0?!0:mt,qt=Ve.width,Ht=qt===void 0?378:qt,Fe=Ve.mask,it=Fe===void 0?!0:Fe,Xe=Ve.maskClosable,St=Xe===void 0?!0:Xe,De=Ve.getContainer,qe=Ve.forceRender,yt=Ve.afterOpenChange,Ct=Ve.destroyOnClose,$t=Ve.onMouseEnter,rn=Ve.onMouseOver,In=Ve.onMouseLeave,En=Ve.onClick,nn=Ve.onKeyDown,vn=Ve.onKeyUp,ln=Ve.panelRef,Tn=E.useState(!1),xn=(0,Ee.Z)(Tn,2),an=xn[0],Kt=xn[1],Tt=E.useState(!1),At=(0,Ee.Z)(Tt,2),Ft=At[0],Qt=At[1];(0,Ae.Z)(function(){Qt(!0)},[]);var hn=Ft?Dt:!1,pn=E.useRef(),sn=E.useRef();(0,Ae.Z)(function(){hn&&(sn.current=document.activeElement)},[hn]);var un=function(cn){var fn;if(Kt(cn),yt==null||yt(cn),!cn&&sn.current&&!((fn=pn.current)!==null&&fn!==void 0&&fn.contains(sn.current))){var He;(He=sn.current)===null||He===void 0||He.focus({preventScroll:!0})}},bn=E.useMemo(function(){return{panel:ln}},[ln]);if(!qe&&!an&&!hn&&Ct)return null;var On={onMouseEnter:$t,onMouseOver:rn,onMouseLeave:In,onClick:En,onKeyDown:nn,onKeyUp:vn},vt=(0,Ye.Z)((0,Ye.Z)({},Ve),{},{open:hn,prefixCls:Jt,placement:Ut,autoFocus:Et,keyboard:ct,width:Ht,mask:it,maskClosable:St,inline:De===!1,afterOpenChange:un,ref:pn},On);return E.createElement(we.Provider,{value:bn},E.createElement(Pe.Z,{open:hn||qe||an,autoDestroy:!1,getContainer:De,autoLock:it&&(hn||an)},E.createElement(ot,vt)))},Be=It,Ue=Be,Ze=re(62487),ue=re(75030),Je=re(86641),ke=re(55743),Me=re(48755),ft=re(91190),me=re(78776),ce=re(458),Mt=Ie=>{var Ve,ht;const{prefixCls:Dt,title:Ot,footer:Jt,extra:Yt,loading:Ut,onClose:Pt,headerStyle:Et,bodyStyle:mt,footerStyle:ct,children:qt,classNames:Ht,styles:Fe}=Ie,it=(0,Me.dj)("drawer"),Xe=E.useCallback(Ct=>E.createElement("button",{type:"button",onClick:Pt,"aria-label":"Close",className:`${Dt}-close`},Ct),[Pt]),[St,De]=(0,me.Z)((0,me.w)(Ie),(0,me.w)(it),{closable:!0,closeIconRender:Xe}),qe=E.useMemo(()=>{var Ct,$t;return!Ot&&!St?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Ct=it.styles)===null||Ct===void 0?void 0:Ct.header),Et),Fe==null?void 0:Fe.header),className:ge()(`${Dt}-header`,{[`${Dt}-header-close-only`]:St&&!Ot&&!Yt},($t=it.classNames)===null||$t===void 0?void 0:$t.header,Ht==null?void 0:Ht.header)},E.createElement("div",{className:`${Dt}-header-title`},De,Ot&&E.createElement("div",{className:`${Dt}-title`},Ot)),Yt&&E.createElement("div",{className:`${Dt}-extra`},Yt))},[St,De,Yt,Et,Dt,Ot]),yt=E.useMemo(()=>{var Ct,$t;if(!Jt)return null;const rn=`${Dt}-footer`;return E.createElement("div",{className:ge()(rn,(Ct=it.classNames)===null||Ct===void 0?void 0:Ct.footer,Ht==null?void 0:Ht.footer),style:Object.assign(Object.assign(Object.assign({},($t=it.styles)===null||$t===void 0?void 0:$t.footer),ct),Fe==null?void 0:Fe.footer)},Jt)},[Jt,ct,Dt]);return E.createElement(E.Fragment,null,qe,E.createElement("div",{className:ge()(`${Dt}-body`,Ht==null?void 0:Ht.body,(Ve=it.classNames)===null||Ve===void 0?void 0:Ve.body),style:Object.assign(Object.assign(Object.assign({},(ht=it.styles)===null||ht===void 0?void 0:ht.body),mt),Fe==null?void 0:Fe.body)},Ut?E.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Dt}-body-skeleton`}):qt),yt)},xt=re(36237),ve=re(63356),We=re(16931),_e=re(51636);const jt=Ie=>{const Ve="100%";return{left:`translateX(-${Ve})`,right:`translateX(${Ve})`,top:`translateY(-${Ve})`,bottom:`translateY(${Ve})`}[Ie]},kt=(Ie,Ve)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ie),{"&-active":Ve}),"&-leave":Object.assign(Object.assign({},Ve),{"&-active":Ie})}),Vt=(Ie,Ve)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ve}`}}},kt({opacity:Ie},{opacity:1})),je=(Ie,Ve)=>[Vt(.7,Ve),kt({transform:jt(Ie)},{transform:"none"})];var st=Ie=>{const{componentCls:Ve,motionDurationSlow:ht}=Ie;return{[Ve]:{[`${Ve}-mask-motion`]:Vt(0,ht),[`${Ve}-panel-motion`]:["left","right","top","bottom"].reduce((Dt,Ot)=>Object.assign(Object.assign({},Dt),{[`&-${Ot}`]:je(Ot,ht)}),{})}}};const ae=Ie=>{const{borderRadiusSM:Ve,componentCls:ht,zIndexPopup:Dt,colorBgMask:Ot,colorBgElevated:Jt,motionDurationSlow:Yt,motionDurationMid:Ut,paddingXS:Pt,padding:Et,paddingLG:mt,fontSizeLG:ct,lineHeightLG:qt,lineWidth:Ht,lineType:Fe,colorSplit:it,marginXS:Xe,colorIcon:St,colorIconHover:De,colorBgTextHover:qe,colorBgTextActive:yt,colorText:Ct,fontWeightStrong:$t,footerPaddingBlock:rn,footerPaddingInline:In,calc:En}=Ie,nn=`${ht}-content-wrapper`;return{[ht]:{position:"fixed",inset:0,zIndex:Dt,pointerEvents:"none",color:Ct,"&-pure":{position:"relative",background:Jt,display:"flex",flexDirection:"column",[`&${ht}-left`]:{boxShadow:Ie.boxShadowDrawerLeft},[`&${ht}-right`]:{boxShadow:Ie.boxShadowDrawerRight},[`&${ht}-top`]:{boxShadow:Ie.boxShadowDrawerUp},[`&${ht}-bottom`]:{boxShadow:Ie.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ht}-mask`]:{position:"absolute",inset:0,zIndex:Dt,background:Ot,pointerEvents:"auto"},[nn]:{position:"absolute",zIndex:Dt,maxWidth:"100vw",transition:`all ${Yt}`,"&-hidden":{display:"none"}},[`&-left > ${nn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ie.boxShadowDrawerLeft},[`&-right > ${nn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ie.boxShadowDrawerRight},[`&-top > ${nn}`]:{top:0,insetInline:0,boxShadow:Ie.boxShadowDrawerUp},[`&-bottom > ${nn}`]:{bottom:0,insetInline:0,boxShadow:Ie.boxShadowDrawerDown},[`${ht}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Jt,pointerEvents:"auto"},[`${ht}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,xt.unit)(Et)} ${(0,xt.unit)(mt)}`,fontSize:ct,lineHeight:qt,borderBottom:`${(0,xt.unit)(Ht)} ${Fe} ${it}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ht}-extra`]:{flex:"none"},[`${ht}-close`]:Object.assign({display:"inline-flex",width:En(ct).add(Pt).equal(),height:En(ct).add(Pt).equal(),borderRadius:Ve,justifyContent:"center",alignItems:"center",marginInlineEnd:Xe,color:St,fontWeight:$t,fontSize:ct,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ut}`,textRendering:"auto","&:hover":{color:De,backgroundColor:qe,textDecoration:"none"},"&:active":{backgroundColor:yt}},(0,ve.Qy)(Ie)),[`${ht}-title`]:{flex:1,margin:0,fontWeight:Ie.fontWeightStrong,fontSize:ct,lineHeight:qt},[`${ht}-body`]:{flex:1,minWidth:0,minHeight:0,padding:mt,overflow:"auto",[`${ht}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ht}-footer`]:{flexShrink:0,padding:`${(0,xt.unit)(rn)} ${(0,xt.unit)(In)}`,borderTop:`${(0,xt.unit)(Ht)} ${Fe} ${it}`},"&-rtl":{direction:"rtl"}}}},te=Ie=>({zIndexPopup:Ie.zIndexPopupBase,footerPaddingBlock:Ie.paddingXS,footerPaddingInline:Ie.padding});var ee=(0,We.I$)("Drawer",Ie=>{const Ve=(0,_e.mergeToken)(Ie,{});return[ae(Ve),st(Ve)]},te),oe=function(Ie,Ve){var ht={};for(var Dt in Ie)Object.prototype.hasOwnProperty.call(Ie,Dt)&&Ve.indexOf(Dt)<0&&(ht[Dt]=Ie[Dt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Dt=Object.getOwnPropertySymbols(Ie);Ot<Dt.length;Ot++)Ve.indexOf(Dt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Dt[Ot])&&(ht[Dt[Ot]]=Ie[Dt[Ot]]);return ht};const se=null,ne={distance:180},pe=Ie=>{var Ve;const{rootClassName:ht,width:Dt,height:Ot,size:Jt="default",mask:Yt=!0,push:Ut=ne,open:Pt,afterOpenChange:Et,onClose:mt,prefixCls:ct,getContainer:qt,style:Ht,className:Fe,visible:it,afterVisibleChange:Xe,maskStyle:St,drawerStyle:De,contentWrapperStyle:qe}=Ie,yt=oe(Ie,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Ct,getPrefixCls:$t,direction:rn,className:In,style:En,classNames:nn,styles:vn}=(0,Me.dj)("drawer"),ln=$t("drawer",ct),[Tn,xn,an]=ee(ln),Kt=qt===void 0&&Ct?()=>Ct(document.body):qt,Tt=ge()({"no-mask":!Yt,[`${ln}-rtl`]:rn==="rtl"},ht,xn,an),At=E.useMemo(()=>Dt!=null?Dt:Jt==="large"?736:378,[Dt,Jt]),Ft=E.useMemo(()=>Ot!=null?Ot:Jt==="large"?736:378,[Ot,Jt]),Qt={motionName:(0,Je.m)(ln,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},hn=vt=>({motionName:(0,Je.m)(ln,`panel-motion-${vt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),pn=(0,ft.H)(),[sn,un]=(0,ue.Cn)("Drawer",yt.zIndex),{classNames:bn={},styles:On={}}=yt;return Tn(E.createElement(Ze.Z,{form:!0,space:!0},E.createElement(ke.Z.Provider,{value:un},E.createElement(Ue,Object.assign({prefixCls:ln,onClose:mt,maskMotion:Qt,motion:hn},yt,{classNames:{mask:ge()(bn.mask,nn.mask),content:ge()(bn.content,nn.content),wrapper:ge()(bn.wrapper,nn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},On.mask),St),vn.mask),content:Object.assign(Object.assign(Object.assign({},On.content),De),vn.content),wrapper:Object.assign(Object.assign(Object.assign({},On.wrapper),qe),vn.wrapper)},open:Pt!=null?Pt:it,mask:Yt,push:Ut,width:At,height:Ft,style:Object.assign(Object.assign({},En),Ht),className:ge()(In,Fe),rootClassName:Tt,getContainer:Kt,afterOpenChange:Et!=null?Et:Xe,panelRef:pn,zIndex:sn}),E.createElement(Mt,Object.assign({prefixCls:ln},yt,{onClose:mt}))))))},xe=Ie=>{const{prefixCls:Ve,style:ht,className:Dt,placement:Ot="right"}=Ie,Jt=oe(Ie,["prefixCls","style","className","placement"]),{getPrefixCls:Yt}=E.useContext(Me.E_),Ut=Yt("drawer",Ve),[Pt,Et,mt]=ee(Ut),ct=ge()(Ut,`${Ut}-pure`,`${Ut}-${Ot}`,Et,mt,Dt);return Pt(E.createElement("div",{className:ct,style:ht},E.createElement(Mt,Object.assign({prefixCls:Ut},Jt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=xe;var ut=pe},19563:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return xt}});var E=re(59301),lt=re(33853),ge=re(38819),Ye=re(92310),Ee=re.n(Ye),Pe=re(96478),Ae=re(6089),Te=re(18929),we=re(2738),he=re(75030),Se=ve=>typeof ve!="object"&&typeof ve!="function"||ve===null,dt=re(52838),$e=re(45915),Ce=re(22703),Ne=re(32383),Re=re(55743),et=re(48755),nt=re(83397),Lt=re(93041),wt=re(78857),rt=re(57700),pt=re(36237),Qe=re(63356),Rt=re(46e3),gt=re(93873),ot=re(34925),It=re(37645),Be=re(36305),Ue=re(16931),Ze=re(51636),Je=ve=>{const{componentCls:We,menuCls:_e,colorError:jt,colorTextLightSolid:kt}=ve,Vt=`${_e}-item`;return{[`${We}, ${We}-menu-submenu`]:{[`${_e} ${Vt}`]:{[`&${Vt}-danger:not(${Vt}-disabled)`]:{color:jt,"&:hover":{color:kt,backgroundColor:jt}}}}}};const ke=ve=>{const{componentCls:We,menuCls:_e,zIndexPopup:jt,dropdownArrowDistance:kt,sizePopupArrow:Vt,antCls:je,iconCls:Nt,motionDurationMid:st,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:pe}=ve;return[{[We]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:jt,display:"block","&::before":{position:"absolute",insetBlock:ve.calc(Vt).div(2).sub(kt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${je}-btn`]:{[`& > ${Nt}-down, & > ${je}-btn-icon > ${Nt}-down`]:{fontSize:se}},[`${We}-wrap`]:{position:"relative",[`${je}-btn > ${Nt}-down`]:{fontSize:se},[`${Nt}-down::before`]:{transition:`transform ${st}`}},[`${We}-wrap-open`]:{[`${Nt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${je}-slide-down-enter${je}-slide-down-enter-active${We}-placement-bottomLeft,
&${je}-slide-down-appear${je}-slide-down-appear-active${We}-placement-bottomLeft,
&${je}-slide-down-enter${je}-slide-down-enter-active${We}-placement-bottom,
&${je}-slide-down-appear${je}-slide-down-appear-active${We}-placement-bottom,
&${je}-slide-down-enter${je}-slide-down-enter-active${We}-placement-bottomRight,
&${je}-slide-down-appear${je}-slide-down-appear-active${We}-placement-bottomRight`]:{animationName:Rt.fJ},[`&${je}-slide-up-enter${je}-slide-up-enter-active${We}-placement-topLeft,
&${je}-slide-up-appear${je}-slide-up-appear-active${We}-placement-topLeft,
&${je}-slide-up-enter${je}-slide-up-enter-active${We}-placement-top,
&${je}-slide-up-appear${je}-slide-up-appear-active${We}-placement-top,
&${je}-slide-up-enter${je}-slide-up-enter-active${We}-placement-topRight,
&${je}-slide-up-appear${je}-slide-up-appear-active${We}-placement-topRight`]:{animationName:Rt.Qt},[`&${je}-slide-down-leave${je}-slide-down-leave-active${We}-placement-bottomLeft,
&${je}-slide-down-leave${je}-slide-down-leave-active${We}-placement-bottom,
&${je}-slide-down-leave${je}-slide-down-leave-active${We}-placement-bottomRight`]:{animationName:Rt.Uw},[`&${je}-slide-up-leave${je}-slide-up-leave-active${We}-placement-topLeft,
&${je}-slide-up-leave${je}-slide-up-leave-active${We}-placement-top,
&${je}-slide-up-leave${je}-slide-up-leave-active${We}-placement-topRight`]:{animationName:Rt.ly}}},(0,It.ZP)(ve,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${We} ${_e}`]:{position:"relative",margin:0},[`${_e}-submenu-popup`]:{position:"absolute",zIndex:jt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${We}, ${We}-menu-submenu`]:Object.assign(Object.assign({},(0,Qe.Wf)(ve)),{[_e]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary},(0,Qe.Qy)(ve)),{"&:empty":{padding:0,boxShadow:"none"},[`${_e}-item-group-title`]:{padding:`${(0,pt.unit)(ae)} ${(0,pt.unit)(ne)}`,color:ve.colorTextDescription,transition:`all ${st}`},[`${_e}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${_e}-item-icon`]:{minWidth:te,marginInlineEnd:ve.marginXS,fontSize:ve.fontSizeSM},[`${_e}-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:'""'}},[`${_e}-item-extra`]:{paddingInlineStart:ve.padding,marginInlineStart:"auto",fontSize:ve.fontSizeSM,color:ve.colorTextDescription}},[`${_e}-item, ${_e}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,pt.unit)(ae)} ${(0,pt.unit)(ne)}`,color:ve.colorText,fontWeight:"normal",fontSize:te,lineHeight:ve.lineHeight,cursor:"pointer",transition:`all ${st}`,borderRadius:ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:ve.controlItemBgHover}},(0,Qe.Qy)(ve)),{"&-selected":{color:ve.colorPrimary,backgroundColor:ve.controlItemBgActive,"&:hover, &-active":{backgroundColor:ve.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,pt.unit)(ve.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ve.colorSplit},[`${We}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,[`${We}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ve.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${_e}-item-group-list`]:{margin:`0 ${(0,pt.unit)(ve.marginXS)}`,padding:0,listStyle:"none"},[`${_e}-submenu-title`]:{paddingInlineEnd:ve.calc(ne).add(ve.fontSizeSM).equal()},[`${_e}-submenu-vertical`]:{position:"relative"},[`${_e}-submenu${_e}-submenu-disabled ${We}-menu-submenu-title`]:{[`&, ${We}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${_e}-submenu-selected ${We}-menu-submenu-title`]:{color:ve.colorPrimary}})})},[(0,Rt.oN)(ve,"slide-up"),(0,Rt.oN)(ve,"slide-down"),(0,gt.Fm)(ve,"move-up"),(0,gt.Fm)(ve,"move-down"),(0,ot._y)(ve,"zoom-big")]]},Me=ve=>Object.assign(Object.assign({zIndexPopup:ve.zIndexPopupBase+50,paddingBlock:(ve.controlHeight-ve.fontSize*ve.lineHeight)/2},(0,It.wZ)({contentRadius:ve.borderRadiusLG,limitVerticalRadius:!0})),(0,Be.w)(ve));var ft=(0,Ue.I$)("Dropdown",ve=>{const{marginXXS:We,sizePopupArrow:_e,paddingXXS:jt,componentCls:kt}=ve,Vt=(0,Ze.mergeToken)(ve,{menuCls:`${kt}-menu`,dropdownArrowDistance:ve.calc(_e).div(2).add(We).equal(),dropdownEdgeChildPadding:jt});return[ke(Vt),Je(Vt)]},Me,{resetStyle:!1});const me=null,ce=ve=>{var We;const{menu:_e,arrow:jt,prefixCls:kt,children:Vt,trigger:je,disabled:Nt,dropdownRender:st,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:pe,onVisibleChange:xe,mouseEnterDelay:ut=.15,mouseLeaveDelay:Ie=.1,autoAdjustOverflow:Ve=!0,placement:ht="",overlay:Dt,transitionName:Ot}=ve,{getPopupContainer:Jt,getPrefixCls:Yt,direction:Ut,dropdown:Pt}=E.useContext(et.E_),Et=(0,Ne.ln)("Dropdown"),mt=E.useMemo(()=>{const Kt=Yt();return Ot!==void 0?Ot:ht.includes("top")?`${Kt}-slide-down`:`${Kt}-slide-up`},[Yt,ht,Ot]),ct=E.useMemo(()=>ht?ht.includes("Center")?ht.slice(0,ht.indexOf("Center")):ht:Ut==="rtl"?"bottomRight":"bottomLeft",[ht,Ut]),qt=Yt("dropdown",kt),Ht=(0,nt.Z)(qt),[Fe,it,Xe]=ft(qt,Ht),[,St]=(0,rt.ZP)(),De=E.Children.only(Se(Vt)?E.createElement("span",null,Vt):Vt),qe=(0,Ce.Tm)(De,{className:Ee()(`${qt}-trigger`,{[`${qt}-rtl`]:Ut==="rtl"},De.props.className),disabled:(We=De.props.disabled)!==null&&We!==void 0?We:Nt}),yt=Nt?[]:je,Ct=!!(yt!=null&&yt.includes("contextMenu")),[$t,rn]=(0,Te.Z)(!1,{value:se!=null?se:pe}),In=(0,Ae.Z)(Kt=>{ne==null||ne(Kt,{source:"trigger"}),xe==null||xe(Kt),rn(Kt)}),En=Ee()(te,ee,it,Xe,Ht,Pt==null?void 0:Pt.className,{[`${qt}-rtl`]:Ut==="rtl"}),nn=(0,dt.Z)({arrowPointAtCenter:typeof jt=="object"&&jt.pointAtCenter,autoAdjustOverflow:Ve,offset:St.marginXXS,arrowWidth:jt?St.sizePopupArrow:0,borderRadius:St.borderRadius}),vn=E.useCallback(()=>{_e!=null&&_e.selectable&&(_e!=null&&_e.multiple)||(ne==null||ne(!1,{source:"menu"}),rn(!1))},[_e==null?void 0:_e.selectable,_e==null?void 0:_e.multiple]),ln=()=>{let Kt;return _e!=null&&_e.items?Kt=E.createElement(Lt.default,Object.assign({},_e)):typeof Dt=="function"?Kt=Dt():Kt=Dt,st&&(Kt=st(Kt)),Kt=E.Children.only(typeof Kt=="string"?E.createElement("span",null,Kt):Kt),E.createElement(wt.J,{prefixCls:`${qt}-menu`,rootClassName:Ee()(Xe,Ht),expandIcon:E.createElement("span",{className:`${qt}-menu-submenu-arrow`},Ut==="rtl"?E.createElement(lt.Z,{className:`${qt}-menu-submenu-arrow-icon`}):E.createElement(ge.Z,{className:`${qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:vn,validator:Tt=>{let{mode:At}=Tt}},Kt)},[Tn,xn]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let an=E.createElement(Pe.Z,Object.assign({alignPoint:Ct},(0,we.Z)(ve,["rootClassName"]),{mouseEnterDelay:ut,mouseLeaveDelay:Ie,visible:$t,builtinPlacements:nn,arrow:!!jt,overlayClassName:En,prefixCls:qt,getPopupContainer:ae||Jt,transitionName:mt,trigger:yt,overlay:ln,placement:ct,onVisibleChange:In,overlayStyle:Object.assign(Object.assign(Object.assign({},Pt==null?void 0:Pt.style),oe),{zIndex:Tn})}),qe);return Tn&&(an=E.createElement(Re.Z.Provider,{value:xn},an)),Fe(an)},ze=(0,$e.Z)(ce,"align",void 0,"dropdown",ve=>ve),Mt=ve=>E.createElement(ze,Object.assign({},ve),E.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=Mt;var xt=ce},75727:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return $e}});var E=re(19563),lt=re(59301),ge=re(18785),Ye=re(92310),Ee=re.n(Ye),Pe=re(7939),Ae=re(48755),Te=re(44104),we=re(70045),he=function(Ce,Ne){var Re={};for(var et in Ce)Object.prototype.hasOwnProperty.call(Ce,et)&&Ne.indexOf(et)<0&&(Re[et]=Ce[et]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,et=Object.getOwnPropertySymbols(Ce);nt<et.length;nt++)Ne.indexOf(et[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,et[nt])&&(Re[et[nt]]=Ce[et[nt]]);return Re};const tt=Ce=>{const{getPopupContainer:Ne,getPrefixCls:Re,direction:et}=lt.useContext(Ae.E_),{prefixCls:nt,type:Lt="default",danger:wt,disabled:rt,loading:pt,onClick:Qe,htmlType:Rt,children:gt,className:ot,menu:It,arrow:Be,autoFocus:Ue,overlay:Ze,trigger:ue,align:Je,open:ke,onOpenChange:Me,placement:ft,getPopupContainer:me,href:ce,icon:ze=lt.createElement(ge.Z,null),title:Mt,buttonsRender:xt=ut=>ut,mouseEnterDelay:ve,mouseLeaveDelay:We,overlayClassName:_e,overlayStyle:jt,destroyPopupOnHide:kt,dropdownRender:Vt}=Ce,je=he(Ce,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Nt=Re("dropdown",nt),st=`${Nt}-button`,ae={menu:It,arrow:Be,autoFocus:Ue,align:Je,disabled:rt,trigger:rt?[]:ue,onOpenChange:Me,getPopupContainer:me||Ne,mouseEnterDelay:ve,mouseLeaveDelay:We,overlayClassName:_e,overlayStyle:jt,destroyPopupOnHide:kt,dropdownRender:Vt},{compactSize:te,compactItemClassnames:ee}=(0,we.ri)(Nt,et),oe=Ee()(st,ee,ot);"overlay"in Ce&&(ae.overlay=Ze),"open"in Ce&&(ae.open=ke),"placement"in Ce?ae.placement=ft:ae.placement=et==="rtl"?"bottomLeft":"bottomRight";const se=lt.createElement(Pe.ZP,{type:Lt,danger:wt,disabled:rt,loading:pt,onClick:Qe,htmlType:Rt,href:ce,title:Mt},gt),ne=lt.createElement(Pe.ZP,{type:Lt,danger:wt,icon:ze}),[pe,xe]=xt([se,ne]);return lt.createElement(Te.Z.Compact,Object.assign({className:oe,size:te,block:!0},je),pe,lt.createElement(E.Z,Object.assign({},ae),xe))};tt.__ANT_BUTTON=!0;var Se=tt;const dt=E.Z;dt.Button=Se;var $e=dt},584:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Lt}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(9017),Ee=re(17835),Pe=re(57700),Te=()=>{const[,wt]=(0,Pe.ZP)(),[rt]=(0,Ye.Z)("Empty"),Qe=new Ee.FastColor(wt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:Qe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(rt==null?void 0:rt.description)||"Empty"),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(24 31.67)"},E.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),E.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),E.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),E.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),E.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),E.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),E.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},E.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),E.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,wt]=(0,Pe.ZP)(),[rt]=(0,Ye.Z)("Empty"),{colorFill:pt,colorFillTertiary:Qe,colorFillQuaternary:Rt,colorBgContainer:gt}=wt,{borderColor:ot,shadowColor:It,contentColor:Be}=(0,E.useMemo)(()=>({borderColor:new Ee.FastColor(pt).onBackground(gt).toHexString(),shadowColor:new Ee.FastColor(Qe).onBackground(gt).toHexString(),contentColor:new Ee.FastColor(Rt).onBackground(gt).toHexString()}),[pt,Qe,Rt,gt]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(rt==null?void 0:rt.description)||"Empty"),E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{fill:It,cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{fillRule:"nonzero",stroke:ot},E.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),E.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Be}))))},tt=re(16931),Se=re(51636);const dt=wt=>{const{componentCls:rt,margin:pt,marginXS:Qe,marginXL:Rt,fontSize:gt,lineHeight:ot}=wt;return{[rt]:{marginInline:Qe,fontSize:gt,lineHeight:ot,textAlign:"center",[`${rt}-image`]:{height:wt.emptyImgHeight,marginBottom:Qe,opacity:wt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${rt}-description`]:{color:wt.colorTextDescription},[`${rt}-footer`]:{marginTop:pt},"&-normal":{marginBlock:Rt,color:wt.colorTextDescription,[`${rt}-description`]:{color:wt.colorTextDescription},[`${rt}-image`]:{height:wt.emptyImgHeightMD}},"&-small":{marginBlock:Qe,color:wt.colorTextDescription,[`${rt}-image`]:{height:wt.emptyImgHeightSM}}}}};var $e=(0,tt.I$)("Empty",wt=>{const{componentCls:rt,controlHeightLG:pt,calc:Qe}=wt,Rt=(0,Se.mergeToken)(wt,{emptyImgCls:`${rt}-img`,emptyImgHeight:Qe(pt).mul(2.5).equal(),emptyImgHeightMD:pt,emptyImgHeightSM:Qe(pt).mul(.875).equal()});return[dt(Rt)]}),Ce=re(48755),Ne=function(wt,rt){var pt={};for(var Qe in wt)Object.prototype.hasOwnProperty.call(wt,Qe)&&rt.indexOf(Qe)<0&&(pt[Qe]=wt[Qe]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Qe=Object.getOwnPropertySymbols(wt);Rt<Qe.length;Rt++)rt.indexOf(Qe[Rt])<0&&Object.prototype.propertyIsEnumerable.call(wt,Qe[Rt])&&(pt[Qe[Rt]]=wt[Qe[Rt]]);return pt};const Re=E.createElement(Te,null),et=E.createElement(he,null),nt=wt=>{const{className:rt,rootClassName:pt,prefixCls:Qe,image:Rt=Re,description:gt,children:ot,imageStyle:It,style:Be,classNames:Ue,styles:Ze}=wt,ue=Ne(wt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Je,direction:ke,className:Me,style:ft,classNames:me,styles:ce}=(0,Ce.dj)("empty"),ze=Je("empty",Qe),[Mt,xt,ve]=$e(ze),[We]=(0,Ye.Z)("Empty"),_e=typeof gt!="undefined"?gt:We==null?void 0:We.description,jt=typeof _e=="string"?_e:"empty";let kt=null;return typeof Rt=="string"?kt=E.createElement("img",{alt:jt,src:Rt}):kt=Rt,Mt(E.createElement("div",Object.assign({className:ge()(xt,ve,ze,Me,{[`${ze}-normal`]:Rt===et,[`${ze}-rtl`]:ke==="rtl"},rt,pt,me.root,Ue==null?void 0:Ue.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),ft),Ze==null?void 0:Ze.root),Be)},ue),E.createElement("div",{className:ge()(`${ze}-image`,me.image,Ue==null?void 0:Ue.image),style:Object.assign(Object.assign(Object.assign({},It),ce.image),Ze==null?void 0:Ze.image)},kt),_e&&E.createElement("div",{className:ge()(`${ze}-description`,me.description,Ue==null?void 0:Ue.description),style:Object.assign(Object.assign({},ce.description),Ze==null?void 0:Ze.description)},_e),ot&&E.createElement("div",{className:ge()(`${ze}-footer`,me.footer,Ue==null?void 0:Ue.footer),style:Object.assign(Object.assign({},ce.footer),Ze==null?void 0:Ze.footer)},ot)))};nt.PRESENTED_IMAGE_DEFAULT=Re,nt.PRESENTED_IMAGE_SIMPLE=et;var Lt=nt},28284:function(tn,_t,re){"use strict";re.d(_t,{default:function(){return Ge}});var E=re(56553),lt=re(94480),ge=re(59301),Ye=re(92310),Ee=re.n(Ye),Pe=re(77900),Ae=re(86641),Te=re(83397);function we(ye){const[Le,Oe]=ge.useState(ye);return ge.useEffect(()=>{const Ke=setTimeout(()=>{Oe(ye)},ye.length?0:10);return()=>{clearTimeout(Ke)}},[ye]),Le}var he=re(36237),tt=re(63356),Se=re(34925),dt=re(34961),$e=re(51636),Ce=re(16931),Re=ye=>{const{componentCls:Le}=ye,Oe=`${Le}-show-help`,Ke=`${Le}-show-help-item`;return{[Oe]:{transition:`opacity ${ye.motionDurationFast} ${ye.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ke]:{overflow:"hidden",transition:`height ${ye.motionDurationFast} ${ye.motionEaseInOut},
opacity ${ye.motionDurationFast} ${ye.motionEaseInOut},
transform ${ye.motionDurationFast} ${ye.motionEaseInOut} !important`,[`&${Ke}-appear, &${Ke}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ke}-leave-active`]:{transform:"translateY(-5px)"}}}}};const et=ye=>({legend:{display:"block",width:"100%",marginBottom:ye.marginLG,padding:0,color:ye.colorTextDescription,fontSize:ye.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(ye.lineWidth)} ${ye.lineType} ${ye.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)(ye.controlOutlineWidth)} ${ye.controlOutline}`},output:{display:"block",paddingTop:15,color:ye.colorText,fontSize:ye.fontSize,lineHeight:ye.lineHeight}}),nt=(ye,Le)=>{const{formItemCls:Oe}=ye;return{[Oe]:{[`${Oe}-label > label`]:{height:Le},[`${Oe}-control-input`]:{minHeight:Le}}}},Lt=ye=>{const{componentCls:Le}=ye;return{[ye.componentCls]:Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(ye)),et(ye)),{[`${Le}-text`]:{display:"inline-block",paddingInlineEnd:ye.paddingSM},"&-small":Object.assign({},nt(ye,ye.controlHeightSM)),"&-large":Object.assign({},nt(ye,ye.controlHeightLG))})}},wt=ye=>{const{formItemCls:Le,iconCls:Oe,rootPrefixCls:Ke,antCls:Bt,labelRequiredMarkColor:on,labelColor:mn,labelFontSize:Sn,labelHeight:en,labelColonMarginInlineStart:Wt,labelColonMarginInlineEnd:zt,itemMarginBottom:yn}=ye;return{[Le]:Object.assign(Object.assign({},(0,tt.Wf)(ye)),{marginBottom:yn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Bt}-row`]:{display:"none"},"&-has-warning":{[`${Le}-split`]:{color:ye.colorError}},"&-has-error":{[`${Le}-split`]:{color:ye.colorWarning}},[`${Le}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ye.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:en,color:mn,fontSize:Sn,[`> ${Oe}`]:{fontSize:ye.fontSize,verticalAlign:"top"},[`&${Le}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ye.marginXXS,color:on,fontSize:ye.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Le}-required-mark-hidden, &${Le}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Le}-optional`]:{display:"inline-block",marginInlineStart:ye.marginXXS,color:ye.colorTextDescription,[`&${Le}-required-mark-hidden`]:{display:"none"}},[`${Le}-tooltip`]:{color:ye.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ye.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Wt,marginInlineEnd:zt},[`&${Le}-no-colon::after`]:{content:'"\\a0"'}}},[`${Le}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ke}-col-'"]):not([class*="' ${Ke}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ye.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Le]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ye.colorTextDescription,fontSize:ye.fontSize,lineHeight:ye.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ye.controlHeightSM,transition:`color ${ye.motionDurationMid} ${ye.motionEaseOut}`},"&-explain":{"&-error":{color:ye.colorError},"&-warning":{color:ye.colorWarning}}},[`&-with-help ${Le}-explain`]:{height:"auto",opacity:1},[`${Le}-feedback-icon`]:{fontSize:ye.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:ye.motionDurationMid,animationTimingFunction:ye.motionEaseOutBack,pointerEvents:"none","&-success":{color:ye.colorSuccess},"&-error":{color:ye.colorError},"&-warning":{color:ye.colorWarning},"&-validating":{color:ye.colorPrimary}}})}},rt=(ye,Le)=>{const{formItemCls:Oe}=ye;return{[`${Le}-horizontal`]:{[`${Oe}-label`]:{flexGrow:0},[`${Oe}-control`]:{flex:"1 1 0",minWidth:0},[`${Oe}-label[class$='-24'], ${Oe}-label[class*='-24 ']`]:{[`& + ${Oe}-control`]:{minWidth:"unset"}}}}},pt=ye=>{const{componentCls:Le,formItemCls:Oe,inlineItemMarginBottom:Ke}=ye;return{[`${Le}-inline`]:{display:"flex",flexWrap:"wrap",[Oe]:{flex:"none",marginInlineEnd:ye.margin,marginBottom:Ke,"&-row":{flexWrap:"nowrap"},[`> ${Oe}-label,
> ${Oe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Oe}-label`]:{flex:"none"},[`${Le}-text`]:{display:"inline-block"},[`${Oe}-has-feedback`]:{display:"inline-block"}}}}},Qe=ye=>({padding:ye.verticalLabelPadding,margin:ye.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Rt=ye=>{const{componentCls:Le,formItemCls:Oe,rootPrefixCls:Ke}=ye;return{[`${Oe} ${Oe}-label`]:Qe(ye),[`${Le}:not(${Le}-inline)`]:{[Oe]:{flexWrap:"wrap",[`${Oe}-label, ${Oe}-control`]:{[`&:not([class*=" ${Ke}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gt=ye=>{const{componentCls:Le,formItemCls:Oe,antCls:Ke}=ye;return{[`${Le}-vertical`]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${Oe}-row`]:{flexDirection:"column"},[`${Oe}-label > label`]:{height:"auto"},[`${Oe}-control`]:{width:"100%"},[`${Oe}-label,
${Ke}-col-24${Oe}-label,
${Ke}-col-xl-24${Oe}-label`]:Qe(ye)}},[`@media (max-width: ${(0,he.unit)(ye.screenXSMax)})`]:[Rt(ye),{[Le]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${Ke}-col-xs-24${Oe}-label`]:Qe(ye)}}}],[`@media (max-width: ${(0,he.unit)(ye.screenSMMax)})`]:{[Le]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${Ke}-col-sm-24${Oe}-label`]:Qe(ye)}}},[`@media (max-width: ${(0,he.unit)(ye.screenMDMax)})`]:{[Le]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${Ke}-col-md-24${Oe}-label`]:Qe(ye)}}},[`@media (max-width: ${(0,he.unit)(ye.screenLGMax)})`]:{[Le]:{[`${Oe}:not(${Oe}-horizontal)`]:{[`${Ke}-col-lg-24${Oe}-label`]:Qe(ye)}}}}},ot=ye=>{const{formItemCls:Le,antCls:Oe}=ye;return{[`${Le}-vertical`]:{[`${Le}-row`]:{flexDirection:"column"},[`${Le}-label > label`]:{height:"auto"},[`${Le}-control`]:{width:"100%"}},[`${Le}-vertical ${Le}-label,
${Oe}-col-24${Le}-label,
${Oe}-col-xl-24${Le}-label`]:Qe(ye),[`@media (max-width: ${(0,he.unit)(ye.screenXSMax)})`]:[Rt(ye),{[Le]:{[`${Oe}-col-xs-24${Le}-label`]:Qe(ye)}}],[`@media (max-width: ${(0,he.unit)(ye.screenSMMax)})`]:{[Le]:{[`${Oe}-col-sm-24${Le}-label`]:Qe(ye)}},[`@media (max-width: ${(0,he.unit)(ye.screenMDMax)})`]:{[Le]:{[`${Oe}-col-md-24${Le}-label`]:Qe(ye)}},[`@media (max-width: ${(0,he.unit)(ye.screenLGMax)})`]:{[Le]:{[`${Oe}-col-lg-24${Le}-label`]:Qe(ye)}}}},It=ye=>({labelRequiredMarkColor:ye.colorError,labelColor:ye.colorTextHeading,labelFontSize:ye.fontSize,labelHeight:ye.controlHeight,labelColonMarginInlineStart:ye.marginXXS/2,labelColonMarginInlineEnd:ye.marginXS,itemMarginBottom:ye.marginLG,verticalLabelPadding:`0 0 ${ye.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Be=(ye,Le)=>(0,$e.mergeToken)(ye,{formItemCls:`${ye.componentCls}-item`,rootPrefixCls:Le});var Ue=(0,Ce.I$)("Form",(ye,Le)=>{let{rootPrefixCls:Oe}=Le;const Ke=Be(ye,Oe);return[Lt(Ke),wt(Ke),Re(Ke),rt(Ke,Ke.componentCls),rt(Ke,Ke.formItemCls),pt(Ke),gt(Ke),ot(Ke),(0,dt.Z)(Ke),Se.kr]},It,{order:-1e3});const Ze=[];function ue(ye,Le,Oe){let Ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ye=="string"?ye:`${Le}-${Ke}`,error:ye,errorStatus:Oe}}var ke=ye=>{let{help:Le,helpStatus:Oe,errors:Ke=Ze,warnings:Bt=Ze,className:on,fieldId:mn,onVisibleChanged:Sn}=ye;const{prefixCls:en}=ge.useContext(E.Rk),Wt=`${en}-item-explain`,zt=(0,Te.Z)(en),[yn,Ln,kn]=Ue(en,zt),Mn=ge.useMemo(()=>(0,Ae.Z)(en),[en]),Xn=we(Ke),Qn=we(Bt),Jn=ge.useMemo(()=>Le!=null?[ue(Le,"help",Oe)]:[].concat((0,lt.Z)(Xn.map((Zn,Un)=>ue(Zn,"error","error",Un))),(0,lt.Z)(Qn.map((Zn,Un)=>ue(Zn,"warning","warning",Un)))),[Le,Oe,Xn,Qn]),$n=ge.useMemo(()=>{const Zn={};return Jn.forEach(Un=>{let{key:ur}=Un;Zn[ur]=(Zn[ur]||0)+1}),Jn.map((Un,ur)=>Object.assign(Object.assign({},Un),{key:Zn[Un.key]>1?`${Un.key}-fallback-${ur}`:Un.key}))},[Jn]),zn={};return mn&&(zn.id=`${mn}_help`),yn(ge.createElement(Pe.default,{motionDeadline:Mn.motionDeadline,motionName:`${en}-show-help`,visible:!!$n.length,onVisibleChanged:Sn},Zn=>{const{className:Un,style:ur}=Zn;return ge.createElement("div",Object.assign({},zn,{className:Ee()(Wt,Un,kn,zt,on,Ln),style:ur}),ge.createElement(Pe.CSSMotionList,Object.assign({keys:$n},(0,Ae.Z)(en),{motionName:`${en}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:gr}=qn;return ge.createElement("div",{key:lr,className:Ee()(tr,{[`${Wt}-${er}`]:er}),style:gr},ir)}))}))},Me=re(22001),ft=re(48755),me=re(2171),ce=re(31756),ze=re(23069),Mt=re(76846),xt=re(16722);const ve=["parentNode"],We="form_item";function _e(ye){return ye===void 0||ye===!1?[]:Array.isArray(ye)?ye:[ye]}function jt(ye,Le){if(!ye.length)return;const Oe=ye.join("_");return Le?`${Le}_${Oe}`:ve.includes(Oe)?`${We}_${Oe}`:Oe}function kt(ye,Le,Oe,Ke,Bt,on){let mn=Ke;return on!==void 0?mn=on:Oe.validating?mn="validating":ye.length?mn="error":Le.length?mn="warning":(Oe.touched||Bt&&Oe.validated)&&(mn="success"),mn}var Vt=function(ye,Le){var Oe={};for(var Ke in ye)Object.prototype.hasOwnProperty.call(ye,Ke)&&Le.indexOf(Ke)<0&&(Oe[Ke]=ye[Ke]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ke=Object.getOwnPropertySymbols(ye);Bt<Ke.length;Bt++)Le.indexOf(Ke[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ke[Bt])&&(Oe[Ke[Bt]]=ye[Ke[Bt]]);return Oe};function je(ye){return _e(ye).join("_")}function Nt(ye,Le){const Oe=Le.getFieldInstance(ye),Ke=(0,Mt.bn)(Oe);if(Ke)return Ke;const Bt=jt(_e(ye),Le.__INTERNAL__.name);if(Bt)return document.getElementById(Bt)}function st(ye){const[Le]=(0,Me.useForm)(),Oe=ge.useRef({}),Ke=ge.useMemo(()=>ye!=null?ye:Object.assign(Object.assign({},Le),{__INTERNAL__:{itemRef:Bt=>on=>{const mn=je(Bt);on?Oe.current[mn]=on:delete Oe.current[mn]}},scrollToField:function(Bt){let on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:mn}=on,Sn=Vt(on,["focus"]),en=Nt(Bt,Ke);en&&((0,xt.Z)(en,Object.assign({scrollMode:"if-needed",block:"nearest"},Sn)),mn&&Ke.focusField(Bt))},focusField:Bt=>{var on,mn;const Sn=Ke.getFieldInstance(Bt);typeof(Sn==null?void 0:Sn.focus)=="function"?Sn.focus():(mn=(on=Nt(Bt,Ke))===null||on===void 0?void 0:on.focus)===null||mn===void 0||mn.call(on)},getFieldInstance:Bt=>{const on=je(Bt);return Oe.current[on]}}),[ye,Le]);return[Ke]}var ae=re(98350),te=function(ye,Le){var Oe={};for(var Ke in ye)Object.prototype.hasOwnProperty.call(ye,Ke)&&Le.indexOf(Ke)<0&&(Oe[Ke]=ye[Ke]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ke=Object.getOwnPropertySymbols(ye);Bt<Ke.length;Bt++)Le.indexOf(Ke[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ke[Bt])&&(Oe[Ke[Bt]]=ye[Ke[Bt]]);return Oe};const ee=(ye,Le)=>{const Oe=ge.useContext(me.Z),{getPrefixCls:Ke,direction:Bt,requiredMark:on,colon:mn,scrollToFirstError:Sn,className:en,style:Wt}=(0,ft.dj)("form"),{prefixCls:zt,className:yn,rootClassName:Ln,size:kn,disabled:Mn=Oe,form:Xn,colon:Qn,labelAlign:Jn,labelWrap:$n,labelCol:zn,wrapperCol:Zn,hideRequiredMark:Un,layout:ur="horizontal",scrollToFirstError:qn,requiredMark:lr,onFinishFailed:ir,name:er,style:tr,feedbackIcons:gr,variant:mr}=ye,cr=te(ye,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),vr=(0,ce.Z)(kn),Cr=ge.useContext(ae.Z),or=ge.useMemo(()=>lr!==void 0?lr:Un?!1:on!==void 0?on:!0,[Un,lr,on]),dr=Qn!=null?Qn:mn,Gn=Ke("form",zt),Sr=(0,Te.Z)(Gn),[Rr,Wr,Er]=Ue(Gn,Sr),Lr=Ee()(Gn,`${Gn}-${ur}`,{[`${Gn}-hide-required-mark`]:or===!1,[`${Gn}-rtl`]:Bt==="rtl",[`${Gn}-${vr}`]:vr},Er,Sr,Wr,en,yn,Ln),[Ir]=st(Xn),{__INTERNAL__:Br}=Ir;Br.name=er;const zr=ge.useMemo(()=>({name:er,labelAlign:Jn,labelCol:zn,labelWrap:$n,wrapperCol:Zn,vertical:ur==="vertical",colon:dr,requiredMark:or,itemRef:Br.itemRef,form:Ir,feedbackIcons:gr}),[er,Jn,zn,Zn,ur,dr,or,Ir,gr]),fr=ge.useRef(null);ge.useImperativeHandle(Le,()=>{var An;return Object.assign(Object.assign({},Ir),{nativeElement:(An=fr.current)===null||An===void 0?void 0:An.nativeElement})});const Yn=(An,Dn)=>{if(An){let dn={block:"nearest"};typeof An=="object"&&(dn=Object.assign(Object.assign({},dn),An)),Ir.scrollToField(Dn,dn)}},Cn=An=>{if(ir==null||ir(An),An.errorFields.length){const Dn=An.errorFields[0].name;if(qn!==void 0){Yn(qn,Dn);return}Sn!==void 0&&Yn(Sn,Dn)}};return Rr(ge.createElement(E.pg.Provider,{value:mr},ge.createElement(me.n,{disabled:Mn},ge.createElement(ze.Z.Provider,{value:vr},ge.createElement(E.RV,{validateMessages:Cr},ge.createElement(E.q3.Provider,{value:zr},ge.createElement(Me.default,Object.assign({id:er},cr,{name:er,onFinishFailed:Cn,form:Ir,ref:fr,style:Object.assign(Object.assign({},Wt),tr),className:Lr}))))))))};var se=ge.forwardRef(ee),ne=re(41799),pe=re(8654),xe=re(22703),ut=re(32383),Ie=re(11592);function Ve(ye){if(typeof ye=="function")return ye;const Le=(0,Ie.Z)(ye);return Le.length<=1?Le[0]:Le}const ht=()=>{const{status:ye,errors:Le=[],warnings:Oe=[]}=ge.useContext(E.aM);return{status:ye,errors:Le,warnings:Oe}};ht.Context=E.aM;var Dt=ht,Ot=re(16089);function Jt(ye){const[Le,Oe]=ge.useState(ye),Ke=ge.useRef(null),Bt=ge.useRef([]),on=ge.useRef(!1);ge.useEffect(()=>(on.current=!1,()=>{on.current=!0,Ot.Z.cancel(Ke.current),Ke.current=null}),[]);function mn(Sn){on.current||(Ke.current===null&&(Bt.current=[],Ke.current=(0,Ot.Z)(()=>{Ke.current=null,Oe(en=>{let Wt=en;return Bt.current.forEach(zt=>{Wt=zt(Wt)}),Wt})})),Bt.current.push(Sn))}return[Le,mn]}function Yt(){const{itemRef:ye}=ge.useContext(E.q3),Le=ge.useRef({});function Oe(Ke,Bt){const on=Bt&&typeof Bt=="object"&&(0,pe.C4)(Bt),mn=Ke.join("_");return(Le.current.name!==mn||Le.current.originRef!==on)&&(Le.current.name=mn,Le.current.originRef=on,Le.current.ref=(0,pe.sQ)(ye(Ke),on)),Le.current.ref}return Oe}var Ut=re(29194),Pt=re(34280),Et=re(2738),mt=re(65970),ct=re(70425),qt=re(5472);const Ht=ye=>{const{formItemCls:Le}=ye;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Le}-control`]:{display:"flex"}}}};var Fe=(0,Ce.bk)(["Form","item-item"],(ye,Le)=>{let{rootPrefixCls:Oe}=Le;const Ke=Be(ye,Oe);return[Ht(Ke)]}),it=function(ye,Le){var Oe={};for(var Ke in ye)Object.prototype.hasOwnProperty.call(ye,Ke)&&Le.indexOf(Ke)<0&&(Oe[Ke]=ye[Ke]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ke=Object.getOwnPropertySymbols(ye);Bt<Ke.length;Bt++)Le.indexOf(Ke[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ke[Bt])&&(Oe[Ke[Bt]]=ye[Ke[Bt]]);return Oe};const Xe=24;var De=ye=>{const{prefixCls:Le,status:Oe,labelCol:Ke,wrapperCol:Bt,children:on,errors:mn,warnings:Sn,_internalItemRender:en,extra:Wt,help:zt,fieldId:yn,marginBottom:Ln,onErrorVisibleChanged:kn,label:Mn}=ye,Xn=`${Le}-item`,Qn=ge.useContext(E.q3),Jn=ge.useMemo(()=>{let cr=Object.assign({},Bt||Qn.wrapperCol||{});return Mn===null&&!Ke&&!Bt&&Qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,ct.U2)(Qn.labelCol,or),Gn=typeof dr=="object"?dr:{},Sr=(0,ct.U2)(cr,or),Rr=typeof Sr=="object"?Sr:{};"span"in Gn&&!("offset"in Rr)&&Gn.span<Xe&&(cr=(0,ct.t8)(cr,[].concat(or,["offset"]),Gn.span))}),cr},[Bt,Qn]),$n=Ee()(`${Xn}-control`,Jn.className),zn=ge.useMemo(()=>{const{labelCol:cr,wrapperCol:vr}=Qn;return it(Qn,["labelCol","wrapperCol"])},[Qn]),Zn=ge.useRef(null),[Un,ur]=ge.useState(0);(0,Pt.Z)(()=>{Wt&&Zn.current?ur(Zn.current.clientHeight):ur(0)},[Wt]);const qn=ge.createElement("div",{className:`${Xn}-control-input`},ge.createElement("div",{className:`${Xn}-control-input-content`},on)),lr=ge.useMemo(()=>({prefixCls:Le,status:Oe}),[Le,Oe]),ir=Ln!==null||mn.length||Sn.length?ge.createElement(E.Rk.Provider,{value:lr},ge.createElement(ke,{fieldId:yn,errors:mn,warnings:Sn,help:zt,helpStatus:Oe,className:`${Xn}-explain-connected`,onVisibleChanged:kn})):null,er={};yn&&(er.id=`${yn}_extra`);const tr=Wt?ge.createElement("div",Object.assign({},er,{className:`${Xn}-extra`,ref:Zn}),Wt):null,gr=ir||tr?ge.createElement("div",{className:`${Xn}-additional`,style:Ln?{minHeight:Ln+Un}:{}},ir,tr):null,mr=en&&en.mark==="pro_table_render"&&en.render?en.render(ye,{input:qn,errorList:ir,extra:tr}):ge.createElement(ge.Fragment,null,qn,gr);return ge.createElement(E.q3.Provider,{value:zn},ge.createElement(qt.Z,Object.assign({},Jn,{className:$n}),mr),ge.createElement(Fe,{prefixCls:Le}))},qe=re(61485),yt=re(9017),Ct=re(85981),$t=re(25399),rn=function(ye,Le){var Oe={};for(var Ke in ye)Object.prototype.hasOwnProperty.call(ye,Ke)&&Le.indexOf(Ke)<0&&(Oe[Ke]=ye[Ke]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ke=Object.getOwnPropertySymbols(ye);Bt<Ke.length;Bt++)Le.indexOf(Ke[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ke[Bt])&&(Oe[Ke[Bt]]=ye[Ke[Bt]]);return Oe};function In(ye){return ye?typeof ye=="object"&&!ge.isValidElement(ye)?ye:{title:ye}:null}var nn=ye=>{let{prefixCls:Le,label:Oe,htmlFor:Ke,labelCol:Bt,labelAlign:on,colon:mn,required:Sn,requiredMark:en,tooltip:Wt,vertical:zt}=ye;var yn;const[Ln]=(0,yt.Z)("Form"),{labelAlign:kn,labelCol:Mn,labelWrap:Xn,colon:Qn}=ge.useContext(E.q3);if(!Oe)return null;const Jn=Bt||Mn||{},$n=on||kn,zn=`${Le}-item-label`,Zn=Ee()(zn,$n==="left"&&`${zn}-left`,Jn.className,{[`${zn}-wrap`]:!!Xn});let Un=Oe;const ur=mn===!0||Qn!==!1&&mn!==!1;ur&&!zt&&typeof Oe=="string"&&Oe.trim()&&(Un=Oe.replace(/[:|]\s*$/,""));const lr=In(Wt);if(lr){const{icon:cr=ge.createElement(qe.Z,null)}=lr,vr=rn(lr,["icon"]),Cr=ge.createElement($t.Z,Object.assign({},vr),ge.cloneElement(cr,{className:`${Le}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Un=ge.createElement(ge.Fragment,null,Un,Cr)}const ir=en==="optional",er=typeof en=="function",tr=en===!1;er?Un=en(Un,{required:!!Sn}):ir&&!Sn&&(Un=ge.createElement(ge.Fragment,null,Un,ge.createElement("span",{className:`${Le}-item-optional`,title:""},(Ln==null?void 0:Ln.optional)||((yn=Ct.Z.Form)===null||yn===void 0?void 0:yn.optional))));let gr;tr?gr="hidden":(ir||er)&&(gr="optional");const mr=Ee()({[`${Le}-item-required`]:Sn,[`${Le}-item-required-mark-${gr}`]:gr,[`${Le}-item-no-colon`]:!ur});return ge.createElement(qt.Z,Object.assign({},Jn,{className:Zn}),ge.createElement("label",{htmlFor:Ke,className:mr,title:typeof Oe=="string"?Oe:""},Un))},vn=re(29679),ln=re(19248),Tn=re(96512),xn=re(58617);const an={success:vn.Z,warning:Tn.Z,error:ln.Z,validating:xn.Z};function Kt(ye){let{children:Le,errors:Oe,warnings:Ke,hasFeedback:Bt,validateStatus:on,prefixCls:mn,meta:Sn,noStyle:en}=ye;const Wt=`${mn}-item`,{feedbackIcons:zt}=ge.useContext(E.q3),yn=kt(Oe,Ke,Sn,null,!!Bt,on),{isFormItemInput:Ln,status:kn,hasFeedback:Mn,feedbackIcon:Xn}=ge.useContext(E.aM),Qn=ge.useMemo(()=>{var Jn;let $n;if(Bt){const Zn=Bt!==!0&&Bt.icons||zt,Un=yn&&((Jn=Zn==null?void 0:Zn({status:yn,errors:Oe,warnings:Ke}))===null||Jn===void 0?void 0:Jn[yn]),ur=yn&&an[yn];$n=Un!==!1&&ur?ge.createElement("span",{className:Ee()(`${Wt}-feedback-icon`,`${Wt}-feedback-icon-${yn}`)},Un||ge.createElement(ur,null)):null}const zn={status:yn||"",errors:Oe,warnings:Ke,hasFeedback:!!Bt,feedbackIcon:$n,isFormItemInput:!0};return en&&(zn.status=(yn!=null?yn:kn)||"",zn.isFormItemInput=Ln,zn.hasFeedback=!!(Bt!=null?Bt:Mn),zn.feedbackIcon=Bt!==void 0?zn.feedbackIcon:Xn),zn},[yn,Bt,en,Ln,kn]);return ge.createElement(E.aM.Provider,{value:Qn},Le)}var Tt=function(ye,Le){var Oe={};for(var Ke in ye)Object.prototype.hasOwnProperty.call(ye,Ke)&&Le.indexOf(Ke)<0&&(Oe[Ke]=ye[Ke]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ke=Object.getOwnPropertySymbols(ye);Bt<Ke.length;Bt++)Le.indexOf(Ke[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ke[Bt])&&(Oe[Ke[Bt]]=ye[Ke[Bt]]);return Oe};function At(ye){const{prefixCls:Le,className:Oe,rootClassName:Ke,style:Bt,help:on,errors:mn,warnings:Sn,validateStatus:en,meta:Wt,hasFeedback:zt,hidden:yn,children:Ln,fieldId:kn,required:Mn,isRequired:Xn,onSubItemMetaChange:Qn,layout:Jn}=ye,$n=Tt(ye,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),zn=`${Le}-item`,{requiredMark:Zn,vertical:Un}=ge.useContext(E.q3),ur=Un||Jn==="vertical",qn=ge.useRef(null),lr=we(mn),ir=we(Sn),er=on!=null,tr=!!(er||mn.length||Sn.length),gr=!!qn.current&&(0,Ut.Z)(qn.current),[mr,cr]=ge.useState(null);(0,Pt.Z)(()=>{if(tr&&qn.current){const Gn=getComputedStyle(qn.current);cr(parseInt(Gn.marginBottom,10))}},[tr,gr]);const vr=Gn=>{Gn||cr(null)},or=function(){let Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Sr=Gn?lr:Wt.errors,Rr=Gn?ir:Wt.warnings;return kt(Sr,Rr,Wt,"",!!zt,en)}(),dr=Ee()(zn,Oe,Ke,{[`${zn}-with-help`]:er||lr.length||ir.length,[`${zn}-has-feedback`]:or&&zt,[`${zn}-has-success`]:or==="success",[`${zn}-has-warning`]:or==="warning",[`${zn}-has-error`]:or==="error",[`${zn}-is-validating`]:or==="validating",[`${zn}-hidden`]:yn,[`${zn}-${Jn}`]:Jn});return ge.createElement("div",{className:dr,style:Bt,ref:qn},ge.createElement(mt.Z,Object.assign({className:`${zn}-row`},(0,Et.Z)($n,["_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"])),ge.createElement(nn,Object.assign({htmlFor:kn},ye,{requiredMark:Zn,required:Mn!=null?Mn:Xn,prefixCls:Le,vertical:ur})),ge.createElement(De,Object.assign({},ye,Wt,{errors:lr,warnings:ir,prefixCls:Le,status:or,help:on,marginBottom:mr,onErrorVisibleChanged:vr}),ge.createElement(E.qI.Provider,{value:Qn},ge.createElement(Kt,{prefixCls:Le,meta:Wt,errors:Wt.errors,warnings:Wt.warnings,hasFeedback:zt,validateStatus:or},Ln)))),!!mr&&ge.createElement("div",{className:`${zn}-margin-offset`,style:{marginBottom:-mr}}))}const Ft="__SPLIT__",Qt=null;function hn(ye,Le){const Oe=Object.keys(ye),Ke=Object.keys(Le);return Oe.length===Ke.length&&Oe.every(Bt=>{const on=ye[Bt],mn=Le[Bt];return on===mn||typeof on=="function"||typeof mn=="function"})}const pn=ge.memo(ye=>{let{children:Le}=ye;return Le},(ye,Le)=>hn(ye.control,Le.control)&&ye.update===Le.update&&ye.childProps.length===Le.childProps.length&&ye.childProps.every((Oe,Ke)=>Oe===Le.childProps[Ke]));function sn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function un(ye){const{name:Le,noStyle:Oe,className:Ke,dependencies:Bt,prefixCls:on,shouldUpdate:mn,rules:Sn,children:en,required:Wt,label:zt,messageVariables:yn,trigger:Ln="onChange",validateTrigger:kn,hidden:Mn,help:Xn,layout:Qn}=ye,{getPrefixCls:Jn}=ge.useContext(ft.E_),{name:$n}=ge.useContext(E.q3),zn=Ve(en),Zn=typeof zn=="function",Un=ge.useContext(E.qI),{validateTrigger:ur}=ge.useContext(Me.FieldContext),qn=kn!==void 0?kn:ur,lr=Le!=null,ir=Jn("form",on),er=(0,Te.Z)(ir),[tr,gr,mr]=Ue(ir,er),cr=(0,ut.ln)("Form.Item"),vr=ge.useContext(Me.ListContext),Cr=ge.useRef(null),[or,dr]=Jt({}),[Gn,Sr]=(0,ne.Z)(()=>sn()),Rr=fr=>{const Yn=vr==null?void 0:vr.getKey(fr.name);if(Sr(fr.destroy?sn():fr,!0),Oe&&Xn!==!1&&Un){let Cn=fr.name;if(fr.destroy)Cn=Cr.current||Cn;else if(Yn!==void 0){const[An,Dn]=Yn;Cn=[An].concat((0,lt.Z)(Dn)),Cr.current=Cn}Un(fr,Cn)}},Wr=(fr,Yn)=>{dr(Cn=>{const An=Object.assign({},Cn),dn=[].concat((0,lt.Z)(fr.name.slice(0,-1)),(0,lt.Z)(Yn)).join(Ft);return fr.destroy?delete An[dn]:An[dn]=fr,An})},[Er,Lr]=ge.useMemo(()=>{const fr=(0,lt.Z)(Gn.errors),Yn=(0,lt.Z)(Gn.warnings);return Object.values(or).forEach(Cn=>{fr.push.apply(fr,(0,lt.Z)(Cn.errors||[])),Yn.push.apply(Yn,(0,lt.Z)(Cn.warnings||[]))}),[fr,Yn]},[or,Gn.errors,Gn.warnings]),Ir=Yt();function Br(fr,Yn,Cn){return Oe&&!Mn?ge.createElement(Kt,{prefixCls:ir,hasFeedback:ye.hasFeedback,validateStatus:ye.validateStatus,meta:Gn,errors:Er,warnings:Lr,noStyle:!0},fr):ge.createElement(At,Object.assign({key:"row"},ye,{className:Ee()(Ke,mr,er,gr),prefixCls:ir,fieldId:Yn,isRequired:Cn,errors:Er,warnings:Lr,meta:Gn,onSubItemMetaChange:Wr,layout:Qn}),fr)}if(!lr&&!Zn&&!Bt)return tr(Br(zn));let zr={};return typeof zt=="string"?zr.label=zt:Le&&(zr.label=String(Le)),yn&&(zr=Object.assign(Object.assign({},zr),yn)),tr(ge.createElement(Me.Field,Object.assign({},ye,{messageVariables:zr,trigger:Ln,validateTrigger:qn,onMetaChange:Rr}),(fr,Yn,Cn)=>{const An=_e(Le).length&&Yn?Yn.name:[],Dn=jt(An,$n),dn=Wt!==void 0?Wt:!!(Sn!=null&&Sn.some(wn=>{if(wn&&typeof wn=="object"&&wn.required&&!wn.warningOnly)return!0;if(typeof wn=="function"){const Pn=wn(Cn);return(Pn==null?void 0:Pn.required)&&!(Pn!=null&&Pn.warningOnly)}return!1})),Hn=Object.assign({},fr);let _n=null;if(Array.isArray(zn)&&lr)_n=zn;else if(!(Zn&&(!(mn||Bt)||lr))){if(!(Bt&&!Zn&&!lr))if(ge.isValidElement(zn)){const wn=Object.assign(Object.assign({},zn.props),Hn);if(wn.id||(wn.id=Dn),Xn||Er.length>0||Lr.length>0||ye.extra){const Fn=[];(Xn||Er.length>0)&&Fn.push(`${Dn}_help`),ye.extra&&Fn.push(`${Dn}_extra`),wn["aria-describedby"]=Fn.join(" ")}Er.length>0&&(wn["aria-invalid"]="true"),dn&&(wn["aria-required"]="true"),(0,pe.Yr)(zn)&&(wn.ref=Ir(An,zn)),new Set([].concat((0,lt.Z)(_e(Ln)),(0,lt.Z)(_e(qn)))).forEach(Fn=>{wn[Fn]=function(){for(var rr,Pr,br,Ar,Or,kr=arguments.length,Hr=new Array(kr),Mr=0;Mr<kr;Mr++)Hr[Mr]=arguments[Mr];(br=Hn[Fn])===null||br===void 0||(rr=br).call.apply(rr,[Hn].concat(Hr)),(Or=(Ar=zn.props)[Fn])===null||Or===void 0||(Pr=Or).call.apply(Pr,[Ar].concat(Hr))}});const Rn=[wn["aria-required"],wn["aria-invalid"],wn["aria-describedby"]];_n=ge.createElement(pn,{control:Hn,update:zn,childProps:Rn},(0,xe.Tm)(zn,wn))}else Zn&&(mn||Bt)&&!lr?_n=zn(Cn):_n=zn}return Br(_n,Dn,dn)}))}const bn=un;bn.useStatus=Dt;var On=bn,vt=function(ye,Le){var Oe={};for(var Ke in ye)Object.prototype.hasOwnProperty.call(ye,Ke)&&Le.indexOf(Ke)<0&&(Oe[Ke]=ye[Ke]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ke=Object.getOwnPropertySymbols(ye);Bt<Ke.length;Bt++)Le.indexOf(Ke[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ke[Bt])&&(Oe[Ke[Bt]]=ye[Ke[Bt]]);return Oe},cn=ye=>{var{prefixCls:Le,children:Oe}=ye,Ke=vt(ye,["prefixCls","children"]);const{getPrefixCls:Bt}=ge.useContext(ft.E_),on=Bt("form",Le),mn=ge.useMemo(()=>({prefixCls:on,status:"error"}),[on]);return ge.createElement(Me.List,Object.assign({},Ke),(Sn,en,Wt)=>ge.createElement(E.Rk.Provider,{value:mn},Oe(Sn.map(zt=>Object.assign(Object.assign({},zt),{fieldKey:zt.key})),en,{errors:Wt.errors,warnings:Wt.warnings})))};function fn(){const{form:ye}=ge.useContext(E.q3);return ye}const He=se;He.Item=On,He.List=cn,He.ErrorList=ke,He.useForm=st,He.useFormInstance=fn,He.useWatch=Me.useWatch,He.Provider=E.RV,He.create=()=>{};var Ge=He},4875:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return St}});var E=re(59301),lt=re(84105),ge=re(87395),Ye=re(92310),Ee=re.n(Ye),Pe=re(54476),Ae=re(20068),Te=re(76190),we=re(42978),he=re(75931),tt=re(67732),Se=re(83652);function dt(){return typeof BigInt=="function"}function $e(De){return!De&&De!==0&&!Number.isNaN(De)||!String(De).trim()}function Ce(De){var qe=De.trim(),yt=qe.startsWith("-");yt&&(qe=qe.slice(1)),qe=qe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),qe.startsWith(".")&&(qe="0".concat(qe));var Ct=qe||"0",$t=Ct.split("."),rn=$t[0]||"0",In=$t[1]||"0";rn==="0"&&In==="0"&&(yt=!1);var En=yt?"-":"";return{negative:yt,negativeStr:En,trimStr:Ct,integerStr:rn,decimalStr:In,fullStr:"".concat(En).concat(Ct)}}function Ne(De){var qe=String(De);return!Number.isNaN(Number(qe))&&qe.includes("e")}function Re(De){var qe=String(De);if(Ne(De)){var yt=Number(qe.slice(qe.indexOf("e-")+2)),Ct=qe.match(/\.(\d+)/);return Ct!=null&&Ct[1]&&(yt+=Ct[1].length),yt}return qe.includes(".")&&nt(qe)?qe.length-qe.indexOf(".")-1:0}function et(De){var qe=String(De);if(Ne(De)){if(De>Number.MAX_SAFE_INTEGER)return String(dt()?BigInt(De).toString():Number.MAX_SAFE_INTEGER);if(De<Number.MIN_SAFE_INTEGER)return String(dt()?BigInt(De).toString():Number.MIN_SAFE_INTEGER);qe=De.toFixed(Re(qe))}return Ce(qe).fullStr}function nt(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 Lt=function(){function De(qe){if((0,tt.Z)(this,De),(0,Ae.Z)(this,"origin",""),(0,Ae.Z)(this,"negative",void 0),(0,Ae.Z)(this,"integer",void 0),(0,Ae.Z)(this,"decimal",void 0),(0,Ae.Z)(this,"decimalLen",void 0),(0,Ae.Z)(this,"empty",void 0),(0,Ae.Z)(this,"nan",void 0),$e(qe)){this.empty=!0;return}if(this.origin=String(qe),qe==="-"||Number.isNaN(qe)){this.nan=!0;return}var yt=qe;if(Ne(yt)&&(yt=Number(yt)),yt=typeof yt=="string"?yt:et(yt),nt(yt)){var Ct=Ce(yt);this.negative=Ct.negative;var $t=Ct.trimStr.split(".");this.integer=BigInt($t[0]);var rn=$t[1]||"0";this.decimal=BigInt(rn),this.decimalLen=rn.length}else this.nan=!0}return(0,Se.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(yt){var Ct="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(yt,"0"));return BigInt(Ct)}},{key:"negate",value:function(){var yt=new De(this.toString());return yt.negative=!yt.negative,yt}},{key:"cal",value:function(yt,Ct,$t){var rn=Math.max(this.getDecimalStr().length,yt.getDecimalStr().length),In=this.alignDecimal(rn),En=yt.alignDecimal(rn),nn=Ct(In,En).toString(),vn=$t(rn),ln=Ce(nn),Tn=ln.negativeStr,xn=ln.trimStr,an="".concat(Tn).concat(xn.padStart(vn+1,"0"));return new De("".concat(an.slice(0,-vn),".").concat(an.slice(-vn)))}},{key:"add",value:function(yt){if(this.isInvalidate())return new De(yt);var Ct=new De(yt);return Ct.isInvalidate()?this:this.cal(Ct,function($t,rn){return $t+rn},function($t){return $t})}},{key:"multi",value:function(yt){var Ct=new De(yt);return this.isInvalidate()||Ct.isInvalidate()?new De(NaN):this.cal(Ct,function($t,rn){return $t*rn},function($t){return $t*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(yt){return this.toString()===(yt==null?void 0:yt.toString())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":Ce("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),De}(),wt=function(){function De(qe){if((0,tt.Z)(this,De),(0,Ae.Z)(this,"origin",""),(0,Ae.Z)(this,"number",void 0),(0,Ae.Z)(this,"empty",void 0),$e(qe)){this.empty=!0;return}this.origin=String(qe),this.number=Number(qe)}return(0,Se.Z)(De,[{key:"negate",value:function(){return new De(-this.toNumber())}},{key:"add",value:function(yt){if(this.isInvalidate())return new De(yt);var Ct=Number(yt);if(Number.isNaN(Ct))return this;var $t=this.number+Ct;if($t>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if($t<Number.MIN_SAFE_INTEGER)return new De(Number.MIN_SAFE_INTEGER);var rn=Math.max(Re(this.number),Re(Ct));return new De($t.toFixed(rn))}},{key:"multi",value:function(yt){var Ct=Number(yt);if(this.isInvalidate()||Number.isNaN(Ct))return new De(NaN);var $t=this.number*Ct;if($t>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if($t<Number.MIN_SAFE_INTEGER)return new De(Number.MIN_SAFE_INTEGER);var rn=Math.max(Re(this.number),Re(Ct));return new De($t.toFixed(rn))}},{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(yt){return this.toNumber()===(yt==null?void 0:yt.toNumber())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":et(this.number):this.origin}}]),De}();function rt(De){return dt()?new Lt(De):new wt(De)}function pt(De,qe,yt){var Ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(De==="")return"";var $t=Ce(De),rn=$t.negativeStr,In=$t.integerStr,En=$t.decimalStr,nn="".concat(qe).concat(En),vn="".concat(rn).concat(In);if(yt>=0){var ln=Number(En[yt]);if(ln>=5&&!Ct){var Tn=rt(De).add("".concat(rn,"0.").concat("0".repeat(yt)).concat(10-ln));return pt(Tn.toString(),qe,yt,Ct)}return yt===0?vn:"".concat(vn).concat(qe).concat(En.padEnd(yt,"0").slice(0,yt))}return nn===".0"?vn:"".concat(vn).concat(nn)}var Qe=rt,Rt=re(36901),gt=re(34280);function ot(De,qe){return typeof Proxy!="undefined"&&De?new Proxy(De,{get:function(Ct,$t){if(qe[$t])return qe[$t];var rn=Ct[$t];return typeof rn=="function"?rn.bind(Ct):rn}}):De}var It=re(8654),Be=re(48736);function Ue(De,qe){var yt=(0,E.useRef)(null);function Ct(){try{var rn=De.selectionStart,In=De.selectionEnd,En=De.value,nn=En.substring(0,rn),vn=En.substring(In);yt.current={start:rn,end:In,value:En,beforeTxt:nn,afterTxt:vn}}catch(ln){}}function $t(){if(De&&yt.current&&qe)try{var rn=De.value,In=yt.current,En=In.beforeTxt,nn=In.afterTxt,vn=In.start,ln=rn.length;if(rn.startsWith(En))ln=En.length;else if(rn.endsWith(nn))ln=rn.length-yt.current.afterTxt.length;else{var Tn=En[vn-1],xn=rn.indexOf(Tn,vn-1);xn!==-1&&(ln=xn+1)}De.setSelectionRange(ln,ln)}catch(an){(0,Be.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(an.message))}}return[Ct,$t]}var Ze=re(49658),ue=function(){var qe=(0,E.useState)(!1),yt=(0,we.Z)(qe,2),Ct=yt[0],$t=yt[1];return(0,gt.Z)(function(){$t((0,Ze.Z)())},[]),Ct},Je=ue,ke=re(16089),Me=200,ft=600;function me(De){var qe=De.prefixCls,yt=De.upNode,Ct=De.downNode,$t=De.upDisabled,rn=De.downDisabled,In=De.onStep,En=E.useRef(),nn=E.useRef([]),vn=E.useRef();vn.current=In;var ln=function(){clearTimeout(En.current)},Tn=function(hn,pn){hn.preventDefault(),ln(),vn.current(pn);function sn(){vn.current(pn),En.current=setTimeout(sn,Me)}En.current=setTimeout(sn,ft)};E.useEffect(function(){return function(){ln(),nn.current.forEach(function(Qt){return ke.Z.cancel(Qt)})}},[]);var xn=Je();if(xn)return null;var an="".concat(qe,"-handler"),Kt=Ee()(an,"".concat(an,"-up"),(0,Ae.Z)({},"".concat(an,"-up-disabled"),$t)),Tt=Ee()(an,"".concat(an,"-down"),(0,Ae.Z)({},"".concat(an,"-down-disabled"),rn)),At=function(){return nn.current.push((0,ke.Z)(ln))},Ft={unselectable:"on",role:"button",onMouseUp:At,onMouseLeave:At};return E.createElement("div",{className:"".concat(an,"-wrap")},E.createElement("span",(0,Pe.Z)({},Ft,{onMouseDown:function(hn){Tn(hn,!0)},"aria-label":"Increase Value","aria-disabled":$t,className:Kt}),yt||E.createElement("span",{unselectable:"on",className:"".concat(qe,"-handler-up-inner")})),E.createElement("span",(0,Pe.Z)({},Ft,{onMouseDown:function(hn){Tn(hn,!1)},"aria-label":"Decrease Value","aria-disabled":rn,className:Tt}),Ct||E.createElement("span",{unselectable:"on",className:"".concat(qe,"-handler-down-inner")})))}function ce(De){var qe=typeof De=="number"?et(De):Ce(De).fullStr,yt=qe.includes(".");return yt?Ce(qe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:De+"0"}var ze=re(30292),Mt=function(){var De=(0,E.useRef)(0),qe=function(){ke.Z.cancel(De.current)};return(0,E.useEffect)(function(){return qe},[]),function(yt){qe(),De.current=(0,ke.Z)(function(){yt()})}},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"],ve=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],We=function(qe,yt){return qe||yt.isEmpty()?yt.toString():yt.toNumber()},_e=function(qe){var yt=Qe(qe);return yt.isInvalidate()?null:yt},jt=E.forwardRef(function(De,qe){var yt=De.prefixCls,Ct=De.className,$t=De.style,rn=De.min,In=De.max,En=De.step,nn=En===void 0?1:En,vn=De.defaultValue,ln=De.value,Tn=De.disabled,xn=De.readOnly,an=De.upHandler,Kt=De.downHandler,Tt=De.keyboard,At=De.changeOnWheel,Ft=At===void 0?!1:At,Qt=De.controls,hn=Qt===void 0?!0:Qt,pn=De.classNames,sn=De.stringMode,un=De.parser,bn=De.formatter,On=De.precision,vt=De.decimalSeparator,Gt=De.onChange,cn=De.onInput,fn=De.onPressEnter,He=De.onStep,Ge=De.changeOnBlur,ye=Ge===void 0?!0:Ge,Le=De.domRef,Oe=(0,he.Z)(De,xt),Ke="".concat(yt,"-input"),Bt=E.useRef(null),on=E.useState(!1),mn=(0,we.Z)(on,2),Sn=mn[0],en=mn[1],Wt=E.useRef(!1),zt=E.useRef(!1),yn=E.useRef(!1),Ln=E.useState(function(){return Qe(ln!=null?ln:vn)}),kn=(0,we.Z)(Ln,2),Mn=kn[0],Xn=kn[1];function Qn(Dn){ln===void 0&&Xn(Dn)}var Jn=E.useCallback(function(Dn,dn){if(!dn)return On>=0?On:Math.max(Re(Dn),Re(nn))},[On,nn]),$n=E.useCallback(function(Dn){var dn=String(Dn);if(un)return un(dn);var Hn=dn;return vt&&(Hn=Hn.replace(vt,".")),Hn.replace(/[^\w.-]+/g,"")},[un,vt]),zn=E.useRef(""),Zn=E.useCallback(function(Dn,dn){if(bn)return bn(Dn,{userTyping:dn,input:String(zn.current)});var Hn=typeof Dn=="number"?et(Dn):Dn;if(!dn){var _n=Jn(Hn,dn);if(nt(Hn)&&(vt||_n>=0)){var wn=vt||".";Hn=pt(Hn,wn,_n)}}return Hn},[bn,Jn,vt]),Un=E.useState(function(){var Dn=vn!=null?vn:ln;return Mn.isInvalidate()&&["string","number"].includes((0,Te.Z)(Dn))?Number.isNaN(Dn)?"":Dn:Zn(Mn.toString(),!1)}),ur=(0,we.Z)(Un,2),qn=ur[0],lr=ur[1];zn.current=qn;function ir(Dn,dn){lr(Zn(Dn.isInvalidate()?Dn.toString(!1):Dn.toString(!dn),dn))}var er=E.useMemo(function(){return _e(In)},[In,On]),tr=E.useMemo(function(){return _e(rn)},[rn,On]),gr=E.useMemo(function(){return!er||!Mn||Mn.isInvalidate()?!1:er.lessEquals(Mn)},[er,Mn]),mr=E.useMemo(function(){return!tr||!Mn||Mn.isInvalidate()?!1:Mn.lessEquals(tr)},[tr,Mn]),cr=Ue(Bt.current,Sn),vr=(0,we.Z)(cr,2),Cr=vr[0],or=vr[1],dr=function(dn){return er&&!dn.lessEquals(er)?er:tr&&!tr.lessEquals(dn)?tr:null},Gn=function(dn){return!dr(dn)},Sr=function(dn,Hn){var _n=dn,wn=Gn(_n)||_n.isEmpty();if(!_n.isEmpty()&&!Hn&&(_n=dr(_n)||_n,wn=!0),!xn&&!Tn&&wn){var Pn=_n.toString(),Rn=Jn(Pn,Hn);return Rn>=0&&(_n=Qe(pt(Pn,".",Rn)),Gn(_n)||(_n=Qe(pt(Pn,".",Rn,!0)))),_n.equals(Mn)||(Qn(_n),Gt==null||Gt(_n.isEmpty()?null:We(sn,_n)),ln===void 0&&ir(_n,Hn)),_n}return Mn},Rr=Mt(),Wr=function Dn(dn){if(Cr(),zn.current=dn,lr(dn),!zt.current){var Hn=$n(dn),_n=Qe(Hn);_n.isNaN()||Sr(_n,!0)}cn==null||cn(dn),Rr(function(){var wn=dn;un||(wn=dn.replace(/。/g,".")),wn!==dn&&Dn(wn)})},Er=function(){zt.current=!0},Lr=function(){zt.current=!1,Wr(Bt.current.value)},Ir=function(dn){Wr(dn.target.value)},Br=function(dn){var Hn;if(!(dn&&gr||!dn&&mr)){Wt.current=!1;var _n=Qe(yn.current?ce(nn):nn);dn||(_n=_n.negate());var wn=(Mn||Qe(0)).add(_n.toString()),Pn=Sr(wn,!1);He==null||He(We(sn,Pn),{offset:yn.current?ce(nn):nn,type:dn?"up":"down"}),(Hn=Bt.current)===null||Hn===void 0||Hn.focus()}},zr=function(dn){var Hn=Qe($n(qn)),_n;Hn.isNaN()?_n=Sr(Mn,dn):_n=Sr(Hn,dn),ln!==void 0?ir(Mn,!1):_n.isNaN()||ir(_n,!1)},fr=function(){Wt.current=!0},Yn=function(dn){var Hn=dn.key,_n=dn.shiftKey;Wt.current=!0,yn.current=_n,Hn==="Enter"&&(zt.current||(Wt.current=!1),zr(!1),fn==null||fn(dn)),Tt!==!1&&!zt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Hn)&&(Br(Hn==="Up"||Hn==="ArrowUp"),dn.preventDefault())},Cn=function(){Wt.current=!1,yn.current=!1};E.useEffect(function(){if(Ft&&Sn){var Dn=function(_n){Br(_n.deltaY<0),_n.preventDefault()},dn=Bt.current;if(dn)return dn.addEventListener("wheel",Dn,{passive:!1}),function(){return dn.removeEventListener("wheel",Dn)}}});var An=function(){ye&&zr(!1),en(!1),Wt.current=!1};return(0,gt.o)(function(){Mn.isInvalidate()||ir(Mn,!1)},[On,bn]),(0,gt.o)(function(){var Dn=Qe(ln);Xn(Dn);var dn=Qe($n(qn));(!Dn.equals(dn)||!Wt.current||bn)&&ir(Dn,Wt.current)},[ln]),(0,gt.o)(function(){bn&&or()},[qn]),E.createElement("div",{ref:Le,className:Ee()(yt,Ct,(0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},"".concat(yt,"-focused"),Sn),"".concat(yt,"-disabled"),Tn),"".concat(yt,"-readonly"),xn),"".concat(yt,"-not-a-number"),Mn.isNaN()),"".concat(yt,"-out-of-range"),!Mn.isInvalidate()&&!Gn(Mn))),style:$t,onFocus:function(){en(!0)},onBlur:An,onKeyDown:Yn,onKeyUp:Cn,onCompositionStart:Er,onCompositionEnd:Lr,onBeforeInput:fr},hn&&E.createElement(me,{prefixCls:yt,upNode:an,downNode:Kt,upDisabled:gr,downDisabled:mr,onStep:Br}),E.createElement("div",{className:"".concat(Ke,"-wrap")},E.createElement("input",(0,Pe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":rn,"aria-valuemax":In,"aria-valuenow":Mn.isInvalidate()?null:Mn.toString(),step:nn},Oe,{ref:(0,It.sQ)(Bt,qe),className:Ke,value:qn,onChange:Ir,disabled:Tn,readOnly:xn}))))}),kt=E.forwardRef(function(De,qe){var yt=De.disabled,Ct=De.style,$t=De.prefixCls,rn=$t===void 0?"rc-input-number":$t,In=De.value,En=De.prefix,nn=De.suffix,vn=De.addonBefore,ln=De.addonAfter,Tn=De.className,xn=De.classNames,an=(0,he.Z)(De,ve),Kt=E.useRef(null),Tt=E.useRef(null),At=E.useRef(null),Ft=function(hn){At.current&&(0,ze.nH)(At.current,hn)};return E.useImperativeHandle(qe,function(){return ot(At.current,{focus:Ft,nativeElement:Kt.current.nativeElement||Tt.current})}),E.createElement(Rt.BaseInput,{className:Tn,triggerFocus:Ft,prefixCls:rn,value:In,disabled:yt,style:Ct,prefix:En,suffix:nn,addonAfter:ln,addonBefore:vn,classNames:xn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Kt},E.createElement(jt,(0,Pe.Z)({prefixCls:rn,disabled:yt,ref:At,domRef:Tt,className:xn==null?void 0:xn.input},an)))}),Vt=kt,je=Vt,Nt=re(62487),st=re(82855),ae=re(48755),te=re(60840),ee=re(2171),oe=re(83397),se=re(31756),ne=re(56553),pe=re(24971),xe=re(70045),ut=re(36237),Ie=re(53075),Ve=re(64910),ht=re(39082),Dt=re(63356),Ot=re(56119),Jt=re(16931),Yt=re(51636),Ut=re(17835);const Pt=De=>{var qe;const yt=(qe=De.handleVisible)!==null&&qe!==void 0?qe:"auto",Ct=De.controlHeightSM-De.lineWidth*2;return Object.assign(Object.assign({},(0,Ve.T)(De)),{controlWidth:90,handleWidth:Ct,handleFontSize:De.fontSize/2,handleVisible:yt,handleActiveBg:De.colorFillAlter,handleBg:De.colorBgContainer,filledHandleBg:new Ut.FastColor(De.colorFillSecondary).onBackground(De.colorBgContainer).toHexString(),handleHoverColor:De.colorPrimary,handleBorderColor:De.colorBorder,handleOpacity:yt===!0?1:0,handleVisibleWidth:yt===!0?Ct:0})},Et=(De,qe)=>{let{componentCls:yt,borderRadiusSM:Ct,borderRadiusLG:$t}=De;const rn=qe==="lg"?$t:Ct;return{[`&-${qe}`]:{[`${yt}-handler-wrap`]:{borderStartEndRadius:rn,borderEndEndRadius:rn},[`${yt}-handler-up`]:{borderStartEndRadius:rn},[`${yt}-handler-down`]:{borderEndEndRadius:rn}}}},mt=De=>{const{componentCls:qe,lineWidth:yt,lineType:Ct,borderRadius:$t,inputFontSizeSM:rn,inputFontSizeLG:In,controlHeightLG:En,controlHeightSM:nn,colorError:vn,paddingInlineSM:ln,paddingBlockSM:Tn,paddingBlockLG:xn,paddingInlineLG:an,colorTextDescription:Kt,motionDurationMid:Tt,handleHoverColor:At,handleOpacity:Ft,paddingInline:Qt,paddingBlock:hn,handleBg:pn,handleActiveBg:sn,colorTextDisabled:un,borderRadiusSM:bn,borderRadiusLG:On,controlWidth:vt,handleBorderColor:Gt,filledHandleBg:cn,lineHeightLG:fn,calc:He}=De;return[{[qe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(De)),(0,Ie.ik)(De)),{display:"inline-block",width:vt,margin:0,padding:0,borderRadius:$t}),(0,ht.qG)(De,{[`${qe}-handler-wrap`]:{background:pn,[`${qe}-handler-down`]:{borderBlockStart:`${(0,ut.unit)(yt)} ${Ct} ${Gt}`}}})),(0,ht.H8)(De,{[`${qe}-handler-wrap`]:{background:cn,[`${qe}-handler-down`]:{borderBlockStart:`${(0,ut.unit)(yt)} ${Ct} ${Gt}`}},"&:focus-within":{[`${qe}-handler-wrap`]:{background:pn}}})),(0,ht.vc)(De,{[`${qe}-handler-wrap`]:{background:pn,[`${qe}-handler-down`]:{borderBlockStart:`${(0,ut.unit)(yt)} ${Ct} ${Gt}`}}})),(0,ht.Mu)(De)),{"&-rtl":{direction:"rtl",[`${qe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:In,lineHeight:fn,borderRadius:On,[`input${qe}-input`]:{height:He(En).sub(He(yt).mul(2)).equal(),padding:`${(0,ut.unit)(xn)} ${(0,ut.unit)(an)}`}},"&-sm":{padding:0,fontSize:rn,borderRadius:bn,[`input${qe}-input`]:{height:He(nn).sub(He(yt).mul(2)).equal(),padding:`${(0,ut.unit)(Tn)} ${(0,ut.unit)(ln)}`}},"&-out-of-range":{[`${qe}-input-wrap`]:{input:{color:vn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(De)),(0,Ie.s7)(De)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${qe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${qe}-group-addon`]:{borderRadius:On,fontSize:De.fontSizeLG}},"&-sm":{[`${qe}-group-addon`]:{borderRadius:bn}}},(0,ht.ir)(De)),(0,ht.S5)(De)),{[`&:not(${qe}-compact-first-item):not(${qe}-compact-last-item)${qe}-compact-item`]:{[`${qe}, ${qe}-group-addon`]:{borderRadius:0}},[`&:not(${qe}-compact-last-item)${qe}-compact-first-item`]:{[`${qe}, ${qe}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${qe}-compact-first-item)${qe}-compact-last-item`]:{[`${qe}, ${qe}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${qe}-input`]:{cursor:"not-allowed"},[qe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(De)),{width:"100%",padding:`${(0,ut.unit)(hn)} ${(0,ut.unit)(Qt)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:$t,outline:0,transition:`all ${Tt} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ie.nz)(De.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${qe}-handler-wrap, &-focused ${qe}-handler-wrap`]:{width:De.handleWidth,opacity:1}})},{[qe]:Object.assign(Object.assign(Object.assign({[`${qe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:De.handleVisibleWidth,opacity:Ft,height:"100%",borderStartStartRadius:0,borderStartEndRadius:$t,borderEndEndRadius:$t,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Tt}`,overflow:"hidden",[`${qe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${qe}-handler-up-inner,
${qe}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:De.handleFontSize}}},[`${qe}-handler`]:{height:"50%",overflow:"hidden",color:Kt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ut.unit)(yt)} ${Ct} ${Gt}`,transition:`all ${Tt} linear`,"&:active":{background:sn},"&:hover":{height:"60%",[`
${qe}-handler-up-inner,
${qe}-handler-down-inner
`]:{color:At}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Dt.Ro)()),{color:Kt,transition:`all ${Tt} linear`,userSelect:"none"})},[`${qe}-handler-up`]:{borderStartEndRadius:$t},[`${qe}-handler-down`]:{borderEndEndRadius:$t}},Et(De,"lg")),Et(De,"sm")),{"&-disabled, &-readonly":{[`${qe}-handler-wrap`]:{display:"none"},[`${qe}-input`]:{color:"inherit"}},[`
${qe}-handler-up-disabled,
${qe}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${qe}-handler-up-disabled:hover &-handler-up-inner,
${qe}-handler-down-disabled:hover &-handler-down-inner
`]:{color:un}})}]},ct=De=>{const{componentCls:qe,paddingBlock:yt,paddingInline:Ct,inputAffixPadding:$t,controlWidth:rn,borderRadiusLG:In,borderRadiusSM:En,paddingInlineLG:nn,paddingInlineSM:vn,paddingBlockLG:ln,paddingBlockSM:Tn,motionDurationMid:xn}=De;return{[`${qe}-affix-wrapper`]:Object.assign(Object.assign({[`input${qe}-input`]:{padding:`${(0,ut.unit)(yt)} 0`}},(0,Ie.ik)(De)),{position:"relative",display:"inline-flex",alignItems:"center",width:rn,padding:0,paddingInlineStart:Ct,"&-lg":{borderRadius:In,paddingInlineStart:nn,[`input${qe}-input`]:{padding:`${(0,ut.unit)(ln)} 0`}},"&-sm":{borderRadius:En,paddingInlineStart:vn,[`input${qe}-input`]:{padding:`${(0,ut.unit)(Tn)} 0`}},[`&:not(${qe}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${qe}-disabled`]:{background:"transparent"},[`> div${qe}`]:{width:"100%",border:"none",outline:"none",[`&${qe}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${qe}-handler-wrap`]:{zIndex:2},[qe]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:$t},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Ct,marginInlineStart:$t,transition:`margin ${xn}`}},[`&:hover ${qe}-handler-wrap, &-focused ${qe}-handler-wrap`]:{width:De.handleWidth,opacity:1},[`&:not(${qe}-affix-wrapper-without-controls):hover ${qe}-suffix`]:{marginInlineEnd:De.calc(De.handleWidth).add(Ct).equal()}})}};var qt=(0,Jt.I$)("InputNumber",De=>{const qe=(0,Yt.mergeToken)(De,(0,Ve.e)(De));return[mt(qe),ct(qe),(0,Ot.c)(qe)]},Pt,{unitless:{handleOpacity:!0}}),Ht=function(De,qe){var yt={};for(var Ct in De)Object.prototype.hasOwnProperty.call(De,Ct)&&qe.indexOf(Ct)<0&&(yt[Ct]=De[Ct]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ct=Object.getOwnPropertySymbols(De);$t<Ct.length;$t++)qe.indexOf(Ct[$t])<0&&Object.prototype.propertyIsEnumerable.call(De,Ct[$t])&&(yt[Ct[$t]]=De[Ct[$t]]);return yt};const Fe=E.forwardRef((De,qe)=>{const{getPrefixCls:yt,direction:Ct}=E.useContext(ae.E_),$t=E.useRef(null);E.useImperativeHandle(qe,()=>$t.current);const{className:rn,rootClassName:In,size:En,disabled:nn,prefixCls:vn,addonBefore:ln,addonAfter:Tn,prefix:xn,suffix:an,bordered:Kt,readOnly:Tt,status:At,controls:Ft,variant:Qt}=De,hn=Ht(De,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),pn=yt("input-number",vn),sn=(0,oe.Z)(pn),[un,bn,On]=qt(pn,sn),{compactSize:vt,compactItemClassnames:Gt}=(0,xe.ri)(pn,Ct);let cn=E.createElement(ge.Z,{className:`${pn}-handler-up-inner`}),fn=E.createElement(lt.Z,{className:`${pn}-handler-down-inner`});const He=typeof Ft=="boolean"?Ft:void 0;typeof Ft=="object"&&(cn=typeof Ft.upIcon=="undefined"?cn:E.createElement("span",{className:`${pn}-handler-up-inner`},Ft.upIcon),fn=typeof Ft.downIcon=="undefined"?fn:E.createElement("span",{className:`${pn}-handler-down-inner`},Ft.downIcon));const{hasFeedback:Ge,status:ye,isFormItemInput:Le,feedbackIcon:Oe}=E.useContext(ne.aM),Ke=(0,st.F)(ye,At),Bt=(0,se.Z)(kn=>{var Mn;return(Mn=En!=null?En:vt)!==null&&Mn!==void 0?Mn:kn}),on=E.useContext(ee.Z),mn=nn!=null?nn:on,[Sn,en]=(0,pe.Z)("inputNumber",Qt,Kt),Wt=Ge&&E.createElement(E.Fragment,null,Oe),zt=Ee()({[`${pn}-lg`]:Bt==="large",[`${pn}-sm`]:Bt==="small",[`${pn}-rtl`]:Ct==="rtl",[`${pn}-in-form-item`]:Le},bn),yn=`${pn}-group`,Ln=E.createElement(je,Object.assign({ref:$t,disabled:mn,className:Ee()(On,sn,rn,In,Gt),upHandler:cn,downHandler:fn,prefixCls:pn,readOnly:Tt,controls:He,prefix:xn,suffix:Wt||an,addonBefore:ln&&E.createElement(Nt.Z,{form:!0,space:!0},ln),addonAfter:Tn&&E.createElement(Nt.Z,{form:!0,space:!0},Tn),classNames:{input:zt,variant:Ee()({[`${pn}-${Sn}`]:en},(0,st.Z)(pn,Ke,Ge)),affixWrapper:Ee()({[`${pn}-affix-wrapper-sm`]:Bt==="small",[`${pn}-affix-wrapper-lg`]:Bt==="large",[`${pn}-affix-wrapper-rtl`]:Ct==="rtl",[`${pn}-affix-wrapper-without-controls`]:Ft===!1||mn},bn),wrapper:Ee()({[`${yn}-rtl`]:Ct==="rtl"},bn),groupWrapper:Ee()({[`${pn}-group-wrapper-sm`]:Bt==="small",[`${pn}-group-wrapper-lg`]:Bt==="large",[`${pn}-group-wrapper-rtl`]:Ct==="rtl",[`${pn}-group-wrapper-${Sn}`]:en},(0,st.Z)(`${pn}-group-wrapper`,Ke,Ge),bn)}},hn));return un(Ln)}),it=Fe,Xe=De=>E.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(Fe,Object.assign({},De)));it._InternalPanelDoNotUseOrYouWillBeFired=Xe;var St=it},49397:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return wt}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(36901),Ee=re(8654),Pe=re(62487),Ae=re(86013),Te=re(82855),we=re(48755),he=re(2171),tt=re(83397),Se=re(31756),dt=re(56553),$e=re(24971),Ce=re(70045),Ne=re(23826),Re=re(53075);function et(rt){return!!(rt.prefix||rt.suffix||rt.allowClear||rt.showCount)}var nt=function(rt,pt){var Qe={};for(var Rt in rt)Object.prototype.hasOwnProperty.call(rt,Rt)&&pt.indexOf(Rt)<0&&(Qe[Rt]=rt[Rt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Rt=Object.getOwnPropertySymbols(rt);gt<Rt.length;gt++)pt.indexOf(Rt[gt])<0&&Object.prototype.propertyIsEnumerable.call(rt,Rt[gt])&&(Qe[Rt[gt]]=rt[Rt[gt]]);return Qe},wt=(0,E.forwardRef)((rt,pt)=>{const{prefixCls:Qe,bordered:Rt=!0,status:gt,size:ot,disabled:It,onBlur:Be,onFocus:Ue,suffix:Ze,allowClear:ue,addonAfter:Je,addonBefore:ke,className:Me,style:ft,styles:me,rootClassName:ce,onChange:ze,classNames:Mt,variant:xt}=rt,ve=nt(rt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:We,direction:_e,allowClear:jt,autoComplete:kt,className:Vt,style:je,classNames:Nt,styles:st}=(0,we.dj)("input"),ae=We("input",Qe),te=(0,E.useRef)(null),ee=(0,tt.Z)(ae),[oe,se,ne]=(0,Re.TI)(ae,ce),[pe]=(0,Re.ZP)(ae,ee),{compactSize:xe,compactItemClassnames:ut}=(0,Ce.ri)(ae,_e),Ie=(0,Se.Z)(St=>{var De;return(De=ot!=null?ot:xe)!==null&&De!==void 0?De:St}),Ve=E.useContext(he.Z),ht=It!=null?It:Ve,{status:Dt,hasFeedback:Ot,feedbackIcon:Jt}=(0,E.useContext)(dt.aM),Yt=(0,Te.F)(Dt,gt),Ut=et(rt)||!!Ot,Pt=(0,E.useRef)(Ut),Et=(0,Ne.Z)(te,!0),mt=St=>{Et(),Be==null||Be(St)},ct=St=>{Et(),Ue==null||Ue(St)},qt=St=>{Et(),ze==null||ze(St)},Ht=(Ot||Ze)&&E.createElement(E.Fragment,null,Ze,Ot&&Jt),Fe=(0,Ae.Z)(ue!=null?ue:jt),[it,Xe]=(0,$e.Z)("input",xt,Rt);return oe(pe(E.createElement(Ye.default,Object.assign({ref:(0,Ee.sQ)(pt,te),prefixCls:ae,autoComplete:kt},ve,{disabled:ht,onBlur:mt,onFocus:ct,style:Object.assign(Object.assign({},je),ft),styles:Object.assign(Object.assign({},st),me),suffix:Ht,allowClear:Fe,className:ge()(Me,ce,ne,ee,ut,Vt),onChange:qt,addonBefore:ke&&E.createElement(Pe.Z,{form:!0,space:!0},ke),addonAfter:Je&&E.createElement(Pe.Z,{form:!0,space:!0},Je),classNames:Object.assign(Object.assign(Object.assign({},Mt),Nt),{input:ge()({[`${ae}-sm`]:Ie==="small",[`${ae}-lg`]:Ie==="large",[`${ae}-rtl`]:_e==="rtl"},Mt==null?void 0:Mt.input,Nt.input,se),variant:ge()({[`${ae}-${it}`]:Xe},(0,Te.Z)(ae,Yt)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Ie==="small",[`${ae}-affix-wrapper-lg`]:Ie==="large",[`${ae}-affix-wrapper-rtl`]:_e==="rtl"},se),wrapper:ge()({[`${ae}-group-rtl`]:_e==="rtl"},se),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Ie==="small",[`${ae}-group-wrapper-lg`]:Ie==="large",[`${ae}-group-wrapper-rtl`]:_e==="rtl",[`${ae}-group-wrapper-${it}`]:Xe},(0,Te.Z)(`${ae}-group-wrapper`,Yt,Ot),se)})}))))})},79809:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return pt}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(22711),Ee=re(86013),Pe=re(82855),Ae=re(48755),Te=re(2171),we=re(83397),he=re(31756),tt=re(56553),Se=re(24971),dt=re(70045),$e=re(30292),Ce=re(53075),Ne=re(16931),Re=re(51636),et=re(64910);const nt=Qe=>{const{componentCls:Rt,paddingLG:gt}=Qe,ot=`${Rt}-textarea`;return{[`textarea${Rt}`]:{maxWidth:"100%",height:"auto",minHeight:Qe.controlHeight,lineHeight:Qe.lineHeight,verticalAlign:"bottom",transition:`all ${Qe.motionDurationSlow}`,resize:"vertical",[`&${Rt}-mouse-active`]:{transition:`all ${Qe.motionDurationSlow}, height 0s, width 0s`}},[`${Rt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ot]:{position:"relative","&-show-count":{[`> ${Rt}`]:{height:"100%"},[`${Rt}-data-count`]:{position:"absolute",bottom:Qe.calc(Qe.fontSize).mul(Qe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Qe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${Rt},
&-affix-wrapper${ot}-has-feedback ${Rt}
`]:{paddingInlineEnd:gt},[`&-affix-wrapper${Rt}-affix-wrapper`]:{padding:0,[`> textarea${Rt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Qe.calc(Qe.controlHeight).sub(Qe.calc(Qe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Rt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Rt}-clear-icon`]:{position:"absolute",insetInlineEnd:Qe.paddingInline,insetBlockStart:Qe.paddingXS},[`${ot}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Qe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Rt}-affix-wrapper-sm`]:{[`${Rt}-suffix`]:{[`${Rt}-clear-icon`]:{insetInlineEnd:Qe.paddingInlineSM}}}}}};var Lt=(0,Ne.I$)(["Input","TextArea"],Qe=>{const Rt=(0,Re.mergeToken)(Qe,(0,et.e)(Qe));return[nt(Rt)]},et.T,{resetFont:!1}),wt=function(Qe,Rt){var gt={};for(var ot in Qe)Object.prototype.hasOwnProperty.call(Qe,ot)&&Rt.indexOf(ot)<0&&(gt[ot]=Qe[ot]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,ot=Object.getOwnPropertySymbols(Qe);It<ot.length;It++)Rt.indexOf(ot[It])<0&&Object.prototype.propertyIsEnumerable.call(Qe,ot[It])&&(gt[ot[It]]=Qe[ot[It]]);return gt},pt=(0,E.forwardRef)((Qe,Rt)=>{var gt;const{prefixCls:ot,bordered:It=!0,size:Be,disabled:Ue,status:Ze,allowClear:ue,classNames:Je,rootClassName:ke,className:Me,style:ft,styles:me,variant:ce,showCount:ze,onMouseDown:Mt,onResize:xt}=Qe,ve=wt(Qe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:We,direction:_e,allowClear:jt,autoComplete:kt,className:Vt,style:je,classNames:Nt,styles:st}=(0,Ae.dj)("textArea"),ae=E.useContext(Te.Z),te=Ue!=null?Ue:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=E.useContext(tt.aM),ne=(0,Pe.F)(ee,Ze),pe=E.useRef(null);E.useImperativeHandle(Rt,()=>{var Xe;return{resizableTextArea:(Xe=pe.current)===null||Xe===void 0?void 0:Xe.resizableTextArea,focus:St=>{var De,qe;(0,$e.nH)((qe=(De=pe.current)===null||De===void 0?void 0:De.resizableTextArea)===null||qe===void 0?void 0:qe.textArea,St)},blur:()=>{var St;return(St=pe.current)===null||St===void 0?void 0:St.blur()}}});const xe=We("input",ot),ut=(0,we.Z)(xe),[Ie,Ve,ht]=(0,Ce.TI)(xe,ke),[Dt]=Lt(xe,ut),{compactSize:Ot,compactItemClassnames:Jt}=(0,dt.ri)(xe,_e),Yt=(0,he.Z)(Xe=>{var St;return(St=Be!=null?Be:Ot)!==null&&St!==void 0?St:Xe}),[Ut,Pt]=(0,Se.Z)("textArea",ce,It),Et=(0,Ee.Z)(ue!=null?ue:jt),[mt,ct]=E.useState(!1),[qt,Ht]=E.useState(!1),Fe=Xe=>{ct(!0),Mt==null||Mt(Xe);const St=()=>{ct(!1),document.removeEventListener("mouseup",St)};document.addEventListener("mouseup",St)},it=Xe=>{var St,De;if(xt==null||xt(Xe),mt&&typeof getComputedStyle=="function"){const qe=(De=(St=pe.current)===null||St===void 0?void 0:St.nativeElement)===null||De===void 0?void 0:De.querySelector("textarea");qe&&getComputedStyle(qe).resize==="both"&&Ht(!0)}};return Ie(Dt(E.createElement(Ye.default,Object.assign({autoComplete:kt},ve,{style:Object.assign(Object.assign({},je),ft),styles:Object.assign(Object.assign({},st),me),disabled:te,allowClear:Et,className:ge()(ht,ut,Me,ke,Jt,Vt,qt&&`${xe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Je),Nt),{textarea:ge()({[`${xe}-sm`]:Yt==="small",[`${xe}-lg`]:Yt==="large"},Ve,Je==null?void 0:Je.textarea,Nt.textarea,mt&&`${xe}-mouse-active`),variant:ge()({[`${xe}-${Ut}`]:Pt},(0,Pe.Z)(xe,ne)),affixWrapper:ge()(`${xe}-textarea-affix-wrapper`,{[`${xe}-affix-wrapper-rtl`]:_e==="rtl",[`${xe}-affix-wrapper-sm`]:Yt==="small",[`${xe}-affix-wrapper-lg`]:Yt==="large",[`${xe}-textarea-show-count`]:ze||((gt=Qe.count)===null||gt===void 0?void 0:gt.show)},Ve)}),prefixCls:xe,suffix:oe&&E.createElement("span",{className:`${xe}-textarea-suffix`},se),showCount:ze,ref:pe,onResize:it,onMouseDown:Fe}))))})},23826:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return lt}});var E=re(59301);function lt(ge,Ye){const Ee=(0,E.useRef)([]),Pe=()=>{Ee.current.push(setTimeout(()=>{var Ae,Te,we,he;!((Ae=ge.current)===null||Ae===void 0)&&Ae.input&&((Te=ge.current)===null||Te===void 0?void 0:Te.input.getAttribute("type"))==="password"&&(!((we=ge.current)===null||we===void 0)&&we.input.hasAttribute("value"))&&((he=ge.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(Ye&&Pe(),()=>Ee.current.forEach(Ae=>{Ae&&clearTimeout(Ae)})),[]),Pe}},37568:function(tn,_t,re){"use strict";re.d(_t,{default:function(){return Nt}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(48755),Ee=re(56553),Pe=re(53075),Te=st=>{const{getPrefixCls:ae,direction:te}=(0,E.useContext)(Ye.E_),{prefixCls:ee,className:oe}=st,se=ae("input-group",ee),ne=ae("input"),[pe,xe,ut]=(0,Pe.ZP)(ne),Ie=ge()(se,ut,{[`${se}-lg`]:st.size==="large",[`${se}-sm`]:st.size==="small",[`${se}-compact`]:st.compact,[`${se}-rtl`]:te==="rtl"},xe,oe),Ve=(0,E.useContext)(Ee.aM),ht=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ve),{isFormItemInput:!1}),[Ve]);return pe(E.createElement("span",{className:Ie,style:st.style,onMouseEnter:st.onMouseEnter,onMouseLeave:st.onMouseLeave,onFocus:st.onFocus,onBlur:st.onBlur},E.createElement(Ee.aM.Provider,{value:ht},st.children)))},we=re(49397),he=re(94480),tt=re(6089),Se=re(26112),dt=re(82855),$e=re(31756),Ce=re(16931),Ne=re(51636),Re=re(64910);const et=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 nt=(0,Ce.I$)(["Input","OTP"],st=>{const ae=(0,Ne.mergeToken)(st,(0,Re.e)(st));return[et(ae)]},Re.T),Lt=re(16089),wt=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},pt=E.forwardRef((st,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=st,pe=wt(st,["value","onChange","onActiveChange","index","mask"]),xe=te&&typeof ne=="string"?ne:te,ut=Ot=>{ee(se,Ot.target.value)},Ie=E.useRef(null);E.useImperativeHandle(ae,()=>Ie.current);const Ve=()=>{(0,Lt.Z)(()=>{var Ot;const Jt=(Ot=Ie.current)===null||Ot===void 0?void 0:Ot.input;document.activeElement===Jt&&Jt&&Jt.select()})},ht=Ot=>{const{key:Jt,ctrlKey:Yt,metaKey:Ut}=Ot;Jt==="ArrowLeft"?oe(se-1):Jt==="ArrowRight"?oe(se+1):Jt==="z"&&(Yt||Ut)&&Ot.preventDefault(),Ve()},Dt=Ot=>{Ot.key==="Backspace"&&!te&&oe(se-1),Ve()};return E.createElement(we.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Ie,value:xe,onInput:ut,onFocus:Ve,onKeyDown:ht,onKeyUp:Dt,onMouseDown:Ve,onMouseUp:Ve}))}),Qe=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te};function Rt(st){return(st||"").split("")}const gt=st=>{const{index:ae,prefixCls:te,separator:ee}=st,oe=typeof ee=="function"?ee(ae):ee;return oe?E.createElement("span",{className:`${te}-separator`},oe):null};var It=E.forwardRef((st,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:pe,formatter:xe,separator:ut,variant:Ie,disabled:Ve,status:ht,autoFocus:Dt,mask:Ot,type:Jt,onInput:Yt,inputMode:Ut}=st,Pt=Qe(st,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Et,direction:mt}=E.useContext(Ye.E_),ct=Et("otp",te),qt=(0,Se.Z)(Pt,{aria:!0,data:!0,attr:!0}),[Ht,Fe,it]=nt(ct),Xe=(0,$e.Z)(xn=>oe!=null?oe:xn),St=E.useContext(Ee.aM),De=(0,dt.F)(St.status,ht),qe=E.useMemo(()=>Object.assign(Object.assign({},St),{status:De,hasFeedback:!1,feedbackIcon:null}),[St,De]),yt=E.useRef(null),Ct=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var xn;(xn=Ct.current[0])===null||xn===void 0||xn.focus()},blur:()=>{var xn;for(let an=0;an<ee;an+=1)(xn=Ct.current[an])===null||xn===void 0||xn.blur()},nativeElement:yt.current}));const $t=xn=>xe?xe(xn):xn,[rn,In]=E.useState(()=>Rt($t(se||"")));E.useEffect(()=>{ne!==void 0&&In(Rt(ne))},[ne]);const En=(0,tt.Z)(xn=>{In(xn),Yt&&Yt(xn),pe&&xn.length===ee&&xn.every(an=>an)&&xn.some((an,Kt)=>rn[Kt]!==an)&&pe(xn.join(""))}),nn=(0,tt.Z)((xn,an)=>{let Kt=(0,he.Z)(rn);for(let At=0;At<xn;At+=1)Kt[At]||(Kt[At]="");an.length<=1?Kt[xn]=an:Kt=Kt.slice(0,xn).concat(Rt(an)),Kt=Kt.slice(0,ee);for(let At=Kt.length-1;At>=0&&!Kt[At];At-=1)Kt.pop();const Tt=$t(Kt.map(At=>At||" ").join(""));return Kt=Rt(Tt).map((At,Ft)=>At===" "&&!Kt[Ft]?Kt[Ft]:At),Kt}),vn=(xn,an)=>{var Kt;const Tt=nn(xn,an),At=Math.min(xn+an.length,ee-1);At!==xn&&Tt[xn]!==void 0&&((Kt=Ct.current[At])===null||Kt===void 0||Kt.focus()),En(Tt)},ln=xn=>{var an;(an=Ct.current[xn])===null||an===void 0||an.focus()},Tn={variant:Ie,disabled:Ve,status:De,mask:Ot,type:Jt,inputMode:Ut};return Ht(E.createElement("div",Object.assign({},qt,{ref:yt,className:ge()(ct,{[`${ct}-sm`]:Xe==="small",[`${ct}-lg`]:Xe==="large",[`${ct}-rtl`]:mt==="rtl"},it,Fe)}),E.createElement(Ee.aM.Provider,{value:qe},Array.from({length:ee}).map((xn,an)=>{const Kt=`otp-${an}`,Tt=rn[an]||"";return E.createElement(E.Fragment,{key:Kt},E.createElement(pt,Object.assign({ref:At=>{Ct.current[an]=At},index:an,size:Xe,htmlSize:1,className:`${ct}-input`,onChange:vn,value:Tt,onActiveChange:ln,autoFocus:an===0&&Dt},Tn)),an<ee-1&&E.createElement(gt,{separator:ut,index:an,prefixCls:ct}))}))))}),Be=re(73331),Ue=re(15277),Ze=re(2738),ue=re(8654),Je=re(2171),ke=re(23826),Me=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 ft=st=>st?E.createElement(Ue.Z,null):E.createElement(Be.Z,null),me={click:"onClick",hover:"onMouseOver"};var ze=E.forwardRef((st,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=ft}=st,ne=E.useContext(Je.Z),pe=te!=null?te:ne,xe=typeof oe=="object"&&oe.visible!==void 0,[ut,Ie]=(0,E.useState)(()=>xe?oe.visible:!1),Ve=(0,E.useRef)(null);E.useEffect(()=>{xe&&Ie(oe.visible)},[xe,oe]);const ht=(0,ke.Z)(Ve),Dt=()=>{var Xe;if(pe)return;ut&&ht();const St=!ut;Ie(St),typeof oe=="object"&&((Xe=oe.onVisibleChange)===null||Xe===void 0||Xe.call(oe,St))},Ot=Xe=>{const St=me[ee]||"",De=se(ut),qe={[St]:Dt,className:`${Xe}-icon`,key:"passwordIcon",onMouseDown:yt=>{yt.preventDefault()},onMouseUp:yt=>{yt.preventDefault()}};return E.cloneElement(E.isValidElement(De)?De:E.createElement("span",null,De),qe)},{className:Jt,prefixCls:Yt,inputPrefixCls:Ut,size:Pt}=st,Et=Me(st,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:mt}=E.useContext(Ye.E_),ct=mt("input",Ut),qt=mt("input-password",Yt),Ht=oe&&Ot(qt),Fe=ge()(qt,Jt,{[`${qt}-${Pt}`]:!!Pt}),it=Object.assign(Object.assign({},(0,Ze.Z)(Et,["suffix","iconRender","visibilityToggle"])),{type:ut?"text":"password",className:Fe,prefixCls:ct,suffix:Ht});return Pt&&(it.size=Pt),E.createElement(we.Z,Object.assign({ref:(0,ue.sQ)(ae,Ve)},it))}),Mt=re(47472),xt=re(22703),ve=re(7939),We=re(70045),_e=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},kt=E.forwardRef((st,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:pe=!1,addonAfter:xe,loading:ut,disabled:Ie,onSearch:Ve,onChange:ht,onCompositionStart:Dt,onCompositionEnd:Ot}=st,Jt=_e(st,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Yt,direction:Ut}=E.useContext(Ye.E_),Pt=E.useRef(!1),Et=Yt("input-search",te),mt=Yt("input",ee),{compactSize:ct}=(0,We.ri)(Et,Ut),qt=(0,$e.Z)(vn=>{var ln;return(ln=se!=null?se:ct)!==null&&ln!==void 0?ln:vn}),Ht=E.useRef(null),Fe=vn=>{vn!=null&&vn.target&&vn.type==="click"&&Ve&&Ve(vn.target.value,vn,{source:"clear"}),ht==null||ht(vn)},it=vn=>{var ln;document.activeElement===((ln=Ht.current)===null||ln===void 0?void 0:ln.input)&&vn.preventDefault()},Xe=vn=>{var ln,Tn;Ve&&Ve((Tn=(ln=Ht.current)===null||ln===void 0?void 0:ln.input)===null||Tn===void 0?void 0:Tn.value,vn,{source:"input"})},St=vn=>{Pt.current||ut||Xe(vn)},De=typeof pe=="boolean"?E.createElement(Mt.Z,null):null,qe=`${Et}-button`;let yt;const Ct=pe||{},$t=Ct.type&&Ct.type.__ANT_BUTTON===!0;$t||Ct.type==="button"?yt=(0,xt.Tm)(Ct,Object.assign({onMouseDown:it,onClick:vn=>{var ln,Tn;(Tn=(ln=Ct==null?void 0:Ct.props)===null||ln===void 0?void 0:ln.onClick)===null||Tn===void 0||Tn.call(ln,vn),Xe(vn)},key:"enterButton"},$t?{className:qe,size:qt}:{})):yt=E.createElement(ve.ZP,{className:qe,type:pe?"primary":void 0,size:qt,disabled:Ie,key:"enterButton",onMouseDown:it,onClick:Xe,loading:ut,icon:De},pe),xe&&(yt=[yt,(0,xt.Tm)(xe,{key:"addonAfter"})]);const rn=ge()(Et,{[`${Et}-rtl`]:Ut==="rtl",[`${Et}-${qt}`]:!!qt,[`${Et}-with-button`]:!!pe},oe),In=Object.assign(Object.assign({},Jt),{className:rn,prefixCls:mt,type:"search"}),En=vn=>{Pt.current=!0,Dt==null||Dt(vn)},nn=vn=>{Pt.current=!1,Ot==null||Ot(vn)};return E.createElement(we.Z,Object.assign({ref:(0,ue.sQ)(Ht,ae),onPressEnter:St},In,{size:qt,onCompositionStart:En,onCompositionEnd:nn,addonAfter:yt,suffix:ne,onChange:Fe,disabled:Ie}))}),Vt=re(79809);const je=we.Z;je.Group=Te,je.Search=kt,je.TextArea=Vt.Z,je.Password=ze,je.OTP=It;var Nt=je},24303:function(tn,_t,re){"use strict";re.d(_t,{D:function(){return Qe},Z:function(){return ot}});var E=re(59301),lt=re(54476),ge={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"},Ye=ge,Ee=re(7657),Pe=function(Be,Ue){return E.createElement(Ee.Z,(0,lt.Z)({},Be,{ref:Ue,icon:Ye}))},Ae=E.forwardRef(Pe),Te=Ae,we=re(33853),he=re(38819),tt=re(92310),Se=re.n(tt),dt=re(2738),$e=re(48755),Ce=re(6989),Ne=re(36237),Re=re(48923),et=re(16931);const nt=It=>{const{componentCls:Be,siderBg:Ue,motionDurationMid:Ze,motionDurationSlow:ue,antCls:Je,triggerHeight:ke,triggerColor:Me,triggerBg:ft,headerHeight:me,zeroTriggerWidth:ce,zeroTriggerHeight:ze,borderRadiusLG:Mt,lightSiderBg:xt,lightTriggerColor:ve,lightTriggerBg:We,bodyBg:_e}=It;return{[Be]:{position:"relative",minWidth:0,background:Ue,transition:`all ${Ze}, background 0s`,"&-has-trigger":{paddingBottom:ke},"&-right":{order:1},[`${Be}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Je}-menu${Je}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Be}-children`]:{overflow:"hidden"},[`${Be}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ke,color:Me,lineHeight:(0,Ne.unit)(ke),textAlign:"center",background:ft,cursor:"pointer",transition:`all ${Ze}`},[`${Be}-zero-width-trigger`]:{position:"absolute",top:me,insetInlineEnd:It.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:ze,color:Me,fontSize:It.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ue,borderRadius:`0 ${(0,Ne.unit)(Mt)} ${(0,Ne.unit)(Mt)} 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:It.calc(ce).mul(-1).equal(),borderRadius:`${(0,Ne.unit)(Mt)} 0 0 ${(0,Ne.unit)(Mt)}`}},"&-light":{background:xt,[`${Be}-trigger`]:{color:ve,background:We},[`${Be}-zero-width-trigger`]:{color:ve,background:We,border:`1px solid ${_e}`,borderInlineStart:0}}}}};var Lt=(0,et.I$)(["Layout","Sider"],It=>[nt(It)],Re.eh,{deprecatedTokens:Re.jn}),wt=function(It,Be){var Ue={};for(var Ze in It)Object.prototype.hasOwnProperty.call(It,Ze)&&Be.indexOf(Ze)<0&&(Ue[Ze]=It[Ze]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ze=Object.getOwnPropertySymbols(It);ue<Ze.length;ue++)Be.indexOf(Ze[ue])<0&&Object.prototype.propertyIsEnumerable.call(It,Ze[ue])&&(Ue[Ze[ue]]=It[Ze[ue]]);return Ue};const rt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},pt=It=>!Number.isNaN(Number.parseFloat(It))&&isFinite(It),Qe=E.createContext({}),Rt=(()=>{let It=0;return function(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return It+=1,`${Be}${It}`}})();var ot=E.forwardRef((It,Be)=>{const{prefixCls:Ue,className:Ze,trigger:ue,children:Je,defaultCollapsed:ke=!1,theme:Me="dark",style:ft={},collapsible:me=!1,reverseArrow:ce=!1,width:ze=200,collapsedWidth:Mt=80,zeroWidthTriggerStyle:xt,breakpoint:ve,onCollapse:We,onBreakpoint:_e}=It,jt=wt(It,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:kt}=(0,E.useContext)(Ce.V),[Vt,je]=(0,E.useState)("collapsed"in It?It.collapsed:ke),[Nt,st]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in It&&je(It.collapsed)},[It.collapsed]);const ae=(qt,Ht)=>{"collapsed"in It||je(qt),We==null||We(qt,Ht)},{getPrefixCls:te,direction:ee}=(0,E.useContext)($e.E_),oe=te("layout-sider",Ue),[se,ne,pe]=Lt(oe),xe=(0,E.useRef)(null);xe.current=qt=>{st(qt.matches),_e==null||_e(qt.matches),Vt!==qt.matches&&ae(qt.matches,"responsive")},(0,E.useEffect)(()=>{function qt(Fe){return xe.current(Fe)}let Ht;if(typeof window!="undefined"){const{matchMedia:Fe}=window;if(Fe&&ve&&ve in rt){Ht=Fe(`screen and (max-width: ${rt[ve]})`);try{Ht.addEventListener("change",qt)}catch(it){Ht.addListener(qt)}qt(Ht)}}return()=>{try{Ht==null||Ht.removeEventListener("change",qt)}catch(Fe){Ht==null||Ht.removeListener(qt)}}},[ve]),(0,E.useEffect)(()=>{const qt=Rt("ant-sider-");return kt.addSider(qt),()=>kt.removeSider(qt)},[]);const ut=()=>{ae(!Vt,"clickTrigger")},Ie=(0,dt.Z)(jt,["collapsed"]),Ve=Vt?Mt:ze,ht=pt(Ve)?`${Ve}px`:String(Ve),Dt=parseFloat(String(Mt||0))===0?E.createElement("span",{onClick:ut,className:Se()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:xt},ue||E.createElement(Te,null)):null,Ot=ee==="rtl"==!ce,Ut={expanded:Ot?E.createElement(he.Z,null):E.createElement(we.Z,null),collapsed:Ot?E.createElement(we.Z,null):E.createElement(he.Z,null)}[Vt?"collapsed":"expanded"],Pt=ue!==null?Dt||E.createElement("div",{className:`${oe}-trigger`,onClick:ut,style:{width:ht}},ue||Ut):null,Et=Object.assign(Object.assign({},ft),{flex:`0 0 ${ht}`,maxWidth:ht,minWidth:ht,width:ht}),mt=Se()(oe,`${oe}-${Me}`,{[`${oe}-collapsed`]:!!Vt,[`${oe}-has-trigger`]:me&&ue!==null&&!Dt,[`${oe}-below`]:!!Nt,[`${oe}-zero-width`]:parseFloat(ht)===0},Ze,ne,pe),ct=E.useMemo(()=>({siderCollapsed:Vt}),[Vt]);return se(E.createElement(Qe.Provider,{value:ct},E.createElement("aside",Object.assign({className:mt},Ie,{style:Et,ref:Be}),E.createElement("div",{className:`${oe}-children`},Je),me||Nt&&Dt?Pt:null)))})},6989:function(tn,_t,re){"use strict";re.d(_t,{V:function(){return lt}});var E=re(59301);const lt=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(tn,_t,re){"use strict";re.d(_t,{eh:function(){return Ye},jn:function(){return Ee}});var E=re(36237),lt=re(16931);const ge=Pe=>{const{antCls:Ae,componentCls:Te,colorText:we,footerBg:he,headerHeight:tt,headerPadding:Se,headerColor:dt,footerPadding:$e,fontSize:Ce,bodyBg:Ne,headerBg:Re}=Pe;return{[Te]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ne,"&, *":{boxSizing:"border-box"},[`&${Te}-has-sider`]:{flexDirection:"row",[`> ${Te}, > ${Te}-content`]:{width:0}},[`${Te}-header, &${Te}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Te}-header`]:{height:tt,padding:Se,color:dt,lineHeight:(0,E.unit)(tt),background:Re,[`${Ae}-menu`]:{lineHeight:"inherit"}},[`${Te}-footer`]:{padding:$e,color:we,fontSize:Ce,background:he},[`${Te}-content`]:{flex:"auto",color:we,minHeight:0}}},Ye=Pe=>{const{colorBgLayout:Ae,controlHeight:Te,controlHeightLG:we,colorText:he,controlHeightSM:tt,marginXXS:Se,colorTextLightSolid:dt,colorBgContainer:$e}=Pe,Ce=we*1.25;return{colorBgHeader:"#001529",colorBgBody:Ae,colorBgTrigger:"#002140",bodyBg:Ae,headerBg:"#001529",headerHeight:Te*2,headerPadding:`0 ${Ce}px`,headerColor:he,footerPadding:`${tt}px ${Ce}px`,footerBg:Ae,siderBg:"#001529",triggerHeight:we+Se*2,triggerBg:"#002140",triggerColor:dt,zeroTriggerWidth:we,zeroTriggerHeight:we,lightSiderBg:$e,lightTriggerBg:$e,lightTriggerColor:he}},Ee=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];_t.ZP=(0,lt.I$)("Layout",Pe=>[ge(Pe)],Ye,{deprecatedTokens:Ee})},78857:function(tn,_t,re){"use strict";re.d(_t,{J:function(){return Pe}});var E=re(59301),lt=re(8654),ge=re(62487),Ye=function(Ae,Te){var we={};for(var he in Ae)Object.prototype.hasOwnProperty.call(Ae,he)&&Te.indexOf(he)<0&&(we[he]=Ae[he]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,he=Object.getOwnPropertySymbols(Ae);tt<he.length;tt++)Te.indexOf(he[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,he[tt])&&(we[he[tt]]=Ae[he[tt]]);return we};const Ee=E.createContext(null),Pe=E.forwardRef((Ae,Te)=>{const{children:we}=Ae,he=Ye(Ae,["children"]),tt=E.useContext(Ee),Se=E.useMemo(()=>Object.assign(Object.assign({},tt),he),[tt,he.prefixCls,he.mode,he.selectable,he.rootClassName]),dt=(0,lt.t4)(we),$e=(0,lt.x1)(Te,dt?(0,lt.C4)(we):null);return E.createElement(Ee.Provider,{value:Se},E.createElement(ge.Z,{space:!0},dt?E.cloneElement(we,{ref:$e}):we))});_t.Z=Ee},93041:function(tn,_t,re){"use strict";re.d(_t,{default:function(){return se}});var E=re(59301),lt=re(28321),ge=re(24303),Ye=re(18785),Ee=re(92310),Pe=re.n(Ee),Ae=re(6089),Te=re(2738),we=re(86641),he=re(22703),tt=re(48755),Se=re(83397),$e=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ce=function(ne,pe){var xe={};for(var ut in ne)Object.prototype.hasOwnProperty.call(ne,ut)&&pe.indexOf(ut)<0&&(xe[ut]=ne[ut]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,ut=Object.getOwnPropertySymbols(ne);Ie<ut.length;Ie++)pe.indexOf(ut[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ne,ut[Ie])&&(xe[ut[Ie]]=ne[ut[Ie]]);return xe},Re=ne=>{const{prefixCls:pe,className:xe,dashed:ut}=ne,Ie=Ce(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=E.useContext(tt.E_),ht=Ve("menu",pe),Dt=Pe()({[`${ht}-item-divider-dashed`]:!!ut},xe);return E.createElement(lt.iz,Object.assign({className:Dt},Ie))},et=re(11592),nt=re(25399),wt=ne=>{var pe;const{className:xe,children:ut,icon:Ie,title:Ve,danger:ht,extra:Dt}=ne,{prefixCls:Ot,firstLevel:Jt,direction:Yt,disableMenuItemTitleTooltip:Ut,inlineCollapsed:Pt}=E.useContext($e),Et=it=>{const Xe=ut==null?void 0:ut[0],St=E.createElement("span",{className:Pe()(`${Ot}-title-content`,{[`${Ot}-title-content-with-extra`]:!!Dt||Dt===0})},ut);return(!Ie||E.isValidElement(ut)&&ut.type==="span")&&ut&&it&&Jt&&typeof Xe=="string"?E.createElement("div",{className:`${Ot}-inline-collapsed-noicon`},Xe.charAt(0)):St},{siderCollapsed:mt}=E.useContext(ge.D);let ct=Ve;typeof Ve=="undefined"?ct=Jt?ut:"":Ve===!1&&(ct="");const qt={title:ct};!mt&&!Pt&&(qt.title=null,qt.open=!1);const Ht=(0,et.Z)(ut).length;let Fe=E.createElement(lt.ck,Object.assign({},(0,Te.Z)(ne,["title","icon","danger"]),{className:Pe()({[`${Ot}-item-danger`]:ht,[`${Ot}-item-only-child`]:(Ie?Ht+1:Ht)===1},xe),title:typeof Ve=="string"?Ve:void 0}),(0,he.Tm)(Ie,{className:Pe()(E.isValidElement(Ie)?(pe=Ie.props)===null||pe===void 0?void 0:pe.className:"",`${Ot}-item-icon`)}),Et(Pt));return Ut||(Fe=E.createElement(nt.Z,Object.assign({},qt,{placement:Yt==="rtl"?"left":"right",classNames:{root:`${Ot}-inline-collapsed-tooltip`}}),Fe)),Fe},rt=re(78857),pt=re(36237),Qe=re(17835),Rt=re(63356),gt=re(34961),ot=re(46e3),It=re(34925),Be=re(16931),Ue=re(51636),ue=ne=>{const{componentCls:pe,motionDurationSlow:xe,horizontalLineHeight:ut,colorSplit:Ie,lineWidth:Ve,lineType:ht,itemPaddingInline:Dt}=ne;return{[`${pe}-horizontal`]:{lineHeight:ut,border:0,borderBottom:`${(0,pt.unit)(Ve)} ${ht} ${Ie}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Dt},[`> ${pe}-item:hover,
> ${pe}-item-active,
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${xe}`,`background ${xe}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},ke=ne=>{let{componentCls:pe,menuArrowOffset:xe,calc:ut}=ne;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,pt.unit)(ut(xe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,pt.unit)(xe)})`}}}}};const Me=ne=>Object.assign({},(0,Rt.oN)(ne));var me=(ne,pe)=>{const{componentCls:xe,itemColor:ut,itemSelectedColor:Ie,subMenuItemSelectedColor:Ve,groupTitleColor:ht,itemBg:Dt,subMenuItemBg:Ot,itemSelectedBg:Jt,activeBarHeight:Yt,activeBarWidth:Ut,activeBarBorderWidth:Pt,motionDurationSlow:Et,motionEaseInOut:mt,motionEaseOut:ct,itemPaddingInline:qt,motionDurationMid:Ht,itemHoverColor:Fe,lineType:it,colorSplit:Xe,itemDisabledColor:St,dangerItemColor:De,dangerItemHoverColor:qe,dangerItemSelectedColor:yt,dangerItemActiveBg:Ct,dangerItemSelectedBg:$t,popupBg:rn,itemHoverBg:In,itemActiveBg:En,menuSubMenuBg:nn,horizontalItemSelectedColor:vn,horizontalItemSelectedBg:ln,horizontalItemBorderRadius:Tn,horizontalItemHoverBg:xn}=ne;return{[`${xe}-${pe}, ${xe}-${pe} > ${xe}`]:{color:ut,background:Dt,[`&${xe}-root:focus-visible`]:Object.assign({},Me(ne)),[`${xe}-item`]:{"&-group-title, &-extra":{color:ht}},[`${xe}-submenu-selected > ${xe}-submenu-title`]:{color:Ve},[`${xe}-item, ${xe}-submenu-title`]:{color:ut,[`&:not(${xe}-item-disabled):focus-visible`]:Object.assign({},Me(ne))},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{color:`${St} !important`},[`${xe}-item:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{[`&:hover, > ${xe}-submenu-title:hover`]:{color:Fe}},[`&:not(${xe}-horizontal)`]:{[`${xe}-item:not(${xe}-item-selected)`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:En}},[`${xe}-submenu-title`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:En}}},[`${xe}-item-danger`]:{color:De,[`&${xe}-item:hover`]:{[`&:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{color:qe}},[`&${xe}-item:active`]:{background:Ct}},[`${xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${xe}-item-selected`]:{color:Ie,[`&${xe}-item-danger`]:{color:yt},"a, a:hover":{color:"inherit"}},[`& ${xe}-item-selected`]:{backgroundColor:Jt,[`&${xe}-item-danger`]:{backgroundColor:$t}},[`&${xe}-submenu > ${xe}`]:{backgroundColor:nn},[`&${xe}-popup > ${xe}`]:{backgroundColor:rn},[`&${xe}-submenu-popup > ${xe}`]:{backgroundColor:rn},[`&${xe}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${xe}-item, > ${xe}-submenu`]:{top:Pt,marginTop:ne.calc(Pt).mul(-1).equal(),marginBottom:0,borderRadius:Tn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${(0,pt.unit)(Yt)} solid transparent`,transition:`border-color ${Et} ${mt}`,content:'""'},"&:hover, &-active, &-open":{background:xn,"&::after":{borderBottomWidth:Yt,borderBottomColor:vn}},"&-selected":{color:vn,backgroundColor:ln,"&:hover":{backgroundColor:ln},"&::after":{borderBottomWidth:Yt,borderBottomColor:vn}}}}),[`&${xe}-root`]:{[`&${xe}-inline, &${xe}-vertical`]:{borderInlineEnd:`${(0,pt.unit)(Pt)} ${it} ${Xe}`}},[`&${xe}-inline`]:{[`${xe}-sub${xe}-inline`]:{background:Ot},[`${xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,pt.unit)(Ut)} solid ${Ie}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${ct}`,`opacity ${Ht} ${ct}`].join(","),content:'""'},[`&${xe}-item-danger`]:{"&::after":{borderInlineEndColor:yt}}},[`${xe}-selected, ${xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${mt}`,`opacity ${Ht} ${mt}`].join(",")}}}}}};const ce=ne=>{const{componentCls:pe,itemHeight:xe,itemMarginInline:ut,padding:Ie,menuArrowSize:Ve,marginXS:ht,itemMarginBlock:Dt,itemWidth:Ot,itemPaddingInline:Jt}=ne,Yt=ne.calc(Ve).add(Ie).add(ht).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:xe,lineHeight:(0,pt.unit)(xe),paddingInline:Jt,overflow:"hidden",textOverflow:"ellipsis",marginInline:ut,marginBlock:Dt,width:Ot},[`> ${pe}-item,
> ${pe}-submenu > ${pe}-submenu-title`]:{height:xe,lineHeight:(0,pt.unit)(xe)},[`${pe}-item-group-list ${pe}-submenu-title,
${pe}-submenu-title`]:{paddingInlineEnd:Yt}}};var Mt=ne=>{const{componentCls:pe,iconCls:xe,itemHeight:ut,colorTextLightSolid:Ie,dropdownWidth:Ve,controlHeightLG:ht,motionEaseOut:Dt,paddingXL:Ot,itemMarginInline:Jt,fontSizeLG:Yt,motionDurationFast:Ut,motionDurationSlow:Pt,paddingXS:Et,boxShadowSecondary:mt,collapsedWidth:ct,collapsedIconSize:qt}=ne,Ht={height:ut,lineHeight:(0,pt.unit)(ut),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},ce(ne))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},ce(ne)),{boxShadow:mt})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${(0,pt.unit)(ne.calc(ht).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pt}`,`background ${Pt}`,`padding ${Ut} ${Dt}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Ht,[`& ${pe}-item-group-title`]:{paddingInlineStart:Ot}},[`${pe}-item`]:Ht}},{[`${pe}-inline-collapsed`]:{width:ct,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Yt,textAlign:"center"}}},[`> ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,pt.unit)(ne.calc(qt).div(2).equal())} - ${(0,pt.unit)(Jt)})`,textOverflow:"clip",[`
${pe}-submenu-arrow,
${pe}-submenu-expand-icon
`]:{opacity:0},[`${pe}-item-icon, ${xe}`]:{margin:0,fontSize:qt,lineHeight:(0,pt.unit)(ut),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${xe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${xe}`]:{display:"none"},"a, a:hover":{color:Ie}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Rt.vS),{paddingInline:Et})}}]};const xt=ne=>{const{componentCls:pe,motionDurationSlow:xe,motionDurationMid:ut,motionEaseInOut:Ie,motionEaseOut:Ve,iconCls:ht,iconSize:Dt,iconMarginInlineEnd:Ot}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${xe}`,`background ${xe}`,`padding calc(${xe} + 0.1s) ${Ie}`].join(","),[`${pe}-item-icon, ${ht}`]:{minWidth:Dt,fontSize:Dt,transition:[`font-size ${ut} ${Ve}`,`margin ${xe} ${Ie}`,`color ${xe}`].join(","),"+ span":{marginInlineStart:Ot,opacity:1,transition:[`opacity ${xe} ${Ie}`,`margin ${xe}`,`color ${xe}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Rt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${ht}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ve=ne=>{const{componentCls:pe,motionDurationSlow:xe,motionEaseInOut:ut,borderRadius:Ie,menuArrowSize:Ve,menuArrowOffset:ht}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${xe} ${ut}, opacity ${xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ve).mul(.6).equal(),height:ne.calc(Ve).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ie,transition:[`background ${xe} ${ut}`,`transform ${xe} ${ut}`,`top ${xe} ${ut}`,`color ${xe} ${ut}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,pt.unit)(ne.calc(ht).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,pt.unit)(ht)})`}}}}},We=ne=>{const{antCls:pe,componentCls:xe,fontSize:ut,motionDurationSlow:Ie,motionDurationMid:Ve,motionEaseInOut:ht,paddingXS:Dt,padding:Ot,colorSplit:Jt,lineWidth:Yt,zIndexPopup:Ut,borderRadiusLG:Pt,subMenuItemBorderRadius:Et,menuArrowSize:mt,menuArrowOffset:ct,lineType:qt,groupTitleLineHeight:Ht,groupTitleFontSize:Fe}=ne;return[{"":{[xe]:Object.assign(Object.assign({},(0,Rt.dF)()),{"&-hidden":{display:"none"}})},[`${xe}-submenu-hidden`]:{display:"none"}},{[xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(ne)),(0,Rt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ut,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ie} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${xe}-item`]:{flex:"none"}},[`${xe}-item, ${xe}-submenu, ${xe}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${xe}-item-group-title`]:{padding:`${(0,pt.unit)(Dt)} ${(0,pt.unit)(Ot)}`,fontSize:Fe,lineHeight:Ht,transition:`all ${Ie}`},[`&-horizontal ${xe}-submenu`]:{transition:[`border-color ${Ie} ${ht}`,`background ${Ie} ${ht}`].join(",")},[`${xe}-submenu, ${xe}-submenu-inline`]:{transition:[`border-color ${Ie} ${ht}`,`background ${Ie} ${ht}`,`padding ${Ve} ${ht}`].join(",")},[`${xe}-submenu ${xe}-sub`]:{cursor:"initial",transition:[`background ${Ie} ${ht}`,`padding ${Ie} ${ht}`].join(",")},[`${xe}-title-content`]:{transition:`color ${Ie}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${xe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Jt,borderStyle:qt,borderWidth:0,borderTopWidth:Yt,marginBlock:Yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xt(ne)),{[`${xe}-item-group`]:{[`${xe}-item-group-list`]:{margin:0,padding:0,[`${xe}-item, ${xe}-submenu-title`]:{paddingInline:`${(0,pt.unit)(ne.calc(ut).mul(2).equal())} ${(0,pt.unit)(Ot)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ut,borderRadius:Pt,boxShadow:"none",transformOrigin:"0 0",[`&${xe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${xe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pt},xt(ne)),ve(ne)),{[`${xe}-item, ${xe}-submenu > ${xe}-submenu-title`]:{borderRadius:Et},[`${xe}-submenu-title::after`]:{transition:`transform ${Ie} ${ht}`}})},"\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}}}),ve(ne)),{[`&-inline-collapsed ${xe}-submenu-arrow,
&-inline ${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,pt.unit)(ct)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,pt.unit)(ne.calc(ct).mul(-1).equal())})`}},[`${xe}-submenu-open${xe}-submenu-inline > ${xe}-submenu-title > ${xe}-submenu-arrow`]:{transform:`translateY(${(0,pt.unit)(ne.calc(mt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,pt.unit)(ne.calc(ct).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,pt.unit)(ct)})`}}})},{[`${pe}-layout-header`]:{[xe]:{lineHeight:"inherit"}}}]},_e=ne=>{var pe,xe,ut;const{colorPrimary:Ie,colorError:Ve,colorTextDisabled:ht,colorErrorBg:Dt,colorText:Ot,colorTextDescription:Jt,colorBgContainer:Yt,colorFillAlter:Ut,colorFillContent:Pt,lineWidth:Et,lineWidthBold:mt,controlItemBgActive:ct,colorBgTextHover:qt,controlHeightLG:Ht,lineHeight:Fe,colorBgElevated:it,marginXXS:Xe,padding:St,fontSize:De,controlHeightSM:qe,fontSizeLG:yt,colorTextLightSolid:Ct,colorErrorHover:$t}=ne,rn=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,In=(xe=ne.activeBarBorderWidth)!==null&&xe!==void 0?xe:Et,En=(ut=ne.itemMarginInline)!==null&&ut!==void 0?ut:ne.marginXXS,nn=new Qe.FastColor(Ct).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:Ot,itemColor:Ot,colorItemTextHover:Ot,itemHoverColor:Ot,colorItemTextHoverHorizontal:Ie,horizontalItemHoverColor:Ie,colorGroupTitle:Jt,groupTitleColor:Jt,colorItemTextSelected:Ie,itemSelectedColor:Ie,subMenuItemSelectedColor:Ie,colorItemTextSelectedHorizontal:Ie,horizontalItemSelectedColor:Ie,colorItemBg:Yt,itemBg:Yt,colorItemBgHover:qt,itemHoverBg:qt,colorItemBgActive:Pt,itemActiveBg:ct,colorSubItemBg:Ut,subMenuItemBg:Ut,colorItemBgSelected:ct,itemSelectedBg:ct,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:rn,colorActiveBarHeight:mt,activeBarHeight:mt,colorActiveBarBorderSize:Et,activeBarBorderWidth:In,colorItemTextDisabled:ht,itemDisabledColor:ht,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:Dt,dangerItemActiveBg:Dt,colorDangerItemBgSelected:Dt,dangerItemSelectedBg:Dt,itemMarginInline:En,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ht,groupTitleLineHeight:Fe,collapsedWidth:Ht*2,popupBg:it,itemMarginBlock:Xe,itemPaddingInline:St,horizontalLineHeight:`${Ht*1.15}px`,iconSize:De,iconMarginInlineEnd:qe-De,collapsedIconSize:yt,groupTitleFontSize:De,darkItemDisabledColor:new Qe.FastColor(Ct).setA(.25).toRgbString(),darkItemColor:nn,darkDangerItemColor:Ve,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ct,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:nn,darkItemHoverColor:Ct,darkDangerItemHoverColor:$t,darkDangerItemSelectedColor:Ct,darkDangerItemActiveBg:Ve,itemWidth:rn?`calc(100% + ${In}px)`:`calc(100% - ${En*2}px)`}};var jt=function(ne){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Be.I$)("Menu",Ie=>{const{colorBgElevated:Ve,controlHeightLG:ht,fontSize:Dt,darkItemColor:Ot,darkDangerItemColor:Jt,darkItemBg:Yt,darkSubMenuItemBg:Ut,darkItemSelectedColor:Pt,darkItemSelectedBg:Et,darkDangerItemSelectedBg:mt,darkItemHoverBg:ct,darkGroupTitleColor:qt,darkItemHoverColor:Ht,darkItemDisabledColor:Fe,darkDangerItemHoverColor:it,darkDangerItemSelectedColor:Xe,darkDangerItemActiveBg:St,popupBg:De,darkPopupBg:qe}=Ie,yt=Ie.calc(Dt).div(7).mul(5).equal(),Ct=(0,Ue.mergeToken)(Ie,{menuArrowSize:yt,menuHorizontalHeight:Ie.calc(ht).mul(1.15).equal(),menuArrowOffset:Ie.calc(yt).mul(.25).equal(),menuSubMenuBg:Ve,calc:Ie.calc,popupBg:De}),$t=(0,Ue.mergeToken)(Ct,{itemColor:Ot,itemHoverColor:Ht,groupTitleColor:qt,itemSelectedColor:Pt,subMenuItemSelectedColor:Pt,itemBg:Yt,popupBg:qe,subMenuItemBg:Ut,itemActiveBg:"transparent",itemSelectedBg:Et,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ct,itemDisabledColor:Fe,dangerItemColor:Jt,dangerItemHoverColor:it,dangerItemSelectedColor:Xe,dangerItemActiveBg:St,dangerItemSelectedBg:mt,menuSubMenuBg:Ut,horizontalItemSelectedColor:Pt,horizontalItemSelectedBg:Et});return[We(Ct),ue(Ct),Mt(Ct),me(Ct,"light"),me($t,"dark"),ke(Ct),(0,gt.Z)(Ct),(0,ot.oN)(Ct,"slide-up"),(0,ot.oN)(Ct,"slide-down"),(0,It._y)(Ct,"zoom-big")]},_e,{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:xe,unitless:{groupTitleLineHeight:!0}})(ne,pe)},kt=re(75030),je=ne=>{var pe;const{popupClassName:xe,icon:ut,title:Ie,theme:Ve}=ne,ht=E.useContext($e),{prefixCls:Dt,inlineCollapsed:Ot,theme:Jt}=ht,Yt=(0,lt.Xl)();let Ut;if(!ut)Ut=Ot&&!Yt.length&&Ie&&typeof Ie=="string"?E.createElement("div",{className:`${Dt}-inline-collapsed-noicon`},Ie.charAt(0)):E.createElement("span",{className:`${Dt}-title-content`},Ie);else{const mt=E.isValidElement(Ie)&&Ie.type==="span";Ut=E.createElement(E.Fragment,null,(0,he.Tm)(ut,{className:Pe()(E.isValidElement(ut)?(pe=ut.props)===null||pe===void 0?void 0:pe.className:"",`${Dt}-item-icon`)}),mt?Ie:E.createElement("span",{className:`${Dt}-title-content`},Ie))}const Pt=E.useMemo(()=>Object.assign(Object.assign({},ht),{firstLevel:!1}),[ht]),[Et]=(0,kt.Cn)("Menu");return E.createElement($e.Provider,{value:Pt},E.createElement(lt.Wd,Object.assign({},(0,Te.Z)(ne,["icon"]),{title:Ut,popupClassName:Pe()(Dt,xe,`${Dt}-${Ve||Jt}`),popupStyle:Object.assign({zIndex:Et},ne.popupStyle)})))},Nt=function(ne,pe){var xe={};for(var ut in ne)Object.prototype.hasOwnProperty.call(ne,ut)&&pe.indexOf(ut)<0&&(xe[ut]=ne[ut]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,ut=Object.getOwnPropertySymbols(ne);Ie<ut.length;Ie++)pe.indexOf(ut[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ne,ut[Ie])&&(xe[ut[Ie]]=ne[ut[Ie]]);return xe};function st(ne){return ne===null||ne===!1}const ae={item:wt,submenu:je,divider:Re};var ee=(0,E.forwardRef)((ne,pe)=>{var xe;const ut=E.useContext(rt.Z),Ie=ut||{},{getPrefixCls:Ve,getPopupContainer:ht,direction:Dt,menu:Ot}=E.useContext(tt.E_),Jt=Ve(),{prefixCls:Yt,className:Ut,style:Pt,theme:Et="light",expandIcon:mt,_internalDisableMenuItemTitleTooltip:ct,inlineCollapsed:qt,siderCollapsed:Ht,rootClassName:Fe,mode:it,selectable:Xe,onClick:St,overflowedIndicatorPopupClassName:De}=ne,qe=Nt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),yt=(0,Te.Z)(qe,["collapsedWidth"]);(xe=Ie.validator)===null||xe===void 0||xe.call(Ie,{mode:it});const Ct=(0,Ae.Z)(function(){var At;St==null||St.apply(void 0,arguments),(At=Ie.onClick)===null||At===void 0||At.call(Ie)}),$t=Ie.mode||it,rn=Xe!=null?Xe:Ie.selectable,In=qt!=null?qt:Ht,En={horizontal:{motionName:`${Jt}-slide-up`},inline:(0,we.Z)(Jt),other:{motionName:`${Jt}-zoom-big`}},nn=Ve("menu",Yt||Ie.prefixCls),vn=(0,Se.Z)(nn),[ln,Tn,xn]=jt(nn,vn,!ut),an=Pe()(`${nn}-${Et}`,Ot==null?void 0:Ot.className,Ut),Kt=E.useMemo(()=>{var At,Ft;if(typeof mt=="function"||st(mt))return mt||null;if(typeof Ie.expandIcon=="function"||st(Ie.expandIcon))return Ie.expandIcon||null;if(typeof(Ot==null?void 0:Ot.expandIcon)=="function"||st(Ot==null?void 0:Ot.expandIcon))return(Ot==null?void 0:Ot.expandIcon)||null;const Qt=(At=mt!=null?mt:Ie==null?void 0:Ie.expandIcon)!==null&&At!==void 0?At:Ot==null?void 0:Ot.expandIcon;return(0,he.Tm)(Qt,{className:Pe()(`${nn}-submenu-expand-icon`,E.isValidElement(Qt)?(Ft=Qt.props)===null||Ft===void 0?void 0:Ft.className:void 0)})},[mt,Ie==null?void 0:Ie.expandIcon,Ot==null?void 0:Ot.expandIcon,nn]),Tt=E.useMemo(()=>({prefixCls:nn,inlineCollapsed:In||!1,direction:Dt,firstLevel:!0,theme:Et,mode:$t,disableMenuItemTitleTooltip:ct}),[nn,In,Dt,ct,Et]);return ln(E.createElement(rt.Z.Provider,{value:null},E.createElement($e.Provider,{value:Tt},E.createElement(lt.ZP,Object.assign({getPopupContainer:ht,overflowedIndicator:E.createElement(Ye.Z,null),overflowedIndicatorPopupClassName:Pe()(nn,`${nn}-${Et}`,De),mode:$t,selectable:rn,onClick:Ct},yt,{inlineCollapsed:In,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Pt),className:an,prefixCls:nn,direction:Dt,defaultMotions:En,expandIcon:Kt,ref:pe,rootClassName:Pe()(Fe,Tn,Ie.rootClassName,xn,vn),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((ne,pe)=>{const xe=(0,E.useRef)(null),ut=E.useContext(ge.D);return(0,E.useImperativeHandle)(pe,()=>({menu:xe.current,focus:Ie=>{var Ve;(Ve=xe.current)===null||Ve===void 0||Ve.focus(Ie)}})),E.createElement(ee,Object.assign({ref:xe},ne,ut))});oe.Item=wt,oe.SubMenu=je,oe.Divider=Re,oe.ItemGroup=lt.BW;var se=oe},89787:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Ht}});var E=re(59301),lt=re(17835),ge=re(29679),Ye=re(40001),Ee=re(19248),Pe=re(99267),Ae=re(92310),Te=re.n(Ae),we=re(2738),he=re(48755),tt=re(54476),Se=re(33885),dt=re(75931),$e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ce=function(){var it=(0,E.useRef)([]),Xe=(0,E.useRef)(null);return(0,E.useEffect)(function(){var St=Date.now(),De=!1;it.current.forEach(function(qe){if(qe){De=!0;var yt=qe.style;yt.transitionDuration=".3s, .3s, .3s, .06s",Xe.current&&St-Xe.current<100&&(yt.transitionDuration="0s, 0s")}}),De&&(Xe.current=Date.now())}),it.current},Ne=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Re=function(it){var Xe=(0,Se.Z)((0,Se.Z)({},$e),it),St=Xe.className,De=Xe.percent,qe=Xe.prefixCls,yt=Xe.strokeColor,Ct=Xe.strokeLinecap,$t=Xe.strokeWidth,rn=Xe.style,In=Xe.trailColor,En=Xe.trailWidth,nn=Xe.transition,vn=(0,dt.Z)(Xe,Ne);delete vn.gapPosition;var ln=Array.isArray(De)?De:[De],Tn=Array.isArray(yt)?yt:[yt],xn=Ce(),an=$t/2,Kt=100-$t/2,Tt="M ".concat(Ct==="round"?an:0,",").concat(an,`
L `).concat(Ct==="round"?Kt:100,",").concat(an),At="0 0 100 ".concat($t),Ft=0;return E.createElement("svg",(0,tt.Z)({className:Te()("".concat(qe,"-line"),St),viewBox:At,preserveAspectRatio:"none",style:rn},vn),E.createElement("path",{className:"".concat(qe,"-line-trail"),d:Tt,strokeLinecap:Ct,stroke:In,strokeWidth:En||$t,fillOpacity:"0"}),ln.map(function(Qt,hn){var pn=1;switch(Ct){case"round":pn=1-$t/100;break;case"square":pn=1-$t/2/100;break;default:pn=1;break}var sn={strokeDasharray:"".concat(Qt*pn,"px, 100px"),strokeDashoffset:"-".concat(Ft,"px"),transition:nn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},un=Tn[hn]||Tn[Tn.length-1];return Ft+=Qt,E.createElement("path",{key:hn,className:"".concat(qe,"-line-path"),d:Tt,strokeLinecap:Ct,stroke:un,strokeWidth:$t,fillOpacity:"0",ref:function(On){xn[hn]=On},style:sn})}))},et=Re,nt=re(76190),Lt=re(42978),wt=re(47273),rt=0,pt=(0,wt.Z)();function Qe(){var Fe;return pt?(Fe=rt,rt+=1):Fe="TEST_OR_SSR",Fe}var Rt=function(Fe){var it=E.useState(),Xe=(0,Lt.Z)(it,2),St=Xe[0],De=Xe[1];return E.useEffect(function(){De("rc_progress_".concat(Qe()))},[]),Fe||St},gt=function(it){var Xe=it.bg,St=it.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:Xe}},St)};function ot(Fe,it){return Object.keys(Fe).map(function(Xe){var St=parseFloat(Xe),De="".concat(Math.floor(St*it),"%");return"".concat(Fe[Xe]," ").concat(De)})}var It=E.forwardRef(function(Fe,it){var Xe=Fe.prefixCls,St=Fe.color,De=Fe.gradientId,qe=Fe.radius,yt=Fe.style,Ct=Fe.ptg,$t=Fe.strokeLinecap,rn=Fe.strokeWidth,In=Fe.size,En=Fe.gapDegree,nn=St&&(0,nt.Z)(St)==="object",vn=nn?"#FFF":void 0,ln=In/2,Tn=E.createElement("circle",{className:"".concat(Xe,"-circle-path"),r:qe,cx:ln,cy:ln,stroke:vn,strokeLinecap:$t,strokeWidth:rn,opacity:Ct===0?0:1,style:yt,ref:it});if(!nn)return Tn;var xn="".concat(De,"-conic"),an=En?"".concat(180+En/2,"deg"):"0deg",Kt=ot(St,(360-En)/360),Tt=ot(St,1),At="conic-gradient(from ".concat(an,", ").concat(Kt.join(", "),")"),Ft="linear-gradient(to ".concat(En?"bottom":"top",", ").concat(Tt.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:xn},Tn),E.createElement("foreignObject",{x:0,y:0,width:In,height:In,mask:"url(#".concat(xn,")")},E.createElement(gt,{bg:Ft},E.createElement(gt,{bg:At}))))}),Be=It,Ue=100,Ze=function(it,Xe,St,De,qe,yt,Ct,$t,rn,In){var En=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,nn=St/100*360*((360-yt)/360),vn=yt===0?0:{bottom:0,top:180,left:90,right:-90}[Ct],ln=(100-De)/100*Xe;rn==="round"&&De!==100&&(ln+=In/2,ln>=Xe&&(ln=Xe-.01));var Tn=Ue/2;return{stroke:typeof $t=="string"?$t:void 0,strokeDasharray:"".concat(Xe,"px ").concat(it),strokeDashoffset:ln+En,transform:"rotate(".concat(qe+nn+vn,"deg)"),transformOrigin:"".concat(Tn,"px ").concat(Tn,"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 Je(Fe){var it=Fe!=null?Fe:[];return Array.isArray(it)?it:[it]}var ke=function(it){var Xe=(0,Se.Z)((0,Se.Z)({},$e),it),St=Xe.id,De=Xe.prefixCls,qe=Xe.steps,yt=Xe.strokeWidth,Ct=Xe.trailWidth,$t=Xe.gapDegree,rn=$t===void 0?0:$t,In=Xe.gapPosition,En=Xe.trailColor,nn=Xe.strokeLinecap,vn=Xe.style,ln=Xe.className,Tn=Xe.strokeColor,xn=Xe.percent,an=(0,dt.Z)(Xe,ue),Kt=Ue/2,Tt=Rt(St),At="".concat(Tt,"-gradient"),Ft=Kt-yt/2,Qt=Math.PI*2*Ft,hn=rn>0?90+rn/2:-90,pn=Qt*((360-rn)/360),sn=(0,nt.Z)(qe)==="object"?qe:{count:qe,gap:2},un=sn.count,bn=sn.gap,On=Je(xn),vt=Je(Tn),Gt=vt.find(function(Oe){return Oe&&(0,nt.Z)(Oe)==="object"}),cn=Gt&&(0,nt.Z)(Gt)==="object",fn=cn?"butt":nn,He=Ze(Qt,pn,0,100,hn,rn,In,En,fn,yt),Ge=Ce(),ye=function(){var Ke=0;return On.map(function(Bt,on){var mn=vt[on]||vt[vt.length-1],Sn=Ze(Qt,pn,Ke,Bt,hn,rn,In,mn,fn,yt);return Ke+=Bt,E.createElement(Be,{key:on,color:mn,ptg:Bt,radius:Ft,prefixCls:De,gradientId:At,style:Sn,strokeLinecap:fn,strokeWidth:yt,gapDegree:rn,ref:function(Wt){Ge[on]=Wt},size:Ue})}).reverse()},Le=function(){var Ke=Math.round(un*(On[0]/100)),Bt=100/un,on=0;return new Array(un).fill(null).map(function(mn,Sn){var en=Sn<=Ke-1?vt[0]:En,Wt=en&&(0,nt.Z)(en)==="object"?"url(#".concat(At,")"):void 0,zt=Ze(Qt,pn,on,Bt,hn,rn,In,en,"butt",yt,bn);return on+=(pn-zt.strokeDashoffset+bn)*100/pn,E.createElement("circle",{key:Sn,className:"".concat(De,"-circle-path"),r:Ft,cx:Kt,cy:Kt,stroke:Wt,strokeWidth:yt,opacity:1,style:zt,ref:function(Ln){Ge[Sn]=Ln}})})};return E.createElement("svg",(0,tt.Z)({className:Te()("".concat(De,"-circle"),ln),viewBox:"0 0 ".concat(Ue," ").concat(Ue),style:vn,id:St,role:"presentation"},an),!un&&E.createElement("circle",{className:"".concat(De,"-circle-trail"),r:Ft,cx:Kt,cy:Kt,stroke:En,strokeLinecap:fn,strokeWidth:Ct||yt,style:He}),un?Le():ye())},Me=ke,ft={Line:et,Circle:Me},me=re(25399),ce=re(68361);function ze(Fe){return!Fe||Fe<0?0:Fe>100?100:Fe}function Mt(Fe){let{success:it,successPercent:Xe}=Fe,St=Xe;return it&&"progress"in it&&(St=it.progress),it&&"percent"in it&&(St=it.percent),St}const xt=Fe=>{let{percent:it,success:Xe,successPercent:St}=Fe;const De=ze(Mt({success:Xe,successPercent:St}));return[De,ze(ze(it)-De)]},ve=Fe=>{let{success:it={},strokeColor:Xe}=Fe;const{strokeColor:St}=it;return[St||ce.presetPrimaryColors.green,Xe||null]},We=(Fe,it,Xe)=>{var St,De,qe,yt;let Ct=-1,$t=-1;if(it==="step"){const rn=Xe.steps,In=Xe.strokeWidth;typeof Fe=="string"||typeof Fe=="undefined"?(Ct=Fe==="small"?2:14,$t=In!=null?In:8):typeof Fe=="number"?[Ct,$t]=[Fe,Fe]:[Ct=14,$t=8]=Array.isArray(Fe)?Fe:[Fe.width,Fe.height],Ct*=rn}else if(it==="line"){const rn=Xe==null?void 0:Xe.strokeWidth;typeof Fe=="string"||typeof Fe=="undefined"?$t=rn||(Fe==="small"?6:8):typeof Fe=="number"?[Ct,$t]=[Fe,Fe]:[Ct=-1,$t=8]=Array.isArray(Fe)?Fe:[Fe.width,Fe.height]}else(it==="circle"||it==="dashboard")&&(typeof Fe=="string"||typeof Fe=="undefined"?[Ct,$t]=Fe==="small"?[60,60]:[120,120]:typeof Fe=="number"?[Ct,$t]=[Fe,Fe]:Array.isArray(Fe)&&(Ct=(De=(St=Fe[0])!==null&&St!==void 0?St:Fe[1])!==null&&De!==void 0?De:120,$t=(yt=(qe=Fe[0])!==null&&qe!==void 0?qe:Fe[1])!==null&&yt!==void 0?yt:120));return[Ct,$t]},_e=3,jt=Fe=>_e/Fe*100;var Vt=Fe=>{const{prefixCls:it,trailColor:Xe=null,strokeLinecap:St="round",gapPosition:De,gapDegree:qe,width:yt=120,type:Ct,children:$t,success:rn,size:In=yt,steps:En}=Fe,[nn,vn]=We(In,"circle");let{strokeWidth:ln}=Fe;ln===void 0&&(ln=Math.max(jt(nn),6));const Tn={width:nn,height:vn,fontSize:nn*.15+6},xn=E.useMemo(()=>{if(qe||qe===0)return qe;if(Ct==="dashboard")return 75},[qe,Ct]),an=xt(Fe),Kt=De||Ct==="dashboard"&&"bottom"||void 0,Tt=Object.prototype.toString.call(Fe.strokeColor)==="[object Object]",At=ve({success:rn,strokeColor:Fe.strokeColor}),Ft=Te()(`${it}-inner`,{[`${it}-circle-gradient`]:Tt}),Qt=E.createElement(Me,{steps:En,percent:En?an[1]:an,strokeWidth:ln,trailWidth:ln,strokeColor:En?At[1]:At,strokeLinecap:St,trailColor:Xe,prefixCls:it,gapDegree:xn,gapPosition:Kt}),hn=nn<=20,pn=E.createElement("div",{className:Ft,style:Tn},Qt,!hn&&$t);return hn?E.createElement(me.Z,{title:$t},pn):pn},je=re(36237),Nt=re(63356),st=re(16931),ae=re(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Fe=>{const it=Fe?"100%":"-100%";return new je.Keyframes(`antProgress${Fe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${it}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${it}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Fe=>{const{componentCls:it,iconCls:Xe}=Fe;return{[it]:Object.assign(Object.assign({},(0,Nt.Wf)(Fe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Fe.fontSize},[`${it}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${it}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Fe.remainingColor,borderRadius:Fe.lineBorderRadius},[`${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Fe.defaultColor}},[`${it}-success-bg, ${it}-bg`]:{position:"relative",background:Fe.defaultColor,borderRadius:Fe.lineBorderRadius,transition:`all ${Fe.motionDurationSlow} ${Fe.motionEaseInOutCirc}`},[`${it}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${it}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Fe.marginXXS}},[`${it}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${it}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${it}-text-inner`]:{color:Fe.colorWhite,[`&${it}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${it}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Fe.colorSuccess},[`${it}-text`]:{display:"inline-block",marginInlineStart:Fe.marginXS,color:Fe.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Xe]:{fontSize:Fe.fontSize},[`&${it}-text-outer`]:{width:"max-content"},[`&${it}-text-outer${it}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Fe.marginXS}},[`${it}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,je.unit)(Fe.paddingXXS)}`,[`&${it}-text-start`]:{justifyContent:"start"},[`&${it}-text-end`]:{justifyContent:"end"}},[`&${it}-status-active`]:{[`${it}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Fe.colorBgContainer,borderRadius:Fe.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Fe.progressActiveMotionDuration,animationTimingFunction:Fe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${it}-rtl${it}-status-active`]:{[`${it}-bg::before`]:{animationName:oe(!0)}},[`&${it}-status-exception`]:{[`${it}-bg`]:{backgroundColor:Fe.colorError},[`${it}-text`]:{color:Fe.colorError}},[`&${it}-status-exception ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Fe.colorError}},[`&${it}-status-success`]:{[`${it}-bg`]:{backgroundColor:Fe.colorSuccess},[`${it}-text`]:{color:Fe.colorSuccess}},[`&${it}-status-success ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Fe.colorSuccess}}})}},ne=Fe=>{const{componentCls:it,iconCls:Xe}=Fe;return{[it]:{[`${it}-circle-trail`]:{stroke:Fe.remainingColor},[`&${it}-circle ${it}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${it}-circle ${it}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Fe.circleTextColor,fontSize:Fe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Xe]:{fontSize:Fe.circleIconFontSize}},[`${it}-circle&-status-exception`]:{[`${it}-text`]:{color:Fe.colorError}},[`${it}-circle&-status-success`]:{[`${it}-text`]:{color:Fe.colorSuccess}}},[`${it}-inline-circle`]:{lineHeight:1,[`${it}-inner`]:{verticalAlign:"bottom"}}}},pe=Fe=>{const{componentCls:it}=Fe;return{[it]:{[`${it}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Fe.progressStepMinWidth,marginInlineEnd:Fe.progressStepMarginInlineEnd,backgroundColor:Fe.remainingColor,transition:`all ${Fe.motionDurationSlow}`,"&-active":{backgroundColor:Fe.defaultColor}}}}}},xe=Fe=>{const{componentCls:it,iconCls:Xe}=Fe;return{[it]:{[`${it}-small&-line, ${it}-small&-line ${it}-text ${Xe}`]:{fontSize:Fe.fontSizeSM}}}},ut=Fe=>({circleTextColor:Fe.colorText,defaultColor:Fe.colorInfo,remainingColor:Fe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Fe.fontSize/Fe.fontSizeSM}em`});var Ie=(0,st.I$)("Progress",Fe=>{const it=Fe.calc(Fe.marginXXS).div(2).equal(),Xe=(0,ae.mergeToken)(Fe,{progressStepMarginInlineEnd:it,progressStepMinWidth:it,progressActiveMotionDuration:"2.4s"});return[se(Xe),ne(Xe),pe(Xe),xe(Xe)]},ut),Ve=function(Fe,it){var Xe={};for(var St in Fe)Object.prototype.hasOwnProperty.call(Fe,St)&&it.indexOf(St)<0&&(Xe[St]=Fe[St]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,St=Object.getOwnPropertySymbols(Fe);De<St.length;De++)it.indexOf(St[De])<0&&Object.prototype.propertyIsEnumerable.call(Fe,St[De])&&(Xe[St[De]]=Fe[St[De]]);return Xe};const ht=Fe=>{let it=[];return Object.keys(Fe).forEach(Xe=>{const St=parseFloat(Xe.replace(/%/g,""));Number.isNaN(St)||it.push({key:St,value:Fe[Xe]})}),it=it.sort((Xe,St)=>Xe.key-St.key),it.map(Xe=>{let{key:St,value:De}=Xe;return`${De} ${St}%`}).join(", ")},Dt=(Fe,it)=>{const{from:Xe=ce.presetPrimaryColors.blue,to:St=ce.presetPrimaryColors.blue,direction:De=it==="rtl"?"to left":"to right"}=Fe,qe=Ve(Fe,["from","to","direction"]);if(Object.keys(qe).length!==0){const Ct=ht(qe),$t=`linear-gradient(${De}, ${Ct})`;return{background:$t,[te]:$t}}const yt=`linear-gradient(${De}, ${Xe}, ${St})`;return{background:yt,[te]:yt}};var Jt=Fe=>{const{prefixCls:it,direction:Xe,percent:St,size:De,strokeWidth:qe,strokeColor:yt,strokeLinecap:Ct="round",children:$t,trailColor:rn=null,percentPosition:In,success:En}=Fe,{align:nn,type:vn}=In,ln=yt&&typeof yt!="string"?Dt(yt,Xe):{[te]:yt,background:yt},Tn=Ct==="square"||Ct==="butt"?0:void 0,xn=De!=null?De:[-1,qe||(De==="small"?6:8)],[an,Kt]=We(xn,"line",{strokeWidth:qe}),Tt={backgroundColor:rn||void 0,borderRadius:Tn},At=Object.assign(Object.assign({width:`${ze(St)}%`,height:Kt,borderRadius:Tn},ln),{[ee]:ze(St)/100}),Ft=Mt(Fe),Qt={width:`${ze(Ft)}%`,height:Kt,borderRadius:Tn,backgroundColor:En==null?void 0:En.strokeColor},hn={width:an<0?"100%":an},pn=E.createElement("div",{className:`${it}-inner`,style:Tt},E.createElement("div",{className:Te()(`${it}-bg`,`${it}-bg-${vn}`),style:At},vn==="inner"&&$t),Ft!==void 0&&E.createElement("div",{className:`${it}-success-bg`,style:Qt})),sn=vn==="outer"&&nn==="start",un=vn==="outer"&&nn==="end";return vn==="outer"&&nn==="center"?E.createElement("div",{className:`${it}-layout-bottom`},pn,$t):E.createElement("div",{className:`${it}-outer`,style:hn},sn&&$t,pn,un&&$t)},Ut=Fe=>{const{size:it,steps:Xe,rounding:St=Math.round,percent:De=0,strokeWidth:qe=8,strokeColor:yt,trailColor:Ct=null,prefixCls:$t,children:rn}=Fe,In=St(Xe*(De/100)),En=it==="small"?2:14,nn=it!=null?it:[En,qe],[vn,ln]=We(nn,"step",{steps:Xe,strokeWidth:qe}),Tn=vn/Xe,xn=Array.from({length:Xe});for(let an=0;an<Xe;an++){const Kt=Array.isArray(yt)?yt[an]:yt;xn[an]=E.createElement("div",{key:an,className:Te()(`${$t}-steps-item`,{[`${$t}-steps-item-active`]:an<=In-1}),style:{backgroundColor:an<=In-1?Kt:Ct,width:Tn,height:ln}})}return E.createElement("div",{className:`${$t}-steps-outer`},xn,rn)},Pt=function(Fe,it){var Xe={};for(var St in Fe)Object.prototype.hasOwnProperty.call(Fe,St)&&it.indexOf(St)<0&&(Xe[St]=Fe[St]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,St=Object.getOwnPropertySymbols(Fe);De<St.length;De++)it.indexOf(St[De])<0&&Object.prototype.propertyIsEnumerable.call(Fe,St[De])&&(Xe[St[De]]=Fe[St[De]]);return Xe};const Et=null,mt=["normal","exception","active","success"];var qt=E.forwardRef((Fe,it)=>{const{prefixCls:Xe,className:St,rootClassName:De,steps:qe,strokeColor:yt,percent:Ct=0,size:$t="default",showInfo:rn=!0,type:In="line",status:En,format:nn,style:vn,percentPosition:ln={}}=Fe,Tn=Pt(Fe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:xn="end",type:an="outer"}=ln,Kt=Array.isArray(yt)?yt[0]:yt,Tt=typeof yt=="string"||Array.isArray(yt)?yt:void 0,At=E.useMemo(()=>{if(Kt){const ye=typeof Kt=="string"?Kt:Object.values(Kt)[0];return new lt.FastColor(ye).isLight()}return!1},[yt]),Ft=E.useMemo(()=>{var ye,Le;const Oe=Mt(Fe);return parseInt(Oe!==void 0?(ye=Oe!=null?Oe:0)===null||ye===void 0?void 0:ye.toString():(Le=Ct!=null?Ct:0)===null||Le===void 0?void 0:Le.toString(),10)},[Ct,Fe.success,Fe.successPercent]),Qt=E.useMemo(()=>!mt.includes(En)&&Ft>=100?"success":En||"normal",[En,Ft]),{getPrefixCls:hn,direction:pn,progress:sn}=E.useContext(he.E_),un=hn("progress",Xe),[bn,On,vt]=Ie(un),Gt=In==="line",cn=Gt&&!qe,fn=E.useMemo(()=>{if(!rn)return null;const ye=Mt(Fe);let Le;const Oe=nn||(Bt=>`${Bt}%`),Ke=Gt&&At&&an==="inner";return an==="inner"||nn||Qt!=="exception"&&Qt!=="success"?Le=Oe(ze(Ct),ze(ye)):Qt==="exception"?Le=Gt?E.createElement(Ee.Z,null):E.createElement(Pe.Z,null):Qt==="success"&&(Le=Gt?E.createElement(ge.Z,null):E.createElement(Ye.Z,null)),E.createElement("span",{className:Te()(`${un}-text`,{[`${un}-text-bright`]:Ke,[`${un}-text-${xn}`]:cn,[`${un}-text-${an}`]:cn}),title:typeof Le=="string"?Le:void 0},Le)},[rn,Ct,Ft,Qt,In,un,nn]);let He;In==="line"?He=qe?E.createElement(Ut,Object.assign({},Fe,{strokeColor:Tt,prefixCls:un,steps:typeof qe=="object"?qe.count:qe}),fn):E.createElement(Jt,Object.assign({},Fe,{strokeColor:Kt,prefixCls:un,direction:pn,percentPosition:{align:xn,type:an}}),fn):(In==="circle"||In==="dashboard")&&(He=E.createElement(Vt,Object.assign({},Fe,{strokeColor:Kt,prefixCls:un,progressStatus:Qt}),fn));const Ge=Te()(un,`${un}-status-${Qt}`,{[`${un}-${In==="dashboard"&&"circle"||In}`]:In!=="line",[`${un}-inline-circle`]:In==="circle"&&We($t,"circle")[0]<=20,[`${un}-line`]:cn,[`${un}-line-align-${xn}`]:cn,[`${un}-line-position-${an}`]:cn,[`${un}-steps`]:qe,[`${un}-show-info`]:rn,[`${un}-${$t}`]:typeof $t=="string",[`${un}-rtl`]:pn==="rtl"},sn==null?void 0:sn.className,St,De,On,vt);return bn(E.createElement("div",Object.assign({ref:it,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),vn),className:Ge,role:"progressbar","aria-valuenow":Ft,"aria-valuemin":0,"aria-valuemax":100},(0,we.Z)(Tn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),He))}),Ht=qt},63139:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return xt}});var E=re(59301),lt=re(54476),ge={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"},Ye=ge,Ee=re(7657),Pe=function(We,_e){return E.createElement(Ee.Z,(0,lt.Z)({},We,{ref:_e,icon:Ye}))},Ae=E.forwardRef(Pe),Te=Ae,we=re(92310),he=re.n(we),tt=re(20068),Se=re(42978),dt=re(75931),$e=re(18929),Ce=re(10228),Ne=re(26112);function Re(ve,We){var _e=ve.disabled,jt=ve.prefixCls,kt=ve.character,Vt=ve.characterRender,je=ve.index,Nt=ve.count,st=ve.value,ae=ve.allowHalf,te=ve.focused,ee=ve.onHover,oe=ve.onClick,se=function(Dt){ee(Dt,je)},ne=function(Dt){oe(Dt,je)},pe=function(Dt){Dt.keyCode===Ce.Z.ENTER&&oe(Dt,je)},xe=je+1,ut=new Set([jt]);st===0&&je===0&&te?ut.add("".concat(jt,"-focused")):ae&&st+.5>=xe&&st<xe?(ut.add("".concat(jt,"-half")),ut.add("".concat(jt,"-active")),te&&ut.add("".concat(jt,"-focused"))):(xe<=st?ut.add("".concat(jt,"-full")):ut.add("".concat(jt,"-zero")),xe===st&&te&&ut.add("".concat(jt,"-focused")));var Ie=typeof kt=="function"?kt(ve):kt,Ve=E.createElement("li",{className:he()(Array.from(ut)),ref:We},E.createElement("div",{onClick:_e?null:ne,onKeyDown:_e?null:pe,onMouseMove:_e?null:se,role:"radio","aria-checked":st>je?"true":"false","aria-posinset":je+1,"aria-setsize":Nt,tabIndex:_e?-1:0},E.createElement("div",{className:"".concat(jt,"-first")},Ie),E.createElement("div",{className:"".concat(jt,"-second")},Ie)));return Vt&&(Ve=Vt(Ve,ve)),Ve}var et=E.forwardRef(Re);function nt(){var ve=E.useRef({});function We(jt){return ve.current[jt]}function _e(jt){return function(kt){ve.current[jt]=kt}}return[We,_e]}function Lt(ve){var We=ve.pageXOffset,_e="scrollLeft";if(typeof We!="number"){var jt=ve.document;We=jt.documentElement[_e],typeof We!="number"&&(We=jt.body[_e])}return We}function wt(ve){var We,_e,jt=ve.ownerDocument,kt=jt.body,Vt=jt&&jt.documentElement,je=ve.getBoundingClientRect();return We=je.left,_e=je.top,We-=Vt.clientLeft||kt.clientLeft||0,_e-=Vt.clientTop||kt.clientTop||0,{left:We,top:_e}}function rt(ve){var We=wt(ve),_e=ve.ownerDocument,jt=_e.defaultView||_e.parentWindow;return We.left+=Lt(jt),We.left}var pt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Qe(ve,We){var _e=ve.prefixCls,jt=_e===void 0?"rc-rate":_e,kt=ve.className,Vt=ve.defaultValue,je=ve.value,Nt=ve.count,st=Nt===void 0?5:Nt,ae=ve.allowHalf,te=ae===void 0?!1:ae,ee=ve.allowClear,oe=ee===void 0?!0:ee,se=ve.keyboard,ne=se===void 0?!0:se,pe=ve.character,xe=pe===void 0?"\u2605":pe,ut=ve.characterRender,Ie=ve.disabled,Ve=ve.direction,ht=Ve===void 0?"ltr":Ve,Dt=ve.tabIndex,Ot=Dt===void 0?0:Dt,Jt=ve.autoFocus,Yt=ve.onHoverChange,Ut=ve.onChange,Pt=ve.onFocus,Et=ve.onBlur,mt=ve.onKeyDown,ct=ve.onMouseLeave,qt=(0,dt.Z)(ve,pt),Ht=nt(),Fe=(0,Se.Z)(Ht,2),it=Fe[0],Xe=Fe[1],St=E.useRef(null),De=function(){if(!Ie){var fn;(fn=St.current)===null||fn===void 0||fn.focus()}};E.useImperativeHandle(We,function(){return{focus:De,blur:function(){if(!Ie){var fn;(fn=St.current)===null||fn===void 0||fn.blur()}}}});var qe=(0,$e.Z)(Vt||0,{value:je}),yt=(0,Se.Z)(qe,2),Ct=yt[0],$t=yt[1],rn=(0,$e.Z)(null),In=(0,Se.Z)(rn,2),En=In[0],nn=In[1],vn=function(fn,He){var Ge=ht==="rtl",ye=fn+1;if(te){var Le=it(fn),Oe=rt(Le),Ke=Le.clientWidth;(Ge&&He-Oe>Ke/2||!Ge&&He-Oe<Ke/2)&&(ye-=.5)}return ye},ln=function(fn){$t(fn),Ut==null||Ut(fn)},Tn=E.useState(!1),xn=(0,Se.Z)(Tn,2),an=xn[0],Kt=xn[1],Tt=function(){Kt(!0),Pt==null||Pt()},At=function(){Kt(!1),Et==null||Et()},Ft=E.useState(null),Qt=(0,Se.Z)(Ft,2),hn=Qt[0],pn=Qt[1],sn=function(fn,He){var Ge=vn(He,fn.pageX);Ge!==En&&(pn(Ge),nn(null)),Yt==null||Yt(Ge)},un=function(fn){Ie||(pn(null),nn(null),Yt==null||Yt(void 0)),fn&&(ct==null||ct(fn))},bn=function(fn,He){var Ge=vn(He,fn.pageX),ye=!1;oe&&(ye=Ge===Ct),un(),ln(ye?0:Ge),nn(ye?Ge:null)},On=function(fn){var He=fn.keyCode,Ge=ht==="rtl",ye=te?.5:1;ne&&(He===Ce.Z.RIGHT&&Ct<st&&!Ge?(ln(Ct+ye),fn.preventDefault()):He===Ce.Z.LEFT&&Ct>0&&!Ge||He===Ce.Z.RIGHT&&Ct>0&&Ge?(ln(Ct-ye),fn.preventDefault()):He===Ce.Z.LEFT&&Ct<st&&Ge&&(ln(Ct+ye),fn.preventDefault())),mt==null||mt(fn)};E.useEffect(function(){Jt&&!Ie&&De()},[]);var vt=new Array(st).fill(0).map(function(cn,fn){return E.createElement(et,{ref:Xe(fn),index:fn,count:st,disabled:Ie,prefixCls:"".concat(jt,"-star"),allowHalf:te,value:hn===null?Ct:hn,onClick:bn,onHover:sn,key:cn||fn,character:xe,characterRender:ut,focused:an})}),Gt=he()(jt,kt,(0,tt.Z)((0,tt.Z)({},"".concat(jt,"-disabled"),Ie),"".concat(jt,"-rtl"),ht==="rtl"));return E.createElement("ul",(0,lt.Z)({className:Gt,onMouseLeave:un,tabIndex:Ie?-1:Ot,onFocus:Ie?null:Tt,onBlur:Ie?null:At,onKeyDown:Ie?null:On,ref:St},(0,Ne.Z)(qt,{aria:!0,data:!0,attr:!0})),vt)}var Rt=E.forwardRef(Qe),gt=Rt,ot=re(48755),It=re(25399),Be=re(36237),Ue=re(63356),Ze=re(16931),ue=re(51636);const Je=ve=>{const{componentCls:We}=ve;return{[`${We}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ve.marginXS},"> div":{transition:`all ${ve.motionDurationMid}, outline 0s`,"&:hover":{transform:ve.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Be.unit)(ve.lineWidth)} dashed ${ve.starColor}`,transform:ve.starHoverScale}},"&-first, &-second":{color:ve.starBg,transition:`all ${ve.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${We}-star-first, &-half ${We}-star-second`]:{opacity:1},[`&-half ${We}-star-first, &-full ${We}-star-second`]:{color:"inherit"}}}},ke=ve=>({[`&-rtl${ve.componentCls}`]:{direction:"rtl"}}),Me=ve=>{const{componentCls:We}=ve;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(ve)),{display:"inline-block",margin:0,padding:0,color:ve.starColor,fontSize:ve.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${We} ${We}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Je(ve)),ke(ve))}},ft=ve=>({starColor:ve.yellow6,starSize:ve.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ve.colorFillContent});var me=(0,Ze.I$)("Rate",ve=>{const We=(0,ue.mergeToken)(ve,{});return[Me(We)]},ft),ce=re(2171),ze=function(ve,We){var _e={};for(var jt in ve)Object.prototype.hasOwnProperty.call(ve,jt)&&We.indexOf(jt)<0&&(_e[jt]=ve[jt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,jt=Object.getOwnPropertySymbols(ve);kt<jt.length;kt++)We.indexOf(jt[kt])<0&&Object.prototype.propertyIsEnumerable.call(ve,jt[kt])&&(_e[jt[kt]]=ve[jt[kt]]);return _e},xt=E.forwardRef((ve,We)=>{const{prefixCls:_e,className:jt,rootClassName:kt,style:Vt,tooltips:je,character:Nt=E.createElement(Te,null),disabled:st}=ve,ae=ze(ve,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(Dt,Ot)=>{let{index:Jt}=Ot;return je?E.createElement(It.Z,{title:je[Jt]},Dt):Dt},{getPrefixCls:ee,direction:oe,rate:se}=E.useContext(ot.E_),ne=ee("rate",_e),[pe,xe,ut]=me(ne),Ie=Object.assign(Object.assign({},se==null?void 0:se.style),Vt),Ve=E.useContext(ce.Z),ht=st!=null?st:Ve;return pe(E.createElement(gt,Object.assign({ref:We,character:Nt,characterRender:te,disabled:ht},ae,{className:he()(jt,kt,xe,ut,se==null?void 0:se.className),style:Ie,prefixCls:ne,direction:oe})))})},82326:function(tn,_t,re){"use strict";var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(37463),Ee=re(2738),Pe=re(75030),Ae=re(86641),Te=re(45915),we=re(82855),he=re(48755),tt=re(38406),Se=re(2171),dt=re(83397),$e=re(31756),Ce=re(56553),Ne=re(24971),Re=re(70045),et=re(57700),nt=re(1722),Lt=re(90376),wt=re(68525),rt=re(90005),pt=function(It,Be){var Ue={};for(var Ze in It)Object.prototype.hasOwnProperty.call(It,Ze)&&Be.indexOf(Ze)<0&&(Ue[Ze]=It[Ze]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ze=Object.getOwnPropertySymbols(It);ue<Ze.length;ue++)Be.indexOf(Ze[ue])<0&&Object.prototype.propertyIsEnumerable.call(It,Ze[ue])&&(Ue[Ze[ue]]=It[Ze[ue]]);return Ue};const Qe="SECRET_COMBOBOX_MODE_DO_NOT_USE",Rt=(It,Be)=>{var Ue;const{prefixCls:Ze,bordered:ue,className:Je,rootClassName:ke,getPopupContainer:Me,popupClassName:ft,dropdownClassName:me,listHeight:ce=256,placement:ze,listItemHeight:Mt,size:xt,disabled:ve,notFoundContent:We,status:_e,builtinPlacements:jt,dropdownMatchSelectWidth:kt,popupMatchSelectWidth:Vt,direction:je,style:Nt,allowClear:st,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=It,pe=pt(It,["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:xe,getPrefixCls:ut,renderEmpty:Ie,direction:Ve,virtual:ht,popupMatchSelectWidth:Dt,popupOverflow:Ot}=E.useContext(he.E_),Jt=(0,he.dj)("select"),[,Yt]=(0,et.ZP)(),Ut=Mt!=null?Mt:Yt==null?void 0:Yt.controlHeight,Pt=ut("select",Ze),Et=ut(),mt=je!=null?je:Ve,{compactSize:ct,compactItemClassnames:qt}=(0,Re.ri)(Pt,mt),[Ht,Fe]=(0,Ne.Z)("select",ae,ue),it=(0,dt.Z)(Pt),[Xe,St,De]=(0,Lt.Z)(Pt,it),qe=E.useMemo(()=>{const{mode:On}=It;if(On!=="combobox")return On===Qe?"combobox":On},[It.mode]),yt=qe==="multiple"||qe==="tags",Ct=(0,rt.Z)(It.suffixIcon,It.showArrow),$t=(Ue=Vt!=null?Vt:kt)!==null&&Ue!==void 0?Ue:Dt,{status:rn,hasFeedback:In,isFormItemInput:En,feedbackIcon:nn}=E.useContext(Ce.aM),vn=(0,we.F)(rn,_e);let ln;We!==void 0?ln=We:qe==="combobox"?ln=null:ln=(Ie==null?void 0:Ie("Select"))||E.createElement(tt.Z,{componentName:"Select"});const{suffixIcon:Tn,itemIcon:xn,removeIcon:an,clearIcon:Kt}=(0,wt.Z)(Object.assign(Object.assign({},pe),{multiple:yt,hasFeedback:In,feedbackIcon:nn,showSuffixIcon:Ct,prefixCls:Pt,componentName:"Select"})),Tt=st===!0?{clearIcon:Kt}:st,At=(0,Ee.Z)(pe,["suffixIcon","itemIcon"]),Ft=ge()(ft||me,{[`${Pt}-dropdown-${mt}`]:mt==="rtl"},ke,De,it,St),Qt=(0,$e.Z)(On=>{var vt;return(vt=xt!=null?xt:ct)!==null&&vt!==void 0?vt:On}),hn=E.useContext(Se.Z),pn=ve!=null?ve:hn,sn=ge()({[`${Pt}-lg`]:Qt==="large",[`${Pt}-sm`]:Qt==="small",[`${Pt}-rtl`]:mt==="rtl",[`${Pt}-${Ht}`]:Fe,[`${Pt}-in-form-item`]:En},(0,we.Z)(Pt,vn,In),qt,Jt.className,Je,ke,De,it,St),un=E.useMemo(()=>ze!==void 0?ze:mt==="rtl"?"bottomRight":"bottomLeft",[ze,mt]),[bn]=(0,Pe.Cn)("SelectLike",te==null?void 0:te.zIndex);return Xe(E.createElement(Ye.ZP,Object.assign({ref:Be,virtual:ht,showSearch:Jt.showSearch},At,{style:Object.assign(Object.assign({},Jt.style),Nt),dropdownMatchSelectWidth:$t,transitionName:(0,Ae.m)(Et,"slide-up",ee),builtinPlacements:(0,nt.Z)(jt,Ot),listHeight:ce,listItemHeight:Ut,mode:qe,prefixCls:Pt,placement:un,direction:mt,prefix:ne,suffixIcon:Tn,menuItemSelectedIcon:xn,removeIcon:an,allowClear:Tt,notFoundContent:ln,className:sn,getPopupContainer:Me||xe,dropdownClassName:Ft,disabled:pn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:bn}),maxCount:yt?se:void 0,tagRender:yt?oe:void 0})))},gt=E.forwardRef(Rt),ot=(0,Te.Z)(gt,"dropdownAlign");gt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Qe,gt.Option=Ye.Wx,gt.OptGroup=Ye.Xo,gt._InternalPanelDoNotUseOrYouWillBeFired=ot,_t.default=gt},1722:function(tn,_t){"use strict";const re=lt=>{const Ye={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:lt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Ye),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ye),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ye),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ye),{points:["br","tr"],offset:[0,-4]})}};function E(lt,ge){return lt||re(ge)}_t.Z=E},90376:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Ze}});var E=re(63356),lt=re(56119),ge=re(16931),Ye=re(51636),Ee=re(46e3),Pe=re(93873);const Ae=ue=>{const{optionHeight:Je,optionFontSize:ke,optionLineHeight:Me,optionPadding:ft}=ue;return{position:"relative",display:"block",minHeight:Je,padding:ft,color:ue.colorText,fontWeight:"normal",fontSize:ke,lineHeight:Me,boxSizing:"border-box"}};var we=ue=>{const{antCls:Je,componentCls:ke}=ue,Me=`${ke}-item`,ft=`&${Je}-slide-up-enter${Je}-slide-up-enter-active`,me=`&${Je}-slide-up-appear${Je}-slide-up-appear-active`,ce=`&${Je}-slide-up-leave${Je}-slide-up-leave-active`,ze=`${ke}-dropdown-placement-`,Mt=`${Me}-option-selected`;return[{[`${ke}-dropdown`]:Object.assign(Object.assign({},(0,E.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,[`
${ft}${ze}bottomLeft,
${me}${ze}bottomLeft
`]:{animationName:Ee.fJ},[`
${ft}${ze}topLeft,
${me}${ze}topLeft,
${ft}${ze}topRight,
${me}${ze}topRight
`]:{animationName:Ee.Qt},[`${ce}${ze}bottomLeft`]:{animationName:Ee.Uw},[`
${ce}${ze}topLeft,
${ce}${ze}topRight
`]:{animationName:Ee.ly},"&-hidden":{display:"none"},[Me]:Object.assign(Object.assign({},Ae(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"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Me}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${Me}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${Me}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${Me}-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({},Ae(ue)),{color:ue.colorTextDisabled})}),[`${Mt}:has(+ ${Mt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Mt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ee.oN)(ue,"slide-up"),(0,Ee.oN)(ue,"slide-down"),(0,Pe.Fm)(ue,"move-up"),(0,Pe.Fm)(ue,"move-down")]},he=re(26743),tt=re(36237);function Se(ue,Je){const{componentCls:ke,inputPaddingHorizontalBase:Me,borderRadius:ft}=ue,me=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),ce=Je?`${ke}-${Je}`:"";return{[`${ke}-single${ce}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${ke}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(ue,!0)),{display:"flex",borderRadius:ft,flex:"1 1 auto",[`${ke}-selection-wrap:after`]:{lineHeight:(0,tt.unit)(me)},[`${ke}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${ke}-selection-item,
${ke}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,tt.unit)(me),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ke}-selection-item:empty:after`,`${ke}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${ke}-show-arrow ${ke}-selection-item,
&${ke}-show-arrow ${ke}-selection-search,
&${ke}-show-arrow ${ke}-selection-placeholder
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${ke}-open ${ke}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${ke}-customize-input)`]:{[`${ke}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,tt.unit)(Me)}`,[`${ke}-selection-search-input`]:{height:me,fontSize:ue.fontSize},"&:after":{lineHeight:(0,tt.unit)(me)}}},[`&${ke}-customize-input`]:{[`${ke}-selector`]:{"&:after":{display:"none"},[`${ke}-selection-search`]:{position:"static",width:"100%"},[`${ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,tt.unit)(Me)}`,"&:after":{display:"none"}}}}}}}function dt(ue){const{componentCls:Je}=ue,ke=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Se(ue),Se((0,Ye.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${Je}-single${Je}-sm`]:{[`&:not(${Je}-customize-input)`]:{[`${Je}-selector`]:{padding:`0 ${(0,tt.unit)(ke)}`},[`&${Je}-show-arrow ${Je}-selection-search`]:{insetInlineEnd:ue.calc(ke).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[`
&${Je}-show-arrow ${Je}-selection-item,
&${Je}-show-arrow ${Je}-selection-placeholder
`]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Se((0,Ye.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const $e=ue=>{const{fontSize:Je,lineHeight:ke,lineWidth:Me,controlHeight:ft,controlHeightSM:me,controlHeightLG:ce,paddingXXS:ze,controlPaddingHorizontal:Mt,zIndexPopupBase:xt,colorText:ve,fontWeightStrong:We,controlItemBgActive:_e,controlItemBgHover:jt,colorBgContainer:kt,colorFillSecondary:Vt,colorBgContainerDisabled:je,colorTextDisabled:Nt,colorPrimaryHover:st,colorPrimary:ae,controlOutline:te}=ue,ee=ze*2,oe=Me*2,se=Math.min(ft-ee,ft-oe),ne=Math.min(me-ee,me-oe),pe=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ze/2),zIndexPopup:xt+50,optionSelectedColor:ve,optionSelectedFontWeight:We,optionSelectedBg:_e,optionActiveBg:jt,optionPadding:`${(ft-Je*ke)/2}px ${Mt}px`,optionFontSize:Je,optionLineHeight:ke,optionHeight:ft,selectorBg:kt,clearBg:kt,singleItemHeightLG:ce,multipleItemBg:Vt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:je,multipleItemColorDisabled:Nt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:st,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:ze}},Ce=(ue,Je)=>{const{componentCls:ke,antCls:Me,controlOutlineWidth:ft}=ue;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${Je.borderColor}`,background:ue.selectorBg},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Me}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:Je.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:Je.activeBorderColor,boxShadow:`0 0 0 ${(0,tt.unit)(ft)} ${Je.activeOutlineColor}`,outline:0},[`${ke}-prefix`]:{color:Je.color}}}},Ne=(ue,Je)=>({[`&${ue.componentCls}-status-${Je.status}`]:Object.assign({},Ce(ue,Je))}),Re=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ce(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ne(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ne(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),et=(ue,Je)=>{const{componentCls:ke,antCls:Me}=ue;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{background:Je.bg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:Je.color},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Me}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{background:Je.hoverBg},[`${ke}-focused& ${ke}-selector`]:{background:ue.selectorBg,borderColor:Je.activeBorderColor,outline:0}}}},nt=(ue,Je)=>({[`&${ue.componentCls}-status-${Je.status}`]:Object.assign({},et(ue,Je))}),Lt=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},et(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),nt(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),nt(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),wt=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),rt=(ue,Je)=>{const{componentCls:ke,antCls:Me}=ue;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{borderWidth:`0 0 ${(0,tt.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:Je.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Me}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:Je.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:Je.activeBorderColor,outline:0},[`${ke}-prefix`]:{color:Je.color}}}},pt=(ue,Je)=>({[`&${ue.componentCls}-status-${Je.status}`]:Object.assign({},rt(ue,Je))}),Qe=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},rt(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),pt(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),pt(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var gt=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Re(ue)),Lt(ue)),wt(ue)),Qe(ue))});const ot=ue=>{const{componentCls:Je}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${Je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Je}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},It=ue=>{const{componentCls:Je}=ue;return{[`${Je}-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"}}}},Be=ue=>{const{antCls:Je,componentCls:ke,inputPaddingHorizontalBase:Me,iconCls:ft}=ue;return{[ke]:Object.assign(Object.assign({},(0,E.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ke}-customize-input) ${ke}-selector`]:Object.assign(Object.assign({},ot(ue)),It(ue)),[`${ke}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${Je}-typography`]:{display:"inline"}}),[`${ke}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${ke}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Me,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`,[ft]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ke}-suffix)`]:{pointerEvents:"auto"}},[`${ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ke}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ke}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Me,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 ${ke}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${ke}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ke}-has-feedback`]:{[`${ke}-clear`]:{insetInlineEnd:ue.calc(Me).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},Ue=ue=>{const{componentCls:Je}=ue;return[{[Je]:{[`&${Je}-in-form-item`]:{width:"100%"}}},Be(ue),dt(ue),(0,he.ZP)(ue),we(ue),{[`${Je}-rtl`]:{direction:"rtl"}},(0,lt.c)(ue,{borderElCls:`${Je}-selector`,focusElCls:`${Je}-focused`})]};var Ze=(0,ge.I$)("Select",(ue,Je)=>{let{rootPrefixCls:ke}=Je;const Me=(0,Ye.mergeToken)(ue,{rootPrefixCls:ke,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[Ue(Me),gt(Me)]},$e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(tn,_t,re){"use strict";re.d(_t,{_z:function(){return Pe},gp:function(){return Ye}});var E=re(36237),lt=re(63356),ge=re(51636);const Ye=he=>{const{multipleSelectItemHeight:tt,paddingXXS:Se,lineWidth:dt,INTERNAL_FIXED_ITEM_MARGIN:$e}=he,Ce=he.max(he.calc(Se).sub(dt).equal(),0),Ne=he.max(he.calc(Ce).sub($e).equal(),0);return{basePadding:Ce,containerPadding:Ne,itemHeight:(0,E.unit)(tt),itemLineHeight:(0,E.unit)(he.calc(tt).sub(he.calc(he.lineWidth).mul(2)).equal())}},Ee=he=>{const{multipleSelectItemHeight:tt,selectHeight:Se,lineWidth:dt}=he;return he.calc(Se).sub(tt).div(2).sub(dt).equal()},Pe=he=>{const{componentCls:tt,iconCls:Se,borderRadiusSM:dt,motionDurationSlow:$e,paddingXS:Ce,multipleItemColorDisabled:Ne,multipleItemBorderColorDisabled:Re,colorIcon:et,colorIconHover:nt,INTERNAL_FIXED_ITEM_MARGIN:Lt}=he;return{[`${tt}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${tt}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Lt,borderRadius:dt,cursor:"default",transition:`font-size ${$e}, line-height ${$e}, height ${$e}`,marginInlineEnd:he.calc(Lt).mul(2).equal(),paddingInlineStart:Ce,paddingInlineEnd:he.calc(Ce).div(2).equal(),[`${tt}-disabled&`]:{color:Ne,borderColor:Re,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Ce).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,lt.Ro)()),{display:"inline-flex",alignItems:"center",color:et,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Se}`]:{verticalAlign:"-0.2em"},"&:hover":{color:nt}})}}}},Ae=(he,tt)=>{const{componentCls:Se,INTERNAL_FIXED_ITEM_MARGIN:dt}=he,$e=`${Se}-selection-overflow`,Ce=he.multipleSelectItemHeight,Ne=Ee(he),Re=tt?`${Se}-${tt}`:"",et=Ye(he);return{[`${Se}-multiple${Re}`]:Object.assign(Object.assign({},Pe(he)),{[`${Se}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:et.basePadding,paddingBlock:et.containerPadding,borderRadius:he.borderRadius,[`${Se}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(dt)} 0`,lineHeight:(0,E.unit)(Ce),visibility:"hidden",content:'"\\a0"'}},[`${Se}-selection-item`]:{height:et.itemHeight,lineHeight:(0,E.unit)(et.itemLineHeight)},[`${Se}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(Ce),marginBlock:dt}},[`${Se}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(et.basePadding).equal()},[`${$e}-item + ${$e}-item,
${Se}-prefix + ${Se}-selection-wrap
`]:{[`${Se}-selection-search`]:{marginInlineStart:0},[`${Se}-selection-placeholder`]:{insetInlineStart:0}},[`${$e}-item-suffix`]:{minHeight:et.itemHeight,marginBlock:dt},[`${Se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ne).equal(),"\n &-input,\n &-mirror\n ":{height:Ce,fontFamily:he.fontFamily,lineHeight:(0,E.unit)(Ce),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Se}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(et.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Te(he,tt){const{componentCls:Se}=he,dt=tt?`${Se}-${tt}`:"",$e={[`${Se}-multiple${dt}`]:{fontSize:he.fontSize,[`${Se}-selector`]:{[`${Se}-show-search&`]:{cursor:"text"}},[`
&${Se}-show-arrow ${Se}-selector,
&${Se}-allow-clear ${Se}-selector
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Ae(he,tt),$e]}const we=he=>{const{componentCls:tt}=he,Se=(0,ge.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),dt=(0,ge.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[Te(he),Te(Se,"sm"),{[`${tt}-multiple${tt}-sm`]:{[`${tt}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${tt}-selection-search`]:{marginInlineStart:2}}},Te(dt,"lg")]};_t.ZP=we},68525:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});var E=re(59301),lt=re(40001),ge=re(19248),Ye=re(99267),Ee=re(84105),Pe=re(58617),Ae=re(47472);function Te(we){let{suffixIcon:he,clearIcon:tt,menuItemSelectedIcon:Se,removeIcon:dt,loading:$e,multiple:Ce,hasFeedback:Ne,prefixCls:Re,showSuffixIcon:et,feedbackIcon:nt,showArrow:Lt,componentName:wt}=we;const rt=tt!=null?tt:E.createElement(ge.Z,null),pt=ot=>he===null&&!Ne&&!Lt?null:E.createElement(E.Fragment,null,et!==!1&&ot,Ne&&nt);let Qe=null;if(he!==void 0)Qe=pt(he);else if($e)Qe=pt(E.createElement(Pe.Z,{spin:!0}));else{const ot=`${Re}-suffix`;Qe=It=>{let{open:Be,showSearch:Ue}=It;return pt(Be&&Ue?E.createElement(Ae.Z,{className:ot}):E.createElement(Ee.Z,{className:ot}))}}let Rt=null;Se!==void 0?Rt=Se:Ce?Rt=E.createElement(lt.Z,null):Rt=null;let gt=null;return dt!==void 0?gt=dt:gt=E.createElement(Ye.Z,null),{clearIcon:rt,suffixIcon:Qe,itemIcon:Rt,removeIcon:gt}}},90005:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return E}});function E(lt,ge){return ge!==void 0?ge:lt!==null}},11938:function(tn,_t,re){"use strict";re.d(_t,{default:function(){return It}});var E=re(59301),lt=re(40192),ge=re(22703),Ye=re(92310),Ee=re.n(Ye),Pe=re(26112),Ae=re(48755),Te=re(458),he=Be=>{const{value:Ue,formatter:Ze,precision:ue,decimalSeparator:Je,groupSeparator:ke="",prefixCls:Me}=Be;let ft;if(typeof Ze=="function")ft=Ze(Ue);else{const me=String(Ue),ce=me.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ce||me==="-")ft=me;else{const ze=ce[1];let Mt=ce[2]||"0",xt=ce[4]||"";Mt=Mt.replace(/\B(?=(\d{3})+(?!\d))/g,ke),typeof ue=="number"&&(xt=xt.padEnd(ue,"0").slice(0,ue>0?ue:0)),xt&&(xt=`${Je}${xt}`),ft=[E.createElement("span",{key:"int",className:`${Me}-content-value-int`},ze,Mt),xt&&E.createElement("span",{key:"decimal",className:`${Me}-content-value-decimal`},xt)]}}return E.createElement("span",{className:`${Me}-content-value`},ft)},tt=re(63356),Se=re(16931),dt=re(51636);const $e=Be=>{const{componentCls:Ue,marginXXS:Ze,padding:ue,colorTextDescription:Je,titleFontSize:ke,colorTextHeading:Me,contentFontSize:ft,fontFamily:me}=Be;return{[Ue]:Object.assign(Object.assign({},(0,tt.Wf)(Be)),{[`${Ue}-title`]:{marginBottom:Ze,color:Je,fontSize:ke},[`${Ue}-skeleton`]:{paddingTop:ue},[`${Ue}-content`]:{color:Me,fontSize:ft,fontFamily:me,[`${Ue}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ue}-content-prefix, ${Ue}-content-suffix`]:{display:"inline-block"},[`${Ue}-content-prefix`]:{marginInlineEnd:Ze},[`${Ue}-content-suffix`]:{marginInlineStart:Ze}}})}},Ce=Be=>{const{fontSizeHeading3:Ue,fontSize:Ze}=Be;return{titleFontSize:Ze,contentFontSize:Ue}};var Ne=(0,Se.I$)("Statistic",Be=>{const Ue=(0,dt.mergeToken)(Be,{});return[$e(Ue)]},Ce),Re=function(Be,Ue){var Ze={};for(var ue in Be)Object.prototype.hasOwnProperty.call(Be,ue)&&Ue.indexOf(ue)<0&&(Ze[ue]=Be[ue]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ue=Object.getOwnPropertySymbols(Be);Je<ue.length;Je++)Ue.indexOf(ue[Je])<0&&Object.prototype.propertyIsEnumerable.call(Be,ue[Je])&&(Ze[ue[Je]]=Be[ue[Je]]);return Ze},nt=Be=>{const{prefixCls:Ue,className:Ze,rootClassName:ue,style:Je,valueStyle:ke,value:Me=0,title:ft,valueRender:me,prefix:ce,suffix:ze,loading:Mt=!1,formatter:xt,precision:ve,decimalSeparator:We=".",groupSeparator:_e=",",onMouseEnter:jt,onMouseLeave:kt}=Be,Vt=Re(Be,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:je,direction:Nt,className:st,style:ae}=(0,Ae.dj)("statistic"),te=je("statistic",Ue),[ee,oe,se]=Ne(te),ne=E.createElement(he,{decimalSeparator:We,groupSeparator:_e,prefixCls:te,formatter:xt,precision:ve,value:Me}),pe=Ee()(te,{[`${te}-rtl`]:Nt==="rtl"},st,Ze,ue,oe,se),xe=(0,Pe.Z)(Vt,{aria:!0,data:!0});return ee(E.createElement("div",Object.assign({},xe,{className:pe,style:Object.assign(Object.assign({},ae),Je),onMouseEnter:jt,onMouseLeave:kt}),ft&&E.createElement("div",{className:`${te}-title`},ft),E.createElement(Te.Z,{paragraph:!1,loading:Mt,className:`${te}-skeleton`},E.createElement("div",{style:ke,className:`${te}-content`},ce&&E.createElement("span",{className:`${te}-content-prefix`},ce),me?me(ne):ne,ze&&E.createElement("span",{className:`${te}-content-suffix`},ze)))))};const Lt=[["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 wt(Be,Ue){let Ze=Be;const ue=/\[[^\]]*]/g,Je=(Ue.match(ue)||[]).map(me=>me.slice(1,-1)),ke=Ue.replace(ue,"[]"),Me=Lt.reduce((me,ce)=>{let[ze,Mt]=ce;if(me.includes(ze)){const xt=Math.floor(Ze/Mt);return Ze-=xt*Mt,me.replace(new RegExp(`${ze}+`,"g"),ve=>{const We=ve.length;return xt.toString().padStart(We,"0")})}return me},ke);let ft=0;return Me.replace(ue,()=>{const me=Je[ft];return ft+=1,me})}function rt(Be,Ue){const{format:Ze=""}=Ue,ue=new Date(Be).getTime(),Je=Date.now(),ke=Math.max(ue-Je,0);return wt(ke,Ze)}var pt=function(Be,Ue){var Ze={};for(var ue in Be)Object.prototype.hasOwnProperty.call(Be,ue)&&Ue.indexOf(ue)<0&&(Ze[ue]=Be[ue]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,ue=Object.getOwnPropertySymbols(Be);Je<ue.length;Je++)Ue.indexOf(ue[Je])<0&&Object.prototype.propertyIsEnumerable.call(Be,ue[Je])&&(Ze[ue[Je]]=Be[ue[Je]]);return Ze};const Qe=1e3/30;function Rt(Be){return new Date(Be).getTime()}const gt=Be=>{const{value:Ue,format:Ze="HH:mm:ss",onChange:ue,onFinish:Je}=Be,ke=pt(Be,["value","format","onChange","onFinish"]),Me=(0,lt.Z)(),ft=E.useRef(null),me=()=>{Je==null||Je(),ft.current&&(clearInterval(ft.current),ft.current=null)},ce=()=>{const xt=Rt(Ue);xt>=Date.now()&&(ft.current=setInterval(()=>{Me(),ue==null||ue(xt-Date.now()),xt<Date.now()&&me()},Qe))};E.useEffect(()=>(ce(),()=>{ft.current&&(clearInterval(ft.current),ft.current=null)}),[Ue]);const ze=(xt,ve)=>rt(xt,Object.assign(Object.assign({},ve),{format:Ze})),Mt=xt=>(0,ge.Tm)(xt,{title:void 0});return E.createElement(nt,Object.assign({},ke,{value:Ue,valueRender:Mt,formatter:ze}))};var ot=E.memo(gt);nt.Countdown=ot;var It=nt},58755:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Je}});var E=re(59301),lt=re(58617),ge=re(92310),Ye=re.n(ge),Ee=re(54476),Pe=re(20068),Ae=re(42978),Te=re(75931),we=re(18929),he=re(10228),tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Se=E.forwardRef(function(ke,Me){var ft,me=ke.prefixCls,ce=me===void 0?"rc-switch":me,ze=ke.className,Mt=ke.checked,xt=ke.defaultChecked,ve=ke.disabled,We=ke.loadingIcon,_e=ke.checkedChildren,jt=ke.unCheckedChildren,kt=ke.onClick,Vt=ke.onChange,je=ke.onKeyDown,Nt=(0,Te.Z)(ke,tt),st=(0,we.Z)(!1,{value:Mt,defaultValue:xt}),ae=(0,Ae.Z)(st,2),te=ae[0],ee=ae[1];function oe(xe,ut){var Ie=te;return ve||(Ie=xe,ee(Ie),Vt==null||Vt(Ie,ut)),Ie}function se(xe){xe.which===he.Z.LEFT?oe(!1,xe):xe.which===he.Z.RIGHT&&oe(!0,xe),je==null||je(xe)}function ne(xe){var ut=oe(!te,xe);kt==null||kt(ut,xe)}var pe=Ye()(ce,ze,(ft={},(0,Pe.Z)(ft,"".concat(ce,"-checked"),te),(0,Pe.Z)(ft,"".concat(ce,"-disabled"),ve),ft));return E.createElement("button",(0,Ee.Z)({},Nt,{type:"button",role:"switch","aria-checked":te,disabled:ve,className:pe,ref:Me,onKeyDown:se,onClick:ne}),We,E.createElement("span",{className:"".concat(ce,"-inner")},E.createElement("span",{className:"".concat(ce,"-inner-checked")},_e),E.createElement("span",{className:"".concat(ce,"-inner-unchecked")},jt)))});Se.displayName="Switch";var dt=Se,$e=re(12919),Ce=re(48755),Ne=re(2171),Re=re(31756),et=re(36237),nt=re(17835),Lt=re(63356),wt=re(16931),rt=re(51636);const pt=ke=>{const{componentCls:Me,trackHeightSM:ft,trackPadding:me,trackMinWidthSM:ce,innerMinMarginSM:ze,innerMaxMarginSM:Mt,handleSizeSM:xt,calc:ve}=ke,We=`${Me}-inner`,_e=(0,et.unit)(ve(xt).add(ve(me).mul(2)).equal()),jt=(0,et.unit)(ve(Mt).mul(2).equal());return{[Me]:{[`&${Me}-small`]:{minWidth:ce,height:ft,lineHeight:(0,et.unit)(ft),[`${Me}-inner`]:{paddingInlineStart:Mt,paddingInlineEnd:ze,[`${We}-checked, ${We}-unchecked`]:{minHeight:ft},[`${We}-checked`]:{marginInlineStart:`calc(-100% + ${_e} - ${jt})`,marginInlineEnd:`calc(100% - ${_e} + ${jt})`},[`${We}-unchecked`]:{marginTop:ve(ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Me}-handle`]:{width:xt,height:xt},[`${Me}-loading-icon`]:{top:ve(ve(xt).sub(ke.switchLoadingIconSize)).div(2).equal(),fontSize:ke.switchLoadingIconSize},[`&${Me}-checked`]:{[`${Me}-inner`]:{paddingInlineStart:ze,paddingInlineEnd:Mt,[`${We}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${We}-unchecked`]:{marginInlineStart:`calc(100% - ${_e} + ${jt})`,marginInlineEnd:`calc(-100% + ${_e} - ${jt})`}},[`${Me}-handle`]:{insetInlineStart:`calc(100% - ${(0,et.unit)(ve(xt).add(me).equal())})`}},[`&:not(${Me}-disabled):active`]:{[`&:not(${Me}-checked) ${We}`]:{[`${We}-unchecked`]:{marginInlineStart:ve(ke.marginXXS).div(2).equal(),marginInlineEnd:ve(ke.marginXXS).mul(-1).div(2).equal()}},[`&${Me}-checked ${We}`]:{[`${We}-checked`]:{marginInlineStart:ve(ke.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ve(ke.marginXXS).div(2).equal()}}}}}}},Qe=ke=>{const{componentCls:Me,handleSize:ft,calc:me}=ke;return{[Me]:{[`${Me}-loading-icon${ke.iconCls}`]:{position:"relative",top:me(me(ft).sub(ke.fontSize)).div(2).equal(),color:ke.switchLoadingIconColor,verticalAlign:"top"},[`&${Me}-checked ${Me}-loading-icon`]:{color:ke.switchColor}}}},Rt=ke=>{const{componentCls:Me,trackPadding:ft,handleBg:me,handleShadow:ce,handleSize:ze,calc:Mt}=ke,xt=`${Me}-handle`;return{[Me]:{[xt]:{position:"absolute",top:ft,insetInlineStart:ft,width:ze,height:ze,transition:`all ${ke.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:me,borderRadius:Mt(ze).div(2).equal(),boxShadow:ce,transition:`all ${ke.switchDuration} ease-in-out`,content:'""'}},[`&${Me}-checked ${xt}`]:{insetInlineStart:`calc(100% - ${(0,et.unit)(Mt(ze).add(ft).equal())})`},[`&:not(${Me}-disabled):active`]:{[`${xt}::before`]:{insetInlineEnd:ke.switchHandleActiveInset,insetInlineStart:0},[`&${Me}-checked ${xt}::before`]:{insetInlineEnd:0,insetInlineStart:ke.switchHandleActiveInset}}}}},gt=ke=>{const{componentCls:Me,trackHeight:ft,trackPadding:me,innerMinMargin:ce,innerMaxMargin:ze,handleSize:Mt,calc:xt}=ke,ve=`${Me}-inner`,We=(0,et.unit)(xt(Mt).add(xt(me).mul(2)).equal()),_e=(0,et.unit)(xt(ze).mul(2).equal());return{[Me]:{[ve]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ze,paddingInlineEnd:ce,transition:`padding-inline-start ${ke.switchDuration} ease-in-out, padding-inline-end ${ke.switchDuration} ease-in-out`,[`${ve}-checked, ${ve}-unchecked`]:{display:"block",color:ke.colorTextLightSolid,fontSize:ke.fontSizeSM,transition:`margin-inline-start ${ke.switchDuration} ease-in-out, margin-inline-end ${ke.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ft},[`${ve}-checked`]:{marginInlineStart:`calc(-100% + ${We} - ${_e})`,marginInlineEnd:`calc(100% - ${We} + ${_e})`},[`${ve}-unchecked`]:{marginTop:xt(ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Me}-checked ${ve}`]:{paddingInlineStart:ce,paddingInlineEnd:ze,[`${ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ve}-unchecked`]:{marginInlineStart:`calc(100% - ${We} + ${_e})`,marginInlineEnd:`calc(-100% + ${We} - ${_e})`}},[`&:not(${Me}-disabled):active`]:{[`&:not(${Me}-checked) ${ve}`]:{[`${ve}-unchecked`]:{marginInlineStart:xt(me).mul(2).equal(),marginInlineEnd:xt(me).mul(-1).mul(2).equal()}},[`&${Me}-checked ${ve}`]:{[`${ve}-checked`]:{marginInlineStart:xt(me).mul(-1).mul(2).equal(),marginInlineEnd:xt(me).mul(2).equal()}}}}}},ot=ke=>{const{componentCls:Me,trackHeight:ft,trackMinWidth:me}=ke;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(ke)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:me,height:ft,lineHeight:(0,et.unit)(ft),verticalAlign:"middle",background:ke.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ke.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Me}-disabled)`]:{background:ke.colorTextTertiary}}),(0,Lt.Qy)(ke)),{[`&${Me}-checked`]:{background:ke.switchColor,[`&:hover:not(${Me}-disabled)`]:{background:ke.colorPrimaryHover}},[`&${Me}-loading, &${Me}-disabled`]:{cursor:"not-allowed",opacity:ke.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Me}-rtl`]:{direction:"rtl"}})}},It=ke=>{const{fontSize:Me,lineHeight:ft,controlHeight:me,colorWhite:ce}=ke,ze=Me*ft,Mt=me/2,xt=2,ve=ze-xt*2,We=Mt-xt*2;return{trackHeight:ze,trackHeightSM:Mt,trackMinWidth:ve*2+xt*4,trackMinWidthSM:We*2+xt*2,trackPadding:xt,handleBg:ce,handleSize:ve,handleSizeSM:We,handleShadow:`0 2px 4px 0 ${new nt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ve/2,innerMaxMargin:ve+xt+xt*2,innerMinMarginSM:We/2,innerMaxMarginSM:We+xt+xt*2}};var Be=(0,wt.I$)("Switch",ke=>{const Me=(0,rt.mergeToken)(ke,{switchDuration:ke.motionDurationMid,switchColor:ke.colorPrimary,switchDisabledOpacity:ke.opacityLoading,switchLoadingIconSize:ke.calc(ke.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ke.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ot(Me),gt(Me),Rt(Me),Qe(Me),pt(Me)]},It),Ue=function(ke,Me){var ft={};for(var me in ke)Object.prototype.hasOwnProperty.call(ke,me)&&Me.indexOf(me)<0&&(ft[me]=ke[me]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,me=Object.getOwnPropertySymbols(ke);ce<me.length;ce++)Me.indexOf(me[ce])<0&&Object.prototype.propertyIsEnumerable.call(ke,me[ce])&&(ft[me[ce]]=ke[me[ce]]);return ft};const ue=E.forwardRef((ke,Me)=>{const{prefixCls:ft,size:me,disabled:ce,loading:ze,className:Mt,rootClassName:xt,style:ve,checked:We,value:_e,defaultChecked:jt,defaultValue:kt,onChange:Vt}=ke,je=Ue(ke,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Nt,st]=(0,we.Z)(!1,{value:We!=null?We:_e,defaultValue:jt!=null?jt:kt}),{getPrefixCls:ae,direction:te,switch:ee}=E.useContext(Ce.E_),oe=E.useContext(Ne.Z),se=(ce!=null?ce:oe)||ze,ne=ae("switch",ft),pe=E.createElement("div",{className:`${ne}-handle`},ze&&E.createElement(lt.Z,{className:`${ne}-loading-icon`})),[xe,ut,Ie]=Be(ne),Ve=(0,Re.Z)(me),ht=Ye()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ve==="small",[`${ne}-loading`]:ze,[`${ne}-rtl`]:te==="rtl"},Mt,xt,ut,Ie),Dt=Object.assign(Object.assign({},ee==null?void 0:ee.style),ve),Ot=function(){st(arguments.length<=0?void 0:arguments[0]),Vt==null||Vt.apply(void 0,arguments)};return xe(E.createElement($e.Z,{component:"Switch"},E.createElement(dt,Object.assign({},je,{checked:Nt,onChange:Ot,prefixCls:ne,className:ht,style:Dt,disabled:se,ref:Me,loadingIcon:pe}))))});ue.__ANT_SWITCH=!0;var Je=ue},96599:function(tn,_t,re){"use strict";re.d(_t,{default:function(){return Ze}});var E=re(59301),lt=re(92310),ge=re.n(lt),Ye=re(2738),Ee=re(29509),Pe=re(78776),Ae=re(22703),Te=re(12919),we=re(48755),he=re(36237),tt=re(17835),Se=re(63356),dt=re(51636),$e=re(16931);const Ce=ue=>{const{paddingXXS:Je,lineWidth:ke,tagPaddingHorizontal:Me,componentCls:ft,calc:me}=ue,ce=me(Me).sub(ke).equal(),ze=me(Je).sub(ke).equal();return{[ft]:Object.assign(Object.assign({},(0,Se.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:ce,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",[`&${ft}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${ft}-close-icon`]:{marginInlineStart:ze,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${ft}-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(${ft}-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:ce}}),[`${ft}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ne=ue=>{const{lineWidth:Je,fontSizeIcon:ke,calc:Me}=ue,ft=ue.fontSizeSM;return(0,dt.mergeToken)(ue,{tagFontSize:ft,tagLineHeight:(0,he.unit)(Me(ue.lineHeightSM).mul(ft).equal()),tagIconSize:Me(ke).sub(Me(Je).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},Re=ue=>({defaultBg:new tt.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var et=(0,$e.I$)("Tag",ue=>{const Je=Ne(ue);return Ce(Je)},Re),nt=function(ue,Je){var ke={};for(var Me in ue)Object.prototype.hasOwnProperty.call(ue,Me)&&Je.indexOf(Me)<0&&(ke[Me]=ue[Me]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Me=Object.getOwnPropertySymbols(ue);ft<Me.length;ft++)Je.indexOf(Me[ft])<0&&Object.prototype.propertyIsEnumerable.call(ue,Me[ft])&&(ke[Me[ft]]=ue[Me[ft]]);return ke},wt=E.forwardRef((ue,Je)=>{const{prefixCls:ke,style:Me,className:ft,checked:me,onChange:ce,onClick:ze}=ue,Mt=nt(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:xt,tag:ve}=E.useContext(we.E_),We=Nt=>{ce==null||ce(!me),ze==null||ze(Nt)},_e=xt("tag",ke),[jt,kt,Vt]=et(_e),je=ge()(_e,`${_e}-checkable`,{[`${_e}-checkable-checked`]:me},ve==null?void 0:ve.className,ft,kt,Vt);return jt(E.createElement("span",Object.assign({},Mt,{ref:Je,style:Object.assign(Object.assign({},Me),ve==null?void 0:ve.style),className:je,onClick:We})))}),rt=re(93427);const pt=ue=>(0,rt.Z)(ue,(Je,ke)=>{let{textColor:Me,lightBorderColor:ft,lightColor:me,darkColor:ce}=ke;return{[`${ue.componentCls}${ue.componentCls}-${Je}`]:{color:Me,background:me,borderColor:ft,"&-inverse":{color:ue.colorTextLightSolid,background:ce,borderColor:ce},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Qe=(0,$e.bk)(["Tag","preset"],ue=>{const Je=Ne(ue);return pt(Je)},Re);function Rt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const gt=(ue,Je,ke)=>{const Me=Rt(ke);return{[`${ue.componentCls}${ue.componentCls}-${Je}`]:{color:ue[`color${ke}`],background:ue[`color${Me}Bg`],borderColor:ue[`color${Me}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ot=(0,$e.bk)(["Tag","status"],ue=>{const Je=Ne(ue);return[gt(Je,"success","Success"),gt(Je,"processing","Info"),gt(Je,"error","Error"),gt(Je,"warning","Warning")]},Re),It=function(ue,Je){var ke={};for(var Me in ue)Object.prototype.hasOwnProperty.call(ue,Me)&&Je.indexOf(Me)<0&&(ke[Me]=ue[Me]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Me=Object.getOwnPropertySymbols(ue);ft<Me.length;ft++)Je.indexOf(Me[ft])<0&&Object.prototype.propertyIsEnumerable.call(ue,Me[ft])&&(ke[Me[ft]]=ue[Me[ft]]);return ke};const Ue=E.forwardRef((ue,Je)=>{const{prefixCls:ke,className:Me,rootClassName:ft,style:me,children:ce,icon:ze,color:Mt,onClose:xt,bordered:ve=!0,visible:We}=ue,_e=It(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:jt,direction:kt,tag:Vt}=E.useContext(we.E_),[je,Nt]=E.useState(!0),st=(0,Ye.Z)(_e,["closeIcon","closable"]);E.useEffect(()=>{We!==void 0&&Nt(We)},[We]);const ae=(0,Ee.o2)(Mt),te=(0,Ee.yT)(Mt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Mt&&!ee?Mt:void 0},Vt==null?void 0:Vt.style),me),se=jt("tag",ke),[ne,pe,xe]=et(se),ut=ge()(se,Vt==null?void 0:Vt.className,{[`${se}-${Mt}`]:ee,[`${se}-has-color`]:Mt&&!ee,[`${se}-hidden`]:!je,[`${se}-rtl`]:kt==="rtl",[`${se}-borderless`]:!ve},Me,ft,pe,xe),Ie=Yt=>{Yt.stopPropagation(),xt==null||xt(Yt),!Yt.defaultPrevented&&Nt(!1)},[,Ve]=(0,Pe.Z)((0,Pe.w)(ue),(0,Pe.w)(Vt),{closable:!1,closeIconRender:Yt=>{const Ut=E.createElement("span",{className:`${se}-close-icon`,onClick:Ie},Yt);return(0,Ae.wm)(Yt,Ut,Pt=>({onClick:Et=>{var mt;(mt=Pt==null?void 0:Pt.onClick)===null||mt===void 0||mt.call(Pt,Et),Ie(Et)},className:ge()(Pt==null?void 0:Pt.className,`${se}-close-icon`)}))}}),ht=typeof _e.onClick=="function"||ce&&ce.type==="a",Dt=ze||null,Ot=Dt?E.createElement(E.Fragment,null,Dt,ce&&E.createElement("span",null,ce)):ce,Jt=E.createElement("span",Object.assign({},st,{ref:Je,className:ut,style:oe}),Ot,Ve,ae&&E.createElement(Qe,{key:"preset",prefixCls:se}),te&&E.createElement(ot,{key:"status",prefixCls:se}));return ne(ht?E.createElement(Te.Z,{component:"Tag"},Jt):Jt)});Ue.CheckableTag=wt;var Ze=Ue},99498:function(tn,_t,re){(function(E){E(re(89780))})(function(E){E.defineOption("placeholder","",function(Te,we,he){var tt=he&&he!=E.Init;if(we&&!tt)Te.on("blur",Ee),Te.on("change",Pe),Te.on("swapDoc",Pe),E.on(Te.getInputField(),"compositionupdate",Te.state.placeholderCompose=function(){Ye(Te)}),Pe(Te);else if(!we&&tt){Te.off("blur",Ee),Te.off("change",Pe),Te.off("swapDoc",Pe),E.off(Te.getInputField(),"compositionupdate",Te.state.placeholderCompose),lt(Te);var Se=Te.getWrapperElement();Se.className=Se.className.replace(" CodeMirror-empty","")}we&&!Te.hasFocus()&&Ee(Te)});function lt(Te){Te.state.placeholder&&(Te.state.placeholder.parentNode.removeChild(Te.state.placeholder),Te.state.placeholder=null)}function ge(Te){lt(Te);var we=Te.state.placeholder=document.createElement("pre");we.style.cssText="height: 0; overflow: visible",we.style.direction=Te.getOption("direction"),we.className="CodeMirror-placeholder CodeMirror-line-like";var he=Te.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),we.appendChild(he),Te.display.lineSpace.insertBefore(we,Te.display.lineSpace.firstChild)}function Ye(Te){setTimeout(function(){var we=!1,he=Te.getInputField();he.nodeName=="TEXTAREA"?we=!he.value:Te.lineCount()==1&&(we=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),we?ge(Te):lt(Te)},20)}function Ee(Te){Ae(Te)&&ge(Te)}function Pe(Te){var we=Te.getWrapperElement(),he=Ae(Te);we.className=we.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ge(Te):lt(Te)}function Ae(Te){return Te.lineCount()===1&&Te.getLine(0)===""}})},25717:function(tn,_t,re){(function(E){E(re(89780))})(function(E){var lt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Ce,Ne,Re){Re&&Re!=E.Init&&(Ce.removeKeyMap(Ee),Ce.state.closeBrackets=null),Ne&&(Pe(Ye(Ne,"pairs")),Ce.state.closeBrackets=Ne,Ce.addKeyMap(Ee))});function Ye(Ce,Ne){return Ne=="pairs"&&typeof Ce=="string"?Ce:typeof Ce=="object"&&Ce[Ne]!=null?Ce[Ne]:lt[Ne]}var Ee={Backspace:we,Enter:he};function Pe(Ce){for(var Ne=0;Ne<Ce.length;Ne++){var Re=Ce.charAt(Ne),et="'"+Re+"'";Ee[et]||(Ee[et]=Ae(Re))}}Pe(lt.pairs+"`");function Ae(Ce){return function(Ne){return Se(Ne,Ce)}}function Te(Ce){var Ne=Ce.state.closeBrackets;if(!Ne||Ne.override)return Ne;var Re=Ce.getModeAt(Ce.getCursor());return Re.closeBrackets||Ne}function we(Ce){var Ne=Te(Ce);if(!Ne||Ce.getOption("disableInput"))return E.Pass;for(var Re=Ye(Ne,"pairs"),et=Ce.listSelections(),nt=0;nt<et.length;nt++){if(!et[nt].empty())return E.Pass;var Lt=dt(Ce,et[nt].head);if(!Lt||Re.indexOf(Lt)%2!=0)return E.Pass}for(var nt=et.length-1;nt>=0;nt--){var wt=et[nt].head;Ce.replaceRange("",ge(wt.line,wt.ch-1),ge(wt.line,wt.ch+1),"+delete")}}function he(Ce){var Ne=Te(Ce),Re=Ne&&Ye(Ne,"explode");if(!Re||Ce.getOption("disableInput"))return E.Pass;for(var et=Ce.listSelections(),nt=0;nt<et.length;nt++){if(!et[nt].empty())return E.Pass;var Lt=dt(Ce,et[nt].head);if(!Lt||Re.indexOf(Lt)%2!=0)return E.Pass}Ce.operation(function(){var wt=Ce.lineSeparator()||`
`;Ce.replaceSelection(wt+wt,null),Ce.execCommand("goCharLeft"),et=Ce.listSelections();for(var rt=0;rt<et.length;rt++){var pt=et[rt].head.line;Ce.indentLine(pt,null,!0),Ce.indentLine(pt+1,null,!0)}})}function tt(Ce){var Ne=E.cmpPos(Ce.anchor,Ce.head)>0;return{anchor:new ge(Ce.anchor.line,Ce.anchor.ch+(Ne?-1:1)),head:new ge(Ce.head.line,Ce.head.ch+(Ne?1:-1))}}function Se(Ce,Ne){var Re=Te(Ce);if(!Re||Ce.getOption("disableInput"))return E.Pass;var et=Ye(Re,"pairs"),nt=et.indexOf(Ne);if(nt==-1)return E.Pass;for(var Lt=Ye(Re,"closeBefore"),wt=Ye(Re,"triples"),rt=et.charAt(nt+1)==Ne,pt=Ce.listSelections(),Qe=nt%2==0,Rt,gt=0;gt<pt.length;gt++){var ot=pt[gt],It=ot.head,Be,Ue=Ce.getRange(It,ge(It.line,It.ch+1));if(Qe&&!ot.empty())Be="surround";else if((rt||!Qe)&&Ue==Ne)rt&&$e(Ce,It)?Be="both":wt.indexOf(Ne)>=0&&Ce.getRange(It,ge(It.line,It.ch+3))==Ne+Ne+Ne?Be="skipThree":Be="skip";else if(rt&&It.ch>1&&wt.indexOf(Ne)>=0&&Ce.getRange(ge(It.line,It.ch-2),It)==Ne+Ne){if(It.ch>2&&/\bstring/.test(Ce.getTokenTypeAt(ge(It.line,It.ch-2))))return E.Pass;Be="addFour"}else if(rt){var Ze=It.ch==0?" ":Ce.getRange(ge(It.line,It.ch-1),It);if(!E.isWordChar(Ue)&&Ze!=Ne&&!E.isWordChar(Ze))Be="both";else return E.Pass}else if(Qe&&(Ue.length===0||/\s/.test(Ue)||Lt.indexOf(Ue)>-1))Be="both";else return E.Pass;if(!Rt)Rt=Be;else if(Rt!=Be)return E.Pass}var ue=nt%2?et.charAt(nt-1):Ne,Je=nt%2?Ne:et.charAt(nt+1);Ce.operation(function(){if(Rt=="skip")Ce.execCommand("goCharRight");else if(Rt=="skipThree")for(var ke=0;ke<3;ke++)Ce.execCommand("goCharRight");else if(Rt=="surround"){for(var Me=Ce.getSelections(),ke=0;ke<Me.length;ke++)Me[ke]=ue+Me[ke]+Je;Ce.replaceSelections(Me,"around"),Me=Ce.listSelections().slice();for(var ke=0;ke<Me.length;ke++)Me[ke]=tt(Me[ke]);Ce.setSelections(Me)}else Rt=="both"?(Ce.replaceSelection(ue+Je,null),Ce.triggerElectric(ue+Je),Ce.execCommand("goCharLeft")):Rt=="addFour"&&(Ce.replaceSelection(ue+ue+ue+ue,"before"),Ce.execCommand("goCharRight"))})}function dt(Ce,Ne){var Re=Ce.getRange(ge(Ne.line,Ne.ch-1),ge(Ne.line,Ne.ch+1));return Re.length==2?Re:null}function $e(Ce,Ne){var Re=Ce.getTokenAt(ge(Ne.line,Ne.ch+1));return/\bstring/.test(Re.type)&&Re.start==Ne.ch&&(Ne.ch==0||!/\bstring/.test(Ce.getTokenTypeAt(Ne)))}})},6313:function(tn,_t,re){(function(E){E(re(89780),re(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(we,he,tt){if(tt!=E.Init&&tt&&we.removeKeyMap("autoCloseTags"),!!he){var Se={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Se["'/'"]=function(dt){return Pe(dt)}),(typeof he!="object"||he.whenOpening!==!1)&&(Se["'>'"]=function(dt){return Ye(dt)}),we.addKeyMap(Se)}});var lt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ge=["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 Ye(we){if(we.getOption("disableInput"))return E.Pass;for(var he=we.listSelections(),tt=[],Se=we.getOption("autoCloseTags"),dt=0;dt<he.length;dt++){if(!he[dt].empty())return E.Pass;var $e=he[dt].head,Ce=we.getTokenAt($e),Ne=E.innerMode(we.getMode(),Ce.state),Re=Ne.state,et=Ne.mode.xmlCurrentTag&&Ne.mode.xmlCurrentTag(Re),nt=et&&et.name;if(!nt)return E.Pass;var Lt=Ne.mode.configuration=="html",wt=typeof Se=="object"&&Se.dontCloseTags||Lt&&lt,rt=typeof Se=="object"&&Se.indentTags||Lt&&ge;Ce.end>$e.ch&&(nt=nt.slice(0,nt.length-Ce.end+$e.ch));var pt=nt.toLowerCase();if(!nt||Ce.type=="string"&&(Ce.end!=$e.ch||!/[\"\']/.test(Ce.string.charAt(Ce.string.length-1))||Ce.string.length==1)||Ce.type=="tag"&&et.close||Ce.string.indexOf("/")==$e.ch-Ce.start-1||wt&&Ae(wt,pt)>-1||Te(we,Ne.mode.xmlCurrentContext&&Ne.mode.xmlCurrentContext(Re)||[],nt,$e,!0))return E.Pass;var Qe=typeof Se=="object"&&Se.emptyTags;if(Qe&&Ae(Qe,nt)>-1){tt[dt]={text:"/>",newPos:E.Pos($e.line,$e.ch+2)};continue}var Rt=rt&&Ae(rt,pt)>-1;tt[dt]={indent:Rt,text:">"+(Rt?`
`:"")+"</"+nt+">",newPos:Rt?E.Pos($e.line+1,0):E.Pos($e.line,$e.ch+1)}}for(var gt=typeof Se=="object"&&Se.dontIndentOnAutoClose,dt=he.length-1;dt>=0;dt--){var ot=tt[dt];we.replaceRange(ot.text,he[dt].head,he[dt].anchor,"+insert");var It=we.listSelections().slice(0);It[dt]={head:ot.newPos,anchor:ot.newPos},we.setSelections(It),!gt&&ot.indent&&(we.indentLine(ot.newPos.line,null,!0),we.indentLine(ot.newPos.line+1,null,!0))}}function Ee(we,he){for(var tt=we.listSelections(),Se=[],dt=he?"/":"</",$e=we.getOption("autoCloseTags"),Ce=typeof $e=="object"&&$e.dontIndentOnSlash,Ne=0;Ne<tt.length;Ne++){if(!tt[Ne].empty())return E.Pass;var Re=tt[Ne].head,et=we.getTokenAt(Re),nt=E.innerMode(we.getMode(),et.state),Lt=nt.state;if(he&&(et.type=="string"||et.string.charAt(0)!="<"||et.start!=Re.ch-1))return E.Pass;var wt,rt=nt.mode.name!="xml"&&we.getMode().name=="htmlmixed";if(rt&&nt.mode.name=="javascript")wt=dt+"script";else if(rt&&nt.mode.name=="css")wt=dt+"style";else{var pt=nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(Lt);if(!pt||pt.length&&Te(we,pt,pt[pt.length-1],Re))return E.Pass;wt=dt+pt[pt.length-1]}we.getLine(Re.line).charAt(et.end)!=">"&&(wt+=">"),Se[Ne]=wt}if(we.replaceSelections(Se),tt=we.listSelections(),!Ce)for(var Ne=0;Ne<tt.length;Ne++)(Ne==tt.length-1||tt[Ne].head.line<tt[Ne+1].head.line)&&we.indentLine(tt[Ne].head.line)}function Pe(we){return we.getOption("disableInput")?E.Pass:Ee(we,!0)}E.commands.closeTag=function(we){return Ee(we)};function Ae(we,he){if(we.indexOf)return we.indexOf(he);for(var tt=0,Se=we.length;tt<Se;++tt)if(we[tt]==he)return tt;return-1}function Te(we,he,tt,Se,dt){if(!E.scanForClosingTag)return!1;var $e=Math.min(we.lastLine()+1,Se.line+500),Ce=E.scanForClosingTag(we,Se,null,$e);if(!Ce||Ce.tag!=tt)return!1;for(var Ne=dt?1:0,Re=he.length-1;Re>=0&&he[Re]==tt;Re--)++Ne;Se=Ce.to;for(var Re=1;Re<Ne;Re++){var et=E.scanForClosingTag(we,Se,null,$e);if(!et||et.tag!=tt)return!1;Se=et.to}return!0}})},32855:function(tn,_t,re){(function(E){E(re(89780))})(function(E){"use strict";var lt=E.Pos;function ge(Re,et){return Re.line-et.line||Re.ch-et.ch}var Ye="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=Ye+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Pe=new RegExp("<(/?)(["+Ye+"]["+Ee+"]*)","g");function Ae(Re,et,nt,Lt){this.line=et,this.ch=nt,this.cm=Re,this.text=Re.getLine(et),this.min=Lt?Math.max(Lt.from,Re.firstLine()):Re.firstLine(),this.max=Lt?Math.min(Lt.to-1,Re.lastLine()):Re.lastLine()}function Te(Re,et){var nt=Re.cm.getTokenTypeAt(lt(Re.line,et));return nt&&/\btag\b/.test(nt)}function we(Re){if(!(Re.line>=Re.max))return Re.ch=0,Re.text=Re.cm.getLine(++Re.line),!0}function he(Re){if(!(Re.line<=Re.min))return Re.text=Re.cm.getLine(--Re.line),Re.ch=Re.text.length,!0}function tt(Re){for(;;){var et=Re.text.indexOf(">",Re.ch);if(et==-1){if(we(Re))continue;return}if(!Te(Re,et+1)){Re.ch=et+1;continue}var nt=Re.text.lastIndexOf("/",et),Lt=nt>-1&&!/\S/.test(Re.text.slice(nt+1,et));return Re.ch=et+1,Lt?"selfClose":"regular"}}function Se(Re){for(;;){var et=Re.ch?Re.text.lastIndexOf("<",Re.ch-1):-1;if(et==-1){if(he(Re))continue;return}if(!Te(Re,et+1)){Re.ch=et;continue}Pe.lastIndex=et,Re.ch=et;var nt=Pe.exec(Re.text);if(nt&&nt.index==et)return nt}}function dt(Re){for(;;){Pe.lastIndex=Re.ch;var et=Pe.exec(Re.text);if(!et){if(we(Re))continue;return}if(!Te(Re,et.index+1)){Re.ch=et.index+1;continue}return Re.ch=et.index+et[0].length,et}}function $e(Re){for(;;){var et=Re.ch?Re.text.lastIndexOf(">",Re.ch-1):-1;if(et==-1){if(he(Re))continue;return}if(!Te(Re,et+1)){Re.ch=et;continue}var nt=Re.text.lastIndexOf("/",et),Lt=nt>-1&&!/\S/.test(Re.text.slice(nt+1,et));return Re.ch=et+1,Lt?"selfClose":"regular"}}function Ce(Re,et){for(var nt=[];;){var Lt=dt(Re),wt,rt=Re.line,pt=Re.ch-(Lt?Lt[0].length:0);if(!Lt||!(wt=tt(Re)))return;if(wt!="selfClose")if(Lt[1]){for(var Qe=nt.length-1;Qe>=0;--Qe)if(nt[Qe]==Lt[2]){nt.length=Qe;break}if(Qe<0&&(!et||et==Lt[2]))return{tag:Lt[2],from:lt(rt,pt),to:lt(Re.line,Re.ch)}}else nt.push(Lt[2])}}function Ne(Re,et){for(var nt=[];;){var Lt=$e(Re);if(!Lt)return;if(Lt=="selfClose"){Se(Re);continue}var wt=Re.line,rt=Re.ch,pt=Se(Re);if(!pt)return;if(pt[1])nt.push(pt[2]);else{for(var Qe=nt.length-1;Qe>=0;--Qe)if(nt[Qe]==pt[2]){nt.length=Qe;break}if(Qe<0&&(!et||et==pt[2]))return{tag:pt[2],from:lt(Re.line,Re.ch),to:lt(wt,rt)}}}}E.registerHelper("fold","xml",function(Re,et){for(var nt=new Ae(Re,et.line,0);;){var Lt=dt(nt);if(!Lt||nt.line!=et.line)return;var wt=tt(nt);if(!wt)return;if(!Lt[1]&&wt!="selfClose"){var rt=lt(nt.line,nt.ch),pt=Ce(nt,Lt[2]);return pt&&ge(pt.from,rt)>0?{from:rt,to:pt.from}:null}}}),E.findMatchingTag=function(Re,et,nt){var Lt=new Ae(Re,et.line,et.ch,nt);if(!(Lt.text.indexOf(">")==-1&&Lt.text.indexOf("<")==-1)){var wt=tt(Lt),rt=wt&&lt(Lt.line,Lt.ch),pt=wt&&Se(Lt);if(!(!wt||!pt||ge(Lt,et)>0)){var Qe={from:lt(Lt.line,Lt.ch),to:rt,tag:pt[2]};return wt=="selfClose"?{open:Qe,close:null,at:"open"}:pt[1]?{open:Ne(Lt,pt[2]),close:Qe,at:"close"}:(Lt=new Ae(Re,rt.line,rt.ch,nt),{open:Qe,close:Ce(Lt,pt[2]),at:"open"})}}},E.findEnclosingTag=function(Re,et,nt,Lt){for(var wt=new Ae(Re,et.line,et.ch,nt);;){var rt=Ne(wt,Lt);if(!rt)break;var pt=new Ae(Re,et.line,et.ch,nt),Qe=Ce(pt,rt.tag);if(Qe)return{open:rt,close:Qe}}},E.scanForClosingTag=function(Re,et,nt,Lt){var wt=new Ae(Re,et.line,et.ch,Lt?{from:0,to:Lt}:null);return Ce(wt,nt)}})},89780:function(tn){(function(_t,re){tn.exports=re()})(this,function(){"use strict";var _t=navigator.userAgent,re=navigator.platform,E=/gecko\/\d/i.test(_t),lt=/MSIE \d/.test(_t),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_t),Ye=/Edge\/(\d+)/.exec(_t),Ee=lt||ge||Ye,Pe=Ee&&(lt?document.documentMode||6:+(Ye||ge)[1]),Ae=!Ye&&/WebKit\//.test(_t),Te=Ae&&/Qt\/\d+\.\d+/.test(_t),we=!Ye&&/Chrome\//.test(_t),he=/Opera\//.test(_t),tt=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_t),dt=/PhantomJS/.test(_t),$e=!Ye&&/AppleWebKit/.test(_t)&&/Mobile\/\w+/.test(_t),Ce=/Android/.test(_t),Ne=$e||Ce||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_t),Re=$e||/Mac/.test(re),et=/\bCrOS\b/.test(_t),nt=/win/i.test(re),Lt=he&&_t.match(/Version\/(\d*\.\d*)/);Lt&&(Lt=Number(Lt[1])),Lt&&Lt>=15&&(he=!1,Ae=!0);var wt=Re&&(Te||he&&(Lt==null||Lt<12.11)),rt=E||Ee&&Pe>=9;function pt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Qe=function(a,y){var x=a.className,b=pt(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function Rt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function gt(a,y){return Rt(a).appendChild(y)}function ot(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie<y.length;++ie)z.appendChild(y[ie]);return z}function It(a,y,x,b){var z=ot(a,y,x,b);return z.setAttribute("role","presentation"),z}var Be;document.createRange?Be=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:Be=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(z){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function Ue(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 Ze(){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;pt(y).test(x)||(a.className+=(x?" ":"")+y)}function Je(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!pt(x[b]).test(y)&&(y+=" "+x[b]);return y}var ke=function(a){a.select()};$e?ke=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ee&&(ke=function(a){try{a.select()}catch(y){}});function Me(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function ft(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 me(a,y,x,b,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=b||0,le=z||0;;){var de=a.indexOf(" ",ie);if(de<0||de>=y)return le+(y-ie);le+=de-ie,le+=x-le%x,ie=de+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Me(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function ze(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Mt=50,xt={toString:function(){return"CodeMirror.Pass"}},ve={scroll:!1},We={origin:"*mouse"},_e={origin:"+move"};function jt(a,y,x){for(var b=0,z=0;;){var ie=a.indexOf(" ",b);ie==-1&&(ie=a.length);var le=ie-b;if(ie==a.length||z+le>=y)return b+Math.min(le,y-z);if(z+=ie-b,z+=x-z%x,b=ie+1,z>=y)return b}}var kt=[""];function Vt(a){for(;kt.length<=a;)kt.push(je(kt)+" ");return kt[a]}function je(a){return a[a.length-1]}function Nt(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,z=x(y);b<a.length&&x(a[b])<=z;)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&&ft(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 pe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xe(a){return a.charCodeAt(0)>=768&&pe.test(a)}function ut(a,y,x){for(;(x<0?y>0:y<a.length)&&xe(a.charAt(y));)y+=x;return y}function Ie(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var z=(y+x)/2,ie=b<0?Math.ceil(z):Math.floor(z);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Ve(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var le=a[ie];(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",ie),z=!0)}z||b(y,x,"ltr")}var ht=null;function Dt(a,y,x){var b;ht=null;for(var z=0;z<a.length;++z){var ie=a[z];if(ie.from<y&&ie.to>y)return z;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=z:ht=z),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=z:ht=z)}return b!=null?b:ht}var Ot=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(be){return be<=247?a.charAt(be):1424<=be&&be<=1524?"R":1536<=be&&be<=1785?y.charAt(be-1536):1774<=be&&be<=2220?"r":8192<=be&&be<=8203?"w":be==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,de=/[1n]/;function fe(be,at,bt){this.level=be,this.from=at,this.to=bt}return function(be,at){var bt=at=="ltr"?"L":"R";if(be.length==0||at=="ltr"&&!b.test(be))return!1;for(var Xt=be.length,Zt=[],gn=0;gn<Xt;++gn)Zt.push(x(be.charCodeAt(gn)));for(var Bn=0,Nn=bt;Bn<Xt;++Bn){var jn=Zt[Bn];jn=="m"?Zt[Bn]=Nn:Nn=jn}for(var Vn=0,Wn=bt;Vn<Xt;++Vn){var Kn=Zt[Vn];Kn=="1"&&Wn=="r"?Zt[Vn]="n":ie.test(Kn)&&(Wn=Kn,Kn=="r"&&(Zt[Vn]="R"))}for(var sr=1,nr=Zt[0];sr<Xt-1;++sr){var wr=Zt[sr];wr=="+"&&nr=="1"&&Zt[sr+1]=="1"?Zt[sr]="1":wr==","&&nr==Zt[sr+1]&&(nr=="1"||nr=="n")&&(Zt[sr]=nr),nr=wr}for(var _r=0;_r<Xt;++_r){var li=Zt[_r];if(li==",")Zt[_r]="N";else if(li=="%"){var Ur=void 0;for(Ur=_r+1;Ur<Xt&&Zt[Ur]=="%";++Ur);for(var Mi=_r&&Zt[_r-1]=="!"||Ur<Xt&&Zt[Ur]=="1"?"1":"N",Ei=_r;Ei<Ur;++Ei)Zt[Ei]=Mi;_r=Ur-1}}for(var qr=0,Ii=bt;qr<Xt;++qr){var di=Zt[qr];Ii=="L"&&di=="1"?Zt[qr]="L":ie.test(di)&&(Ii=di)}for(var ii=0;ii<Xt;++ii)if(z.test(Zt[ii])){var ei=void 0;for(ei=ii+1;ei<Xt&&z.test(Zt[ei]);++ei);for(var Kr=(ii?Zt[ii-1]:bt)=="L",Pi=(ei<Xt?Zt[ei]:bt)=="L",Vo=Kr==Pi?Kr?"L":"R":bt,bo=ii;bo<ei;++bo)Zt[bo]=Vo;ii=ei-1}for(var pi=[],eo,si=0;si<Xt;)if(le.test(Zt[si])){var bl=si;for(++si;si<Xt&&le.test(Zt[si]);++si);pi.push(new fe(0,bl,si))}else{var oo=si,Do=pi.length,Ao=at=="rtl"?1:0;for(++si;si<Xt&&Zt[si]!="L";++si);for(var bi=oo;bi<si;)if(de.test(Zt[bi])){oo<bi&&(pi.splice(Do,0,new fe(1,oo,bi)),Do+=Ao);var Go=bi;for(++bi;bi<si&&de.test(Zt[bi]);++bi);pi.splice(Do,0,new fe(2,Go,bi)),Do+=Ao,oo=bi}else++bi;oo<si&&pi.splice(Do,0,new fe(1,oo,si))}return at=="ltr"&&(pi[0].level==1&&(eo=be.match(/^\s+/))&&(pi[0].from=eo[0].length,pi.unshift(new fe(0,0,eo[0].length))),je(pi).level==1&&(eo=be.match(/\s+$/))&&(je(pi).to-=eo[0].length,pi.push(new fe(0,Xt-eo[0].length,Xt)))),at=="rtl"?pi.reverse():pi}}();function Jt(a,y){var x=a.order;return x==null&&(x=a.order=Ot(a.text,y)),x}var Yt=[],Ut=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]||Yt).concat(x)}};function Pt(a,y){return a._handlers&&a._handlers[y]||Yt}function Et(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,z=b&&b[y];if(z){var ie=ze(z,x);ie>-1&&(b[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function mt(a,y){var x=Pt(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z<x.length;++z)x[z].apply(null,b)}function ct(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),mt(a,x||y.type,a,y),St(y)||y.codemirrorIgnore}function qt(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)ze(x,y[b])==-1&&x.push(y[b])}function Ht(a,y){return Pt(a,y).length>0}function Fe(a){a.prototype.on=function(y,x){Ut(this,y,x)},a.prototype.off=function(y,x){Et(this,y,x)}}function it(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Xe(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function St(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function De(a){it(a),Xe(a)}function qe(a){return a.target||a.srcElement}function yt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Re&&a.ctrlKey&&y==1&&(y=3),y}var Ct=function(){if(Ee&&Pe<9)return!1;var a=ot("div");return"draggable"in a||"dragDrop"in a}(),$t;function rn(a){if($t==null){var y=ot("span","\u200B");gt(a,ot("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&($t=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ee&&Pe<8))}var x=$t?ot("span","\u200B"):ot("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var In;function En(a){if(In!=null)return In;var y=gt(a,document.createTextNode("A\u062EA")),x=Be(y,0,1).getBoundingClientRect(),b=Be(y,1,2).getBoundingClientRect();return Rt(a),!x||x.left==x.right?!1:In=b.right-x.right<3}var nn=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(`
`,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},vn=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},ln=function(){var a=ot("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Tn=null;function xn(a){if(Tn!=null)return Tn;var y=gt(a,ot("span","x")),x=y.getBoundingClientRect(),b=Be(y,0,1).getBoundingClientRect();return Tn=Math.abs(x.left-b.left)>1}var an={},Kt={};function Tt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),an[a]=y}function At(a,y){Kt[a]=y}function Ft(a){if(typeof a=="string"&&Kt.hasOwnProperty(a))a=Kt[a];else if(a&&typeof a.name=="string"&&Kt.hasOwnProperty(a.name)){var y=Kt[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 Ft("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Ft("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Qt(a,y){y=Ft(y);var x=an[y.name];if(!x)return Qt(a,"text/plain");var b=x(a,y);if(hn.hasOwnProperty(y.name)){var z=hn[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=z[ie])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var hn={};function pn(a,y){var x=hn.hasOwnProperty(a)?hn[a]:hn[a]={};ft(y,x)}function sn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function un(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 bn(a,y,x){return a.startState?a.startState(y,x):!0}var On=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};On.prototype.eol=function(){return this.pos>=this.string.length},On.prototype.sol=function(){return this.pos==this.lineStart},On.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},On.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},On.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},On.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},On.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},On.prototype.skipToEnd=function(){this.pos=this.string.length},On.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},On.prototype.backUp=function(a){this.pos-=a},On.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=me(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},On.prototype.indentation=function(){return me(this.string,null,this.tabSize)-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},On.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},z=this.string.substr(this.pos,a.length);if(b(z)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},On.prototype.current=function(){return this.string.slice(this.start,this.pos)},On.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},On.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},On.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function vt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var z=x.children[b],ie=z.chunkSize();if(y<ie){x=z;break}y-=ie}return x.lines[y]}function Gt(a,y,x){var b=[],z=y.line;return a.iter(y.line,x.line+1,function(ie){var le=ie.text;z==x.line&&(le=le.slice(0,x.ch)),z==y.line&&(le=le.slice(y.ch)),b.push(le),++z}),b}function cn(a,y,x){var b=[];return a.iter(y,x,function(z){b.push(z.text)}),b}function fn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function He(a){if(a.parent==null)return null;for(var y=a.parent,x=ze(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var z=0;b.children[z]!=y;++z)x+=b.children[z].chunkSize();return x+y.first}function Ge(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var z=a.children[b],ie=z.height;if(y<ie){a=z;continue e}y-=ie,x+=z.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var de=a.lines[le],fe=de.height;if(y<fe)break;y-=fe}return x+le}function ye(a,y){return y>=a.first&&y<a.first+a.size}function Le(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Oe(a,y,x){if(x===void 0&&(x=null),!(this instanceof Oe))return new Oe(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Ke(a,y){return a.line-y.line||a.ch-y.ch}function Bt(a,y){return a.sticky==y.sticky&&Ke(a,y)==0}function on(a){return Oe(a.line,a.ch)}function mn(a,y){return Ke(a,y)<0?y:a}function Sn(a,y){return Ke(a,y)<0?a:y}function en(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Wt(a,y){if(y.line<a.first)return Oe(a.first,0);var x=a.first+a.size-1;return y.line>x?Oe(x,vt(a,x).text.length):zt(y,vt(a,y.line).text.length)}function zt(a,y){var x=a.ch;return x==null||x>y?Oe(a.line,y):x<0?Oe(a.line,0):a}function yn(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Wt(a,y[b]);return x}var Ln=function(a,y){this.state=a,this.lookAhead=y},kn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};kn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},kn.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}},kn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kn.fromSaved=function(a,y,x){return y instanceof Ln?new kn(a,sn(a.mode,y.state),x,y.lookAhead):new kn(a,sn(a.mode,y),x)},kn.prototype.save=function(a){var y=a!==!1?sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ln(y,this.maxLookAhead):y};function Mn(a,y,x,b){var z=[a.state.modeGen],ie={};qn(a,y.text,a.doc.mode,x,function(be,at){return z.push(be,at)},ie,b);for(var le=x.state,de=function(be){x.baseTokens=z;var at=a.state.overlays[be],bt=1,Xt=0;x.state=!0,qn(a,y.text,at.mode,x,function(Zt,gn){for(var Bn=bt;Xt<Zt;){var Nn=z[bt];Nn>Zt&&z.splice(bt,1,Zt,z[bt+1],Nn),bt+=2,Xt=Math.min(Zt,Nn)}if(gn)if(at.opaque)z.splice(Bn,bt-Bn,Zt,"overlay "+gn),bt=Bn+2;else for(;Bn<bt;Bn+=2){var jn=z[Bn+1];z[Bn+1]=(jn?jn+" ":"")+"overlay "+gn}},ie),x.state=le,x.baseTokens=null,x.baseTokenPos=1},fe=0;fe<a.state.overlays.length;++fe)de(fe);return{styles:z,classes:ie.bgClass||ie.textClass?ie:null}}function Xn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Qn(a,He(y)),z=y.text.length>a.options.maxHighlightLength&&sn(a.doc.mode,b.state),ie=Mn(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Qn(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new kn(b,!0,y);var ie=lr(a,y,x),le=ie>b.first&&vt(b,ie-1).stateAfter,de=le?kn.fromSaved(b,le,ie):new kn(b,bn(b.mode),ie);return b.iter(ie,y,function(fe){Jn(a,fe.text,de);var be=de.line;fe.stateAfter=be==y-1||be%5==0||be>=z.viewFrom&&be<z.viewTo?de.save():null,de.nextLine()}),x&&(b.modeFrontier=de.line),de}function Jn(a,y,x,b){var z=a.doc.mode,ie=new On(y,a.options.tabSize,x);for(ie.start=ie.pos=b||0,y==""&&$n(z,x.state);!ie.eol();)zn(z,ie,x.state),ie.start=ie.pos}function $n(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=un(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function zn(a,y,x,b){for(var z=0;z<10;z++){b&&(b[0]=un(a,x).mode);var ie=a.token(y,x);if(y.pos>y.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var Zn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Un(a,y,x,b){var z=a.doc,ie=z.mode,le;y=Wt(z,y);var de=vt(z,y.line),fe=Qn(a,y.line,x),be=new On(de.text,a.options.tabSize,fe),at;for(b&&(at=[]);(b||be.pos<y.ch)&&!be.eol();)be.start=be.pos,le=zn(ie,be,fe.state),b&&at.push(new Zn(be,le,sn(z.mode,fe.state)));return b?at:new Zn(be,le,fe.state)}function ur(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 qn(a,y,x,b,z,ie,le){var de=x.flattenSpans;de==null&&(de=a.options.flattenSpans);var fe=0,be=null,at=new On(y,a.options.tabSize,b),bt,Xt=a.options.addModeClass&&[null];for(y==""&&ur($n(x,b.state),ie);!at.eol();){if(at.pos>a.options.maxHighlightLength?(de=!1,le&&Jn(a,y,b,at.pos),at.pos=y.length,bt=null):bt=ur(zn(x,at,b.state,Xt),ie),Xt){var Zt=Xt[0].name;Zt&&(bt="m-"+(bt?Zt+" "+bt:Zt))}if(!de||be!=bt){for(;fe<at.start;)fe=Math.min(at.start,fe+5e3),z(fe,be);be=bt}at.start=at.pos}for(;fe<at.pos;){var gn=Math.min(at.pos,fe+5e3);z(gn,be),fe=gn}}function lr(a,y,x){for(var b,z,ie=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),de=y;de>le;--de){if(de<=ie.first)return ie.first;var fe=vt(ie,de-1),be=fe.stateAfter;if(be&&(!x||de+(be instanceof Ln?be.lookAhead:0)<=ie.modeFrontier))return de;var at=me(fe.text,null,a.options.tabSize);(z==null||b>at)&&(z=de-1,b=at)}return z}function ir(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 z=vt(a,b).stateAfter;if(z&&(!(z instanceof Ln)||b+z.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var er=!1,tr=!1;function gr(){er=!0}function mr(){tr=!0}function cr(a,y,x){this.marker=a,this.from=y,this.to=x}function vr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function Cr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function or(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function dr(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var fe=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);(b||(b=[])).push(new cr(le,ie.from,fe?null:ie.to))}}return b}function Gn(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var fe=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);(b||(b=[])).push(new cr(le,fe?null:ie.from-y,ie.to==null?null:ie.to-y))}}return b}function Sr(a,y){if(y.full)return null;var x=ye(a,y.from.line)&&vt(a,y.from.line).markedSpans,b=ye(a,y.to.line)&&vt(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,ie=y.to.ch,le=Ke(y.from,y.to)==0,de=dr(x,z,le),fe=Gn(b,ie,le),be=y.text.length==1,at=je(y.text).length+(be?z:0);if(de)for(var bt=0;bt<de.length;++bt){var Xt=de[bt];if(Xt.to==null){var Zt=vr(fe,Xt.marker);Zt?be&&(Xt.to=Zt.to==null?null:Zt.to+at):Xt.to=z}}if(fe)for(var gn=0;gn<fe.length;++gn){var Bn=fe[gn];if(Bn.to!=null&&(Bn.to+=at),Bn.from==null){var Nn=vr(de,Bn.marker);Nn||(Bn.from=at,be&&(de||(de=[])).push(Bn))}else Bn.from+=at,be&&(de||(de=[])).push(Bn)}de&&(de=Rr(de)),fe&&fe!=de&&(fe=Rr(fe));var jn=[de];if(!be){var Vn=y.text.length-2,Wn;if(Vn>0&&de)for(var Kn=0;Kn<de.length;++Kn)de[Kn].to==null&&(Wn||(Wn=[])).push(new cr(de[Kn].marker,null,null));for(var sr=0;sr<Vn;++sr)jn.push(Wn);jn.push(fe)}return jn}function Rr(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 Wr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Zt){if(Zt.markedSpans)for(var gn=0;gn<Zt.markedSpans.length;++gn){var Bn=Zt.markedSpans[gn].marker;Bn.readOnly&&(!b||ze(b,Bn)==-1)&&(b||(b=[])).push(Bn)}}),!b)return null;for(var z=[{from:y,to:x}],ie=0;ie<b.length;++ie)for(var le=b[ie],de=le.find(0),fe=0;fe<z.length;++fe){var be=z[fe];if(!(Ke(be.to,de.from)<0||Ke(be.from,de.to)>0)){var at=[fe,1],bt=Ke(be.from,de.from),Xt=Ke(be.to,de.to);(bt<0||!le.inclusiveLeft&&!bt)&&at.push({from:be.from,to:de.from}),(Xt>0||!le.inclusiveRight&&!Xt)&&at.push({from:de.to,to:be.to}),z.splice.apply(z,at),fe+=at.length-3}}return z}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 Lr(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 Br(a){return a.inclusiveRight?1:0}function zr(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),z=y.find(),ie=Ke(b.from,z.from)||Ir(a)-Ir(y);if(ie)return-ie;var le=Ke(b.to,z.to)||Br(a)-Br(y);return le||y.id-a.id}function fr(a,y){var x=tr&&a.markedSpans,b;if(x)for(var z=void 0,ie=0;ie<x.length;++ie)z=x[ie],z.marker.collapsed&&(y?z.from:z.to)==null&&(!b||zr(b,z.marker)<0)&&(b=z.marker);return b}function Yn(a){return fr(a,!0)}function Cn(a){return fr(a,!1)}function An(a,y){var x=tr&&a.markedSpans,b;if(x)for(var z=0;z<x.length;++z){var ie=x[z];ie.marker.collapsed&&(ie.from==null||ie.from<y)&&(ie.to==null||ie.to>y)&&(!b||zr(b,ie.marker)<0)&&(b=ie.marker)}return b}function Dn(a,y,x,b,z){var ie=vt(a,y),le=tr&&ie.markedSpans;if(le)for(var de=0;de<le.length;++de){var fe=le[de];if(fe.marker.collapsed){var be=fe.marker.find(0),at=Ke(be.from,x)||Ir(fe.marker)-Ir(z),bt=Ke(be.to,b)||Br(fe.marker)-Br(z);if(!(at>=0&&bt<=0||at<=0&&bt>=0)&&(at<=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Ke(be.to,x)>=0:Ke(be.to,x)>0)||at>=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Ke(be.from,b)<=0:Ke(be.from,b)<0)))return!0}}}function dn(a){for(var y;y=Yn(a);)a=y.find(-1,!0).line;return a}function Hn(a){for(var y;y=Cn(a);)a=y.find(1,!0).line;return a}function _n(a){for(var y,x;y=Cn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function wn(a,y){var x=vt(a,y),b=dn(x);return x==b?y:He(b)}function Pn(a,y){if(y>a.lastLine())return y;var x=vt(a,y),b;if(!Rn(a,x))return y;for(;b=Cn(x);)x=b.find(1,!0).line;return He(x)+1}function Rn(a,y){var x=tr&&y.markedSpans;if(x){for(var b=void 0,z=0;z<x.length;++z)if(b=x[z],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&Fn(a,y,b))return!0}}}function Fn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Fn(a,b.line,vr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var z=void 0,ie=0;ie<y.markedSpans.length;++ie)if(z=y.markedSpans[ie],z.marker.collapsed&&!z.marker.widgetNode&&z.from==x.to&&(z.to==null||z.to!=x.from)&&(z.marker.inclusiveLeft||x.marker.inclusiveRight)&&Fn(a,y,z))return!0}function rr(a){a=dn(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var z=x.lines[b];if(z==a)break;y+=z.height}for(var ie=x.parent;ie;x=ie,ie=x.parent)for(var le=0;le<ie.children.length;++le){var de=ie.children[le];if(de==x)break;y+=de.height}return y}function Pr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Yn(b);){var z=x.find(0,!0);b=z.from.line,y+=z.from.ch-z.to.ch}for(b=a;x=Cn(b);){var ie=x.find(0,!0);y-=b.text.length-ie.from.ch,b=ie.to.line,y+=b.text.length-ie.to.ch}return y}function br(a){var y=a.display,x=a.doc;y.maxLine=vt(x,x.first),y.maxLineLength=Pr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var z=Pr(b);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var Ar=function(a,y,x){this.text=a,Lr(this,y),this.height=x?x(this):1};Ar.prototype.lineNo=function(){return He(this)},Fe(Ar);function Or(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),Lr(a,x);var z=b?b(a):1;z!=a.height&&fn(a,z)}function kr(a){a.parent=null,Er(a)}var Hr={},Mr={};function $r(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Mr:Hr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=It("span",null,null,Ae?"padding-right: .1px":null),b={pre:It("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,le=void 0;b.pos=0,b.addToken=Fi,En(a.display.measure)&&(le=Jt(ie,a.doc.direction))&&(b.addToken=mi(b.addToken,le)),b.map=[];var de=y!=a.display.externalMeasured&&He(ie);Tr(ie,b,Xn(a,ie,de)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=Je(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=Je(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(rn(a.display.measure))),z==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ae){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 mt(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Je(b.pre.className,b.textClass||"")),b}function Oi(a){var y=ot("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Fi(a,y,x,b,z,ie,le){if(y){var de=a.splitSpaces?xi(y,a.trailingSpace):y,fe=a.cm.state.specialChars,be=!1,at;if(!fe.test(y))a.col+=y.length,at=document.createTextNode(de),a.map.push(a.pos,a.pos+y.length,at),Ee&&Pe<9&&(be=!0),a.pos+=y.length;else{at=document.createDocumentFragment();for(var bt=0;;){fe.lastIndex=bt;var Xt=fe.exec(y),Zt=Xt?Xt.index-bt:y.length-bt;if(Zt){var gn=document.createTextNode(de.slice(bt,bt+Zt));Ee&&Pe<9?at.appendChild(ot("span",[gn])):at.appendChild(gn),a.map.push(a.pos,a.pos+Zt,gn),a.col+=Zt,a.pos+=Zt}if(!Xt)break;bt+=Zt+1;var Bn=void 0;if(Xt[0]==" "){var Nn=a.cm.options.tabSize,jn=Nn-a.col%Nn;Bn=at.appendChild(ot("span",Vt(jn),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),a.col+=jn}else Xt[0]=="\r"||Xt[0]==`
`?(Bn=at.appendChild(ot("span",Xt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",Xt[0]),a.col+=1):(Bn=a.cm.options.specialCharPlaceholder(Xt[0]),Bn.setAttribute("cm-text",Xt[0]),Ee&&Pe<9?at.appendChild(ot("span",[Bn])):at.appendChild(Bn),a.col+=1);a.map.push(a.pos,a.pos+1,Bn),a.pos++}}if(a.trailingSpace=de.charCodeAt(y.length-1)==32,x||b||z||be||ie||le){var Vn=x||"";b&&(Vn+=b),z&&(Vn+=z);var Wn=ot("span",[at],Vn,ie);if(le)for(var Kn in le)le.hasOwnProperty(Kn)&&Kn!="style"&&Kn!="class"&&Wn.setAttribute(Kn,le[Kn]);return a.content.appendChild(Wn)}a.content.appendChild(at)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;z<a.length;z++){var ie=a.charAt(z);ie==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ie="\xA0"),b+=ie,x=ie==" "}return b}function mi(a,y){return function(x,b,z,ie,le,de,fe){z=z?z+" cm-force-border":"cm-force-border";for(var be=x.pos,at=be+b.length;;){for(var bt=void 0,Xt=0;Xt<y.length&&(bt=y[Xt],!(bt.to>be&&bt.from<=be));Xt++);if(bt.to>=at)return a(x,b,z,ie,le,de,fe);a(x,b.slice(0,bt.to-be),z,ie,null,de,fe),ie=null,b=b.slice(bt.to-be),be=bt.to}}}function Xi(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Tr(a,y,x){var b=a.markedSpans,z=a.text,ie=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,z.slice(ie,ie=x[le]),$r(x[le+1],y.cm.options));return}for(var de=z.length,fe=0,be=1,at="",bt,Xt,Zt=0,gn,Bn,Nn,jn,Vn;;){if(Zt==fe){gn=Bn=Nn=Xt="",Vn=null,jn=null,Zt=1/0;for(var Wn=[],Kn=void 0,sr=0;sr<b.length;++sr){var nr=b[sr],wr=nr.marker;if(wr.type=="bookmark"&&nr.from==fe&&wr.widgetNode)Wn.push(wr);else if(nr.from<=fe&&(nr.to==null||nr.to>fe||wr.collapsed&&nr.to==fe&&nr.from==fe)){if(nr.to!=null&&nr.to!=fe&&Zt>nr.to&&(Zt=nr.to,Bn=""),wr.className&&(gn+=" "+wr.className),wr.css&&(Xt=(Xt?Xt+";":"")+wr.css),wr.startStyle&&nr.from==fe&&(Nn+=" "+wr.startStyle),wr.endStyle&&nr.to==Zt&&(Kn||(Kn=[])).push(wr.endStyle,nr.to),wr.title&&((Vn||(Vn={})).title=wr.title),wr.attributes)for(var _r in wr.attributes)(Vn||(Vn={}))[_r]=wr.attributes[_r];wr.collapsed&&(!jn||zr(jn.marker,wr)<0)&&(jn=nr)}else nr.from>fe&&Zt>nr.from&&(Zt=nr.from)}if(Kn)for(var li=0;li<Kn.length;li+=2)Kn[li+1]==Zt&&(Bn+=" "+Kn[li]);if(!jn||jn.from==fe)for(var Ur=0;Ur<Wn.length;++Ur)Xi(y,0,Wn[Ur]);if(jn&&(jn.from||0)==fe){if(Xi(y,(jn.to==null?de+1:jn.to)-fe,jn.marker,jn.from==null),jn.to==null)return;jn.to==fe&&(jn=!1)}}if(fe>=de)break;for(var Mi=Math.min(de,Zt);;){if(at){var Ei=fe+at.length;if(!jn){var qr=Ei>Mi?at.slice(0,Mi-fe):at;y.addToken(y,qr,bt?bt+gn:gn,Nn,fe+qr.length==Zt?Bn:"",Xt,Vn)}if(Ei>=Mi){at=at.slice(Mi-fe),fe=Mi;break}fe=Ei,Nn=""}at=z.slice(ie,ie=x[be++]),bt=$r(x[be++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=_n(y),this.size=this.rest?He(je(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Rn(a,y)}function ni(a,y,x){for(var b=[],z,ie=y;ie<x;ie=z){var le=new to(a.doc,vt(a.doc,ie),ie);z=ie+le.size,b.push(le)}return b}var Ti=null;function ao(a){Ti?Ti.ops.push(a):a.ownsGroup=Ti={ops:[a],delayedCallbacks:[]}}function Yi(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 z=a.ops[b];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(x<y.length)}function vi(a,y){var x=a.ownsGroup;if(x)try{Yi(x)}finally{Ti=null,y(x)}}var Li=null;function Vr(a,y){var x=Pt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),z;Ti?z=Ti.delayedCallbacks:Li?z=Li:(z=Li=[],setTimeout(zi,0));for(var ie=function(de){z.push(function(){return x[de].apply(null,b)})},le=0;le<x.length;++le)ie(le)}}function zi(){var a=Li;Li=null;for(var y=0;y<a.length;++y)a[y]()}function lo(a,y,x,b){for(var z=0;z<y.changes.length;z++){var ie=y.changes[z];ie=="text"?so(a,y):ie=="gutter"?yr(a,y,x,b):ie=="class"?ar(a,y):ie=="widget"&&hr(a,y,b)}y.changes=null}function Zi(a){return a.node==a.text&&(a.node=ot("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ee&&Pe<8&&(a.node.style.zIndex=2)),a.node}function Jr(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=Zi(y);y.background=b.insertBefore(ot("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,ar(a,y)):x&&(y.text.className=x)}function ar(a,y){Jr(a,y),y.line.wrapClass?Zi(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 yr(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 z=Zi(y);y.gutterBackground=ot("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),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var le=Zi(y),de=y.gutter=ot("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(de),le.insertBefore(de,y.text),y.line.gutterClass&&(de.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=de.appendChild(ot("div",Le(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var be=a.display.gutterSpecs[fe].className,at=ie.hasOwnProperty(be)&&ie[be];at&&de.appendChild(ot("div",[at],"CodeMirror-gutter-elt","left: "+b.gutterLeft[be]+"px; width: "+b.gutterWidth[be]+"px"))}}}function hr(a,y,x){y.alignable&&(y.alignable=null);for(var b=pt("CodeMirror-linewidget"),z=y.node.firstChild,ie=void 0;z;z=ie)ie=z.nextSibling,b.test(z.className)&&y.node.removeChild(z);Nr(a,y,x)}function pr(a,y,x,b){var z=xo(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),ar(a,y),yr(a,y,x,b),Nr(a,y,b),y.node}function Nr(a,y,x){if(Zr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Zr(a,y.rest[b],y,x,!1)}function Zr(a,y,x,b,z){if(y.widgets)for(var ie=Zi(x),le=0,de=y.widgets;le<de.length;++le){var fe=de[le],be=ot("div",[fe.node],"CodeMirror-linewidget"+(fe.className?" "+fe.className:""));fe.handleMouseEvents||be.setAttribute("cm-ignore-events","true"),_i(fe,be,x,b),a.display.input.setUneditable(be),z&&fe.above?ie.insertBefore(be,x.gutter||x.text):ie.appendChild(be),Vr(fe,"redraw")}}function _i(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var z=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(z-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function gi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Ue(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;"),gt(y.display.measure,ot("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=qe(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 Xr(a){return a.lineSpace.offsetTop}function Hi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Qi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=gt(a.measure,ot("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 Di(a){return Mt-a.display.nativeBarWidth}function Ji(a){return a.display.scroller.clientWidth-Di(a)-a.display.barWidth}function no(a){return a.display.scroller.clientHeight-Di(a)-a.display.barHeight}function $i(a,y,x){var b=a.options.lineWrapping,z=b&&Ji(a);if(!y.measure.heights||b&&y.measure.width!=z){var ie=y.measure.heights=[];if(b){y.measure.width=z;for(var le=y.text.firstChild.getClientRects(),de=0;de<le.length-1;de++){var fe=le[de],be=le[de+1];Math.abs(fe.bottom-be.bottom)>2&&ie.push((fe.bottom+be.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function Bo(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 z=0;z<a.rest.length;z++)if(He(a.rest[z])>x)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function $a(a,y){y=dn(y);var x=He(y),b=a.display.externalMeasured=new to(a.doc,y,x);b.lineN=x;var z=b.built=ti(a,b);return b.text=z.pre,gt(a.display.lineMeasure,z.pre),b}function ya(a,y,x,b){return ji(a,uo(a,y),x,b)}function qi(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[wo(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=He(y),b=qi(a,x);b&&!b.text?b=null:b&&b.changes&&(lo(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=$a(a,y));var z=Bo(b,y,x);return{line:y,view:b,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function ji(a,y,x,b,z){y.before&&(x=-1);var ie=x+(b||""),le;return y.cache.hasOwnProperty(ie)?le=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||($i(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[ie]=le)),{left:le.left,right:le.right,top:z?le.rtop:le.top,bottom:z?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,z,ie,le,de,fe,be=0;be<a.length;be+=3)if(de=a[be],fe=a[be+1],y<de?(z=0,ie=1,le="left"):y<fe?(z=y-de,ie=z+1):(be==a.length-3||y==fe&&a[be+3]>y)&&(ie=fe-de,z=ie-1,y>=fe&&(le="right")),z!=null){if(b=a[be+2],de==fe&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&z==0)for(;be&&a[be-2]==a[be-3]&&a[be-1].insertLeft;)b=a[(be-=3)+2],le="left";if(x=="right"&&z==fe-de)for(;be<a.length-3&&a[be+3]==a[be+4]&&!a[be+5].insertLeft;)b=a[(be+=3)+2],le="right";break}return{node:b,start:z,end:ie,collapse:le,coverStart:de,coverEnd:fe}}function Va(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 z=a.length-1;z>=0&&(x=a[z]).left==x.right;z--);return x}function Ca(a,y,x,b){var z=xa(y.map,x,b),ie=z.node,le=z.start,de=z.end,fe=z.collapse,be;if(ie.nodeType==3){for(var at=0;at<4;at++){for(;le&&xe(y.line.text.charAt(z.coverStart+le));)--le;for(;z.coverStart+de<z.coverEnd&&xe(y.line.text.charAt(z.coverStart+de));)++de;if(Ee&&Pe<9&&le==0&&de==z.coverEnd-z.coverStart?be=ie.parentNode.getBoundingClientRect():be=Va(Be(ie,le,de).getClientRects(),b),be.left||be.right||le==0)break;de=le,le=le-1,fe="right"}Ee&&Pe<11&&(be=Ga(a.display.measure,be))}else{le>0&&(fe=b="right");var bt;a.options.lineWrapping&&(bt=ie.getClientRects()).length>1?be=bt[b=="right"?bt.length-1:0]:be=ie.getBoundingClientRect()}if(Ee&&Pe<9&&!le&&(!be||!be.left&&!be.right)){var Xt=ie.parentNode.getClientRects()[0];Xt?be={left:Xt.left,right:Xt.left+Gi(a.display),top:Xt.top,bottom:Xt.bottom}:be=ba}for(var Zt=be.top-y.rect.top,gn=be.bottom-y.rect.top,Bn=(Zt+gn)/2,Nn=y.view.measure.heights,jn=0;jn<Nn.length-1&&!(Bn<Nn[jn]);jn++);var Vn=jn?Nn[jn-1]:0,Wn=Nn[jn],Kn={left:(fe=="right"?be.right:be.left)-y.rect.left,right:(fe=="left"?be.left:be.right)-y.rect.left,top:Vn,bottom:Wn};return!be.left&&!be.right&&(Kn.bogus=!0),a.options.singleCursorHeightPerLine||(Kn.rtop=Zt,Kn.rbottom=gn),Kn}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!xn(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Uo(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function Ko(a){a.display.externalMeasure=null,Rt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Uo(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 we&&Ce?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return we&&Ce?-(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+=gi(a.widgets[x]));return y}function ko(a,y,x,b,z){if(!z){var ie=Yo(y);x.top+=ie,x.bottom+=ie}if(b=="line")return x;b||(b="local");var le=rr(y);if(b=="local"?le+=Xr(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var de=a.display.lineSpace.getBoundingClientRect();le+=de.top+(b=="window"?0:Sa());var fe=de.left+(b=="window"?0:Xo());x.left+=fe,x.right+=fe}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,z=y.top;if(x=="page")b-=Xo(),z-=Sa();else if(x=="local"||!x){var ie=a.display.sizer.getBoundingClientRect();b+=ie.left,z+=ie.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:z-le.top}}function Mo(a,y,x,b,z){return b||(b=vt(a.doc,y.line)),ko(a,b,ya(a,b,y.ch,z),x)}function Ci(a,y,x,b,z,ie){b=b||vt(a.doc,y.line),z||(z=uo(a,b));function le(gn,Bn){var Nn=ji(a,z,gn,Bn?"right":"left",ie);return Bn?Nn.left=Nn.right:Nn.right=Nn.left,ko(a,b,Nn,x)}var de=Jt(b,a.doc.direction),fe=y.ch,be=y.sticky;if(fe>=b.text.length?(fe=b.text.length,be="before"):fe<=0&&(fe=0,be="after"),!de)return le(be=="before"?fe-1:fe,be=="before");function at(gn,Bn,Nn){var jn=de[Bn],Vn=jn.level==1;return le(Nn?gn-1:gn,Vn!=Nn)}var bt=Dt(de,fe,be),Xt=ht,Zt=at(fe,bt,be=="before");return Xt!=null&&(Zt.other=at(fe,Xt,be!="before")),Zt}function Dr(a,y){var x=0;y=Wt(a.doc,y),a.options.lineWrapping||(x=Gi(a.display)*y.ch);var b=vt(a.doc,y.line),z=rr(b)+Xr(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function xr(a,y,x,b,z){var ie=Oe(a,y,x);return ie.xRel=z,b&&(ie.outside=b),ie}function ci(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return xr(b.first,0,null,-1,-1);var z=Ge(b,x),ie=b.first+b.size-1;if(z>ie)return xr(b.first+b.size-1,vt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=vt(b,z);;){var de=Vi(a,le,z,y,x),fe=An(le,de.ch+(de.xRel>0||de.outside>0?1:0));if(!fe)return de;var be=fe.find(1);if(be.line==z)return be;le=vt(b,z=be.line)}}function fi(a,y,x,b){b-=Yo(y);var z=y.text.length,ie=Ie(function(le){return ji(a,x,le-1).bottom<=b},z,0);return z=Ie(function(le){return ji(a,x,le).top>b},ie,z),{begin:ie,end:z}}function Yr(a,y,x,b){x||(x=uo(a,y));var z=ko(a,y,ji(a,x,b),"line").top;return fi(a,y,x,z)}function ri(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Vi(a,y,x,b,z){z-=rr(y);var ie=uo(a,y),le=Yo(y),de=0,fe=y.text.length,be=!0,at=Jt(y,a.doc.direction);if(at){var bt=(a.options.lineWrapping?ro:Wi)(a,y,x,ie,at,b,z);be=bt.level!=1,de=be?bt.from:bt.to-1,fe=be?bt.to:bt.from-1}var Xt=null,Zt=null,gn=Ie(function(sr){var nr=ji(a,ie,sr);return nr.top+=le,nr.bottom+=le,ri(nr,b,z,!1)?(nr.top<=z&&nr.left<=b&&(Xt=sr,Zt=nr),!0):!1},de,fe),Bn,Nn,jn=!1;if(Zt){var Vn=b-Zt.left<Zt.right-b,Wn=Vn==be;gn=Xt+(Wn?0:1),Nn=Wn?"after":"before",Bn=Vn?Zt.left:Zt.right}else{!be&&(gn==fe||gn==de)&&gn++,Nn=gn==0?"after":gn==y.text.length?"before":ji(a,ie,gn-(be?1:0)).bottom+le<=z==be?"after":"before";var Kn=Ci(a,Oe(x,gn,Nn),"line",y,ie);Bn=Kn.left,jn=z<Kn.top?-1:z>=Kn.bottom?1:0}return gn=ut(y.text,gn,1),xr(x,gn,Nn,jn,b-Bn)}function Wi(a,y,x,b,z,ie,le){var de=Ie(function(bt){var Xt=z[bt],Zt=Xt.level!=1;return ri(Ci(a,Oe(x,Zt?Xt.to:Xt.from,Zt?"before":"after"),"line",y,b),ie,le,!0)},0,z.length-1),fe=z[de];if(de>0){var be=fe.level!=1,at=Ci(a,Oe(x,be?fe.from:fe.to,be?"after":"before"),"line",y,b);ri(at,ie,le,!0)&&at.top>le&&(fe=z[de-1])}return fe}function ro(a,y,x,b,z,ie,le){var de=fi(a,y,b,le),fe=de.begin,be=de.end;/\s/.test(y.text.charAt(be-1))&&be--;for(var at=null,bt=null,Xt=0;Xt<z.length;Xt++){var Zt=z[Xt];if(!(Zt.from>=be||Zt.to<=fe)){var gn=Zt.level!=1,Bn=ji(a,b,gn?Math.min(be,Zt.to)-1:Math.max(fe,Zt.from)).right,Nn=Bn<ie?ie-Bn+1e9:Bn-ie;(!at||bt>Nn)&&(at=Zt,bt=Nn)}}return at||(at=z[z.length-1]),at.from<fe&&(at={from:fe,to:at.to,level:at.level}),at.to>be&&(at={from:at.from,to:be,level:at.level}),at}var Ai;function Bi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Ai==null){Ai=ot("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Ai.appendChild(document.createTextNode("x")),Ai.appendChild(ot("br"));Ai.appendChild(document.createTextNode("x"))}gt(a.measure,Ai);var x=Ai.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Rt(a.measure),x||1}function Gi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ot("span","xxxxxxxxxx"),x=ot("pre",[y],"CodeMirror-line-like");gt(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function co(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var de=a.display.gutterSpecs[le].className;x[de]=ie.offsetLeft+ie.clientLeft+z,b[de]=ie.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Bi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Gi(a.display)-3);return function(z){if(Rn(a.doc,z))return 0;var ie=0;if(z.widgets)for(var le=0;le<z.widgets.length;le++)z.widgets[le].height&&(ie+=z.widgets[le].height);return x?ie+(Math.ceil(z.text.length/b)||1)*y:ie+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var z=x(b);z!=b.height&&fn(b,z)})}function So(a,y,x,b){var z=a.display;if(!x&&qe(y).getAttribute("cm-not-content")=="true")return null;var ie,le,de=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-de.left,le=y.clientY-de.top}catch(bt){return null}var fe=ci(a,ie,le),be;if(b&&fe.xRel>0&&(be=vt(a.doc,fe.line).text).length==fe.ch){var at=me(be,be.length,a.options.tabSize)-be.length;fe=Oe(fe.line,Math.max(0,Math.round((ie-Qi(a.display).left)/Gi(a.display))-at))}return fe}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Si(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var z=a.display;if(b&&x<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)tr&&wn(a.doc,y)<z.viewTo&&ho(a);else if(x<=z.viewFrom)tr&&Pn(a.doc,x+b)>z.viewFrom?ho(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)ho(a);else if(y<=z.viewFrom){var ie=Ea(a,x,x+b,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=b):ho(a)}else if(x>=z.viewTo){var le=Ea(a,y,y,-1);le?(z.view=z.view.slice(0,le.index),z.viewTo=le.lineN):ho(a)}else{var de=Ea(a,y,y,-1),fe=Ea(a,x,x+b,1);de&&fe?(z.view=z.view.slice(0,de.index).concat(ni(a,de.lineN,fe.lineN)).concat(z.view.slice(fe.index)),z.viewTo+=b):ho(a)}var be=z.externalMeasured;be&&(x<be.lineN?be.lineN+=b:y<be.lineN+be.size&&(z.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ie=b.view[wo(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);ze(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 z=wo(a,y),ie,le=a.display.view;if(!tr||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var de=a.display.viewFrom,fe=0;fe<z;fe++)de+=le[fe].size;if(de!=y){if(b>0){if(z==le.length-1)return null;ie=de+le[z].size-y,z++}else ie=de-y;y+=ie,x+=ie}for(;wn(a.doc,x)!=x;){if(z==(b<0?0:le.length-1))return null;x+=b*le[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function Hs(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=ni(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=ni(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(ni(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var z=y[b];!z.hidden&&(!z.node||z.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},z=b.cursors=document.createDocumentFragment(),ie=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var de=x.sel.ranges[le];if(!(de.from().line>=a.display.viewTo||de.to().line<a.display.viewFrom)){var fe=de.empty();(fe||a.options.showCursorWhenSelecting)&&El(a,de.head,z),fe||js(a,de,ie)}}return b}function El(a,y,x){var b=Ci(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(ot("div","\xA0","CodeMirror-cursor"));if(z.style.left=b.left+"px",z.style.top=b.top+"px",z.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var ie=x.appendChild(ot("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=b.other.left+"px",ie.style.top=b.other.top+"px",ie.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,z=a.doc,ie=document.createDocumentFragment(),le=Qi(a.display),de=le.left,fe=Math.max(b.sizerWidth,Ji(a)-b.sizer.offsetLeft)-le.right,be=z.direction=="ltr";function at(Wn,Kn,sr,nr){Kn<0&&(Kn=0),Kn=Math.round(Kn),nr=Math.round(nr),ie.appendChild(ot("div",null,"CodeMirror-selected","position: absolute; left: "+Wn+`px;
top: `+Kn+"px; width: "+(sr==null?fe-Wn:sr)+`px;
height: `+(nr-Kn)+"px"))}function bt(Wn,Kn,sr){var nr=vt(z,Wn),wr=nr.text.length,_r,li;function Ur(qr,Ii){return Mo(a,Oe(Wn,qr),"div",nr,Ii)}function Mi(qr,Ii,di){var ii=Yr(a,nr,null,qr),ei=Ii=="ltr"==(di=="after")?"left":"right",Kr=di=="after"?ii.begin:ii.end-(/\s/.test(nr.text.charAt(ii.end-1))?2:1);return Ur(Kr,ei)[ei]}var Ei=Jt(nr,z.direction);return Ve(Ei,Kn||0,sr==null?wr:sr,function(qr,Ii,di,ii){var ei=di=="ltr",Kr=Ur(qr,ei?"left":"right"),Pi=Ur(Ii-1,ei?"right":"left"),Vo=Kn==null&&qr==0,bo=sr==null&&Ii==wr,pi=ii==0,eo=!Ei||ii==Ei.length-1;if(Pi.top-Kr.top<=3){var si=(be?Vo:bo)&&pi,bl=(be?bo:Vo)&&eo,oo=si?de:(ei?Kr:Pi).left,Do=bl?fe:(ei?Pi:Kr).right;at(oo,Kr.top,Do-oo,Kr.bottom)}else{var Ao,bi,Go,xl;ei?(Ao=be&&Vo&&pi?de:Kr.left,bi=be?fe:Mi(qr,di,"before"),Go=be?de:Mi(Ii,di,"after"),xl=be&&bo&&eo?fe:Pi.right):(Ao=be?Mi(qr,di,"before"):de,bi=!be&&Vo&&pi?fe:Kr.right,Go=!be&&bo&&eo?de:Pi.left,xl=be?Mi(Ii,di,"after"):fe),at(Ao,Kr.top,bi-Ao,Kr.bottom),Kr.bottom<Pi.top&&at(de,Kr.bottom,null,Pi.top),at(Go,Pi.top,xl-Go,Pi.bottom)}(!_r||Ia(Kr,_r)<0)&&(_r=Kr),Ia(Pi,_r)<0&&(_r=Pi),(!li||Ia(Kr,li)<0)&&(li=Kr),Ia(Pi,li)<0&&(li=Pi)}),{start:_r,end:li}}var Xt=y.from(),Zt=y.to();if(Xt.line==Zt.line)bt(Xt.line,Xt.ch,Zt.ch);else{var gn=vt(z,Xt.line),Bn=vt(z,Zt.line),Nn=dn(gn)==dn(Bn),jn=bt(Xt.line,Xt.ch,Nn?gn.text.length+1:null).end,Vn=bt(Zt.line,Nn?0:null,Zt.ch).start;Nn&&(jn.top<Vn.top-2?(at(jn.right,jn.top,null,jn.bottom),at(de,Vn.top,Vn.left,Vn.bottom)):at(jn.right,jn.top,Vn.left-jn.right,jn.bottom)),jn.bottom<Vn.top&&at(de,jn.bottom,null,Vn.top)}x.appendChild(ie)}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 Pl(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||(mt(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(),Ae&&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&&(mt(a,"blur",a,y),a.state.focused=!1,Qe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var z=y.view[b],ie=a.options.lineWrapping,le=void 0,de=0;if(!z.hidden){if(Ee&&Pe<8){var fe=z.node.offsetTop+z.node.offsetHeight;le=fe-x,x=fe}else{var be=z.node.getBoundingClientRect();le=be.bottom-be.top,!ie&&z.text.firstChild&&(de=z.text.firstChild.getBoundingClientRect().right-be.left-1)}var at=z.line.height-le;if((at>.005||at<-.005)&&(fn(z.line,le),Ol(z.line),z.rest))for(var bt=0;bt<z.rest.length;bt++)Ol(z.rest[bt]);if(de>a.display.sizerWidth){var Xt=Math.ceil(de/Gi(a.display));Xt>a.display.maxLineLength&&(a.display.maxLineLength=Xt,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Ol(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 Oa(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-Xr(a));var z=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ie=Ge(y,b),le=Ge(y,z);if(x&&x.ensure){var de=x.ensure.from.line,fe=x.ensure.to.line;de<ie?(ie=de,le=Ge(y,rr(vt(y,de))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=le&&(ie=Ge(y,rr(vt(y,fe))-a.wrapper.clientHeight),le=fe)}return{from:ie,to:Math.max(le,ie+1)}}function Ws(a,y){if(!ct(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!dt){var ie=ot("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-Xr(a.display))+`px;
height: `+(y.bottom-y.top+Di(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(z),a.display.lineSpace.removeChild(ie)}}}function Zs(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?Oe(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Oe(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,de=Ci(a,y),fe=!x||x==y?de:Ci(a,x);z={left:Math.min(de.left,fe.left),top:Math.min(de.top,fe.top)-b,right:Math.max(de.left,fe.left),bottom:Math.max(de.bottom,fe.bottom)+b};var be=Qa(a,z),at=a.doc.scrollTop,bt=a.doc.scrollLeft;if(be.scrollTop!=null&&(qo(a,be.scrollTop),Math.abs(a.doc.scrollTop-at)>1&&(le=!0)),be.scrollLeft!=null&&(Eo(a,be.scrollLeft),Math.abs(a.doc.scrollLeft-bt)>1&&(le=!0)),!le)break}return z}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=Bi(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=no(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var de=a.doc.height+Hi(x),fe=y.top<b,be=y.bottom>de-b;if(y.top<z)le.scrollTop=fe?0:y.top;else if(y.bottom>z+ie){var at=Math.min(y.top,(be?de:y.bottom)-ie);at!=z&&(le.scrollTop=at)}var bt=a.options.fixedGutter?0:x.gutters.offsetWidth,Xt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-bt,Zt=Ji(a)-x.gutters.offsetWidth,gn=y.right-y.left>Zt;return gn&&(y.right=y.left+Zt),y.left<10?le.scrollLeft=0:y.left<Xt?le.scrollLeft=Math.max(0,y.left+bt-(gn?0:10)):y.right>Zt+Xt-3&&(le.scrollLeft=y.right+(gn?0:10)-Zt),le}function Ja(a,y){y!=null&&(Da(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Lo(a){Da(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&Da(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function $s(a,y){Da(a),a.curOp.scrollToPos=y}function Da(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Dr(a,y.from),b=Dr(a,y.to);Dl(a,x,b,y.margin)}}function Dl(a,y,x,b){var z=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,z.scrollLeft,z.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||el(a,{top:y}),Al(a,y,!0),E&&el(a),na(a,100))}function Al(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+Hi(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+Di(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=ot("div",[ot("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=ot("div",[ot("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Ut(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Ut(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ee&&Pe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},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=Re&&!Se?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},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;Bl(a,y);for(var z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&Pa(a),Bl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Bl(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 kl={native:Io,null:ta};function Ml(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Qe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new kl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Ut(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Po(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vs},ao(a.curOp)}function Oo(a){var y=a.curOp;y&&vi(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Gs(x)})}function Gs(a){for(var y=a.ops,x=0;x<y.length;x++)Us(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var z=0;z<y.length;z++)Xs(y[z]);for(var ie=0;ie<y.length;ie++)Ys(y[ie]);for(var le=0;le<y.length;le++)Qs(y[le])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&br(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 Aa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Pa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Di(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Ji(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==Ze();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&&Al(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=Zs(y,Wt(b,a.scrollToPos.from),Wt(b,a.scrollToPos.to),a.scrollToPos.margin);Ws(y,z)}var ie=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(ie)for(var de=0;de<ie.length;++de)ie[de].lines.length||mt(ie[de],"hide");if(le)for(var fe=0;fe<le.length;++fe)le[fe].lines.length&&mt(le[fe],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&mt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function ki(a,y){if(a.curOp)return y();Po(a);try{return y()}finally{Oo(a)}}function oi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Po(a);try{return y.apply(a,arguments)}finally{Oo(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);Po(this);try{return a.apply(this,arguments)}finally{Oo(this)}}}function ai(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Po(y);try{return a.apply(this,arguments)}finally{Oo(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Me(Js,a))}function Js(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Qn(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var le=ie.styles,de=ie.text.length>a.options.maxHighlightLength?sn(y.mode,b.state):null,fe=Mn(a,ie,b,!0);de&&(b.state=de),ie.styles=fe.styles;var be=ie.styleClasses,at=fe.classes;at?ie.styleClasses=at:be&&(ie.styleClasses=null);for(var bt=!le||le.length!=ie.styles.length||be!=at&&(!be||!at||be.bgClass!=at.bgClass||be.textClass!=at.textClass),Xt=0;!bt&&Xt<le.length;++Xt)bt=le[Xt]!=ie.styles[Xt];bt&&z.push(b.line),ie.stateAfter=b.save(),b.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&Jn(a,ie.text,b),ie.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),z.length&&ki(a,function(){for(var ie=0;ie<z.length;ie++)fo(a,z[ie],"text")})}}var Aa=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Oa(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=Ji(a),this.force=x,this.dims=co(a),this.events=[]};Aa.prototype.signal=function(a,y){Ht(a,y)&&this.events.push(arguments)},Aa.prototype.finish=function(){for(var a=0;a<this.events.length;a++)mt.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=Di(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Di(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=Ze();if(!y||!Ue(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Ue(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==Ze())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ue(document.body,a.anchorNode)&&Ue(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&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var z=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<ie&&ie-x.viewFrom<20&&(ie=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(z,x.viewTo)),tr&&(ie=wn(a.doc,ie),le=Pn(a.doc,le));var de=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hs(a,ie,le),x.viewOffset=rr(vt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var fe=Sl(a);if(!de&&fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var be=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(be),Rt(x.cursorDiv),Rt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,de&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Tl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==Ji(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Hi(a.display)-no(a),x.top)}),y.visible=Oa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Oa(a.display,a.doc,x));if(!qa(a,y))break;Pa(a);var z=ea(a);Qo(a),No(a,z),nl(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Aa(a,y);if(qa(a,x)){Pa(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,z=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function de(gn){var Bn=gn.nextSibling;return Ae&&Re&&a.display.currentWheelTarget==gn?gn.style.display="none":gn.parentNode.removeChild(gn),Bn}for(var fe=b.view,be=b.viewFrom,at=0;at<fe.length;at++){var bt=fe[at];if(!bt.hidden)if(!bt.node||bt.node.parentNode!=ie){var Xt=pr(a,bt,be,x);ie.insertBefore(Xt,le)}else{for(;le!=bt.node;)le=de(le);var Zt=z&&y!=null&&y<=be&&bt.lineNumber;bt.changes&&(ze(bt.changes,"gutter")>-1&&(Zt=!1),lo(a,bt,be,x)),Zt&&(Rt(bt.lineNumber),bt.lineNumber.appendChild(document.createTextNode(Le(a.options,be)))),le=bt.node.nextSibling}be+=bt.size}for(;le;)le=de(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Di(a)+"px"}function Ll(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ie=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=ie),x[le].gutterBackground&&(x[le].gutterBackground.style.left=ie));var de=x[le].alignable;if(de)for(var fe=0;fe<de.length;fe++)de[fe].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=b+z+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Le(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(ot("div",[ot("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,le=z.offsetWidth-ie;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ie,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,z=0;z<a.length;z++){var ie=a[z],le=null;if(typeof ie!="string"&&(le=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ie,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;Rt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],ie=z.className,le=z.style,de=y.appendChild(ot("div",null,"CodeMirror-gutter "+ie));le&&(de.style.cssText=le),ie=="CodeMirror-linenumbers"&&(a.lineGutter=de,de.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),Si(a),Ll(a)}function ru(a,y,x,b){var z=this;this.input=x,z.scrollbarFiller=ot("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=ot("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=It("div",null,"CodeMirror-code"),z.selectionDiv=ot("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=ot("div",null,"CodeMirror-cursors"),z.measure=ot("div",null,"CodeMirror-measure"),z.lineMeasure=ot("div",null,"CodeMirror-measure"),z.lineSpace=It("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=It("div",[z.lineSpace],"CodeMirror-lines");z.mover=ot("div",[ie],null,"position: relative"),z.sizer=ot("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=ot("div",null,null,"position: absolute; height: "+Mt+"px; width: 1px;"),z.gutters=ot("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=ot("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=ot("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Ee&&Pe<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Ae&&!(E&&Ne)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=rl(b.gutters,b.lineNumbers),Rl(z),x.init(z)}var Ba=0,Ni=null;Ee?Ni=-.53:E?Ni=15:we?Ni=-.7:tt&&(Ni=-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*=Ni,y.y*=Ni,y}function zl(a,y){var x=Fl(y),b=x.x,z=x.y,ie=a.display,le=ie.scroller,de=le.scrollWidth>le.clientWidth,fe=le.scrollHeight>le.clientHeight;if(b&&de||z&&fe){if(z&&Re&&Ae){e:for(var be=y.target,at=ie.view;be!=le;be=be.parentNode)for(var bt=0;bt<at.length;bt++)if(at[bt].node==be){a.display.currentWheelTarget=be;break e}}if(b&&!E&&!he&&Ni!=null){z&&fe&&qo(a,Math.max(0,le.scrollTop+z*Ni)),Eo(a,Math.max(0,le.scrollLeft+b*Ni)),(!z||z&&fe)&&it(y),ie.wheelStartX=null;return}if(z&&Ni!=null){var Xt=z*Ni,Zt=a.doc.scrollTop,gn=Zt+ie.wrapper.clientHeight;Xt<0?Zt=Math.max(0,Zt+Xt-50):gn=Math.min(a.doc.height,gn+Xt+50),el(a,{top:Zt,bottom:gn})}Ba<20&&(ie.wheelStartX==null?(ie.wheelStartX=le.scrollLeft,ie.wheelStartY=le.scrollTop,ie.wheelDX=b,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var Bn=le.scrollLeft-ie.wheelStartX,Nn=le.scrollTop-ie.wheelStartY,jn=Nn&&ie.wheelDY&&Nn/ie.wheelDY||Bn&&ie.wheelDX&&Bn/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,jn&&(Ni=(Ni*Ba+jn)/(Ba+1),++Ba)}},200)):(ie.wheelDX+=b,ie.wheelDY+=z))}}var Ri=function(a,y){this.ranges=a,this.primIndex=y};Ri.prototype.primary=function(){return this.ranges[this.primIndex]},Ri.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(!Bt(x.anchor,b.anchor)||!Bt(x.head,b.head))return!1}return!0},Ri.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Fr(on(this.ranges[y].anchor),on(this.ranges[y].head));return new Ri(a,this.primIndex)},Ri.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ri.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Ke(y,b.from())>=0&&Ke(a,b.to())<=0)return x}return-1};var Fr=function(a,y){this.anchor=a,this.head=y};Fr.prototype.from=function(){return Sn(this.anchor,this.head)},Fr.prototype.to=function(){return mn(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ui(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(Xt,Zt){return Ke(Xt.from(),Zt.from())}),x=ze(y,z);for(var ie=1;ie<y.length;ie++){var le=y[ie],de=y[ie-1],fe=Ke(de.to(),le.from());if(b&&!le.empty()?fe>0:fe>=0){var be=Sn(de.from(),le.from()),at=mn(de.to(),le.to()),bt=de.empty()?le.from()==le.head:de.from()==de.head;ie<=x&&--x,y.splice(--ie,2,new Fr(bt?at:be,bt?be:at))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?Oe(a.from.line+a.text.length-1,je(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Hl(a,y){if(Ke(a,y.from)<0)return a;if(Ke(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),Oe(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var z=a.sel.ranges[b];x.push(new Fr(Hl(z.anchor,y),Hl(z.head,y)))}return Ui(a.cm,x,a.sel.primIndex)}function jl(a,y,x){return a.line==y.line?Oe(x.line,a.ch-y.ch+x.ch):Oe(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],z=Oe(a.first,0),ie=z,le=0;le<y.length;le++){var de=y[le],fe=jl(de.from,z,ie),be=jl(mo(de),z,ie);if(z=de.to,ie=be,x=="around"){var at=a.sel.ranges[le],bt=Ke(at.head,at.anchor)<0;b[le]=new Fr(bt?be:fe,bt?fe:be)}else b[le]=new Fr(fe,fe)}return new Ri(b,a.sel.primIndex)}function ol(a){a.doc.mode=Qt(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&&Si(a)}function Wl(a,y){return y.from.ch==0&&y.to.ch==0&&je(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function z(Vn){return x?x[Vn]:null}function ie(Vn,Wn,Kn){Or(Vn,Wn,Kn,b),Vr(Vn,"change",Vn,y)}function le(Vn,Wn){for(var Kn=[],sr=Vn;sr<Wn;++sr)Kn.push(new Ar(be[sr],z(sr),b));return Kn}var de=y.from,fe=y.to,be=y.text,at=vt(a,de.line),bt=vt(a,fe.line),Xt=je(be),Zt=z(be.length-1),gn=fe.line-de.line;if(y.full)a.insert(0,le(0,be.length)),a.remove(be.length,a.size-be.length);else if(Wl(a,y)){var Bn=le(0,be.length-1);ie(bt,bt.text,Zt),gn&&a.remove(de.line,gn),Bn.length&&a.insert(de.line,Bn)}else if(at==bt)if(be.length==1)ie(at,at.text.slice(0,de.ch)+Xt+at.text.slice(fe.ch),Zt);else{var Nn=le(1,be.length-1);Nn.push(new Ar(Xt+at.text.slice(fe.ch),Zt,b)),ie(at,at.text.slice(0,de.ch)+be[0],z(0)),a.insert(de.line+1,Nn)}else if(be.length==1)ie(at,at.text.slice(0,de.ch)+be[0]+bt.text.slice(fe.ch),z(0)),a.remove(de.line+1,gn);else{ie(at,at.text.slice(0,de.ch)+be[0],z(0)),ie(bt,Xt+bt.text.slice(fe.ch),Zt);var jn=le(1,be.length-1);gn>1&&a.remove(de.line+1,gn-1),a.insert(de.line+1,jn)}Vr(a,"change",a,y)}function vo(a,y,x){function b(z,ie,le){if(z.linked)for(var de=0;de<z.linked.length;++de){var fe=z.linked[de];if(fe.doc!=ie){var be=le&&fe.sharedHist;x&&!be||(y(fe.doc,be),b(fe.doc,z,be))}}}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||br(a),a.options.mode=y.modeOption,Si(a)}function _l(a){(a.doc.direction=="rtl"?ue:Qe)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){ki(a,function(){_l(a),Si(a)})}function ka(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:on(y.from),to:mo(y),text:Gt(a,y.from,y.to)};return Gl(a,x,y.from.line,y.to.line+1),vo(a,function(b){return Gl(b,x,y.from.line,y.to.line+1)},!0),x}function $l(a){for(;a.length;){var y=je(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return $l(a.done),je(a.done);if(a.done.length&&!je(a.done).ranges)return je(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),je(a.done)}function Vl(a,y,x,b){var z=a.history;z.undone.length=0;var ie=+new Date,le,de;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(z,z.lastOp==b)))de=je(le.changes),Ke(y.from,y.to)==0&&Ke(y.from,de.to)==0?de.to=mo(y):le.changes.push(ll(a,y));else{var fe=je(z.done);for((!fe||!fe.ranges)&&Ma(a.sel,z.done),le={changes:[ll(a,y)],generation:z.generation},z.done.push(le);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,de||mt(a,"historyAdded")}function su(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var z=a.history,ie=b&&b.origin;x==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||su(a,ie,je(z.done),y))?z.done[z.done.length-1]=y:Ma(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=x,b&&b.clearRedo!==!1&&$l(z.undone)}function Ma(a,y){var x=je(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=le.markedSpans),++ie})}function cu(a){if(!a)return null;for(var y,x=0;x<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=[],z=0;z<y.text.length;++z)b.push(cu(x[z]));return b}function Ul(a,y){var x=du(a,y),b=Sr(a,y);if(!x)return b;if(!b)return x;for(var z=0;z<x.length;++z){var ie=x[z],le=b[z];if(ie&&le)e:for(var de=0;de<le.length;++de){for(var fe=le[de],be=0;be<ie.length;++be)if(ie[be].marker==fe.marker)continue e;ie.push(fe)}else le&&(x[z]=le)}return x}function Ro(a,y,x){for(var b=[],z=0;z<a.length;++z){var ie=a[z];if(ie.ranges){b.push(x?Ri.prototype.deepCopy.call(ie):ie);continue}var le=ie.changes,de=[];b.push({changes:de});for(var fe=0;fe<le.length;++fe){var be=le[fe],at=void 0;if(de.push({from:be.from,to:be.to,text:be.text}),y)for(var bt in be)(at=bt.match(/^spans_(\d+)$/))&&ze(y,Number(at[1]))>-1&&(je(de)[bt]=be[bt],delete be[bt])}}return b}function sl(a,y,x,b){if(b){var z=a.anchor;if(x){var ie=Ke(y,z)<0;ie!=Ke(x,z)<0?(z=y,y=x):ie!=Ke(y,x)<0&&(y=x)}return new Fr(z,y)}else return new Fr(x||y,y)}function Ta(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ri([sl(a.sel.primary(),y,x,z)],0),b)}function Kl(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)b[ie]=sl(a.sel.ranges[ie],y[ie],null,z);var le=Ui(a.cm,b,a.sel.primIndex);hi(a,le,x)}function ul(a,y,x,b){var z=a.sel.ranges.slice(0);z[y]=x,hi(a,Ui(a.cm,z,a.sel.primIndex),b)}function Xl(a,y,x,b){hi(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(z){this.ranges=[];for(var ie=0;ie<z.length;ie++)this.ranges[ie]=new Fr(Wt(a,z[ie].anchor),Wt(a,z[ie].head))},origin:x&&x.origin};return mt(a,"beforeSelectionChange",a,b),a.cm&&mt(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ui(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,z=je(b);z&&z.ranges?(b[b.length-1]=y,La(a,y,x)):hi(a,y,x)}function hi(a,y,x){La(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function La(a,y,x){(Ht(a,"beforeSelectionChange")||a.cm&&Ht(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Ke(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,qt(a.cm)),Vr(a,"cursorActivity",a))}function Jl(a){Ql(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var z,ie=0;ie<y.ranges.length;ie++){var le=y.ranges[ie],de=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],fe=Na(a,le.anchor,de&&de.anchor,x,b),be=Na(a,le.head,de&&de.head,x,b);(z||fe!=le.anchor||be!=le.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new Fr(fe,be))}return z?Ui(a.cm,z,y.primIndex):y}function Fo(a,y,x,b,z){var ie=vt(a,y.line);if(ie.markedSpans)for(var le=0;le<ie.markedSpans.length;++le){var de=ie.markedSpans[le],fe=de.marker,be="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,at="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((de.from==null||(be?de.from<=y.ch:de.from<y.ch))&&(de.to==null||(at?de.to>=y.ch:de.to>y.ch))){if(z&&(mt(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!fe.atomic)continue;if(x){var bt=fe.find(b<0?1:-1),Xt=void 0;if((b<0?at:be)&&(bt=es(a,bt,-b,bt&&bt.line==y.line?ie:null)),bt&&bt.line==y.line&&(Xt=Ke(bt,x))&&(b<0?Xt<0:Xt>0))return Fo(a,bt,y,b,z)}var Zt=fe.find(b<0?-1:1);return(b<0?be:at)&&(Zt=es(a,Zt,b,Zt.line==y.line?ie:null)),Zt?Fo(a,Zt,y,b,z):null}}return y}function Na(a,y,x,b,z){var ie=b||1,le=Fo(a,y,x,ie,z)||!z&&Fo(a,y,x,ie,!0)||Fo(a,y,x,-ie,z)||!z&&Fo(a,y,x,-ie,!0);return le||(a.cantEdit=!0,Oe(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Wt(a,Oe(y.line-1)):null:x>0&&y.ch==(b||vt(a,y.line)).text.length?y.line<a.first+a.size-1?Oe(y.line+1,0):null:new Oe(y.line,y.ch+x)}function ts(a){a.setSelection(Oe(a.firstLine(),0),Oe(a.lastLine()),ve)}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(z,ie,le,de){z&&(b.from=Wt(a,z)),ie&&(b.to=Wt(a,ie)),le&&(b.text=le),de!==void 0&&(b.origin=de)}),mt(a,"beforeChange",a,b),a.cm&&mt(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 oi(a.cm,zo)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Ht(a,"beforeChange")||a.cm&&Ht(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=er&&!x&&Wr(a,y.from,y.to);if(b)for(var z=b.length-1;z>=0;--z)rs(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&Ke(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,Sr(a,y));var b=[];vo(a,function(z,ie){!ie&&ze(b,z.history)==-1&&(ls(z.history,y),b.push(z.history)),oa(z,y,null,Sr(z,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,ie,le=a.sel,de=y=="undo"?z.done:z.undone,fe=y=="undo"?z.undone:z.done,be=0;be<de.length&&(ie=de[be],!(x?ie.ranges&&!ie.equals(a.sel):!ie.ranges));be++);if(be!=de.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=de.pop(),ie.ranges){if(Ma(ie,fe),x&&!ie.equals(a.sel)){hi(a,ie,{clearRedo:!1});return}le=ie}else if(b){de.push(ie);return}else break;var at=[];Ma(le,fe),fe.push({changes:at,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var bt=Ht(a,"beforeChange")||a.cm&&Ht(a.cm,"beforeChange"),Xt=function(Bn){var Nn=ie.changes[Bn];if(Nn.origin=y,bt&&!ns(a,Nn,!1))return de.length=0,{};at.push(ll(a,Nn));var jn=Bn?il(a,Nn):je(de);oa(a,Nn,jn,Ul(a,Nn)),!Bn&&a.cm&&a.cm.scrollIntoView({from:Nn.from,to:mo(Nn)});var Vn=[];vo(a,function(Wn,Kn){!Kn&&ze(Vn,Wn.history)==-1&&(ls(Wn.history,Nn),Vn.push(Wn.history)),oa(Wn,Nn,null,Ul(Wn,Nn))})},Zt=ie.changes.length-1;Zt>=0;--Zt){var gn=Xt(Zt);if(gn)return gn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri(Nt(a.sel.ranges,function(z){return new Fr(Oe(z.anchor.line+y,z.anchor.ch),Oe(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Si(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 oi(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 z=y.text.length-1-(a.first-y.from.line);is(a,z),y={from:Oe(a.first,0),to:Oe(y.to.line+z,y.to.ch),text:[je(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:Oe(ie,vt(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Gt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),La(a,x,ve),a.cantEdit&&Na(a,Oe(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,z=a.display,ie=y.from,le=y.to,de=!1,fe=ie.line;a.options.lineWrapping||(fe=He(dn(vt(b,ie.line))),b.iter(fe,le.line+1,function(Zt){if(Zt==z.maxLine)return de=!0,!0})),b.sel.contains(y.from,y.to)>-1&&qt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(fe,ie.line+y.text.length,function(Zt){var gn=Pr(Zt);gn>z.maxLineLength&&(z.maxLine=Zt,z.maxLineLength=gn,z.maxLineChanged=!0,de=!1)}),de&&(a.curOp.updateMaxLine=!0)),ir(b,ie.line),na(a,400);var be=y.text.length-(le.line-ie.line)-1;y.full?Si(a):ie.line==le.line&&y.text.length==1&&!Wl(a.doc,y)?fo(a,ie.line,"text"):Si(a,ie.line,le.line+1,be);var at=Ht(a,"changes"),bt=Ht(a,"change");if(bt||at){var Xt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};bt&&Vr(a,"change",a,Xt),at&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Xt)}a.display.selForContextMenu=null}function Ho(a,y,x,b,z){var ie;b||(b=x),Ke(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),zo(a,{from:x,to:b,text:y,origin:z})}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 z=0;z<a.length;++z){var ie=a[z],le=!0;if(ie.ranges){ie.copied||(ie=a[z]=ie.deepCopy(),ie.copied=!0);for(var de=0;de<ie.ranges.length;de++)os(ie.ranges[de].anchor,y,x,b),os(ie.ranges[de].head,y,x,b);continue}for(var fe=0;fe<ie.changes.length;++fe){var be=ie.changes[fe];if(x<be.from.line)be.from=Oe(be.from.line+b,be.from.ch),be.to=Oe(be.to.line+b,be.to.ch);else if(y<=be.to.line){le=!1;break}}le||(a.splice(0,z+1),z=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,z=y.text.length-(b-x)-1;as(a.done,x,b,z),as(a.undone,x,b,z)}function aa(a,y,x,b){var z=y,ie=y;return typeof y=="number"?ie=vt(a,en(a,y)):z=He(y),z==null?null:(b(ie,z)&&a.cm&&fo(a.cm,z,x),ie)}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 z=this.lines[x];this.height-=z.height,kr(z),Vr(z,"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 z=a[b];y+=z.chunkSize(),x+=z.height,z.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],z=b.chunkSize();if(a<z){var ie=Math.min(y,z-a),le=b.height;if(b.removeInner(a,ie),this.height-=le-b.height,z==ie&&(this.children.splice(x--,1),b.parent=null),(y-=ie)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var de=[];this.collapse(de),this.children=[new la(de)],this.children[0].parent=this}},collapse:function(a){for(var y=0;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 z=this.children[b],ie=z.chunkSize();if(a<=ie){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var le=z.lines.length%25+25,de=le;de<z.lines.length;){var fe=new la(z.lines.slice(de,de+=25));z.height-=fe.height,this.children.splice(++b,0,fe),fe.parent=this}z.lines=z.lines.slice(0,le),this.maybeSpill()}break}a-=ie}},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 z=ze(a.parent.children,a);a.parent.children.splice(z+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 z=this.children[b],ie=z.chunkSize();if(a<ie){var le=Math.min(y,ie-a);if(z.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=ie}}};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=He(x);if(!(b==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(x.widgets=null);var ie=gi(this);fn(x,Math.max(0,x.height-ie)),a&&(ki(a,function(){ss(a,x,-ie),fo(a,b,"widget")}),Vr(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 z=gi(this)-y;z&&(Rn(this.doc,b)||fn(b,b.height+z),x&&ki(x,function(){x.curOp.forceUpdate=!0,ss(x,b,z),Vr(x,"lineWidgetChanged",x,a,He(b))}))},Fe(ua);function ss(a,y,x){rr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Ja(a,x)}function pu(a,y,x,b){var z=new ua(a,x,b),ie=a.cm;return ie&&z.noHScroll&&(ie.display.alignWidgets=!0),aa(a,y,"widget",function(le){var de=le.widgets||(le.widgets=[]);if(z.insertAt==null?de.push(z):de.splice(Math.min(de.length-1,Math.max(0,z.insertAt)),0,z),z.line=le,ie&&!Rn(a,le)){var fe=rr(le)<a.scrollTop;fn(le,le.height+gi(z)),fe&&Ja(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Vr(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:He(y)),z}var us=0,go=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};go.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Po(a),Ht(this,"clear")){var x=this.find();x&&Vr(this,"clear",x.from,x.to)}for(var b=null,z=null,ie=0;ie<this.lines.length;++ie){var le=this.lines[ie],de=vr(le.markedSpans,this);a&&!this.collapsed?fo(a,He(le),"text"):a&&(de.to!=null&&(z=He(le)),de.from!=null&&(b=He(le))),le.markedSpans=Cr(le.markedSpans,de),de.from==null&&this.collapsed&&!Rn(this.doc,le)&&a&&fn(le,Bi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var fe=0;fe<this.lines.length;++fe){var be=dn(this.lines[fe]),at=Pr(be);at>a.display.maxLineLength&&(a.display.maxLine=be,a.display.maxLineLength=at,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Si(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Vr(a,"markerCleared",a,this,b,z),y&&Oo(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z<this.lines.length;++z){var ie=this.lines[z],le=vr(ie.markedSpans,this);if(le.from!=null&&(x=Oe(y?ie:He(ie),le.from),a==-1))return x;if(le.to!=null&&(b=Oe(y?ie:He(ie),le.to),a==1))return b}return x&&{from:x,to:b}},go.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||ki(b,function(){var z=y.line,ie=He(y.line),le=qi(b,ie);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Rn(x.doc,z)&&x.height!=null){var de=x.height;x.height=null;var fe=gi(x)-de;fe&&fn(z,z.height+fe)}Vr(b,"markerChanged",b,a)})},go.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||ze(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(ze(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Fe(go);function jo(a,y,x,b,z){if(b&&b.shared)return mu(a,y,x,b,z);if(a.cm&&!a.cm.curOp)return oi(a.cm,jo)(a,y,x,b,z);var ie=new go(a,z),le=Ke(y,x);if(b&&ft(b,ie,!1),le>0||le==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=It("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Dn(a,y.line,y,x,ie)||y.line!=x.line&&Dn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}ie.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var de=y.line,fe=a.cm,be;if(a.iter(de,x.line+1,function(bt){fe&&ie.collapsed&&!fe.options.lineWrapping&&dn(bt)==fe.display.maxLine&&(be=!0),ie.collapsed&&de!=y.line&&fn(bt,0),or(bt,new cr(ie,de==y.line?y.ch:null,de==x.line?x.ch:null)),++de}),ie.collapsed&&a.iter(y.line,x.line+1,function(bt){Rn(a,bt)&&fn(bt,0)}),ie.clearOnEnter&&Ut(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(gr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++us,ie.atomic=!0),fe){if(be&&(fe.curOp.updateMaxLine=!0),ie.collapsed)Si(fe,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var at=y.line;at<=x.line;at++)fo(fe,at,"text");ie.atomic&&Jl(fe.doc),Vr(fe,"markerAdded",fe,ie)}return ie}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();Vr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Fe(ca);function mu(a,y,x,b,z){b=ft(b),b.shared=!1;var ie=[jo(a,y,x,b,z)],le=ie[0],de=b.widgetNode;return vo(a,function(fe){de&&(b.widgetNode=de.cloneNode(!0)),ie.push(jo(fe,Wt(fe,y),Wt(fe,x),b,z));for(var be=0;be<fe.linked.length;++be)if(fe.linked[be].isParent)return;le=je(ie)}),new ca(ie,le)}function cs(a){return a.findMarks(Oe(a.first,0),a.clipPos(Oe(a.lastLine())),function(y){return y.parent})}function vu(a,y){for(var x=0;x<y.length;x++){var b=y[x],z=b.find(),ie=a.clipPos(z.from),le=a.clipPos(z.to);if(Ke(ie,le)){var de=jo(a,ie,le,b.primary,b.primary.type);b.markers.push(de),de.parent=b}}}function gu(a){for(var y=function(b){var z=a[b],ie=[z.primary.doc];vo(z.primary.doc,function(fe){return ie.push(fe)});for(var le=0;le<z.markers.length;le++){var de=z.markers[le];ze(ie,de.doc)==-1&&(de.parent=null,z.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,wi=function(a,y,x,b,z){if(!(this instanceof wi))return new wi(a,y,x,b,z);x==null&&(x=0),sa.call(this,[new la([new Ar("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ie=Oe(x,0);this.sel=po(ie),this.history=new ka(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:ie,to:ie,text:a}),hi(this,po(ie),ve)};wi.prototype=te(sa.prototype,{constructor:wi,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=cn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:ai(function(a){var y=Oe(this.first,0),x=this.first+this.size-1;zo(this,{from:y,to:Oe(x,vt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Jo(this.cm,0,0),hi(this,po(y),ve)}),replaceRange:function(a,y,x,b){y=Wt(this,y),x=x?Wt(this,x):y,Ho(this,a,y,x,b)},getRange:function(a,y,x){var b=Gt(this,Wt(this,a),Wt(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(ye(this,a))return vt(this,a)},getLineNumber:function(a){return He(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=vt(this,a)),dn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Wt(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:ai(function(a,y,x){Xl(this,Wt(this,typeof a=="number"?Oe(a,y||0):a),null,x)}),setSelection:ai(function(a,y,x){Xl(this,Wt(this,a),Wt(this,y||a),x)}),extendSelection:ai(function(a,y,x){Ta(this,Wt(this,a),y&&Wt(this,y),x)}),extendSelections:ai(function(a,y){Kl(this,yn(this,a),y)}),extendSelectionsBy:ai(function(a,y){var x=Nt(this.sel.ranges,a);Kl(this,yn(this,x),y)}),setSelections:ai(function(a,y,x){if(a.length){for(var b=[],z=0;z<a.length;z++)b[z]=new Fr(Wt(this,a[z].anchor),Wt(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),hi(this,Ui(this.cm,b,y),x)}}),addSelection:ai(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Fr(Wt(this,a),Wt(this,y||a))),hi(this,Ui(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var z=Gt(this,y[b].from(),y[b].to());x=x?x.concat(z):z}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 z=Gt(this,x[b].from(),x[b].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[b]=z}return y},replaceSelection:function(a,y,x){for(var b=[],z=0;z<this.sel.ranges.length;z++)b[z]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:ai(function(a,y,x){for(var b=[],z=this.sel,ie=0;ie<z.ranges.length;ie++){var le=z.ranges[ie];b[ie]={from:le.from(),to:le.to(),text:this.splitLines(a[ie]),origin:x}}for(var de=y&&y!="end"&&ou(this,b,y),fe=b.length-1;fe>=0;fe--)zo(this,b[fe]);de?Yl(this,de):this.cm&&Lo(this.cm)}),undo:ai(function(){Ra(this,"undo")}),redo:ai(function(){Ra(this,"redo")}),undoSelection:ai(function(){Ra(this,"undo",!0)}),redoSelection:ai(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 z=0;z<a.undone.length;z++)a.undone[z].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new ka(this.history.maxGeneration),vo(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 ka(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(a.undone.slice(0),null,!0)},setGutterMarker:ai(function(a,y,x){return aa(this,a,"gutter",function(b){var z=b.gutterMarkers||(b.gutterMarkers={});return z[y]=x,!x&&ne(z)&&(b.gutterMarkers=null),!0})}),clearGutter:ai(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(!ye(this,a)||(y=a,a=vt(this,a),!a))return null}else if(y=He(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:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[z])b[z]=x;else{if(pt(x).test(b[z]))return!1;b[z]+=" "+x}return!0})}),removeLineClass:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ie=b[z];if(ie)if(x==null)b[z]=null;else{var le=ie.match(pt(x));if(!le)return!1;var de=le.index+le[0].length;b[z]=ie.slice(0,le.index)+(!le.index||de==ie.length?"":" ")+ie.slice(de)||null}else return!1;return!0})}),addLineWidget:ai(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return jo(this,Wt(this,a),Wt(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=Wt(this,a),jo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Wt(this,a);var y=[],x=vt(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var z=x[b];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Wt(this,a),y=Wt(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var de=0;de<le.length;de++){var fe=le[de];!(fe.to!=null&&z==a.line&&a.ch>=fe.to||fe.from==null&&z!=a.line||fe.from!=null&&z==y.line&&fe.from>=y.ch)&&(!x||x(fe.marker))&&b.push(fe.marker.parent||fe.marker)}++z}),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(z){var ie=z.text.length+b;if(ie>a)return y=a,!0;a-=ie,++x}),Wt(this,Oe(x,y))},indexFromPos:function(a){a=Wt(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 wi(cn(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 wi(cn(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}],vu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Gr&&(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),gu(cs(this));break}}if(a.history==this.history){var b=[a.id];vo(a,function(z){return b.push(z.id)},!0),a.history=new ka(null),a.history.done=Ro(this.history.done,b),a.history.undone=Ro(this.history.undone,b)}},iterLinkedDocs:function(a){vo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):nn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ai(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))})}),wi.prototype.eachLine=wi.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(ct(y,a)||ui(y.display,a))){it(a),Ee&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var z=b.length,ie=Array(z),le=0,de=function(){++le==z&&oi(y,function(){x=Wt(y.doc,x);var Zt={from:x,to:x,text:y.doc.splitLines(ie.filter(function(gn){return gn!=null}).join(y.doc.lineSeparator())),origin:"paste"};zo(y.doc,Zt),Yl(y.doc,po(Wt(y.doc,x),Wt(y.doc,mo(Zt))))})()},fe=function(Zt,gn){if(y.options.allowDropFileTypes&&ze(y.options.allowDropFileTypes,Zt.type)==-1){de();return}var Bn=new FileReader;Bn.onerror=function(){return de()},Bn.onload=function(){var Nn=Bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Nn)){de();return}ie[gn]=Nn,de()},Bn.readAsText(Zt)},be=0;be<b.length;be++)fe(b[be],be);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 at=a.dataTransfer.getData("Text");if(at){var bt;if(y.state.draggingText&&!y.state.draggingText.copy&&(bt=y.listSelections()),La(y.doc,po(x,x)),bt)for(var Xt=0;Xt<bt.length;++Xt)Ho(y.doc,"",bt[Xt].anchor,bt[Xt].head,"drag");y.replaceSelection(at,"around","paste"),y.display.input.focus()}}catch(Zt){}}}}function xu(a,y){if(Ee&&(!a.state.draggingText||+new Date-ds<100)){De(y);return}if(!(ct(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!tt)){var x=ot("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=So(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=ot("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),gt(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 z=y[b].CodeMirror;z&&x.push(z)}x.length&&x[0].operation(function(){for(var ie=0;ie<x.length;ie++)a(x[ie])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;Ut(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Ut(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 io={};io.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"},io.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"},io.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"},io.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"]},io.default=Re?io.macDefault:io.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,ie,le=0;le<y.length-1;le++){var de=y[le];if(/^(cmd|meta|m)$/i.test(de))ie=!0;else if(/^a(lt)?$/i.test(de))x=!0;else if(/^(c|ctrl|control)$/i.test(de))b=!0;else if(/^s(hift)?$/i.test(de))z=!0;else throw new Error("Unrecognized modifier name: "+de)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ie&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Pu(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 z=Nt(x.split(" "),Iu),ie=0;ie<z.length;ie++){var le=void 0,de=void 0;ie==z.length-1?(de=z.join(" "),le=b):(de=z.slice(0,ie+1).join(" "),le="...");var fe=y[de];if(!fe)y[de]=le;else if(fe!=le)throw new Error("Inconsistent bindings for "+de)}delete a[x]}for(var be in y)a[be]=y[be];return a}function Wo(a,y,x,b){y=za(y);var z=y.call?y.call(a,b):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&x(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Wo(a,y.fallthrough,x,b);for(var ie=0;ie<y.fallthrough.length;ie++){var le=Wo(a,y.fallthrough[ie],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 vs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(wt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(wt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gs(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),vs(x,a,y))}function za(a){return typeof a=="string"?io[a]:a}function Zo(a,y){for(var x=a.doc.sel.ranges,b=[],z=0;z<x.length;z++){for(var ie=y(x[z]);b.length&&Ke(ie.from,je(b).to)<=0;){var le=b.pop();if(Ke(le.from,ie.from)<0){ie.from=le.from;break}}b.push(ie)}ki(a,function(){for(var de=b.length-1;de>=0;de--)Ho(a.doc,"",b[de].from,b[de].to,"+delete");Lo(a)})}function cl(a,y,x){var b=ut(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new Oe(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=Jt(x,y.doc.direction);if(ie){var le=z<0?je(ie):ie[0],de=z<0==(le.level==1),fe=de?"after":"before",be;if(le.level>0||y.doc.direction=="rtl"){var at=uo(y,x);be=z<0?x.text.length-1:0;var bt=ji(y,at,be).top;be=Ie(function(Xt){return ji(y,at,Xt).top==bt},z<0==(le.level==1)?le.from:le.to-1,be),fe=="before"&&(be=cl(x,be,1))}else be=z<0?le.to:le.from;return new Oe(b,be,fe)}}return new Oe(b,z<0?x.text.length:0,z<0?"before":"after")}function Ou(a,y,x,b){var z=Jt(y,a.doc.direction);if(!z)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ie=Dt(z,x.ch,x.sticky),le=z[ie];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var de=function(jn,Vn){return cl(y,jn instanceof Oe?jn.ch:jn,Vn)},fe,be=function(jn){return a.options.lineWrapping?(fe=fe||uo(a,y),Yr(a,y,fe,jn)):{begin:0,end:y.text.length}},at=be(x.sticky=="before"?de(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var bt=le.level==1==b<0,Xt=de(x,bt?1:-1);if(Xt!=null&&(bt?Xt<=le.to&&Xt<=at.end:Xt>=le.from&&Xt>=at.begin)){var Zt=bt?"before":"after";return new Oe(x.line,Xt,Zt)}}var gn=function(jn,Vn,Wn){for(var Kn=function(_r,li){return li?new Oe(x.line,de(_r,1),"before"):new Oe(x.line,_r,"after")};jn>=0&&jn<z.length;jn+=Vn){var sr=z[jn],nr=Vn>0==(sr.level!=1),wr=nr?Wn.begin:de(Wn.end,-1);if(sr.from<=wr&&wr<sr.to||(wr=nr?sr.from:de(sr.to,-1),Wn.begin<=wr&&wr<Wn.end))return Kn(wr,nr)}},Bn=gn(ie+b,b,at);if(Bn)return Bn;var Nn=b>0?at.end:de(at.begin,-1);return Nn!=null&&!(b>0&&Nn==y.text.length)&&(Bn=gn(b>0?0:z.length-1,b,be(Nn)),Bn)?Bn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ve)},killLine:function(a){return Zo(a,function(y){if(y.empty()){var x=vt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Oe(y.head.line+1,0)}:{from:y.head,to:Oe(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Zo(a,function(y){return{from:Oe(y.from().line,0),to:Wt(a.doc,Oe(y.to().line+1,0))}})},delLineLeft:function(a){return Zo(a,function(y){return{from:Oe(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(Oe(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Oe(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 Du(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")},_e)},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")},_e)},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},_e)},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,z=0;z<x.length;z++){var ie=x[z].from(),le=me(a.getLine(ie.line),ie.ch,b);y.push(Vt(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ki(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var z=y[b].head,ie=vt(a.doc,z.line).text;if(ie){if(z.ch==ie.length&&(z=new Oe(z.line,z.ch-1)),z.ch>0)z=new Oe(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),Oe(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var le=vt(a.doc,z.line-1).text;le&&(z=new Oe(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Oe(z.line-1,le.length-1),z,"+transpose"))}}x.push(new Fr(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return ki(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=vt(a.doc,y),b=dn(x);return b!=x&&(y=He(b)),fl(!0,a,b,y,1)}function Du(a,y){var x=vt(a.doc,y),b=Hn(x);return b!=x&&(y=He(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=vt(a.doc,x.line),z=Jt(b,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=ie&&y.ch;return Oe(x.line,le?0:ie,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,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=xt}finally{a.display.shift=b,a.state.suppressEdits=!1}return z}function Au(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var z=Wo(y,a.state.keyMaps[b],x,a);if(z)return z}return a.options.extraKeys&&Wo(y,a.options.extraKeys,x,a)||Wo(y,a.options.keyMap,x,a)}var Bu=new ce;function pa(a,y,x,b){var z=a.state.keySeq;if(z){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Bu.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,z+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var z=Au(a,y,b);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Vr(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(it(x),Xa(a)),!!z}function Cs(a,y){var x=gs(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 ku(a,y,x){return pa(a,"'"+x+"'",y,function(b){return Ha(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Ze(),!ct(y,a))){Ee&&Pe<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&&!ln&&(Re?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),E&&!Re&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Mu(y)}}function Mu(a){var y=a.display.lineDiv;ue(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Qe(y,"CodeMirror-crosshair"),Et(document,"keyup",x),Et(document,"mouseover",x))}Ut(document,"keyup",x),Ut(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),ct(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||ct(y,a)||a.ctrlKey&&!a.altKey||Re&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,it(a);return}if(!(he&&(!a.which||a.which<10)&&Cs(y,a))){var z=String.fromCharCode(b==null?x:b);z!="\b"&&(ku(y,a,z)||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&&Ke(y,this.pos)==0&&x==this.button};var ma,va;function Lu(a,y){var x=+new Date;return va&&va.compare(x,a,y)?(ma=va=null,"triple"):ma&&ma.compare(x,a,y)?(va=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),va=null,"single")}function Is(a){var y=this,x=y.display;if(!(ct(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Ae||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),z=yt(a),ie=b?Lu(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,z,b,ie,a))&&(z==1?b?Fu(y,b,ie,a):qe(a)==x.scroller&&it(a):z==2?(b&&Ta(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(rt?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,z){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,pa(a,vs(ie,z),z,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de=le(a,x)!=xt}finally{a.state.suppressEdits=!1}return de})}function Ru(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var ie=et?x.shiftKey&&x.metaKey:x.altKey;z.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=Re?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Re?x.altKey:x.ctrlKey)),z}function Fu(a,y,x,b){Ee?setTimeout(Me(Il,a),0):a.curOp.focus=Ze();var z=Ru(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Ct&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(Ke((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(Ke(le.to(),y)>0||y.xRel<0)?zu(a,b,y,z):Hu(a,b,y,z)}function zu(a,y,x,b){var z=a.display,ie=!1,le=oi(a,function(be){Ae&&(z.scroller.draggable=!1),a.state.draggingText=!1,Et(z.wrapper.ownerDocument,"mouseup",le),Et(z.wrapper.ownerDocument,"mousemove",de),Et(z.scroller,"dragstart",fe),Et(z.scroller,"drop",le),ie||(it(be),b.addNew||Ta(a.doc,x,null,null,b.extend),Ae&&!tt||Ee&&Pe==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),de=function(be){ie=ie||Math.abs(y.clientX-be.clientX)+Math.abs(y.clientY-be.clientY)>=10},fe=function(){return ie=!0};Ae&&(z.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Ut(z.wrapper.ownerDocument,"mouseup",le),Ut(z.wrapper.ownerDocument,"mousemove",de),Ut(z.scroller,"dragstart",fe),Ut(z.scroller,"drop",le),Pl(a),setTimeout(function(){return z.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Fr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Fr(Oe(y.line,0),Wt(a.doc,Oe(y.line+1,0)));var b=x(a,y);return new Fr(b.from,b.to)}function Hu(a,y,x,b){var z=a.display,ie=a.doc;it(y);var le,de,fe=ie.sel,be=fe.ranges;if(b.addNew&&!b.extend?(de=ie.sel.contains(x),de>-1?le=be[de]:le=new Fr(x,x)):(le=ie.sel.primary(),de=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Fr(x,x)),x=So(a,y,!0,!0),de=-1;else{var at=Ps(a,x,b.unit);b.extend?le=sl(le,at.anchor,at.head,b.extend):le=at}b.addNew?de==-1?(de=be.length,hi(ie,Ui(a,be.concat([le]),de),{scroll:!1,origin:"*mouse"})):be.length>1&&be[de].empty()&&b.unit=="char"&&!b.extend?(hi(ie,Ui(a,be.slice(0,de).concat(be.slice(de+1)),0),{scroll:!1,origin:"*mouse"}),fe=ie.sel):ul(ie,de,le,We):(de=0,hi(ie,new Ri([le],0),We),fe=ie.sel);var bt=x;function Xt(Wn){if(Ke(bt,Wn)!=0)if(bt=Wn,b.unit=="rectangle"){for(var Kn=[],sr=a.options.tabSize,nr=me(vt(ie,x.line).text,x.ch,sr),wr=me(vt(ie,Wn.line).text,Wn.ch,sr),_r=Math.min(nr,wr),li=Math.max(nr,wr),Ur=Math.min(x.line,Wn.line),Mi=Math.min(a.lastLine(),Math.max(x.line,Wn.line));Ur<=Mi;Ur++){var Ei=vt(ie,Ur).text,qr=jt(Ei,_r,sr);_r==li?Kn.push(new Fr(Oe(Ur,qr),Oe(Ur,qr))):Ei.length>qr&&Kn.push(new Fr(Oe(Ur,qr),Oe(Ur,jt(Ei,li,sr))))}Kn.length||Kn.push(new Fr(x,x)),hi(ie,Ui(a,fe.ranges.slice(0,de).concat(Kn),de),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Wn)}else{var Ii=le,di=Ps(a,Wn,b.unit),ii=Ii.anchor,ei;Ke(di.anchor,ii)>0?(ei=di.head,ii=Sn(Ii.from(),di.anchor)):(ei=di.anchor,ii=mn(Ii.to(),di.head));var Kr=fe.ranges.slice(0);Kr[de]=ju(a,new Fr(Wt(ie,ii),ei)),hi(ie,Ui(a,Kr,de),We)}}var Zt=z.wrapper.getBoundingClientRect(),gn=0;function Bn(Wn){var Kn=++gn,sr=So(a,Wn,!0,b.unit=="rectangle");if(sr)if(Ke(sr,bt)!=0){a.curOp.focus=Ze(),Xt(sr);var nr=Oa(z,ie);(sr.line>=nr.to||sr.line<nr.from)&&setTimeout(oi(a,function(){gn==Kn&&Bn(Wn)}),150)}else{var wr=Wn.clientY<Zt.top?-20:Wn.clientY>Zt.bottom?20:0;wr&&setTimeout(oi(a,function(){gn==Kn&&(z.scroller.scrollTop+=wr,Bn(Wn))}),50)}}function Nn(Wn){a.state.selectingText=!1,gn=1/0,Wn&&(it(Wn),z.input.focus()),Et(z.wrapper.ownerDocument,"mousemove",jn),Et(z.wrapper.ownerDocument,"mouseup",Vn),ie.history.lastSelOrigin=null}var jn=oi(a,function(Wn){Wn.buttons===0||!yt(Wn)?Nn(Wn):Bn(Wn)}),Vn=oi(a,Nn);a.state.selectingText=Vn,Ut(z.wrapper.ownerDocument,"mousemove",jn),Ut(z.wrapper.ownerDocument,"mouseup",Vn)}function ju(a,y){var x=y.anchor,b=y.head,z=vt(a.doc,x.line);if(Ke(x,b)==0&&x.sticky==b.sticky)return y;var ie=Jt(z);if(!ie)return y;var le=Dt(ie,x.ch,x.sticky),de=ie[le];if(de.from!=x.ch&&de.to!=x.ch)return y;var fe=le+(de.from==x.ch==(de.level!=1)?0:1);if(fe==0||fe==ie.length)return y;var be;if(b.line!=x.line)be=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var at=Dt(ie,b.ch,b.sticky),bt=at-le||(b.ch-x.ch)*(de.level==1?-1:1);at==fe-1||at==fe?be=bt<0:be=bt>0}var Xt=ie[fe+(be?-1:0)],Zt=be==(Xt.level==1),gn=Zt?Xt.from:Xt.to,Bn=Zt?"after":"before";return x.ch==gn&&x.sticky==Bn?y:new Fr(new Oe(x.line,gn,Bn),b)}function Os(a,y,x,b){var z,ie;if(y.touches)z=y.touches[0].clientX,ie=y.touches[0].clientY;else try{z=y.clientX,ie=y.clientY}catch(Xt){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&it(y);var le=a.display,de=le.lineDiv.getBoundingClientRect();if(ie>de.bottom||!Ht(a,x))return St(y);ie-=de.top-le.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var be=le.gutters.childNodes[fe];if(be&&be.getBoundingClientRect().right>=z){var at=Ge(a.doc,ie),bt=a.display.gutterSpecs[fe];return mt(a,x,a,at,bt.className,y),St(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ds(a,y){ui(a.display,y)||Wu(a,y)||ct(a,y,"contextmenu")||rt||a.display.input.onContextMenu(y)}function Wu(a,y){return Ht(a,"gutterContextMenu")?Os(a,y,"gutterContextMenu",!1):!1}function As(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"}},Bs={},ja={};function Zu(a){var y=a.optionHandlers;function x(b,z,ie,le){a.defaults[b]=z,ie&&(y[b]=le?function(de,fe,be){be!=_o&&ie(de,fe,be)}:ie)}a.defineOption=x,a.Init=_o,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Si(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var ie=[],le=b.doc.first;b.doc.iter(function(fe){for(var be=0;;){var at=fe.text.indexOf(z,be);if(at==-1)break;be=at+z.length,ie.push(Oe(le,at))}le++});for(var de=ie.length-1;de>=0;de--)Ho(b.doc,z,ie[de],Oe(ie[de].line,ie[de].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,ie){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ie!=_o&&b.refresh()}),x("specialCharPlaceholder",Oi,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!nt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){As(b),ra(b)},!0),x("keyMap","default",function(b,z,ie){var le=za(z),de=ie!=_o&&za(ie);de&&de.detach&&de.detach(b,le),le.attach&&le.attach(b,de||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,$u,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=rl(z,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ml(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=rl(b.options.gutters,z),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(To(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,_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,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function _u(a,y,x){var b=x&&x!=_o;if(!y!=!b){var z=a.display.dragFunctions,ie=y?Ut:Et;ie(a.display.scroller,"dragstart",z.start),ie(a.display.scroller,"dragenter",z.enter),ie(a.display.scroller,"dragover",z.over),ie(a.display.scroller,"dragleave",z.leave),ie(a.display.scroller,"drop",z.drop)}}function $u(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Qe(a.display.wrapper,"CodeMirror-wrap"),br(a)),Ka(a),Si(a),Co(a),setTimeout(function(){return No(a)},100)}function Gr(a,y){var x=this;if(!(this instanceof Gr))return new Gr(a,y);this.options=y=y?ft(y):{},ft(Bs,y,!1);var b=y.value;typeof b=="string"?b=new wi(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var z=new Gr.inputStyles[y.inputStyle](this),ie=this.display=new ru(a,b,z,y);ie.wrapper.CodeMirror=this,As(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ml(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ce,keySeq:null,specialChars:null},y.autofocus&&!Ne&&ie.input.focus(),Ee&&Pe<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Po(this),this.curOp.forceUpdate=!0,Zl(this,b),y.autofocus&&!Ne||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 de=0;de<vl.length;++de)vl[de](this);Oo(this),Ae&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Gr.defaults=Bs,Gr.optionHandlers=ja;function Vu(a){var y=a.display;Ut(y.scroller,"mousedown",oi(a,Is)),Ee&&Pe<11?Ut(y.scroller,"dblclick",oi(a,function(fe){if(!ct(a,fe)){var be=So(a,fe);if(!(!be||ml(a,fe)||ui(a.display,fe))){it(fe);var at=a.findWordAt(be);Ta(a.doc,at.anchor,at.head)}}})):Ut(y.scroller,"dblclick",function(fe){return ct(a,fe)||it(fe)}),Ut(y.scroller,"contextmenu",function(fe){return Ds(a,fe)}),Ut(y.input.getField(),"contextmenu",function(fe){y.scroller.contains(fe.target)||Ds(a,fe)});var x,b={end:0};function z(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function ie(fe){if(fe.touches.length!=1)return!1;var be=fe.touches[0];return be.radiusX<=1&&be.radiusY<=1}function le(fe,be){if(be.left==null)return!0;var at=be.left-fe.left,bt=be.top-fe.top;return at*at+bt*bt>20*20}Ut(y.scroller,"touchstart",function(fe){if(!ct(a,fe)&&!ie(fe)&&!ml(a,fe)){y.input.ensurePolled(),clearTimeout(x);var be=+new Date;y.activeTouch={start:be,moved:!1,prev:be-b.end<=300?b:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),Ut(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ut(y.scroller,"touchend",function(fe){var be=y.activeTouch;if(be&&!ui(y,fe)&&be.left!=null&&!be.moved&&new Date-be.start<300){var at=a.coordsChar(y.activeTouch,"page"),bt;!be.prev||le(be,be.prev)?bt=new Fr(at,at):!be.prev.prev||le(be,be.prev.prev)?bt=a.findWordAt(at):bt=new Fr(Oe(at.line,0),Wt(a.doc,Oe(at.line+1,0))),a.setSelection(bt.anchor,bt.head),a.focus(),it(fe)}z()}),Ut(y.scroller,"touchcancel",z),Ut(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),mt(a,"scroll",a))}),Ut(y.scroller,"mousewheel",function(fe){return zl(a,fe)}),Ut(y.scroller,"DOMMouseScroll",function(fe){return zl(a,fe)}),Ut(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){ct(a,fe)||De(fe)},over:function(fe){ct(a,fe)||(Cu(a,fe),De(fe))},start:function(fe){return xu(a,fe)},drop:oi(a,bu),leave:function(fe){ct(a,fe)||fs(a)}};var de=y.input.getField();Ut(de,"keyup",function(fe){return ws.call(a,fe)}),Ut(de,"keydown",oi(a,Ss)),Ut(de,"keypress",oi(a,Es)),Ut(de,"focus",function(fe){return Ya(a,fe)}),Ut(de,"blur",function(fe){return To(a,fe)})}var vl=[];Gr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var z=a.doc,ie;x==null&&(x="add"),x=="smart"&&(z.mode.indent?ie=Qn(a,y).state:x="prev");var le=a.options.tabSize,de=vt(z,y),fe=me(de.text,null,le);de.stateAfter&&(de.stateAfter=null);var be=de.text.match(/^\s*/)[0],at;if(!b&&!/\S/.test(de.text))at=0,x="not";else if(x=="smart"&&(at=z.mode.indent(ie,de.text.slice(be.length),de.text),at==xt||at>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?at=me(vt(z,y-1).text,null,le):at=0:x=="add"?at=fe+a.options.indentUnit:x=="subtract"?at=fe-a.options.indentUnit:typeof x=="number"&&(at=fe+x),at=Math.max(0,at);var bt="",Xt=0;if(a.options.indentWithTabs)for(var Zt=Math.floor(at/le);Zt;--Zt)Xt+=le,bt+=" ";if(Xt<at&&(bt+=Vt(at-Xt)),bt!=be)return Ho(z,bt,Oe(y,0),Oe(y,be.length),"+input"),de.stateAfter=null,!0;for(var gn=0;gn<z.sel.ranges.length;gn++){var Bn=z.sel.ranges[gn];if(Bn.head.line==y&&Bn.head.ch<be.length){var Nn=Oe(y,be.length);ul(z,gn,new Fr(Nn,Nn));break}}}var Ki=null;function Wa(a){Ki=a}function gl(a,y,x,b,z){var ie=a.doc;a.display.shift=!1,b||(b=ie.sel);var le=+new Date-200,de=z=="paste"||a.state.pasteIncoming>le,fe=nn(y),be=null;if(de&&b.ranges.length>1)if(Ki&&Ki.text.join(`
`)==y){if(b.ranges.length%Ki.text.length==0){be=[];for(var at=0;at<Ki.text.length;at++)be.push(ie.splitLines(Ki.text[at]))}}else fe.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(be=Nt(fe,function(jn){return[jn]}));for(var bt=a.curOp.updateInput,Xt=b.ranges.length-1;Xt>=0;Xt--){var Zt=b.ranges[Xt],gn=Zt.from(),Bn=Zt.to();Zt.empty()&&(x&&x>0?gn=Oe(gn.line,gn.ch-x):a.state.overwrite&&!de?Bn=Oe(Bn.line,Math.min(vt(ie,Bn.line).text.length,Bn.ch+je(fe).length)):de&&Ki&&Ki.lineWise&&Ki.text.join(`
`)==fe.join(`
`)&&(gn=Bn=Oe(gn.line,0)));var Nn={from:gn,to:Bn,text:be?be[Xt%be.length]:fe,origin:z||(de?"paste":a.state.cutIncoming>le?"cut":"+input")};zo(a.doc,Nn),Vr(a,"inputRead",a,Nn)}y&&!de&&Ms(a,y),Lo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=bt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function ks(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ki(y,function(){return gl(y,x,0,null,"paste")}),!0}function Ms(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),le=!1;if(ie.electricChars){for(var de=0;de<ie.electricChars.length;de++)if(y.indexOf(ie.electricChars.charAt(de))>-1){le=ga(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(vt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(le=ga(a,z.head.line,"smart"));le&&Vr(a,"electricInput",a,z.head.line)}}}function Ts(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var z=a.doc.sel.ranges[b].head.line,ie={anchor:Oe(z,0),head:Oe(z+1,0)};x.push(ie),y.push(a.getRange(ie.anchor,ie.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=ot("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=ot("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ae?a.style.width="1000px":a.setAttribute("wrap","off"),$e&&(a.style.border="1px solid black"),Ls(a),y}function Gu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,z){var ie=this.options,le=ie[b];ie[b]==z&&b!="mode"||(ie[b]=z,y.hasOwnProperty(b)&&oi(this,y[b])(this,z,le),mt(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,z){this.state.keyMaps[z?"push":"unshift"](za(b))},removeKeyMap:function(b){for(var z=this.state.keyMaps,ie=0;ie<z.length;++ie)if(z[ie]==b||z[ie].name==b)return z.splice(ie,1),!0},addOverlay:yi(function(b,z){var ie=b.token?b:a.getMode(this.options,b);if(ie.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:ie,modeSpec:b,opaque:z&&z.opaque,priority:z&&z.priority||0},function(le){return le.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(b){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var le=z[ie].modeSpec;if(le==b||typeof b=="string"&&le.name==b){z.splice(ie,1),this.state.modeGen++,Si(this);return}}}),indentLine:yi(function(b,z,ie){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),ye(this.doc,b)&&ga(this,b,z,ie)}),indentSelection:yi(function(b){for(var z=this.doc.sel.ranges,ie=-1,le=0;le<z.length;le++){var de=z[le];if(de.empty())de.head.line>ie&&(ga(this,de.head.line,b,!0),ie=de.head.line,le==this.doc.sel.primIndex&&Lo(this));else{var fe=de.from(),be=de.to(),at=Math.max(ie,fe.line);ie=Math.min(this.lastLine(),be.line-(be.ch?0:1))+1;for(var bt=at;bt<ie;++bt)ga(this,bt,b);var Xt=this.doc.sel.ranges;fe.ch==0&&z.length==Xt.length&&Xt[le].from().ch>0&&ul(this.doc,le,new Fr(fe,Xt[le].to()),ve)}}}),getTokenAt:function(b,z){return Un(this,b,z)},getLineTokens:function(b,z){return Un(this,Oe(b),z,!0)},getTokenTypeAt:function(b){b=Wt(this.doc,b);var z=Xn(this,vt(this.doc,b.line)),ie=0,le=(z.length-1)/2,de=b.ch,fe;if(de==0)fe=z[2];else for(;;){var be=ie+le>>1;if((be?z[be*2-1]:0)>=de)le=be;else if(z[be*2+1]<de)ie=be+1;else{fe=z[be*2+2];break}}var at=fe?fe.indexOf("overlay "):-1;return at<0?fe:at==0?null:fe.slice(0,at-1)},getModeAt:function(b){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(b).state).mode:z},getHelper:function(b,z){return this.getHelpers(b,z)[0]},getHelpers:function(b,z){var ie=[];if(!x.hasOwnProperty(z))return ie;var le=x[z],de=this.getModeAt(b);if(typeof de[z]=="string")le[de[z]]&&ie.push(le[de[z]]);else if(de[z])for(var fe=0;fe<de[z].length;fe++){var be=le[de[z][fe]];be&&ie.push(be)}else de.helperType&&le[de.helperType]?ie.push(le[de.helperType]):le[de.name]&&ie.push(le[de.name]);for(var at=0;at<le._global.length;at++){var bt=le._global[at];bt.pred(de,this)&&ze(ie,bt.val)==-1&&ie.push(bt.val)}return ie},getStateAfter:function(b,z){var ie=this.doc;return b=en(ie,b==null?ie.first+ie.size-1:b),Qn(this,b+1,z).state},cursorCoords:function(b,z){var ie,le=this.doc.sel.primary();return b==null?ie=le.head:typeof b=="object"?ie=Wt(this.doc,b):ie=b?le.from():le.to(),Ci(this,ie,z||"page")},charCoords:function(b,z){return Mo(this,Wt(this.doc,b),z||"page")},coordsChar:function(b,z){return b=wa(this,b,z||"page"),ci(this,b.left,b.top)},lineAtHeight:function(b,z){return b=wa(this,{top:b,left:0},z||"page").top,Ge(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,z,ie){var le=!1,de;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),de=vt(this.doc,b)}else de=b;return ko(this,de,{top:0,left:0},z||"page",ie||le).top+(le?this.doc.height-rr(de):0)},defaultTextHeight:function(){return Bi(this.display)},defaultCharWidth:function(){return Gi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,ie,le,de){var fe=this.display;b=Ci(this,Wt(this.doc,b));var be=b.bottom,at=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),fe.sizer.appendChild(z),le=="over")be=b.top;else if(le=="above"||le=="near"){var bt=Math.max(fe.wrapper.clientHeight,this.doc.height),Xt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(le=="above"||b.bottom+z.offsetHeight>bt)&&b.top>z.offsetHeight?be=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=bt&&(be=b.bottom),at+z.offsetWidth>Xt&&(at=Xt-z.offsetWidth)}z.style.top=be+"px",z.style.left=z.style.right="",de=="right"?(at=fe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(de=="left"?at=0:de=="middle"&&(at=(fe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=at+"px"),ie&&_s(this,{left:at,top:be,right:at+z.offsetWidth,bottom:be+z.offsetHeight})},triggerOnKeyDown:yi(Ss),triggerOnKeyPress:yi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:yi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Ms(this,b)}),findPosH:function(b,z,ie,le){var de=1;z<0&&(de=-1,z=-z);for(var fe=Wt(this.doc,b),be=0;be<z&&(fe=yl(this.doc,fe,de,ie,le),!fe.hitSide);++be);return fe},moveH:yi(function(b,z){var ie=this;this.extendSelectionsBy(function(le){return ie.display.shift||ie.doc.extend||le.empty()?yl(ie.doc,le.head,b,z,ie.options.rtlMoveVisually):b<0?le.from():le.to()},_e)}),deleteH:yi(function(b,z){var ie=this.doc.sel,le=this.doc;ie.somethingSelected()?le.replaceSelection("",null,"+delete"):Zo(this,function(de){var fe=yl(le,de.head,b,z,!1);return b<0?{from:fe,to:de.head}:{from:de.head,to:fe}})}),findPosV:function(b,z,ie,le){var de=1,fe=le;z<0&&(de=-1,z=-z);for(var be=Wt(this.doc,b),at=0;at<z;++at){var bt=Ci(this,be,"div");if(fe==null?fe=bt.left:bt.left=fe,be=Rs(this,bt,de,ie),be.hitSide)break}return be},moveV:yi(function(b,z){var ie=this,le=this.doc,de=[],fe=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(at){if(fe)return b<0?at.from():at.to();var bt=Ci(ie,at.head,"div");at.goalColumn!=null&&(bt.left=at.goalColumn),de.push(bt.left);var Xt=Rs(ie,bt,b,z);return z=="page"&&at==le.sel.primary()&&Ja(ie,Mo(ie,Xt,"div").top-bt.top),Xt},_e),de.length)for(var be=0;be<le.sel.ranges.length;be++)le.sel.ranges[be].goalColumn=de[be]}),findWordAt:function(b){var z=this.doc,ie=vt(z,b.line).text,le=b.ch,de=b.ch;if(ie){var fe=this.getHelper(b,"wordChars");(b.sticky=="before"||de==ie.length)&&le?--le:++de;for(var be=ie.charAt(le),at=se(be,fe)?function(bt){return se(bt,fe)}:/\s/.test(be)?function(bt){return/\s/.test(bt)}:function(bt){return!/\s/.test(bt)&&!se(bt)};le>0&&at(ie.charAt(le-1));)--le;for(;de<ie.length&&at(ie.charAt(de));)++de}return new Fr(Oe(b.line,le),Oe(b.line,de))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):Qe(this.display.cursorDiv,"CodeMirror-overwrite"),mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ze()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yi(function(b,z){Jo(this,b,z)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Di(this)-this.display.barHeight,width:b.scrollWidth-Di(this)-this.display.barWidth,clientHeight:no(this),clientWidth:Ji(this)}},scrollIntoView:yi(function(b,z){b==null?(b={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof b=="number"?b={from:Oe(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=z||0,b.from.line!=null?$s(this,b):Dl(this,b.from,b.to,b.margin)}),setSize:yi(function(b,z){var ie=this,le=function(fe){return typeof fe=="number"||/^\d+$/.test(String(fe))?fe+"px":fe};b!=null&&(this.display.wrapper.style.width=le(b)),z!=null&&(this.display.wrapper.style.height=le(z)),this.options.lineWrapping&&Ko(this);var de=this.display.viewFrom;this.doc.iter(de,this.display.viewTo,function(fe){if(fe.widgets){for(var be=0;be<fe.widgets.length;be++)if(fe.widgets[be].noHScroll){fo(ie,de,"widget");break}}++de}),this.curOp.forceUpdate=!0,mt(this,"refresh",this)}),operation:function(b){return ki(this,b)},startOperation:function(){return Po(this)},endOperation:function(){return Oo(this)},refresh:yi(function(){var b=this.display.cachedTextHeight;Si(this),this.curOp.forceUpdate=!0,Co(this),Jo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Bi(this.display))>.5||this.options.lineWrapping)&&Ka(this),mt(this,"refresh",this)}),swapDoc:yi(function(b){var z=this.doc;return z.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,Vr(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Fe(a),a.registerHelper=function(b,z,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=ie},a.registerGlobalHelper=function(b,z,ie,le){a.registerHelper(b,z,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,z){var ie=y,le=x,de=vt(a,y.line),fe=z&&a.direction=="rtl"?-x:x;function be(){var Vn=y.line+fe;return Vn<a.first||Vn>=a.first+a.size?!1:(y=new Oe(Vn,y.ch,y.sticky),de=vt(a,Vn))}function at(Vn){var Wn;if(b=="codepoint"){var Kn=de.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Kn)?Wn=null:Wn=new Oe(y.line,Math.max(0,Math.min(de.text.length,y.ch+x*(Kn>=55296&&Kn<56320?2:1))),-x)}else z?Wn=Ou(a.cm,de,y,x):Wn=dl(de,y,x);if(Wn==null)if(!Vn&&be())y=fl(z,a.cm,de,y.line,fe);else return!1;else y=Wn;return!0}if(b=="char"||b=="codepoint")at();else if(b=="column")at(!0);else if(b=="word"||b=="group")for(var bt=null,Xt=b=="group",Zt=a.cm&&a.cm.getHelper(y,"wordChars"),gn=!0;!(x<0&&!at(!gn));gn=!1){var Bn=de.text.charAt(y.ch)||`
`,Nn=se(Bn,Zt)?"w":Xt&&Bn==`
`?"n":!Xt||/\s/.test(Bn)?null:"p";if(Xt&&!gn&&!Nn&&(Nn="s"),bt&&bt!=Nn){x<0&&(x=1,at(),y.sticky="after");break}if(Nn&&(bt=Nn),x>0&&!at(!gn))break}var jn=Na(a,y,ie,le,!0);return Bt(ie,jn)&&(jn.hitSide=!0),jn}function Rs(a,y,x,b){var z=a.doc,ie=y.left,le;if(b=="page"){var de=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(de-.5*Bi(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 be;be=ci(a,ie,le),!!be.outside;){if(x<0?le<=0:le>=z.height){be.hitSide=!0;break}le+=x*5}return be}var jr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};jr.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;Ls(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(de){for(var fe=de.target;fe;fe=fe.parentNode){if(fe==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(fe.className))break}return!1}Ut(z,"paste",function(de){!ie(de)||ct(b,de)||ks(de,b)||Pe<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),Ut(z,"compositionstart",function(de){y.composing={data:de.data,done:!1}}),Ut(z,"compositionupdate",function(de){y.composing||(y.composing={data:de.data,done:!1})}),Ut(z,"compositionend",function(de){y.composing&&(de.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ut(z,"touchstart",function(){return x.forceCompositionEnd()}),Ut(z,"input",function(){y.composing||y.readFromDOMSoon()});function le(de){if(!(!ie(de)||ct(b,de))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),de.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var fe=Ts(b);Wa({lineWise:!0,text:fe.text}),de.type=="cut"&&b.operation(function(){b.setSelections(fe.ranges,0,ve),b.replaceSelection("",null,"cut")})}else return;if(de.clipboardData){de.clipboardData.clearData();var be=Ki.text.join(`
`);if(de.clipboardData.setData("Text",be),de.clipboardData.getData("Text")==be){de.preventDefault();return}}var at=Ns(),bt=at.firstChild;b.display.lineSpace.insertBefore(at,b.display.lineSpace.firstChild),bt.value=Ki.text.join(`
`);var Xt=document.activeElement;ke(bt),setTimeout(function(){b.display.lineSpace.removeChild(at),Xt.focus(),Xt==z&&x.showPrimarySelection()},50)}}Ut(z,"copy",le),Ut(z,"cut",le)},jr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},jr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},jr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},jr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},jr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ie=Za(y,a.anchorNode,a.anchorOffset),le=Za(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&le&&!le.bad&&Ke(Sn(ie,le),b)==0&&Ke(mn(ie,le),z)==0)){var de=y.display.view,fe=b.line>=y.display.viewFrom&&Fs(y,b)||{node:de[0].measure.map[2],offset:0},be=z.line<y.display.viewTo&&Fs(y,z);if(!be){var at=de[de.length-1].measure,bt=at.maps?at.maps[at.maps.length-1]:at.map;be={node:bt[bt.length-1],offset:bt[bt.length-2]-bt[bt.length-3]}}if(!fe||!be){a.removeAllRanges();return}var Xt=a.rangeCount&&a.getRangeAt(0),Zt;try{Zt=Be(fe.node,fe.offset,be.offset,be.node)}catch(gn){}Zt&&(!E&&y.state.focused?(a.collapse(fe.node,fe.offset),Zt.collapsed||(a.removeAllRanges(),a.addRange(Zt))):(a.removeAllRanges(),a.addRange(Zt)),Xt&&a.anchorNode==null?a.addRange(Xt):E&&this.startGracePeriod()),this.rememberSelection()}},jr.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)},jr.prototype.showMultipleSelections=function(a){gt(this.cm.display.cursorDiv,a.cursors),gt(this.cm.display.selectionDiv,a.selection)},jr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},jr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Ue(this.div,y)},jr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},jr.prototype.blur=function(){this.div.blur()},jr.prototype.getField=function(){return this.div},jr.prototype.supportsTouch=function(){return!0},jr.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ki(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)},jr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},jr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Ce&&we&&this.cm.display.gutterSpecs.length&&Uu(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&&ki(y,function(){hi(y.doc,po(x,b),ve),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},jr.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(),z=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=Oe(b.line-1,vt(a.doc,b.line-1).length)),z.ch==vt(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=Oe(z.line+1,0)),b.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ie,le,de;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(le=He(y.view[0].line),de=y.view[0].node):(le=He(y.view[ie].line),de=y.view[ie-1].node.nextSibling);var fe=wo(a,z.line),be,at;if(fe==y.view.length-1?(be=y.viewTo-1,at=y.lineDiv.lastChild):(be=He(y.view[fe+1].line)-1,at=y.view[fe+1].node.previousSibling),!de)return!1;for(var bt=a.doc.splitLines(Ku(a,de,at,le,be)),Xt=Gt(a.doc,Oe(le,0),Oe(be,vt(a.doc,be).text.length));bt.length>1&&Xt.length>1;)if(je(bt)==je(Xt))bt.pop(),Xt.pop(),be--;else if(bt[0]==Xt[0])bt.shift(),Xt.shift(),le++;else break;for(var Zt=0,gn=0,Bn=bt[0],Nn=Xt[0],jn=Math.min(Bn.length,Nn.length);Zt<jn&&Bn.charCodeAt(Zt)==Nn.charCodeAt(Zt);)++Zt;for(var Vn=je(bt),Wn=je(Xt),Kn=Math.min(Vn.length-(bt.length==1?Zt:0),Wn.length-(Xt.length==1?Zt:0));gn<Kn&&Vn.charCodeAt(Vn.length-gn-1)==Wn.charCodeAt(Wn.length-gn-1);)++gn;if(bt.length==1&&Xt.length==1&&le==b.line)for(;Zt&&Zt>b.ch&&Vn.charCodeAt(Vn.length-gn-1)==Wn.charCodeAt(Wn.length-gn-1);)Zt--,gn++;bt[bt.length-1]=Vn.slice(0,Vn.length-gn).replace(/^\u200b+/,""),bt[0]=bt[0].slice(Zt).replace(/\u200b+$/,"");var sr=Oe(le,Zt),nr=Oe(be,Xt.length?je(Xt).length-gn:0);if(bt.length>1||bt[0]||Ke(sr,nr))return Ho(a.doc,bt,sr,nr,"+input"),!0},jr.prototype.ensurePolled=function(){this.forceCompositionEnd()},jr.prototype.reset=function(){this.forceCompositionEnd()},jr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},jr.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))},jr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ki(this.cm,function(){return Si(a.cm)})},jr.prototype.setUneditable=function(a){a.contentEditable="false"},jr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||oi(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},jr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},jr.prototype.onContextMenu=function(){},jr.prototype.resetPosition=function(){},jr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=qi(a,y.line);if(!x||x.hidden)return null;var b=vt(a.doc,y.line),z=Bo(x,b,y.line),ie=Jt(b,a.doc.direction),le="left";if(ie){var de=Dt(ie,y.ch);le=de%2?"right":"left"}var fe=xa(z.map,y.ch,le);return fe.offset=fe.collapse=="right"?fe.end:fe.start,fe}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function $o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,z){var ie="",le=!1,de=a.doc.lineSeparator(),fe=!1;function be(Zt){return function(gn){return gn.id==Zt}}function at(){le&&(ie+=de,fe&&(ie+=de),le=fe=!1)}function bt(Zt){Zt&&(at(),ie+=Zt)}function Xt(Zt){if(Zt.nodeType==1){var gn=Zt.getAttribute("cm-text");if(gn){bt(gn);return}var Bn=Zt.getAttribute("cm-marker"),Nn;if(Bn){var jn=a.findMarks(Oe(b,0),Oe(z+1,0),be(+Bn));jn.length&&(Nn=jn[0].find(0))&&bt(Gt(a.doc,Nn.from,Nn.to).join(de));return}if(Zt.getAttribute("contenteditable")=="false")return;var Vn=/^(pre|div|p|li|table|br)$/i.test(Zt.nodeName);if(!/^br$/i.test(Zt.nodeName)&&Zt.textContent.length==0)return;Vn&&at();for(var Wn=0;Wn<Zt.childNodes.length;Wn++)Xt(Zt.childNodes[Wn]);/^(pre|p)$/i.test(Zt.nodeName)&&(fe=!0),Vn&&(le=!0)}else Zt.nodeType==3&&bt(Zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Xt(y),y!=x;)y=y.nextSibling,fe=!1;return ie}function Za(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return $o(a.clipPos(Oe(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 z=0;z<a.display.view.length;z++){var ie=a.display.view[z];if(ie.node==b)return Xu(ie,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,z=!1;if(!y||!Ue(b,y))return $o(Oe(He(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var ie=a.rest?je(a.rest):a.line;return $o(Oe(He(ie),ie.text.length),z)}var le=y.nodeType==3?y:null,de=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));de.parentNode!=b;)de=de.parentNode;var fe=a.measure,be=fe.maps;function at(Nn,jn,Vn){for(var Wn=-1;Wn<(be?be.length:0);Wn++)for(var Kn=Wn<0?fe.map:be[Wn],sr=0;sr<Kn.length;sr+=3){var nr=Kn[sr+2];if(nr==Nn||nr==jn){var wr=He(Wn<0?a.line:a.rest[Wn]),_r=Kn[sr]+Vn;return(Vn<0||nr!=Nn)&&(_r=Kn[sr+(Vn?1:0)]),Oe(wr,_r)}}}var bt=at(le,de,x);if(bt)return $o(bt,z);for(var Xt=de.nextSibling,Zt=le?le.nodeValue.length-x:0;Xt;Xt=Xt.nextSibling){if(bt=at(Xt,Xt.firstChild,0),bt)return $o(Oe(bt.line,bt.ch-Zt),z);Zt+=Xt.textContent.length}for(var gn=de.previousSibling,Bn=x;gn;gn=gn.previousSibling){if(bt=at(gn,gn.firstChild,-1),bt)return $o(Oe(bt.line,bt.ch+Bn),z);Bn+=gn.textContent.length}}var Qr=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};Qr.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),$e&&(z.style.width="0px"),Ut(z,"input",function(){Ee&&Pe>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Ut(z,"paste",function(le){ct(b,le)||ks(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!ct(b,le)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var de=Ts(b);Wa({lineWise:!0,text:de.text}),le.type=="cut"?b.setSelections(de.ranges,null,ve):(x.prevInput="",z.value=de.text.join(`
`),ke(z))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Ut(z,"cut",ie),Ut(z,"copy",ie),Ut(a.scroller,"paste",function(le){if(!(ui(a,le)||ct(b,le))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var de=new Event("paste");de.clipboardData=le.clipboardData,z.dispatchEvent(de)}}),Ut(a.lineSpace,"selectstart",function(le){ui(a,le)||it(le)}),Ut(z,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Ut(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Qr.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Qr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Qr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var z=Ci(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+le.left-ie.left))}return b},Qr.prototype.showSelection=function(a){var y=this.cm,x=y.display;gt(x.cursorDiv,a.cursors),gt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Qr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&ke(this.textarea),Ee&&Pe>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ee&&Pe>=9&&(this.hasSelection=null))}},Qr.prototype.getField=function(){return this.textarea},Qr.prototype.supportsTouch=function(){return!1},Qr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ne||Ze()!=this.textarea))try{this.textarea.focus()}catch(a){}},Qr.prototype.blur=function(){this.textarea.blur()},Qr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qr.prototype.receivedFocus=function(){this.slowPoll()},Qr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Qr.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)},Qr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||vn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==b&&!y.somethingSelected())return!1;if(Ee&&Pe>=9&&this.hasSelection===z||Re&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,de=Math.min(b.length,z.length);le<de&&b.charCodeAt(le)==z.charCodeAt(le);)++le;return ki(y,function(){gl(y,z.slice(le),b.length-le,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qr.prototype.onKeyPress=function(){Ee&&Pe>=9&&(this.hasSelection=null),this.fastPoll()},Qr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=So(x,a),le=b.scroller.scrollTop;if(!ie||he)return;var de=x.options.resetSelectionOnContextMenu;de&&x.doc.sel.contains(ie)==-1&&oi(x,hi)(x.doc,po(ie),ve);var fe=z.style.cssText,be=y.wrapper.style.cssText,at=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-at.top-5)+"px; left: "+(a.clientX-at.left-5)+`px;
z-index: 1000; background: `+(Ee?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var bt;Ae&&(bt=window.scrollY),b.input.focus(),Ae&&window.scrollTo(null,bt),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=Zt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Xt(){if(z.selectionStart!=null){var Bn=x.somethingSelected(),Nn="\u200B"+(Bn?z.value:"");z.value="\u21DA",z.value=Nn,y.prevInput=Bn?"":"\u200B",z.selectionStart=1,z.selectionEnd=Nn.length,b.selForContextMenu=x.doc.sel}}function Zt(){if(y.contextMenuPending==Zt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=be,z.style.cssText=fe,Ee&&Pe<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),z.selectionStart!=null)){(!Ee||Ee&&Pe<9)&&Xt();var Bn=0,Nn=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):Bn++<10?b.detectingSelectAll=setTimeout(Nn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Nn,200)}}if(Ee&&Pe>=9&&Xt(),rt){De(a);var gn=function(){Et(window,"mouseup",gn),setTimeout(Zt,20)};Ut(window,"mouseup",gn)}else setTimeout(Zt,50)},Qr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Qr.prototype.setUneditable=function(){},Qr.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?ft(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=Ze();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=de.getValue()}var z;if(a.form&&(Ut(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=z,ie.submit(),ie.submit=le}}catch(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&&(Et(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var de=Gr(function(fe){return a.parentNode.insertBefore(fe,a.nextSibling)},y);return de}function Qu(a){a.off=Et,a.on=Ut,a.wheelEventPixels=iu,a.Doc=wi,a.splitLines=nn,a.countColumn=me,a.findColumn=jt,a.isWordChar=oe,a.Pass=xt,a.signal=mt,a.Line=Ar,a.changeEnd=mo,a.scrollbarModel=kl,a.Pos=Oe,a.cmpPos=Ke,a.modes=an,a.mimeModes=Kt,a.resolveMode=Ft,a.getMode=Qt,a.modeExtensions=hn,a.extendMode=pn,a.copyState=sn,a.startState=bn,a.innerMode=un,a.commands=ha,a.keyMap=io,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=Pu,a.StringStream=On,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=it,a.e_stopPropagation=Xe,a.e_stop=De,a.addClass=ue,a.contains=Ue,a.rmClass=Qe,a.keyNames=yo}Zu(Gr),Gu(Gr);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var _a in wi.prototype)wi.prototype.hasOwnProperty(_a)&&ze(Ju,_a)<0&&(Gr.prototype[_a]=function(a){return function(){return a.apply(this.doc,arguments)}}(wi.prototype[_a]));return Fe(wi),Gr.inputStyles={textarea:Qr,contenteditable:jr},Gr.defineMode=function(a){!Gr.defaults.mode&&a!="null"&&(Gr.defaults.mode=a),Tt.apply(this,arguments)},Gr.defineMIME=At,Gr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Gr.defineMIME("text/plain","null"),Gr.defineExtension=function(a,y){Gr.prototype[a]=y},Gr.defineDocExtension=function(a,y){wi.prototype[a]=y},Gr.fromTextArea=Yu,Qu(Gr),Gr.version="5.58.2",Gr})},25419:function(tn,_t,re){(function(E){E(re(89780),re(15525),re(98101))})(function(E){"use strict";E.defineMode("markdown",function(lt,ge){var Ye=E.getMode(lt,"text/html"),Ee=Ye.name=="null";function Pe(me){if(E.findModeByName){var ce=E.findModeByName(me);ce&&(me=ce.mime||ce.mimes[0])}var ze=E.getMode(lt,me);return ze.name=="null"?null:ze}ge.highlightFormatting===void 0&&(ge.highlightFormatting=!1),ge.maxBlockquoteDepth===void 0&&(ge.maxBlockquoteDepth=0),ge.taskLists===void 0&&(ge.taskLists=!1),ge.strikethrough===void 0&&(ge.strikethrough=!1),ge.emoji===void 0&&(ge.emoji=!1),ge.fencedCodeBlockHighlighting===void 0&&(ge.fencedCodeBlockHighlighting=!0),ge.fencedCodeBlockDefaultMode===void 0&&(ge.fencedCodeBlockDefaultMode="text/plain"),ge.xml===void 0&&(ge.xml=!0),ge.tokenTypeOverrides===void 0&&(ge.tokenTypeOverrides={});var Ae={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 Te in Ae)Ae.hasOwnProperty(Te)&&ge.tokenTypeOverrides[Te]&&(Ae[Te]=ge.tokenTypeOverrides[Te]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,Se=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,$e=/^[^#!\[\]*_\\<>` "'(~:]+/,Ce=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ne=/^\s*\[[^\]]+?\]:.*$/,Re=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,et=" ";function nt(me,ce,ze){return ce.f=ce.inline=ze,ze(me,ce)}function Lt(me,ce,ze){return ce.f=ce.block=ze,ze(me,ce)}function wt(me){return!me||!/\S/.test(me.string)}function rt(me){if(me.linkTitle=!1,me.linkHref=!1,me.linkText=!1,me.em=!1,me.strong=!1,me.strikethrough=!1,me.quote=0,me.indentedCode=!1,me.f==Qe){var ce=Ee;if(!ce){var ze=E.innerMode(Ye,me.htmlState);ce=ze.mode.name=="xml"&&ze.state.tagStart===null&&!ze.state.context&&ze.state.tokenize.isInText}ce&&(me.f=It,me.block=pt,me.htmlState=null)}return me.trailingSpace=0,me.trailingSpaceNewLine=!1,me.prevLine=me.thisLine,me.thisLine={stream:null},null}function pt(me,ce){var ze=me.column()===ce.indentation,Mt=wt(ce.prevLine.stream),xt=ce.indentedCode,ve=ce.prevLine.hr,We=ce.list!==!1,_e=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var jt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,We)){for(ce.list=null;jt<ce.listStack[ce.listStack.length-1];)ce.listStack.pop(),ce.listStack.length?ce.indentation=ce.listStack[ce.listStack.length-1]:ce.list=!1;ce.list!==!1&&(ce.indentationDiff=jt-ce.listStack[ce.listStack.length-1])}var kt=!Mt&&!ve&&!ce.prevLine.header&&(!We||!xt)&&!ce.prevLine.fencedCodeEnd,Vt=(ce.list===!1||ve||Mt)&&ce.indentation<=_e&&me.match(we),je=null;if(ce.indentationDiff>=4&&(xt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||Mt))return me.skipToEnd(),ce.indentedCode=!0,Ae.code;if(me.eatSpace())return null;if(ze&&ce.indentation<=_e&&(je=me.match(Se))&&je[1].length<=6)return ce.quote=0,ce.header=je[1].length,ce.thisLine.header=!0,ge.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,gt(ce);if(ce.indentation<=_e&&me.eat(">"))return ce.quote=ze?1:ce.quote+1,ge.highlightFormatting&&(ce.formatting="quote"),me.eatSpace(),gt(ce);if(!Vt&&!ce.setext&&ze&&ce.indentation<=_e&&(je=me.match(he))){var Nt=je[1]?"ol":"ul";return ce.indentation=jt+me.current().length,ce.list=!0,ce.quote=0,ce.listStack.push(ce.indentation),ce.em=!1,ce.strong=!1,ce.code=!1,ce.strikethrough=!1,ge.taskLists&&me.match(tt,!1)&&(ce.taskList=!0),ce.f=ce.inline,ge.highlightFormatting&&(ce.formatting=["list","list-"+Nt]),gt(ce)}else{if(ze&&ce.indentation<=_e&&(je=me.match(Ce,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(je[1]+"+ *$"),ce.localMode=ge.fencedCodeBlockHighlighting&&Pe(je[2]||ge.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=E.startState(ce.localMode)),ce.f=ce.block=Rt,ge.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,gt(ce);if(ce.setext||(!kt||!We)&&!ce.quote&&ce.list===!1&&!ce.code&&!Vt&&!Ne.test(me.string)&&(je=me.lookAhead(1))&&(je=je.match(dt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,me.skipToEnd(),ge.highlightFormatting&&(ce.formatting="header")):(ce.header=je[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,gt(ce);if(Vt)return me.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Ae.hr;if(me.peek()==="[")return nt(me,ce,Je)}return nt(me,ce,ce.inline)}function Qe(me,ce){var ze=Ye.token(me,ce.htmlState);if(!Ee){var Mt=E.innerMode(Ye,ce.htmlState);(Mt.mode.name=="xml"&&Mt.state.tagStart===null&&!Mt.state.context&&Mt.state.tokenize.isInText||ce.md_inside&&me.current().indexOf(">")>-1)&&(ce.f=It,ce.block=pt,ce.htmlState=null)}return ze}function Rt(me,ce){var ze=ce.listStack[ce.listStack.length-1]||0,Mt=ce.indentation<ze,xt=ze+3;if(ce.fencedEndRE&&ce.indentation<=xt&&(Mt||me.match(ce.fencedEndRE))){ge.highlightFormatting&&(ce.formatting="code-block");var ve;return Mt||(ve=gt(ce)),ce.localMode=ce.localState=null,ce.block=pt,ce.f=It,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,Mt?Lt(me,ce,ce.block):ve}else return ce.localMode?ce.localMode.token(me,ce.localState):(me.skipToEnd(),Ae.code)}function gt(me){var ce=[];if(me.formatting){ce.push(Ae.formatting),typeof me.formatting=="string"&&(me.formatting=[me.formatting]);for(var ze=0;ze<me.formatting.length;ze++)ce.push(Ae.formatting+"-"+me.formatting[ze]),me.formatting[ze]==="header"&&ce.push(Ae.formatting+"-"+me.formatting[ze]+"-"+me.header),me.formatting[ze]==="quote"&&(!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=me.quote?ce.push(Ae.formatting+"-"+me.formatting[ze]+"-"+me.quote):ce.push("error"))}if(me.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(me.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(me.linkHref?ce.push(Ae.linkHref,"url"):(me.strong&&ce.push(Ae.strong),me.em&&ce.push(Ae.em),me.strikethrough&&ce.push(Ae.strikethrough),me.emoji&&ce.push(Ae.emoji),me.linkText&&ce.push(Ae.linkText),me.code&&ce.push(Ae.code),me.image&&ce.push(Ae.image),me.imageAltText&&ce.push(Ae.imageAltText,"link"),me.imageMarker&&ce.push(Ae.imageMarker)),me.header&&ce.push(Ae.header,Ae.header+"-"+me.header),me.quote&&(ce.push(Ae.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=me.quote?ce.push(Ae.quote+"-"+me.quote):ce.push(Ae.quote+"-"+ge.maxBlockquoteDepth)),me.list!==!1){var Mt=(me.listStack.length-1)%3;Mt?Mt===1?ce.push(Ae.list2):ce.push(Ae.list3):ce.push(Ae.list1)}return me.trailingSpaceNewLine?ce.push("trailing-space-new-line"):me.trailingSpace&&ce.push("trailing-space-"+(me.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function ot(me,ce){if(me.match($e,!0))return gt(ce)}function It(me,ce){var ze=ce.text(me,ce);if(typeof ze!="undefined")return ze;if(ce.list)return ce.list=null,gt(ce);if(ce.taskList){var Mt=me.match(tt,!0)[1]===" ";return Mt?ce.taskOpen=!0:ce.taskClosed=!0,ge.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,gt(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&me.match(/^#+$/,!0))return ge.highlightFormatting&&(ce.formatting="header"),gt(ce);var xt=me.next();if(ce.linkTitle){ce.linkTitle=!1;var ve=xt;xt==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var We="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(me.match(new RegExp(We),!0))return Ae.linkHref}if(xt==="`"){var _e=ce.formatting;ge.highlightFormatting&&(ce.formatting="code"),me.eatWhile("`");var jt=me.current().length;if(ce.code==0&&(!ce.quote||jt==1))return ce.code=jt,gt(ce);if(jt==ce.code){var kt=gt(ce);return ce.code=0,kt}else return ce.formatting=_e,gt(ce)}else if(ce.code)return gt(ce);if(xt==="\\"&&(me.next(),ge.highlightFormatting)){var Vt=gt(ce),je=Ae.formatting+"-escape";return Vt?Vt+" "+je:je}if(xt==="!"&&me.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ge.highlightFormatting&&(ce.formatting="image"),gt(ce);if(xt==="["&&ce.imageMarker&&me.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ge.highlightFormatting&&(ce.formatting="image"),gt(ce);if(xt==="]"&&ce.imageAltText){ge.highlightFormatting&&(ce.formatting="image");var Vt=gt(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=Ue,Vt}if(xt==="["&&!ce.image)return ce.linkText&&me.match(/^.*?\]/)||(ce.linkText=!0,ge.highlightFormatting&&(ce.formatting="link")),gt(ce);if(xt==="]"&&ce.linkText){ge.highlightFormatting&&(ce.formatting="link");var Vt=gt(ce);return ce.linkText=!1,ce.inline=ce.f=me.match(/\(.*?\)| ?\[.*?\]/,!1)?Ue:It,Vt}if(xt==="<"&&me.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Be,ge.highlightFormatting&&(ce.formatting="link");var Vt=gt(ce);return Vt?Vt+=" ":Vt="",Vt+Ae.linkInline}if(xt==="<"&&me.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Be,ge.highlightFormatting&&(ce.formatting="link");var Vt=gt(ce);return Vt?Vt+=" ":Vt="",Vt+Ae.linkEmail}if(ge.xml&&xt==="<"&&me.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Nt=me.string.indexOf(">",me.pos);if(Nt!=-1){var st=me.string.substring(me.start,Nt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(st)&&(ce.md_inside=!0)}return me.backUp(1),ce.htmlState=E.startState(Ye),Lt(me,ce,Qe)}if(ge.xml&&xt==="<"&&me.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(xt==="*"||xt==="_"){for(var ae=1,te=me.pos==1?" ":me.string.charAt(me.pos-2);ae<3&&me.eat(xt);)ae++;var ee=me.peek()||" ",oe=!/\s/.test(ee)&&(!Re.test(ee)||/\s/.test(te)||Re.test(te)),se=!/\s/.test(te)&&(!Re.test(te)||/\s/.test(ee)||Re.test(ee)),ne=null,pe=null;if(ae%2&&(!ce.em&&oe&&(xt==="*"||!se||Re.test(te))?ne=!0:ce.em==xt&&se&&(xt==="*"||!oe||Re.test(ee))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(xt==="*"||!se||Re.test(te))?pe=!0:ce.strong==xt&&se&&(xt==="*"||!oe||Re.test(ee))&&(pe=!1)),pe!=null||ne!=null){ge.highlightFormatting&&(ce.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(ce.em=xt),pe===!0&&(ce.strong=xt);var kt=gt(ce);return ne===!1&&(ce.em=!1),pe===!1&&(ce.strong=!1),kt}}else if(xt===" "&&(me.eat("*")||me.eat("_"))){if(me.peek()===" ")return gt(ce);me.backUp(1)}if(ge.strikethrough){if(xt==="~"&&me.eatWhile(xt)){if(ce.strikethrough){ge.highlightFormatting&&(ce.formatting="strikethrough");var kt=gt(ce);return ce.strikethrough=!1,kt}else if(me.match(/^[^\s]/,!1))return ce.strikethrough=!0,ge.highlightFormatting&&(ce.formatting="strikethrough"),gt(ce)}else if(xt===" "&&me.match(/^~~/,!0)){if(me.peek()===" ")return gt(ce);me.backUp(2)}}if(ge.emoji&&xt===":"&&me.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ge.highlightFormatting&&(ce.formatting="emoji");var xe=gt(ce);return ce.emoji=!1,xe}return xt===" "&&(me.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),gt(ce)}function Be(me,ce){var ze=me.next();if(ze===">"){ce.f=ce.inline=It,ge.highlightFormatting&&(ce.formatting="link");var Mt=gt(ce);return Mt?Mt+=" ":Mt="",Mt+Ae.linkInline}return me.match(/^[^>]+/,!0),Ae.linkInline}function Ue(me,ce){if(me.eatSpace())return null;var ze=me.next();return ze==="("||ze==="["?(ce.f=ce.inline=ue(ze==="("?")":"]"),ge.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,gt(ce)):"error"}var Ze={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(me){return function(ce,ze){var Mt=ce.next();if(Mt===me){ze.f=ze.inline=It,ge.highlightFormatting&&(ze.formatting="link-string");var xt=gt(ze);return ze.linkHref=!1,xt}return ce.match(Ze[me]),ze.linkHref=!0,gt(ze)}}function Je(me,ce){return me.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=ke,me.next(),ge.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,gt(ce)):nt(me,ce,It)}function ke(me,ce){if(me.match(/^\]:/,!0)){ce.f=ce.inline=Me,ge.highlightFormatting&&(ce.formatting="link");var ze=gt(ce);return ce.linkText=!1,ze}return me.match(/^([^\]\\]|\\.)+/,!0),Ae.linkText}function Me(me,ce){return me.eatSpace()?null:(me.match(/^[^\s]+/,!0),me.peek()===void 0?ce.linkTitle=!0:me.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=It,Ae.linkHref+" url")}var ft={startState:function(){return{f:pt,prevLine:{stream:null},thisLine:{stream:null},block:pt,htmlState:null,indentation:0,inline:It,text:ot,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(me){return{f:me.f,prevLine:me.prevLine,thisLine:me.thisLine,block:me.block,htmlState:me.htmlState&&E.copyState(Ye,me.htmlState),indentation:me.indentation,localMode:me.localMode,localState:me.localMode?E.copyState(me.localMode,me.localState):null,inline:me.inline,text:me.text,formatting:!1,linkText:me.linkText,linkTitle:me.linkTitle,linkHref:me.linkHref,code:me.code,em:me.em,strong:me.strong,strikethrough:me.strikethrough,emoji:me.emoji,header:me.header,setext:me.setext,hr:me.hr,taskList:me.taskList,list:me.list,listStack:me.listStack.slice(0),quote:me.quote,indentedCode:me.indentedCode,trailingSpace:me.trailingSpace,trailingSpaceNewLine:me.trailingSpaceNewLine,md_inside:me.md_inside,fencedEndRE:me.fencedEndRE}},token:function(me,ce){if(ce.formatting=!1,me!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,me.match(/^\s*$/,!0))return rt(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:me},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=Qe)){var ze=me.match(/^\s*/,!0)[0].replace(/\t/g,et).length;if(ce.indentation=ze,ce.indentationDiff=null,ze>0)return null}}return ce.f(me,ce)},innerMode:function(me){return me.block==Qe?{state:me.htmlState,mode:Ye}:me.localState?{state:me.localState,mode:me.localMode}:{state:me,mode:ft}},indent:function(me,ce,ze){return me.block==Qe&&Ye.indent?Ye.indent(me.htmlState,ce,ze):me.localState&&me.localMode.indent?me.localMode.indent(me.localState,ce,ze):E.Pass},blankLine:rt,getType:gt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ft},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(tn,_t,re){(function(E){E(re(89780))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var lt=0;lt<E.modeInfo.length;lt++){var ge=E.modeInfo[lt];ge.mimes&&(ge.mime=ge.mimes[0])}E.findModeByMIME=function(Ye){Ye=Ye.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Pe=E.modeInfo[Ee];if(Pe.mime==Ye)return Pe;if(Pe.mimes){for(var Ae=0;Ae<Pe.mimes.length;Ae++)if(Pe.mimes[Ae]==Ye)return Pe}}if(/\+xml$/.test(Ye))return E.findModeByMIME("application/xml");if(/\+json$/.test(Ye))return E.findModeByMIME("application/json")},E.findModeByExtension=function(Ye){Ye=Ye.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Pe=E.modeInfo[Ee];if(Pe.ext){for(var Ae=0;Ae<Pe.ext.length;Ae++)if(Pe.ext[Ae]==Ye)return Pe}}},E.findModeByFileName=function(Ye){for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Pe=E.modeInfo[Ee];if(Pe.file&&Pe.file.test(Ye))return Pe}var Ae=Ye.lastIndexOf("."),Te=Ae>-1&&Ye.substring(Ae+1,Ye.length);if(Te)return E.findModeByExtension(Te)},E.findModeByName=function(Ye){Ye=Ye.toLowerCase();for(var Ee=0;Ee<E.modeInfo.length;Ee++){var Pe=E.modeInfo[Ee];if(Pe.name.toLowerCase()==Ye)return Pe;if(Pe.alias){for(var Ae=0;Ae<Pe.alias.length;Ae++)if(Pe.alias[Ae].toLowerCase()==Ye)return Pe}}}})},67549:function(tn,_t,re){(function(E){E(re(89780))})(function(E){"use strict";E.defineMode("stex",function(lt,ge){"use strict";function Ye($e,Ce){$e.cmdState.push(Ce)}function Ee($e){return $e.cmdState.length>0?$e.cmdState[$e.cmdState.length-1]:null}function Pe($e){var Ce=$e.cmdState.pop();Ce&&Ce.closeBracket()}function Ae($e){for(var Ce=$e.cmdState,Ne=Ce.length-1;Ne>=0;Ne--){var Re=Ce[Ne];if(Re.name!="DEFAULT")return Re}return{styleIdentifier:function(){return null}}}function Te($e,Ce,Ne){return function(){this.name=$e,this.bracketNo=0,this.style=Ce,this.styles=Ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=Te("importmodule","tag",["string","builtin"]),we.documentclass=Te("documentclass","tag",["","atom"]),we.usepackage=Te("usepackage","tag",["atom"]),we.begin=Te("begin","tag",["atom"]),we.end=Te("end","tag",["atom"]),we.label=Te("label","tag",["atom"]),we.ref=Te("ref","tag",["atom"]),we.eqref=Te("eqref","tag",["atom"]),we.cite=Te("cite","tag",["atom"]),we.bibitem=Te("bibitem","tag",["atom"]),we.Bibitem=Te("Bibitem","tag",["atom"]),we.RBibitem=Te("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he($e,Ce){$e.f=Ce}function tt($e,Ce){var Ne;if($e.match(/^\\[a-zA-Z@]+/)){var Re=$e.current().slice(1);return Ne=we.hasOwnProperty(Re)?we[Re]:we.DEFAULT,Ne=new Ne,Ye(Ce,Ne),he(Ce,dt),Ne.style}if($e.match(/^\\[$&%#{}_]/)||$e.match(/^\\[,;!\/\\]/))return"tag";if($e.match("\\["))return he(Ce,function(nt,Lt){return Se(nt,Lt,"\\]")}),"keyword";if($e.match("\\("))return he(Ce,function(nt,Lt){return Se(nt,Lt,"\\)")}),"keyword";if($e.match("$$"))return he(Ce,function(nt,Lt){return Se(nt,Lt,"$$")}),"keyword";if($e.match("$"))return he(Ce,function(nt,Lt){return Se(nt,Lt,"$")}),"keyword";var et=$e.next();if(et=="%")return $e.skipToEnd(),"comment";if(et=="}"||et=="]"){if(Ne=Ee(Ce),Ne)Ne.closeBracket(et),he(Ce,dt);else return"error";return"bracket"}else return et=="{"||et=="["?(Ne=we.DEFAULT,Ne=new Ne,Ye(Ce,Ne),"bracket"):/\d/.test(et)?($e.eatWhile(/[\w.%]/),"atom"):($e.eatWhile(/[\w\-_]/),Ne=Ae(Ce),Ne.name=="begin"&&(Ne.argument=$e.current()),Ne.styleIdentifier())}function Se($e,Ce,Ne){if($e.eatSpace())return null;if(Ne&&$e.match(Ne))return he(Ce,tt),"keyword";if($e.match(/^\\[a-zA-Z@]+/))return"tag";if($e.match(/^[a-zA-Z]+/))return"variable-2";if($e.match(/^\\[$&%#{}_]/)||$e.match(/^\\[,;!\/]/)||$e.match(/^[\^_&]/))return"tag";if($e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if($e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Re=$e.next();return Re=="{"||Re=="}"||Re=="["||Re=="]"||Re=="("||Re==")"?"bracket":Re=="%"?($e.skipToEnd(),"comment"):"error"}function dt($e,Ce){var Ne=$e.peek(),Re;return Ne=="{"||Ne=="["?(Re=Ee(Ce),Re.openBracket(Ne),$e.eat(Ne),he(Ce,tt),"bracket"):/[ \t\r]/.test(Ne)?($e.eat(Ne),null):(he(Ce,tt),Pe(Ce),tt($e,Ce))}return{startState:function(){var $e=ge.inMathMode?function(Ce,Ne){return Se(Ce,Ne)}:tt;return{cmdState:[],f:$e}},copyState:function($e){return{cmdState:$e.cmdState.slice(),f:$e.f}},token:function($e,Ce){return Ce.f($e,Ce)},blankLine:function($e){$e.f=tt,$e.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(tn,_t,re){(function(E){E(re(89780))})(function(E){"use strict";var lt={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},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Ye,Ee){var Pe=Ye.indentUnit,Ae={},Te=Ee.htmlMode?lt:ge;for(var we in Te)Ae[we]=Te[we];for(var we in Ee)Ae[we]=Ee[we];var he,tt;function Se(Be,Ue){function Ze(ke){return Ue.tokenize=ke,ke(Be,Ue)}var ue=Be.next();if(ue=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?Ze(Ce("atom","]]>")):null:Be.match("--")?Ze(Ce("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),Ze(Ne(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),Ue.tokenize=Ce("meta","?>"),"meta"):(he=Be.eat("/")?"closeTag":"openTag",Ue.tokenize=dt,"tag bracket");if(ue=="&"){var Je;return Be.eat("#")?Be.eat("x")?Je=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):Je=Be.eatWhile(/[\d]/)&&Be.eat(";"):Je=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),Je?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}Se.isInText=!0;function dt(Be,Ue){var Ze=Be.next();if(Ze==">"||Ze=="/"&&Be.eat(">"))return Ue.tokenize=Se,he=Ze==">"?"endTag":"selfcloseTag","tag bracket";if(Ze=="=")return he="equals",null;if(Ze=="<"){Ue.tokenize=Se,Ue.state=Lt,Ue.tagName=Ue.tagStart=null;var ue=Ue.tokenize(Be,Ue);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Ze)?(Ue.tokenize=$e(Ze),Ue.stringStartCol=Be.column(),Ue.tokenize(Be,Ue)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function $e(Be){var Ue=function(Ze,ue){for(;!Ze.eol();)if(Ze.next()==Be){ue.tokenize=dt;break}return"string"};return Ue.isInAttribute=!0,Ue}function Ce(Be,Ue){return function(Ze,ue){for(;!Ze.eol();){if(Ze.match(Ue)){ue.tokenize=Se;break}Ze.next()}return Be}}function Ne(Be){return function(Ue,Ze){for(var ue;(ue=Ue.next())!=null;){if(ue=="<")return Ze.tokenize=Ne(Be+1),Ze.tokenize(Ue,Ze);if(ue==">")if(Be==1){Ze.tokenize=Se;break}else return Ze.tokenize=Ne(Be-1),Ze.tokenize(Ue,Ze)}return"meta"}}function Re(Be,Ue,Ze){this.prev=Be.context,this.tagName=Ue,this.indent=Be.indented,this.startOfLine=Ze,(Ae.doNotIndent.hasOwnProperty(Ue)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function et(Be){Be.context&&(Be.context=Be.context.prev)}function nt(Be,Ue){for(var Ze;;){if(!Be.context||(Ze=Be.context.tagName,!Ae.contextGrabbers.hasOwnProperty(Ze)||!Ae.contextGrabbers[Ze].hasOwnProperty(Ue)))return;et(Be)}}function Lt(Be,Ue,Ze){return Be=="openTag"?(Ze.tagStart=Ue.column(),wt):Be=="closeTag"?rt:Lt}function wt(Be,Ue,Ze){return Be=="word"?(Ze.tagName=Ue.current(),tt="tag",Rt):Ae.allowMissingTagName&&Be=="endTag"?(tt="tag bracket",Rt(Be,Ue,Ze)):(tt="error",wt)}function rt(Be,Ue,Ze){if(Be=="word"){var ue=Ue.current();return Ze.context&&Ze.context.tagName!=ue&&Ae.implicitlyClosed.hasOwnProperty(Ze.context.tagName)&&et(Ze),Ze.context&&Ze.context.tagName==ue||Ae.matchClosing===!1?(tt="tag",pt):(tt="tag error",Qe)}else return Ae.allowMissingTagName&&Be=="endTag"?(tt="tag bracket",pt(Be,Ue,Ze)):(tt="error",Qe)}function pt(Be,Ue,Ze){return Be!="endTag"?(tt="error",pt):(et(Ze),Lt)}function Qe(Be,Ue,Ze){return tt="error",pt(Be,Ue,Ze)}function Rt(Be,Ue,Ze){if(Be=="word")return tt="attribute",gt;if(Be=="endTag"||Be=="selfcloseTag"){var ue=Ze.tagName,Je=Ze.tagStart;return Ze.tagName=Ze.tagStart=null,Be=="selfcloseTag"||Ae.autoSelfClosers.hasOwnProperty(ue)?nt(Ze,ue):(nt(Ze,ue),Ze.context=new Re(Ze,ue,Je==Ze.indented)),Lt}return tt="error",Rt}function gt(Be,Ue,Ze){return Be=="equals"?ot:(Ae.allowMissing||(tt="error"),Rt(Be,Ue,Ze))}function ot(Be,Ue,Ze){return Be=="string"?It:Be=="word"&&Ae.allowUnquoted?(tt="string",Rt):(tt="error",Rt(Be,Ue,Ze))}function It(Be,Ue,Ze){return Be=="string"?It:Rt(Be,Ue,Ze)}return{startState:function(Be){var Ue={tokenize:Se,state:Lt,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(Ue.baseIndent=Be),Ue},token:function(Be,Ue){if(!Ue.tagName&&Be.sol()&&(Ue.indented=Be.indentation()),Be.eatSpace())return null;he=null;var Ze=Ue.tokenize(Be,Ue);return(Ze||he)&&Ze!="comment"&&(tt=null,Ue.state=Ue.state(he||Ze,Be,Ue),tt&&(Ze=tt=="error"?Ze+" error":tt)),Ze},indent:function(Be,Ue,Ze){var ue=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+Pe;if(ue&&ue.noIndent)return E.Pass;if(Be.tokenize!=dt&&Be.tokenize!=Se)return Ze?Ze.match(/^(\s*)/)[0].length:0;if(Be.tagName)return Ae.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+Pe*(Ae.multilineTagIndentFactor||1);if(Ae.alignCDATA&&/<!\[CDATA\[/.test(Ue))return 0;var Je=Ue&&/^<(\/)?([\w_:\.-]*)/.exec(Ue);if(Je&&Je[1])for(;ue;)if(ue.tagName==Je[2]){ue=ue.prev;break}else if(Ae.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(Je)for(;ue;){var ke=Ae.contextGrabbers[ue.tagName];if(ke&&ke.hasOwnProperty(Je[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+Pe:Be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ae.htmlMode?"html":"xml",helperType:Ae.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==ot&&(Be.state=Rt)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var Ue=[],Ze=Be.context;Ze;Ze=Ze.prev)Ze.tagName&&Ue.push(Ze.tagName);return Ue.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(tn,_t,re){"use strict";re.d(_t,{hP:function(){return st}});var E=function(ae,te){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function lt(ae,te){function ee(){this.constructor=ae}E(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ge(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function pe(Ie){try{ut(oe.next(Ie))}catch(Ve){ne(Ve)}}function xe(Ie){try{ut(oe.throw(Ie))}catch(Ve){ne(Ve)}}function ut(Ie){var Ve;Ie.done?se(Ie.value):(Ve=Ie.value,Ve instanceof ee?Ve:new ee(function(ht){ht(Ve)})).then(pe,xe)}ut((oe=oe.apply(ae,te||[])).next())})}function Ye(ae,te){var ee,oe,se,ne,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function xe(ut){return function(Ie){return function(Ve){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&Ve[0]?oe.return:Ve[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Ve[1])).done)return se;switch(oe=0,se&&(Ve=[2&Ve[0],se.value]),Ve[0]){case 0:case 1:se=Ve;break;case 4:return pe.label++,{value:Ve[1],done:!1};case 5:pe.label++,oe=Ve[1],Ve=[0];continue;case 7:Ve=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||Ve[0]!==6&&Ve[0]!==2)){pe=0;continue}if(Ve[0]===3&&(!se||Ve[1]>se[0]&&Ve[1]<se[3])){pe.label=Ve[1];break}if(Ve[0]===6&&pe.label<se[1]){pe.label=se[1],se=Ve;break}if(se&&pe.label<se[2]){pe.label=se[2],pe.ops.push(Ve);break}se[2]&&pe.ops.pop(),pe.trys.pop();continue}Ve=te.call(ae,pe)}catch(ht){Ve=[6,ht],oe=0}finally{ee=se=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([ut,Ie])}}}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],pe=0,xe=ne.length;pe<xe;pe++,se++)oe[se]=ne[pe];return oe}var Pe=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],pe=ne[0],xe=ne[1];te.setAttribute(pe,xe)}},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 pe=document.createElementNS("http://www.w3.org/2000/svg","line");return pe.setAttribute("x1",te.toString()),pe.setAttribute("y1",ee.toString()),pe.setAttribute("x2",oe.toString()),pe.setAttribute("y2",se.toString()),ne&&ae.setAttributes(pe,ne),pe},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,pe,xe){var ut=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ut,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",pe.toString()]]),ut.appendChild(xe),ut},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}(),Ae=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}(),Te=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 pe=oe!==void 0?oe:document.createElement("canvas");te===null&&(se.markersOnly=!0,se.naturalSize=!1);var xe=document.createElementNS("http://www.w3.org/2000/svg","svg");xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),xe.setAttribute("width",ee.width.baseVal.valueAsString),xe.setAttribute("height",ee.height.baseVal.valueAsString),xe.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),xe.innerHTML=ee.innerHTML,se.naturalSize===!0?(xe.width.baseVal.value=te.naturalWidth,xe.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(xe.width.baseVal.value=se.width,xe.height.baseVal.value=se.height),pe.width=xe.width.baseVal.value,pe.height=xe.height.baseVal.value;var ut=xe.outerHTML,Ie=pe.getContext("2d");se.markersOnly!==!0&&Ie.drawImage(te,0,0,pe.width,pe.height);var Ve=window.URL,ht=new Image(pe.width,pe.height);ht.setAttribute("crossOrigin","anonymous");var Dt=new Blob([ut],{type:"image/svg+xml"}),Ot=Ve.createObjectURL(Dt);ht.onload=function(){Ie.drawImage(ht,0,0),Ve.revokeObjectURL(Ot);var Jt=pe.toDataURL(se.imageType,se.imageQuality);ne(Jt)},ht.src=Ot})},ae}(),we=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 tt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Se("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Se("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}(),tt=function(ae,te){this.selector=ae,this.style=te},Se=function(ae,te){this.localName=ae,this.style=te},dt=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 pe=document.createElement("div");pe.className=""+ee.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",ne.typeName),pe.innerHTML=ne.icon,pe.addEventListener("click",function(){ee.markerToolbarButtonClicked(pe,ne)}),ee.buttons.push(pe),ee.markerButtons.push(pe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<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 Se("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 Se("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Se("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Se("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 Se("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Se("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 Se("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new tt("."+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}(),$e=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 Se("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Se("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Se("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Se("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Se("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Se("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Se("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
padding: `+ee+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var pe;ne.uiStyleSettings=se.uiStyleSettings;var xe=document.createElement("div");xe.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),xe.innerHTML=ne.icon,xe.title=ne.title,xe.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(xe),se.buttonRow.appendChild(xe)}),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,pe){var xe,ut;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((xe=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&xe!==void 0?xe:ee.toolboxActiveButtonStyleColorsClass.name):""+((ut=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ut!==void 0?ut:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Ce=function(ae,te){this.title=ae,this.icon=te},Ne=function(ae){function te(ee,oe,se,ne){var pe=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 pe.colors=[],pe.addTransparent=!1,pe.colorBoxes=[],pe.colors=oe,pe.currentColor=se,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return lt(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,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=ne-2+"px",pe.style.height=ne-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(ne+2)/2+"px",pe.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(ee,pe)});var xe=document.createElement("div");return xe.style.display="inline-block",xe.style.width=ne-2+"px",xe.style.height=ne-2+"px",xe.style.backgroundColor=ee,xe.style.borderRadius=ne/2+"px",ee==="transparent"&&(xe.style.fill=this.uiStyleSettings.toolboxAccentColor,xe.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>`),pe.appendChild(xe),pe},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}(Ce),Re=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),et=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),nt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Pe.createGroup(),this.visual.appendChild(Pe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Pe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),Lt=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}(),wt=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(Pe.createTransform()),ne.setupControlBox(),ne}return lt(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Pe.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var 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 pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,pe=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),pe>=0?(this.top=ne,this.height=pe):(this.top=ne+pe,this.height=-pe),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Pe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup();var ee=Pe.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Pe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Pe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new et,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new nt;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,xe=this.height+this.CB_DISTANCE-ee/2,ut=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,ut,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,ut,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,xe),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,xe),this.positionGrip(this.controlGrips.bottomRight.visual,ut,xe),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:Lt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Lt.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(Lt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Lt.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}(Re),rt=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 lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Pe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(wt),pt=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return pe.widths=[],pe.widthBoxes=[],pe.widths=oe,pe.currentWidth=se,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return lt(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 pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",ne.appendChild(pe);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.display="flex",xe.style.alignItems="center";var ut=document.createElement("hr");ut.style.minWidth="20px",ut.style.border="0px",ut.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,ut.style.flexGrow="2",xe.appendChild(ut),ne.appendChild(xe),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}(Ce),Qe=function(ae){function te(ee,oe,se,ne){var pe=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 pe.styles=[],pe.styleBoxes=[],pe.styles=oe,pe.currentStyle=se,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return lt(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 pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var xe=`<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>`;pe.innerHTML=xe,ne.appendChild(pe),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}(Ce),Rt=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 Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(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}(rt),gt=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"},ot=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 lt(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Pe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new nt;return ee.visual.transform.baseVal.appendItem(Pe.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var 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}(Re),It=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 Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Pe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Pe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(ot),Be=function(ae){function te(ee,oe,se,ne){var pe=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 pe.fonts=[],pe.fontBoxes=[],pe.fonts=oe,pe.currentFont=se,pe.setCurrentFont=pe.setCurrentFont.bind(pe),pe}return lt(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 pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var xe=document.createElement("div");xe.style.whiteSpace="nowrap",xe.style.overflow="hidden",xe.style.textOverflow="ellipsis",xe.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(xe),ne.appendChild(pe),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}(Ce),Ue=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 Ne("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.bgRectangle=Pe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Pe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.textElement.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(Pe.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,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&&(Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),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&&Pe.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Pe.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<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}(wt),Ze=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 Ne("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.drawingImage=Pe.createImage(),this.visual.appendChild(this.drawingImage);var ee=Pe.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Pe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],ne=oe[1],pe=oe[2],xe=oe[3],ut=!1,Ie=0;Ie<this.canvasElement.height;Ie++)for(var Ve=0;Ve<this.canvasElement.width;Ve++)ee.data[Ie*this.canvasElement.width*4+4*Ve+3]>0&&(ut=!0,Ie<ne&&(ne=Ie),Ve<se&&(se=Ve),Ie>xe&&(xe=Ie),Ve>pe&&(pe=Ve));if(ut){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(xe-ne)/this.pixelRatio;var ht=document.createElement("canvas");ht.width=pe-se,ht.height=xe-ne,ht.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,pe-se,xe-ne),0,0),this.drawingImgUrl=ht.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Pe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Pe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<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}(wt),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 lt(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(xe){var ut="both";switch(xe){case 0:ut="both";break;case 1:ut="start";break;case 2:ut="end";break;case 3:ut="none"}var Ie=document.createElement("div");if(Ie.style.display="flex",Ie.style.flexGrow="2",Ie.style.alignItems="center",Ie.style.justifyContent="space-between",Ie.style.padding="5px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderColor=ut===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){ee.setCurrentType(ut,Ie)}),oe.appendChild(Ie),ut==="both"||ut==="start"){var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.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>`,Ve.style.marginLeft="5px",Ie.appendChild(Ve)}var ht=document.createElement("div");ht.style.display="flex",ht.style.alignItems="center",ht.style.minHeight="20px",ht.style.flexGrow="2";var Dt=document.createElement("hr");if(Dt.style.minWidth="20px",Dt.style.border="0px",Dt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Dt.style.flexGrow="2",ht.appendChild(Dt),Ie.appendChild(ht),ut==="both"||ut==="end"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.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>`,Ot.style.marginRight="5px",Ie.appendChild(Ot)}ne.typeBoxes.push(Ie)},ne=this,pe=0;pe<4;pe++)se(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Ce),Je=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 lt(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=Pe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Pe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Pe.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Pe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Pe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(It),ke=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 Ne("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return lt(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}(rt),Me=function(ae){function te(ee,oe,se,ne){var pe=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 pe.opacities=[],pe.opacityBoxes=[],pe.opacities=oe,pe.currentOpacity=se,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return lt(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 pe=document.createElement("div");pe.innerText=100*se+"%",ne.appendChild(pe),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}(Ce),ft=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 Ne("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Me("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return lt(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<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}(ke),me='<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>',ce='<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>',ze=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 Ne("Text color",se.defaultColorSet,ne.color,me),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ne("Fill color",se.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new nt,ne.tipGrip.visual.transform.baseVal.appendItem(Pe.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Pe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Pe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Pe.setAttributes(this.bgRectangle,[["fill",ee]]),Pe.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var 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(){Pe.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}(Ue),Mt=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 Ne("Line color",Ee(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ne("Fill color",Ee(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new Me("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Pe.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),Pe.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&&Pe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Pe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Pe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Pe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.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}(wt),xt=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return lt(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=Pe.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(Pe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Pe.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(Pe.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&&(Pe.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()]]),Pe.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}(It),ve=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 lt(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}(Mt),We=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}(),_e=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 Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.selectorCurve=Pe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Pe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Pe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Pe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Pe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Pe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Pe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<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}(ot),jt=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 Ne("Line color",Ee(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ne("Fill color",Ee(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new pt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ne("Text color",se.defaultColorSet,ne.textColor,me),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Pe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Pe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Pe.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Pe.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Pe.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Pe.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Pe.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Pe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Pe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Pe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<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}(wt),kt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Vt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return lt(te,ae),te}(kt),je=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 lt(te,ae),te}(kt),Nt=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 gt,this._isOpen=!1,this.undoRedoManager=new We,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 Nt,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[Rt,Ze,Je,Ue,ve,Mt,ft,ze,xt,ke,It,_e,jt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Rt,Ze,Je,Ue,Mt,ft,ze]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Rt,Ze,Je,Ue,ft]},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(),Ae.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&we.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=we.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new kt(te))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var te;return Ye(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Te).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 kt(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 kt(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 Ue?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=Pe.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 dt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new $e(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 je(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 je(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var xe=new je(te,void 0,!0);pe(xe),xe.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var xe=se.markers[pe];se.setCurrentMarker(se.markers[pe]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(ut){return ut(new je(te,xe))})},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 kt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new kt(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 kt(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 kt(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 ge(this,void 0,void 0,function(){var te,ee,oe=this;return Ye(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 Vt(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(pe){return pe.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 kt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Pe.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 je(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 Ze&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ze):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new je(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 je(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 je(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 je(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){Ae.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new kt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new kt(te))}))},ae.instanceCounter=0,ae}()},6551:function(tn,_t,re){"use strict";re.d(_t,{ZP:function(){return Ae}});var E=re(42978),lt=re(59301),ge=re(47273),Ye=0,Ee=(0,ge.Z)();function Pe(){var Te;return Ee?(Te=Ye,Ye+=1):Te="TEST_OR_SSR",Te}function Ae(Te){var we=lt.useState(),he=(0,E.Z)(we,2),tt=he[0],Se=he[1];return lt.useEffect(function(){Se("rc_select_".concat(Pe()))},[]),Te||tt}},37463:function(tn,_t,re){"use strict";re.d(_t,{Ac:function(){return ct},Xo:function(){return Ht},Wx:function(){return it},ZP:function(){return fn},lk:function(){return Lt}});var E=re(54476),lt=re(94480),ge=re(20068),Ye=re(33885),Ee=re(42978),Pe=re(75931),Ae=re(76190),Te=re(18929),we=re(48736),he=re(59301),tt=re(92310),Se=re.n(tt),dt=re(34280),$e=re(49658),Ce=re(8654),Ne=function(Ge){var ye=Ge.className,Le=Ge.customizeIcon,Oe=Ge.customizeIconProps,Ke=Ge.children,Bt=Ge.onMouseDown,on=Ge.onClick,mn=typeof Le=="function"?Le(Oe):Le;return he.createElement("span",{className:ye,onMouseDown:function(en){en.preventDefault(),Bt==null||Bt(en)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},mn!==void 0?mn:he.createElement("span",{className:Se()(ye.split(/\s+/).map(function(Sn){return"".concat(Sn,"-icon")}))},Ke))},Re=Ne,et=function(Ge,ye,Le,Oe,Ke){var Bt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,on=arguments.length>6?arguments[6]:void 0,mn=arguments.length>7?arguments[7]:void 0,Sn=he.useMemo(function(){if((0,Ae.Z)(Oe)==="object")return Oe.clearIcon;if(Ke)return Ke},[Oe,Ke]),en=he.useMemo(function(){return!!(!Bt&&Oe&&(Le.length||on)&&!(mn==="combobox"&&on===""))},[Oe,Bt,Le.length,on,mn]);return{allowClear:en,clearIcon:he.createElement(Re,{className:"".concat(Ge,"-clear"),onMouseDown:ye,customizeIcon:Sn},"\xD7")}},nt=he.createContext(null);function Lt(){return he.useContext(nt)}function wt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ge=he.useState(!1),ye=(0,Ee.Z)(Ge,2),Le=ye[0],Oe=ye[1],Ke=he.useRef(null),Bt=function(){window.clearTimeout(Ke.current)};he.useEffect(function(){return Bt},[]);var on=function(Sn,en){Bt(),Ke.current=window.setTimeout(function(){Oe(Sn),en&&en()},He)};return[Le,on,Bt]}function rt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ge=he.useRef(null),ye=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(ye.current)}},[]);function Le(Oe){(Oe||Ge.current===null)&&(Ge.current=Oe),window.clearTimeout(ye.current),ye.current=window.setTimeout(function(){Ge.current=null},He)}return[function(){return Ge.current},Le]}function pt(He,Ge,ye,Le){var Oe=he.useRef(null);Oe.current={open:Ge,triggerOpen:ye,customizedTrigger:Le},he.useEffect(function(){function Ke(Bt){var on;if(!((on=Oe.current)!==null&&on!==void 0&&on.customizedTrigger)){var mn=Bt.target;mn.shadowRoot&&Bt.composed&&(mn=Bt.composedPath()[0]||mn),Oe.current.open&&He().filter(function(Sn){return Sn}).every(function(Sn){return!Sn.contains(mn)&&Sn!==mn})&&Oe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ke),function(){return window.removeEventListener("mousedown",Ke)}},[])}var Qe=re(10228);function Rt(He){return He&&![Qe.Z.ESC,Qe.Z.SHIFT,Qe.Z.BACKSPACE,Qe.Z.TAB,Qe.Z.WIN_KEY,Qe.Z.ALT,Qe.Z.META,Qe.Z.WIN_KEY_RIGHT,Qe.Z.CTRL,Qe.Z.SEMICOLON,Qe.Z.EQUALS,Qe.Z.CAPS_LOCK,Qe.Z.CONTEXT_MENU,Qe.Z.F1,Qe.Z.F2,Qe.Z.F3,Qe.Z.F4,Qe.Z.F5,Qe.Z.F6,Qe.Z.F7,Qe.Z.F8,Qe.Z.F9,Qe.Z.F10,Qe.Z.F11,Qe.Z.F12].includes(He)}var gt=re(26112),ot=re(83836);function It(He,Ge,ye){var Le=(0,Ye.Z)((0,Ye.Z)({},He),ye?Ge:{});return Object.keys(Ge).forEach(function(Oe){var Ke=Ge[Oe];typeof Ke=="function"&&(Le[Oe]=function(){for(var Bt,on=arguments.length,mn=new Array(on),Sn=0;Sn<on;Sn++)mn[Sn]=arguments[Sn];return Ke.apply(void 0,mn),(Bt=He[Oe])===null||Bt===void 0?void 0:Bt.call.apply(Bt,[He].concat(mn))})}),Le}var Be=It,Ue=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ze=function(Ge,ye){var Le=Ge.prefixCls,Oe=Ge.id,Ke=Ge.inputElement,Bt=Ge.autoFocus,on=Ge.autoComplete,mn=Ge.editable,Sn=Ge.activeDescendantId,en=Ge.value,Wt=Ge.open,zt=Ge.attrs,yn=(0,Pe.Z)(Ge,Ue),Ln=Ke||he.createElement("input",null),kn=Ln,Mn=kn.ref,Xn=kn.props;return(0,we.Kp)(!("maxLength"in Ln.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ln=he.cloneElement(Ln,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({type:"search"},Be(yn,Xn,!0)),{},{id:Oe,ref:(0,Ce.sQ)(ye,Mn),autoComplete:on||"off",autoFocus:Bt,className:Se()("".concat(Le,"-selection-search-input"),Xn==null?void 0:Xn.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Oe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Oe,"_list"),"aria-activedescendant":Wt?Sn:void 0},zt),{},{value:mn?en:"",readOnly:!mn,unselectable:mn?null:"on",style:(0,Ye.Z)((0,Ye.Z)({},Xn.style),{},{opacity:mn?null:0})})),Ln},ue=he.forwardRef(Ze),Je=ue;function ke(He){return Array.isArray(He)?He:He!==void 0?[He]:[]}var Me=typeof window!="undefined"&&window.document&&window.document.documentElement,ft=Me;function me(He){return He!=null}function ce(He){return!He&&He!==0}function ze(He){return["string","number"].includes((0,Ae.Z)(He))}function Mt(He){var Ge=void 0;return He&&(ze(He.title)?Ge=He.title.toString():ze(He.label)&&(Ge=He.label.toString())),Ge}function xt(He,Ge){ft?he.useLayoutEffect(He,Ge):he.useEffect(He,Ge)}function ve(He){var Ge;return(Ge=He.key)!==null&&Ge!==void 0?Ge:He.value}var We=function(Ge){Ge.preventDefault(),Ge.stopPropagation()},_e=function(Ge){var ye=Ge.id,Le=Ge.prefixCls,Oe=Ge.values,Ke=Ge.open,Bt=Ge.searchValue,on=Ge.autoClearSearchValue,mn=Ge.inputRef,Sn=Ge.placeholder,en=Ge.disabled,Wt=Ge.mode,zt=Ge.showSearch,yn=Ge.autoFocus,Ln=Ge.autoComplete,kn=Ge.activeDescendantId,Mn=Ge.tabIndex,Xn=Ge.removeIcon,Qn=Ge.maxTagCount,Jn=Ge.maxTagTextLength,$n=Ge.maxTagPlaceholder,zn=$n===void 0?function(Dn){return"+ ".concat(Dn.length," ...")}:$n,Zn=Ge.tagRender,Un=Ge.onToggleOpen,ur=Ge.onRemove,qn=Ge.onInputChange,lr=Ge.onInputPaste,ir=Ge.onInputKeyDown,er=Ge.onInputMouseDown,tr=Ge.onInputCompositionStart,gr=Ge.onInputCompositionEnd,mr=Ge.onInputBlur,cr=he.useRef(null),vr=(0,he.useState)(0),Cr=(0,Ee.Z)(vr,2),or=Cr[0],dr=Cr[1],Gn=(0,he.useState)(!1),Sr=(0,Ee.Z)(Gn,2),Rr=Sr[0],Wr=Sr[1],Er="".concat(Le,"-selection"),Lr=Ke||Wt==="multiple"&&on===!1||Wt==="tags"?Bt:"",Ir=Wt==="tags"||Wt==="multiple"&&on===!1||zt&&(Ke||Rr);xt(function(){dr(cr.current.scrollWidth)},[Lr]);var Br=function(dn,Hn,_n,wn,Pn){return he.createElement("span",{title:Mt(dn),className:Se()("".concat(Er,"-item"),(0,ge.Z)({},"".concat(Er,"-item-disabled"),_n))},he.createElement("span",{className:"".concat(Er,"-item-content")},Hn),wn&&he.createElement(Re,{className:"".concat(Er,"-item-remove"),onMouseDown:We,onClick:Pn,customizeIcon:Xn},"\xD7"))},zr=function(dn,Hn,_n,wn,Pn,Rn){var Fn=function(Pr){We(Pr),Un(!Ke)};return he.createElement("span",{onMouseDown:Fn},Zn({label:Hn,value:dn,disabled:_n,closable:wn,onClose:Pn,isMaxTag:!!Rn}))},fr=function(dn){var Hn=dn.disabled,_n=dn.label,wn=dn.value,Pn=!en&&!Hn,Rn=_n;if(typeof Jn=="number"&&(typeof _n=="string"||typeof _n=="number")){var Fn=String(Rn);Fn.length>Jn&&(Rn="".concat(Fn.slice(0,Jn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(dn)};return typeof Zn=="function"?zr(wn,Rn,Hn,Pn,rr):Br(dn,Rn,Hn,Pn,rr)},Yn=function(dn){if(!Oe.length)return null;var Hn=typeof zn=="function"?zn(dn):zn;return typeof Zn=="function"?zr(void 0,Hn,!1,!1,void 0,!0):Br({title:Hn},Hn,!1)},Cn=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){Wr(!0)},onBlur:function(){Wr(!1)}},he.createElement(Je,{ref:mn,open:Ke,prefixCls:Le,id:ye,inputElement:null,disabled:en,autoFocus:yn,autoComplete:Ln,editable:Ir,activeDescendantId:kn,value:Lr,onKeyDown:ir,onMouseDown:er,onChange:qn,onPaste:lr,onCompositionStart:tr,onCompositionEnd:gr,onBlur:mr,tabIndex:Mn,attrs:(0,gt.Z)(Ge,!0)}),he.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Lr,"\xA0")),An=he.createElement(ot.Z,{prefixCls:"".concat(Er,"-overflow"),data:Oe,renderItem:fr,renderRest:Yn,suffix:Cn,itemKey:ve,maxCount:Qn});return he.createElement("span",{className:"".concat(Er,"-wrap")},An,!Oe.length&&!Lr&&he.createElement("span",{className:"".concat(Er,"-placeholder")},Sn))},jt=_e,kt=function(Ge){var ye=Ge.inputElement,Le=Ge.prefixCls,Oe=Ge.id,Ke=Ge.inputRef,Bt=Ge.disabled,on=Ge.autoFocus,mn=Ge.autoComplete,Sn=Ge.activeDescendantId,en=Ge.mode,Wt=Ge.open,zt=Ge.values,yn=Ge.placeholder,Ln=Ge.tabIndex,kn=Ge.showSearch,Mn=Ge.searchValue,Xn=Ge.activeValue,Qn=Ge.maxLength,Jn=Ge.onInputKeyDown,$n=Ge.onInputMouseDown,zn=Ge.onInputChange,Zn=Ge.onInputPaste,Un=Ge.onInputCompositionStart,ur=Ge.onInputCompositionEnd,qn=Ge.onInputBlur,lr=Ge.title,ir=he.useState(!1),er=(0,Ee.Z)(ir,2),tr=er[0],gr=er[1],mr=en==="combobox",cr=mr||kn,vr=zt[0],Cr=Mn||"";mr&&Xn&&!tr&&(Cr=Xn),he.useEffect(function(){mr&&gr(!1)},[mr,Xn]);var or=en!=="combobox"&&!Wt&&!kn?!1:!!Cr,dr=lr===void 0?Mt(vr):lr,Gn=he.useMemo(function(){return vr?null:he.createElement("span",{className:"".concat(Le,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},yn)},[vr,or,yn,Le]);return he.createElement("span",{className:"".concat(Le,"-selection-wrap")},he.createElement("span",{className:"".concat(Le,"-selection-search")},he.createElement(Je,{ref:Ke,prefixCls:Le,id:Oe,open:Wt,inputElement:ye,disabled:Bt,autoFocus:on,autoComplete:mn,editable:cr,activeDescendantId:Sn,value:Cr,onKeyDown:Jn,onMouseDown:$n,onChange:function(Rr){gr(!0),zn(Rr)},onPaste:Zn,onCompositionStart:Un,onCompositionEnd:ur,onBlur:qn,tabIndex:Ln,attrs:(0,gt.Z)(Ge,!0),maxLength:mr?Qn:void 0})),!mr&&vr?he.createElement("span",{className:"".concat(Le,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},vr.label):null,Gn)},Vt=kt,je=function(Ge,ye){var Le=(0,he.useRef)(null),Oe=(0,he.useRef)(!1),Ke=Ge.prefixCls,Bt=Ge.open,on=Ge.mode,mn=Ge.showSearch,Sn=Ge.tokenWithEnter,en=Ge.disabled,Wt=Ge.prefix,zt=Ge.autoClearSearchValue,yn=Ge.onSearch,Ln=Ge.onSearchSubmit,kn=Ge.onToggleOpen,Mn=Ge.onInputKeyDown,Xn=Ge.onInputBlur,Qn=Ge.domRef;he.useImperativeHandle(ye,function(){return{focus:function(dr){Le.current.focus(dr)},blur:function(){Le.current.blur()}}});var Jn=rt(0),$n=(0,Ee.Z)(Jn,2),zn=$n[0],Zn=$n[1],Un=function(dr){var Gn=dr.which,Sr=Le.current instanceof HTMLTextAreaElement;!Sr&&Bt&&(Gn===Qe.Z.UP||Gn===Qe.Z.DOWN)&&dr.preventDefault(),Mn&&Mn(dr),Gn===Qe.Z.ENTER&&on==="tags"&&!Oe.current&&!Bt&&(Ln==null||Ln(dr.target.value)),!(Sr&&!Bt&&~[Qe.Z.UP,Qe.Z.DOWN,Qe.Z.LEFT,Qe.Z.RIGHT].indexOf(Gn))&&Rt(Gn)&&kn(!0)},ur=function(){Zn(!0)},qn=(0,he.useRef)(null),lr=function(dr){yn(dr,!0,Oe.current)!==!1&&kn(!0)},ir=function(){Oe.current=!0},er=function(dr){Oe.current=!1,on!=="combobox"&&lr(dr.target.value)},tr=function(dr){var Gn=dr.target.value;if(Sn&&qn.current&&/[\r\n]/.test(qn.current)){var Sr=qn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Gn=Gn.replace(Sr,qn.current)}qn.current=null,lr(Gn)},gr=function(dr){var Gn=dr.clipboardData,Sr=Gn==null?void 0:Gn.getData("text");qn.current=Sr||""},mr=function(dr){var Gn=dr.target;if(Gn!==Le.current){var Sr=document.body.style.msTouchAction!==void 0;Sr?setTimeout(function(){Le.current.focus()}):Le.current.focus()}},cr=function(dr){var Gn=zn();dr.target!==Le.current&&!Gn&&!(on==="combobox"&&en)&&dr.preventDefault(),(on!=="combobox"&&(!mn||!Gn)||!Bt)&&(Bt&&zt!==!1&&yn("",!0,!1),kn())},vr={inputRef:Le,onInputKeyDown:Un,onInputMouseDown:ur,onInputChange:tr,onInputPaste:gr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Xn},Cr=on==="multiple"||on==="tags"?he.createElement(jt,(0,E.Z)({},Ge,vr)):he.createElement(Vt,(0,E.Z)({},Ge,vr));return he.createElement("div",{ref:Qn,className:"".concat(Ke,"-selector"),onClick:mr,onMouseDown:cr},Wt&&he.createElement("div",{className:"".concat(Ke,"-prefix")},Wt),Cr)},Nt=he.forwardRef(je),st=Nt,ae=re(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(Ge){var ye=Ge===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"}}},oe=function(Ge,ye){var Le=Ge.prefixCls,Oe=Ge.disabled,Ke=Ge.visible,Bt=Ge.children,on=Ge.popupElement,mn=Ge.animation,Sn=Ge.transitionName,en=Ge.dropdownStyle,Wt=Ge.dropdownClassName,zt=Ge.direction,yn=zt===void 0?"ltr":zt,Ln=Ge.placement,kn=Ge.builtinPlacements,Mn=Ge.dropdownMatchSelectWidth,Xn=Ge.dropdownRender,Qn=Ge.dropdownAlign,Jn=Ge.getPopupContainer,$n=Ge.empty,zn=Ge.getTriggerDOMNode,Zn=Ge.onPopupVisibleChange,Un=Ge.onPopupMouseEnter,ur=(0,Pe.Z)(Ge,te),qn="".concat(Le,"-dropdown"),lr=on;Xn&&(lr=Xn(on));var ir=he.useMemo(function(){return kn||ee(Mn)},[kn,Mn]),er=mn?"".concat(qn,"-").concat(mn):Sn,tr=typeof Mn=="number",gr=he.useMemo(function(){return tr?null:Mn===!1?"minWidth":"width"},[Mn,tr]),mr=en;tr&&(mr=(0,Ye.Z)((0,Ye.Z)({},mr),{},{width:Mn}));var cr=he.useRef(null);return he.useImperativeHandle(ye,function(){return{getPopupElement:function(){var Cr;return(Cr=cr.current)===null||Cr===void 0?void 0:Cr.popupElement}}}),he.createElement(ae.Z,(0,E.Z)({},ur,{showAction:Zn?["click"]:[],hideAction:Zn?["click"]:[],popupPlacement:Ln||(yn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:he.createElement("div",{onMouseEnter:Un},lr),ref:cr,stretch:gr,popupAlign:Qn,popupVisible:Ke,getPopupContainer:Jn,popupClassName:Se()(Wt,(0,ge.Z)({},"".concat(qn,"-empty"),$n)),popupStyle:mr,getTriggerDOMNode:zn,onPopupVisibleChange:Zn}),Bt)},se=he.forwardRef(oe),ne=se,pe=re(66712);function xe(He,Ge){var ye=He.key,Le;return"value"in He&&(Le=He.value),ye!=null?ye:Le!==void 0?Le:"rc-index-key-".concat(Ge)}function ut(He){return typeof He!="undefined"&&!Number.isNaN(He)}function Ie(He,Ge){var ye=He||{},Le=ye.label,Oe=ye.value,Ke=ye.options,Bt=ye.groupLabel,on=Le||(Ge?"children":"label");return{label:on,value:Oe||"value",options:Ke||"options",groupLabel:Bt||on}}function Ve(He){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=Ge.fieldNames,Le=Ge.childrenAsData,Oe=[],Ke=Ie(ye,!1),Bt=Ke.label,on=Ke.value,mn=Ke.options,Sn=Ke.groupLabel;function en(Wt,zt){Array.isArray(Wt)&&Wt.forEach(function(yn){if(zt||!(mn in yn)){var Ln=yn[on];Oe.push({key:xe(yn,Oe.length),groupOption:zt,data:yn,label:yn[Bt],value:Ln})}else{var kn=yn[Sn];kn===void 0&&Le&&(kn=yn.label),Oe.push({key:xe(yn,Oe.length),group:!0,data:yn,label:kn}),en(yn[mn],!0)}})}return en(He,!1),Oe}function ht(He){var Ge=(0,Ye.Z)({},He);return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,we.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ge}}),Ge}var Dt=function(Ge,ye,Le){if(!ye||!ye.length)return null;var Oe=!1,Ke=function on(mn,Sn){var en=(0,pe.Z)(Sn),Wt=en[0],zt=en.slice(1);if(!Wt)return[mn];var yn=mn.split(Wt);return Oe=Oe||yn.length>1,yn.reduce(function(Ln,kn){return[].concat((0,lt.Z)(Ln),(0,lt.Z)(on(kn,zt)))},[]).filter(Boolean)},Bt=Ke(Ge,ye);return Oe?typeof Le!="undefined"?Bt.slice(0,Le):Bt:null},Ot=he.createContext(null),Jt=Ot;function Yt(He){var Ge=He.visible,ye=He.values;if(!Ge)return null;var Le=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ye.slice(0,Le).map(function(Oe){var Ke=Oe.label,Bt=Oe.value;return["number","string"].includes((0,Ae.Z)(Ke))?Ke:Bt}).join(", ")),ye.length>Le?", ...":null)}var Ut=["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"],Pt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Et=function(Ge){return Ge==="tags"||Ge==="multiple"},mt=he.forwardRef(function(He,Ge){var ye,Le=He.id,Oe=He.prefixCls,Ke=He.className,Bt=He.showSearch,on=He.tagRender,mn=He.direction,Sn=He.omitDomProps,en=He.displayValues,Wt=He.onDisplayValuesChange,zt=He.emptyOptions,yn=He.notFoundContent,Ln=yn===void 0?"Not Found":yn,kn=He.onClear,Mn=He.mode,Xn=He.disabled,Qn=He.loading,Jn=He.getInputElement,$n=He.getRawInputElement,zn=He.open,Zn=He.defaultOpen,Un=He.onDropdownVisibleChange,ur=He.activeValue,qn=He.onActiveValueChange,lr=He.activeDescendantId,ir=He.searchValue,er=He.autoClearSearchValue,tr=He.onSearch,gr=He.onSearchSplit,mr=He.tokenSeparators,cr=He.allowClear,vr=He.prefix,Cr=He.suffixIcon,or=He.clearIcon,dr=He.OptionList,Gn=He.animation,Sr=He.transitionName,Rr=He.dropdownStyle,Wr=He.dropdownClassName,Er=He.dropdownMatchSelectWidth,Lr=He.dropdownRender,Ir=He.dropdownAlign,Br=He.placement,zr=He.builtinPlacements,fr=He.getPopupContainer,Yn=He.showAction,Cn=Yn===void 0?[]:Yn,An=He.onFocus,Dn=He.onBlur,dn=He.onKeyUp,Hn=He.onKeyDown,_n=He.onMouseDown,wn=(0,Pe.Z)(He,Ut),Pn=Et(Mn),Rn=(Bt!==void 0?Bt:Pn)||Mn==="combobox",Fn=(0,Ye.Z)({},wn);Pt.forEach(function(Dr){delete Fn[Dr]}),Sn==null||Sn.forEach(function(Dr){delete Fn[Dr]});var rr=he.useState(!1),Pr=(0,Ee.Z)(rr,2),br=Pr[0],Ar=Pr[1];he.useEffect(function(){Ar((0,$e.Z)())},[]);var Or=he.useRef(null),kr=he.useRef(null),Hr=he.useRef(null),Mr=he.useRef(null),$r=he.useRef(null),ti=he.useRef(!1),Oi=wt(),Fi=(0,Ee.Z)(Oi,3),xi=Fi[0],mi=Fi[1],Xi=Fi[2];he.useImperativeHandle(Ge,function(){var Dr,xr;return{focus:(Dr=Mr.current)===null||Dr===void 0?void 0:Dr.focus,blur:(xr=Mr.current)===null||xr===void 0?void 0:xr.blur,scrollTo:function(fi){var Yr;return(Yr=$r.current)===null||Yr===void 0?void 0:Yr.scrollTo(fi)},nativeElement:Or.current||kr.current}});var Tr=he.useMemo(function(){var Dr;if(Mn!=="combobox")return ir;var xr=(Dr=en[0])===null||Dr===void 0?void 0:Dr.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,Mn,en]),to=Mn==="combobox"&&typeof Jn=="function"&&Jn()||null,ni=typeof $n=="function"&&$n(),Ti=(0,Ce.x1)(kr,ni==null||(ye=ni.props)===null||ye===void 0?void 0:ye.ref),ao=he.useState(!1),Yi=(0,Ee.Z)(ao,2),vi=Yi[0],Li=Yi[1];(0,dt.Z)(function(){Li(!0)},[]);var Vr=(0,Te.Z)(!1,{defaultValue:Zn,value:zn}),zi=(0,Ee.Z)(Vr,2),lo=zi[0],Zi=zi[1],Jr=vi?lo:!1,xo=!Ln&&zt;(Xn||xo&&Jr&&Mn==="combobox")&&(Jr=!1);var so=xo?!1:Jr,ar=he.useCallback(function(Dr){var xr=Dr!==void 0?Dr:!Jr;Xn||(Zi(xr),Jr!==xr&&(Un==null||Un(xr)))},[Xn,Jr,Zi,Un]),yr=he.useMemo(function(){return(mr||[]).some(function(Dr){return[`
`,`\r
`].includes(Dr)})},[mr]),hr=he.useContext(Jt)||{},pr=hr.maxCount,Nr=hr.rawValues,Zr=function(xr,ci,fi){if(!(Pn&&ut(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Yr=!0,ri=xr;qn==null||qn(null);var Vi=Dt(xr,mr,ut(pr)?pr-Nr.size:void 0),Wi=fi?null:Vi;return Mn!=="combobox"&&Wi&&(ri="",gr==null||gr(Wi),ar(!1),Yr=!1),tr&&Tr!==ri&&tr(ri,{source:ci?"typing":"effect"}),Yr}},_i=function(xr){!xr||!xr.trim()||tr(xr,{source:"submit"})};he.useEffect(function(){!Jr&&!Pn&&Mn!=="combobox"&&Zr("",!1,!1)},[Jr]),he.useEffect(function(){lo&&Xn&&Zi(!1),Xn&&!ti.current&&mi(!1)},[Xn]);var gi=rt(),ui=(0,Ee.Z)(gi,2),Xr=ui[0],Hi=ui[1],Qi=he.useRef(!1),Di=function(xr){var ci=Xr(),fi=xr.key,Yr=fi==="Enter";if(Yr&&(Mn!=="combobox"&&xr.preventDefault(),Jr||ar(!0)),Hi(!!Tr),fi==="Backspace"&&!ci&&Pn&&!Tr&&en.length){for(var ri=(0,lt.Z)(en),Vi=null,Wi=ri.length-1;Wi>=0;Wi-=1){var ro=ri[Wi];if(!ro.disabled){ri.splice(Wi,1),Vi=ro;break}}Vi&&Wt(ri,{type:"remove",values:[Vi]})}for(var Ai=arguments.length,Bi=new Array(Ai>1?Ai-1:0),Gi=1;Gi<Ai;Gi++)Bi[Gi-1]=arguments[Gi];if(Jr&&(!Yr||!Qi.current)){var co;Yr&&(Qi.current=!0),(co=$r.current)===null||co===void 0||co.onKeyDown.apply(co,[xr].concat(Bi))}Hn==null||Hn.apply(void 0,[xr].concat(Bi))},Ji=function(xr){for(var ci=arguments.length,fi=new Array(ci>1?ci-1:0),Yr=1;Yr<ci;Yr++)fi[Yr-1]=arguments[Yr];if(Jr){var ri;(ri=$r.current)===null||ri===void 0||ri.onKeyUp.apply(ri,[xr].concat(fi))}xr.key==="Enter"&&(Qi.current=!1),dn==null||dn.apply(void 0,[xr].concat(fi))},no=function(xr){var ci=en.filter(function(fi){return fi!==xr});Wt(ci,{type:"remove",values:[xr]})},$i=function(){Qi.current=!1},Bo=he.useRef(!1),$a=function(){mi(!0),Xn||(An&&!Bo.current&&An.apply(void 0,arguments),Cn.includes("focus")&&ar(!0)),Bo.current=!0},ya=function(){ti.current=!0,mi(!1,function(){Bo.current=!1,ti.current=!1,ar(!1)}),!Xn&&(Tr&&(Mn==="tags"?tr(Tr,{source:"submit"}):Mn==="multiple"&&tr("",{source:"blur"})),Dn&&Dn.apply(void 0,arguments))},qi=[];he.useEffect(function(){return function(){qi.forEach(function(Dr){return clearTimeout(Dr)}),qi.splice(0,qi.length)}},[]);var uo=function(xr){var ci,fi=xr.target,Yr=(ci=Hr.current)===null||ci===void 0?void 0:ci.getPopupElement();if(Yr&&Yr.contains(fi)){var ri=setTimeout(function(){var Ai=qi.indexOf(ri);if(Ai!==-1&&qi.splice(Ai,1),Xi(),!br&&!Yr.contains(document.activeElement)){var Bi;(Bi=Mr.current)===null||Bi===void 0||Bi.focus()}});qi.push(ri)}for(var Vi=arguments.length,Wi=new Array(Vi>1?Vi-1:0),ro=1;ro<Vi;ro++)Wi[ro-1]=arguments[ro];_n==null||_n.apply(void 0,[xr].concat(Wi))},ji=he.useState({}),ba=(0,Ee.Z)(ji,2),xa=ba[1];function Va(){xa({})}var Ca;ni&&(Ca=function(xr){ar(xr)}),pt(function(){var Dr;return[Or.current,(Dr=Hr.current)===null||Dr===void 0?void 0:Dr.getPopupElement()]},so,ar,!!ni);var Ga=he.useMemo(function(){return(0,Ye.Z)((0,Ye.Z)({},He),{},{notFoundContent:Ln,open:Jr,triggerOpen:so,id:Le,showSearch:Rn,multiple:Pn,toggleOpen:ar})},[He,Ln,so,Jr,Le,Rn,Pn,ar]),Uo=!!Cr||Qn,Ko;Uo&&(Ko=he.createElement(Re,{className:Se()("".concat(Oe,"-arrow"),(0,ge.Z)({},"".concat(Oe,"-arrow-loading"),Qn)),customizeIcon:Cr,customizeIconProps:{loading:Qn,searchValue:Tr,open:Jr,focused:xi,showSearch:Rn}}));var Co=function(){var xr;kn==null||kn(),(xr=Mr.current)===null||xr===void 0||xr.focus(),Wt([],{type:"clear",values:en}),Zr("",!1,!1)},Xo=et(Oe,Co,en,cr,or,Xn,Tr,Mn),Sa=Xo.allowClear,Yo=Xo.clearIcon,ko=he.createElement(dr,{ref:$r}),wa=Se()(Oe,Ke,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Oe,"-focused"),xi),"".concat(Oe,"-multiple"),Pn),"".concat(Oe,"-single"),!Pn),"".concat(Oe,"-allow-clear"),cr),"".concat(Oe,"-show-arrow"),Uo),"".concat(Oe,"-disabled"),Xn),"".concat(Oe,"-loading"),Qn),"".concat(Oe,"-open"),Jr),"".concat(Oe,"-customize-input"),to),"".concat(Oe,"-show-search"),Rn)),Mo=he.createElement(ne,{ref:Hr,disabled:Xn,prefixCls:Oe,visible:so,popupElement:ko,animation:Gn,transitionName:Sr,dropdownStyle:Rr,dropdownClassName:Wr,direction:mn,dropdownMatchSelectWidth:Er,dropdownRender:Lr,dropdownAlign:Ir,placement:Br,builtinPlacements:zr,getPopupContainer:fr,empty:zt,getTriggerDOMNode:function(xr){return kr.current||xr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},ni?he.cloneElement(ni,{ref:Ti}):he.createElement(st,(0,E.Z)({},He,{domRef:kr,prefixCls:Oe,inputElement:to,ref:Mr,id:Le,prefix:vr,showSearch:Rn,autoClearSearchValue:er,mode:Mn,activeDescendantId:lr,tagRender:on,values:en,open:Jr,onToggleOpen:ar,activeValue:ur,searchValue:Tr,onSearch:Zr,onSearchSubmit:_i,onRemove:no,tokenWithEnter:yr,onInputBlur:$i}))),Ci;return ni?Ci=Mo:Ci=he.createElement("div",(0,E.Z)({className:wa},Fn,{ref:Or,onMouseDown:uo,onKeyDown:Di,onKeyUp:Ji,onFocus:$a,onBlur:ya}),he.createElement(Yt,{visible:xi&&!Jr,values:en}),Mo,Ko,Sa&&Yo),he.createElement(nt.Provider,{value:Ga},Ci)}),ct=mt,qt=function(){return null};qt.isSelectOptGroup=!0;var Ht=qt,Fe=function(){return null};Fe.isSelectOption=!0;var it=Fe,Xe=re(80547),St=re(2738),De=re(48911);function qe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yt=["disabled","title","children","style","className"];function Ct(He){return typeof He=="string"||typeof He=="number"}var $t=function(Ge,ye){var Le=Lt(),Oe=Le.prefixCls,Ke=Le.id,Bt=Le.open,on=Le.multiple,mn=Le.mode,Sn=Le.searchValue,en=Le.toggleOpen,Wt=Le.notFoundContent,zt=Le.onPopupScroll,yn=he.useContext(Jt),Ln=yn.maxCount,kn=yn.flattenOptions,Mn=yn.onActiveValue,Xn=yn.defaultActiveFirstOption,Qn=yn.onSelect,Jn=yn.menuItemSelectedIcon,$n=yn.rawValues,zn=yn.fieldNames,Zn=yn.virtual,Un=yn.direction,ur=yn.listHeight,qn=yn.listItemHeight,lr=yn.optionRender,ir="".concat(Oe,"-item"),er=(0,Xe.Z)(function(){return kn},[Bt,kn],function(Yn,Cn){return Cn[0]&&Yn[1]!==Cn[1]}),tr=he.useRef(null),gr=he.useMemo(function(){return on&&ut(Ln)&&($n==null?void 0:$n.size)>=Ln},[on,Ln,$n==null?void 0:$n.size]),mr=function(Cn){Cn.preventDefault()},cr=function(Cn){var An;(An=tr.current)===null||An===void 0||An.scrollTo(typeof Cn=="number"?{index:Cn}:Cn)},vr=he.useCallback(function(Yn){return mn==="combobox"?!1:$n.has(Yn)},[mn,(0,lt.Z)($n).toString(),$n.size]),Cr=function(Cn){for(var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Dn=er.length,dn=0;dn<Dn;dn+=1){var Hn=(Cn+dn*An+Dn)%Dn,_n=er[Hn]||{},wn=_n.group,Pn=_n.data;if(!wn&&!(Pn!=null&&Pn.disabled)&&(vr(Pn.value)||!gr))return Hn}return-1},or=he.useState(function(){return Cr(0)}),dr=(0,Ee.Z)(or,2),Gn=dr[0],Sr=dr[1],Rr=function(Cn){var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sr(Cn);var Dn={source:An?"keyboard":"mouse"},dn=er[Cn];if(!dn){Mn(null,-1,Dn);return}Mn(dn.value,Cn,Dn)};(0,he.useEffect)(function(){Rr(Xn!==!1?Cr(0):-1)},[er.length,Sn]);var Wr=he.useCallback(function(Yn){return mn==="combobox"?String(Yn).toLowerCase()===Sn.toLowerCase():$n.has(Yn)},[mn,Sn,(0,lt.Z)($n).toString(),$n.size]);(0,he.useEffect)(function(){var Yn=setTimeout(function(){if(!on&&Bt&&$n.size===1){var An=Array.from($n)[0],Dn=er.findIndex(function(dn){var Hn=dn.data;return Sn?String(Hn.value).startsWith(Sn):Hn.value===An});Dn!==-1&&(Rr(Dn),cr(Dn))}});if(Bt){var Cn;(Cn=tr.current)===null||Cn===void 0||Cn.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[Bt,Sn]);var Er=function(Cn){Cn!==void 0&&Qn(Cn,{selected:!$n.has(Cn)}),on||en(!1)};if(he.useImperativeHandle(ye,function(){return{onKeyDown:function(Cn){var An=Cn.which,Dn=Cn.ctrlKey;switch(An){case Qe.Z.N:case Qe.Z.P:case Qe.Z.UP:case Qe.Z.DOWN:{var dn=0;if(An===Qe.Z.UP?dn=-1:An===Qe.Z.DOWN?dn=1:qe()&&Dn&&(An===Qe.Z.N?dn=1:An===Qe.Z.P&&(dn=-1)),dn!==0){var Hn=Cr(Gn+dn,dn);cr(Hn),Rr(Hn,!0)}break}case Qe.Z.TAB:case Qe.Z.ENTER:{var _n,wn=er[Gn];wn&&!(wn!=null&&(_n=wn.data)!==null&&_n!==void 0&&_n.disabled)&&!gr?Er(wn.value):Er(void 0),Bt&&Cn.preventDefault();break}case Qe.Z.ESC:en(!1),Bt&&Cn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Cn){cr(Cn)}}}),er.length===0)return he.createElement("div",{role:"listbox",id:"".concat(Ke,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},Wt);var Lr=Object.keys(zn).map(function(Yn){return zn[Yn]}),Ir=function(Cn){return Cn.label};function Br(Yn,Cn){var An=Yn.group;return{role:An?"presentation":"option",id:"".concat(Ke,"_list_").concat(Cn)}}var zr=function(Cn){var An=er[Cn];if(!An)return null;var Dn=An.data||{},dn=Dn.value,Hn=An.group,_n=(0,gt.Z)(Dn,!0),wn=Ir(An);return An?he.createElement("div",(0,E.Z)({"aria-label":typeof wn=="string"&&!Hn?wn:null},_n,{key:Cn},Br(An,Cn),{"aria-selected":Wr(dn)}),dn):null},fr={role:"listbox",id:"".concat(Ke,"_list")};return he.createElement(he.Fragment,null,Zn&&he.createElement("div",(0,E.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),zr(Gn-1),zr(Gn),zr(Gn+1)),he.createElement(De.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:zt,virtual:Zn,direction:Un,innerProps:Zn?null:fr},function(Yn,Cn){var An=Yn.group,Dn=Yn.groupOption,dn=Yn.data,Hn=Yn.label,_n=Yn.value,wn=dn.key;if(An){var Pn,Rn=(Pn=dn.title)!==null&&Pn!==void 0?Pn:Ct(Hn)?Hn.toString():void 0;return he.createElement("div",{className:Se()(ir,"".concat(ir,"-group"),dn.className),title:Rn},Hn!==void 0?Hn:wn)}var Fn=dn.disabled,rr=dn.title,Pr=dn.children,br=dn.style,Ar=dn.className,Or=(0,Pe.Z)(dn,yt),kr=(0,St.Z)(Or,Lr),Hr=vr(_n),Mr=Fn||!Hr&&gr,$r="".concat(ir,"-option"),ti=Se()(ir,$r,Ar,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat($r,"-grouped"),Dn),"".concat($r,"-active"),Gn===Cn&&!Mr),"".concat($r,"-disabled"),Mr),"".concat($r,"-selected"),Hr)),Oi=Ir(Yn),Fi=!Jn||typeof Jn=="function"||Hr,xi=typeof Oi=="number"?Oi:Oi||_n,mi=Ct(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),he.createElement("div",(0,E.Z)({},(0,gt.Z)(kr),Zn?{}:Br(Yn,Cn),{"aria-selected":Wr(_n),className:ti,title:mi,onMouseMove:function(){Gn===Cn||Mr||Rr(Cn)},onClick:function(){Mr||Er(_n)},style:br}),he.createElement("div",{className:"".concat($r,"-content")},typeof lr=="function"?lr(Yn,{index:Cn}):xi),he.isValidElement(Jn)||Hr,Fi&&he.createElement(Re,{className:"".concat(ir,"-option-state"),customizeIcon:Jn,customizeIconProps:{value:_n,disabled:Mr,isSelected:Hr}},Hr?"\u2713":null))}))},rn=he.forwardRef($t),In=rn,En=function(He,Ge){var ye=he.useRef({values:new Map,options:new Map}),Le=he.useMemo(function(){var Ke=ye.current,Bt=Ke.values,on=Ke.options,mn=He.map(function(Wt){if(Wt.label===void 0){var zt;return(0,Ye.Z)((0,Ye.Z)({},Wt),{},{label:(zt=Bt.get(Wt.value))===null||zt===void 0?void 0:zt.label})}return Wt}),Sn=new Map,en=new Map;return mn.forEach(function(Wt){Sn.set(Wt.value,Wt),en.set(Wt.value,Ge.get(Wt.value)||on.get(Wt.value))}),ye.current.values=Sn,ye.current.options=en,mn},[He,Ge]),Oe=he.useCallback(function(Ke){return Ge.get(Ke)||ye.current.options.get(Ke)},[Ge]);return[Le,Oe]};function nn(He,Ge){return ke(He).join("").toUpperCase().includes(Ge)}var vn=function(He,Ge,ye,Le,Oe){return he.useMemo(function(){if(!ye||Le===!1)return He;var Ke=Ge.options,Bt=Ge.label,on=Ge.value,mn=[],Sn=typeof Le=="function",en=ye.toUpperCase(),Wt=Sn?Le:function(yn,Ln){return Oe?nn(Ln[Oe],en):Ln[Ke]?nn(Ln[Bt!=="children"?Bt:"label"],en):nn(Ln[on],en)},zt=Sn?function(yn){return ht(yn)}:function(yn){return yn};return He.forEach(function(yn){if(yn[Ke]){var Ln=Wt(ye,zt(yn));if(Ln)mn.push(yn);else{var kn=yn[Ke].filter(function(Mn){return Wt(ye,zt(Mn))});kn.length&&mn.push((0,Ye.Z)((0,Ye.Z)({},yn),{},(0,ge.Z)({},Ke,kn)))}return}Wt(ye,zt(yn))&&mn.push(yn)}),mn},[He,Le,Oe,ye,Ge])},ln=re(6551),Tn=re(11592),xn=["children","value"],an=["children"];function Kt(He){var Ge=He,ye=Ge.key,Le=Ge.props,Oe=Le.children,Ke=Le.value,Bt=(0,Pe.Z)(Le,xn);return(0,Ye.Z)({key:ye,value:Ke!==void 0?Ke:ye,children:Oe},Bt)}function Tt(He){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Tn.Z)(He).map(function(ye,Le){if(!he.isValidElement(ye)||!ye.type)return null;var Oe=ye,Ke=Oe.type.isSelectOptGroup,Bt=Oe.key,on=Oe.props,mn=on.children,Sn=(0,Pe.Z)(on,an);return Ge||!Ke?Kt(ye):(0,Ye.Z)((0,Ye.Z)({key:"__RC_SELECT_GRP__".concat(Bt===null?Le:Bt,"__"),label:Bt},Sn),{},{options:Tt(mn)})}).filter(function(ye){return ye})}var At=function(Ge,ye,Le,Oe,Ke){return he.useMemo(function(){var Bt=Ge,on=!Ge;on&&(Bt=Tt(ye));var mn=new Map,Sn=new Map,en=function(yn,Ln,kn){kn&&typeof kn=="string"&&yn.set(Ln[kn],Ln)},Wt=function zt(yn){for(var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kn=0;kn<yn.length;kn+=1){var Mn=yn[kn];!Mn[Le.options]||Ln?(mn.set(Mn[Le.value],Mn),en(Sn,Mn,Le.label),en(Sn,Mn,Oe),en(Sn,Mn,Ke)):zt(Mn[Le.options],!0)}};return Wt(Bt),{options:Bt,valueOptions:mn,labelOptions:Sn}},[Ge,ye,Le,Oe,Ke])},Ft=At;function Qt(He){var Ge=he.useRef();Ge.current=He;var ye=he.useCallback(function(){return Ge.current.apply(Ge,arguments)},[]);return ye}function hn(He){var Ge=He.mode,ye=He.options,Le=He.children,Oe=He.backfill,Ke=He.allowClear,Bt=He.placeholder,on=He.getInputElement,mn=He.showSearch,Sn=He.onSearch,en=He.defaultOpen,Wt=He.autoFocus,zt=He.labelInValue,yn=He.value,Ln=He.inputValue,kn=He.optionLabelProp,Mn=isMultiple(Ge),Xn=mn!==void 0?mn:Mn||Ge==="combobox",Qn=ye||convertChildrenToData(Le);if(warning(Ge!=="tags"||Qn.every(function(Zn){return!Zn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ge==="tags"||Ge==="combobox"){var Jn=Qn.some(function(Zn){return Zn.options?Zn.options.some(function(Un){return typeof("value"in Un?Un.value:Un.key)=="number"}):typeof("value"in Zn?Zn.value:Zn.key)=="number"});warning(!Jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ge!=="combobox"||!kn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ge==="combobox"||!Oe,"`backfill` only works with `combobox` mode."),warning(Ge==="combobox"||!on,"`getInputElement` only work with `combobox` mode."),noteOnce(Ge!=="combobox"||!on||!Ke||!Bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Sn&&!Xn&&Ge!=="combobox"&&Ge!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!en||Wt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),yn!=null){var $n=toArray(yn);warning(!zt||$n.every(function(Zn){return _typeof(Zn)==="object"&&("key"in Zn||"value"in Zn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Mn||Array.isArray(yn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Le){var zn=null;toNodeArray(Le).some(function(Zn){if(!React.isValidElement(Zn)||!Zn.type)return!1;var Un=Zn,ur=Un.type;if(ur.isSelectOption)return!1;if(ur.isSelectOptGroup){var qn=toNodeArray(Zn.props.children).every(function(lr){return!React.isValidElement(lr)||!Zn.type||lr.type.isSelectOption?!0:(zn=lr.type,!1)});return!qn}return zn=ur,!0}),zn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zn.displayName||zn.name||zn,"`.")),warning(Ln===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function pn(He,Ge){if(He){var ye=function Le(Oe){for(var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=0;Bt<Oe.length;Bt++){var on=Oe[Bt];if(on[Ge==null?void 0:Ge.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ke&&Array.isArray(on[Ge==null?void 0:Ge.options])&&Le(on[Ge==null?void 0:Ge.options],!0))break}};ye(He)}}var sn=null,un=["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"],bn=["inputValue"];function On(He){return!He||(0,Ae.Z)(He)!=="object"}var vt=he.forwardRef(function(He,Ge){var ye=He.id,Le=He.mode,Oe=He.prefixCls,Ke=Oe===void 0?"rc-select":Oe,Bt=He.backfill,on=He.fieldNames,mn=He.inputValue,Sn=He.searchValue,en=He.onSearch,Wt=He.autoClearSearchValue,zt=Wt===void 0?!0:Wt,yn=He.onSelect,Ln=He.onDeselect,kn=He.dropdownMatchSelectWidth,Mn=kn===void 0?!0:kn,Xn=He.filterOption,Qn=He.filterSort,Jn=He.optionFilterProp,$n=He.optionLabelProp,zn=He.options,Zn=He.optionRender,Un=He.children,ur=He.defaultActiveFirstOption,qn=He.menuItemSelectedIcon,lr=He.virtual,ir=He.direction,er=He.listHeight,tr=er===void 0?200:er,gr=He.listItemHeight,mr=gr===void 0?20:gr,cr=He.labelRender,vr=He.value,Cr=He.defaultValue,or=He.labelInValue,dr=He.onChange,Gn=He.maxCount,Sr=(0,Pe.Z)(He,un),Rr=(0,ln.ZP)(ye),Wr=Et(Le),Er=!!(!zn&&Un),Lr=he.useMemo(function(){return Xn===void 0&&Le==="combobox"?!1:Xn},[Xn,Le]),Ir=he.useMemo(function(){return Ie(on,Er)},[JSON.stringify(on),Er]),Br=(0,Te.Z)("",{value:Sn!==void 0?Sn:mn,postState:function(yr){return yr||""}}),zr=(0,Ee.Z)(Br,2),fr=zr[0],Yn=zr[1],Cn=Ft(zn,Un,Ir,Jn,$n),An=Cn.valueOptions,Dn=Cn.labelOptions,dn=Cn.options,Hn=he.useCallback(function(ar){var yr=ke(ar);return yr.map(function(hr){var pr,Nr,Zr,_i,gi;if(On(hr))pr=hr;else{var ui;Zr=hr.key,Nr=hr.label,pr=(ui=hr.value)!==null&&ui!==void 0?ui:Zr}var Xr=An.get(pr);if(Xr){var Hi;if(Nr===void 0&&(Nr=Xr==null?void 0:Xr[$n||Ir.label]),Zr===void 0&&(Zr=(Hi=Xr==null?void 0:Xr.key)!==null&&Hi!==void 0?Hi:pr),_i=Xr==null?void 0:Xr.disabled,gi=Xr==null?void 0:Xr.title,0)var Qi}return{label:Nr,value:pr,key:Zr,disabled:_i,title:gi}})},[Ir,$n,An]),_n=(0,Te.Z)(Cr,{value:vr}),wn=(0,Ee.Z)(_n,2),Pn=wn[0],Rn=wn[1],Fn=he.useMemo(function(){var ar,yr=Wr&&Pn===null?[]:Pn,hr=Hn(yr);return Le==="combobox"&&ce((ar=hr[0])===null||ar===void 0?void 0:ar.value)?[]:hr},[Pn,Hn,Le,Wr]),rr=En(Fn,An),Pr=(0,Ee.Z)(rr,2),br=Pr[0],Ar=Pr[1],Or=he.useMemo(function(){if(!Le&&br.length===1){var ar=br[0];if(ar.value===null&&(ar.label===null||ar.label===void 0))return[]}return br.map(function(yr){var hr;return(0,Ye.Z)((0,Ye.Z)({},yr),{},{label:(hr=typeof cr=="function"?cr(yr):yr.label)!==null&&hr!==void 0?hr:yr.value})})},[Le,br,cr]),kr=he.useMemo(function(){return new Set(br.map(function(ar){return ar.value}))},[br]);he.useEffect(function(){if(Le==="combobox"){var ar,yr=(ar=br[0])===null||ar===void 0?void 0:ar.value;Yn(me(yr)?String(yr):"")}},[br]);var Hr=Qt(function(ar,yr){var hr=yr!=null?yr:ar;return(0,ge.Z)((0,ge.Z)({},Ir.value,ar),Ir.label,hr)}),Mr=he.useMemo(function(){if(Le!=="tags")return dn;var ar=(0,lt.Z)(dn),yr=function(pr){return An.has(pr)};return(0,lt.Z)(br).sort(function(hr,pr){return hr.value<pr.value?-1:1}).forEach(function(hr){var pr=hr.value;yr(pr)||ar.push(Hr(pr,hr.label))}),ar},[Hr,dn,An,br,Le]),$r=vn(Mr,Ir,fr,Lr,Jn),ti=he.useMemo(function(){return Le!=="tags"||!fr||$r.some(function(ar){return ar[Jn||"value"]===fr})||$r.some(function(ar){return ar[Ir.value]===fr})?$r:[Hr(fr)].concat((0,lt.Z)($r))},[Hr,Jn,Le,$r,fr,Ir]),Oi=function ar(yr){var hr=(0,lt.Z)(yr).sort(function(pr,Nr){return Qn(pr,Nr,{searchValue:fr})});return hr.map(function(pr){return Array.isArray(pr.options)?(0,Ye.Z)((0,Ye.Z)({},pr),{},{options:pr.options.length>0?ar(pr.options):pr.options}):pr})},Fi=he.useMemo(function(){return Qn?Oi(ti):ti},[ti,Qn,fr]),xi=he.useMemo(function(){return Ve(Fi,{fieldNames:Ir,childrenAsData:Er})},[Fi,Ir,Er]),mi=function(yr){var hr=Hn(yr);if(Rn(hr),dr&&(hr.length!==br.length||hr.some(function(Zr,_i){var gi;return((gi=br[_i])===null||gi===void 0?void 0:gi.value)!==(Zr==null?void 0:Zr.value)}))){var pr=or?hr:hr.map(function(Zr){return Zr.value}),Nr=hr.map(function(Zr){return ht(Ar(Zr.value))});dr(Wr?pr:pr[0],Wr?Nr:Nr[0])}},Xi=he.useState(null),Tr=(0,Ee.Z)(Xi,2),to=Tr[0],ni=Tr[1],Ti=he.useState(0),ao=(0,Ee.Z)(Ti,2),Yi=ao[0],vi=ao[1],Li=ur!==void 0?ur:Le!=="combobox",Vr=he.useCallback(function(ar,yr){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=hr.source,Nr=pr===void 0?"keyboard":pr;vi(yr),Bt&&Le==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[Bt,Le]),zi=function(yr,hr,pr){var Nr=function(){var no,$i=Ar(yr);return[or?{label:$i==null?void 0:$i[Ir.label],value:yr,key:(no=$i==null?void 0:$i.key)!==null&&no!==void 0?no:yr}:yr,ht($i)]};if(hr&&yn){var Zr=Nr(),_i=(0,Ee.Z)(Zr,2),gi=_i[0],ui=_i[1];yn(gi,ui)}else if(!hr&&Ln&&pr!=="clear"){var Xr=Nr(),Hi=(0,Ee.Z)(Xr,2),Qi=Hi[0],Di=Hi[1];Ln(Qi,Di)}},lo=Qt(function(ar,yr){var hr,pr=Wr?yr.selected:!0;pr?hr=Wr?[].concat((0,lt.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),zi(ar,pr),Le==="combobox"?ni(""):(!Et||zt)&&(Yn(""),ni(""))}),Zi=function(yr,hr){mi(yr);var pr=hr.type,Nr=hr.values;(pr==="remove"||pr==="clear")&&Nr.forEach(function(Zr){zi(Zr.value,!1,pr)})},Jr=function(yr,hr){if(Yn(yr),ni(null),hr.source==="submit"){var pr=(yr||"").trim();if(pr){var Nr=Array.from(new Set([].concat((0,lt.Z)(kr),[pr])));mi(Nr),zi(pr,!0),Yn("")}return}hr.source!=="blur"&&(Le==="combobox"&&mi(yr),en==null||en(yr))},xo=function(yr){var hr=yr;Le!=="tags"&&(hr=yr.map(function(Nr){var Zr=Dn.get(Nr);return Zr==null?void 0:Zr.value}).filter(function(Nr){return Nr!==void 0}));var pr=Array.from(new Set([].concat((0,lt.Z)(kr),(0,lt.Z)(hr))));mi(pr),pr.forEach(function(Nr){zi(Nr,!0)})},so=he.useMemo(function(){var ar=lr!==!1&&Mn!==!1;return(0,Ye.Z)((0,Ye.Z)({},Cn),{},{flattenOptions:xi,onActiveValue:Vr,defaultActiveFirstOption:Li,onSelect:lo,menuItemSelectedIcon:qn,rawValues:kr,fieldNames:Ir,virtual:ar,direction:ir,listHeight:tr,listItemHeight:mr,childrenAsData:Er,maxCount:Gn,optionRender:Zn})},[Gn,Cn,xi,Vr,Li,lo,qn,kr,Ir,lr,Mn,ir,tr,mr,Er,Zn]);return he.createElement(Jt.Provider,{value:so},he.createElement(ct,(0,E.Z)({},Sr,{id:Rr,prefixCls:Ke,ref:Ge,omitDomProps:bn,mode:Le,displayValues:Or,onDisplayValuesChange:Zi,direction:ir,searchValue:fr,onSearch:Jr,autoClearSearchValue:zt,onSearchSplit:xo,dropdownMatchSelectWidth:Mn,OptionList:In,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),Gt=vt;Gt.Option=it,Gt.OptGroup=Ht;var cn=Gt,fn=cn},22711:function(tn,_t,re){"use strict";re.r(_t),re.d(_t,{ResizableTextArea:function(){return Be},default:function(){return Je}});var E=re(54476),lt=re(20068),ge=re(33885),Ye=re(94480),Ee=re(42978),Pe=re(75931),Ae=re(92310),Te=re.n(Ae),we=re(36901),he=re(66003),tt=re(30292),Se=re(18929),dt=re(59301),$e=re(76190),Ce=re(29301),Ne=re(34280),Re=re(16089),et=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,nt=["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"],Lt={},wt;function rt(ke){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=ke.getAttribute("id")||ke.getAttribute("data-reactid")||ke.getAttribute("name");if(Me&&Lt[ft])return Lt[ft];var me=window.getComputedStyle(ke),ce=me.getPropertyValue("box-sizing")||me.getPropertyValue("-moz-box-sizing")||me.getPropertyValue("-webkit-box-sizing"),ze=parseFloat(me.getPropertyValue("padding-bottom"))+parseFloat(me.getPropertyValue("padding-top")),Mt=parseFloat(me.getPropertyValue("border-bottom-width"))+parseFloat(me.getPropertyValue("border-top-width")),xt=nt.map(function(We){return"".concat(We,":").concat(me.getPropertyValue(We))}).join(";"),ve={sizingStyle:xt,paddingSize:ze,borderSize:Mt,boxSizing:ce};return Me&&ft&&(Lt[ft]=ve),ve}function pt(ke){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;wt||(wt=document.createElement("textarea"),wt.setAttribute("tab-index","-1"),wt.setAttribute("aria-hidden","true"),wt.setAttribute("name","hiddenTextarea"),document.body.appendChild(wt)),ke.getAttribute("wrap")?wt.setAttribute("wrap",ke.getAttribute("wrap")):wt.removeAttribute("wrap");var ce=rt(ke,Me),ze=ce.paddingSize,Mt=ce.borderSize,xt=ce.boxSizing,ve=ce.sizingStyle;wt.setAttribute("style","".concat(ve,";").concat(et)),wt.value=ke.value||ke.placeholder||"";var We=void 0,_e=void 0,jt,kt=wt.scrollHeight;if(xt==="border-box"?kt+=Mt:xt==="content-box"&&(kt-=ze),ft!==null||me!==null){wt.value=" ";var Vt=wt.scrollHeight-ze;ft!==null&&(We=Vt*ft,xt==="border-box"&&(We=We+ze+Mt),kt=Math.max(We,kt)),me!==null&&(_e=Vt*me,xt==="border-box"&&(_e=_e+ze+Mt),jt=kt>_e?"":"hidden",kt=Math.min(_e,kt))}var je={height:kt,overflowY:jt,resize:"none"};return We&&(je.minHeight=We),_e&&(je.maxHeight=_e),je}var Qe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rt=0,gt=1,ot=2,It=dt.forwardRef(function(ke,Me){var ft=ke,me=ft.prefixCls,ce=ft.defaultValue,ze=ft.value,Mt=ft.autoSize,xt=ft.onResize,ve=ft.className,We=ft.style,_e=ft.disabled,jt=ft.onChange,kt=ft.onInternalAutoSize,Vt=(0,Pe.Z)(ft,Qe),je=(0,Se.Z)(ce,{value:ze,postState:function(it){return it!=null?it:""}}),Nt=(0,Ee.Z)(je,2),st=Nt[0],ae=Nt[1],te=function(it){ae(it.target.value),jt==null||jt(it)},ee=dt.useRef();dt.useImperativeHandle(Me,function(){return{textArea:ee.current}});var oe=dt.useMemo(function(){return Mt&&(0,$e.Z)(Mt)==="object"?[Mt.minRows,Mt.maxRows]:[]},[Mt]),se=(0,Ee.Z)(oe,2),ne=se[0],pe=se[1],xe=!!Mt,ut=function(){try{if(document.activeElement===ee.current){var it=ee.current,Xe=it.selectionStart,St=it.selectionEnd,De=it.scrollTop;ee.current.setSelectionRange(Xe,St),ee.current.scrollTop=De}}catch(qe){}},Ie=dt.useState(ot),Ve=(0,Ee.Z)(Ie,2),ht=Ve[0],Dt=Ve[1],Ot=dt.useState(),Jt=(0,Ee.Z)(Ot,2),Yt=Jt[0],Ut=Jt[1],Pt=function(){Dt(Rt)};(0,Ne.Z)(function(){xe&&Pt()},[ze,ne,pe,xe]),(0,Ne.Z)(function(){if(ht===Rt)Dt(gt);else if(ht===gt){var Fe=pt(ee.current,!1,ne,pe);Dt(ot),Ut(Fe)}else ut()},[ht]);var Et=dt.useRef(),mt=function(){Re.Z.cancel(Et.current)},ct=function(it){ht===ot&&(xt==null||xt(it),Mt&&(mt(),Et.current=(0,Re.Z)(function(){Pt()})))};dt.useEffect(function(){return mt},[]);var qt=xe?Yt:null,Ht=(0,ge.Z)((0,ge.Z)({},We),qt);return(ht===Rt||ht===gt)&&(Ht.overflowY="hidden",Ht.overflowX="hidden"),dt.createElement(Ce.Z,{onResize:ct,disabled:!(Mt||xt)},dt.createElement("textarea",(0,E.Z)({},Vt,{ref:ee,style:Ht,className:Te()(me,ve,(0,lt.Z)({},"".concat(me,"-disabled"),_e)),disabled:_e,value:st,onChange:te})))}),Be=It,Ue=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ze=dt.forwardRef(function(ke,Me){var ft,me=ke.defaultValue,ce=ke.value,ze=ke.onFocus,Mt=ke.onBlur,xt=ke.onChange,ve=ke.allowClear,We=ke.maxLength,_e=ke.onCompositionStart,jt=ke.onCompositionEnd,kt=ke.suffix,Vt=ke.prefixCls,je=Vt===void 0?"rc-textarea":Vt,Nt=ke.showCount,st=ke.count,ae=ke.className,te=ke.style,ee=ke.disabled,oe=ke.hidden,se=ke.classNames,ne=ke.styles,pe=ke.onResize,xe=ke.onClear,ut=ke.onPressEnter,Ie=ke.readOnly,Ve=ke.autoSize,ht=ke.onKeyDown,Dt=(0,Pe.Z)(ke,Ue),Ot=(0,Se.Z)(me,{value:ce,defaultValue:me}),Jt=(0,Ee.Z)(Ot,2),Yt=Jt[0],Ut=Jt[1],Pt=Yt==null?"":String(Yt),Et=dt.useState(!1),mt=(0,Ee.Z)(Et,2),ct=mt[0],qt=mt[1],Ht=dt.useRef(!1),Fe=dt.useState(null),it=(0,Ee.Z)(Fe,2),Xe=it[0],St=it[1],De=(0,dt.useRef)(null),qe=(0,dt.useRef)(null),yt=function(){var Gt;return(Gt=qe.current)===null||Gt===void 0?void 0:Gt.textArea},Ct=function(){yt().focus()};(0,dt.useImperativeHandle)(Me,function(){var vt;return{resizableTextArea:qe.current,focus:Ct,blur:function(){yt().blur()},nativeElement:((vt=De.current)===null||vt===void 0?void 0:vt.nativeElement)||yt()}}),(0,dt.useEffect)(function(){qt(function(vt){return!ee&&vt})},[ee]);var $t=dt.useState(null),rn=(0,Ee.Z)($t,2),In=rn[0],En=rn[1];dt.useEffect(function(){if(In){var vt;(vt=yt()).setSelectionRange.apply(vt,(0,Ye.Z)(In))}},[In]);var nn=(0,he.Z)(st,Nt),vn=(ft=nn.max)!==null&&ft!==void 0?ft:We,ln=Number(vn)>0,Tn=nn.strategy(Pt),xn=!!vn&&Tn>vn,an=function(Gt,cn){var fn=cn;!Ht.current&&nn.exceedFormatter&&nn.max&&nn.strategy(cn)>nn.max&&(fn=nn.exceedFormatter(cn,{max:nn.max}),cn!==fn&&En([yt().selectionStart||0,yt().selectionEnd||0])),Ut(fn),(0,tt.rJ)(Gt.currentTarget,Gt,xt,fn)},Kt=function(Gt){Ht.current=!0,_e==null||_e(Gt)},Tt=function(Gt){Ht.current=!1,an(Gt,Gt.currentTarget.value),jt==null||jt(Gt)},At=function(Gt){an(Gt,Gt.target.value)},Ft=function(Gt){Gt.key==="Enter"&&ut&&ut(Gt),ht==null||ht(Gt)},Qt=function(Gt){qt(!0),ze==null||ze(Gt)},hn=function(Gt){qt(!1),Mt==null||Mt(Gt)},pn=function(Gt){Ut(""),Ct(),(0,tt.rJ)(yt(),Gt,xt)},sn=kt,un;nn.show&&(nn.showFormatter?un=nn.showFormatter({value:Pt,count:Tn,maxLength:vn}):un="".concat(Tn).concat(ln?" / ".concat(vn):""),sn=dt.createElement(dt.Fragment,null,sn,dt.createElement("span",{className:Te()("".concat(je,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},un)));var bn=function(Gt){var cn;pe==null||pe(Gt),(cn=yt())!==null&&cn!==void 0&&cn.style.height&&St(!0)},On=!Ve&&!Nt&&!ve;return dt.createElement(we.BaseInput,{ref:De,value:Pt,allowClear:ve,handleReset:pn,suffix:sn,prefixCls:je,classNames:(0,ge.Z)((0,ge.Z)({},se),{},{affixWrapper:Te()(se==null?void 0:se.affixWrapper,(0,lt.Z)((0,lt.Z)({},"".concat(je,"-show-count"),Nt),"".concat(je,"-textarea-allow-clear"),ve))}),disabled:ee,focused:ct,className:Te()(ae,xn&&"".concat(je,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},te),Xe&&!On?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof un=="string"?un:void 0}},hidden:oe,readOnly:Ie,onClear:xe},dt.createElement(Be,(0,E.Z)({},Dt,{autoSize:Ve,maxLength:We,onKeyDown:Ft,onChange:At,onFocus:Qt,onBlur:hn,onCompositionStart:Kt,onCompositionEnd:Tt,className:Te()(se==null?void 0:se.textarea),style:(0,ge.Z)((0,ge.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:je,onResize:bn,ref:qe,readOnly:Ie})))}),ue=Ze,Je=ue},48911:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return st}});var E=re(54476),lt=re(76190),ge=re(33885),Ye=re(20068),Ee=re(42978),Pe=re(75931),Ae=re(92310),Te=re.n(Ae),we=re(29301),he=re(70425),tt=re(34280),Se=re(59301),dt=re(4676),$e=Se.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,pe=ae.prefixCls,xe=ae.onInnerResize,ut=ae.innerProps,Ie=ae.rtl,Ve=ae.extra,ht={},Dt={display:"flex",flexDirection:"column"};return oe!==void 0&&(ht={height:ee,position:"relative",overflow:"hidden"},Dt=(0,ge.Z)((0,ge.Z)({},Dt),{},(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({transform:"translateY(".concat(oe,"px)")},Ie?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Se.createElement("div",{style:ht},Se.createElement(we.Z,{onResize:function(Jt){var Yt=Jt.offsetHeight;Yt&&xe&&xe()}},Se.createElement("div",(0,E.Z)({style:Dt,className:Te()((0,Ye.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},ut),ne,Ve)))});$e.displayName="Filler";var Ce=$e;function Ne(ae){var te=ae.children,ee=ae.setRef,oe=Se.useCallback(function(se){ee(se)},[]);return Se.cloneElement(te,{ref:oe})}function Re(ae,te,ee,oe,se,ne,pe,xe){var ut=xe.getKey;return ae.slice(te,ee+1).map(function(Ie,Ve){var ht=te+Ve,Dt=pe(Ie,ht,{style:{width:oe},offsetX:se}),Ot=ut(Ie);return Se.createElement(Ne,{key:Ot,setRef:function(Yt){return ne(Ie,Yt)}},Dt)})}function et(ae,te,ee,oe){var se=ee-ae,ne=te-ee,pe=Math.min(se,ne)*2;if(oe<=pe){var xe=Math.floor(oe/2);return oe%2?ee+xe+1:ee-xe}return se>ne?ee-(oe-ne):ee+(oe-se)}function nt(ae,te,ee){var oe=ae.length,se=te.length,ne,pe;if(oe===0&&se===0)return null;oe<se?(ne=ae,pe=te):(ne=te,pe=ae);var xe={__EMPTY_ITEM__:!0};function ut(Jt){return Jt!==void 0?ee(Jt):xe}for(var Ie=null,Ve=Math.abs(oe-se)!==1,ht=0;ht<pe.length;ht+=1){var Dt=ut(ne[ht]),Ot=ut(pe[ht]);if(Dt!==Ot){Ie=ht,Ve=Ve||Dt!==ut(pe[ht+1]);break}}return Ie===null?null:{index:Ie,multiple:Ve}}function Lt(ae,te,ee){var oe=Se.useState(ae),se=(0,Ee.Z)(oe,2),ne=se[0],pe=se[1],xe=Se.useState(null),ut=(0,Ee.Z)(xe,2),Ie=ut[0],Ve=ut[1];return Se.useEffect(function(){var ht=nt(ne||[],ae||[],te);(ht==null?void 0:ht.index)!==void 0&&(ee==null||ee(ht.index),Ve(ae[ht.index])),pe(ae)},[ae]),[Ie]}var wt=re(16089),rt=(typeof navigator=="undefined"?"undefined":(0,lt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),pt=rt,Qe=function(ae,te,ee,oe){var se=(0,Se.useRef)(!1),ne=(0,Se.useRef)(null);function pe(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var xe=(0,Se.useRef)({top:ae,bottom:te,left:ee,right:oe});return xe.current.top=ae,xe.current.bottom=te,xe.current.left=ee,xe.current.right=oe,function(ut,Ie){var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ht=ut?Ie<0&&xe.current.left||Ie>0&&xe.current.right:Ie<0&&xe.current.top||Ie>0&&xe.current.bottom;return Ve&&ht?(clearTimeout(ne.current),se.current=!1):(!ht||se.current)&&pe(),!se.current&&ht}};function Rt(ae,te,ee,oe,se,ne,pe){var xe=(0,Se.useRef)(0),ut=(0,Se.useRef)(null),Ie=(0,Se.useRef)(null),Ve=(0,Se.useRef)(!1),ht=Qe(te,ee,oe,se);function Dt(Et,mt){if(wt.Z.cancel(ut.current),!ht(!1,mt)){var ct=Et;if(!ct._virtualHandled)ct._virtualHandled=!0;else return;xe.current+=mt,Ie.current=mt,pt||ct.preventDefault(),ut.current=(0,wt.Z)(function(){var qt=Ve.current?10:1;pe(xe.current*qt,!1),xe.current=0})}}function Ot(Et,mt){pe(mt,!0),pt||Et.preventDefault()}var Jt=(0,Se.useRef)(null),Yt=(0,Se.useRef)(null);function Ut(Et){if(ae){wt.Z.cancel(Yt.current),Yt.current=(0,wt.Z)(function(){Jt.current=null},2);var mt=Et.deltaX,ct=Et.deltaY,qt=Et.shiftKey,Ht=mt,Fe=ct;(Jt.current==="sx"||!Jt.current&&qt&&ct&&!mt)&&(Ht=ct,Fe=0,Jt.current="sx");var it=Math.abs(Ht),Xe=Math.abs(Fe);Jt.current===null&&(Jt.current=ne&&it>Xe?"x":"y"),Jt.current==="y"?Dt(Et,Fe):Ot(Et,Ht)}}function Pt(Et){ae&&(Ve.current=Et.detail===Ie.current)}return[Ut,Pt]}function gt(ae,te,ee,oe){var se=Se.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Ee.Z)(se,2),pe=ne[0],xe=ne[1],ut=function(Ve){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve,Dt=pe.get(Ve),Ot=pe.get(ht);if(Dt===void 0||Ot===void 0)for(var Jt=ae.length,Yt=xe.length;Yt<Jt;Yt+=1){var Ut,Pt=ae[Yt],Et=te(Pt);pe.set(Et,Yt);var mt=(Ut=ee.get(Et))!==null&&Ut!==void 0?Ut:oe;if(xe[Yt]=(xe[Yt-1]||0)+mt,Et===Ve&&(Dt=Yt),Et===ht&&(Ot=Yt),Dt!==void 0&&Ot!==void 0)break}return{top:xe[Dt-1]||0,bottom:xe[Ot]}};return ut}var ot=re(67732),It=re(83652),Be=function(){function ae(){(0,ot.Z)(this,ae),(0,Ye.Z)(this,"maps",void 0),(0,Ye.Z)(this,"id",0),(0,Ye.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,It.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}(),Ue=Be;function Ze(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function ue(ae,te,ee){var oe=Se.useState(0),se=(0,Ee.Z)(oe,2),ne=se[0],pe=se[1],xe=(0,Se.useRef)(new Map),ut=(0,Se.useRef)(new Ue),Ie=(0,Se.useRef)(0);function Ve(){Ie.current+=1}function ht(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ve();var Jt=function(){var Pt=!1;xe.current.forEach(function(Et,mt){if(Et&&Et.offsetParent){var ct=Et.offsetHeight,qt=getComputedStyle(Et),Ht=qt.marginTop,Fe=qt.marginBottom,it=Ze(Ht),Xe=Ze(Fe),St=ct+it+Xe;ut.current.get(mt)!==St&&(ut.current.set(mt,St),Pt=!0)}}),Pt&&pe(function(Et){return Et+1})};if(Ot)Jt();else{Ie.current+=1;var Yt=Ie.current;Promise.resolve().then(function(){Yt===Ie.current&&Jt()})}}function Dt(Ot,Jt){var Yt=ae(Ot),Ut=xe.current.get(Yt);Jt?(xe.current.set(Yt,Jt),ht()):xe.current.delete(Yt),!Ut!=!Jt&&(Jt?te==null||te(Ot):ee==null||ee(Ot))}return(0,Se.useEffect)(function(){return Ve},[]),[Dt,ht,ut.current,ne]}var Je=14/15;function ke(ae,te,ee){var oe=(0,Se.useRef)(!1),se=(0,Se.useRef)(0),ne=(0,Se.useRef)(0),pe=(0,Se.useRef)(null),xe=(0,Se.useRef)(null),ut,Ie=function(Ot){if(oe.current){var Jt=Math.ceil(Ot.touches[0].pageX),Yt=Math.ceil(Ot.touches[0].pageY),Ut=se.current-Jt,Pt=ne.current-Yt,Et=Math.abs(Ut)>Math.abs(Pt);Et?se.current=Jt:ne.current=Yt;var mt=ee(Et,Et?Ut:Pt,!1,Ot);mt&&Ot.preventDefault(),clearInterval(xe.current),mt&&(xe.current=setInterval(function(){Et?Ut*=Je:Pt*=Je;var ct=Math.floor(Et?Ut:Pt);(!ee(Et,ct,!0)||Math.abs(ct)<=.1)&&clearInterval(xe.current)},16))}},Ve=function(){oe.current=!1,ut()},ht=function(Ot){ut(),Ot.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(Ot.touches[0].pageX),ne.current=Math.ceil(Ot.touches[0].pageY),pe.current=Ot.target,pe.current.addEventListener("touchmove",Ie,{passive:!1}),pe.current.addEventListener("touchend",Ve,{passive:!0}))};ut=function(){pe.current&&(pe.current.removeEventListener("touchmove",Ie),pe.current.removeEventListener("touchend",Ve))},(0,tt.Z)(function(){return ae&&te.current.addEventListener("touchstart",ht,{passive:!0}),function(){var Dt;(Dt=te.current)===null||Dt===void 0||Dt.removeEventListener("touchstart",ht),ut(),clearInterval(xe.current)}},[ae])}function Me(ae){return Math.floor(Math.pow(ae,.5))}function ft(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function me(ae,te,ee){Se.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,pe,xe=function(){wt.Z.cancel(ne)},ut=function Dt(){xe(),ne=(0,wt.Z)(function(){ee(pe),Dt()})},Ie=function(){se=!1,xe()},Ve=function(Ot){if(!(Ot.target.draggable||Ot.button!==0)){var Jt=Ot;Jt._virtualHandled||(Jt._virtualHandled=!0,se=!0)}},ht=function(Ot){if(se){var Jt=ft(Ot,!1),Yt=oe.getBoundingClientRect(),Ut=Yt.top,Pt=Yt.bottom;if(Jt<=Ut){var Et=Ut-Jt;pe=-Me(Et),ut()}else if(Jt>=Pt){var mt=Jt-Pt;pe=Me(mt),ut()}else xe()}};return oe.addEventListener("mousedown",Ve),oe.ownerDocument.addEventListener("mouseup",Ie),oe.ownerDocument.addEventListener("mousemove",ht),oe.ownerDocument.addEventListener("dragend",Ie),function(){oe.removeEventListener("mousedown",Ve),oe.ownerDocument.removeEventListener("mouseup",Ie),oe.ownerDocument.removeEventListener("mousemove",ht),oe.ownerDocument.removeEventListener("dragend",Ie),xe()}}},[ae])}var ce=10;function ze(ae,te,ee,oe,se,ne,pe,xe){var ut=Se.useRef(),Ie=Se.useState(null),Ve=(0,Ee.Z)(Ie,2),ht=Ve[0],Dt=Ve[1];return(0,tt.Z)(function(){if(ht&&ht.times<ce){if(!ae.current){Dt(function(nn){return(0,ge.Z)({},nn)});return}ne();var Ot=ht.targetAlign,Jt=ht.originAlign,Yt=ht.index,Ut=ht.offset,Pt=ae.current.clientHeight,Et=!1,mt=Ot,ct=null;if(Pt){for(var qt=Ot||Jt,Ht=0,Fe=0,it=0,Xe=Math.min(te.length-1,Yt),St=0;St<=Xe;St+=1){var De=se(te[St]);Fe=Ht;var qe=ee.get(De);it=Fe+(qe===void 0?oe:qe),Ht=it}for(var yt=qt==="top"?Ut:Pt-Ut,Ct=Xe;Ct>=0;Ct-=1){var $t=se(te[Ct]),rn=ee.get($t);if(rn===void 0){Et=!0;break}if(yt-=rn,yt<=0)break}switch(qt){case"top":ct=Fe-Ut;break;case"bottom":ct=it-Pt+Ut;break;default:{var In=ae.current.scrollTop,En=In+Pt;Fe<In?mt="top":it>En&&(mt="bottom")}}ct!==null&&pe(ct),ct!==ht.lastTop&&(Et=!0)}Et&&Dt((0,ge.Z)((0,ge.Z)({},ht),{},{times:ht.times+1,targetAlign:mt,lastTop:ct}))}},[ht,ae.current]),function(Ot){if(Ot==null){xe();return}if(wt.Z.cancel(ut.current),typeof Ot=="number")pe(Ot);else if(Ot&&(0,lt.Z)(Ot)==="object"){var Jt,Yt=Ot.align;"index"in Ot?Jt=Ot.index:Jt=te.findIndex(function(Et){return se(Et)===Ot.key});var Ut=Ot.offset,Pt=Ut===void 0?0:Ut;Dt({times:0,index:Jt,offset:Pt,originAlign:Yt})}}}var Mt=Se.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,xe=ae.onStopMove,ut=ae.onScroll,Ie=ae.horizontal,Ve=ae.spinSize,ht=ae.containerSize,Dt=ae.style,Ot=ae.thumbStyle,Jt=ae.showScrollBar,Yt=Se.useState(!1),Ut=(0,Ee.Z)(Yt,2),Pt=Ut[0],Et=Ut[1],mt=Se.useState(null),ct=(0,Ee.Z)(mt,2),qt=ct[0],Ht=ct[1],Fe=Se.useState(null),it=(0,Ee.Z)(Fe,2),Xe=it[0],St=it[1],De=!oe,qe=Se.useRef(),yt=Se.useRef(),Ct=Se.useState(Jt),$t=(0,Ee.Z)(Ct,2),rn=$t[0],In=$t[1],En=Se.useRef(),nn=function(){Jt===!0||Jt===!1||(clearTimeout(En.current),In(!0),En.current=setTimeout(function(){In(!1)},3e3))},vn=ne-ht||0,ln=ht-Ve||0,Tn=Se.useMemo(function(){if(se===0||vn===0)return 0;var pn=se/vn;return pn*ln},[se,vn,ln]),xn=function(sn){sn.stopPropagation(),sn.preventDefault()},an=Se.useRef({top:Tn,dragging:Pt,pageY:qt,startTop:Xe});an.current={top:Tn,dragging:Pt,pageY:qt,startTop:Xe};var Kt=function(sn){Et(!0),Ht(ft(sn,Ie)),St(an.current.top),pe(),sn.stopPropagation(),sn.preventDefault()};Se.useEffect(function(){var pn=function(On){On.preventDefault()},sn=qe.current,un=yt.current;return sn.addEventListener("touchstart",pn,{passive:!1}),un.addEventListener("touchstart",Kt,{passive:!1}),function(){sn.removeEventListener("touchstart",pn),un.removeEventListener("touchstart",Kt)}},[]);var Tt=Se.useRef();Tt.current=vn;var At=Se.useRef();At.current=ln,Se.useEffect(function(){if(Pt){var pn,sn=function(On){var vt=an.current,Gt=vt.dragging,cn=vt.pageY,fn=vt.startTop;wt.Z.cancel(pn);var He=qe.current.getBoundingClientRect(),Ge=ht/(Ie?He.width:He.height);if(Gt){var ye=(ft(On,Ie)-cn)*Ge,Le=fn;!De&&Ie?Le-=ye:Le+=ye;var Oe=Tt.current,Ke=At.current,Bt=Ke?Le/Ke:0,on=Math.ceil(Bt*Oe);on=Math.max(on,0),on=Math.min(on,Oe),pn=(0,wt.Z)(function(){ut(on,Ie)})}},un=function(){Et(!1),xe()};return window.addEventListener("mousemove",sn,{passive:!0}),window.addEventListener("touchmove",sn,{passive:!0}),window.addEventListener("mouseup",un,{passive:!0}),window.addEventListener("touchend",un,{passive:!0}),function(){window.removeEventListener("mousemove",sn),window.removeEventListener("touchmove",sn),window.removeEventListener("mouseup",un),window.removeEventListener("touchend",un),wt.Z.cancel(pn)}}},[Pt]),Se.useEffect(function(){return nn(),function(){clearTimeout(En.current)}},[se]),Se.useImperativeHandle(te,function(){return{delayHidden:nn}});var Ft="".concat(ee,"-scrollbar"),Qt={position:"absolute",visibility:rn?null:"hidden"},hn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ie?(Object.assign(Qt,{height:8,left:0,right:0,bottom:0}),Object.assign(hn,(0,Ye.Z)({height:"100%",width:Ve},De?"left":"right",Tn))):(Object.assign(Qt,(0,Ye.Z)({width:8,top:0,bottom:0},De?"right":"left",0)),Object.assign(hn,{width:"100%",height:Ve,top:Tn})),Se.createElement("div",{ref:qe,className:Te()(Ft,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(Ft,"-horizontal"),Ie),"".concat(Ft,"-vertical"),!Ie),"".concat(Ft,"-visible"),rn)),style:(0,ge.Z)((0,ge.Z)({},Qt),Dt),onMouseDown:xn,onMouseMove:nn},Se.createElement("div",{ref:yt,className:Te()("".concat(Ft,"-thumb"),(0,Ye.Z)({},"".concat(Ft,"-thumb-moving"),Pt)),style:(0,ge.Z)((0,ge.Z)({},hn),Ot),onMouseDown:Kt}))}),xt=Mt,ve=20;function We(){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,ve),Math.floor(ee)}var _e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],jt=[],kt={overflowY:"auto",overflowAnchor:"none"};function Vt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,pe=ae.itemHeight,xe=ae.fullHeight,ut=xe===void 0?!0:xe,Ie=ae.style,Ve=ae.data,ht=ae.children,Dt=ae.itemKey,Ot=ae.virtual,Jt=ae.direction,Yt=ae.scrollWidth,Ut=ae.component,Pt=Ut===void 0?"div":Ut,Et=ae.onScroll,mt=ae.onVirtualScroll,ct=ae.onVisibleChange,qt=ae.innerProps,Ht=ae.extraRender,Fe=ae.styles,it=ae.showScrollBar,Xe=it===void 0?"optional":it,St=(0,Pe.Z)(ae,_e),De=Se.useCallback(function(Cn){return typeof Dt=="function"?Dt(Cn):Cn==null?void 0:Cn[Dt]},[Dt]),qe=ue(De,null,null),yt=(0,Ee.Z)(qe,4),Ct=yt[0],$t=yt[1],rn=yt[2],In=yt[3],En=!!(Ot!==!1&&ne&&pe),nn=Se.useMemo(function(){return Object.values(rn.maps).reduce(function(Cn,An){return Cn+An},0)},[rn.id,rn.maps]),vn=En&&Ve&&(Math.max(pe*Ve.length,nn)>ne||!!Yt),ln=Jt==="rtl",Tn=Te()(oe,(0,Ye.Z)({},"".concat(oe,"-rtl"),ln),se),xn=Ve||jt,an=(0,Se.useRef)(),Kt=(0,Se.useRef)(),Tt=(0,Se.useRef)(),At=(0,Se.useState)(0),Ft=(0,Ee.Z)(At,2),Qt=Ft[0],hn=Ft[1],pn=(0,Se.useState)(0),sn=(0,Ee.Z)(pn,2),un=sn[0],bn=sn[1],On=(0,Se.useState)(!1),vt=(0,Ee.Z)(On,2),Gt=vt[0],cn=vt[1],fn=function(){cn(!0)},He=function(){cn(!1)},Ge={getKey:De};function ye(Cn){hn(function(An){var Dn;typeof Cn=="function"?Dn=Cn(An):Dn=Cn;var dn=ur(Dn);return an.current.scrollTop=dn,dn})}var Le=(0,Se.useRef)({start:0,end:xn.length}),Oe=(0,Se.useRef)(),Ke=Lt(xn,De),Bt=(0,Ee.Z)(Ke,1),on=Bt[0];Oe.current=on;var mn=Se.useMemo(function(){if(!En)return{scrollHeight:void 0,start:0,end:xn.length-1,offset:void 0};if(!vn){var Cn;return{scrollHeight:((Cn=Kt.current)===null||Cn===void 0?void 0:Cn.offsetHeight)||0,start:0,end:xn.length-1,offset:void 0}}for(var An=0,Dn,dn,Hn,_n=xn.length,wn=0;wn<_n;wn+=1){var Pn=xn[wn],Rn=De(Pn),Fn=rn.get(Rn),rr=An+(Fn===void 0?pe:Fn);rr>=Qt&&Dn===void 0&&(Dn=wn,dn=An),rr>Qt+ne&&Hn===void 0&&(Hn=wn),An=rr}return Dn===void 0&&(Dn=0,dn=0,Hn=Math.ceil(ne/pe)),Hn===void 0&&(Hn=xn.length-1),Hn=Math.min(Hn+1,xn.length-1),{scrollHeight:An,start:Dn,end:Hn,offset:dn}},[vn,En,Qt,xn,In,ne]),Sn=mn.scrollHeight,en=mn.start,Wt=mn.end,zt=mn.offset;Le.current.start=en,Le.current.end=Wt,Se.useLayoutEffect(function(){var Cn=rn.getRecord();if(Cn.size===1){var An=Array.from(Cn.keys())[0],Dn=Cn.get(An),dn=xn[en];if(dn&&Dn===void 0){var Hn=De(dn);if(Hn===An){var _n=rn.get(An),wn=_n-pe;ye(function(Pn){return Pn+wn})}}}rn.resetRecord()},[Sn]);var yn=Se.useState({width:0,height:ne}),Ln=(0,Ee.Z)(yn,2),kn=Ln[0],Mn=Ln[1],Xn=function(An){Mn({width:An.offsetWidth,height:An.offsetHeight})},Qn=(0,Se.useRef)(),Jn=(0,Se.useRef)(),$n=Se.useMemo(function(){return We(kn.width,Yt)},[kn.width,Yt]),zn=Se.useMemo(function(){return We(kn.height,Sn)},[kn.height,Sn]),Zn=Sn-ne,Un=(0,Se.useRef)(Zn);Un.current=Zn;function ur(Cn){var An=Cn;return Number.isNaN(Un.current)||(An=Math.min(An,Un.current)),An=Math.max(An,0),An}var qn=Qt<=0,lr=Qt>=Zn,ir=un<=0,er=un>=Yt,tr=Qe(qn,lr,ir,er),gr=function(){return{x:ln?-un:un,y:Qt}},mr=(0,Se.useRef)(gr()),cr=(0,he.zX)(function(Cn){if(mt){var An=(0,ge.Z)((0,ge.Z)({},gr()),Cn);(mr.current.x!==An.x||mr.current.y!==An.y)&&(mt(An),mr.current=An)}});function vr(Cn,An){var Dn=Cn;An?((0,dt.flushSync)(function(){bn(Dn)}),cr()):ye(Dn)}function Cr(Cn){var An=Cn.currentTarget.scrollTop;An!==Qt&&ye(An),Et==null||Et(Cn),cr()}var or=function(An){var Dn=An,dn=Yt?Yt-kn.width:0;return Dn=Math.max(Dn,0),Dn=Math.min(Dn,dn),Dn},dr=(0,he.zX)(function(Cn,An){An?((0,dt.flushSync)(function(){bn(function(Dn){var dn=Dn+(ln?-Cn:Cn);return or(dn)})}),cr()):ye(function(Dn){var dn=Dn+Cn;return dn})}),Gn=Rt(En,qn,lr,ir,er,!!Yt,dr),Sr=(0,Ee.Z)(Gn,2),Rr=Sr[0],Wr=Sr[1];ke(En,an,function(Cn,An,Dn,dn){var Hn=dn;return tr(Cn,An,Dn)?!1:!Hn||!Hn._virtualHandled?(Hn&&(Hn._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:Cn?An:0,deltaY:Cn?0:An}),!0):!1}),me(vn,an,function(Cn){ye(function(An){return An+Cn})}),(0,tt.Z)(function(){function Cn(Dn){var dn=qn&&Dn.detail<0,Hn=lr&&Dn.detail>0;En&&!dn&&!Hn&&Dn.preventDefault()}var An=an.current;return An.addEventListener("wheel",Rr,{passive:!1}),An.addEventListener("DOMMouseScroll",Wr,{passive:!0}),An.addEventListener("MozMousePixelScroll",Cn,{passive:!1}),function(){An.removeEventListener("wheel",Rr),An.removeEventListener("DOMMouseScroll",Wr),An.removeEventListener("MozMousePixelScroll",Cn)}},[En,qn,lr]),(0,tt.Z)(function(){if(Yt){var Cn=or(un);bn(Cn),cr({x:Cn})}},[kn.width,Yt]);var Er=function(){var An,Dn;(An=Qn.current)===null||An===void 0||An.delayHidden(),(Dn=Jn.current)===null||Dn===void 0||Dn.delayHidden()},Lr=ze(an,xn,rn,pe,De,function(){return $t(!0)},ye,Er);Se.useImperativeHandle(te,function(){return{nativeElement:Tt.current,getScrollInfo:gr,scrollTo:function(An){function Dn(dn){return dn&&(0,lt.Z)(dn)==="object"&&("left"in dn||"top"in dn)}Dn(An)?(An.left!==void 0&&bn(or(An.left)),Lr(An.top)):Lr(An)}}}),(0,tt.Z)(function(){if(ct){var Cn=xn.slice(en,Wt+1);ct(Cn,xn)}},[en,Wt,xn]);var Ir=gt(xn,De,rn,pe),Br=Ht==null?void 0:Ht({start:en,end:Wt,virtual:vn,offsetX:un,offsetY:zt,rtl:ln,getSize:Ir}),zr=Re(xn,en,Wt,Yt,un,Ct,ht,Ge),fr=null;ne&&(fr=(0,ge.Z)((0,Ye.Z)({},ut?"height":"maxHeight",ne),kt),En&&(fr.overflowY="hidden",Yt&&(fr.overflowX="hidden"),Gt&&(fr.pointerEvents="none")));var Yn={};return ln&&(Yn.dir="rtl"),Se.createElement("div",(0,E.Z)({ref:Tt,style:(0,ge.Z)((0,ge.Z)({},Ie),{},{position:"relative"}),className:Tn},Yn,St),Se.createElement(we.Z,{onResize:Xn},Se.createElement(Pt,{className:"".concat(oe,"-holder"),style:fr,ref:an,onScroll:Cr,onMouseEnter:Er},Se.createElement(Ce,{prefixCls:oe,height:Sn,offsetX:un,offsetY:zt,scrollWidth:Yt,onInnerResize:$t,ref:Kt,innerProps:qt,rtl:ln,extra:Br},zr))),vn&&Sn>ne&&Se.createElement(xt,{ref:Qn,prefixCls:oe,scrollOffset:Qt,scrollRange:Sn,rtl:ln,onScroll:vr,onStartMove:fn,onStopMove:He,spinSize:zn,containerSize:kn.height,style:Fe==null?void 0:Fe.verticalScrollBar,thumbStyle:Fe==null?void 0:Fe.verticalScrollBarThumb,showScrollBar:Xe}),vn&&Yt>kn.width&&Se.createElement(xt,{ref:Jn,prefixCls:oe,scrollOffset:un,scrollRange:Yt,rtl:ln,onScroll:vr,onStartMove:fn,onStopMove:He,spinSize:$n,containerSize:kn.width,horizontal:!0,style:Fe==null?void 0:Fe.horizontalScrollBar,thumbStyle:Fe==null?void 0:Fe.horizontalScrollBarThumb,showScrollBar:Xe}))}var je=Se.forwardRef(Vt);je.displayName="List";var Nt=je,st=Nt},51581:function(tn,_t,re){"use strict";Object.defineProperty(_t,"__esModule",{value:!0});var E=function(){function Se(dt,$e){for(var Ce=0;Ce<$e.length;Ce++){var Ne=$e[Ce];Ne.enumerable=Ne.enumerable||!1,Ne.configurable=!0,"value"in Ne&&(Ne.writable=!0),Object.defineProperty(dt,Ne.key,Ne)}}return function(dt,$e,Ce){return $e&&Se(dt.prototype,$e),Ce&&Se(dt,Ce),dt}}(),lt=re(59301),ge=Pe(lt),Ye=re(12708),Ee=Pe(Ye);function Pe(Se){return Se&&Se.__esModule?Se:{default:Se}}function Ae(Se,dt){var $e={};for(var Ce in Se)dt.indexOf(Ce)>=0||Object.prototype.hasOwnProperty.call(Se,Ce)&&($e[Ce]=Se[Ce]);return $e}function Te(Se,dt){if(!(Se instanceof dt))throw new TypeError("Cannot call a class as a function")}function we(Se,dt){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt&&(typeof dt=="object"||typeof dt=="function")?dt:Se}function he(Se,dt){if(typeof dt!="function"&&dt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof dt);Se.prototype=Object.create(dt&&dt.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),dt&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,dt):Se.__proto__=dt)}var tt=function(Se){he(dt,Se);function dt($e){Te(this,dt);var Ce=we(this,(dt.__proto__||Object.getPrototypeOf(dt)).call(this,$e));return Ce.scrollListener=Ce.scrollListener.bind(Ce),Ce.eventListenerOptions=Ce.eventListenerOptions.bind(Ce),Ce.mousewheelListener=Ce.mousewheelListener.bind(Ce),Ce}return E(dt,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var Ce=this.getParentElement(this.scrollComponent);Ce.scrollTop=Ce.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var Ce=!1,Ne={get passive(){Ce=!0}};try{document.addEventListener("test",null,Ne),document.removeEventListener("test",null,Ne)}catch(Re){}return Ce}},{key:"eventListenerOptions",value:function(){var Ce=this.props.useCapture;return this.isPassiveSupported()&&(Ce={useCapture:this.props.useCapture,passive:!0}),Ce}},{key:"setDefaultLoader",value:function(Ce){this.defaultLoader=Ce}},{key:"detachMousewheelListener",value:function(){var Ce=window;this.props.useWindow===!1&&(Ce=this.scrollComponent.parentNode),Ce.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var Ce=window;this.props.useWindow===!1&&(Ce=this.getParentElement(this.scrollComponent)),Ce.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Ce.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(Ce){var Ne=this.props.getScrollParent&&this.props.getScrollParent();return Ne!=null?Ne:Ce&&Ce.parentNode}},{key:"filterProps",value:function(Ce){return Ce}},{key:"attachScrollListener",value:function(){var Ce=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!Ce)){var Ne=window;this.props.useWindow===!1&&(Ne=Ce),Ne.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),Ne.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Ne.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(Ce){Ce.deltaY===1&&!this.isPassiveSupported()&&Ce.preventDefault()}},{key:"scrollListener",value:function(){var Ce=this.scrollComponent,Ne=window,Re=this.getParentElement(Ce),et=void 0;if(this.props.useWindow){var nt=document.documentElement||document.body.parentNode||document.body,Lt=Ne.pageYOffset!==void 0?Ne.pageYOffset:nt.scrollTop;this.props.isReverse?et=Lt:et=this.calculateOffset(Ce,Lt)}else this.props.isReverse?et=Re.scrollTop:et=Ce.scrollHeight-Re.scrollTop-Re.clientHeight;et<Number(this.props.threshold)&&Ce&&Ce.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=Re.scrollHeight,this.beforeScrollTop=Re.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(Ce,Ne){return Ce?this.calculateTopPosition(Ce)+(Ce.offsetHeight-Ne-window.innerHeight):0}},{key:"calculateTopPosition",value:function(Ce){return Ce?Ce.offsetTop+this.calculateTopPosition(Ce.offsetParent):0}},{key:"render",value:function(){var Ce=this,Ne=this.filterProps(this.props),Re=Ne.children,et=Ne.element,nt=Ne.hasMore,Lt=Ne.initialLoad,wt=Ne.isReverse,rt=Ne.loader,pt=Ne.loadMore,Qe=Ne.pageStart,Rt=Ne.ref,gt=Ne.threshold,ot=Ne.useCapture,It=Ne.useWindow,Be=Ne.getScrollParent,Ue=Ae(Ne,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Ue.ref=function(ue){Ce.scrollComponent=ue,Rt&&Rt(ue)};var Ze=[Re];return nt&&(rt?wt?Ze.unshift(rt):Ze.push(rt):this.defaultLoader&&(wt?Ze.unshift(this.defaultLoader):Ze.push(this.defaultLoader))),ge.default.createElement(et,Ue,Ze)}}]),dt}(lt.Component);tt.propTypes={children:Ee.default.node.isRequired,element:Ee.default.node,hasMore:Ee.default.bool,initialLoad:Ee.default.bool,isReverse:Ee.default.bool,loader:Ee.default.node,loadMore:Ee.default.func.isRequired,pageStart:Ee.default.number,ref:Ee.default.func,getScrollParent:Ee.default.func,threshold:Ee.default.number,useCapture:Ee.default.bool,useWindow:Ee.default.bool},tt.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},_t.default=tt,tn.exports=_t.default},26724:function(tn,_t,re){tn.exports=re(51581)},93314:function(tn){"use strict";tn.exports="data:image/png;base64,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"},96908:function(tn){"use strict";tn.exports="data:image/png;base64,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"},57177:function(tn){"use strict";tn.exports="data:image/png;base64,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"},81378:function(tn){"use strict";tn.exports="data:image/png;base64,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"},16722:function(tn,_t,re){"use strict";re.d(_t,{Z:function(){return Te}});const E=we=>typeof we=="object"&&we!=null&&we.nodeType===1,lt=(we,he)=>(!he||we!=="hidden")&&we!=="visible"&&we!=="clip",ge=(we,he)=>{if(we.clientHeight<we.scrollHeight||we.clientWidth<we.scrollWidth){const tt=getComputedStyle(we,null);return lt(tt.overflowY,he)||lt(tt.overflowX,he)||(Se=>{const dt=($e=>{if(!$e.ownerDocument||!$e.ownerDocument.defaultView)return null;try{return $e.ownerDocument.defaultView.frameElement}catch(Ce){return null}})(Se);return!!dt&&(dt.clientHeight<Se.scrollHeight||dt.clientWidth<Se.scrollWidth)})(we)}return!1},Ye=(we,he,tt,Se,dt,$e,Ce,Ne)=>$e<we&&Ce>he||$e>we&&Ce<he?0:$e<=we&&Ne<=tt||Ce>=he&&Ne>=tt?$e-we-Se:Ce>he&&Ne<tt||$e<we&&Ne>tt?Ce-he+dt:0,Ee=we=>{const he=we.parentElement;return he==null?we.getRootNode().host||null:he},Pe=(we,he)=>{var tt,Se,dt,$e;if(typeof document=="undefined")return[];const{scrollMode:Ce,block:Ne,inline:Re,boundary:et,skipOverflowHiddenElements:nt}=he,Lt=typeof et=="function"?et:xt=>xt!==et;if(!E(we))throw new TypeError("Invalid target");const wt=document.scrollingElement||document.documentElement,rt=[];let pt=we;for(;E(pt)&&Lt(pt);){if(pt=Ee(pt),pt===wt){rt.push(pt);break}pt!=null&&pt===document.body&&ge(pt)&&!ge(document.documentElement)||pt!=null&&ge(pt,nt)&&rt.push(pt)}const Qe=(Se=(tt=window.visualViewport)==null?void 0:tt.width)!=null?Se:innerWidth,Rt=($e=(dt=window.visualViewport)==null?void 0:dt.height)!=null?$e:innerHeight,{scrollX:gt,scrollY:ot}=window,{height:It,width:Be,top:Ue,right:Ze,bottom:ue,left:Je}=we.getBoundingClientRect(),{top:ke,right:Me,bottom:ft,left:me}=(xt=>{const ve=window.getComputedStyle(xt);return{top:parseFloat(ve.scrollMarginTop)||0,right:parseFloat(ve.scrollMarginRight)||0,bottom:parseFloat(ve.scrollMarginBottom)||0,left:parseFloat(ve.scrollMarginLeft)||0}})(we);let ce=Ne==="start"||Ne==="nearest"?Ue-ke:Ne==="end"?ue+ft:Ue+It/2-ke+ft,ze=Re==="center"?Je+Be/2-me+Me:Re==="end"?Ze+Me:Je-me;const Mt=[];for(let xt=0;xt<rt.length;xt++){const ve=rt[xt],{height:We,width:_e,top:jt,right:kt,bottom:Vt,left:je}=ve.getBoundingClientRect();if(Ce==="if-needed"&&Ue>=0&&Je>=0&&ue<=Rt&&Ze<=Qe&&(ve===wt&&!ge(ve)||Ue>=jt&&ue<=Vt&&Je>=je&&Ze<=kt))return Mt;const Nt=getComputedStyle(ve),st=parseInt(Nt.borderLeftWidth,10),ae=parseInt(Nt.borderTopWidth,10),te=parseInt(Nt.borderRightWidth,10),ee=parseInt(Nt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in ve?ve.offsetWidth-ve.clientWidth-st-te:0,pe="offsetHeight"in ve?ve.offsetHeight-ve.clientHeight-ae-ee:0,xe="offsetWidth"in ve?ve.offsetWidth===0?0:_e/ve.offsetWidth:0,ut="offsetHeight"in ve?ve.offsetHeight===0?0:We/ve.offsetHeight:0;if(wt===ve)oe=Ne==="start"?ce:Ne==="end"?ce-Rt:Ne==="nearest"?Ye(ot,ot+Rt,Rt,ae,ee,ot+ce,ot+ce+It,It):ce-Rt/2,se=Re==="start"?ze:Re==="center"?ze-Qe/2:Re==="end"?ze-Qe:Ye(gt,gt+Qe,Qe,st,te,gt+ze,gt+ze+Be,Be),oe=Math.max(0,oe+ot),se=Math.max(0,se+gt);else{oe=Ne==="start"?ce-jt-ae:Ne==="end"?ce-Vt+ee+pe:Ne==="nearest"?Ye(jt,Vt,We,ae,ee+pe,ce,ce+It,It):ce-(jt+We/2)+pe/2,se=Re==="start"?ze-je-st:Re==="center"?ze-(je+_e/2)+ne/2:Re==="end"?ze-kt+te+ne:Ye(je,kt,_e,st,te+ne,ze,ze+Be,Be);const{scrollLeft:Ie,scrollTop:Ve}=ve;oe=ut===0?0:Math.max(0,Math.min(Ve+oe/ut,ve.scrollHeight-We/ut+pe)),se=xe===0?0:Math.max(0,Math.min(Ie+se/xe,ve.scrollWidth-_e/xe+ne)),ce+=Ve-oe,ze+=Ie-se}Mt.push({el:ve,top:oe,left:se})}return Mt},Ae=we=>we===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(we)?we:{block:"start",inline:"nearest"};function Te(we,he){if(!we.isConnected||!(dt=>{let $e=dt;for(;$e&&$e.parentNode;){if($e.parentNode===document)return!0;$e=$e.parentNode instanceof ShadowRoot?$e.parentNode.host:$e.parentNode}return!1})(we))return;const tt=(dt=>{const $e=window.getComputedStyle(dt);return{top:parseFloat($e.scrollMarginTop)||0,right:parseFloat($e.scrollMarginRight)||0,bottom:parseFloat($e.scrollMarginBottom)||0,left:parseFloat($e.scrollMarginLeft)||0}})(we);if((dt=>typeof dt=="object"&&typeof dt.behavior=="function")(he))return he.behavior(Pe(we,he));const Se=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:dt,top:$e,left:Ce}of Pe(we,Ae(he))){const Ne=$e-tt.top+tt.bottom,Re=Ce-tt.left+tt.right;dt.scroll({top:Ne,left:Re,behavior:Se})}}}}]);