|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5359],{40001:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(60499),Ve=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(de,Ze){return Ve.createElement(ye.Z,(0,z.Z)({},de,{ref:Ze,icon:Le}))},ke=Ve.forwardRef(ge),$e=ke},73331:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(60499),Ve=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(de,Ze){return Ve.createElement(ye.Z,(0,z.Z)({},de,{ref:Ze,icon:Le}))},ke=Ve.forwardRef(ge),$e=ke},15277:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(60499),Ve=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(de,Ze){return Ve.createElement(ye.Z,(0,z.Z)({},de,{ref:Ze,icon:Le}))},ke=Ve.forwardRef(ge),$e=ke},33853:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(60499),Ve=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(de,Ze){return Ve.createElement(ye.Z,(0,z.Z)({},de,{ref:Ze,icon:Le}))},ke=Ve.forwardRef(ge),$e=ke},61485:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(60499),Ve=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(de,Ze){return Ve.createElement(ye.Z,(0,z.Z)({},de,{ref:Ze,icon:Le}))},ke=Ve.forwardRef(ge),$e=ke},47472:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(60499),Ve=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(de,Ze){return Ve.createElement(ye.Z,(0,z.Z)({},de,{ref:Ze,icon:Le}))},ke=Ve.forwardRef(ge),$e=ke},87395:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(60499),Ve=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(de,Ze){return Ve.createElement(ye.Z,(0,z.Z)({},de,{ref:Ze,icon:Le}))},ke=Ve.forwardRef(ge),$e=ke},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Yt,zt){"use strict";zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Yt={},zt="5.0",ie={},z=null,Ve=!1,ve=!1,Le=null,ye=!1,ge=null,ke=null,$e=0;$e<arguments.length;$e++){var Me=arguments[$e];if(Me!==null)switch(typeof Me){case"number":zt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?zt=Me:Le=Me;break;case"object":typeof Me.is3D!="undefined"?z=Me:ie=Me;break;case"boolean":Ve=Me,ve=!0;break}}z===null&&(z={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!ve&&(Ve=!0)),Le!==null&&ie.id===void 0&&(ie.id=Le);var de="",Ze="",be=!1,nt=null,Ae=null,Ie=null,Oe=!1,Be=null,ct=null,kt=null,Ct=null,it=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var Je=function(ze){return parseFloat(ze)>4?parseFloat(ze):5};Yt.setHTML5Codebase=function(ze,ut){ke=ze,vt(ze,ut)},Yt.setJavaCodebase=Yt.setJavaCodebaseVersion=Yt.isCompiledInstalled=Yt.setPreCompiledScriptPath=Yt.setPreCompiledResourcePath=function(){},Yt.setHTML5CodebaseVersion=function(ze,ut){var gt=parseFloat(ze);if(gt!==NaN&><5){console.log("The GeoGebra HTML5 codebase version "+gt+" is deprecated. Using version latest instead.");return}ge=ze,fe(ze,ut)},Yt.getHTML5CodebaseVersion=function(){return Ae},Yt.getParameters=function(){return ie},Yt.setFontsCSSURL=function(ze){Ct=ze},Yt.setGiacJSURL=function(ze){},Yt.setJNLPFile=function(ze){de=ze},Yt.setJNLPBaseDir=function(ze){},Yt.inject=function(){function ze(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ut="auto",gt=ie.id,pn,Ft=!1,en=0;en<arguments.length;en++){var tt=arguments[en];typeof tt=="string"?(tt=tt.toLowerCase(),tt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ut=tt:gt=arguments[en]):typeof tt=="boolean"?Ft=tt:tt instanceof HTMLElement&&(pn=tt)}Kt();function Kt(){if(!ye){setTimeout(Kt,200);return}ut=Xt(ut);var pt=pn||document.getElementById(gt);if(!pt){console.log("possibly bug on ajax loading? ");return}if(Yt.removeExistingApplet(pt,!1),ie.width===void 0&&pt.clientWidth&&(ie.width=pt.clientWidth),ie.height===void 0&&pt.clientHeight&&(ie.height=pt.clientHeight),!(ie.width&&ie.height)&&ut==="html5"&&(delete ie.width,delete ie.height),nt=ut,ut==="screenshot")qe(pt,ie);else{var le=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?le=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(le=(!_e()||ze())&&We()),le?(nt="screenshot",Ot(pt,ie,Ft,ut)):et(pt,ie,Ft)}}};function _e(){try{return window.self!==window.top}catch(ze){return!0}}function We(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Yt.getViews=function(){return z},Yt.isJavaInstalled=function(){return!1};var St=function(ze){var ut=function(en){var tt=JSON.parse(en),Kt=function(te){return te.type=="G"||te.type=="E"},pt=tt.elements?tt.elements.filter(Kt)[0]:tt;if(!pt||!pt.url){gt();return}ie.fileName=pt.url,Xe(pt.settings||{}),z.is3D=!0;var le="https://www.geogebra.org/images/";Yt.setPreviewImage(Be||pt.previewUrl,le+"GeoGebra_loading.png",le+"applet_play.png"),ze()},gt=function(){ie.onError&&ie.onError(),Vt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},pn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ft="/materials/"+ie.material_id+"?scope=basic";Ke("https://"+pn+"/api/proxy.php?path="+encodeURIComponent(Ft),ut,gt)};function Xe(ze){var ut=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(gt){ze[gt]=!!ze[gt]}),ut.forEach(function(gt){ie[gt]===void 0&&ze[gt]!==void 0&&(ie[gt]=ze[gt])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function Ke(ze,ut,gt){var pn=new XMLHttpRequest;pn.open("GET",ze),pn.onload=function(){ut(pn.responseText)},pn.onerror=gt,pn.send()}Yt.isHTML5Installed=function(){return!0},Yt.getLoadedAppletType=function(){return nt},Yt.setPreviewImage=function(ze,ut,gt){Be=ze,ct=ut,kt=gt},Yt.removeExistingApplet=function(ze,ut){var gt;typeof ze=="string"&&(ze=document.getElementById(ze)),nt=null;var pn=null;for(gt=0;gt<ze.childNodes.length;gt++){var Ft=ze.childNodes[gt],en=Ft.className;en==="applet_screenshot"?ut?(Ft.style.display="block",nt="screenshot"):Ft.style.display="none":en!=="applet_scaler prerender"&&(ze.removeChild(Ft),pn=en&&en.indexOf("appletParameters")!=-1?Ft.id:null,gt--)}var tt=ie.id!==void 0?ie.id:pn,Kt=window[tt];Kt&&typeof Kt.getBase64=="function"&&(Kt.remove(),window[tt]=null)},Yt.refreshHitPoints=function(){if(Je(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ze=Yt.getAppletObject();return ze&&typeof ze.recalculateEnvironments=="function"?(ze.recalculateEnvironments(),!0):!1},Yt.startAnimation=function(){var ze=Yt.getAppletObject();return ze&&typeof ze.startAnimation=="function"?(ze.startAnimation(),!0):!1},Yt.stopAnimation=function(){var ze=Yt.getAppletObject();return ze&&typeof ze.stopAnimation=="function"?(ze.stopAnimation(),!0):!1},Yt.getAppletObject=function(){var ze=ie.id!==void 0?ie.id:"ggbApplet";return window[ze]},Yt.resize=function(){};var ht=function(ze,ut,gt){var pn=document.createElement("param");pn.setAttribute("name",ut),pn.setAttribute("value",gt),ze.appendChild(pn)},Ne=function(ze){return ze&&ze!=="false"},et=function(ze,ut,gt){Je(Ae)<=4.2&&(gt=!0);var pn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ae||ggbHTML5LoadedCodebaseIsWebSimple&&!Oe)&&(pn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ft=document.createElement("div");Ft.classList.add("appletParameters","notranslate");var en=ut.width,tt=ut.height;if(ut.disableAutoScale=ut.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ut.disableAutoScale,ut.width!==void 0)if(Je(Ae)<=4.4)Ne(ut.showToolBar)&&(ut.height-=7),Ne(ut.showAlgebraInput)&&(ut.height-=37),ut.width<605&&Ne(ut.showToolBar)&&(ut.width=605,en=605);else{var Kt=100;(Ne(ut.showToolBar)||Ne(ut.showMenuBar))&&(ut.hasOwnProperty("customToolBar")&&(ut.customToolbar=ut.customToolBar),Kt=Ne(ut.showMenuBar)?245:155),en<Kt&&(ut.width=Kt,en=Kt)}Ft.style.border="none",Ft.style.display="inline-block";for(var pt in ut)ut.hasOwnProperty(pt)&&pt!=="appletOnLoad"&&Ft.setAttribute("data-param-"+pt,ut[pt]);Ct&&Ft.setAttribute("data-param-fontscssurl",Ct),Yt.resize=function(){GGBAppletUtils.responsiveResize(ze,ut)},window.addEventListener("resize",function(wt){Yt.resize()});var le=typeof ut.appletOnLoad=="function"?ut.appletOnLoad:function(){};if(!gt&&ut.width!==void 0){ut.hasOwnProperty("showSplash")||Ft.setAttribute("data-param-showSplash","false");var te=ze.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=At(en,tt,ut.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=en+"px",te.style.height=tt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),Je(Ae)>=5?(ut.appletOnLoad=function(wt){var dt=ze.querySelector(".ggb_preview");dt&&dt.parentNode.removeChild(dt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),le(wt)},ee||te.appendChild(oe)):Ft.appendChild(oe),te.appendChild(Ft),ee||ze.appendChild(te),setTimeout(function(){Yt.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Ft),ze.appendChild(se),ut.appletOnLoad=function(wt){Yt.resize(),le(wt)}}function re(wt,dt){dt&&typeof dt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,dt.appletOnLoad):renderGGBElement(wt),Vt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",dt)}function pe(wt,dt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:dt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Zt){re(Zt.article,Zt.params)}),html5AppletsToProcess=null)},Je(Ae)<5&&(wt.className+=" geogebraweb")):re(wt,dt)}if(pn){scriptLoadStarted=!0;for(var xe=0;xe<Ft.childNodes.length;xe++){var at=Ft.childNodes[xe].tagName;at==="TABLE"&&(Ft.removeChild(Ft.childNodes[xe]),xe--)}if(ggbHTML5LoadedScript!==null){var Ee=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ee!=null&&Ee.parentNode.removeChild(Ee)}var je=document.createElement("script"),ot=function(){pe(Ft,ut)};je.src=Ze+Ie,ggbHTML5LoadedCodebaseIsWebSimple=Oe,ggbHTML5LoadedCodebaseVersion=Ae,ggbHTML5LoadedScript=je.src,Vt("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",ut),!ke&&(!ge||ge=="5.0")?(Oe?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ot()):Ze.requirejs?__webpack_require__.e(4510).then(function(){var wt=[__webpack_require__(4510)];ot.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(je.onload=ot,ze.appendChild(je))}else pe(Ft,ut);ut.height=tt,ut.width=en},qe=function(ze,ut,gt){var pn=At(ut.width,ut.height,ut.borderColor,gt),Ft=document.createElement("div");Ft.style.position="relative",Ft.style.display="block",Ft.style.width=ut.width+"px",Ft.style.height=ut.height+"px",Ft.className="applet_screenshot applet_scaler"+(gt?" applet_screenshot_play":""),Ft.appendChild(pn);var en=GGBAppletUtils.getScale(ut,ze,gt);gt?(ze.appendChild(De()),window.GGBT_wsf_view||(ze.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),ze.appendChild(Ft),en!==1&&!isNaN(en)&&(GGBAppletUtils.scaleElement(Ft,en),Ft.style.width=ut.width+"px",Ft.style.height=ut.height+"px",Ft.parentNode.style.width=ut.width*en+"px",Ft.parentNode.style.height=ut.height*en+"px"),Yt.resize=function(){me(ze,pn,Ft,gt)},window.addEventListener("resize",function(tt){Yt.resize()}),Yt.resize()};function me(ze,ut,gt,pn){if(ze.contains(ut)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ze.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ze)}var Ft=GGBAppletUtils.getScale(ie,ze,pn);gt.parentNode!==null&&(!isNaN(Ft)&&Ft!==1?(GGBAppletUtils.scaleElement(gt,Ft),gt.parentNode.style.width=ie.width*Ft+"px",gt.parentNode.style.height=ie.height*Ft+"px"):(GGBAppletUtils.scaleElement(gt,1),gt.parentNode.style.width=ie.width+"px",gt.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ze),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Yt.onExitFullscreen=function(ze,ut){ut.appendChild(ze)};var Ot=function(ze,ut,gt,pn){qe(ze,ut,!0);for(var Ft=function(){var Kt=[];for(tt=0;tt<ze.childNodes.length;tt++)Kt.push(ze.childNodes[tt]);if(window.GGBT_wsf_view){var pt=window.GGBT_wsf_view.renderFullScreen(ze,ut.id),le=document.getElementById("fullscreencontainer"),te=jQuery(ze).find(".fullscreencontent");te.length>0?(pt.remove(),te.attr("id","fullscreencontent").show(),jQuery(le).append(te),window.dispatchEvent(new Event("resize"))):et(pt,ut,!1),window.GGBT_wsf_view.launchFullScreen(le)}else nt=pn,et(ze,ut,!1);if(!window.GGBT_wsf_view)for(tt=0;tt<Kt.length;tt++)ze.removeChild(Kt[tt])},en=ze.getElementsByClassName("ggb_preview_play"),tt=0;tt<en.length;tt++)en[tt].addEventListener("click",Ft,!1),en[tt].addEventListener("ontouchstart",Ft,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ze),We()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},De=function(){var ze=document.createElement("div");if(ze.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ut='.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");}',gt=document.createElement("style");gt.styleSheet?gt.styleSheet.cssText=ut:gt.appendChild(document.createTextNode(ut)),document.getElementsByTagName("head")[0].appendChild(gt)}return ze},At=function(ze,ut,gt,pn){var Ft=document.createElement("div");Ft.className="ggb_preview",Ft.style.position="absolute",Ft.style.zIndex="90",Ft.style.width=ze-2+"px",Ft.style.height=ut-2+"px",Ft.style.top="0px",Ft.style.left="0px",Ft.style.overflow="hidden",Ft.style.backgroundColor="white";var en="lightgrey";gt!==void 0&&(gt==="none"?en="transparent":en=gt),Ft.style.border="1px solid "+en;var tt=document.createElement("img");if(tt.style.position="relative",tt.style.zIndex="1000",tt.style.top="-1px",tt.style.left="-1px",Be!==null&&tt.setAttribute("src",Be),tt.style.opacity=.7,ct!==null){var Kt,pt,le;if(!pn){Kt=document.createElement("img"),Kt.style.position="absolute",Kt.style.zIndex="1001",Kt.style.opacity=1,tt.style.opacity=.3,pt=360,pt>ze/4*3&&(pt=ze/4*3),le=pt/5.8,Kt.setAttribute("src",ct),Kt.setAttribute("width",pt),Kt.setAttribute("height",le);var te=(ze-pt)/2,ee=(ut-le)/2;Kt.style.left=te+"px",Kt.style.top=ee+"px",Ft.appendChild(Kt)}}return Ft.appendChild(tt),Ft},Xt=function(ze){return ze=ze.toLowerCase(),ze==="html5"||ze==="screenshot"?ze:"html5"},Se=["web","webSimple","web3d","tablet","tablet3d","phone"],fe=function(ze,ut){if(Ae=ze,ut){vt(Ae,!0);return}var gt=!Ve;if(gt){var pn=Je(Ae);!isNaN(pn)&&pn<4.4&&(gt=!1)}var Ft,en;window.location.protocol.substr(0,4)==="http"?Ft=window.location.protocol:Ft="http:";var tt=Ae.indexOf("//");tt>0?en=Ae:tt===0?en=Ft+Ae:en="https://www.geogebra.org/apps/5.2.814.0/";for(var Kt in Se)if(Ae.slice(Se[Kt].length*-1)===Se[Kt]||Ae.slice((Se[Kt].length+1)*-1)===Se[Kt]+"/"){vt(en,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&>&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Ne(ie.showToolBar)&&!Ne(ie.showMenuBar)&&!Ne(ie.showAlgebraInput)&&!Ne(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?en+="webSimple/":en+="web3d/",vt(en,!1)},vt=function(ze,ut){if(ze.requirejs){Ze=ze;return}ze.slice(-1)!=="/"&&(ze+="/"),Ze=ze,ut===null&&(ut=ze.indexOf("http")===-1),be=ut,Ie="web.nocache.js",Oe=!1;var gt=Ze.split("/");gt.length>1&&(!ut&>[gt.length-2]==="webSimple"?(Ie="webSimple.nocache.js",Oe=!0):Se.indexOf(gt[gt.length-2])>=0&&(Ie=gt[gt.length-2]+".nocache.js")),gt=ze.split("/"),Ae=gt[gt.length-3],Ae.substr(0,4)==="test"?Ae=Ae.substr(4,1)+"."+Ae.substr(5,1):(Ae.substr(0,3)==="war"||Ae.substr(0,4)==="beta")&&(Ae="5.0");var pn=parseFloat(Ae);pn!==NaN&&pn<5&&ze.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+pn+" is deprecated. Using version latest instead."),fe("5.0",ut))},Vt=function(ze,ut){window.console&&window.console.log&&(!ut||typeof ut.showLogging=="undefined"||ut.showLogging&&ut.showLogging!=="false")&&console.log(ze)};ie.material_id!==void 0?St(Dt):Dt();function Dt(){var ze=zt;ge!==null?ze=ge:parseFloat(ze)<5&&(ze="5.0"),fe(ze,!1),ke!==null&&vt(ke,be),ye=!0}return Yt},GGBAppletUtils=function(){"use strict";function Yt(){return window.GGBT_wsf_edit!==void 0}function zt(ye,ge){ge!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+ge+","+ge+")",ye.style.webkitTransform="scale("+ge+","+ge+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function ie(ye,ge,ke,$e,Me,de){var Ze=null;if(de!=null&&de!="")for(var be=ye.parentNode;be!=null;)if((" "+be.className+" ").indexOf(" "+de+" ")>-1){Ze=be;break}else be=be.parentNode;var nt=0,Ae=0,Ie=0,Oe=0,Be=0,ct=0,kt=0;if(Ze)nt=Ze.offsetWidth,Ae=Math.max($e?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(nt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ae=Math.min(window.innerHeight,document.documentElement.clientHeight),Ie=nt):(nt=window.innerWidth,Ae=window.innerHeight,Ie=window.innerWidth),ye){var Ct=ye.getBoundingClientRect();Ct.left>0&&Ct.left<=nt&&(Me===void 0||!Me)&&(document.dir==="rtl"?(Be=nt-Ct.width-Ct.left,ct=Ie<=480?10:30):(ct=Ct.left,Be=Ie<=480?10:30),Oe=ct+Be)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var it=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe=40,kt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Oe=0,kt=40)}}return ye&&((ke===void 0||!ke)&&ge>0&&ge+Oe<nt?nt=ge:nt-=Oe,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ke===void 0||!ke)&&(Ae-=kt)),{width:nt,height:Ae}}function z(ye,ge,ke,$e,Me){if(ye.isScreenshoGenerator)return 1;var de=$e!==void 0&&$e,Ze=ye.noScaleMargin!=null&&ye.noScaleMargin,be=function(it){return it&&it!=="false"},nt=be(ye.autoHeight),Ae=ie(ge,ye.width,ke,nt,de&&window.GGBT_wsf_view||Ze,Me),Ie=parseInt(Ae.width),Oe=ye.width,Be=ye.height;if(Oe===void 0){var ct=ge.querySelector(".appletParameters");ct&&(Oe=ct.offsetWidth,Be=ct.offsetHeight)}var kt=Ie/Oe,Ct=de?1:Ae.height/Be;return ke!==void 0&&!ke&&(kt=Math.min(1,kt),Ct=Math.min(1,Ct)),Math.min(kt,Ct)}function Ve(ye,ge,ke){var $e=1,Me,de=!1;if(ye.hasOwnProperty("allowUpscale")&&(de=ye.allowUpscale),ye.hasOwnProperty("scale")&&($e=parseFloat(ye.scale),(isNaN($e)||$e===null||$e===0)&&($e=1),$e>1&&(de=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))Me=z(ye,ge,de,ke,ye.scaleContainerClass);else return $e;return de&&(!ye.hasOwnProperty("scale")||$e===1)?Me:Math.min($e,Me)}function ve(ye){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),ke=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=ye.getBoundingClientRect(),Me=(ge-$e.width)/2,de=(ke-$e.height)/2;de<0&&(de=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?ye.style.left="40px":ye.style.left=Me+"px",ye.style.top=de+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(de<40?ye.style.top="40px":ye.style.top=de+"px",ye.style.left=Me+"px")}function Le(ye,ge){var ke=ye.querySelector(".appletParameters");if(ke){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==ke.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(ke.parentElement&&/fullscreen/.test(ke.parentElement.className))return;var $e=Ve(ge,ye);Yt()&&ke.setAttribute("data-param-scale",$e);for(var Me=null,de=0;de<ye.childNodes.length;de++)if(ye.childNodes[de].className!==void 0&&ye.childNodes[de].className.match(/^applet_scaler/)){Me=ye.childNodes[de];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var Ze=ge.id!==void 0?ge.id:"ggbApplet",be=window[Ze];(be==null||!be.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN($e)&&$e!==1?(Me.parentNode.style.width=ge.width*$e+"px",Me.parentNode.style.height=ge.height*$e+"px",zt(Me,$e)):(zt(Me,1),Me.parentNode.style.width=ge.width+"px",Me.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ve(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ke).parents(".content-added-content"))}}return{responsiveResize:Le,isFlexibleWorksheetEditor:Yt,positionCenter:ve,getScale:Ve,scaleElement:zt}}();__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 Yt=n.location.search;return Yt.indexOf(J)!=-1||Yt.indexOf(K)!=-1}function q(Yt,zt){}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(Yt){var zt=s[L].bindings;s[L].bindings=function(){for(var ie=zt?zt():{},z=Yt[webModule.__softPermutationId],Ve=O;Ve<z.length;Ve++){var ve=z[Ve];ie[ve[O]]=ve[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var Yt=o.createElement(Q);if(Yt.id=L,Yt.style.cssText=R+S,Yt.tabIndex=-1,o.body.appendChild(Yt),t=Yt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var zt=document.compatMode==U?V:W;t.write(zt+X),t.close()}}}function w(Yt){function zt(z){function Ve(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ve=Ve();if(ve){z();return}function Le(){if(!ve){if(!Ve())return;ve=!0,z(),o.removeEventListener&&o.removeEventListener(Z,Le,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,Le,!1);var ye=setInterval(function(){Le()},$)}function ie(z){var Ve=u(),ve=Ve.body,Le=Ve.createElement(_);Le.language=ab,Le.crossOrigin=W,Le.src=z,webModule.__errFn&&(Le.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ve.appendChild(Le)}zt(function(){ie(Yt)})}webModule.__startLoadingFragment=function(Yt){return C(Yt)},webModule.__installRunAsyncCode=function(Yt){var zt=u(),ie=zt.body,z=zt.createElement(_);z.language=ab,z.text=Yt,ie.appendChild(z),ie.removeChild(z)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Yt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Yt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Yt){var zt=c[Yt];return zt==null?null:zt},r=d,webModule.__errFn=e}function B(){function Yt(ye){var ge=ye.lastIndexOf(rb);ge==-1&&(ge=ye.length);var ke=ye.indexOf(sb);ke==-1&&(ke=ye.length);var $e=ye.lastIndexOf(tb,Math.min(ke,ge));return $e>=O?ye.substring(O,$e+P):W}function zt(ye){if(!ye.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=ye+vb,ye=Yt(ge.src)}return ye}function ie(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function z(){for(var ye=o.getElementsByTagName(_),ge=O;ge<ye.length;++ge)if(ye[ge].src.indexOf(xb)!=-1)return Yt(ye[ge].src);return W}function Ve(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function ve(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var Le=ie();return Le==W&&(Le=z()),Le==W&&(Le=Ve()),Le==W&&ve()&&(Le=Yt(o.location.href)),Le=zt(Le),Le}function C(Yt){return Yt.match(/^\//)||Yt.match(/^[a-zA-Z]+:\/\//)?Yt:webModule.__moduleBase+Yt}function D(){var Yt=[],zt=O,ie=[],z=[];function Ve(ye){var ge=z[ye](),ke=ie[ye];if(ge in ke)return ge;var $e=[];for(var Me in ke)$e[ke[Me]]=Me;throw r&&r(ye,$e,ge),null}if(__gwt_isKnownPropertyValue=function(ye,ge){return ge in ie[ye]},webModule.__getPropMap=function(){var ye={};for(var ge in ie)ie.hasOwnProperty(ge)&&(ye[ge]=Ve(ge));return ye},webModule.__computePropValue=Ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var Le=ve.indexOf(Db);Le!=-1&&(zt=parseInt(ve.substring(Le+P),$),ve=ve.substring(O,Le))}catch(ye){}return webModule.__softPermutationId=zt,C(ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(Yt,zt,ie){"use strict";ie.d(zt,{Ax:function(){return Le},Ds:function(){return ye},KI:function(){return ke},SI:function(){return ve},f1:function(){return Ve}});var z=ie(14185);function Ve($e){let Me=!0;if($e.length>0){for(let de=0;de<$e.length;de++)if($e[de].compile_success==0||!$e[de].compile_success){Me=!1;break}}else Me=!1;return Me}function ve($e,Me=""){let de=[];for(let Ze=0;Ze<$e.length;Ze++){let be=$e[Ze],nt=Me?`${Me}/${be.name}`:`${be.name}`;de.push({title:be.name,type:be.type,isLeaf:be.type!=="tree",key:nt})}return de}function Le($e,Me,de){for(let Ze=0;Ze<$e.length;Ze++){let be=$e[Ze];if(be.key===Me){be.children=de;break}be.children&&Le(be.children,Me,de)}return $e}function ye($e,Me,de){let Ze;return function(){let be=this,nt=arguments,Ae=function(){Ze=null,de||$e.apply(be,nt)},Ie=de&&!Ze;clearTimeout(Ze),Ze=setTimeout(Ae,Me),Ie&&$e.apply(be,nt)}}const ge=!0,ke=z.Z.API_SERVER},40254:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Ze}});var z=ie(59301),Ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ve=ie(92310),Le=ie.n(ve),ye=ie(29787),ge=ie(2859),ke=ie(49317),$e=ie(76406),Me=(be,nt,Ae)=>new Promise((Ie,Oe)=>{var Be=Ct=>{try{kt(Ae.next(Ct))}catch(it){Oe(it)}},ct=Ct=>{try{kt(Ae.throw(Ct))}catch(it){Oe(it)}},kt=Ct=>Ct.done?Ie(Ct.value):Promise.resolve(Ct.value).then(Be,ct);kt((Ae=Ae.apply(be,nt)).next())}),Ze=({data:be,className:nt,fullWidth:Ae,style:Ie={},onClose:Oe,onOk:Be,showFullTools:ct,noAssociationId:kt})=>{const Ct=(0,z.useRef)(null),it=(0,z.useRef)(null),Je=(0,z.useRef)(null),_e=(0,z.useRef)(null),[We,St]=(0,z.useState)(!1),[Xe,Ke]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(Je.current||(Je.current=document.createElement("style"),document.head.appendChild(Je.current)),be!=null&&be.visible?(document.body.setAttribute("data-custom","y-hidden"),Je.current.innerHTML=" html { overflow-y: hidden; }",be!=null&&be.src&&ht()):(document.body.removeAttribute("data-custom"),Je.current&&(document.head.removeChild(Je.current),Je.current=null)),()=>{document.body.removeAttribute("data-custom"),Je.current&&(document.head.removeChild(Je.current),Je.current=null)}),[be==null?void 0:be.visible]);const ht=()=>Me(void 0,null,function*(){St(!0),Ke("\u6B63\u5728\u52A0\u8F7D\u4E2D");const me=yield(0,$e.ZJ)(be==null?void 0:be.src);Ct.current.src="",Ct.current.src=me,Ct.current.onload=function(){qe()},St(!1),Ke("")}),Ne=me=>Me(void 0,null,function*(){St(!0),Ke("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ot=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:be.title,file:me.dataUrl}});Ot!=null&&Ot.id&&!kt?(yield(0,ke.ZP)(`/api/attachments/${be.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ot==null?void 0:Ot.id,settings:JSON.stringify(me.state)}})).status===0&&Be():Ot!=null&&Ot.id&&Be(Ot),St(!1),Ke("")}),et=()=>{const me=document.querySelector('a[href="https://markerjs.com/"]');me&&me.parentNode&&(me.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(De=>{const At=document.querySelector(De.name);At&&At.setAttribute("title",De.title)})},qe=()=>{it.current=new ge.hP(Ct.current),it.current.targetRoot=_e.current,it.current.addEventListener("render",Ne),it.current.addEventListener("beforeclose",Oe),ct&&(it.current.availableMarkerTypes=it.current.ALL_MARKER_TYPES,it.current.uiStyleSettings.redoButtonVisible=!0,it.current.uiStyleSettings.notesButtonVisible=!0,it.current.uiStyleSettings.zoomButtonVisible=!0,it.current.uiStyleSettings.zoomOutButtonVisible=!0,it.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=it.current.uiStyleSettings,it.current.show(),be!=null&&be.snapshotData&&it.current.restoreState(be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),et()},300)};return z.createElement(z.Fragment,null,(be==null?void 0:be.visible)&&z.createElement(ye.Z,{spinning:We,tip:Xe,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:_e,className:Le()(Ve.imageDimensions,nt,Ae?Ve.fullWidth:""),style:Ie},z.createElement("img",{className:Ve.img,ref:Ct}))))}},9057:function(Yt,zt,ie){"use strict";var z=ie(59301),Ve=ie(77019),ve=ie(5269),Le=ie(31691),ye=ie(7939),ge=ie(35883),ke=ie(74501),$e=ie(48136),Me=ie(59301);const de=(0,z.forwardRef)(({callback:Ze,showSaveButton:be,value:nt=""},Ae)=>{const Ie=(0,z.useRef)(),Oe=[{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 "}]}]}],Be=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],ct=it=>{Ie.current.setValue(Ie.current.getValue()+" "+it.value+" ")},kt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(Ve.Z,{className:ke.Z.lists,gutter:[10,10]},Oe.map((it,Je)=>Me.createElement(ve.Z,{flex:"110px",className:ke.Z.item},Me.createElement("div",null,Me.createElement(ge.Z,{value:`$$${it.value}$$`}),it.name),Me.createElement("div",{className:ke.Z.children},it.children.map((_e,We)=>Me.createElement("div",{key:We},Me.createElement("h1",null,_e.name),Me.createElement(Ve.Z,{gutter:[10,10]},_e.data.map((St,Xe)=>Me.createElement(ve.Z,{key:Xe,onClick:()=>ct(St),className:ke.Z.diamond},Me.createElement(ge.Z,{value:"`$$"+St.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Ve.Z,{className:ke.Z.lists,gutter:[10,10]},Be.map((it,Je)=>Me.createElement(ve.Z,{flex:"110px",className:ke.Z.item},Me.createElement("div",null,Me.createElement(ge.Z,{value:"`$$"+it.value+"$$`"}),it.name),Me.createElement("div",{className:ke.Z.children},it.children.map((_e,We)=>Me.createElement("div",{key:We},_e.name&&Me.createElement("h1",null,_e.name),Me.createElement(Ve.Z,{gutter:[10,10]},_e.data.map((St,Xe)=>Me.createElement(ve.Z,{key:Xe,onClick:()=>ct(St),className:ke.Z.diamond},Me.createElement(ge.Z,{value:"`$$"+St.value+"$$`"}))))))))))}],Ct=()=>{var it=document.createElement("div");it.innerHTML=Ie.current.getValue();var Je=it.innerText;return Ze&&Ze(Je),Je};return(0,z.useImperativeHandle)(Ae,()=>({getData:Ct})),Me.createElement("div",{className:ke.Z.mathWrap},Me.createElement(Le.default,{defaultActiveKey:"1",items:kt}),Me.createElement("math-field",{locale:"zh_cn",className:ke.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ie,style:{width:800,marginTop:30,fontSize:18}},nt||""),be&&Me.createElement("div",{className:ke.Z.button},Me.createElement(ye.ZP,{size:"large",onClick:Ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});zt.Z=de},90736:function(Yt,zt,ie){"use strict";var z=ie(59301),Ve=ie(4977),ve=ie(7939),Le=Object.defineProperty,ye=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,de=(Ae,Ie,Oe)=>Ie in Ae?Le(Ae,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ae[Ie]=Oe,Ze=(Ae,Ie)=>{for(var Oe in Ie||(Ie={}))$e.call(Ie,Oe)&&de(Ae,Oe,Ie[Oe]);if(ke)for(var Oe of ke(Ie))Me.call(Ie,Oe)&&de(Ae,Oe,Ie[Oe]);return Ae},be=(Ae,Ie)=>ye(Ae,ge(Ie));const nt=({img:Ae,buttonProps:Ie={},styles:Oe={},customText:Be,ButtonText:ct,ButtonClick:kt,Buttonclass:Ct,ButtonTwo:it,imgStyles:Je,loading:_e=!1,className:We=""})=>z.createElement("section",{className:`tc animated fadeIn ${We}`,style:Ze({color:"#999",margin:"100px auto",visibility:_e?"hidden":"visible"},Oe)},z.createElement("img",{src:Ae||Ve,style:be(Ze({},Je),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},Be||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ct&&z.createElement(ve.ZP,Ze({className:Ct,onClick:kt},Ie),ct),it&&it);zt.Z=nt},86974:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Ct}});var z=ie(59301),Ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ve=ie(7939),Le=ie(70557),ye=ie(34728),ge=ie(25399),ke=ie(76406),$e=ie(84849),Me=ie(90736),de=ie(14185),Ze=ie(52078),be=ie(59301),nt=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Be=(it,Je,_e)=>Je in it?nt(it,Je,{enumerable:!0,configurable:!0,writable:!0,value:_e}):it[Je]=_e,ct=(it,Je)=>{for(var _e in Je||(Je={}))Ie.call(Je,_e)&&Be(it,_e,Je[_e]);if(Ae)for(var _e of Ae(Je))Oe.call(Je,_e)&&Be(it,_e,Je[_e]);return it},kt=(it,Je,_e)=>new Promise((We,St)=>{var Xe=Ne=>{try{ht(_e.next(Ne))}catch(et){St(et)}},Ke=Ne=>{try{ht(_e.throw(Ne))}catch(et){St(et)}},ht=Ne=>Ne.done?We(Ne.value):Promise.resolve(Ne.value).then(Xe,Ke);ht((_e=_e.apply(it,Je)).next())}),Ct=({editOffice:it="view",data:Je,issaver:_e,onSaver:We,theme:St,type:Xe,filename:Ke,monacoEditor:ht,className:Ne,style:et,close:qe,onClose:me,hasMask:Ot,disabledDownload:De,onImgDimensions:At,showNodata:Xt,recordInfo:Se})=>{const[fe,vt]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Vt,Dt]=(0,z.useState)(""),[ze,ut]=(0,z.useState)(),gt=window.ENV==="build"?"/react/build":"",pn=location.host.startsWith("localhost")?de.Z.PROXY_SERVER:de.Z.API_SERVER,en=10*(1024*1024),tt=(0,z.useRef)();Je!=null&&Je.startsWith("/api")&&Xe!=="txt"&&(Je=de.Z.API_SERVER+Je);const Kt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();Ke&&ht&&(ht.filename=Ke),(0,z.useEffect)(()=>{var se,re;const pe=(re=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:re.split(";");pe==null||pe.map(xe=>{let at=xe.split("=");at[0]==="_educoder_session"&&Dt(at[1])})},[]),(0,z.useEffect)(()=>{Xe==="office"&&(Je.indexOf("bigfilescdn.")>-1||Je.indexOf("bigfiles1")>-1?ut({url:Je,fileType:Kt(Je),model:Je.indexOf("model=edit")?"edit":"view"}):Je.indexOf("coze")>-1?ut({url:Je,fileType:"doc",model:"view"}):le())},[Xe,Je]);function pt(se){return kt(this,null,function*(){se.data.type==="pdfdata"&&(We(se.data.data),window.removeEventListener("message",pt,!1)),console.log("mess---:",se.data)})}const le=()=>kt(void 0,null,function*(){console.log("data:",Je);let se=Je;Je.startsWith("http")||(se=location.origin+se);let re=new URL(se).pathname.split("/").pop();const pe=yield(0,$e.gJ)({attachment_id:re});pe.url=pn+pe.url,ut(pe)}),te=()=>{if(Je.startsWith("http")||Je.startsWith("blob:")){ee();return}(0,ke.Sv)(Ke||"educoder",Je,Ke)},ee=()=>{Se&&(0,Ze.fc)({id:Se==null?void 0:Se.id,watch_type:1,course_id:Se==null?void 0:Se.course_id}),(0,ke.Nd)(Ke||"educoder",decodeURIComponent(Je))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var re;((re=se==null?void 0:se.data)==null?void 0:re.type)==="closePop"&&me()};return be.createElement("div",{style:ct({},et||{}),className:`${Ot&&Ve.bgBlack} ${Xe?Ve.wrp:"hide"}`},!!Xe&&qe&&be.createElement("div",{id:"closePop",className:Ve.close,ref:tt},!!At&&be.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>tt.current},be.createElement("span",{onClick:()=>{me(),At()}},be.createElement("i",{className:"icon-yulanpizhu"}))),!De&&window.parent===window&&be.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>tt.current},be.createElement("span",{onClick:ee},be.createElement("i",{className:"icon-quxiaozhiding"}))),_e&&be.createElement(ge.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>tt.current},be.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",pt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},be.createElement("i",{className:"icon-baocun"}))),be.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>tt.current},be.createElement("span",{className:"",onClick:()=>{me()}},be.createElement("i",{className:"icon-guanbi1"})))),be.createElement("div",{className:`${Ve[Ne]} ${Ne} ${Ve.monaco} ${Xe==="txt"?"show":"hide"}`},Xe==="txt"&&be.createElement(be.Fragment,null,be.createElement(ye.ZP,ct({},ht)))),Xe==="audio"&&be.createElement("audio",{controls:!0,src:`${(Je==null?void 0:Je.indexOf("http://"))>-1||(Je==null?void 0:Je.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Je}`,autoPlay:!0}),Xe==="video"&&be.createElement(be.Fragment,null,(Je==null?void 0:Je.indexOf("http"))>-1?be.createElement("video",{controls:!0,src:`${Je}`,autoPlay:!0}):be.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Je}`,autoPlay:!0})),Xe==="office"&&ze&&be.createElement("iframe",{src:`${gt}/office.html?key=${ze.key}&url=${btoa(ze.url)}&callbackUrl=${pn+(ze.callbackUrl||"")}&fileType=${ze.fileType}&title=${ze.title||""}&model=${it}&officeServer=${de.Z.ONLYOFFICE}&disabledDownload=${!!De}`}),Xe==="html"&&be.createElement("iframe",{src:Je+"&disposition=inline"}),Xe==="pdf"&&be.createElement("iframe",{id:"pdfiframe",src:`${gt}/js/pdf/index.html?filename=${Ke||"educoder.pdf"}&url=${encodeURIComponent(Je)}&disabledDownload=${!!De}&model=${it}`}),Xe==="image"&&be.createElement("img",{src:`${(Je==null?void 0:Je.indexOf("http://"))>-1||(Je==null?void 0:Je.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Je}`}),(Xe==="other"||Xe==="download")&&be.createElement(be.Fragment,null,Xt?be.createElement(Me.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:be.createElement(ve.ZP,{icon:be.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:De},"\u4E0B\u8F7D")}):be.createElement(ve.ZP,{type:"primary",size:"middle",onClick:te,disabled:De},be.createElement(Le.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Xe==="flowChart"&&be.createElement("div",{className:"embed"},be.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Je||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(Yt,zt,ie){"use strict";ie.d(zt,{z:function(){return ht},Z:function(){return Ne}});var z=ie(59301),Ve=ie(46214),ve=ie(20047),Le=ie(64018),ye=ie(16471),ge=ie(14185),ke=ie(76406),$e=ie(15342),Me=ie(44104),de=ie(7939),Ze=ie(1012),be=ie(86974),nt=ie(59301),Ie=({html:et})=>{const qe=(0,z.useRef)(null),me=(0,z.useRef)(null),Ot=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,z.useEffect)(()=>{const De=qe.current.attachShadow({mode:"open"});me.current=document.createElement("div"),me.current.className="markdown-body",me.current.innerHTML=et,De.appendChild(me.current);const At=document.createElement("style");return At.textContent=Ot,De.appendChild(At),()=>{De.innerHTML=""}},[]),(0,z.useEffect)(()=>{me.current&&(me.current.innerHTML=et)},[et]),nt.createElement("div",{ref:qe})};function Oe(et){const qe=["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"],me=new RegExp(`\\b(${qe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ot=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return et.replace(me,"").replace(Ot,"").trim()}var Be={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ct=Object.defineProperty,kt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,Je=(et,qe,me)=>qe in et?ct(et,qe,{enumerable:!0,configurable:!0,writable:!0,value:me}):et[qe]=me,_e=(et,qe)=>{for(var me in qe||(qe={}))Ct.call(qe,me)&&Je(et,me,qe[me]);if(kt)for(var me of kt(qe))it.call(qe,me)&&Je(et,me,qe[me]);return et};const We="@\u2581\u2581@",St="@\u2581@",Xe=/<pre[^>]*>/g;function Ke(et){let qe=document.createElement("div");return qe.innerHTML=et,qe.childNodes.length===0?"":qe.childNodes[0].nodeValue}const ht=(et,qe)=>{et=et||"";const me=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ot=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,At=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return qe?et.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(me,(Xt,Se,fe,vt,Vt,Dt,ze)=>{const ut=Se||vt||Dt,gt=fe||Vt||ze||"?";return ge.Z.API_SERVER+"/api/attachments/"+ut+gt+"&t="+(0,ke.Jn)(ut,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(et=et.replace(At,(Xt,Se,fe,vt,Vt,Dt,ze)=>{const ut=Se||vt||Dt,gt=fe||Vt||ze||"?";return ge.Z.API_SERVER+"/attachments/download/"+ut+gt+"&t="+(0,ke.Jn)(ut,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replace(me,(Xt,Se,fe,vt,Vt,Dt,ze)=>{const ut=Se||vt||Dt,gt=fe||Vt||ze||"?";return ge.Z.API_SERVER+"/api/attachments/"+ut+gt+"&t="+(0,ke.Jn)(ut,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replace(Ot,(Xt,Se,fe,vt,Vt)=>{const Dt=Se||vt,ze=fe||Vt||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+Dt+ze+Dt+ze+"&t="+(0,ke.Jn)(Dt,Date.now())}).replace(De,(Xt,Se,fe,vt,Vt)=>{const Dt=Se||vt,ze=fe||Vt||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+Dt+ze+Dt+ze+"&t="+(0,ke.Jn)(Dt,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,`
|
|
|
`),et)};var Ne=({value:et="",edit:qe=!1,className:me,showTextOnly:Ot,showLines:De,style:At={},stylesPrev:Xt={},highlightKeywords:Se,showProgramFill:fe,isProgramFill:vt,disabledFill:Vt=!1,programFillValue:Dt,openEditor:ze=()=>{},onFillChange:ut=Ft=>{},onFillBlur:gt=()=>{},onFillFocus:pn=()=>{}})=>{let Ft=Oe(String(et||""));const en=(0,z.useRef)(),tt=(0,z.useRef)(),[Kt,pt]=(0,z.useState)(""),[le,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,Ze.Z)()),re={},pe=st=>/<style[\s\S]*?>/i.test(st||""),xe=(st,Gt,Lt)=>{const Nt=document.createElement(st===St?"input":"textarea");Nt.style.width="100%",Nt.style.height=st===St?"40px":"151px",Nt.rows=5,Nt.spellcheck=!1,Nt.name="edu-program-fill",Nt.placeholder="\u8BF7\u8F93\u5165",Nt.dataset.id=Gt;const Qt=Object.keys(re).length;return re[Qt]=Nt,`<span class="edu-program-fill-wrap ${st===St?"":"show"}" style="width:${st===St?"600px":"100%"}" title=${Lt||""}><span>${Nt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function at(st){return st=st.replace(/!\[.*?\]\(.*?\)/g,""),st=st.replace(/\[.*?\]\(.*?\)/g,""),st=st.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),st=st.replace(/<embed.*?>/g,""),st=st.replace(/<img.*?>/g,""),st=st.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),st=st.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),st=st.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),st=st.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),st}const Ee=st=>!Ot&&pe(Ft)?st:st.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Gt,Lt){let Nt=Lt.replace(/(\n|\r)/g,"").split("}"),Qt=[];return Nt.map(Rn=>{Rn!=""&&Qt.push(`.${se.current} ${Rn}`)}),`<style>${Qt.join("}")}</style>`}),je=(0,z.useMemo)(()=>{(0,ve.Iy)();try{const Nt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Rn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,fn=/\(\/attachments\/download\//g;Ft=Ft.replace(fn,"("+ge.Z.API_SERVER+"/attachments/download/").replace(Nt,"("+ge.Z.API_SERVER+"/api/attachments/").replace(Qt,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(Rn,'"'+ge.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,`
|
|
|
`),en.current.style.display="none"}catch(Nt){}if(fe){let Nt=-1;return Ft=Ft.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Qt,Rn,fn){var Pe;return++Nt,xe(Qt,Nt,(Pe=Dt==null?void 0:Dt[Nt])==null?void 0:Pe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ee(Ft||"")}</pre>`}let st=Ee(Ft);st=(0,ve.ZP)(st);const Gt=(0,ve.ez)();Ft.match(/\[TOC\]/)&&(st=st.replace("<p>[TOC]</p>",(0,ve.Qv)()),(0,ve.Iy)()),st=st.replace(/(__special_katext_id_\d+__)/g,(Nt,Qt)=>{const{type:Rn,expression:fn}=Gt[Qt];return(0,$e.renderToString)(Ke(fn)||"",{displayMode:Rn==="block",throwOnError:!1,output:"html"})}),st=st.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ve.AL)();const Lt=document.createElement("div");if(Lt.innerHTML=st,Ot)return Lt.innerText;if(Se){const Nt=Se.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Zt(Lt,Nt),Lt.innerHTML}return setTimeout(()=>xt(),500),Lt.innerHTML},[Ft,Se]);(0,z.useEffect)(()=>{lt.current&<.current.querySelectorAll(["input","textarea"]).forEach(Gt=>{Gt.oninput=ot,Gt.onblur=wt,Gt.onfocus=dt})},[ee]),(0,z.useEffect)(()=>{var st,Gt,Lt,Nt,Qt;if(Dt!=null&&Dt.length)try{const Rn=lt.current.querySelectorAll(".edu-program-fill-score"),fn=lt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Pe,Qe]of fn.entries())Qe.value=((st=Dt==null?void 0:Dt[Pe])==null?void 0:st.value)||"",((Gt=Dt==null?void 0:Dt[Pe])==null?void 0:Gt.type)==="warning"?Qe.className="program-fill-warning":((Lt=Dt==null?void 0:Dt[Pe])==null?void 0:Lt.type)==="success"?Qe.className="program-fill-success":Qe.className="";for(const[Pe,Qe]of Rn.entries())Qe.innerHTML=(Nt=Dt==null?void 0:Dt[Pe])!=null&&Nt.score?`${(Qt=Dt==null?void 0:Dt[Pe])==null?void 0:Qt.score}\u5206`:"";oe(Dt)}catch(Rn){console.log(Rn,"error")}},[Dt]);const ot=st=>{ee[st.target.dataset.id]=ee[st.target.dataset.id]||{},ee[st.target.dataset.id].value=st.target.value,oe([...ee]),ut(ee,st.target.dataset.id)},wt=st=>{ee[st.target.dataset.id]=ee[st.target.dataset.id]||{},ee[st.target.dataset.id].value=st.target.value,oe([...ee]),gt(ee,st.target.dataset.id)},dt=st=>{ee[st.target.dataset.id]=ee[st.target.dataset.id]||{},ee[st.target.dataset.id].value=st.target.value,oe([...ee]),pn(ee,st.target.dataset.id)};function Zt(st,Gt){return st.childNodes.forEach(Lt=>{var Nt;if(Lt.childNodes.length>0)Zt(Lt,Gt);else if(Lt.nodeName!=="IMG")if(Lt.innerHTML)Lt.innerHTML=(Nt=Lt.innerHTML)==null?void 0:Nt.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Qt=document.createElement("span");Qt.innerHTML=Lt.textContent.replace(new RegExp(Gt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Lt.replaceWith(Qt)}})}const lt=(0,z.useRef)();ve.jb.WebkitLineClamp=De,De&&(At=_e(_e({},At),ve.jb));function rt(st){let Gt=st.target;if(Gt.tagName.toUpperCase()==="A"){let Lt=Gt.getAttribute("href");if(Lt.indexOf("office")>-1)st.preventDefault(),pt(Lt),te("office");else if(Lt.indexOf("application/pdf")>-1)st.preventDefault(),pt(Lt),te("pdf");else if(Lt.indexOf("text/html")>-1)st.preventDefault(),pt(Lt),te("html");else if(Lt.startsWith("#")){st.preventDefault();let Nt=document.getElementById(Lt.replace("#",""));Nt&&Nt.scrollIntoView(!0)}}}const xt=()=>{var st;const Gt=(st=lt.current)==null?void 0:st.querySelectorAll("video");Gt==null||Gt.forEach(Lt=>{if(Lt.oncontextmenu=()=>!1,Lt.src.indexOf(".m3u8")>-1&&!Lt.canPlayType("application/vnd.apple.mpegurl")){if(ye.ZP.isSupported()){var Nt=new ye.ZP;Nt.loadSource(Lt.src),Nt.attachMedia(Lt)}}})};(0,z.useEffect)(()=>{if(lt.current&&je&&je.match(Xe)&&window.PR.prettyPrint(),lt.current)return lt.current.addEventListener("click",rt),()=>{var st;(st=lt.current)==null||st.removeEventListener("click",rt),(0,ve.AL)(),(0,ve.Iy)()}},[je,lt.current,rt]);const Pt=st=>{st.target.nodeName==="IMG"&&st.target.className.indexOf("draw-flowchart")>-1?(en.current.style.zIndex=1,en.current.style.display="flex",en.current.style.width=st.target.clientWidth+"px",en.current.style.height=st.target.clientHeight+"px",en.current.style.top=st.target.offsetTop+"px",en.current.style.left=st.target.offsetLeft+"px",st.target.id&&(tt.current=st.target.id)):en.current.style.display="none"},_t=()=>{en.current.style.display="none"};return(0,z.useEffect)(()=>{var st;const Gt=Lt=>{Lt.preventDefault(),Lt.clipboardData.setData("text",window.getSelection().toString())};return(st=lt.current)==null||st.addEventListener("copy",Gt),()=>{var Lt;(Lt=lt.current)==null||Lt.removeEventListener("copy",Gt)}},[lt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:_t},Ot&&z.createElement("div",{ref:lt,className:`${Be.mdBody} `},je),!Ot&&!pe(je)&&z.createElement("div",{ref:lt,style:_e({},At),onMouseOver:Pt,className:`${me||""} ${Vt?"disabled-fill":""} markdown-body ${Be.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:je}}),!Ot&&pe(je)&&z.createElement(Ie,{html:je}),z.createElement("div",{ref:en,className:`${Be.button} ${qe?"":Be.previewFlowChart}`},z.createElement(Me.Z,null,z.createElement(de.ZP,{onClick:()=>{qe?ze(tt.current):(pt(tt.current),te("flowChart"))}},qe?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(be.Z,{close:!0,data:Kt,type:Kt!=null&&Kt.length?le:"",style:_e({},Xt),onClose:()=>pt("")}))}},11295:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Le}});var z=ie(59301),Ve=ie(33156),ve=ie(75786),Le=()=>{const[ye,ge]=(0,z.useState)(""),[ke,$e]=(0,z.useState)(0);let[Me,de]=(0,z.useState)(),[Ze,be]=(0,z.useState)();const[nt,Ae]=(0,z.useState)(!1),Ie=(0,z.useRef)("");(0,z.useEffect)(()=>Ve.Z.subscribe("preview-image",Xe=>{ge(Xe),console.log(_e.current)}),[]),(0,z.useEffect)(()=>(document.addEventListener("keydown",Oe),()=>{document.removeEventListener("keydown",Oe)}),[]),(0,z.useEffect)(()=>{Ie.current=ye},[ye]);function Oe(St){console.log("e====",St),St.keyCode==27&&Ie.current&&Be()}function Be(){document.body.style.overflow="auto",de(void 0),be(void 0),$e(0),ge("")}function ct(){$e(ke+90)}function kt(){Me=_e.current.width*1.1,Ze=_e.current.height*1.1,be(Ze),de(Me)}function Ct(){Me=_e.current.width/1.1,Ze=_e.current.height/1.1,be(Ze),de(Me)}const it=(0,z.useRef)(),Je=(0,z.useRef)(),_e=(0,z.useRef)(),We=St=>{(St.nativeEvent.target===it.current||St.nativeEvent.target===Je.current)&&Be()};return z.createElement(z.Fragment,null,ye?z.createElement("div",null,z.createElement("div",{className:"preview-wrp-group",ref:Je},z.createElement(ve.Z,{className:"image-preview",src:ye,style:{display:"none"},preview:{visible:!0,src:ye,onVisibleChange:St=>{ge("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},28267:function(Yt,zt,ie){"use strict";ie.d(zt,{h:function(){return it}});var z=ie(59301),Ve=ie(82326),ve=ie(28284),Le=ie(7939),ye=ie(89780),ge=ie.n(ye),ke=ie(88319),$e=ie(94896),Me=Object.defineProperty,de=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Ie=(Je,_e,We)=>_e in Je?Me(Je,_e,{enumerable:!0,configurable:!0,writable:!0,value:We}):Je[_e]=We,Oe=(Je,_e)=>{for(var We in _e||(_e={}))nt.call(_e,We)&&Ie(Je,We,_e[We]);if(be)for(var We of be(_e))Ae.call(_e,We)&&Ie(Je,We,_e[We]);return Je},Be=(Je,_e)=>de(Je,Ze(_e));const ct=Ve.default.Option,kt={labelCol:{span:4},wrapperCol:{span:20}},Ct={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"]};zt.Z=({callback:Je,onCancel:_e})=>{const[We,St]=(0,z.useState)("python");function Xe(ht){St(Ct[ht][1])}function Ke(ht){Je(ht)}return z.createElement(ve.default,Be(Oe({},kt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ke,style:{width:500}}),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(Ve.default,{getPopupContainer:ht=>ht.parentNode,onChange:Xe},Object.keys(Ct).map(ht=>z.createElement(ct,{key:ht,value:ht},Ct[ht][0])))),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(it,{mode:We})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Le.ZP,{type:"ghost",onClick:_e},"\u53D6\u6D88")))};function it({value:Je,onChange:_e,mode:We,options:St={}}){const Xe=(0,z.useRef)(),[Ke,ht]=(0,z.useState)();return(0,z.useEffect)(()=>{if(Ke){let Ne=function(et){const qe=et.getValue();_e&&_e(qe)};return Ke.on("change",Ne),()=>{Ke.off("change",Ne)}}},[Ke,_e]),(0,z.useEffect)(()=>{Ke&&Ke.setOption("mode",We)},[Ke,We]),(0,z.useEffect)(()=>{Ke&&(Je!==Ke.getValue()||Je==="")&&setTimeout(()=>{Ke.setValue(Je||"")},300)},[Ke,Je]),(0,z.useEffect)(()=>{if(Xe.current&&!Ke){const Ne=ge().fromTextArea(Xe.current,Oe({mode:We,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},St));ht(Ne)}},[Xe.current,Ke]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:Xe}))}},39116:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Fn}});var z=ie(59301),Ve=ie(44283),ve=ie(89780),Le=ie.n(ve),ye=ie(76374),ge=ie(88319),ke=ie(6313),$e=ie(25717),Me=ie(99498),de=ie(25419),Ze=ie(67549),be=ie(35883),nt=({value:yn="",className:An,showTextOnly:xn,showLines:Vn,style:ur={}})=>{const Tn=(0,z.useMemo)(()=>"",[yn]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Tn}}))},Ae=Object.defineProperty,Ie=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Ct=(yn,An,xn)=>An in yn?Ae(yn,An,{enumerable:!0,configurable:!0,writable:!0,value:xn}):yn[An]=xn,it=(yn,An)=>{for(var xn in An||(An={}))ct.call(An,xn)&&Ct(yn,xn,An[xn]);if(Be)for(var xn of Be(An))kt.call(An,xn)&&Ct(yn,xn,An[xn]);return yn},Je=(yn,An)=>Ie(yn,Oe(An));let _e=[{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 We({onActionCallback:yn,title:An,icon:xn,actionName:Vn,className:ur="",children:Tn}){function Qn(){yn(Vn)}return z.createElement("a",{title:An,className:ur,onClick:Qn},z.createElement("i",{className:`${xn}`}),Tn)}var St=({watch:yn,showNullButton:An,showNullProgramButton:xn,onActionCallback:Vn,fullScreen:ur,insertTemp:Tn,hidetoolBar:Qn,extraUse:sr})=>{const gr=[..._e,{title:`${yn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${yn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!Qn&&gr.map((Cr,ir)=>z.createElement("li",{key:ir},Cr.actionName?z.createElement(We,Je(it({},Cr),{onActionCallback:Vn})):z.createElement("span",{className:"v-line"}))),An?z.createElement("li",null,z.createElement(We,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Vn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,xn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(We,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Vn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(We,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Vn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Tn&&z.createElement("li",null,z.createElement(We,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Tn}`,onActionCallback:Vn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),sr&&z.createElement("li",null,sr),z.createElement("li",{className:"btn-full-screen"},z.createElement(We,{icon:`${ur?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ur?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Vn})))},Xe=ie(88487),Ke=ie(28284),ht=ie(37568),Ne=ie(7939),et=Object.defineProperty,qe=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Xt=(yn,An,xn)=>An in yn?et(yn,An,{enumerable:!0,configurable:!0,writable:!0,value:xn}):yn[An]=xn,Se=(yn,An)=>{for(var xn in An||(An={}))De.call(An,xn)&&Xt(yn,xn,An[xn]);if(Ot)for(var xn of Ot(An))At.call(An,xn)&&Xt(yn,xn,An[xn]);return yn},fe=(yn,An)=>qe(yn,me(An));const vt={labelCol:{span:4},wrapperCol:{span:20}};var Vt=({callback:yn,onCancel:An})=>{function xn(Vn){yn(Vn)}return z.createElement(Ke.default,fe(Se({},vt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xn,style:{width:500}}),z.createElement(Ke.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(ht.default,null)),z.createElement(Ke.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(ht.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Ne.ZP,{type:"ghost",onClick:An},"\u53D6\u6D88")))},Dt=ie(28267),ze=ie(53332),ut=ie(62957),gt=ie(77019),pn=ie(40254),Ft=ie(59301),en=({callback:yn,onCancel:An})=>{const xn=document.createElement("canvas"),Vn=xn.getContext("2d");xn.width=1e3,xn.height=800,Vn.fillStyle="#ffffff",Vn.fillRect(0,0,xn.width,xn.height);const ur=xn.toDataURL("image/png");return Ft.createElement(ut.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ft.createElement(gt.Z,{style:{height:"100vh"}},Ft.createElement(pn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ur,visible:!0,title:String(Date.now())},onOk:Tn=>{yn({src:Tn.url})},onClose:An})))},tt=ie(36207),Kt=ie(5269),pt=ie(6767),le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:yn,editImgId:An,callback:xn},Vn)=>{let ur=(0,z.useRef)(),Tn=(0,z.useRef)(),Qn=(0,z.useRef)(),sr=(0,z.useRef)(!1);const gr=(0,z.useRef)(!1);console.log("ref:",Vn);const[Cr,ir]=(0,z.useState)(0),[Bt,ln]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{ir(1)},[]),(0,z.useImperativeHandle)(Vn,()=>({setHeight:ln})),te.createElement("div",{ref:gr,className:"body-overflow-initial"},te.createElement(tt.Z,{width:"100vw",height:Bt,footer:null,closable:!0,placement:"bottom",open:!!Cr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${le.drawerWrap}`,onClose:()=>{window.saveDrawData(Kn=>{xn({src:`/api/attachments/${Kn}`,id:Kn})})},title:te.createElement(gt.Z,{align:"middle"},te.createElement(Kt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Kt.Z,{onClick:()=>{ln(Bt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Kt.Z,{onClick:()=>{window.saveDrawData(Kn=>{if(Kn===null){pt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}pt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),xn({src:`/api/attachments/${Kn}`,id:Kn,disabledClose:!0})})}},te.createElement(Ne.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${An||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Tn})))}),se=ie(14185),re=ie(47889),pe=ie(4875);const xe=re.ZP.Group,at={margin:"0 8px"};var Ee=({callback:yn,onCancel:An})=>{function xn(Vn){yn(Vn)}return z.createElement(Ke.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:at},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:at},"\u884C\u6570"),z.createElement(Ke.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(pe.Z,null)),z.createElement("span",{style:at},"\u5217\u6570"),z.createElement(Ke.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(pe.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:at},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(Ke.default.Item,{name:"align"},z.createElement(xe,null,z.createElement(re.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(re.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(re.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(re.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Ne.ZP,{type:"ghost",onClick:An},"\u53D6\u6D88")))},je=ie(58755),ot=ie(84915),wt=ie.n(ot),Zt=(0,z.forwardRef)(({use3d:yn,width:An,height:xn,callback:Vn,showSaveButton:ur},Tn)=>{const Qn=(0,z.useRef)(),sr=(0,z.useRef)(),[gr,Cr]=(0,z.useState)(!1),ir=(0,z.useRef)({id:Qn,appName:"graphing",width:An||1e3,height:xn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{sr.current=new(wt())(ir.current,!0),window.onload=function(){sr.current.inject("applet_container")}},[]);const Bt=()=>{var ln=window.ggbApplet.getPNGBase64(1,!0,72);return Vn&&Vn(ln),ln};return(0,z.useEffect)(()=>{ir.current.appName=gr?"3D":"graphing",sr.current.inject("applet_container")},[gr]),(0,z.useEffect)(()=>{Cr(yn)},[yn]),(0,z.useImperativeHandle)(Tn,()=>({getImgData:Bt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Qn}),z.createElement(gt.Z,{align:"middle"},z.createElement(Kt.Z,{flex:1},z.createElement(je.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gr,onChange:ln=>Cr(ln)})),z.createElement(Kt.Z,null,z.createElement(Ne.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),lt=ie(9057);const rt="link",xt="upload-image",Pt="add-flowchart",_t="draw-image",st="add-flowchart",Gt="code-block",Lt="add-table",Nt="------------",Qt={default:Nt,left:`:${Nt}`,center:`:${Nt}:`,right:`${Nt}:`};var Rn=ie(79006),fn=ie(76406);function Pe(){}let Qe=0;const yt=1e4,$t="\u2581",cn="@\u2581\u2581@",vn="@\u2581@",Un=`
|
|
|
**\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`,$n=["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 dn(yn){return/^\d+$/.test(yn)?`${yn}px`:yn}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",qn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"},Sn={[rt]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[xt]:"\u6DFB\u52A0\u56FE\u7247",[_t]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Lt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Fn=({defaultValue:yn="",onChange:An,width:xn="100%",height:Vn=400,miniToolbar:ur=!1,isFocus:Tn=!1,watch:Qn,insertTemp:sr,mode:gr="markdown",id:Cr="markdown-editor-id",showResizeBar:ir=!1,noStorage:Bt=!1,showNullButton:ln=!1,showNullProgramButton:Kn=!1,hidetoolBar:yr=!1,fullScreen:Te=!1,onBlur:Ue,onCMBeforeChange:Ce,onFullScreen:Re,className:we="",disablePaste:Fe=!1,disabled:ft=!1,disabledFill:qt=!1,placeholder:rn="",values:hn="",extraUse:Wt,onAddBlank:Mt})=>{const[bt,un]=(0,z.useState)(null),[Ln,En]=(0,z.useState)(yn),[In,dr]=(0,z.useState)(Qn),[mt,Ge]=(0,z.useState)(Te),[Et,Rt]=(0,z.useState)(""),[Ht,on]=(0,z.useState)(0),[Bn,mn]=(0,z.useState)(Vn),[Mn,Pn]=(0,z.useState)(!1),[Nn,wn]=(0,z.useState)(0),[nr,jn]=(0,z.useState)(0),Zn=(0,z.useRef)(),rr=(0,z.useRef)(),fr=(0,z.useRef)(),Gn=(0,z.useRef)(),ar=(0,z.useRef)(),zn=(0,z.useRef)(),hr=(0,Ve.useDispatch)();(0,z.useEffect)(()=>{const Jt=window.scrollY||window.pageYOffset;En(hn),bt==null||bt.setValue(hn),window.scrollTo(0,Jt)},[hn]),(0,z.useEffect)(()=>{Re==null||Re(mt)},[mt]),(0,z.useEffect)(()=>{if(Zn.current){let Jt=function(On,kn){var mr;if(Fe){kn.preventDefault();return}const kr=kn.clipboardData;if(kr){const xr=kr.types.toString(),Br=kr.items;if(xr==="Files"||kr.types.indexOf("Files")>-1){if(kn.preventDefault(),gr=="stex")return;try{let Lr=Br[1];((mr=Br[0])==null?void 0:mr.kind)==="file"&&(Lr=Br[0]);const Tr=Lr.getAsFile(),Or=Tr.name.split(".").pop();(0,ze.I)(Tr,Nr=>{var Fr,Gr,Qr;Nr.id?((Fr=Tr==null?void 0:Tr.type)==null?void 0:Fr.indexOf("image"))>-1?tn.replaceSelection(`<img width="100%" src="/api/attachments/${Nr.id}?type=${Nr.content_type})" alt="" />`):((Gr=Tr==null?void 0:Tr.type)==null?void 0:Gr.indexOf("video"))>-1?tn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Nr.id}"></video>`):((Qr=Tr==null?void 0:Tr.type)==null?void 0:Qr.indexOf("pdf"))>-1?tn.replaceSelection(`<a href="/api/attachments/${Nr.id}?type=${Tr.type}&disposition=inline" target="_blank">${Tr.name}</a>`):$n.includes(Or)?tn.replaceSelection(`<a href="/api/attachments/${Nr.id}?type=office&disposition=inline" target="_blank">${Tr.name}</a>`):tn.replaceSelection(`[${Tr.name}](/api/attachments/${Nr.id}?type=${Nr.content_type})`):(Nr==null?void 0:Nr.status)===401&&(document.location.href="/user/login")})}catch(Lr){pt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const tn=Le().fromTextArea(Zn.current,{mode:gr,lineNumbers:!ur,lineWrapping:!0,value:yn,autoCloseTags:!0,autoCloseBrackets:!0});return tn.on("keyup",function(On,kn){kn.keyCode===8&&(On.getValue()==""?tn.setOption("placeholder",rn):tn.setOption("placeholder",null))}),tn.on("keydown",function(On,kn){if(kn.keyCode===8){var mr=Sr(On);mr&&kn.preventDefault()}}),Tn&&tn.focus(),tn.on("paste",Jt),ft&&tn.on("beforeChange",function(On,kn){(kn.origin==="paste"||kn.origin==="+input")&&kn.cancel()}),un(tn),()=>{tn.off("paste",Jt)}}},[]);const _n=(0,z.useCallback)(()=>{if(rr.current)try{}catch(Jt){console.log(Jt,"---- to set md editor body height")}},[Bn,rr,mt]);(0,z.useEffect)(()=>{function Jt(){let tn=new ye.Z(On=>{for(let kn of On)(kn.target.offsetHeight>0||kn.target.offsetWidth>0)&&(_n(),bt.setSize("100%","100%"),bt.refresh())});return tn.observe(Zn.current.parentElement),tn}if(bt){const tn=Jt();return()=>{var On,kn;(On=Zn.current)!=null&&On.parentElement&&tn.unobserve((kn=Zn.current)==null?void 0:kn.parentElement)}}},[bt,_n]),(0,z.useEffect)(()=>{if(bt){let Jt=[];for(const[tn,On]of Object.entries(qn)){let kn={[tn]:()=>{tr(On)}};Jt.push(kn),bt.addKeyMap(kn)}return()=>{for(let tn of Jt)bt.removeKeyMap(tn)}}},[bt]),(0,z.useEffect)(()=>{Te!==mt&&Ge(Te)},[Te]),(0,Rn.Z)(()=>{if(!Bt&&Ht>0){let Jt=new Date().getTime(),tn=window.sessionStorage.getItem(Cr);Jt>=Ht+yt&&(!tn||tn!==Ln)&&(window.sessionStorage.setItem(Cr,Ln),Pn(!0))}},yt),(0,z.useEffect)(()=>{dr(Qn)},[bt,Qn]),(0,z.useEffect)(()=>{bt&&Tn&&bt.focus()},[bt,Tn]),(0,z.useEffect)(()=>{if(In&&bt){let Jt=function(On){let kn=On.target;if(Gn.current){let mr=kn.scrollTop/kn.scrollHeight;Gn.current.scrollTop=Gn.current.scrollHeight*mr}};const tn=bt.getScrollerElement();return tn.addEventListener("scroll",Jt),()=>{tn.removeEventListener("scroll",Jt)}}},[bt,In]),(0,z.useEffect)(()=>{if(bt&&Ce){let Jt=function(tn,On){Ce(tn,On)};return bt.on("beforeChange",Jt),()=>{bt.off("beforeChange",Jt)}}},[bt,Ce]),(0,z.useEffect)(()=>{if(bt&&Ue){let Jt=function(){Ue(bt.getValue())};return bt.on("blur",Jt),()=>{bt.off("blur",Jt)}}},[bt,Ue]);function Sr(Jt,tn){var On=Jt.getDoc(),kn=On.getCursor(),mr=On.getLine(kn.line),kr=mr.charAt(kn.ch-1),xr=mr.lastIndexOf("@\u2581@",kn.ch),Br=mr.lastIndexOf("@\u2581\u2581@",kn.ch),Lr=xr>Br?xr:Br,Tr=xr>Br?3:4;if(cn.indexOf(kr)===-1)return null;if(console.log("change1:",tn,Jt,mr,kn,Lr,xr,Br,kr),Lr>=0&&kn.ch-Lr<5){var Or=Lr+Tr;return On.replaceRange("",{line:kn.line,ch:Lr},{line:kn.line,ch:Or}),{line:kn.line,ch:Or}}return null}(0,z.useEffect)(()=>{if(bt){let Jt=function(tn,On){const kn=tn.getValue();En(kn),on(new Date().getTime()),tn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),An&&(Kn?An(kn,nn(kn)):An(kn))};return bt.on("change",Jt),()=>{bt.off("change",Jt)}}},[bt,An]),(0,z.useEffect)(()=>{if(bt)if(yn==null)bt.setValue(""),En("");else{const Jt=window.scrollY||window.pageYOffset;yn!==bt.getValue()&&(bt.setValue(yn),En(yn),bt.setCursor(ft?1:bt.lineCount(),0),window.scrollTo(0,Jt))}},[bt,yn]);const tr=(0,z.useCallback)(Jt=>{const tn=bt.getCursor(),On=bt.getSelection();let kn=On.split(`
|
|
|
`);switch(Jt){case"bold":return bt.replaceSelection("**"+On+"**"),On===""&&bt.setCursor(tn.line,tn.ch+2),bt.focus();case"italic":return bt.replaceSelection("*"+On+"*"),On===""&&bt.setCursor(tn.line,tn.ch+1),bt.focus();case"code":return bt.replaceSelection("`"+On+"`"),On===""&&bt.setCursor(tn.line,tn.ch+1),bt.focus();case"inline-latex":return(0,fn.Ye)(hr)?void 0:(Rt("inline-latex"),bt.focus());case"latex":return bt.replaceSelection("```latex\n"+On+"\n```"),bt.setCursor(tn.line+1,On.length+1),bt.focus();case"line-break":return bt.replaceSelection(`<br/>
|
|
|
`),bt.focus();case"list-ul":return On===""?bt.replaceSelection("- "+On):bt.replaceSelection(kn.map(mr=>mr===""?"":`- ${mr}`).join(`
|
|
|
`)),bt.focus();case"list-ol":return On===""?bt.replaceSelection("1. "+On):bt.replaceSelection(kn.map((mr,kr)=>mr===""?"":`${kr+1}. ${mr}`).join(`
|
|
|
`)),bt.focus();case"add-null-ch":Mt==null||Mt();return;case"add-signal":return On===""&&bt.setCursor(tn.line,tn.ch),bt.replaceSelection(vn),bt.focus();case"add-multiple":return On===""&&bt.setCursor(tn.line,tn.ch),bt.replaceSelection(cn),bt.focus();case"inster-template-1":return On===""&&bt.setCursor(tn.line,tn.ch),bt.replaceSelection(Un),bt.focus();case"eraser":return bt.setValue(""),bt.focus();case"trigger-watch":return dr(!In),bt.focus();case"trigger-full-screen":return Ge(!mt),bt.focus();case rt:Rt(rt);return;case Gt:Rt(Gt);return;case xt:Rt(xt);return;case _t:Rt(_t);return;case"maths-latex":if((0,fn.Ye)(hr))return;Rt("maths-latex");return;case Pt:ar.current="",sessionStorage.removeItem("file_id"),Rt(Pt);return;case Lt:Rt(Lt);return;default:throw new Error}},[bt,In,mt]),er=(0,z.useCallback)((Jt,tn)=>{var On,kn,mr,kr,xr,Br;Jt!=null&&Jt.disabledClose||Rt("");const{src:Lr,alt:Tr,id:Or}=Jt||{};switch(Et){case rt:const{title:ri,link:jr}=Jt;return bt.replaceSelection(`[${ri}](${jr})`),bt.focus();case Gt:const{language:Zr,content:_r}=Jt;return bt.replaceSelection(["```"+Zr,_r,"```"].join(`
|
|
|
`)),bt.focus();case"maths-latex":for(var Nr=atob(Jt),Fr=new Uint8Array(Nr.length),Gr=0;Gr<Nr.length;Gr++)Fr[Gr]=Nr.charCodeAt(Gr);var Qr=new Blob([Fr],{type:"image/png"});return(0,ze.I)(Qr,hi=>{hi.id?bt.replaceSelection(``):(hi==null?void 0:hi.status)===401&&(document.location.href="/user/login")}),bt.focus();case"inline-latex":return(0,fn.Ye)(hr)?void 0:(bt.replaceSelection("`$$"+Jt+"$$`"),bt.focus());case st:return Or?(bt.getValue().indexOf(Lr)===-1?bt.replaceSelection(`<center><img id="${Or}" width="80%" src="${Lr}" class="draw-flowchart" alt="${Tr||""}" /></center>`):document.getElementById(Or).src=se.Z.API_SERVER+Lr+"?t="+Date.now(),bt.focus()):void 0;case xt:case _t:const Dr=tn,Jr=(mr=(kn=(On=Dr==null?void 0:Dr.name)==null?void 0:On.split("."))==null?void 0:kn.pop)==null?void 0:mr.call(kn);return((kr=Dr==null?void 0:Dr.type)==null?void 0:kr.indexOf("image"))>-1||!(Dr!=null&&Dr.type)?Dr!=null&&Dr.align||Dr!=null&&Dr.width?bt.replaceSelection(`<p style="text-align:${Dr.align||"initial"}"><img width="${Dr.width?Dr.width+"%":"initial"}" src="${Lr}" alt="${Tr||""}" /></p>`):bt.replaceSelection(`<img width="100%" src="${Lr}" alt="${Tr||""}" />`):((xr=Dr==null?void 0:Dr.type)==null?void 0:xr.indexOf("video"))>-1?bt.replaceSelection(`<video width="100%" controls src="${Lr}"></video>`):((Br=Dr==null?void 0:Dr.type)==null?void 0:Br.indexOf("pdf"))>-1?bt.replaceSelection(`<a href="${Lr}?type=${Dr.type}&disposition=inline" target="_blank">${Dr.name}</a>`):$n.includes(Jr)?bt.replaceSelection(`<a href="${Lr}?type=office&disposition=inline" target="_blank">${Dr.name}</a>`):bt.replaceSelection(`[${Dr.name}](${Lr})`),bt.focus();case Lt:const{row:Yr,col:li,align:Ci}=Jt;let fi=`
|
|
|
`;for(let hi=0;hi<Yr;hi++){let Ii=[],Ur=[];for(let si=0;si<li;si++)hi===1&&Ur.push(Qt[Ci]),Ii.push(" ");hi===1&&(fi+=`| ${Ur.join(" | ")} |
|
|
|
`),fi+=`| ${Ii.join(li===1?"":" | ")} |
|
|
|
`}return bt.replaceSelection(fi+`
|
|
|
`),bt.focus();default:throw new Error}},[bt,Et]),cr=(0,z.useMemo)(()=>{switch(Et){case rt:return z.createElement(Vt,{callback:er,onCancel:br});case Gt:return z.createElement(Dt.Z,{callback:er,onCancel:br});case xt:return z.createElement(ze.Z,{callback:er,onCancel:br});case Pt:return z.createElement(oe,{editImgId:ar.current,callback:er,onCancel:br});case Lt:return z.createElement(Ee,{callback:er,onCancel:br});case"maths-latex":return z.createElement(Zt,{showSaveButton:!0,callback:er});case"inline-latex":return z.createElement(lt.Z,{showSaveButton:!0,callback:er});default:return null}},[Et]);function br(){Rt("")}(0,z.useEffect)(()=>{if(fr.current){let Jt=function(xr){mr=!0,kr=xr.pageY},tn=function(){mr=!1},On=function(xr){if(mr){let Br=xr.pageY-kr;Br<0&&(Br=0),Br>300&&(Br=300);let Lr=Vn+Br+"px";mn(Lr)}},kn=fr.current,mr=!1,kr=0;return kn.addEventListener("mousedown",Jt),document.addEventListener("mousemove",On),document.addEventListener("mouseup",tn),()=>{kn.removeEventListener("mousedown",Jt),document.removeEventListener("mousemove",On),document.removeEventListener("mouseup",tn)}}},[bt,fr]),(0,z.useEffect)(()=>{mn(Vn)},[Vn]);const vr=dn(xn),lr=dn(Bn),Yn={width:vr,height:lr},Ut=(0,z.useMemo)(()=>{if(Ht){let Jt=new Date(Ht),tn=Jt.getHours(),On=Jt.getMinutes(),kn=Jt.getSeconds();return tn=tn<10?"0"+tn:tn,On=On<10?"0"+On:On,kn=kn<10?"0"+kn:kn,`${tn}:${On}:${kn}`}return 0},[Ht]),nn=Jt=>{const tn=[];if(Kn){let On=-1;Jt=Jt.replace(/(@▁▁@|@▁@)/g,function(kn,mr,kr){tn.push({multiLine:kn!==vn})})}return tn};function an(){window.sessionStorage.removeItem(Cr),Pn(!1),on(0)}function jt(){Pn(!1),on(0),bt.setValue(window.sessionStorage.getItem(Cr))}(0,z.useEffect)(()=>{Sn[Et]&&Et!==_t&&Et!==Pt&&setTimeout(()=>{const Jt=document.getElementsByClassName("markdown-popup-form")[0],tn=window.innerWidth/2-Jt.offsetWidth/2,On=window.innerHeight/2-Jt.offsetHeight/2;wn(tn),jn(On)},0)},[Et]);const Dn=Jt=>{Jt.preventDefault();const tn=Jt.clientX-Nn,On=Jt.clientY-nr;document.body.onmousemove=kn=>{let mr=kn.clientX-tn,kr=kn.clientY-On;const xr=document.getElementsByClassName("markdown-popup-form")[0],Br=window.innerWidth-xr.offsetWidth,Lr=window.innerHeight-xr.offsetHeight;mr=Math.max(0,Math.min(mr,Br)),kr=Math.max(0,Math.min(kr,Lr)),Wn(kn.clientX,kn.clientY,tn,On)&&(wn(mr),jn(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Wn=(Jt,tn,On,kn)=>{const mr=document.body.clientHeight,kr=document.body.clientWidth;return Jt<20&&On>Jt||Jt>kr-20&&On<Jt||tn<20&&kn>tn||tn>mr-20&&kn<tn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:rr},z.createElement("div",{className:`markdown-editor-container ${we} ${In?"on-preview":""} ${ur?"mini":""} ${mt?"full-screen":""}`,style:Yn},z.createElement(St,{insertTemp:sr,watch:In,fullScreen:mt,showNullButton:ln,showNullProgramButton:Kn,onActionCallback:tr,hidetoolBar:yr,extraUse:Wt}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:Zn,placeholder:rn})),In?z.createElement("div",{ref:Gn,className:"preview-container"},gr==="stex"&&z.createElement(nt,{value:Ln}),gr!=="stex"&&z.createElement(be.Z,{edit:!0,disabledFill:qt,showProgramFill:Kn,value:Ln,openEditor:Jt=>{var tn;ar.current=Jt,(tn=zn.current)==null||tn.setHeight("100vh"),setTimeout(()=>{Rt("add-flowchart")},150)}})):null))),ir?z.createElement("a",{ref:fr,className:"editor-resize"}):null,Et===_t&&z.createElement(en,{callback:er,onCancel:br}),Et===Pt&&z.createElement(oe,{ref:zn,editImgId:ar.current,callback:er,onCancel:br}),z.createElement(Xe.Z,null,Sn[Et]&&Et!==_t&&Et!==Pt?z.createElement(ut.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Nn,top:nr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Dn},Sn[Et]),open:!0,onCancel:br,footer:null,destroyOnClose:!0,width:Et===Pt?"1200px":null,height:Et===Pt?"80vh":null,className:"markdown-popup-form"},cr):null))}},53332:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return _e},I:function(){return St}});var z=ie(28284),Ve=ie(6767),ve=ie(37568),Le=ie(44104),ye=ie(4875),ge=ie(47889),ke=ie(7939),$e=ie(23216),Me=ie(59301),de=ie(59301),Ze=Object.defineProperty,be=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Be=(Xe,Ke,ht)=>Ke in Xe?Ze(Xe,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Xe[Ke]=ht,ct=(Xe,Ke)=>{for(var ht in Ke||(Ke={}))Ie.call(Ke,ht)&&Be(Xe,ht,Ke[ht]);if(Ae)for(var ht of Ae(Ke))Oe.call(Ke,ht)&&Be(Xe,ht,Ke[ht]);return Xe},kt=(Xe,Ke)=>be(Xe,nt(Ke));const{useForm:Ct}=z.default,it={width:280,marginRight:10},Je={labelCol:{span:5},wrapperCol:{span:19}};var _e=({callback:Xe,onCancel:Ke})=>{const[ht]=Ct();let Ne=(0,Me.useRef)();function et(Ot){Ne.current.width=ht.getFieldValue("width"),Ne.current.align=ht.getFieldValue("align"),Xe(Ot,Ne.current)}function qe(Ot,De){if(Ot.status===-1){Ve.ZP.error(Ot.message);return}ht.setFieldsValue({src:`/api/attachments/${Ot.id}`,type:De.type})}function me(Ot){let De=Ot.target.files[0];Ne.current=De,St(De,qe)}return de.createElement(z.default,kt(ct({form:ht},Je),{className:"upload-image-panel",onFinish:et,style:{width:470,overflow:"hidden"}}),de.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},de.createElement("div",{className:"flex-container"},de.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},de.createElement(ve.default,{style:it})),de.createElement(We,{onFileChange:me}))),de.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},de.createElement(ve.default,{style:{width:264}})),de.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},de.createElement(Le.Z,null,de.createElement(z.default.Item,{name:"width",style:{margin:0}},de.createElement(ye.Z,{style:{width:264}})),de.createElement("span",{className:"ml8"},"%"))),de.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},de.createElement(ge.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"}]})),de.createElement("aside",null,de.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},de.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(ke.ZP,{type:"default",onClick:Ke},"\u53D6\u6D88"))))};function We({onFileChange:Xe}){return de.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",de.createElement("input",{type:"file",onChange:Xe}))}function St(Xe,Ke){if(!Xe)throw new String("\u6CA1\u6709\u6587\u4EF6");let ht=new FormData;ht.append("editormd-image-file",Xe),ht.append("file_param_name","editormd-image-file"),ht.append("byxhr","true");var Ne=new window.XMLHttpRequest;Ne.withCredentials=!0,Ne.addEventListener("load",function(et){Ke(JSON.parse(et.target.responseText),Xe)},!1),Ne.addEventListener("error",function(et){console.error(et)},!1),Ne.open("POST",`${$e.KI}/api/attachments.json`),Ne.send(ht)}},88487:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return ve}});var z=ie(59301),Ve=ie(4676);class ve extends z.Component{constructor(ye){super(ye);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,Ve.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Yt,zt,ie){"use strict";ie.d(zt,{SV:function(){return en},ZP:function(){return Ft}});var z=ie(59301),Ve=ie(76374);const ve={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Le={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"]},ye={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(`
|
|
|
`)}]},ge={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(`
|
|
|
`)}]},ke={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var $e=ie(53184),Me=ie.n($e),de=(tt,Kt,pt)=>new Promise((le,te)=>{var ee=re=>{try{se(pt.next(re))}catch(pe){te(pe)}},oe=re=>{try{se(pt.throw(re))}catch(pe){te(pe)}},se=re=>re.done?le(re.value):Promise.resolve(re.value).then(ee,oe);se((pt=pt.apply(tt,Kt)).next())});const Ze={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"]}},be=(tt,Kt,pt,le)=>{const te=Kt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:pt.lineNumber,endColumn:pt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:tt.languages.CompletionItemKind.Text,insertText:oe,range:le}))},nt=(tt,Kt,pt,le)=>{tt.languages.registerCompletionItemProvider(Kt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},re=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...be(tt,te,ee,se),...pt.map(xe=>({label:xe,kind:tt.languages.CompletionItemKind.Keyword,documentation:xe,insertText:xe,insertTextRules:tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...le.map(xe=>({label:xe.label,kind:tt.languages.CompletionItemKind.Snippet,documentation:xe.content,insertText:re.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:tt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Ae=tt=>{Ze.languages.forEach(Kt=>{tt.languages.registerDocumentFormattingEditProvider(Kt,{provideDocumentFormattingEdits(pt){return de(this,null,function*(){const le=Me()(pt.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:pt.getFullModelRange(),text:le}]})}})}),nt(tt,"java",Le.keywords,Le.quickKey),nt(tt,"cpp",ye.keywords,ye.quickKey),nt(tt,"c",ve.keywords,[]),nt(tt,"python",ge.keywords,ge.quickKey),nt(tt,"scala",ke.keywords,ke.quickKey)};const Ie="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Oe=Object.defineProperty,Be=(tt,Kt,pt)=>Kt in tt?Oe(tt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):tt[Kt]=pt,ct=(tt,Kt,pt)=>Be(tt,typeof Kt!="symbol"?Kt+"":Kt,pt);const kt=class zs{constructor(Kt,pt,le){this.placeholder=Kt,this.editor=pt,this.monaco=le,pt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return zs.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ct(kt,"ID","editor.widget.placeholderHint");var it=kt,Je=ie(96236),_e=ie(6767),We=ie(25399),St=ie(78267),Xe=ie(33156),Ke=ie(56102),ht=Object.defineProperty,Ne=Object.defineProperties,et=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,De=(tt,Kt,pt)=>Kt in tt?ht(tt,Kt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):tt[Kt]=pt,At=(tt,Kt)=>{for(var pt in Kt||(Kt={}))me.call(Kt,pt)&&De(tt,pt,Kt[pt]);if(qe)for(var pt of qe(Kt))Ot.call(Kt,pt)&&De(tt,pt,Kt[pt]);return tt},Xt=(tt,Kt)=>Ne(tt,et(Kt)),Se=(tt,Kt)=>{var pt={};for(var le in tt)me.call(tt,le)&&Kt.indexOf(le)<0&&(pt[le]=tt[le]);if(tt!=null&&qe)for(var le of qe(tt))Kt.indexOf(le)<0&&Ot.call(tt,le)&&(pt[le]=tt[le]);return pt},fe=(tt,Kt,pt)=>new Promise((le,te)=>{var ee=re=>{try{se(pt.next(re))}catch(pe){te(pe)}},oe=re=>{try{se(pt.throw(re))}catch(pe){te(pe)}},se=re=>re.done?le(re.value):Promise.resolve(re.value).then(ee,oe);se((pt=pt.apply(tt,Kt)).next())});function vt(tt){return/^\d+$/.test(tt)?`${tt}px`:tt}function Vt(){}let Dt=!1;const ze={"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 ut(tt=[]){let Kt=tt;if(Array.isArray(tt)){for(let pt=0;pt<tt.length;pt++){let le=ze[tt[pt]];if(le)return le}return Kt[0]}return ze[Kt]||Kt}let gt=null;const pn=()=>fe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(tt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",tt)}});var Ft=tt=>{var Kt=tt,{width:pt="100%",height:le="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:re={},theme:pe="vs-dark",onEditBlur:xe,isCopy:at=!1,onSave:Ee,autoHeight:je=!1,forbidCopy:ot=!1,forbidCopyTips:wt,onChange:dt=Vt,editorDidMount:Zt=Vt,onFocus:lt=Vt,onBreakPoint:rt=Vt,breakPointValue:xt=[],filename:Pt="educoder.txt",errorLine:_t,errorContent:st="",highlightLine:Gt,openBreakPoint:Lt=!1,placeholder:Nt="",showMiniMap:Qt=!0}=Kt,Rn=Se(Kt,["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 fn=(0,z.useRef)(),Pe=(0,z.useRef)({}),Qe=(0,z.useRef)(),yt=(0,z.useRef)(),$t=(0,z.useRef)([]),cn=(0,z.useRef)(!1),vn=(0,z.useRef)(),Un=(0,z.useRef)(),$n=(0,z.useRef)(!1),[dn,gn]=(0,z.useState)(!1);function bn(){let Bt;return fn.current&&(Bt=new Ve.Z(ln=>{for(let Kn of ln)(Kn.target.offsetHeight>0||Kn.target.offsetWidth>0)&&Pe.current.instance.layout()}),Bt.observe(fn.current)),Bt}function qn(){_e.ZP.warning({content:decodeURIComponent(wt||Ie),key:"monaco-editor-tip"})}const Sn=()=>{let Bt=Pe.current.instance;if(te!=null&&Bt&&dn){const ln=Bt.getModel();ln&&te!==ln.getValue()&&(Dt=!0,ln.setValue(te),Bt.layout(),Dt=!1)}};(0,z.useEffect)(()=>{const Bt=Xe.Z.subscribe("formatDocument",ln=>{var Kn;let yr=Pe.current.instance;(Kn=yr==null?void 0:yr.getAction)==null||Kn.call(yr,"editor.action.formatDocument").run()});return window.updateMonacoValue=ln=>{dt(ln)},Bt},[]),(0,z.useEffect)(()=>{var Bt;let ln=Pe.current.instance;yt.current&&clearTimeout(yt.current),yt.current=setTimeout(()=>{Sn()},500),te&&(te!=null&&te.length)&&((Bt=ln==null?void 0:ln.updateOptions)==null||Bt.call(ln,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,dn,Pe.current]),(0,z.useEffect)(()=>{if(_t&&Pe.current&&Pe.current.instance){let ln=Pe.current.instance;ln.changeViewZones(function(Kn){var yr=document.createElement("div");yr.style.padding="10px 20px",yr.style.width="calc(100% - 20px)",yr.className="my-error-line-wrp",yr.innerHTML=st,Kn.addZone({afterLineNumber:_t||11,heightInLines:3,domNode:yr})});var Bt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ln.addOverlayWidget(Bt),ln.revealPositionInCenter({lineNumber:20,column:1})}},[_t,Pe.current,dn]);const Fn=(Bt="",ln)=>{if(!Bt||Bt.trim()==="")return!0;const yr=Pe.current.instance.getModel().getLineTokens(ln);let Te=!1;for(let Ue=0;Ue<2;Ue++)yr.getStandardTokenType(Ue)===1&&(Te=!0);return Te};(0,z.useEffect)(()=>{var Bt;const ln=(Bt=Pe.current)==null?void 0:Bt.instance;if(ln&&dn&&ot){const Kn=ln.onDidBlurEditorWidget(()=>{$n.current=!1}),yr=ln.onDidFocusEditorText(()=>{$n.current=!0});return()=>{Kn.dispose(),yr.dispose()}}},[Pe.current,dn,ot]),(0,z.useEffect)(()=>{var Bt;if((Bt=Pe.current)!=null&&Bt.instance&&dn&&Lt){let ln=Pe.current.instance,Kn=ln.getModel();if(!Kn)return;(()=>{var Wt;let Mt=[],bt=[];const un=Kn.getAllDecorations();for(let En of un)En.options.className==="highlighted-line"&&(Mt.push((Wt=En==null?void 0:En.range)==null?void 0:Wt.startLineNumber),bt.push(En==null?void 0:En.id));if(Gt===Mt[0])return;Kn.deltaDecorations(bt,[]);const Ln=Kn.getLineCount();Gt&&Gt<=Ln&&(ln.deltaDecorations([],[{range:new gt.Range(Gt,1,Gt,Kn.getLineMaxColumn(Gt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ln.revealLineInCenter(Gt))})();const Te=(Wt=!1)=>{var Mt;let bt=[],un=[];const Ln=Kn.getAllDecorations();for(let En of Ln)En.options.linesDecorationsClassName==="breakpoints-select"&&(bt.push((Mt=En==null?void 0:En.range)==null?void 0:Mt.startLineNumber),un.push(En==null?void 0:En.id));if(Wt)return{lines:bt,ids:un};rt(bt)},Ue=Wt=>fe(void 0,null,function*(){let Mt={range:new gt.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Kn.deltaDecorations([],[Mt]),Te()}),Ce=Wt=>fe(void 0,null,function*(){let Mt=[];const bt=ln.getLineDecorations(Wt);for(let un of bt)un.options.linesDecorationsClassName==="breakpoints-select"&&Mt.push(un.id);yield Kn.deltaDecorations(Mt,[]),Te()}),Re=Wt=>{let Mt=ln.getLineDecorations(Wt);for(let bt of Mt)if(bt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,St.isEqual)(xt,Te(!0).lines)){Kn.deltaDecorations(Te(!0).ids,[]);const Wt=xt.map(Mt=>({range:new gt.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Kn.deltaDecorations([],Wt)}const we=ln.onDidChangeModelContent(Wt=>{let Mt=ln.getPosition();if(Mt){let bt=Mt.lineNumber;clearTimeout(Un.current),Un.current=setTimeout(()=>{Fn(Kn.getLineContent(bt),bt)?Ce(bt):Re(bt)?(Ce(bt),Ue(bt)):Te()},100)}}),Fe=ln.onMouseDown(Wt=>{var Mt,bt,un;if(Wt.target.detail&&((un=(bt=(Mt=Wt.target)==null?void 0:Mt.element)==null?void 0:bt.className)!=null&&un.includes("line-numbers"))){let Ln=Wt.target.position.lineNumber;if(Fn(Kn.getLineContent(Ln),Ln))return;Re(Ln)?Ce(Ln):Ue(Ln)}}),ft=Wt=>{let Mt={range:new gt.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};$t.current=ln.deltaDecorations($t.current,[Mt])},qt=()=>{$t.current=ln.deltaDecorations($t.current,[])},rn=ln.onMouseMove(Wt=>{var Mt,bt,un;if(qt(),Wt.target.detail&&((un=(bt=(Mt=Wt.target)==null?void 0:Mt.element)==null?void 0:bt.className)!=null&&un.includes("line-numbers"))){let Ln=Wt.target.position.lineNumber;if(Fn(Kn.getLineContent(Ln),Ln))return;ft(Ln)}}),hn=ln.onMouseLeave(()=>{qt()});return()=>{we.dispose(),Fe.dispose(),rn.dispose(),hn.dispose()}}},[Pe.current,dn,xt,Gt,Lt,ee]),(0,z.useEffect)(()=>{var Bt;(Bt=Pe.current)!=null&&Bt.instance&&Lt&&Pe.current.instance.setPosition({lineNumber:0,column:0})},[Gt]);function yn(){let Bt=Pe.current.instance;if(Bt){const ln=Bt.getSelection(),Kn=Pe.current.pastePos||{},yr=new gt.Range(Kn.startLineNumber||ln.endLineNumber,Kn.startColumn||ln.endColumn,Kn.endLineNumber||ln.endLineNumber,Kn.endColumn||ln.endColumn);setTimeout(()=>{Bt.executeEdits("",[{range:yr,text:""}])},300)}}function An(Bt){(window.navigator.platform.match("Mac")?Bt.metaKey:Bt.ctrlKey)&&Bt.keyCode==83&&(Bt.preventDefault(),Ee())}const xn=()=>{if(je&&Pe.current.instance){const Bt=Pe.current.instance.getContentHeight();Cr(Bt<le?le:Bt)}else Cr(le)};function Vn(Bt){var ln=document.createEvent("MouseEvents");ln.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Bt.dispatchEvent(ln)}const ur=Bt=>{if(!$n.current)return;const{keyCode:ln,ctrlKey:Kn,metaKey:yr,target:Te,type:Ue}=Bt;return(Ue==="paste"||(ln===67||ln===86)&&(yr||Kn))&&Te.nodeName==="TEXTAREA"&&(qn(),Bt.preventDefault()),!1};function Tn(Bt,ln){var Kn=window.URL||window.webkitURL||window,yr=new Blob([ln]),Te=document.createElementNS("http://www.w3.org/1999/xhtml","a");Te.href=Kn.createObjectURL(yr),Te.download=Bt,Vn(Te)}(0,z.useEffect)(()=>{xn()},[xn]),(0,z.useEffect)(()=>{fn.current&&!dn&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(Bt=>{try{gt=Bt,Pe.current.instance=gt.editor.create(fn.current,{value:te,language:ut(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Qt||!1}},re);const ln=Pe.current.instance;let Te=[...Je.BH._menuItems].find(we=>we[0]._debugName=="EditorContext")[1],Ue=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ce=(we,Fe)=>{var ft,qt;let rn=we._first;do Fe.includes((qt=(ft=rn.element)==null?void 0:ft.command)==null?void 0:qt.id)&&we._remove(rn);while(rn=rn.next)};if(Zt(ln,gt),setTimeout(()=>{xn(),Pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Tn(Pt||"educoder.txt",ln.getValue())}})},500),Pe.current.subscription=ln.onDidChangeModelContent(we=>{cn.current?clearTimeout(vn.current):(xn(),dt(ln.getValue(),we)),vn.current=setTimeout(()=>{cn.current=!1},500)}),window.Monaco||Ae(gt,ut(ee)),ot&&(Ce(Te,Ue),fn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ur),window.removeEventListener("paste",ur),window.addEventListener("keydown",ur),window.addEventListener("paste",ur)),window.Monaco=gt,xe&&ln.onDidBlurEditorWidget(()=>{xe(ln.getValue())}),lt&&ln.onDidFocusEditorText(()=>{ot&&pn(),lt(ln.getValue())}),ot){pn();try{ln.onDidPaste(we=>{const Fe=ln.getSelection(),ft=Pe.current.pastePos||{},qt=new gt.Range(ft.startLineNumber||Fe.endLineNumber,ft.startColumn||Fe.endColumn,ft.endLineNumber||Fe.endLineNumber,ft.endColumn||Fe.endColumn);ln.executeEdits("",[{range:we.range,text:""}])})}catch(we){}}let Re=bn();return Nt&&typeof Nt=="string"&&new it(Nt,ln,gt),gn(!0),()=>{const we=Pe.current.instance;we.dispose();const Fe=we.getModel();Fe&&Fe.dispose(),Pe.current.subscription&&Pe.current.subscription.dispose(),Re.unobserve(fn.current)}}catch(ln){}})},[]),(0,z.useEffect)(()=>{if(Pe.current.instance&&dn)return document.addEventListener("keydown",An,!1),()=>{document.removeEventListener("keydown",An)}},[Ee,dn]),(0,z.useEffect)(()=>{let Bt=Pe.current.instance;if(Bt&&dn){let ln=ut(ee);gt.editor.setModelLanguage(Bt.getModel(),ln)}},[ee,dn]),(0,z.useEffect)(()=>{Pe.current.instance&&dn&>.editor.setTheme(pe)},[pe,dn]),(0,z.useEffect)(()=>{let Bt=Pe.current.instance;Qe.current=se,Bt&&dn&&(Bt.updateOptions(At({},se)),setTimeout(()=>{Bt.getModel().updateOptions(At({},se))},200))},[JSON.stringify(se),dn]),(0,z.useEffect)(()=>{let Bt=Pe.current.instance;Bt&&dn&&Bt.layout()},[pt,le,dn]);const[Qn,sr]=(0,z.useState)(vt(pt)),[gr,Cr]=(0,z.useState)(vt(le)),ir=Xt(At({},oe),{width:Qn,height:gr,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:fn,style:ir,onFocus:()=>{ot&&pn()}},at&&z.createElement(Ke.CopyToClipboard,{text:te,onCopy:()=>_e.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function en({width:tt="100%",height:Kt="100%",original:pt,modified:le,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,re]=(0,z.useState)(null);function pe(je){let ot;return oe.current&&(ot=new Ve.Z(wt=>{for(let dt of wt)(dt.target.offsetHeight>0||dt.target.offsetWidth>0)&&je.layout()}),ot.observe(oe.current)),ot}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(je=>{gt=je;const ot=gt.editor.createDiffEditor(oe.current,Xt(At({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));re(ot);let wt=pe(ot);return()=>{ot.dispose();const dt=ot.getModel();dt&&dt.dispose(),wt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:gt.editor.createModel(pt,te),modified:gt.editor.createModel(le,te)})},[pt,le,te,se]);const xe=vt(tt),at=vt(Kt),Ee={width:xe,height:at};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Ee})}},79006:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Ve}});var z=ie(59301);function Ve(ve,Le){const ye=(0,z.useRef)();(0,z.useEffect)(()=>{ye.current=ve}),(0,z.useEffect)(()=>{function ge(){ye.current()}if(Le!==null){let ke=setInterval(ge,Le);return()=>clearInterval(ke)}},[Le])}},12994:function(Yt,zt,ie){"use strict";ie.r(zt),ie.d(zt,{default:function(){return Zt}});var z=ie(59301),Ve=ie(44283),ve=ie(77019),Le=ie(5269),ye=ie(66649),ge=ie.n(ye),ke=ie(93041),$e=ie(24404),Me=ie(29787),de=ie(26724),Ze=ie.n(de),be=ie(14185),nt=ie(35883),Ae={flex_box_center:"flex_box_center___OfYbN",flex_space_between:"flex_space_between___hrkuU",flex_box_vertical_center:"flex_box_vertical_center___jxUNa",flex_box_center_end:"flex_box_center_end___toHnG",flex_box_column:"flex_box_column___hO761",userInfo:"userInfo___AOrZJ",navInfo:"navInfo___eCDON",actived:"actived___FDrE1",topBar:"topBar___L5Hq4",tabs:"tabs___K46zs",active:"active___hMEvd",list:"list____5qRM",tags:"tags___R3aHm",searchWrp:"searchWrp___AlrVM",listMessage:"listMessage___DSDfV",deleteMsg:"deleteMsg___omx9n",listRightMessage:"listRightMessage___lZyYc",content:"content___vaWQf",msg:"msg___BhVg6",msgDate:"msgDate___oRFwZ"},Ie=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,kt=(lt,rt,xt)=>rt in lt?Ie(lt,rt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):lt[rt]=xt,Ct=(lt,rt)=>{for(var xt in rt||(rt={}))Be.call(rt,xt)&&kt(lt,xt,rt[xt]);if(Oe)for(var xt of Oe(rt))ct.call(rt,xt)&&kt(lt,xt,rt[xt]);return lt},it=(lt,rt)=>{var xt={};for(var Pt in lt)Be.call(lt,Pt)&&rt.indexOf(Pt)<0&&(xt[Pt]=lt[Pt]);if(lt!=null&&Oe)for(var Pt of Oe(lt))rt.indexOf(Pt)<0&&ct.call(lt,Pt)&&(xt[Pt]=lt[Pt]);return xt},Je=(lt,rt,xt)=>new Promise((Pt,_t)=>{var st=Nt=>{try{Lt(xt.next(Nt))}catch(Qt){_t(Qt)}},Gt=Nt=>{try{Lt(xt.throw(Nt))}catch(Qt){_t(Qt)}},Lt=Nt=>Nt.done?Pt(Nt.value):Promise.resolve(Nt.value).then(st,Gt);Lt((xt=xt.apply(lt,rt)).next())});const{SubMenu:_e}=ke.default,{Sider:We,Content:St}=$e.default,Xe=lt=>{var rt=lt,{messages:xt,globalSetting:Pt,loading:_t,user:st,dispatch:Gt}=rt,Lt=it(rt,["messages","globalSetting","loading","user","dispatch"]);const Nt=(0,Ve.useParams)(),Qt=(0,Ve.useLocation)(),{userInfo:Rn}=st,[fn,Pe]=(0,z.useState)(!1),[Qe,yt]=(0,z.useState)({per_page:20,page:1}),[$t,cn]=(0,z.useState)({per_page:20,page:1}),[vn,Un]=(0,z.useState)([]);(0,z.useEffect)(()=>{Qe.page=1,dn()},[Nt.userId]);const $n=gn=>{var bn,qn;Ve.history.push(`/messages/${(bn=st==null?void 0:st.userInfo)==null?void 0:bn.login}/message_detail?target_ids=${(qn=gn==null?void 0:gn.target)==null?void 0:qn.id}`)},dn=()=>Je(void 0,null,function*(){var gn;Pe(!1);const bn=yield Gt({type:"messages/getPrivateMessages",payload:Ct(Ct({},Nt),$t)});bn!=null&&bn.private_messages&&(Un([...vn,...bn.private_messages]),((gn=bn.private_messages)==null?void 0:gn.length)===20&&Pe(!0))});return z.createElement("aside",{className:Ae.listRightMessage},z.createElement(Ze(),{loadMore:()=>{$t.page++,dn()},hasMore:fn,useWindow:!1},z.createElement(Me.Z,{spinning:_t["messages/getPrivateMessages"]},z.createElement("div",{className:"minH500"},vn==null?void 0:vn.map(function(gn,bn){var qn,Sn;return z.createElement("aside",{key:bn},z.createElement(ve.Z,{onClick:()=>$n(gn)},z.createElement(Le.Z,{flex:"58px"},z.createElement("img",{src:be.Z.IMG_SERVER+"/images/"+((qn=gn==null?void 0:gn.target)==null?void 0:qn.image_url),alt:""})),z.createElement(Le.Z,{flex:"1"},z.createElement(ve.Z,null,z.createElement(Le.Z,{span:24},z.createElement(ve.Z,null,z.createElement(Le.Z,{flex:"1"},z.createElement("span",{className:Ae.userName},(Sn=gn==null?void 0:gn.target)==null?void 0:Sn.name)),z.createElement(Le.Z,null,z.createElement("span",{className:"ml15 c-grey-c"},ge()(gn.send_time).fromNow())))),z.createElement(Le.Z,{span:24},z.createElement("div",{className:["mt15",Ae.content].join(" ")},z.createElement(nt.Z,{value:gn.content||""})))))))})))))};var Ke=(0,Ve.connect)(({messages:lt,loading:rt,user:xt,globalSetting:Pt})=>({messages:lt,globalSetting:Pt,user:xt,loading:rt.effects}))(Xe),ht=ie(28284),Ne=ie(6767),et=ie(7939),qe=ie(11295),me=ie(76406),Ot=ie(80007),De=ie(39116),At=ie(33156),Xt=Object.defineProperty,Se=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,ze=(lt,rt,xt)=>rt in lt?Xt(lt,rt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):lt[rt]=xt,ut=(lt,rt)=>{for(var xt in rt||(rt={}))Vt.call(rt,xt)&&ze(lt,xt,rt[xt]);if(vt)for(var xt of vt(rt))Dt.call(rt,xt)&&ze(lt,xt,rt[xt]);return lt},gt=(lt,rt)=>Se(lt,fe(rt)),pn=(lt,rt)=>{var xt={};for(var Pt in lt)Vt.call(lt,Pt)&&rt.indexOf(Pt)<0&&(xt[Pt]=lt[Pt]);if(lt!=null&&vt)for(var Pt of vt(lt))rt.indexOf(Pt)<0&&Dt.call(lt,Pt)&&(xt[Pt]=lt[Pt]);return xt},Ft=(lt,rt,xt)=>new Promise((Pt,_t)=>{var st=Nt=>{try{Lt(xt.next(Nt))}catch(Qt){_t(Qt)}},Gt=Nt=>{try{Lt(xt.throw(Nt))}catch(Qt){_t(Qt)}},Lt=Nt=>Nt.done?Pt(Nt.value):Promise.resolve(Nt.value).then(st,Gt);Lt((xt=xt.apply(lt,rt)).next())});const{SubMenu:en}=ke.default,{Sider:tt,Content:Kt}=$e.default,pt=lt=>{var rt=lt,{messages:xt,globalSetting:Pt,loading:_t,user:st,dispatch:Gt}=rt,Lt=pn(rt,["messages","globalSetting","loading","user","dispatch"]);const Nt=(0,Ve.useParams)(),[Qt,Rn]=(0,Ve.useSearchParams)(),[fn,Pe]=(0,z.useState)({per_page:20,page:1}),[Qe,yt]=(0,z.useState)([]),[$t,cn]=(0,z.useState)(!1),[vn,Un]=(0,z.useState)(!1),[$n,dn]=(0,z.useState)(""),gn=(0,z.useRef)(),[bn]=ht.default.useForm();let[qn,Sn]=(0,z.useState)([]),[Fn,yn]=(0,z.useState)(!0);(0,z.useEffect)(()=>{fn.page=1,An()},[Qt.get("target_ids")]);const An=()=>Ft(void 0,null,function*(){cn(!1);const Tn=yield Gt({type:"messages/getPrivateMessageDetails",payload:ut(gt(ut({},Nt),{target_id:Qt.get("target_ids")}),fn)});Tn!=null&&Tn.messages&&(qn=Tn==null?void 0:Tn.messages,(qn==null?void 0:qn.length)===20&&setTimeout(()=>{cn(!0),yn(!1)},500),fn.page===1?yt([...Tn==null?void 0:Tn.messages.reverse()]):yt([...Qe,...Tn==null?void 0:Tn.messages.reverse()]))});(0,z.useEffect)(()=>{console.log("newData.length:",fn,qn.length,qn),fn.page===1&&Fn&&(gn.current.scrollTop=gn.current.scrollHeight)},[Qe]),(0,z.useEffect)(()=>{gn.current.onclick=Tn=>{Tn.target.nodeName==="IMG"&&Tn.target.alt!==""&&At.Z.publish("preview-image",Tn.target.src)}},[]);const xn=(Tn,Qn)=>Ft(void 0,null,function*(){(yield(0,Ot.dl)(gt(ut({},Nt),{id:Tn.id}))).status===0&&(Qe.splice(Qn,1),yt([...Qe]))}),Vn=()=>Ft(void 0,null,function*(){if($n==="")return Ne.ZP.error("\u8BF7\u8F93\u5165\u60A8\u7684\u56DE\u590D"),!1;dn(""),Un(!0),yield(0,Ot.w0)(gt(ut({},Nt),{content:$n,target_id:Qt.get("target_ids")})),Un(!1),fn.page=1,bn.resetFields(),An()}),ur=(0,z.useMemo)(()=>{const{userInfo:Tn}=st||{};return(Tn==null?void 0:Tn.is_teacher)&&(Tn==null?void 0:Tn.professional_certification)},[st]);return z.createElement("section",null,z.createElement("aside",{className:Ae.listMessage,ref:gn},z.createElement(Ze(),{isReverse:!0,loadMore:()=>{fn.page++,An()},hasMore:$t,useWindow:!1},!$t&&z.createElement("div",{className:"tc mt20 animated fadeIn"},z.createElement("span",{className:Ae.msgDate},"\u6CA1\u6709\u4FE1\u606F\u4E86\uFF5E\uFF5E")),z.createElement(Me.Z,{spinning:_t["messages/getPrivateMessageDetails"]},z.createElement("aside",{className:"minH500"},Qe==null?void 0:Qe.map(function(Tn,Qn){var sr;return z.createElement("aside",{key:Qn},z.createElement(ve.Z,{justify:"center"},z.createElement(Le.Z,{flex:"1",className:"tc"},z.createElement("span",{className:Ae.msgDate},ge()(Tn.send_time).format("YYYY-MM-DD")))),z.createElement(ve.Z,{onClick:()=>(0,me._g)(Tn)},z.createElement(Le.Z,{flex:"58px"},z.createElement("img",{src:be.Z.IMG_SERVER+"/images/"+((sr=Tn==null?void 0:Tn.sender)==null?void 0:sr.image_url),alt:""})),z.createElement(Le.Z,null,z.createElement("div",{className:Ae.msg},z.createElement(nt.Z,{value:Tn.content||""}),z.createElement("span",{onClick:()=>xn(Tn,Qn),className:["current",Ae.deleteMsg].join(" ")},"\u5220\u9664"))),z.createElement(Le.Z,null,z.createElement("span",{className:"c-grey-c ml10"},ge()(Tn.send_time).format("HH:mm")))))}))))),z.createElement("aside",{className:"pl30 pr30 mb30 mt30"},ur?z.createElement(ht.default,{form:bn},z.createElement(ht.default.Item,{name:"content"},z.createElement(De.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u56DE\u590D",height:150,onChange:Tn=>dn(Tn)})),z.createElement(ve.Z,null,z.createElement(Le.Z,{flex:"1"},z.createElement("span",{className:"c-red font14"},"\u5728\u95EE\u9898\u53CD\u9988\u65F6\uFF0C\u8BF7\u540C\u65F6\u53D1\u9001\u95EE\u9898\u53D1\u751F\u9875\u7684\u7F51\u5740\u94FE\u63A5\uFF0C\u4EE5\u4FBF\u6211\u4EEC\u9AD8\u6548\u7684\u4E3A\u60A8\u670D\u52A1")),z.createElement(Le.Z,null,z.createElement(et.ZP,{loading:vn,type:"primary",onClick:()=>Vn()},"\u56DE\u590D")))):z.createElement("p",{className:"c-red font14",style:{textAlign:"center"}},"\u4EC5\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u4F7F\u7528\u79C1\u4FE1\u529F\u80FD")),z.createElement(qe.Z,null))};var le=(0,Ve.connect)(({messages:lt,loading:rt,user:xt,globalSetting:Pt})=>({messages:lt,globalSetting:Pt,user:xt,loading:rt.effects}))(pt),te=ie(79553),ee=Object.defineProperty,oe=Object.defineProperties,se=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,at=(lt,rt,xt)=>rt in lt?ee(lt,rt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):lt[rt]=xt,Ee=(lt,rt)=>{for(var xt in rt||(rt={}))pe.call(rt,xt)&&at(lt,xt,rt[xt]);if(re)for(var xt of re(rt))xe.call(rt,xt)&&at(lt,xt,rt[xt]);return lt},je=(lt,rt)=>oe(lt,se(rt)),ot=(lt,rt)=>{var xt={};for(var Pt in lt)pe.call(lt,Pt)&&rt.indexOf(Pt)<0&&(xt[Pt]=lt[Pt]);if(lt!=null&&re)for(var Pt of re(lt))rt.indexOf(Pt)<0&&xe.call(lt,Pt)&&(xt[Pt]=lt[Pt]);return xt},wt=(lt,rt,xt)=>new Promise((Pt,_t)=>{var st=Nt=>{try{Lt(xt.next(Nt))}catch(Qt){_t(Qt)}},Gt=Nt=>{try{Lt(xt.throw(Nt))}catch(Qt){_t(Qt)}},Lt=Nt=>Nt.done?Pt(Nt.value):Promise.resolve(Nt.value).then(st,Gt);Lt((xt=xt.apply(lt,rt)).next())});const dt=lt=>{var rt=lt,{messages:xt,globalSetting:Pt,loading:_t,user:st,dispatch:Gt}=rt,Lt=ot(rt,["messages","globalSetting","loading","user","dispatch"]),Nt;const[Qt,Rn]=(0,Ve.useSearchParams)(),fn=(0,Ve.useParams)(),{userInfo:Pe}=st,{tidingsList:Qe,privateMessageDetails:yt}=xt,[$t,cn]=(0,z.useState)({per_page:20,page:1}),[vn,Un]=(0,z.useState)({per_page:20,page:1}),[$n,dn]=(0,z.useState)([]),[gn,bn]=(0,z.useState)([]);(0,z.useEffect)(()=>{$t.page=1},[fn.userId]);const qn=()=>wt(void 0,null,function*(){const Fn=yield Gt({type:"messages/getPrivateMessageDetails",payload:je(Ee({},fn),{target_id:Qt.get("target_ids")})});Fn!=null&&Fn.messages&&dn(Fn.messages)}),Sn=()=>wt(void 0,null,function*(){const Fn=yield Gt({type:"messages/getPrivateMessages",payload:Ee(Ee({},fn),vn)});Fn!=null&&Fn.private_messages&&bn(Fn.private_messages)});return z.createElement("section",{className:Ae.bg},z.createElement("section",{className:"edu-container mt20"},z.createElement(ve.Z,{gutter:[20,20]},z.createElement(te.Z,null),z.createElement(Le.Z,{flex:"1"},z.createElement("aside",{className:"bg-white"},z.createElement("aside",{className:["font16",Ae.topBar].join(" ")},z.createElement(ve.Z,null,z.createElement(Le.Z,{flex:"30px",className:"tc"},z.createElement(Ve.Link,{to:`/messages/${fn.userId}/private_messages`,className:"iconfont icon-zuojiantou c-black pl10"})),z.createElement(Le.Z,{flex:"1",className:"tc"},(Nt=yt==null?void 0:yt.target)==null?void 0:Nt.name,"\u4E0E\u4F60\u7684\u79C1\u4FE1"),z.createElement(Le.Z,{flex:"290px",className:"tl"},z.createElement("span",{className:"pl30"},"\u79C1\u4FE1\u5217\u8868")))),z.createElement(ve.Z,null,z.createElement(Le.Z,{flex:"1"},z.createElement(le,null)),z.createElement(Le.Z,{flex:"290px"},z.createElement(Ke,null))))))))};var Zt=(0,Ve.connect)(({messages:lt,loading:rt,user:xt,globalSetting:Pt})=>({messages:lt,globalSetting:Pt,user:xt,loading:rt.effects}))(dt)},79553:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return kt}});var z=ie(59301),Ve=ie(44283),ve=ie(93041),Le=ie(24404),ye=ie(5269),ge=ie(14185),ke={flex_box_center:"flex_box_center___cQVhO",flex_space_between:"flex_space_between___L36a6",flex_box_vertical_center:"flex_box_vertical_center___sIHwG",flex_box_center_end:"flex_box_center_end___OqNyE",flex_box_column:"flex_box_column___Ct7XG",userInfo:"userInfo____uyMZ",navInfo:"navInfo___acXs6",actived:"actived___WhZza",newTip:"newTip___Jdd6B"},$e=Object.defineProperty,Me=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,be=(Ct,it,Je)=>it in Ct?$e(Ct,it,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Ct[it]=Je,nt=(Ct,it)=>{for(var Je in it||(it={}))de.call(it,Je)&&be(Ct,Je,it[Je]);if(Me)for(var Je of Me(it))Ze.call(it,Je)&&be(Ct,Je,it[Je]);return Ct},Ae=(Ct,it)=>{var Je={};for(var _e in Ct)de.call(Ct,_e)&&it.indexOf(_e)<0&&(Je[_e]=Ct[_e]);if(Ct!=null&&Me)for(var _e of Me(Ct))it.indexOf(_e)<0&&Ze.call(Ct,_e)&&(Je[_e]=Ct[_e]);return Je};const{SubMenu:Ie}=ve.default,{Sider:Oe,Content:Be}=Le.default,ct=Ct=>{var it=Ct,{messages:Je,globalSetting:_e,loading:We,user:St,dispatch:Xe}=it,Ke=Ae(it,["messages","globalSetting","loading","user","dispatch"]);const ht=(0,Ve.useParams)(),{userInfo:Ne}=St,et=(0,Ve.useLocation)(),{tidingsList:qe,privateMessage:me,unreadInfo:Ot}=Je,[De,At]=(0,z.useState)({per_page:10,page:1});(0,z.useEffect)(()=>{Xt()},[ht.userId]);const Xt=()=>{Xe({type:"messages/unreadMessageInfo",payload:nt(nt({},De),ht)})};return z.createElement(ye.Z,{flex:"264px"},z.createElement("aside",{className:ke.userInfo},z.createElement("img",{className:"mt40",src:ge.Z.IMG_SERVER+"/images/"+(Ne==null?void 0:Ne.image_url)}),z.createElement("p",{className:"font24 mt10"},Ne==null?void 0:Ne.username),z.createElement("p",{className:"mt20"},Ne==null?void 0:Ne.user_identity)),z.createElement("ul",{className:ke.navInfo},z.createElement(Ve.Link,{to:`/messages/${Ne==null?void 0:Ne.login}/user_tidings`},z.createElement("li",{className:et.pathname.indexOf("user_tidings")>-1&&ke.actived},"\u6D88\u606F",!!(Ot!=null&&Ot.unread_tiding_count)&&z.createElement("span",{className:ke.newTip},Ot==null?void 0:Ot.unread_tiding_count))),z.createElement(Ve.Link,{to:`/messages/${Ne==null?void 0:Ne.login}/private_messages`},z.createElement("li",{className:(et.pathname.indexOf("private_messages")>-1||et.pathname.indexOf("message_detail")>-1)&&ke.actived},"\u79C1\u4FE1",!!(Ot!=null&&Ot.unread_message_count)&&z.createElement("span",{className:ke.newTip},Ot==null?void 0:Ot.unread_message_count)))))};var kt=(0,Ve.connect)(({messages:Ct,loading:it,user:Je,globalSetting:_e})=>({messages:Ct,globalSetting:_e,user:Je,loading:it.effects}))(ct)},20047:function(Yt,zt,ie){"use strict";ie.d(zt,{AL:function(){return it},Iy:function(){return Ze},Qv:function(){return Ae},ez:function(){return Ct},jb:function(){return be}});var z=ie(32834),Ve=ie.n(z),ve=ie(11690),Le=ie.n(ve);let ye=1;function ge(Xe,Ke){const ht=Xe.match(/^(\s+)(?:```)/);if(ht===null)return Ke;const Ne=ht[1];return Ke.split(`
|
|
|
`).map(et=>{const qe=et.match(/^\s+/);if(qe===null)return et;const[me]=qe;return me.length>=Ne.length?et.slice(Ne.length):et}).join(`
|
|
|
`)}let ke=[],$e=["<ul>"];const Me=new(Ve()).Renderer,de=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ze(){ke.length=0,$e=["<ul>"]}const be={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function nt(Xe,Ke,ht,Ne){if(Ke>=Xe.length||Xe[Ke].level<=ht)return Ke;var et=Xe[Ke];Ne.push("<li><a href='#"+ye+et.anchor+"'>"+et.text+"</a>"),Ke++;var qe=[];return Ke=nt(Xe,Ke,et.level,qe),qe.length>0&&(Ne.push("<ul>"),qe.forEach(function(me){Ne.push(me)}),Ne.push("</ul>")),Ne.push("</li>"),Ke=nt(Xe,Ke,ht,Ne),Ke}function Ae(){return nt(ke,0,0,$e),$e.push("</ul>"),$e.join("")}const Ie={heading(Xe){const Ke=de.exec(Xe);if(ye+=1,Ke)return{type:"heading",raw:Ke[0],depth:Ke[1].length,text:Ke[2]}},fences(Xe){const Ke=this.rules.block.fences.exec(Xe);if(Ke){const ht=Ke[0];let Ne=ge(ht,Ke[3]||"");const et=Ke[2]?Ke[2].trim():Ke[2];if(["latex","katex","math"].indexOf(et)>=0){const qe=ct(),me=Ne;Ne=qe,kt[qe]={type:"block",expression:me}}return{type:"code",raw:ht,lang:et,text:Ne}}}},Oe=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Be=0;const ct=()=>`__special_katext_id_${Be++}__`;let kt={};function Ct(){return kt}function it(){Be=0,kt={}}function Je(Xe){return Xe=Xe.replace(Oe,(Ke,ht)=>{const Ne=ct();return kt[Ne]={type:"inline",expression:ht},Ne}),Xe}const _e=Me.listitem;Me.listitem=function(Xe){return _e(Je(Xe))};const We=Me.paragraph;Me.paragraph=function(Xe){return We(Je(Xe))};const St=Me.tablecell;Me.tablecell=function(Xe,Ke){return St(Je(Xe),Ke)},Me.code=function(Xe,Ke,ht){const Ne=(Ke||"").match(/\S*/)[0];return Ne?["latex","katex","math"].indexOf(Ne)>=0?`<p class='editormd-tex'>${Xe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ke}">${ht?Xe:(0,ve.escape)(Xe,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ht?Xe:(0,ve.escape)(Xe,!0))+"</code></pre>"},Me.heading=function(Xe,Ke,ht){let Ne=this.options.headerPrefix+ht.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ke.push({anchor:Ne,level:Ke,text:Xe}),"<h"+Ke+' id="'+ye+Ne+'">'+Xe+"</h"+Ke+">"},Ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ve().use({tokenizer:Ie,renderer:Me}),zt.ZP=Ve()},86013:function(Yt,zt,ie){"use strict";var z=ie(59301),Ve=ie(19248);const ve=Le=>{let ye;return typeof Le=="object"&&(Le!=null&&Le.clearIcon)?ye=Le:Le&&(ye={clearIcon:z.createElement(Ve.Z,null)}),ye};zt.Z=ve},38406:function(Yt,zt,ie){"use strict";var z=ie(59301),Ve=ie(48755),ve=ie(584);const Le=ye=>{const{componentName:ge}=ye,{getPrefixCls:ke}=(0,z.useContext)(Ve.E_),$e=ke("empty");switch(ge){case"Table":case"List":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE,className:`${$e}-small`});case"Table.filter":return null;default:return z.createElement(ve.Z,null)}};zt.Z=Le},36207:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return at}});var z=ie(59301),Ve=ie(92310),ve=ie.n(Ve),Le=ie(85899),ye=ie(72190),ge=ie(43403),ke=ie(34280),$e=z.createContext(null),Me=z.createContext({}),de=$e,Ze=ie(18642),be=ie(60499),nt=ie(77900),Ae=ie(10228),Ie=ie(26112),Oe=ie(42244),Be=ie(8654),ct=["prefixCls","className","containerRef"],kt=function(je){var ot=je.prefixCls,wt=je.className,dt=je.containerRef,Zt=(0,Oe.Z)(je,ct),lt=z.useContext(Me),rt=lt.panel,xt=(0,Be.x1)(rt,dt);return z.createElement("div",(0,be.Z)({className:ve()("".concat(ot,"-content"),wt),role:"dialog",ref:xt},(0,Ie.Z)(je,{aria:!0}),{"aria-modal":"true"},Zt))},Ct=kt,it=ie(48736);function Je(Ee){return typeof Ee=="string"&&String(Number(Ee))===Ee?((0,it.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ee)):Ee}function _e(Ee){warning(!("wrapperClassName"in Ee),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ee.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var We={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function St(Ee,je){var ot,wt,dt,Zt=Ee.prefixCls,lt=Ee.open,rt=Ee.placement,xt=Ee.inline,Pt=Ee.push,_t=Ee.forceRender,st=Ee.autoFocus,Gt=Ee.keyboard,Lt=Ee.classNames,Nt=Ee.rootClassName,Qt=Ee.rootStyle,Rn=Ee.zIndex,fn=Ee.className,Pe=Ee.id,Qe=Ee.style,yt=Ee.motion,$t=Ee.width,cn=Ee.height,vn=Ee.children,Un=Ee.mask,$n=Ee.maskClosable,dn=Ee.maskMotion,gn=Ee.maskClassName,bn=Ee.maskStyle,qn=Ee.afterOpenChange,Sn=Ee.onClose,Fn=Ee.onMouseEnter,yn=Ee.onMouseOver,An=Ee.onMouseLeave,xn=Ee.onClick,Vn=Ee.onKeyDown,ur=Ee.onKeyUp,Tn=Ee.styles,Qn=Ee.drawerRender,sr=z.useRef(),gr=z.useRef(),Cr=z.useRef();z.useImperativeHandle(je,function(){return sr.current});var ir=function(Mt){var bt=Mt.keyCode,un=Mt.shiftKey;switch(bt){case Ae.Z.TAB:{if(bt===Ae.Z.TAB){if(!un&&document.activeElement===Cr.current){var Ln;(Ln=gr.current)===null||Ln===void 0||Ln.focus({preventScroll:!0})}else if(un&&document.activeElement===gr.current){var En;(En=Cr.current)===null||En===void 0||En.focus({preventScroll:!0})}}break}case Ae.Z.ESC:{Sn&&Gt&&(Mt.stopPropagation(),Sn(Mt));break}}};z.useEffect(function(){if(lt&&st){var Wt;(Wt=sr.current)===null||Wt===void 0||Wt.focus({preventScroll:!0})}},[lt]);var Bt=z.useState(!1),ln=(0,ye.Z)(Bt,2),Kn=ln[0],yr=ln[1],Te=z.useContext(de),Ue;typeof Pt=="boolean"?Ue=Pt?{}:{distance:0}:Ue=Pt||{};var Ce=(ot=(wt=(dt=Ue)===null||dt===void 0?void 0:dt.distance)!==null&&wt!==void 0?wt:Te==null?void 0:Te.pushDistance)!==null&&ot!==void 0?ot:180,Re=z.useMemo(function(){return{pushDistance:Ce,push:function(){yr(!0)},pull:function(){yr(!1)}}},[Ce]);z.useEffect(function(){if(lt){var Wt;Te==null||(Wt=Te.push)===null||Wt===void 0||Wt.call(Te)}else{var Mt;Te==null||(Mt=Te.pull)===null||Mt===void 0||Mt.call(Te)}},[lt]),z.useEffect(function(){return function(){var Wt;Te==null||(Wt=Te.pull)===null||Wt===void 0||Wt.call(Te)}},[]);var we=Un&&z.createElement(nt.default,(0,be.Z)({key:"mask"},dn,{visible:lt}),function(Wt,Mt){var bt=Wt.className,un=Wt.style;return z.createElement("div",{className:ve()("".concat(Zt,"-mask"),bt,Lt==null?void 0:Lt.mask,gn),style:(0,Le.Z)((0,Le.Z)((0,Le.Z)({},un),bn),Tn==null?void 0:Tn.mask),onClick:$n&<?Sn:void 0,ref:Mt})}),Fe=typeof yt=="function"?yt(rt):yt,ft={};if(Kn&&Ce)switch(rt){case"top":ft.transform="translateY(".concat(Ce,"px)");break;case"bottom":ft.transform="translateY(".concat(-Ce,"px)");break;case"left":ft.transform="translateX(".concat(Ce,"px)");break;default:ft.transform="translateX(".concat(-Ce,"px)");break}rt==="left"||rt==="right"?ft.width=Je($t):ft.height=Je(cn);var qt={onMouseEnter:Fn,onMouseOver:yn,onMouseLeave:An,onClick:xn,onKeyDown:Vn,onKeyUp:ur},rn=z.createElement(nt.default,(0,be.Z)({key:"panel"},Fe,{visible:lt,forceRender:_t,onVisibleChanged:function(Mt){qn==null||qn(Mt)},removeOnLeave:!1,leavedClassName:"".concat(Zt,"-content-wrapper-hidden")}),function(Wt,Mt){var bt=Wt.className,un=Wt.style,Ln=z.createElement(Ct,(0,be.Z)({id:Pe,containerRef:Mt,prefixCls:Zt,className:ve()(fn,Lt==null?void 0:Lt.content),style:(0,Le.Z)((0,Le.Z)({},Qe),Tn==null?void 0:Tn.content)},(0,Ie.Z)(Ee,{aria:!0}),qt),vn);return z.createElement("div",(0,be.Z)({className:ve()("".concat(Zt,"-content-wrapper"),Lt==null?void 0:Lt.wrapper,bt),style:(0,Le.Z)((0,Le.Z)((0,Le.Z)({},ft),un),Tn==null?void 0:Tn.wrapper)},(0,Ie.Z)(Ee,{data:!0})),Qn?Qn(Ln):Ln)}),hn=(0,Le.Z)({},Qt);return Rn&&(hn.zIndex=Rn),z.createElement(de.Provider,{value:Re},z.createElement("div",{className:ve()(Zt,"".concat(Zt,"-").concat(rt),Nt,(0,Ze.Z)((0,Ze.Z)({},"".concat(Zt,"-open"),lt),"".concat(Zt,"-inline"),xt)),style:hn,tabIndex:-1,ref:sr,onKeyDown:ir},we,z.createElement("div",{tabIndex:0,ref:gr,style:We,"aria-hidden":"true","data-sentinel":"start"}),rn,z.createElement("div",{tabIndex:0,ref:Cr,style:We,"aria-hidden":"true","data-sentinel":"end"})))}var Xe=z.forwardRef(St),Ke=Xe,ht=function(je){var ot=je.open,wt=ot===void 0?!1:ot,dt=je.prefixCls,Zt=dt===void 0?"rc-drawer":dt,lt=je.placement,rt=lt===void 0?"right":lt,xt=je.autoFocus,Pt=xt===void 0?!0:xt,_t=je.keyboard,st=_t===void 0?!0:_t,Gt=je.width,Lt=Gt===void 0?378:Gt,Nt=je.mask,Qt=Nt===void 0?!0:Nt,Rn=je.maskClosable,fn=Rn===void 0?!0:Rn,Pe=je.getContainer,Qe=je.forceRender,yt=je.afterOpenChange,$t=je.destroyOnClose,cn=je.onMouseEnter,vn=je.onMouseOver,Un=je.onMouseLeave,$n=je.onClick,dn=je.onKeyDown,gn=je.onKeyUp,bn=je.panelRef,qn=z.useState(!1),Sn=(0,ye.Z)(qn,2),Fn=Sn[0],yn=Sn[1],An=z.useState(!1),xn=(0,ye.Z)(An,2),Vn=xn[0],ur=xn[1];(0,ke.Z)(function(){ur(!0)},[]);var Tn=Vn?wt:!1,Qn=z.useRef(),sr=z.useRef();(0,ke.Z)(function(){Tn&&(sr.current=document.activeElement)},[Tn]);var gr=function(Kn){var yr;if(yn(Kn),yt==null||yt(Kn),!Kn&&sr.current&&!((yr=Qn.current)!==null&&yr!==void 0&&yr.contains(sr.current))){var Te;(Te=sr.current)===null||Te===void 0||Te.focus({preventScroll:!0})}},Cr=z.useMemo(function(){return{panel:bn}},[bn]);if(!Qe&&!Fn&&!Tn&&$t)return null;var ir={onMouseEnter:cn,onMouseOver:vn,onMouseLeave:Un,onClick:$n,onKeyDown:dn,onKeyUp:gn},Bt=(0,Le.Z)((0,Le.Z)({},je),{},{open:Tn,prefixCls:Zt,placement:rt,autoFocus:Pt,keyboard:st,width:Lt,mask:Qt,maskClosable:fn,inline:Pe===!1,afterOpenChange:gr,ref:Qn},ir);return z.createElement(Me.Provider,{value:Cr},z.createElement(ge.Z,{open:Tn||Qe||Fn,autoDestroy:!1,getContainer:Pe,autoLock:Qt&&(Tn||Fn)},z.createElement(Ke,Bt)))},Ne=ht,et=Ne,qe=ie(62487),me=ie(75030),Ot=ie(86641),De=ie(55743),At=ie(48755),Xt=ie(91190),Se=ie(78776),fe=ie(458),Vt=Ee=>{var je,ot;const{prefixCls:wt,title:dt,footer:Zt,extra:lt,loading:rt,onClose:xt,headerStyle:Pt,bodyStyle:_t,footerStyle:st,children:Gt,classNames:Lt,styles:Nt}=Ee,Qt=(0,At.dj)("drawer"),Rn=z.useCallback($t=>z.createElement("button",{type:"button",onClick:xt,"aria-label":"Close",className:`${wt}-close`},$t),[xt]),[fn,Pe]=(0,Se.Z)((0,Se.w)(Ee),(0,Se.w)(Qt),{closable:!0,closeIconRender:Rn}),Qe=z.useMemo(()=>{var $t,cn;return!dt&&!fn?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},($t=Qt.styles)===null||$t===void 0?void 0:$t.header),Pt),Nt==null?void 0:Nt.header),className:ve()(`${wt}-header`,{[`${wt}-header-close-only`]:fn&&!dt&&!lt},(cn=Qt.classNames)===null||cn===void 0?void 0:cn.header,Lt==null?void 0:Lt.header)},z.createElement("div",{className:`${wt}-header-title`},Pe,dt&&z.createElement("div",{className:`${wt}-title`},dt)),lt&&z.createElement("div",{className:`${wt}-extra`},lt))},[fn,Pe,lt,Pt,wt,dt]),yt=z.useMemo(()=>{var $t,cn;if(!Zt)return null;const vn=`${wt}-footer`;return z.createElement("div",{className:ve()(vn,($t=Qt.classNames)===null||$t===void 0?void 0:$t.footer,Lt==null?void 0:Lt.footer),style:Object.assign(Object.assign(Object.assign({},(cn=Qt.styles)===null||cn===void 0?void 0:cn.footer),st),Nt==null?void 0:Nt.footer)},Zt)},[Zt,st,wt]);return z.createElement(z.Fragment,null,Qe,z.createElement("div",{className:ve()(`${wt}-body`,Lt==null?void 0:Lt.body,(je=Qt.classNames)===null||je===void 0?void 0:je.body),style:Object.assign(Object.assign(Object.assign({},(ot=Qt.styles)===null||ot===void 0?void 0:ot.body),_t),Nt==null?void 0:Nt.body)},rt?z.createElement(fe.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${wt}-body-skeleton`}):Gt),yt)},Dt=ie(36237),ze=ie(63356),ut=ie(16931),gt=ie(51636);const pn=Ee=>{const je="100%";return{left:`translateX(-${je})`,right:`translateX(${je})`,top:`translateY(-${je})`,bottom:`translateY(${je})`}[Ee]},Ft=(Ee,je)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ee),{"&-active":je}),"&-leave":Object.assign(Object.assign({},je),{"&-active":Ee})}),en=(Ee,je)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${je}`}}},Ft({opacity:Ee},{opacity:1})),tt=(Ee,je)=>[en(.7,je),Ft({transform:pn(Ee)},{transform:"none"})];var pt=Ee=>{const{componentCls:je,motionDurationSlow:ot}=Ee;return{[je]:{[`${je}-mask-motion`]:en(0,ot),[`${je}-panel-motion`]:["left","right","top","bottom"].reduce((wt,dt)=>Object.assign(Object.assign({},wt),{[`&-${dt}`]:tt(dt,ot)}),{})}}};const le=Ee=>{const{borderRadiusSM:je,componentCls:ot,zIndexPopup:wt,colorBgMask:dt,colorBgElevated:Zt,motionDurationSlow:lt,motionDurationMid:rt,paddingXS:xt,padding:Pt,paddingLG:_t,fontSizeLG:st,lineHeightLG:Gt,lineWidth:Lt,lineType:Nt,colorSplit:Qt,marginXS:Rn,colorIcon:fn,colorIconHover:Pe,colorBgTextHover:Qe,colorBgTextActive:yt,colorText:$t,fontWeightStrong:cn,footerPaddingBlock:vn,footerPaddingInline:Un,calc:$n}=Ee,dn=`${ot}-content-wrapper`;return{[ot]:{position:"fixed",inset:0,zIndex:wt,pointerEvents:"none",color:$t,"&-pure":{position:"relative",background:Zt,display:"flex",flexDirection:"column",[`&${ot}-left`]:{boxShadow:Ee.boxShadowDrawerLeft},[`&${ot}-right`]:{boxShadow:Ee.boxShadowDrawerRight},[`&${ot}-top`]:{boxShadow:Ee.boxShadowDrawerUp},[`&${ot}-bottom`]:{boxShadow:Ee.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ot}-mask`]:{position:"absolute",inset:0,zIndex:wt,background:dt,pointerEvents:"auto"},[dn]:{position:"absolute",zIndex:wt,maxWidth:"100vw",transition:`all ${lt}`,"&-hidden":{display:"none"}},[`&-left > ${dn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ee.boxShadowDrawerLeft},[`&-right > ${dn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ee.boxShadowDrawerRight},[`&-top > ${dn}`]:{top:0,insetInline:0,boxShadow:Ee.boxShadowDrawerUp},[`&-bottom > ${dn}`]:{bottom:0,insetInline:0,boxShadow:Ee.boxShadowDrawerDown},[`${ot}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Zt,pointerEvents:"auto"},[`${ot}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Dt.unit)(Pt)} ${(0,Dt.unit)(_t)}`,fontSize:st,lineHeight:Gt,borderBottom:`${(0,Dt.unit)(Lt)} ${Nt} ${Qt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ot}-extra`]:{flex:"none"},[`${ot}-close`]:Object.assign({display:"inline-flex",width:$n(st).add(xt).equal(),height:$n(st).add(xt).equal(),borderRadius:je,justifyContent:"center",alignItems:"center",marginInlineEnd:Rn,color:fn,fontWeight:cn,fontSize:st,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${rt}`,textRendering:"auto","&:hover":{color:Pe,backgroundColor:Qe,textDecoration:"none"},"&:active":{backgroundColor:yt}},(0,ze.Qy)(Ee)),[`${ot}-title`]:{flex:1,margin:0,fontWeight:Ee.fontWeightStrong,fontSize:st,lineHeight:Gt},[`${ot}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_t,overflow:"auto",[`${ot}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ot}-footer`]:{flexShrink:0,padding:`${(0,Dt.unit)(vn)} ${(0,Dt.unit)(Un)}`,borderTop:`${(0,Dt.unit)(Lt)} ${Nt} ${Qt}`},"&-rtl":{direction:"rtl"}}}},te=Ee=>({zIndexPopup:Ee.zIndexPopupBase,footerPaddingBlock:Ee.paddingXS,footerPaddingInline:Ee.padding});var ee=(0,ut.I$)("Drawer",Ee=>{const je=(0,gt.mergeToken)(Ee,{});return[le(je),pt(je)]},te),oe=function(Ee,je){var ot={};for(var wt in Ee)Object.prototype.hasOwnProperty.call(Ee,wt)&&je.indexOf(wt)<0&&(ot[wt]=Ee[wt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,wt=Object.getOwnPropertySymbols(Ee);dt<wt.length;dt++)je.indexOf(wt[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,wt[dt])&&(ot[wt[dt]]=Ee[wt[dt]]);return ot};const se=null,re={distance:180},pe=Ee=>{var je;const{rootClassName:ot,width:wt,height:dt,size:Zt="default",mask:lt=!0,push:rt=re,open:xt,afterOpenChange:Pt,onClose:_t,prefixCls:st,getContainer:Gt,style:Lt,className:Nt,visible:Qt,afterVisibleChange:Rn,maskStyle:fn,drawerStyle:Pe,contentWrapperStyle:Qe}=Ee,yt=oe(Ee,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:$t,getPrefixCls:cn,direction:vn,className:Un,style:$n,classNames:dn,styles:gn}=(0,At.dj)("drawer"),bn=cn("drawer",st),[qn,Sn,Fn]=ee(bn),yn=Gt===void 0&&$t?()=>$t(document.body):Gt,An=ve()({"no-mask":!lt,[`${bn}-rtl`]:vn==="rtl"},ot,Sn,Fn),xn=z.useMemo(()=>wt!=null?wt:Zt==="large"?736:378,[wt,Zt]),Vn=z.useMemo(()=>dt!=null?dt:Zt==="large"?736:378,[dt,Zt]),ur={motionName:(0,Ot.m)(bn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Tn=Bt=>({motionName:(0,Ot.m)(bn,`panel-motion-${Bt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Qn=(0,Xt.H)(),[sr,gr]=(0,me.Cn)("Drawer",yt.zIndex),{classNames:Cr={},styles:ir={}}=yt;return qn(z.createElement(qe.Z,{form:!0,space:!0},z.createElement(De.Z.Provider,{value:gr},z.createElement(et,Object.assign({prefixCls:bn,onClose:_t,maskMotion:ur,motion:Tn},yt,{classNames:{mask:ve()(Cr.mask,dn.mask),content:ve()(Cr.content,dn.content),wrapper:ve()(Cr.wrapper,dn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ir.mask),fn),gn.mask),content:Object.assign(Object.assign(Object.assign({},ir.content),Pe),gn.content),wrapper:Object.assign(Object.assign(Object.assign({},ir.wrapper),Qe),gn.wrapper)},open:xt!=null?xt:Qt,mask:lt,push:rt,width:xn,height:Vn,style:Object.assign(Object.assign({},$n),Lt),className:ve()(Un,Nt),rootClassName:An,getContainer:yn,afterOpenChange:Pt!=null?Pt:Rn,panelRef:Qn,zIndex:sr}),z.createElement(Vt,Object.assign({prefixCls:bn},yt,{onClose:_t}))))))},xe=Ee=>{const{prefixCls:je,style:ot,className:wt,placement:dt="right"}=Ee,Zt=oe(Ee,["prefixCls","style","className","placement"]),{getPrefixCls:lt}=z.useContext(At.E_),rt=lt("drawer",je),[xt,Pt,_t]=ee(rt),st=ve()(rt,`${rt}-pure`,`${rt}-${dt}`,Pt,_t,wt);return xt(z.createElement("div",{className:st,style:ot},z.createElement(Vt,Object.assign({prefixCls:rt},Zt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=xe;var at=pe},584:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Ct}});var z=ie(59301),Ve=ie(92310),ve=ie.n(Ve),Le=ie(9017),ye=ie(17835),ge=ie(57700),$e=()=>{const[,it]=(0,ge.ZP)(),[Je]=(0,Le.Z)("Empty"),We=new ye.FastColor(it.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:We,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(Je==null?void 0:Je.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},de=()=>{const[,it]=(0,ge.ZP)(),[Je]=(0,Le.Z)("Empty"),{colorFill:_e,colorFillTertiary:We,colorFillQuaternary:St,colorBgContainer:Xe}=it,{borderColor:Ke,shadowColor:ht,contentColor:Ne}=(0,z.useMemo)(()=>({borderColor:new ye.FastColor(_e).onBackground(Xe).toHexString(),shadowColor:new ye.FastColor(We).onBackground(Xe).toHexString(),contentColor:new ye.FastColor(St).onBackground(Xe).toHexString()}),[_e,We,St,Xe]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(Je==null?void 0:Je.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:ht,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:Ke},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ne}))))},Ze=ie(16931),be=ie(51636);const nt=it=>{const{componentCls:Je,margin:_e,marginXS:We,marginXL:St,fontSize:Xe,lineHeight:Ke}=it;return{[Je]:{marginInline:We,fontSize:Xe,lineHeight:Ke,textAlign:"center",[`${Je}-image`]:{height:it.emptyImgHeight,marginBottom:We,opacity:it.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Je}-description`]:{color:it.colorTextDescription},[`${Je}-footer`]:{marginTop:_e},"&-normal":{marginBlock:St,color:it.colorTextDescription,[`${Je}-description`]:{color:it.colorTextDescription},[`${Je}-image`]:{height:it.emptyImgHeightMD}},"&-small":{marginBlock:We,color:it.colorTextDescription,[`${Je}-image`]:{height:it.emptyImgHeightSM}}}}};var Ae=(0,Ze.I$)("Empty",it=>{const{componentCls:Je,controlHeightLG:_e,calc:We}=it,St=(0,be.mergeToken)(it,{emptyImgCls:`${Je}-img`,emptyImgHeight:We(_e).mul(2.5).equal(),emptyImgHeightMD:_e,emptyImgHeightSM:We(_e).mul(.875).equal()});return[nt(St)]}),Ie=ie(48755),Oe=function(it,Je){var _e={};for(var We in it)Object.prototype.hasOwnProperty.call(it,We)&&Je.indexOf(We)<0&&(_e[We]=it[We]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,We=Object.getOwnPropertySymbols(it);St<We.length;St++)Je.indexOf(We[St])<0&&Object.prototype.propertyIsEnumerable.call(it,We[St])&&(_e[We[St]]=it[We[St]]);return _e};const Be=z.createElement($e,null),ct=z.createElement(de,null),kt=it=>{const{className:Je,rootClassName:_e,prefixCls:We,image:St=Be,description:Xe,children:Ke,imageStyle:ht,style:Ne,classNames:et,styles:qe}=it,me=Oe(it,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ot,direction:De,className:At,style:Xt,classNames:Se,styles:fe}=(0,Ie.dj)("empty"),vt=Ot("empty",We),[Vt,Dt,ze]=Ae(vt),[ut]=(0,Le.Z)("Empty"),gt=typeof Xe!="undefined"?Xe:ut==null?void 0:ut.description,pn=typeof gt=="string"?gt:"empty";let Ft=null;return typeof St=="string"?Ft=z.createElement("img",{alt:pn,src:St}):Ft=St,Vt(z.createElement("div",Object.assign({className:ve()(Dt,ze,vt,At,{[`${vt}-normal`]:St===ct,[`${vt}-rtl`]:De==="rtl"},Je,_e,Se.root,et==null?void 0:et.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),Xt),qe==null?void 0:qe.root),Ne)},me),z.createElement("div",{className:ve()(`${vt}-image`,Se.image,et==null?void 0:et.image),style:Object.assign(Object.assign(Object.assign({},ht),fe.image),qe==null?void 0:qe.image)},Ft),gt&&z.createElement("div",{className:ve()(`${vt}-description`,Se.description,et==null?void 0:et.description),style:Object.assign(Object.assign({},fe.description),qe==null?void 0:qe.description)},gt),Ke&&z.createElement("div",{className:ve()(`${vt}-footer`,Se.footer,et==null?void 0:et.footer),style:Object.assign(Object.assign({},fe.footer),qe==null?void 0:qe.footer)},Ke)))};kt.PRESENTED_IMAGE_DEFAULT=Be,kt.PRESENTED_IMAGE_SIMPLE=ct;var Ct=kt},28284:function(Yt,zt,ie){"use strict";ie.d(zt,{default:function(){return Ue}});var z=ie(56553),Ve=ie(77654),ve=ie(59301),Le=ie(92310),ye=ie.n(Le),ge=ie(77900),ke=ie(86641),$e=ie(83397);function Me(Ce){const[Re,we]=ve.useState(Ce);return ve.useEffect(()=>{const Fe=setTimeout(()=>{we(Ce)},Ce.length?0:10);return()=>{clearTimeout(Fe)}},[Ce]),Re}var de=ie(36237),Ze=ie(63356),be=ie(34925),nt=ie(34961),Ae=ie(51636),Ie=ie(16931),Be=Ce=>{const{componentCls:Re}=Ce,we=`${Re}-show-help`,Fe=`${Re}-show-help-item`;return{[we]:{transition:`opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Fe]:{overflow:"hidden",transition:`height ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
|
|
|
opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
|
|
|
transform ${Ce.motionDurationFast} ${Ce.motionEaseInOut} !important`,[`&${Fe}-appear, &${Fe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Fe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ct=Ce=>({legend:{display:"block",width:"100%",marginBottom:Ce.marginLG,padding:0,color:Ce.colorTextDescription,fontSize:Ce.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,de.unit)(Ce.lineWidth)} ${Ce.lineType} ${Ce.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,de.unit)(Ce.controlOutlineWidth)} ${Ce.controlOutline}`},output:{display:"block",paddingTop:15,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight}}),kt=(Ce,Re)=>{const{formItemCls:we}=Ce;return{[we]:{[`${we}-label > label`]:{height:Re},[`${we}-control-input`]:{minHeight:Re}}}},Ct=Ce=>{const{componentCls:Re}=Ce;return{[Ce.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ze.Wf)(Ce)),ct(Ce)),{[`${Re}-text`]:{display:"inline-block",paddingInlineEnd:Ce.paddingSM},"&-small":Object.assign({},kt(Ce,Ce.controlHeightSM)),"&-large":Object.assign({},kt(Ce,Ce.controlHeightLG))})}},it=Ce=>{const{formItemCls:Re,iconCls:we,rootPrefixCls:Fe,antCls:ft,labelRequiredMarkColor:qt,labelColor:rn,labelFontSize:hn,labelHeight:Wt,labelColonMarginInlineStart:Mt,labelColonMarginInlineEnd:bt,itemMarginBottom:un}=Ce;return{[Re]:Object.assign(Object.assign({},(0,Ze.Wf)(Ce)),{marginBottom:un,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${ft}-row`]:{display:"none"},"&-has-warning":{[`${Re}-split`]:{color:Ce.colorError}},"&-has-error":{[`${Re}-split`]:{color:Ce.colorWarning}},[`${Re}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ce.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Wt,color:rn,fontSize:hn,[`> ${we}`]:{fontSize:Ce.fontSize,verticalAlign:"top"},[`&${Re}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ce.marginXXS,color:qt,fontSize:Ce.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Re}-required-mark-hidden, &${Re}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Re}-optional`]:{display:"inline-block",marginInlineStart:Ce.marginXXS,color:Ce.colorTextDescription,[`&${Re}-required-mark-hidden`]:{display:"none"}},[`${Re}-tooltip`]:{color:Ce.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ce.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Mt,marginInlineEnd:bt},[`&${Re}-no-colon::after`]:{content:'"\\a0"'}}},[`${Re}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Fe}-col-'"]):not([class*="' ${Fe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ce.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Re]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Ce.colorTextDescription,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ce.controlHeightSM,transition:`color ${Ce.motionDurationMid} ${Ce.motionEaseOut}`},"&-explain":{"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning}}},[`&-with-help ${Re}-explain`]:{height:"auto",opacity:1},[`${Re}-feedback-icon`]:{fontSize:Ce.fontSize,textAlign:"center",visibility:"visible",animationName:be.kr,animationDuration:Ce.motionDurationMid,animationTimingFunction:Ce.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ce.colorSuccess},"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning},"&-validating":{color:Ce.colorPrimary}}})}},Je=(Ce,Re)=>{const{formItemCls:we}=Ce;return{[`${Re}-horizontal`]:{[`${we}-label`]:{flexGrow:0},[`${we}-control`]:{flex:"1 1 0",minWidth:0},[`${we}-label[class$='-24'], ${we}-label[class*='-24 ']`]:{[`& + ${we}-control`]:{minWidth:"unset"}}}}},_e=Ce=>{const{componentCls:Re,formItemCls:we,inlineItemMarginBottom:Fe}=Ce;return{[`${Re}-inline`]:{display:"flex",flexWrap:"wrap",[we]:{flex:"none",marginInlineEnd:Ce.margin,marginBottom:Fe,"&-row":{flexWrap:"nowrap"},[`> ${we}-label,
|
|
|
> ${we}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${we}-label`]:{flex:"none"},[`${Re}-text`]:{display:"inline-block"},[`${we}-has-feedback`]:{display:"inline-block"}}}}},We=Ce=>({padding:Ce.verticalLabelPadding,margin:Ce.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),St=Ce=>{const{componentCls:Re,formItemCls:we,rootPrefixCls:Fe}=Ce;return{[`${we} ${we}-label`]:We(Ce),[`${Re}:not(${Re}-inline)`]:{[we]:{flexWrap:"wrap",[`${we}-label, ${we}-control`]:{[`&:not([class*=" ${Fe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Xe=Ce=>{const{componentCls:Re,formItemCls:we,antCls:Fe}=Ce;return{[`${Re}-vertical`]:{[`${we}:not(${we}-horizontal)`]:{[`${we}-row`]:{flexDirection:"column"},[`${we}-label > label`]:{height:"auto"},[`${we}-control`]:{width:"100%"},[`${we}-label,
|
|
|
${Fe}-col-24${we}-label,
|
|
|
${Fe}-col-xl-24${we}-label`]:We(Ce)}},[`@media (max-width: ${(0,de.unit)(Ce.screenXSMax)})`]:[St(Ce),{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-xs-24${we}-label`]:We(Ce)}}}],[`@media (max-width: ${(0,de.unit)(Ce.screenSMMax)})`]:{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-sm-24${we}-label`]:We(Ce)}}},[`@media (max-width: ${(0,de.unit)(Ce.screenMDMax)})`]:{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-md-24${we}-label`]:We(Ce)}}},[`@media (max-width: ${(0,de.unit)(Ce.screenLGMax)})`]:{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-lg-24${we}-label`]:We(Ce)}}}}},Ke=Ce=>{const{formItemCls:Re,antCls:we}=Ce;return{[`${Re}-vertical`]:{[`${Re}-row`]:{flexDirection:"column"},[`${Re}-label > label`]:{height:"auto"},[`${Re}-control`]:{width:"100%"}},[`${Re}-vertical ${Re}-label,
|
|
|
${we}-col-24${Re}-label,
|
|
|
${we}-col-xl-24${Re}-label`]:We(Ce),[`@media (max-width: ${(0,de.unit)(Ce.screenXSMax)})`]:[St(Ce),{[Re]:{[`${we}-col-xs-24${Re}-label`]:We(Ce)}}],[`@media (max-width: ${(0,de.unit)(Ce.screenSMMax)})`]:{[Re]:{[`${we}-col-sm-24${Re}-label`]:We(Ce)}},[`@media (max-width: ${(0,de.unit)(Ce.screenMDMax)})`]:{[Re]:{[`${we}-col-md-24${Re}-label`]:We(Ce)}},[`@media (max-width: ${(0,de.unit)(Ce.screenLGMax)})`]:{[Re]:{[`${we}-col-lg-24${Re}-label`]:We(Ce)}}}},ht=Ce=>({labelRequiredMarkColor:Ce.colorError,labelColor:Ce.colorTextHeading,labelFontSize:Ce.fontSize,labelHeight:Ce.controlHeight,labelColonMarginInlineStart:Ce.marginXXS/2,labelColonMarginInlineEnd:Ce.marginXS,itemMarginBottom:Ce.marginLG,verticalLabelPadding:`0 0 ${Ce.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ne=(Ce,Re)=>(0,Ae.mergeToken)(Ce,{formItemCls:`${Ce.componentCls}-item`,rootPrefixCls:Re});var et=(0,Ie.I$)("Form",(Ce,Re)=>{let{rootPrefixCls:we}=Re;const Fe=Ne(Ce,we);return[Ct(Fe),it(Fe),Be(Fe),Je(Fe,Fe.componentCls),Je(Fe,Fe.formItemCls),_e(Fe),Xe(Fe),Ke(Fe),(0,nt.Z)(Fe),be.kr]},ht,{order:-1e3});const qe=[];function me(Ce,Re,we){let Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ce=="string"?Ce:`${Re}-${Fe}`,error:Ce,errorStatus:we}}var De=Ce=>{let{help:Re,helpStatus:we,errors:Fe=qe,warnings:ft=qe,className:qt,fieldId:rn,onVisibleChanged:hn}=Ce;const{prefixCls:Wt}=ve.useContext(z.Rk),Mt=`${Wt}-item-explain`,bt=(0,$e.Z)(Wt),[un,Ln,En]=et(Wt,bt),In=ve.useMemo(()=>(0,ke.Z)(Wt),[Wt]),dr=Me(Fe),mt=Me(ft),Ge=ve.useMemo(()=>Re!=null?[me(Re,"help",we)]:[].concat((0,Ve.Z)(dr.map((Ht,on)=>me(Ht,"error","error",on))),(0,Ve.Z)(mt.map((Ht,on)=>me(Ht,"warning","warning",on)))),[Re,we,dr,mt]),Et=ve.useMemo(()=>{const Ht={};return Ge.forEach(on=>{let{key:Bn}=on;Ht[Bn]=(Ht[Bn]||0)+1}),Ge.map((on,Bn)=>Object.assign(Object.assign({},on),{key:Ht[on.key]>1?`${on.key}-fallback-${Bn}`:on.key}))},[Ge]),Rt={};return rn&&(Rt.id=`${rn}_help`),un(ve.createElement(ge.default,{motionDeadline:In.motionDeadline,motionName:`${Wt}-show-help`,visible:!!Et.length,onVisibleChanged:hn},Ht=>{const{className:on,style:Bn}=Ht;return ve.createElement("div",Object.assign({},Rt,{className:ye()(Mt,on,En,bt,qt,Ln),style:Bn}),ve.createElement(ge.CSSMotionList,Object.assign({keys:Et},(0,ke.Z)(Wt),{motionName:`${Wt}-show-help-item`,component:!1}),mn=>{const{key:Mn,error:Pn,errorStatus:Nn,className:wn,style:nr}=mn;return ve.createElement("div",{key:Mn,className:ye()(wn,{[`${Mt}-${Nn}`]:Nn}),style:nr},Pn)}))}))},At=ie(69180),Xt=ie(48755),Se=ie(2171),fe=ie(31756),vt=ie(23069),Vt=ie(76846),Dt=ie(16722);const ze=["parentNode"],ut="form_item";function gt(Ce){return Ce===void 0||Ce===!1?[]:Array.isArray(Ce)?Ce:[Ce]}function pn(Ce,Re){if(!Ce.length)return;const we=Ce.join("_");return Re?`${Re}_${we}`:ze.includes(we)?`${ut}_${we}`:we}function Ft(Ce,Re,we,Fe,ft,qt){let rn=Fe;return qt!==void 0?rn=qt:we.validating?rn="validating":Ce.length?rn="error":Re.length?rn="warning":(we.touched||ft&&we.validated)&&(rn="success"),rn}var en=function(Ce,Re){var we={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Fe=Object.getOwnPropertySymbols(Ce);ft<Fe.length;ft++)Re.indexOf(Fe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ft])&&(we[Fe[ft]]=Ce[Fe[ft]]);return we};function tt(Ce){return gt(Ce).join("_")}function Kt(Ce,Re){const we=Re.getFieldInstance(Ce),Fe=(0,Vt.bn)(we);if(Fe)return Fe;const ft=pn(gt(Ce),Re.__INTERNAL__.name);if(ft)return document.getElementById(ft)}function pt(Ce){const[Re]=(0,At.useForm)(),we=ve.useRef({}),Fe=ve.useMemo(()=>Ce!=null?Ce:Object.assign(Object.assign({},Re),{__INTERNAL__:{itemRef:ft=>qt=>{const rn=tt(ft);qt?we.current[rn]=qt:delete we.current[rn]}},scrollToField:function(ft){let qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:rn}=qt,hn=en(qt,["focus"]),Wt=Kt(ft,Fe);Wt&&((0,Dt.Z)(Wt,Object.assign({scrollMode:"if-needed",block:"nearest"},hn)),rn&&Fe.focusField(ft))},focusField:ft=>{var qt,rn;const hn=Fe.getFieldInstance(ft);typeof(hn==null?void 0:hn.focus)=="function"?hn.focus():(rn=(qt=Kt(ft,Fe))===null||qt===void 0?void 0:qt.focus)===null||rn===void 0||rn.call(qt)},getFieldInstance:ft=>{const qt=tt(ft);return we.current[qt]}}),[Ce,Re]);return[Fe]}var le=ie(98350),te=function(Ce,Re){var we={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Fe=Object.getOwnPropertySymbols(Ce);ft<Fe.length;ft++)Re.indexOf(Fe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ft])&&(we[Fe[ft]]=Ce[Fe[ft]]);return we};const ee=(Ce,Re)=>{const we=ve.useContext(Se.Z),{getPrefixCls:Fe,direction:ft,requiredMark:qt,colon:rn,scrollToFirstError:hn,className:Wt,style:Mt}=(0,Xt.dj)("form"),{prefixCls:bt,className:un,rootClassName:Ln,size:En,disabled:In=we,form:dr,colon:mt,labelAlign:Ge,labelWrap:Et,labelCol:Rt,wrapperCol:Ht,hideRequiredMark:on,layout:Bn="horizontal",scrollToFirstError:mn,requiredMark:Mn,onFinishFailed:Pn,name:Nn,style:wn,feedbackIcons:nr,variant:jn}=Ce,Zn=te(Ce,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),rr=(0,fe.Z)(En),fr=ve.useContext(le.Z),Gn=ve.useMemo(()=>Mn!==void 0?Mn:on?!1:qt!==void 0?qt:!0,[on,Mn,qt]),ar=mt!=null?mt:rn,zn=Fe("form",bt),hr=(0,$e.Z)(zn),[_n,Sr,tr]=et(zn,hr),er=ye()(zn,`${zn}-${Bn}`,{[`${zn}-hide-required-mark`]:Gn===!1,[`${zn}-rtl`]:ft==="rtl",[`${zn}-${rr}`]:rr},tr,hr,Sr,Wt,un,Ln),[cr]=pt(dr),{__INTERNAL__:br}=cr;br.name=Nn;const vr=ve.useMemo(()=>({name:Nn,labelAlign:Ge,labelCol:Rt,labelWrap:Et,wrapperCol:Ht,vertical:Bn==="vertical",colon:ar,requiredMark:Gn,itemRef:br.itemRef,form:cr,feedbackIcons:nr}),[Nn,Ge,Rt,Ht,Bn,ar,Gn,cr,nr]),lr=ve.useRef(null);ve.useImperativeHandle(Re,()=>{var nn;return Object.assign(Object.assign({},cr),{nativeElement:(nn=lr.current)===null||nn===void 0?void 0:nn.nativeElement})});const Yn=(nn,an)=>{if(nn){let jt={block:"nearest"};typeof nn=="object"&&(jt=Object.assign(Object.assign({},jt),nn)),cr.scrollToField(an,jt)}},Ut=nn=>{if(Pn==null||Pn(nn),nn.errorFields.length){const an=nn.errorFields[0].name;if(mn!==void 0){Yn(mn,an);return}hn!==void 0&&Yn(hn,an)}};return _n(ve.createElement(z.pg.Provider,{value:jn},ve.createElement(Se.n,{disabled:In},ve.createElement(vt.Z.Provider,{value:rr},ve.createElement(z.RV,{validateMessages:fr},ve.createElement(z.q3.Provider,{value:vr},ve.createElement(At.default,Object.assign({id:Nn},Zn,{name:Nn,onFinishFailed:Ut,form:cr,ref:lr,style:Object.assign(Object.assign({},Mt),wn),className:er}))))))))};var se=ve.forwardRef(ee),re=ie(41799),pe=ie(8654),xe=ie(22703),at=ie(32383),Ee=ie(11592);function je(Ce){if(typeof Ce=="function")return Ce;const Re=(0,Ee.Z)(Ce);return Re.length<=1?Re[0]:Re}const ot=()=>{const{status:Ce,errors:Re=[],warnings:we=[]}=ve.useContext(z.aM);return{status:Ce,errors:Re,warnings:we}};ot.Context=z.aM;var wt=ot,dt=ie(16089);function Zt(Ce){const[Re,we]=ve.useState(Ce),Fe=ve.useRef(null),ft=ve.useRef([]),qt=ve.useRef(!1);ve.useEffect(()=>(qt.current=!1,()=>{qt.current=!0,dt.Z.cancel(Fe.current),Fe.current=null}),[]);function rn(hn){qt.current||(Fe.current===null&&(ft.current=[],Fe.current=(0,dt.Z)(()=>{Fe.current=null,we(Wt=>{let Mt=Wt;return ft.current.forEach(bt=>{Mt=bt(Mt)}),Mt})})),ft.current.push(hn))}return[Re,rn]}function lt(){const{itemRef:Ce}=ve.useContext(z.q3),Re=ve.useRef({});function we(Fe,ft){const qt=ft&&typeof ft=="object"&&(0,pe.C4)(ft),rn=Fe.join("_");return(Re.current.name!==rn||Re.current.originRef!==qt)&&(Re.current.name=rn,Re.current.originRef=qt,Re.current.ref=(0,pe.sQ)(Ce(Fe),qt)),Re.current.ref}return we}var rt=ie(29194),xt=ie(34280),Pt=ie(2738),_t=ie(65970),st=ie(70425),Gt=ie(5472);const Lt=Ce=>{const{formItemCls:Re}=Ce;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Re}-control`]:{display:"flex"}}}};var Nt=(0,Ie.bk)(["Form","item-item"],(Ce,Re)=>{let{rootPrefixCls:we}=Re;const Fe=Ne(Ce,we);return[Lt(Fe)]}),Qt=function(Ce,Re){var we={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Fe=Object.getOwnPropertySymbols(Ce);ft<Fe.length;ft++)Re.indexOf(Fe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ft])&&(we[Fe[ft]]=Ce[Fe[ft]]);return we};const Rn=24;var Pe=Ce=>{const{prefixCls:Re,status:we,labelCol:Fe,wrapperCol:ft,children:qt,errors:rn,warnings:hn,_internalItemRender:Wt,extra:Mt,help:bt,fieldId:un,marginBottom:Ln,onErrorVisibleChanged:En,label:In}=Ce,dr=`${Re}-item`,mt=ve.useContext(z.q3),Ge=ve.useMemo(()=>{let Zn=Object.assign({},ft||mt.wrapperCol||{});return In===null&&!Fe&&!ft&&mt.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(fr=>{const Gn=fr?[fr]:[],ar=(0,st.U2)(mt.labelCol,Gn),zn=typeof ar=="object"?ar:{},hr=(0,st.U2)(Zn,Gn),_n=typeof hr=="object"?hr:{};"span"in zn&&!("offset"in _n)&&zn.span<Rn&&(Zn=(0,st.t8)(Zn,[].concat(Gn,["offset"]),zn.span))}),Zn},[ft,mt]),Et=ye()(`${dr}-control`,Ge.className),Rt=ve.useMemo(()=>{const{labelCol:Zn,wrapperCol:rr}=mt;return Qt(mt,["labelCol","wrapperCol"])},[mt]),Ht=ve.useRef(null),[on,Bn]=ve.useState(0);(0,xt.Z)(()=>{Mt&&Ht.current?Bn(Ht.current.clientHeight):Bn(0)},[Mt]);const mn=ve.createElement("div",{className:`${dr}-control-input`},ve.createElement("div",{className:`${dr}-control-input-content`},qt)),Mn=ve.useMemo(()=>({prefixCls:Re,status:we}),[Re,we]),Pn=Ln!==null||rn.length||hn.length?ve.createElement(z.Rk.Provider,{value:Mn},ve.createElement(De,{fieldId:un,errors:rn,warnings:hn,help:bt,helpStatus:we,className:`${dr}-explain-connected`,onVisibleChanged:En})):null,Nn={};un&&(Nn.id=`${un}_extra`);const wn=Mt?ve.createElement("div",Object.assign({},Nn,{className:`${dr}-extra`,ref:Ht}),Mt):null,nr=Pn||wn?ve.createElement("div",{className:`${dr}-additional`,style:Ln?{minHeight:Ln+on}:{}},Pn,wn):null,jn=Wt&&Wt.mark==="pro_table_render"&&Wt.render?Wt.render(Ce,{input:mn,errorList:Pn,extra:wn}):ve.createElement(ve.Fragment,null,mn,nr);return ve.createElement(z.q3.Provider,{value:Rt},ve.createElement(Gt.Z,Object.assign({},Ge,{className:Et}),jn),ve.createElement(Nt,{prefixCls:Re}))},Qe=ie(61485),yt=ie(9017),$t=ie(85981),cn=ie(25399),vn=function(Ce,Re){var we={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Fe=Object.getOwnPropertySymbols(Ce);ft<Fe.length;ft++)Re.indexOf(Fe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ft])&&(we[Fe[ft]]=Ce[Fe[ft]]);return we};function Un(Ce){return Ce?typeof Ce=="object"&&!ve.isValidElement(Ce)?Ce:{title:Ce}:null}var dn=Ce=>{let{prefixCls:Re,label:we,htmlFor:Fe,labelCol:ft,labelAlign:qt,colon:rn,required:hn,requiredMark:Wt,tooltip:Mt,vertical:bt}=Ce;var un;const[Ln]=(0,yt.Z)("Form"),{labelAlign:En,labelCol:In,labelWrap:dr,colon:mt}=ve.useContext(z.q3);if(!we)return null;const Ge=ft||In||{},Et=qt||En,Rt=`${Re}-item-label`,Ht=ye()(Rt,Et==="left"&&`${Rt}-left`,Ge.className,{[`${Rt}-wrap`]:!!dr});let on=we;const Bn=rn===!0||mt!==!1&&rn!==!1;Bn&&!bt&&typeof we=="string"&&we.trim()&&(on=we.replace(/[:|:]\s*$/,""));const Mn=Un(Mt);if(Mn){const{icon:Zn=ve.createElement(Qe.Z,null)}=Mn,rr=vn(Mn,["icon"]),fr=ve.createElement(cn.Z,Object.assign({},rr),ve.cloneElement(Zn,{className:`${Re}-item-tooltip`,title:"",onClick:Gn=>{Gn.preventDefault()},tabIndex:null}));on=ve.createElement(ve.Fragment,null,on,fr)}const Pn=Wt==="optional",Nn=typeof Wt=="function",wn=Wt===!1;Nn?on=Wt(on,{required:!!hn}):Pn&&!hn&&(on=ve.createElement(ve.Fragment,null,on,ve.createElement("span",{className:`${Re}-item-optional`,title:""},(Ln==null?void 0:Ln.optional)||((un=$t.Z.Form)===null||un===void 0?void 0:un.optional))));let nr;wn?nr="hidden":(Pn||Nn)&&(nr="optional");const jn=ye()({[`${Re}-item-required`]:hn,[`${Re}-item-required-mark-${nr}`]:nr,[`${Re}-item-no-colon`]:!Bn});return ve.createElement(Gt.Z,Object.assign({},Ge,{className:Ht}),ve.createElement("label",{htmlFor:Fe,className:jn,title:typeof we=="string"?we:""},on))},gn=ie(29679),bn=ie(19248),qn=ie(96512),Sn=ie(58617);const Fn={success:gn.Z,warning:qn.Z,error:bn.Z,validating:Sn.Z};function yn(Ce){let{children:Re,errors:we,warnings:Fe,hasFeedback:ft,validateStatus:qt,prefixCls:rn,meta:hn,noStyle:Wt}=Ce;const Mt=`${rn}-item`,{feedbackIcons:bt}=ve.useContext(z.q3),un=Ft(we,Fe,hn,null,!!ft,qt),{isFormItemInput:Ln,status:En,hasFeedback:In,feedbackIcon:dr}=ve.useContext(z.aM),mt=ve.useMemo(()=>{var Ge;let Et;if(ft){const Ht=ft!==!0&&ft.icons||bt,on=un&&((Ge=Ht==null?void 0:Ht({status:un,errors:we,warnings:Fe}))===null||Ge===void 0?void 0:Ge[un]),Bn=un&&Fn[un];Et=on!==!1&&Bn?ve.createElement("span",{className:ye()(`${Mt}-feedback-icon`,`${Mt}-feedback-icon-${un}`)},on||ve.createElement(Bn,null)):null}const Rt={status:un||"",errors:we,warnings:Fe,hasFeedback:!!ft,feedbackIcon:Et,isFormItemInput:!0};return Wt&&(Rt.status=(un!=null?un:En)||"",Rt.isFormItemInput=Ln,Rt.hasFeedback=!!(ft!=null?ft:In),Rt.feedbackIcon=ft!==void 0?Rt.feedbackIcon:dr),Rt},[un,ft,Wt,Ln,En]);return ve.createElement(z.aM.Provider,{value:mt},Re)}var An=function(Ce,Re){var we={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Fe=Object.getOwnPropertySymbols(Ce);ft<Fe.length;ft++)Re.indexOf(Fe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ft])&&(we[Fe[ft]]=Ce[Fe[ft]]);return we};function xn(Ce){const{prefixCls:Re,className:we,rootClassName:Fe,style:ft,help:qt,errors:rn,warnings:hn,validateStatus:Wt,meta:Mt,hasFeedback:bt,hidden:un,children:Ln,fieldId:En,required:In,isRequired:dr,onSubItemMetaChange:mt,layout:Ge}=Ce,Et=An(Ce,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Rt=`${Re}-item`,{requiredMark:Ht,vertical:on}=ve.useContext(z.q3),Bn=on||Ge==="vertical",mn=ve.useRef(null),Mn=Me(rn),Pn=Me(hn),Nn=qt!=null,wn=!!(Nn||rn.length||hn.length),nr=!!mn.current&&(0,rt.Z)(mn.current),[jn,Zn]=ve.useState(null);(0,xt.Z)(()=>{if(wn&&mn.current){const zn=getComputedStyle(mn.current);Zn(parseInt(zn.marginBottom,10))}},[wn,nr]);const rr=zn=>{zn||Zn(null)},Gn=function(){let zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const hr=zn?Mn:Mt.errors,_n=zn?Pn:Mt.warnings;return Ft(hr,_n,Mt,"",!!bt,Wt)}(),ar=ye()(Rt,we,Fe,{[`${Rt}-with-help`]:Nn||Mn.length||Pn.length,[`${Rt}-has-feedback`]:Gn&&bt,[`${Rt}-has-success`]:Gn==="success",[`${Rt}-has-warning`]:Gn==="warning",[`${Rt}-has-error`]:Gn==="error",[`${Rt}-is-validating`]:Gn==="validating",[`${Rt}-hidden`]:un,[`${Rt}-${Ge}`]:Ge});return ve.createElement("div",{className:ar,style:ft,ref:mn},ve.createElement(_t.Z,Object.assign({className:`${Rt}-row`},(0,Pt.Z)(Et,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ve.createElement(dn,Object.assign({htmlFor:En},Ce,{requiredMark:Ht,required:In!=null?In:dr,prefixCls:Re,vertical:Bn})),ve.createElement(Pe,Object.assign({},Ce,Mt,{errors:Mn,warnings:Pn,prefixCls:Re,status:Gn,help:qt,marginBottom:jn,onErrorVisibleChanged:rr}),ve.createElement(z.qI.Provider,{value:mt},ve.createElement(yn,{prefixCls:Re,meta:Mt,errors:Mt.errors,warnings:Mt.warnings,hasFeedback:bt,validateStatus:Gn},Ln)))),!!jn&&ve.createElement("div",{className:`${Rt}-margin-offset`,style:{marginBottom:-jn}}))}const Vn="__SPLIT__",ur=null;function Tn(Ce,Re){const we=Object.keys(Ce),Fe=Object.keys(Re);return we.length===Fe.length&&we.every(ft=>{const qt=Ce[ft],rn=Re[ft];return qt===rn||typeof qt=="function"||typeof rn=="function"})}const Qn=ve.memo(Ce=>{let{children:Re}=Ce;return Re},(Ce,Re)=>Tn(Ce.control,Re.control)&&Ce.update===Re.update&&Ce.childProps.length===Re.childProps.length&&Ce.childProps.every((we,Fe)=>we===Re.childProps[Fe]));function sr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gr(Ce){const{name:Re,noStyle:we,className:Fe,dependencies:ft,prefixCls:qt,shouldUpdate:rn,rules:hn,children:Wt,required:Mt,label:bt,messageVariables:un,trigger:Ln="onChange",validateTrigger:En,hidden:In,help:dr,layout:mt}=Ce,{getPrefixCls:Ge}=ve.useContext(Xt.E_),{name:Et}=ve.useContext(z.q3),Rt=je(Wt),Ht=typeof Rt=="function",on=ve.useContext(z.qI),{validateTrigger:Bn}=ve.useContext(At.FieldContext),mn=En!==void 0?En:Bn,Mn=Re!=null,Pn=Ge("form",qt),Nn=(0,$e.Z)(Pn),[wn,nr,jn]=et(Pn,Nn),Zn=(0,at.ln)("Form.Item"),rr=ve.useContext(At.ListContext),fr=ve.useRef(null),[Gn,ar]=Zt({}),[zn,hr]=(0,re.Z)(()=>sr()),_n=lr=>{const Yn=rr==null?void 0:rr.getKey(lr.name);if(hr(lr.destroy?sr():lr,!0),we&&dr!==!1&&on){let Ut=lr.name;if(lr.destroy)Ut=fr.current||Ut;else if(Yn!==void 0){const[nn,an]=Yn;Ut=[nn].concat((0,Ve.Z)(an)),fr.current=Ut}on(lr,Ut)}},Sr=(lr,Yn)=>{ar(Ut=>{const nn=Object.assign({},Ut),jt=[].concat((0,Ve.Z)(lr.name.slice(0,-1)),(0,Ve.Z)(Yn)).join(Vn);return lr.destroy?delete nn[jt]:nn[jt]=lr,nn})},[tr,er]=ve.useMemo(()=>{const lr=(0,Ve.Z)(zn.errors),Yn=(0,Ve.Z)(zn.warnings);return Object.values(Gn).forEach(Ut=>{lr.push.apply(lr,(0,Ve.Z)(Ut.errors||[])),Yn.push.apply(Yn,(0,Ve.Z)(Ut.warnings||[]))}),[lr,Yn]},[Gn,zn.errors,zn.warnings]),cr=lt();function br(lr,Yn,Ut){return we&&!In?ve.createElement(yn,{prefixCls:Pn,hasFeedback:Ce.hasFeedback,validateStatus:Ce.validateStatus,meta:zn,errors:tr,warnings:er,noStyle:!0},lr):ve.createElement(xn,Object.assign({key:"row"},Ce,{className:ye()(Fe,jn,Nn,nr),prefixCls:Pn,fieldId:Yn,isRequired:Ut,errors:tr,warnings:er,meta:zn,onSubItemMetaChange:Sr,layout:mt}),lr)}if(!Mn&&!Ht&&!ft)return wn(br(Rt));let vr={};return typeof bt=="string"?vr.label=bt:Re&&(vr.label=String(Re)),un&&(vr=Object.assign(Object.assign({},vr),un)),wn(ve.createElement(At.Field,Object.assign({},Ce,{messageVariables:vr,trigger:Ln,validateTrigger:mn,onMetaChange:_n}),(lr,Yn,Ut)=>{const nn=gt(Re).length&&Yn?Yn.name:[],an=pn(nn,Et),jt=Mt!==void 0?Mt:!!(hn!=null&&hn.some(Jt=>{if(Jt&&typeof Jt=="object"&&Jt.required&&!Jt.warningOnly)return!0;if(typeof Jt=="function"){const tn=Jt(Ut);return(tn==null?void 0:tn.required)&&!(tn!=null&&tn.warningOnly)}return!1})),Dn=Object.assign({},lr);let Wn=null;if(Array.isArray(Rt)&&Mn)Wn=Rt;else if(!(Ht&&(!(rn||ft)||Mn))){if(!(ft&&!Ht&&!Mn))if(ve.isValidElement(Rt)){const Jt=Object.assign(Object.assign({},Rt.props),Dn);if(Jt.id||(Jt.id=an),dr||tr.length>0||er.length>0||Ce.extra){const kn=[];(dr||tr.length>0)&&kn.push(`${an}_help`),Ce.extra&&kn.push(`${an}_extra`),Jt["aria-describedby"]=kn.join(" ")}tr.length>0&&(Jt["aria-invalid"]="true"),jt&&(Jt["aria-required"]="true"),(0,pe.Yr)(Rt)&&(Jt.ref=cr(nn,Rt)),new Set([].concat((0,Ve.Z)(gt(Ln)),(0,Ve.Z)(gt(mn)))).forEach(kn=>{Jt[kn]=function(){for(var mr,kr,xr,Br,Lr,Tr=arguments.length,Or=new Array(Tr),Nr=0;Nr<Tr;Nr++)Or[Nr]=arguments[Nr];(xr=Dn[kn])===null||xr===void 0||(mr=xr).call.apply(mr,[Dn].concat(Or)),(Lr=(Br=Rt.props)[kn])===null||Lr===void 0||(kr=Lr).call.apply(kr,[Br].concat(Or))}});const On=[Jt["aria-required"],Jt["aria-invalid"],Jt["aria-describedby"]];Wn=ve.createElement(Qn,{control:Dn,update:Rt,childProps:On},(0,xe.Tm)(Rt,Jt))}else Ht&&(rn||ft)&&!Mn?Wn=Rt(Ut):Wn=Rt}return br(Wn,an,jt)}))}const Cr=gr;Cr.useStatus=wt;var ir=Cr,Bt=function(Ce,Re){var we={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Fe=Object.getOwnPropertySymbols(Ce);ft<Fe.length;ft++)Re.indexOf(Fe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Fe[ft])&&(we[Fe[ft]]=Ce[Fe[ft]]);return we},Kn=Ce=>{var{prefixCls:Re,children:we}=Ce,Fe=Bt(Ce,["prefixCls","children"]);const{getPrefixCls:ft}=ve.useContext(Xt.E_),qt=ft("form",Re),rn=ve.useMemo(()=>({prefixCls:qt,status:"error"}),[qt]);return ve.createElement(At.List,Object.assign({},Fe),(hn,Wt,Mt)=>ve.createElement(z.Rk.Provider,{value:rn},we(hn.map(bt=>Object.assign(Object.assign({},bt),{fieldKey:bt.key})),Wt,{errors:Mt.errors,warnings:Mt.warnings})))};function yr(){const{form:Ce}=ve.useContext(z.q3);return Ce}const Te=se;Te.Item=ir,Te.List=Kn,Te.ErrorList=De,Te.useForm=pt,Te.useFormInstance=yr,Te.useWatch=At.useWatch,Te.Provider=z.RV,Te.create=()=>{};var Ue=Te},75786:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return dr}});var z=ie(59301),Ve=ie(15277),ve=ie(92310),Le=ie.n(ve),ye=ie(60499),ge=ie(85899),ke=ie(18642),$e=ie(72190),Me=ie(43749),de=ie(42244),Ze=/margin|padding|width|height|max|min|offset/,be={left:!0,top:!0},nt={cssFloat:1,styleFloat:1,float:1};function Ae(mt){return mt.nodeType===1?mt.ownerDocument.defaultView.getComputedStyle(mt,null):{}}function Ie(mt,Ge,Et){if(Ge=Ge.toLowerCase(),Et==="auto"){if(Ge==="height")return mt.offsetHeight;if(Ge==="width")return mt.offsetWidth}return Ge in be||(be[Ge]=Ze.test(Ge)),be[Ge]?parseFloat(Et)||0:Et}function Oe(mt,Ge){var Et=arguments.length,Rt=Ae(mt);return Ge=nt[Ge]?"cssFloat"in mt.style?"cssFloat":"styleFloat":Ge,Et===1?Rt:Ie(mt,Ge,Rt[Ge]||mt.style[Ge])}function Be(mt,Ge,Et){var Rt=arguments.length;if(Ge=nt[Ge]?"cssFloat"in mt.style?"cssFloat":"styleFloat":Ge,Rt===3)return typeof Et=="number"&&Ze.test(Ge)&&(Et="".concat(Et,"px")),mt.style[Ge]=Et,Et;for(var Ht in Ge)Ge.hasOwnProperty(Ht)&&Be(mt,Ht,Ge[Ht]);return Ae(mt)}function ct(mt){return mt===document.body?document.documentElement.clientWidth:mt.offsetWidth}function kt(mt){return mt===document.body?window.innerHeight||document.documentElement.clientHeight:mt.offsetHeight}function Ct(){var mt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ge=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:mt,height:Ge}}function it(){var mt=document.documentElement.clientWidth,Ge=window.innerHeight||document.documentElement.clientHeight;return{width:mt,height:Ge}}function Je(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _e(mt){var Ge=mt.getBoundingClientRect(),Et=document.documentElement;return{left:Ge.left+(window.pageXOffset||Et.scrollLeft)-(Et.clientLeft||document.body.clientLeft||0),top:Ge.top+(window.pageYOffset||Et.scrollTop)-(Et.clientTop||document.body.clientTop||0)}}var We=ie(18929),St=ie(55311),Xe=ie(8224),Ke=ie(10228),ht=ie(43403),Ne=ie(77900),et=z.createContext(null),qe=function(Ge){var Et=Ge.visible,Rt=Ge.maskTransitionName,Ht=Ge.getContainer,on=Ge.prefixCls,Bn=Ge.rootClassName,mn=Ge.icons,Mn=Ge.countRender,Pn=Ge.showSwitch,Nn=Ge.showProgress,wn=Ge.current,nr=Ge.transform,jn=Ge.count,Zn=Ge.scale,rr=Ge.minScale,fr=Ge.maxScale,Gn=Ge.closeIcon,ar=Ge.onActive,zn=Ge.onClose,hr=Ge.onZoomIn,_n=Ge.onZoomOut,Sr=Ge.onRotateRight,tr=Ge.onRotateLeft,er=Ge.onFlipX,cr=Ge.onFlipY,br=Ge.onReset,vr=Ge.toolbarRender,lr=Ge.zIndex,Yn=Ge.image,Ut=(0,z.useContext)(et),nn=mn.rotateLeft,an=mn.rotateRight,jt=mn.zoomIn,Dn=mn.zoomOut,Wn=mn.close,Jt=mn.left,tn=mn.right,On=mn.flipX,kn=mn.flipY,mr="".concat(on,"-operations-operation");z.useEffect(function(){var jr=function(_r){_r.keyCode===Ke.Z.ESC&&zn()};return Et&&window.addEventListener("keydown",jr),function(){window.removeEventListener("keydown",jr)}},[Et]);var kr=function(Zr,_r){Zr.preventDefault(),Zr.stopPropagation(),ar(_r)},xr=z.useCallback(function(jr){var Zr=jr.type,_r=jr.disabled,Dr=jr.onClick,Jr=jr.icon;return z.createElement("div",{key:Zr,className:Le()(mr,"".concat(on,"-operations-operation-").concat(Zr),(0,ke.Z)({},"".concat(on,"-operations-operation-disabled"),!!_r)),onClick:Dr},Jr)},[mr,on]),Br=Pn?xr({icon:Jt,onClick:function(Zr){return kr(Zr,-1)},type:"prev",disabled:wn===0}):void 0,Lr=Pn?xr({icon:tn,onClick:function(Zr){return kr(Zr,1)},type:"next",disabled:wn===jn-1}):void 0,Tr=xr({icon:kn,onClick:cr,type:"flipY"}),Or=xr({icon:On,onClick:er,type:"flipX"}),Nr=xr({icon:nn,onClick:tr,type:"rotateLeft"}),Fr=xr({icon:an,onClick:Sr,type:"rotateRight"}),Gr=xr({icon:Dn,onClick:_n,type:"zoomOut",disabled:Zn<=rr}),Qr=xr({icon:jt,onClick:hr,type:"zoomIn",disabled:Zn===fr}),ri=z.createElement("div",{className:"".concat(on,"-operations")},Tr,Or,Nr,Fr,Gr,Qr);return z.createElement(Ne.default,{visible:Et,motionName:Rt},function(jr){var Zr=jr.className,_r=jr.style;return z.createElement(ht.Z,{open:!0,getContainer:Ht!=null?Ht:document.body},z.createElement("div",{className:Le()("".concat(on,"-operations-wrapper"),Zr,Bn),style:(0,ge.Z)((0,ge.Z)({},_r),{},{zIndex:lr})},Gn===null?null:z.createElement("button",{className:"".concat(on,"-close"),onClick:zn},Gn||Wn),Pn&&z.createElement(z.Fragment,null,z.createElement("div",{className:Le()("".concat(on,"-switch-left"),(0,ke.Z)({},"".concat(on,"-switch-left-disabled"),wn===0)),onClick:function(Jr){return kr(Jr,-1)}},Jt),z.createElement("div",{className:Le()("".concat(on,"-switch-right"),(0,ke.Z)({},"".concat(on,"-switch-right-disabled"),wn===jn-1)),onClick:function(Jr){return kr(Jr,1)}},tn)),z.createElement("div",{className:"".concat(on,"-footer")},Nn&&z.createElement("div",{className:"".concat(on,"-progress")},Mn?Mn(wn+1,jn):"".concat(wn+1," / ").concat(jn)),vr?vr(ri,(0,ge.Z)((0,ge.Z)({icons:{prevIcon:Br,nextIcon:Lr,flipYIcon:Tr,flipXIcon:Or,rotateLeftIcon:Nr,rotateRightIcon:Fr,zoomOutIcon:Gr,zoomInIcon:Qr},actions:{onActive:ar,onFlipY:cr,onFlipX:er,onRotateLeft:tr,onRotateRight:Sr,onZoomOut:_n,onZoomIn:hr,onReset:br,onClose:zn},transform:nr},Ut?{current:wn,total:jn}:{}),{},{image:Yn})):ri)))})},me=qe,Ot=ie(13697),De=ie(16089),At={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Xt(mt,Ge,Et,Rt){var Ht=(0,z.useRef)(null),on=(0,z.useRef)([]),Bn=(0,z.useState)(At),mn=(0,$e.Z)(Bn,2),Mn=mn[0],Pn=mn[1],Nn=function(Zn){Pn(At),(0,Ot.Z)(At,Mn)||Rt==null||Rt({transform:At,action:Zn})},wn=function(Zn,rr){Ht.current===null&&(on.current=[],Ht.current=(0,De.Z)(function(){Pn(function(fr){var Gn=fr;return on.current.forEach(function(ar){Gn=(0,ge.Z)((0,ge.Z)({},Gn),ar)}),Ht.current=null,Rt==null||Rt({transform:Gn,action:rr}),Gn})})),on.current.push((0,ge.Z)((0,ge.Z)({},Mn),Zn))},nr=function(Zn,rr,fr,Gn,ar){var zn=mt.current,hr=zn.width,_n=zn.height,Sr=zn.offsetWidth,tr=zn.offsetHeight,er=zn.offsetLeft,cr=zn.offsetTop,br=Zn,vr=Mn.scale*Zn;vr>Et?(vr=Et,br=Et/Mn.scale):vr<Ge&&(vr=ar?vr:Ge,br=vr/Mn.scale);var lr=fr!=null?fr:innerWidth/2,Yn=Gn!=null?Gn:innerHeight/2,Ut=br-1,nn=Ut*hr*.5,an=Ut*_n*.5,jt=Ut*(lr-Mn.x-er),Dn=Ut*(Yn-Mn.y-cr),Wn=Mn.x-(jt-nn),Jt=Mn.y-(Dn-an);if(Zn<1&&vr===1){var tn=Sr*vr,On=tr*vr,kn=it(),mr=kn.width,kr=kn.height;tn<=mr&&On<=kr&&(Wn=0,Jt=0)}wn({x:Wn,y:Jt,scale:vr},rr)};return{transform:Mn,resetTransform:Nn,updateTransform:wn,dispatchZoomChange:nr}}var Se=ie(48736);function fe(mt,Ge,Et,Rt){var Ht=Ge+Et,on=(Et-Rt)/2;if(Et>Rt){if(Ge>0)return(0,ke.Z)({},mt,on);if(Ge<0&&Ht<Rt)return(0,ke.Z)({},mt,-on)}else if(Ge<0||Ht>Rt)return(0,ke.Z)({},mt,Ge<0?on:-on);return{}}function vt(mt,Ge,Et,Rt){var Ht=it(),on=Ht.width,Bn=Ht.height,mn=null;return mt<=on&&Ge<=Bn?mn={x:0,y:0}:(mt>on||Ge>Bn)&&(mn=(0,ge.Z)((0,ge.Z)({},fe("x",Et,mt,on)),fe("y",Rt,Ge,Bn))),mn}var Vt=1,Dt=1;function ze(mt,Ge,Et,Rt,Ht,on,Bn){var mn=Ht.rotate,Mn=Ht.scale,Pn=Ht.x,Nn=Ht.y,wn=(0,z.useState)(!1),nr=(0,$e.Z)(wn,2),jn=nr[0],Zn=nr[1],rr=(0,z.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),fr=function(_n){!Ge||_n.button!==0||(_n.preventDefault(),_n.stopPropagation(),rr.current={diffX:_n.pageX-Pn,diffY:_n.pageY-Nn,transformX:Pn,transformY:Nn},Zn(!0))},Gn=function(_n){Et&&jn&&on({x:_n.pageX-rr.current.diffX,y:_n.pageY-rr.current.diffY},"move")},ar=function(){if(Et&&jn){Zn(!1);var _n=rr.current,Sr=_n.transformX,tr=_n.transformY,er=Pn!==Sr&&Nn!==tr;if(!er)return;var cr=mt.current.offsetWidth*Mn,br=mt.current.offsetHeight*Mn,vr=mt.current.getBoundingClientRect(),lr=vr.left,Yn=vr.top,Ut=mn%180!==0,nn=vt(Ut?br:cr,Ut?cr:br,lr,Yn);nn&&on((0,ge.Z)({},nn),"dragRebound")}},zn=function(_n){if(!(!Et||_n.deltaY==0)){var Sr=Math.abs(_n.deltaY/100),tr=Math.min(Sr,Dt),er=Vt+tr*Rt;_n.deltaY>0&&(er=Vt/er),Bn(er,"wheel",_n.clientX,_n.clientY)}};return(0,z.useEffect)(function(){var hr,_n,Sr,tr;if(Ge){Sr=(0,Xe.Z)(window,"mouseup",ar,!1),tr=(0,Xe.Z)(window,"mousemove",Gn,!1);try{window.top!==window.self&&(hr=(0,Xe.Z)(window.top,"mouseup",ar,!1),_n=(0,Xe.Z)(window.top,"mousemove",Gn,!1))}catch(er){(0,Se.Kp)(!1,"[rc-image] ".concat(er))}}return function(){var er,cr,br,vr;(er=Sr)===null||er===void 0||er.remove(),(cr=tr)===null||cr===void 0||cr.remove(),(br=hr)===null||br===void 0||br.remove(),(vr=_n)===null||vr===void 0||vr.remove()}},[Et,jn,Pn,Nn,mn,Ge]),{isMoving:jn,onMouseDown:fr,onMouseMove:Gn,onMouseUp:ar,onWheel:zn}}function ut(mt){return new Promise(function(Ge){if(!mt){Ge(!1);return}var Et=document.createElement("img");Et.onerror=function(){return Ge(!1)},Et.onload=function(){return Ge(!0)},Et.src=mt})}function gt(mt){var Ge=mt.src,Et=mt.isCustomPlaceholder,Rt=mt.fallback,Ht=(0,z.useState)(Et?"loading":"normal"),on=(0,$e.Z)(Ht,2),Bn=on[0],mn=on[1],Mn=(0,z.useRef)(!1),Pn=Bn==="error";(0,z.useEffect)(function(){var jn=!0;return ut(Ge).then(function(Zn){!Zn&&jn&&mn("error")}),function(){jn=!1}},[Ge]),(0,z.useEffect)(function(){Et&&!Mn.current?mn("loading"):Pn&&mn("normal")},[Ge]);var Nn=function(){mn("normal")},wn=function(Zn){Mn.current=!1,Bn==="loading"&&Zn!==null&&Zn!==void 0&&Zn.complete&&(Zn.naturalWidth||Zn.naturalHeight)&&(Mn.current=!0,Nn())},nr=Pn&&Rt?{src:Rt}:{onLoad:Nn,src:Ge};return[wn,nr,Bn]}function pn(mt,Ge){var Et=mt.x-Ge.x,Rt=mt.y-Ge.y;return Math.hypot(Et,Rt)}function Ft(mt,Ge,Et,Rt){var Ht=pn(mt,Et),on=pn(Ge,Rt);if(Ht===0&&on===0)return[mt.x,mt.y];var Bn=Ht/(Ht+on),mn=mt.x+Bn*(Ge.x-mt.x),Mn=mt.y+Bn*(Ge.y-mt.y);return[mn,Mn]}function en(mt,Ge,Et,Rt,Ht,on,Bn){var mn=Ht.rotate,Mn=Ht.scale,Pn=Ht.x,Nn=Ht.y,wn=(0,z.useState)(!1),nr=(0,$e.Z)(wn,2),jn=nr[0],Zn=nr[1],rr=(0,z.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),fr=function(_n){rr.current=(0,ge.Z)((0,ge.Z)({},rr.current),_n)},Gn=function(_n){if(Ge){_n.stopPropagation(),Zn(!0);var Sr=_n.touches,tr=Sr===void 0?[]:Sr;tr.length>1?fr({point1:{x:tr[0].clientX,y:tr[0].clientY},point2:{x:tr[1].clientX,y:tr[1].clientY},eventType:"touchZoom"}):fr({point1:{x:tr[0].clientX-Pn,y:tr[0].clientY-Nn},eventType:"move"})}},ar=function(_n){var Sr=_n.touches,tr=Sr===void 0?[]:Sr,er=rr.current,cr=er.point1,br=er.point2,vr=er.eventType;if(tr.length>1&&vr==="touchZoom"){var lr={x:tr[0].clientX,y:tr[0].clientY},Yn={x:tr[1].clientX,y:tr[1].clientY},Ut=Ft(cr,br,lr,Yn),nn=(0,$e.Z)(Ut,2),an=nn[0],jt=nn[1],Dn=pn(lr,Yn)/pn(cr,br);Bn(Dn,"touchZoom",an,jt,!0),fr({point1:lr,point2:Yn,eventType:"touchZoom"})}else vr==="move"&&(on({x:tr[0].clientX-cr.x,y:tr[0].clientY-cr.y},"move"),fr({eventType:"move"}))},zn=function(){if(Et){if(jn&&Zn(!1),fr({eventType:"none"}),Rt>Mn)return on({x:0,y:0,scale:Rt},"touchZoom");var _n=mt.current.offsetWidth*Mn,Sr=mt.current.offsetHeight*Mn,tr=mt.current.getBoundingClientRect(),er=tr.left,cr=tr.top,br=mn%180!==0,vr=vt(br?Sr:_n,br?_n:Sr,er,cr);vr&&on((0,ge.Z)({},vr),"dragRebound")}};return(0,z.useEffect)(function(){var hr;return Et&&Ge&&(hr=(0,Xe.Z)(window,"touchmove",function(_n){return _n.preventDefault()},{passive:!1})),function(){var _n;(_n=hr)===null||_n===void 0||_n.remove()}},[Et,Ge]),{isTouching:jn,onTouchStart:Gn,onTouchMove:ar,onTouchEnd:zn}}var tt=["fallback","src","imgRef"],Kt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],pt=function(Ge){var Et=Ge.fallback,Rt=Ge.src,Ht=Ge.imgRef,on=(0,de.Z)(Ge,tt),Bn=gt({src:Rt,fallback:Et}),mn=(0,$e.Z)(Bn,2),Mn=mn[0],Pn=mn[1];return z.createElement("img",(0,ye.Z)({ref:function(wn){Ht.current=wn,Mn(wn)}},on,Pn))},le=function(Ge){var Et=Ge.prefixCls,Rt=Ge.src,Ht=Ge.alt,on=Ge.imageInfo,Bn=Ge.fallback,mn=Ge.movable,Mn=mn===void 0?!0:mn,Pn=Ge.onClose,Nn=Ge.visible,wn=Ge.icons,nr=wn===void 0?{}:wn,jn=Ge.rootClassName,Zn=Ge.closeIcon,rr=Ge.getContainer,fr=Ge.current,Gn=fr===void 0?0:fr,ar=Ge.count,zn=ar===void 0?1:ar,hr=Ge.countRender,_n=Ge.scaleStep,Sr=_n===void 0?.5:_n,tr=Ge.minScale,er=tr===void 0?1:tr,cr=Ge.maxScale,br=cr===void 0?50:cr,vr=Ge.transitionName,lr=vr===void 0?"zoom":vr,Yn=Ge.maskTransitionName,Ut=Yn===void 0?"fade":Yn,nn=Ge.imageRender,an=Ge.imgCommonProps,jt=Ge.toolbarRender,Dn=Ge.onTransform,Wn=Ge.onChange,Jt=(0,de.Z)(Ge,Kt),tn=(0,z.useRef)(),On=(0,z.useContext)(et),kn=On&&zn>1,mr=On&&zn>=1,kr=(0,z.useState)(!0),xr=(0,$e.Z)(kr,2),Br=xr[0],Lr=xr[1],Tr=Xt(tn,er,br,Dn),Or=Tr.transform,Nr=Tr.resetTransform,Fr=Tr.updateTransform,Gr=Tr.dispatchZoomChange,Qr=ze(tn,Mn,Nn,Sr,Or,Fr,Gr),ri=Qr.isMoving,jr=Qr.onMouseDown,Zr=Qr.onWheel,_r=en(tn,Mn,Nn,er,Or,Fr,Gr),Dr=_r.isTouching,Jr=_r.onTouchStart,Yr=_r.onTouchMove,li=_r.onTouchEnd,Ci=Or.rotate,fi=Or.scale,hi=Le()((0,ke.Z)({},"".concat(Et,"-moving"),ri));(0,z.useEffect)(function(){Br||Lr(!0)},[Br]);var Ii=function(){Nr("close")},Ur=function(){Gr(Vt+Sr,"zoomIn")},si=function(){Gr(Vt/(Vt+Sr),"zoomOut")},Mi=function(){Fr({rotate:Ci+90},"rotateRight")},Di=function(){Fr({rotate:Ci-90},"rotateLeft")},qr=function(){Fr({flipX:!Or.flipX},"flipX")},_i=function(){Fr({flipY:!Or.flipY},"flipY")},to=function(){Nr("reset")},wr=function(pi){var ui=Gn+pi;!Number.isInteger(ui)||ui<0||ui>zn-1||(Lr(!1),Nr(pi<0?"prev":"next"),Wn==null||Wn(ui,Gn))},Ar=function(pi){!Nn||!kn||(pi.keyCode===Ke.Z.LEFT?wr(-1):pi.keyCode===Ke.Z.RIGHT&&wr(1))},Mr=function(pi){Nn&&(fi!==1?Fr({x:0,y:0,scale:1},"doubleClick"):Gr(Vt+Sr,"doubleClick",pi.clientX,pi.clientY))};(0,z.useEffect)(function(){var Hr=(0,Xe.Z)(window,"keydown",Ar,!1);return function(){Hr.remove()}},[Nn,kn,Gn]);var Pr=z.createElement(pt,(0,ye.Z)({},an,{width:Ge.width,height:Ge.height,imgRef:tn,className:"".concat(Et,"-img"),alt:Ht,style:{transform:"translate3d(".concat(Or.x,"px, ").concat(Or.y,"px, 0) scale3d(").concat(Or.flipX?"-":"").concat(fi,", ").concat(Or.flipY?"-":"").concat(fi,", 1) rotate(").concat(Ci,"deg)"),transitionDuration:(!Br||Dr)&&"0s"},fallback:Bn,src:Rt,onWheel:Zr,onMouseDown:jr,onDoubleClick:Mr,onTouchStart:Jr,onTouchMove:Yr,onTouchEnd:li,onTouchCancel:li})),$r=(0,ge.Z)({url:Rt,alt:Ht},on);return z.createElement(z.Fragment,null,z.createElement(St.Z,(0,ye.Z)({transitionName:lr,maskTransitionName:Ut,closable:!1,keyboard:!0,prefixCls:Et,onClose:Pn,visible:Nn,classNames:{wrapper:hi},rootClassName:jn,getContainer:rr},Jt,{afterClose:Ii}),z.createElement("div",{className:"".concat(Et,"-img-wrapper")},nn?nn(Pr,(0,ge.Z)({transform:Or,image:$r},On?{current:Gn}:{})):Pr)),z.createElement(me,{visible:Nn,transform:Or,maskTransitionName:Ut,closeIcon:Zn,getContainer:rr,prefixCls:Et,rootClassName:jn,icons:nr,countRender:hr,showSwitch:kn,showProgress:mr,current:Gn,count:zn,scale:fi,minScale:er,maxScale:br,toolbarRender:jt,onActive:wr,onZoomIn:Ur,onZoomOut:si,onRotateRight:Mi,onRotateLeft:Di,onFlipX:qr,onFlipY:_i,onClose:Pn,onReset:to,zIndex:Jt.zIndex!==void 0?Jt.zIndex+1:void 0,image:$r}))},te=le,ee=ie(77654),oe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function se(mt){var Ge=z.useState({}),Et=(0,$e.Z)(Ge,2),Rt=Et[0],Ht=Et[1],on=z.useCallback(function(mn,Mn){return Ht(function(Pn){return(0,ge.Z)((0,ge.Z)({},Pn),{},(0,ke.Z)({},mn,Mn))}),function(){Ht(function(Pn){var Nn=(0,ge.Z)({},Pn);return delete Nn[mn],Nn})}},[]),Bn=z.useMemo(function(){return mt?mt.map(function(mn){if(typeof mn=="string")return{data:{src:mn}};var Mn={};return Object.keys(mn).forEach(function(Pn){["src"].concat((0,ee.Z)(oe)).includes(Pn)&&(Mn[Pn]=mn[Pn])}),{data:Mn}}):Object.keys(Rt).reduce(function(mn,Mn){var Pn=Rt[Mn],Nn=Pn.canPreview,wn=Pn.data;return Nn&&mn.push({data:wn,id:Mn}),mn},[])},[mt,Rt]);return[Bn,on,!!mt]}var re=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],pe=["src"],xe=function(Ge){var Et,Rt=Ge.previewPrefixCls,Ht=Rt===void 0?"rc-image-preview":Rt,on=Ge.children,Bn=Ge.icons,mn=Bn===void 0?{}:Bn,Mn=Ge.items,Pn=Ge.preview,Nn=Ge.fallback,wn=(0,Me.Z)(Pn)==="object"?Pn:{},nr=wn.visible,jn=wn.onVisibleChange,Zn=wn.getContainer,rr=wn.current,fr=wn.movable,Gn=wn.minScale,ar=wn.maxScale,zn=wn.countRender,hr=wn.closeIcon,_n=wn.onChange,Sr=wn.onTransform,tr=wn.toolbarRender,er=wn.imageRender,cr=(0,de.Z)(wn,re),br=se(Mn),vr=(0,$e.Z)(br,3),lr=vr[0],Yn=vr[1],Ut=vr[2],nn=(0,We.Z)(0,{value:rr}),an=(0,$e.Z)(nn,2),jt=an[0],Dn=an[1],Wn=(0,z.useState)(!1),Jt=(0,$e.Z)(Wn,2),tn=Jt[0],On=Jt[1],kn=((Et=lr[jt])===null||Et===void 0?void 0:Et.data)||{},mr=kn.src,kr=(0,de.Z)(kn,pe),xr=(0,We.Z)(!!nr,{value:nr,onChange:function(Dr,Jr){jn==null||jn(Dr,Jr,jt)}}),Br=(0,$e.Z)(xr,2),Lr=Br[0],Tr=Br[1],Or=(0,z.useState)(null),Nr=(0,$e.Z)(Or,2),Fr=Nr[0],Gr=Nr[1],Qr=z.useCallback(function(_r,Dr,Jr,Yr){var li=Ut?lr.findIndex(function(Ci){return Ci.data.src===Dr}):lr.findIndex(function(Ci){return Ci.id===_r});Dn(li<0?0:li),Tr(!0),Gr({x:Jr,y:Yr}),On(!0)},[lr,Ut]);z.useEffect(function(){Lr?tn||Dn(0):On(!1)},[Lr]);var ri=function(Dr,Jr){Dn(Dr),_n==null||_n(Dr,Jr)},jr=function(){Tr(!1),Gr(null)},Zr=z.useMemo(function(){return{register:Yn,onPreview:Qr}},[Yn,Qr]);return z.createElement(et.Provider,{value:Zr},on,z.createElement(te,(0,ye.Z)({"aria-hidden":!Lr,movable:fr,visible:Lr,prefixCls:Ht,closeIcon:hr,onClose:jr,mousePosition:Fr,imgCommonProps:kr,src:mr,fallback:Nn,icons:mn,minScale:Gn,maxScale:ar,getContainer:Zn,current:jt,count:lr.length,countRender:zn,onTransform:Sr,toolbarRender:tr,imageRender:er,onChange:ri},cr)))},at=xe,Ee=0;function je(mt,Ge){var Et=z.useState(function(){return Ee+=1,String(Ee)}),Rt=(0,$e.Z)(Et,1),Ht=Rt[0],on=z.useContext(et),Bn={data:Ge,canPreview:mt};return z.useEffect(function(){if(on)return on.register(Ht,Bn)},[]),z.useEffect(function(){on&&on.register(Ht,Bn)},[mt,Ge]),Ht}var ot=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],wt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],dt=function(Ge){var Et=Ge.src,Rt=Ge.alt,Ht=Ge.onPreviewClose,on=Ge.prefixCls,Bn=on===void 0?"rc-image":on,mn=Ge.previewPrefixCls,Mn=mn===void 0?"".concat(Bn,"-preview"):mn,Pn=Ge.placeholder,Nn=Ge.fallback,wn=Ge.width,nr=Ge.height,jn=Ge.style,Zn=Ge.preview,rr=Zn===void 0?!0:Zn,fr=Ge.className,Gn=Ge.onClick,ar=Ge.onError,zn=Ge.wrapperClassName,hr=Ge.wrapperStyle,_n=Ge.rootClassName,Sr=(0,de.Z)(Ge,ot),tr=Pn&&Pn!==!0,er=(0,Me.Z)(rr)==="object"?rr:{},cr=er.src,br=er.visible,vr=br===void 0?void 0:br,lr=er.onVisibleChange,Yn=lr===void 0?Ht:lr,Ut=er.getContainer,nn=Ut===void 0?void 0:Ut,an=er.mask,jt=er.maskClassName,Dn=er.movable,Wn=er.icons,Jt=er.scaleStep,tn=er.minScale,On=er.maxScale,kn=er.imageRender,mr=er.toolbarRender,kr=(0,de.Z)(er,wt),xr=cr!=null?cr:Et,Br=(0,We.Z)(!!vr,{value:vr,onChange:Yn}),Lr=(0,$e.Z)(Br,2),Tr=Lr[0],Or=Lr[1],Nr=gt({src:Et,isCustomPlaceholder:tr,fallback:Nn}),Fr=(0,$e.Z)(Nr,3),Gr=Fr[0],Qr=Fr[1],ri=Fr[2],jr=(0,z.useState)(null),Zr=(0,$e.Z)(jr,2),_r=Zr[0],Dr=Zr[1],Jr=(0,z.useContext)(et),Yr=!!rr,li=function(){Or(!1),Dr(null)},Ci=Le()(Bn,zn,_n,(0,ke.Z)({},"".concat(Bn,"-error"),ri==="error")),fi=(0,z.useMemo)(function(){var si={};return oe.forEach(function(Mi){Ge[Mi]!==void 0&&(si[Mi]=Ge[Mi])}),si},oe.map(function(si){return Ge[si]})),hi=(0,z.useMemo)(function(){return(0,ge.Z)((0,ge.Z)({},fi),{},{src:xr})},[xr,fi]),Ii=je(Yr,hi),Ur=function(Mi){var Di=_e(Mi.target),qr=Di.left,_i=Di.top;Jr?Jr.onPreview(Ii,xr,qr,_i):(Dr({x:qr,y:_i}),Or(!0)),Gn==null||Gn(Mi)};return z.createElement(z.Fragment,null,z.createElement("div",(0,ye.Z)({},Sr,{className:Ci,onClick:Yr?Ur:Gn,style:(0,ge.Z)({width:wn,height:nr},hr)}),z.createElement("img",(0,ye.Z)({},fi,{className:Le()("".concat(Bn,"-img"),(0,ke.Z)({},"".concat(Bn,"-img-placeholder"),Pn===!0),fr),style:(0,ge.Z)({height:nr},jn),ref:Gr},Qr,{width:wn,height:nr,onError:ar})),ri==="loading"&&z.createElement("div",{"aria-hidden":"true",className:"".concat(Bn,"-placeholder")},Pn),an&&Yr&&z.createElement("div",{className:Le()("".concat(Bn,"-mask"),jt),style:{display:(jn==null?void 0:jn.display)==="none"?"none":void 0}},an)),!Jr&&Yr&&z.createElement(te,(0,ye.Z)({"aria-hidden":!Tr,visible:Tr,prefixCls:Mn,onClose:li,mousePosition:_r,src:xr,alt:Rt,imageInfo:{width:wn,height:nr},fallback:Nn,getContainer:nn,icons:Wn,movable:Dn,scaleStep:Jt,minScale:tn,maxScale:On,rootClassName:_n,imageRender:kn,imgCommonProps:fi,toolbarRender:mr},kr)))};dt.PreviewGroup=at;var Zt=dt,lt=Zt,rt=ie(75030),xt=ie(86641),Pt=ie(48755),_t=ie(83397),st=ie(9017),Gt=ie(99267),Lt=ie(33853),Nt=ie(38819),Qt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Rn=Qt,fn=ie(7657),Pe=function(Ge,Et){return z.createElement(fn.Z,(0,ye.Z)({},Ge,{ref:Et,icon:Rn}))},Qe=z.forwardRef(Pe),yt=Qe,$t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},cn=$t,vn=function(Ge,Et){return z.createElement(fn.Z,(0,ye.Z)({},Ge,{ref:Et,icon:cn}))},Un=z.forwardRef(vn),$n=Un,dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},gn=dn,bn=function(Ge,Et){return z.createElement(fn.Z,(0,ye.Z)({},Ge,{ref:Et,icon:gn}))},qn=z.forwardRef(bn),Sn=qn,Fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},yn=Fn,An=function(Ge,Et){return z.createElement(fn.Z,(0,ye.Z)({},Ge,{ref:Et,icon:yn}))},xn=z.forwardRef(An),Vn=xn,ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Tn=ur,Qn=function(Ge,Et){return z.createElement(fn.Z,(0,ye.Z)({},Ge,{ref:Et,icon:Tn}))},sr=z.forwardRef(Qn),gr=sr,Cr=ie(36237),ir=ie(17835),Bt=ie(64427),ln=ie(63356),Kn=ie(34925),yr=ie(99495),Te=ie(16931),Ue=ie(51636);const Ce=mt=>({position:mt||"absolute",inset:0}),Re=mt=>{const{iconCls:Ge,motionDurationSlow:Et,paddingXXS:Rt,marginXXS:Ht,prefixCls:on,colorTextLightSolid:Bn}=mt;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Bn,background:new ir.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Et}`,[`.${on}-mask-info`]:Object.assign(Object.assign({},ln.vS),{padding:`0 ${(0,Cr.unit)(Rt)}`,[Ge]:{marginInlineEnd:Ht,svg:{verticalAlign:"baseline"}}})}},we=mt=>{const{previewCls:Ge,modalMaskBg:Et,paddingSM:Rt,marginXL:Ht,margin:on,paddingLG:Bn,previewOperationColorDisabled:mn,previewOperationHoverColor:Mn,motionDurationSlow:Pn,iconCls:Nn,colorTextLightSolid:wn}=mt,nr=new ir.FastColor(Et).setA(.1),jn=nr.clone().setA(.2);return{[`${Ge}-footer`]:{position:"fixed",bottom:Ht,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:mt.previewOperationColor,transform:"translateX(-50%)"},[`${Ge}-progress`]:{marginBottom:on},[`${Ge}-close`]:{position:"fixed",top:Ht,right:{_skip_check_:!0,value:Ht},display:"flex",color:wn,backgroundColor:nr.toRgbString(),borderRadius:"50%",padding:Rt,outline:0,border:0,cursor:"pointer",transition:`all ${Pn}`,"&:hover":{backgroundColor:jn.toRgbString()},[`& > ${Nn}`]:{fontSize:mt.previewOperationSize}},[`${Ge}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Cr.unit)(Bn)}`,backgroundColor:nr.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Rt,padding:Rt,cursor:"pointer",transition:`all ${Pn}`,userSelect:"none",[`&:not(${Ge}-operations-operation-disabled):hover > ${Nn}`]:{color:Mn},"&-disabled":{color:mn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Nn}`]:{fontSize:mt.previewOperationSize}}}}},Fe=mt=>{const{modalMaskBg:Ge,iconCls:Et,previewOperationColorDisabled:Rt,previewCls:Ht,zIndexPopup:on,motionDurationSlow:Bn}=mt,mn=new ir.FastColor(Ge).setA(.1),Mn=mn.clone().setA(.2);return{[`${Ht}-switch-left, ${Ht}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:mt.calc(on).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:mt.imagePreviewSwitchSize,height:mt.imagePreviewSwitchSize,marginTop:mt.calc(mt.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:mt.previewOperationColor,background:mn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Bn}`,userSelect:"none","&:hover":{background:Mn.toRgbString()},"&-disabled":{"&, &:hover":{color:Rt,background:"transparent",cursor:"not-allowed",[`> ${Et}`]:{cursor:"not-allowed"}}},[`> ${Et}`]:{fontSize:mt.previewOperationSize}},[`${Ht}-switch-left`]:{insetInlineStart:mt.marginSM},[`${Ht}-switch-right`]:{insetInlineEnd:mt.marginSM}}},ft=mt=>{const{motionEaseOut:Ge,previewCls:Et,motionDurationSlow:Rt,componentCls:Ht}=mt;return[{[`${Ht}-preview-root`]:{[Et]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Et}-body`]:Object.assign(Object.assign({},Ce()),{overflow:"hidden"}),[`${Et}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Rt} ${Ge} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ce()),{transition:`transform ${Rt} ${Ge} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Et}-moving`]:{[`${Et}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ht}-preview-root`]:{[`${Et}-wrap`]:{zIndex:mt.zIndexPopup}}},{[`${Ht}-preview-operations-wrapper`]:{position:"fixed",zIndex:mt.calc(mt.zIndexPopup).add(1).equal()},"&":[we(mt),Fe(mt)]}]},qt=mt=>{const{componentCls:Ge}=mt;return{[Ge]:{position:"relative",display:"inline-block",[`${Ge}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Ge}-img-placeholder`]:{backgroundColor:mt.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Ge}-mask`]:Object.assign({},Re(mt)),[`${Ge}-mask:hover`]:{opacity:1},[`${Ge}-placeholder`]:Object.assign({},Ce())}}},rn=mt=>{const{previewCls:Ge}=mt;return{[`${Ge}-root`]:(0,Kn._y)(mt,"zoom"),"&":(0,yr.J$)(mt,!0)}},hn=mt=>({zIndexPopup:mt.zIndexPopupBase+80,previewOperationColor:new ir.FastColor(mt.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new ir.FastColor(mt.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new ir.FastColor(mt.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:mt.fontSizeIcon*1.5});var Wt=(0,Te.I$)("Image",mt=>{const Ge=`${mt.componentCls}-preview`,Et=(0,Ue.mergeToken)(mt,{previewCls:Ge,modalMaskBg:new ir.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:mt.controlHeightLG});return[qt(Et),ft(Et),(0,Bt.QA)((0,Ue.mergeToken)(Et,{componentCls:Ge})),rn(Et)]},hn),Mt=function(mt,Ge){var Et={};for(var Rt in mt)Object.prototype.hasOwnProperty.call(mt,Rt)&&Ge.indexOf(Rt)<0&&(Et[Rt]=mt[Rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,Rt=Object.getOwnPropertySymbols(mt);Ht<Rt.length;Ht++)Ge.indexOf(Rt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(mt,Rt[Ht])&&(Et[Rt[Ht]]=mt[Rt[Ht]]);return Et};const bt={rotateLeft:z.createElement(yt,null),rotateRight:z.createElement($n,null),zoomIn:z.createElement(Vn,null),zoomOut:z.createElement(gr,null),close:z.createElement(Gt.Z,null),left:z.createElement(Lt.Z,null),right:z.createElement(Nt.Z,null),flipX:z.createElement(Sn,null),flipY:z.createElement(Sn,{rotate:90})};var Ln=mt=>{var{previewPrefixCls:Ge,preview:Et}=mt,Rt=Mt(mt,["previewPrefixCls","preview"]);const{getPrefixCls:Ht}=z.useContext(Pt.E_),on=Ht("image",Ge),Bn=`${on}-preview`,mn=Ht(),Mn=(0,_t.Z)(on),[Pn,Nn,wn]=Wt(on,Mn),[nr]=(0,rt.Cn)("ImagePreview",typeof Et=="object"?Et.zIndex:void 0),jn=z.useMemo(()=>{var Zn;if(Et===!1)return Et;const rr=typeof Et=="object"?Et:{},fr=Le()(Nn,wn,Mn,(Zn=rr.rootClassName)!==null&&Zn!==void 0?Zn:"");return Object.assign(Object.assign({},rr),{transitionName:(0,xt.m)(mn,"zoom",rr.transitionName),maskTransitionName:(0,xt.m)(mn,"fade",rr.maskTransitionName),rootClassName:fr,zIndex:nr})},[Et]);return Pn(z.createElement(lt.PreviewGroup,Object.assign({preview:jn,previewPrefixCls:Bn,icons:bt},Rt)))},En=function(mt,Ge){var Et={};for(var Rt in mt)Object.prototype.hasOwnProperty.call(mt,Rt)&&Ge.indexOf(Rt)<0&&(Et[Rt]=mt[Rt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,Rt=Object.getOwnPropertySymbols(mt);Ht<Rt.length;Ht++)Ge.indexOf(Rt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(mt,Rt[Ht])&&(Et[Rt[Ht]]=mt[Rt[Ht]]);return Et};const In=mt=>{const{prefixCls:Ge,preview:Et,className:Rt,rootClassName:Ht,style:on}=mt,Bn=En(mt,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:mn,getPopupContainer:Mn,className:Pn,style:Nn,preview:wn}=(0,Pt.dj)("image"),[nr]=(0,st.Z)("Image"),jn=mn("image",Ge),Zn=mn(),rr=(0,_t.Z)(jn),[fr,Gn,ar]=Wt(jn,rr),zn=Le()(Ht,Gn,ar,rr),hr=Le()(Rt,Gn,Pn),[_n]=(0,rt.Cn)("ImagePreview",typeof Et=="object"?Et.zIndex:void 0),Sr=z.useMemo(()=>{if(Et===!1)return Et;const er=typeof Et=="object"?Et:{},{getContainer:cr,closeIcon:br,rootClassName:vr}=er,lr=En(er,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:z.createElement("div",{className:`${jn}-mask-info`},z.createElement(Ve.Z,null),nr==null?void 0:nr.preview),icons:bt},lr),{rootClassName:Le()(zn,vr),getContainer:cr!=null?cr:Mn,transitionName:(0,xt.m)(Zn,"zoom",er.transitionName),maskTransitionName:(0,xt.m)(Zn,"fade",er.maskTransitionName),zIndex:_n,closeIcon:br!=null?br:wn==null?void 0:wn.closeIcon})},[Et,nr,wn==null?void 0:wn.closeIcon]),tr=Object.assign(Object.assign({},Nn),on);return fr(z.createElement(lt,Object.assign({prefixCls:jn,preview:Sr,rootClassName:zn,className:hr,style:tr},Bn)))};In.PreviewGroup=Ln;var dr=In},4875:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return fn}});var z=ie(59301),Ve=ie(84105),ve=ie(87395),Le=ie(92310),ye=ie.n(Le),ge=ie(60499),ke=ie(18642),$e=ie(43749),Me=ie(72190),de=ie(42244),Ze=ie(38705),be=ie(17212);function nt(){return typeof BigInt=="function"}function Ae(Pe){return!Pe&&Pe!==0&&!Number.isNaN(Pe)||!String(Pe).trim()}function Ie(Pe){var Qe=Pe.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 $t=Qe||"0",cn=$t.split("."),vn=cn[0]||"0",Un=cn[1]||"0";vn==="0"&&Un==="0"&&(yt=!1);var $n=yt?"-":"";return{negative:yt,negativeStr:$n,trimStr:$t,integerStr:vn,decimalStr:Un,fullStr:"".concat($n).concat($t)}}function Oe(Pe){var Qe=String(Pe);return!Number.isNaN(Number(Qe))&&Qe.includes("e")}function Be(Pe){var Qe=String(Pe);if(Oe(Pe)){var yt=Number(Qe.slice(Qe.indexOf("e-")+2)),$t=Qe.match(/\.(\d+)/);return $t!=null&&$t[1]&&(yt+=$t[1].length),yt}return Qe.includes(".")&&kt(Qe)?Qe.length-Qe.indexOf(".")-1:0}function ct(Pe){var Qe=String(Pe);if(Oe(Pe)){if(Pe>Number.MAX_SAFE_INTEGER)return String(nt()?BigInt(Pe).toString():Number.MAX_SAFE_INTEGER);if(Pe<Number.MIN_SAFE_INTEGER)return String(nt()?BigInt(Pe).toString():Number.MIN_SAFE_INTEGER);Qe=Pe.toFixed(Be(Qe))}return Ie(Qe).fullStr}function kt(Pe){return typeof Pe=="number"?!Number.isNaN(Pe):Pe?/^\s*-?\d+(\.\d+)?\s*$/.test(Pe)||/^\s*-?\d+\.\s*$/.test(Pe)||/^\s*-?\.\d+\s*$/.test(Pe):!1}var Ct=function(){function Pe(Qe){if((0,Ze.Z)(this,Pe),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"negative",void 0),(0,ke.Z)(this,"integer",void 0),(0,ke.Z)(this,"decimal",void 0),(0,ke.Z)(this,"decimalLen",void 0),(0,ke.Z)(this,"empty",void 0),(0,ke.Z)(this,"nan",void 0),Ae(Qe)){this.empty=!0;return}if(this.origin=String(Qe),Qe==="-"||Number.isNaN(Qe)){this.nan=!0;return}var yt=Qe;if(Oe(yt)&&(yt=Number(yt)),yt=typeof yt=="string"?yt:ct(yt),kt(yt)){var $t=Ie(yt);this.negative=$t.negative;var cn=$t.trimStr.split(".");this.integer=BigInt(cn[0]);var vn=cn[1]||"0";this.decimal=BigInt(vn),this.decimalLen=vn.length}else this.nan=!0}return(0,be.Z)(Pe,[{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 $t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(yt,"0"));return BigInt($t)}},{key:"negate",value:function(){var yt=new Pe(this.toString());return yt.negative=!yt.negative,yt}},{key:"cal",value:function(yt,$t,cn){var vn=Math.max(this.getDecimalStr().length,yt.getDecimalStr().length),Un=this.alignDecimal(vn),$n=yt.alignDecimal(vn),dn=$t(Un,$n).toString(),gn=cn(vn),bn=Ie(dn),qn=bn.negativeStr,Sn=bn.trimStr,Fn="".concat(qn).concat(Sn.padStart(gn+1,"0"));return new Pe("".concat(Fn.slice(0,-gn),".").concat(Fn.slice(-gn)))}},{key:"add",value:function(yt){if(this.isInvalidate())return new Pe(yt);var $t=new Pe(yt);return $t.isInvalidate()?this:this.cal($t,function(cn,vn){return cn+vn},function(cn){return cn})}},{key:"multi",value:function(yt){var $t=new Pe(yt);return this.isInvalidate()||$t.isInvalidate()?new Pe(NaN):this.cal($t,function(cn,vn){return cn*vn},function(cn){return cn*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()?"":Ie("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Pe}(),it=function(){function Pe(Qe){if((0,Ze.Z)(this,Pe),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),Ae(Qe)){this.empty=!0;return}this.origin=String(Qe),this.number=Number(Qe)}return(0,be.Z)(Pe,[{key:"negate",value:function(){return new Pe(-this.toNumber())}},{key:"add",value:function(yt){if(this.isInvalidate())return new Pe(yt);var $t=Number(yt);if(Number.isNaN($t))return this;var cn=this.number+$t;if(cn>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var vn=Math.max(Be(this.number),Be($t));return new Pe(cn.toFixed(vn))}},{key:"multi",value:function(yt){var $t=Number(yt);if(this.isInvalidate()||Number.isNaN($t))return new Pe(NaN);var cn=this.number*$t;if(cn>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var vn=Math.max(Be(this.number),Be($t));return new Pe(cn.toFixed(vn))}},{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()?"":ct(this.number):this.origin}}]),Pe}();function Je(Pe){return nt()?new Ct(Pe):new it(Pe)}function _e(Pe,Qe,yt){var $t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Pe==="")return"";var cn=Ie(Pe),vn=cn.negativeStr,Un=cn.integerStr,$n=cn.decimalStr,dn="".concat(Qe).concat($n),gn="".concat(vn).concat(Un);if(yt>=0){var bn=Number($n[yt]);if(bn>=5&&!$t){var qn=Je(Pe).add("".concat(vn,"0.").concat("0".repeat(yt)).concat(10-bn));return _e(qn.toString(),Qe,yt,$t)}return yt===0?gn:"".concat(gn).concat(Qe).concat($n.padEnd(yt,"0").slice(0,yt))}return dn===".0"?gn:"".concat(gn).concat(dn)}var We=Je,St=ie(36901),Xe=ie(34280);function Ke(Pe,Qe){return typeof Proxy!="undefined"&&Pe?new Proxy(Pe,{get:function($t,cn){if(Qe[cn])return Qe[cn];var vn=$t[cn];return typeof vn=="function"?vn.bind($t):vn}}):Pe}var ht=ie(8654),Ne=ie(48736);function et(Pe,Qe){var yt=(0,z.useRef)(null);function $t(){try{var vn=Pe.selectionStart,Un=Pe.selectionEnd,$n=Pe.value,dn=$n.substring(0,vn),gn=$n.substring(Un);yt.current={start:vn,end:Un,value:$n,beforeTxt:dn,afterTxt:gn}}catch(bn){}}function cn(){if(Pe&&yt.current&&Qe)try{var vn=Pe.value,Un=yt.current,$n=Un.beforeTxt,dn=Un.afterTxt,gn=Un.start,bn=vn.length;if(vn.startsWith($n))bn=$n.length;else if(vn.endsWith(dn))bn=vn.length-yt.current.afterTxt.length;else{var qn=$n[gn-1],Sn=vn.indexOf(qn,gn-1);Sn!==-1&&(bn=Sn+1)}Pe.setSelectionRange(bn,bn)}catch(Fn){(0,Ne.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Fn.message))}}return[$t,cn]}var qe=ie(49658),me=function(){var Qe=(0,z.useState)(!1),yt=(0,Me.Z)(Qe,2),$t=yt[0],cn=yt[1];return(0,Xe.Z)(function(){cn((0,qe.Z)())},[]),$t},Ot=me,De=ie(16089),At=200,Xt=600;function Se(Pe){var Qe=Pe.prefixCls,yt=Pe.upNode,$t=Pe.downNode,cn=Pe.upDisabled,vn=Pe.downDisabled,Un=Pe.onStep,$n=z.useRef(),dn=z.useRef([]),gn=z.useRef();gn.current=Un;var bn=function(){clearTimeout($n.current)},qn=function(Tn,Qn){Tn.preventDefault(),bn(),gn.current(Qn);function sr(){gn.current(Qn),$n.current=setTimeout(sr,At)}$n.current=setTimeout(sr,Xt)};z.useEffect(function(){return function(){bn(),dn.current.forEach(function(ur){return De.Z.cancel(ur)})}},[]);var Sn=Ot();if(Sn)return null;var Fn="".concat(Qe,"-handler"),yn=ye()(Fn,"".concat(Fn,"-up"),(0,ke.Z)({},"".concat(Fn,"-up-disabled"),cn)),An=ye()(Fn,"".concat(Fn,"-down"),(0,ke.Z)({},"".concat(Fn,"-down-disabled"),vn)),xn=function(){return dn.current.push((0,De.Z)(bn))},Vn={unselectable:"on",role:"button",onMouseUp:xn,onMouseLeave:xn};return z.createElement("div",{className:"".concat(Fn,"-wrap")},z.createElement("span",(0,ge.Z)({},Vn,{onMouseDown:function(Tn){qn(Tn,!0)},"aria-label":"Increase Value","aria-disabled":cn,className:yn}),yt||z.createElement("span",{unselectable:"on",className:"".concat(Qe,"-handler-up-inner")})),z.createElement("span",(0,ge.Z)({},Vn,{onMouseDown:function(Tn){qn(Tn,!1)},"aria-label":"Decrease Value","aria-disabled":vn,className:An}),$t||z.createElement("span",{unselectable:"on",className:"".concat(Qe,"-handler-down-inner")})))}function fe(Pe){var Qe=typeof Pe=="number"?ct(Pe):Ie(Pe).fullStr,yt=Qe.includes(".");return yt?Ie(Qe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Pe+"0"}var vt=ie(30292),Vt=function(){var Pe=(0,z.useRef)(0),Qe=function(){De.Z.cancel(Pe.current)};return(0,z.useEffect)(function(){return Qe},[]),function(yt){Qe(),Pe.current=(0,De.Z)(function(){yt()})}},Dt=["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"],ze=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ut=function(Qe,yt){return Qe||yt.isEmpty()?yt.toString():yt.toNumber()},gt=function(Qe){var yt=We(Qe);return yt.isInvalidate()?null:yt},pn=z.forwardRef(function(Pe,Qe){var yt=Pe.prefixCls,$t=Pe.className,cn=Pe.style,vn=Pe.min,Un=Pe.max,$n=Pe.step,dn=$n===void 0?1:$n,gn=Pe.defaultValue,bn=Pe.value,qn=Pe.disabled,Sn=Pe.readOnly,Fn=Pe.upHandler,yn=Pe.downHandler,An=Pe.keyboard,xn=Pe.changeOnWheel,Vn=xn===void 0?!1:xn,ur=Pe.controls,Tn=ur===void 0?!0:ur,Qn=Pe.classNames,sr=Pe.stringMode,gr=Pe.parser,Cr=Pe.formatter,ir=Pe.precision,Bt=Pe.decimalSeparator,ln=Pe.onChange,Kn=Pe.onInput,yr=Pe.onPressEnter,Te=Pe.onStep,Ue=Pe.changeOnBlur,Ce=Ue===void 0?!0:Ue,Re=Pe.domRef,we=(0,de.Z)(Pe,Dt),Fe="".concat(yt,"-input"),ft=z.useRef(null),qt=z.useState(!1),rn=(0,Me.Z)(qt,2),hn=rn[0],Wt=rn[1],Mt=z.useRef(!1),bt=z.useRef(!1),un=z.useRef(!1),Ln=z.useState(function(){return We(bn!=null?bn:gn)}),En=(0,Me.Z)(Ln,2),In=En[0],dr=En[1];function mt(an){bn===void 0&&dr(an)}var Ge=z.useCallback(function(an,jt){if(!jt)return ir>=0?ir:Math.max(Be(an),Be(dn))},[ir,dn]),Et=z.useCallback(function(an){var jt=String(an);if(gr)return gr(jt);var Dn=jt;return Bt&&(Dn=Dn.replace(Bt,".")),Dn.replace(/[^\w.-]+/g,"")},[gr,Bt]),Rt=z.useRef(""),Ht=z.useCallback(function(an,jt){if(Cr)return Cr(an,{userTyping:jt,input:String(Rt.current)});var Dn=typeof an=="number"?ct(an):an;if(!jt){var Wn=Ge(Dn,jt);if(kt(Dn)&&(Bt||Wn>=0)){var Jt=Bt||".";Dn=_e(Dn,Jt,Wn)}}return Dn},[Cr,Ge,Bt]),on=z.useState(function(){var an=gn!=null?gn:bn;return In.isInvalidate()&&["string","number"].includes((0,$e.Z)(an))?Number.isNaN(an)?"":an:Ht(In.toString(),!1)}),Bn=(0,Me.Z)(on,2),mn=Bn[0],Mn=Bn[1];Rt.current=mn;function Pn(an,jt){Mn(Ht(an.isInvalidate()?an.toString(!1):an.toString(!jt),jt))}var Nn=z.useMemo(function(){return gt(Un)},[Un,ir]),wn=z.useMemo(function(){return gt(vn)},[vn,ir]),nr=z.useMemo(function(){return!Nn||!In||In.isInvalidate()?!1:Nn.lessEquals(In)},[Nn,In]),jn=z.useMemo(function(){return!wn||!In||In.isInvalidate()?!1:In.lessEquals(wn)},[wn,In]),Zn=et(ft.current,hn),rr=(0,Me.Z)(Zn,2),fr=rr[0],Gn=rr[1],ar=function(jt){return Nn&&!jt.lessEquals(Nn)?Nn:wn&&!wn.lessEquals(jt)?wn:null},zn=function(jt){return!ar(jt)},hr=function(jt,Dn){var Wn=jt,Jt=zn(Wn)||Wn.isEmpty();if(!Wn.isEmpty()&&!Dn&&(Wn=ar(Wn)||Wn,Jt=!0),!Sn&&!qn&&Jt){var tn=Wn.toString(),On=Ge(tn,Dn);return On>=0&&(Wn=We(_e(tn,".",On)),zn(Wn)||(Wn=We(_e(tn,".",On,!0)))),Wn.equals(In)||(mt(Wn),ln==null||ln(Wn.isEmpty()?null:ut(sr,Wn)),bn===void 0&&Pn(Wn,Dn)),Wn}return In},_n=Vt(),Sr=function an(jt){if(fr(),Rt.current=jt,Mn(jt),!bt.current){var Dn=Et(jt),Wn=We(Dn);Wn.isNaN()||hr(Wn,!0)}Kn==null||Kn(jt),_n(function(){var Jt=jt;gr||(Jt=jt.replace(/。/g,".")),Jt!==jt&&an(Jt)})},tr=function(){bt.current=!0},er=function(){bt.current=!1,Sr(ft.current.value)},cr=function(jt){Sr(jt.target.value)},br=function(jt){var Dn;if(!(jt&&nr||!jt&&jn)){Mt.current=!1;var Wn=We(un.current?fe(dn):dn);jt||(Wn=Wn.negate());var Jt=(In||We(0)).add(Wn.toString()),tn=hr(Jt,!1);Te==null||Te(ut(sr,tn),{offset:un.current?fe(dn):dn,type:jt?"up":"down"}),(Dn=ft.current)===null||Dn===void 0||Dn.focus()}},vr=function(jt){var Dn=We(Et(mn)),Wn;Dn.isNaN()?Wn=hr(In,jt):Wn=hr(Dn,jt),bn!==void 0?Pn(In,!1):Wn.isNaN()||Pn(Wn,!1)},lr=function(){Mt.current=!0},Yn=function(jt){var Dn=jt.key,Wn=jt.shiftKey;Mt.current=!0,un.current=Wn,Dn==="Enter"&&(bt.current||(Mt.current=!1),vr(!1),yr==null||yr(jt)),An!==!1&&!bt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Dn)&&(br(Dn==="Up"||Dn==="ArrowUp"),jt.preventDefault())},Ut=function(){Mt.current=!1,un.current=!1};z.useEffect(function(){if(Vn&&hn){var an=function(Wn){br(Wn.deltaY<0),Wn.preventDefault()},jt=ft.current;if(jt)return jt.addEventListener("wheel",an,{passive:!1}),function(){return jt.removeEventListener("wheel",an)}}});var nn=function(){Ce&&vr(!1),Wt(!1),Mt.current=!1};return(0,Xe.o)(function(){In.isInvalidate()||Pn(In,!1)},[ir,Cr]),(0,Xe.o)(function(){var an=We(bn);dr(an);var jt=We(Et(mn));(!an.equals(jt)||!Mt.current||Cr)&&Pn(an,Mt.current)},[bn]),(0,Xe.o)(function(){Cr&&Gn()},[mn]),z.createElement("div",{ref:Re,className:ye()(yt,$t,(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(yt,"-focused"),hn),"".concat(yt,"-disabled"),qn),"".concat(yt,"-readonly"),Sn),"".concat(yt,"-not-a-number"),In.isNaN()),"".concat(yt,"-out-of-range"),!In.isInvalidate()&&!zn(In))),style:cn,onFocus:function(){Wt(!0)},onBlur:nn,onKeyDown:Yn,onKeyUp:Ut,onCompositionStart:tr,onCompositionEnd:er,onBeforeInput:lr},Tn&&z.createElement(Se,{prefixCls:yt,upNode:Fn,downNode:yn,upDisabled:nr,downDisabled:jn,onStep:br}),z.createElement("div",{className:"".concat(Fe,"-wrap")},z.createElement("input",(0,ge.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":vn,"aria-valuemax":Un,"aria-valuenow":In.isInvalidate()?null:In.toString(),step:dn},we,{ref:(0,ht.sQ)(ft,Qe),className:Fe,value:mn,onChange:cr,disabled:qn,readOnly:Sn}))))}),Ft=z.forwardRef(function(Pe,Qe){var yt=Pe.disabled,$t=Pe.style,cn=Pe.prefixCls,vn=cn===void 0?"rc-input-number":cn,Un=Pe.value,$n=Pe.prefix,dn=Pe.suffix,gn=Pe.addonBefore,bn=Pe.addonAfter,qn=Pe.className,Sn=Pe.classNames,Fn=(0,de.Z)(Pe,ze),yn=z.useRef(null),An=z.useRef(null),xn=z.useRef(null),Vn=function(Tn){xn.current&&(0,vt.nH)(xn.current,Tn)};return z.useImperativeHandle(Qe,function(){return Ke(xn.current,{focus:Vn,nativeElement:yn.current.nativeElement||An.current})}),z.createElement(St.BaseInput,{className:qn,triggerFocus:Vn,prefixCls:vn,value:Un,disabled:yt,style:$t,prefix:$n,suffix:dn,addonAfter:bn,addonBefore:gn,classNames:Sn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:yn},z.createElement(pn,(0,ge.Z)({prefixCls:vn,disabled:yt,ref:xn,domRef:An,className:Sn==null?void 0:Sn.input},Fn)))}),en=Ft,tt=en,Kt=ie(62487),pt=ie(82855),le=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),re=ie(56553),pe=ie(24971),xe=ie(70045),at=ie(36237),Ee=ie(53075),je=ie(64910),ot=ie(39082),wt=ie(63356),dt=ie(56119),Zt=ie(16931),lt=ie(51636),rt=ie(17835);const xt=Pe=>{var Qe;const yt=(Qe=Pe.handleVisible)!==null&&Qe!==void 0?Qe:"auto",$t=Pe.controlHeightSM-Pe.lineWidth*2;return Object.assign(Object.assign({},(0,je.T)(Pe)),{controlWidth:90,handleWidth:$t,handleFontSize:Pe.fontSize/2,handleVisible:yt,handleActiveBg:Pe.colorFillAlter,handleBg:Pe.colorBgContainer,filledHandleBg:new rt.FastColor(Pe.colorFillSecondary).onBackground(Pe.colorBgContainer).toHexString(),handleHoverColor:Pe.colorPrimary,handleBorderColor:Pe.colorBorder,handleOpacity:yt===!0?1:0,handleVisibleWidth:yt===!0?$t:0})},Pt=(Pe,Qe)=>{let{componentCls:yt,borderRadiusSM:$t,borderRadiusLG:cn}=Pe;const vn=Qe==="lg"?cn:$t;return{[`&-${Qe}`]:{[`${yt}-handler-wrap`]:{borderStartEndRadius:vn,borderEndEndRadius:vn},[`${yt}-handler-up`]:{borderStartEndRadius:vn},[`${yt}-handler-down`]:{borderEndEndRadius:vn}}}},_t=Pe=>{const{componentCls:Qe,lineWidth:yt,lineType:$t,borderRadius:cn,inputFontSizeSM:vn,inputFontSizeLG:Un,controlHeightLG:$n,controlHeightSM:dn,colorError:gn,paddingInlineSM:bn,paddingBlockSM:qn,paddingBlockLG:Sn,paddingInlineLG:Fn,colorTextDescription:yn,motionDurationMid:An,handleHoverColor:xn,handleOpacity:Vn,paddingInline:ur,paddingBlock:Tn,handleBg:Qn,handleActiveBg:sr,colorTextDisabled:gr,borderRadiusSM:Cr,borderRadiusLG:ir,controlWidth:Bt,handleBorderColor:ln,filledHandleBg:Kn,lineHeightLG:yr,calc:Te}=Pe;return[{[Qe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Pe)),(0,Ee.ik)(Pe)),{display:"inline-block",width:Bt,margin:0,padding:0,borderRadius:cn}),(0,ot.qG)(Pe,{[`${Qe}-handler-wrap`]:{background:Qn,[`${Qe}-handler-down`]:{borderBlockStart:`${(0,at.unit)(yt)} ${$t} ${ln}`}}})),(0,ot.H8)(Pe,{[`${Qe}-handler-wrap`]:{background:Kn,[`${Qe}-handler-down`]:{borderBlockStart:`${(0,at.unit)(yt)} ${$t} ${ln}`}},"&:focus-within":{[`${Qe}-handler-wrap`]:{background:Qn}}})),(0,ot.vc)(Pe,{[`${Qe}-handler-wrap`]:{background:Qn,[`${Qe}-handler-down`]:{borderBlockStart:`${(0,at.unit)(yt)} ${$t} ${ln}`}}})),(0,ot.Mu)(Pe)),{"&-rtl":{direction:"rtl",[`${Qe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Un,lineHeight:yr,borderRadius:ir,[`input${Qe}-input`]:{height:Te($n).sub(Te(yt).mul(2)).equal(),padding:`${(0,at.unit)(Sn)} ${(0,at.unit)(Fn)}`}},"&-sm":{padding:0,fontSize:vn,borderRadius:Cr,[`input${Qe}-input`]:{height:Te(dn).sub(Te(yt).mul(2)).equal(),padding:`${(0,at.unit)(qn)} ${(0,at.unit)(bn)}`}},"&-out-of-range":{[`${Qe}-input-wrap`]:{input:{color:gn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Pe)),(0,Ee.s7)(Pe)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Qe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Qe}-group-addon`]:{borderRadius:ir,fontSize:Pe.fontSizeLG}},"&-sm":{[`${Qe}-group-addon`]:{borderRadius:Cr}}},(0,ot.ir)(Pe)),(0,ot.S5)(Pe)),{[`&: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,wt.Wf)(Pe)),{width:"100%",padding:`${(0,at.unit)(Tn)} ${(0,at.unit)(ur)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:cn,outline:0,transition:`all ${An} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ee.nz)(Pe.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:Pe.handleWidth,opacity:1}})},{[Qe]:Object.assign(Object.assign(Object.assign({[`${Qe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Pe.handleVisibleWidth,opacity:Vn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:cn,borderEndEndRadius:cn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${An}`,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:Pe.handleFontSize}}},[`${Qe}-handler`]:{height:"50%",overflow:"hidden",color:yn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,at.unit)(yt)} ${$t} ${ln}`,transition:`all ${An} linear`,"&:active":{background:sr},"&:hover":{height:"60%",[`
|
|
|
${Qe}-handler-up-inner,
|
|
|
${Qe}-handler-down-inner
|
|
|
`]:{color:xn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,wt.Ro)()),{color:yn,transition:`all ${An} linear`,userSelect:"none"})},[`${Qe}-handler-up`]:{borderStartEndRadius:cn},[`${Qe}-handler-down`]:{borderEndEndRadius:cn}},Pt(Pe,"lg")),Pt(Pe,"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:gr}})}]},st=Pe=>{const{componentCls:Qe,paddingBlock:yt,paddingInline:$t,inputAffixPadding:cn,controlWidth:vn,borderRadiusLG:Un,borderRadiusSM:$n,paddingInlineLG:dn,paddingInlineSM:gn,paddingBlockLG:bn,paddingBlockSM:qn,motionDurationMid:Sn}=Pe;return{[`${Qe}-affix-wrapper`]:Object.assign(Object.assign({[`input${Qe}-input`]:{padding:`${(0,at.unit)(yt)} 0`}},(0,Ee.ik)(Pe)),{position:"relative",display:"inline-flex",alignItems:"center",width:vn,padding:0,paddingInlineStart:$t,"&-lg":{borderRadius:Un,paddingInlineStart:dn,[`input${Qe}-input`]:{padding:`${(0,at.unit)(bn)} 0`}},"&-sm":{borderRadius:$n,paddingInlineStart:gn,[`input${Qe}-input`]:{padding:`${(0,at.unit)(qn)} 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:cn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:$t,marginInlineStart:cn,transition:`margin ${Sn}`}},[`&:hover ${Qe}-handler-wrap, &-focused ${Qe}-handler-wrap`]:{width:Pe.handleWidth,opacity:1},[`&:not(${Qe}-affix-wrapper-without-controls):hover ${Qe}-suffix`]:{marginInlineEnd:Pe.calc(Pe.handleWidth).add($t).equal()}})}};var Gt=(0,Zt.I$)("InputNumber",Pe=>{const Qe=(0,lt.mergeToken)(Pe,(0,je.e)(Pe));return[_t(Qe),st(Qe),(0,dt.c)(Qe)]},xt,{unitless:{handleOpacity:!0}}),Lt=function(Pe,Qe){var yt={};for(var $t in Pe)Object.prototype.hasOwnProperty.call(Pe,$t)&&Qe.indexOf($t)<0&&(yt[$t]=Pe[$t]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,$t=Object.getOwnPropertySymbols(Pe);cn<$t.length;cn++)Qe.indexOf($t[cn])<0&&Object.prototype.propertyIsEnumerable.call(Pe,$t[cn])&&(yt[$t[cn]]=Pe[$t[cn]]);return yt};const Nt=z.forwardRef((Pe,Qe)=>{const{getPrefixCls:yt,direction:$t}=z.useContext(le.E_),cn=z.useRef(null);z.useImperativeHandle(Qe,()=>cn.current);const{className:vn,rootClassName:Un,size:$n,disabled:dn,prefixCls:gn,addonBefore:bn,addonAfter:qn,prefix:Sn,suffix:Fn,bordered:yn,readOnly:An,status:xn,controls:Vn,variant:ur}=Pe,Tn=Lt(Pe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Qn=yt("input-number",gn),sr=(0,oe.Z)(Qn),[gr,Cr,ir]=Gt(Qn,sr),{compactSize:Bt,compactItemClassnames:ln}=(0,xe.ri)(Qn,$t);let Kn=z.createElement(ve.Z,{className:`${Qn}-handler-up-inner`}),yr=z.createElement(Ve.Z,{className:`${Qn}-handler-down-inner`});const Te=typeof Vn=="boolean"?Vn:void 0;typeof Vn=="object"&&(Kn=typeof Vn.upIcon=="undefined"?Kn:z.createElement("span",{className:`${Qn}-handler-up-inner`},Vn.upIcon),yr=typeof Vn.downIcon=="undefined"?yr:z.createElement("span",{className:`${Qn}-handler-down-inner`},Vn.downIcon));const{hasFeedback:Ue,status:Ce,isFormItemInput:Re,feedbackIcon:we}=z.useContext(re.aM),Fe=(0,pt.F)(Ce,xn),ft=(0,se.Z)(En=>{var In;return(In=$n!=null?$n:Bt)!==null&&In!==void 0?In:En}),qt=z.useContext(ee.Z),rn=dn!=null?dn:qt,[hn,Wt]=(0,pe.Z)("inputNumber",ur,yn),Mt=Ue&&z.createElement(z.Fragment,null,we),bt=ye()({[`${Qn}-lg`]:ft==="large",[`${Qn}-sm`]:ft==="small",[`${Qn}-rtl`]:$t==="rtl",[`${Qn}-in-form-item`]:Re},Cr),un=`${Qn}-group`,Ln=z.createElement(tt,Object.assign({ref:cn,disabled:rn,className:ye()(ir,sr,vn,Un,ln),upHandler:Kn,downHandler:yr,prefixCls:Qn,readOnly:An,controls:Te,prefix:Sn,suffix:Mt||Fn,addonBefore:bn&&z.createElement(Kt.Z,{form:!0,space:!0},bn),addonAfter:qn&&z.createElement(Kt.Z,{form:!0,space:!0},qn),classNames:{input:bt,variant:ye()({[`${Qn}-${hn}`]:Wt},(0,pt.Z)(Qn,Fe,Ue)),affixWrapper:ye()({[`${Qn}-affix-wrapper-sm`]:ft==="small",[`${Qn}-affix-wrapper-lg`]:ft==="large",[`${Qn}-affix-wrapper-rtl`]:$t==="rtl",[`${Qn}-affix-wrapper-without-controls`]:Vn===!1||rn},Cr),wrapper:ye()({[`${un}-rtl`]:$t==="rtl"},Cr),groupWrapper:ye()({[`${Qn}-group-wrapper-sm`]:ft==="small",[`${Qn}-group-wrapper-lg`]:ft==="large",[`${Qn}-group-wrapper-rtl`]:$t==="rtl",[`${Qn}-group-wrapper-${hn}`]:Wt},(0,pt.Z)(`${Qn}-group-wrapper`,Fe,Ue),Cr)}},Tn));return gr(Ln)}),Qt=Nt,Rn=Pe=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Nt,Object.assign({},Pe)));Qt._InternalPanelDoNotUseOrYouWillBeFired=Rn;var fn=Qt},49397:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return it}});var z=ie(59301),Ve=ie(92310),ve=ie.n(Ve),Le=ie(36901),ye=ie(8654),ge=ie(62487),ke=ie(86013),$e=ie(82855),Me=ie(48755),de=ie(2171),Ze=ie(83397),be=ie(31756),nt=ie(56553),Ae=ie(24971),Ie=ie(70045),Oe=ie(23826),Be=ie(53075);function ct(Je){return!!(Je.prefix||Je.suffix||Je.allowClear||Je.showCount)}var kt=function(Je,_e){var We={};for(var St in Je)Object.prototype.hasOwnProperty.call(Je,St)&&_e.indexOf(St)<0&&(We[St]=Je[St]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,St=Object.getOwnPropertySymbols(Je);Xe<St.length;Xe++)_e.indexOf(St[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Je,St[Xe])&&(We[St[Xe]]=Je[St[Xe]]);return We},it=(0,z.forwardRef)((Je,_e)=>{const{prefixCls:We,bordered:St=!0,status:Xe,size:Ke,disabled:ht,onBlur:Ne,onFocus:et,suffix:qe,allowClear:me,addonAfter:Ot,addonBefore:De,className:At,style:Xt,styles:Se,rootClassName:fe,onChange:vt,classNames:Vt,variant:Dt}=Je,ze=kt(Je,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ut,direction:gt,allowClear:pn,autoComplete:Ft,className:en,style:tt,classNames:Kt,styles:pt}=(0,Me.dj)("input"),le=ut("input",We),te=(0,z.useRef)(null),ee=(0,Ze.Z)(le),[oe,se,re]=(0,Be.TI)(le,fe),[pe]=(0,Be.ZP)(le,ee),{compactSize:xe,compactItemClassnames:at}=(0,Ie.ri)(le,gt),Ee=(0,be.Z)(fn=>{var Pe;return(Pe=Ke!=null?Ke:xe)!==null&&Pe!==void 0?Pe:fn}),je=z.useContext(de.Z),ot=ht!=null?ht:je,{status:wt,hasFeedback:dt,feedbackIcon:Zt}=(0,z.useContext)(nt.aM),lt=(0,$e.F)(wt,Xe),rt=ct(Je)||!!dt,xt=(0,z.useRef)(rt),Pt=(0,Oe.Z)(te,!0),_t=fn=>{Pt(),Ne==null||Ne(fn)},st=fn=>{Pt(),et==null||et(fn)},Gt=fn=>{Pt(),vt==null||vt(fn)},Lt=(dt||qe)&&z.createElement(z.Fragment,null,qe,dt&&Zt),Nt=(0,ke.Z)(me!=null?me:pn),[Qt,Rn]=(0,Ae.Z)("input",Dt,St);return oe(pe(z.createElement(Le.default,Object.assign({ref:(0,ye.sQ)(_e,te),prefixCls:le,autoComplete:Ft},ze,{disabled:ot,onBlur:_t,onFocus:st,style:Object.assign(Object.assign({},tt),Xt),styles:Object.assign(Object.assign({},pt),Se),suffix:Lt,allowClear:Nt,className:ve()(At,fe,re,ee,at,en),onChange:Gt,addonBefore:De&&z.createElement(ge.Z,{form:!0,space:!0},De),addonAfter:Ot&&z.createElement(ge.Z,{form:!0,space:!0},Ot),classNames:Object.assign(Object.assign(Object.assign({},Vt),Kt),{input:ve()({[`${le}-sm`]:Ee==="small",[`${le}-lg`]:Ee==="large",[`${le}-rtl`]:gt==="rtl"},Vt==null?void 0:Vt.input,Kt.input,se),variant:ve()({[`${le}-${Qt}`]:Rn},(0,$e.Z)(le,lt)),affixWrapper:ve()({[`${le}-affix-wrapper-sm`]:Ee==="small",[`${le}-affix-wrapper-lg`]:Ee==="large",[`${le}-affix-wrapper-rtl`]:gt==="rtl"},se),wrapper:ve()({[`${le}-group-rtl`]:gt==="rtl"},se),groupWrapper:ve()({[`${le}-group-wrapper-sm`]:Ee==="small",[`${le}-group-wrapper-lg`]:Ee==="large",[`${le}-group-wrapper-rtl`]:gt==="rtl",[`${le}-group-wrapper-${Qt}`]:Rn},(0,$e.Z)(`${le}-group-wrapper`,lt,dt),se)})}))))})},79809:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return _e}});var z=ie(59301),Ve=ie(92310),ve=ie.n(Ve),Le=ie(22711),ye=ie(86013),ge=ie(82855),ke=ie(48755),$e=ie(2171),Me=ie(83397),de=ie(31756),Ze=ie(56553),be=ie(24971),nt=ie(70045),Ae=ie(30292),Ie=ie(53075),Oe=ie(16931),Be=ie(51636),ct=ie(64910);const kt=We=>{const{componentCls:St,paddingLG:Xe}=We,Ke=`${St}-textarea`;return{[`textarea${St}`]:{maxWidth:"100%",height:"auto",minHeight:We.controlHeight,lineHeight:We.lineHeight,verticalAlign:"bottom",transition:`all ${We.motionDurationSlow}`,resize:"vertical",[`&${St}-mouse-active`]:{transition:`all ${We.motionDurationSlow}, height 0s, width 0s`}},[`${St}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ke]:{position:"relative","&-show-count":{[`> ${St}`]:{height:"100%"},[`${St}-data-count`]:{position:"absolute",bottom:We.calc(We.fontSize).mul(We.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:We.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${St},
|
|
|
&-affix-wrapper${Ke}-has-feedback ${St}
|
|
|
`]:{paddingInlineEnd:Xe},[`&-affix-wrapper${St}-affix-wrapper`]:{padding:0,[`> textarea${St}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:We.calc(We.controlHeight).sub(We.calc(We.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${St}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${St}-clear-icon`]:{position:"absolute",insetInlineEnd:We.paddingInline,insetBlockStart:We.paddingXS},[`${Ke}-suffix`]:{position:"absolute",top:0,insetInlineEnd:We.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${St}-affix-wrapper-sm`]:{[`${St}-suffix`]:{[`${St}-clear-icon`]:{insetInlineEnd:We.paddingInlineSM}}}}}};var Ct=(0,Oe.I$)(["Input","TextArea"],We=>{const St=(0,Be.mergeToken)(We,(0,ct.e)(We));return[kt(St)]},ct.T,{resetFont:!1}),it=function(We,St){var Xe={};for(var Ke in We)Object.prototype.hasOwnProperty.call(We,Ke)&&St.indexOf(Ke)<0&&(Xe[Ke]=We[Ke]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Ke=Object.getOwnPropertySymbols(We);ht<Ke.length;ht++)St.indexOf(Ke[ht])<0&&Object.prototype.propertyIsEnumerable.call(We,Ke[ht])&&(Xe[Ke[ht]]=We[Ke[ht]]);return Xe},_e=(0,z.forwardRef)((We,St)=>{var Xe;const{prefixCls:Ke,bordered:ht=!0,size:Ne,disabled:et,status:qe,allowClear:me,classNames:Ot,rootClassName:De,className:At,style:Xt,styles:Se,variant:fe,showCount:vt,onMouseDown:Vt,onResize:Dt}=We,ze=it(We,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ut,direction:gt,allowClear:pn,autoComplete:Ft,className:en,style:tt,classNames:Kt,styles:pt}=(0,ke.dj)("textArea"),le=z.useContext($e.Z),te=et!=null?et:le,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(Ze.aM),re=(0,ge.F)(ee,qe),pe=z.useRef(null);z.useImperativeHandle(St,()=>{var Rn;return{resizableTextArea:(Rn=pe.current)===null||Rn===void 0?void 0:Rn.resizableTextArea,focus:fn=>{var Pe,Qe;(0,Ae.nH)((Qe=(Pe=pe.current)===null||Pe===void 0?void 0:Pe.resizableTextArea)===null||Qe===void 0?void 0:Qe.textArea,fn)},blur:()=>{var fn;return(fn=pe.current)===null||fn===void 0?void 0:fn.blur()}}});const xe=ut("input",Ke),at=(0,Me.Z)(xe),[Ee,je,ot]=(0,Ie.TI)(xe,De),[wt]=Ct(xe,at),{compactSize:dt,compactItemClassnames:Zt}=(0,nt.ri)(xe,gt),lt=(0,de.Z)(Rn=>{var fn;return(fn=Ne!=null?Ne:dt)!==null&&fn!==void 0?fn:Rn}),[rt,xt]=(0,be.Z)("textArea",fe,ht),Pt=(0,ye.Z)(me!=null?me:pn),[_t,st]=z.useState(!1),[Gt,Lt]=z.useState(!1),Nt=Rn=>{st(!0),Vt==null||Vt(Rn);const fn=()=>{st(!1),document.removeEventListener("mouseup",fn)};document.addEventListener("mouseup",fn)},Qt=Rn=>{var fn,Pe;if(Dt==null||Dt(Rn),_t&&typeof getComputedStyle=="function"){const Qe=(Pe=(fn=pe.current)===null||fn===void 0?void 0:fn.nativeElement)===null||Pe===void 0?void 0:Pe.querySelector("textarea");Qe&&getComputedStyle(Qe).resize==="both"&&Lt(!0)}};return Ee(wt(z.createElement(Le.default,Object.assign({autoComplete:Ft},ze,{style:Object.assign(Object.assign({},tt),Xt),styles:Object.assign(Object.assign({},pt),Se),disabled:te,allowClear:Pt,className:ve()(ot,at,At,De,Zt,en,Gt&&`${xe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ot),Kt),{textarea:ve()({[`${xe}-sm`]:lt==="small",[`${xe}-lg`]:lt==="large"},je,Ot==null?void 0:Ot.textarea,Kt.textarea,_t&&`${xe}-mouse-active`),variant:ve()({[`${xe}-${rt}`]:xt},(0,ge.Z)(xe,re)),affixWrapper:ve()(`${xe}-textarea-affix-wrapper`,{[`${xe}-affix-wrapper-rtl`]:gt==="rtl",[`${xe}-affix-wrapper-sm`]:lt==="small",[`${xe}-affix-wrapper-lg`]:lt==="large",[`${xe}-textarea-show-count`]:vt||((Xe=We.count)===null||Xe===void 0?void 0:Xe.show)},je)}),prefixCls:xe,suffix:oe&&z.createElement("span",{className:`${xe}-textarea-suffix`},se),showCount:vt,ref:pe,onResize:Qt,onMouseDown:Nt}))))})},23826:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Ve}});var z=ie(59301);function Ve(ve,Le){const ye=(0,z.useRef)([]),ge=()=>{ye.current.push(setTimeout(()=>{var ke,$e,Me,de;!((ke=ve.current)===null||ke===void 0)&&ke.input&&(($e=ve.current)===null||$e===void 0?void 0:$e.input.getAttribute("type"))==="password"&&(!((Me=ve.current)===null||Me===void 0)&&Me.input.hasAttribute("value"))&&((de=ve.current)===null||de===void 0||de.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Le&&ge(),()=>ye.current.forEach(ke=>{ke&&clearTimeout(ke)})),[]),ge}},37568:function(Yt,zt,ie){"use strict";ie.d(zt,{default:function(){return Kt}});var z=ie(59301),Ve=ie(92310),ve=ie.n(Ve),Le=ie(48755),ye=ie(56553),ge=ie(53075),$e=pt=>{const{getPrefixCls:le,direction:te}=(0,z.useContext)(Le.E_),{prefixCls:ee,className:oe}=pt,se=le("input-group",ee),re=le("input"),[pe,xe,at]=(0,ge.ZP)(re),Ee=ve()(se,at,{[`${se}-lg`]:pt.size==="large",[`${se}-sm`]:pt.size==="small",[`${se}-compact`]:pt.compact,[`${se}-rtl`]:te==="rtl"},xe,oe),je=(0,z.useContext)(ye.aM),ot=(0,z.useMemo)(()=>Object.assign(Object.assign({},je),{isFormItemInput:!1}),[je]);return pe(z.createElement("span",{className:Ee,style:pt.style,onMouseEnter:pt.onMouseEnter,onMouseLeave:pt.onMouseLeave,onFocus:pt.onFocus,onBlur:pt.onBlur},z.createElement(ye.aM.Provider,{value:ot},pt.children)))},Me=ie(49397),de=ie(77654),Ze=ie(6089),be=ie(26112),nt=ie(82855),Ae=ie(31756),Ie=ie(16931),Oe=ie(51636),Be=ie(64910);const ct=pt=>{const{componentCls:le,paddingXS:te}=pt;return{[le]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${le}-input`]:{textAlign:"center",paddingInline:pt.paddingXXS},[`&${le}-sm ${le}-input`]:{paddingInline:pt.calc(pt.paddingXXS).div(2).equal()},[`&${le}-lg ${le}-input`]:{paddingInline:pt.paddingXS}}}};var kt=(0,Ie.I$)(["Input","OTP"],pt=>{const le=(0,Oe.mergeToken)(pt,(0,Be.e)(pt));return[ct(le)]},Be.T),Ct=ie(16089),it=function(pt,le){var te={};for(var ee in pt)Object.prototype.hasOwnProperty.call(pt,ee)&&le.indexOf(ee)<0&&(te[ee]=pt[ee]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(pt);oe<ee.length;oe++)le.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(pt,ee[oe])&&(te[ee[oe]]=pt[ee[oe]]);return te},_e=z.forwardRef((pt,le)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:re}=pt,pe=it(pt,["value","onChange","onActiveChange","index","mask"]),xe=te&&typeof re=="string"?re:te,at=dt=>{ee(se,dt.target.value)},Ee=z.useRef(null);z.useImperativeHandle(le,()=>Ee.current);const je=()=>{(0,Ct.Z)(()=>{var dt;const Zt=(dt=Ee.current)===null||dt===void 0?void 0:dt.input;document.activeElement===Zt&&Zt&&Zt.select()})},ot=dt=>{const{key:Zt,ctrlKey:lt,metaKey:rt}=dt;Zt==="ArrowLeft"?oe(se-1):Zt==="ArrowRight"?oe(se+1):Zt==="z"&&(lt||rt)&&dt.preventDefault(),je()},wt=dt=>{dt.key==="Backspace"&&!te&&oe(se-1),je()};return z.createElement(Me.Z,Object.assign({type:re===!0?"password":"text"},pe,{ref:Ee,value:xe,onInput:at,onFocus:je,onKeyDown:ot,onKeyUp:wt,onMouseDown:je,onMouseUp:je}))}),We=function(pt,le){var te={};for(var ee in pt)Object.prototype.hasOwnProperty.call(pt,ee)&&le.indexOf(ee)<0&&(te[ee]=pt[ee]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(pt);oe<ee.length;oe++)le.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(pt,ee[oe])&&(te[ee[oe]]=pt[ee[oe]]);return te};function St(pt){return(pt||"").split("")}const Xe=pt=>{const{index:le,prefixCls:te,separator:ee}=pt,oe=typeof ee=="function"?ee(le):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var ht=z.forwardRef((pt,le)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:re,onChange:pe,formatter:xe,separator:at,variant:Ee,disabled:je,status:ot,autoFocus:wt,mask:dt,type:Zt,onInput:lt,inputMode:rt}=pt,xt=We(pt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Pt,direction:_t}=z.useContext(Le.E_),st=Pt("otp",te),Gt=(0,be.Z)(xt,{aria:!0,data:!0,attr:!0}),[Lt,Nt,Qt]=kt(st),Rn=(0,Ae.Z)(Sn=>oe!=null?oe:Sn),fn=z.useContext(ye.aM),Pe=(0,nt.F)(fn.status,ot),Qe=z.useMemo(()=>Object.assign(Object.assign({},fn),{status:Pe,hasFeedback:!1,feedbackIcon:null}),[fn,Pe]),yt=z.useRef(null),$t=z.useRef({});z.useImperativeHandle(le,()=>({focus:()=>{var Sn;(Sn=$t.current[0])===null||Sn===void 0||Sn.focus()},blur:()=>{var Sn;for(let Fn=0;Fn<ee;Fn+=1)(Sn=$t.current[Fn])===null||Sn===void 0||Sn.blur()},nativeElement:yt.current}));const cn=Sn=>xe?xe(Sn):Sn,[vn,Un]=z.useState(()=>St(cn(se||"")));z.useEffect(()=>{re!==void 0&&Un(St(re))},[re]);const $n=(0,Ze.Z)(Sn=>{Un(Sn),lt&<(Sn),pe&&Sn.length===ee&&Sn.every(Fn=>Fn)&&Sn.some((Fn,yn)=>vn[yn]!==Fn)&&pe(Sn.join(""))}),dn=(0,Ze.Z)((Sn,Fn)=>{let yn=(0,de.Z)(vn);for(let xn=0;xn<Sn;xn+=1)yn[xn]||(yn[xn]="");Fn.length<=1?yn[Sn]=Fn:yn=yn.slice(0,Sn).concat(St(Fn)),yn=yn.slice(0,ee);for(let xn=yn.length-1;xn>=0&&!yn[xn];xn-=1)yn.pop();const An=cn(yn.map(xn=>xn||" ").join(""));return yn=St(An).map((xn,Vn)=>xn===" "&&!yn[Vn]?yn[Vn]:xn),yn}),gn=(Sn,Fn)=>{var yn;const An=dn(Sn,Fn),xn=Math.min(Sn+Fn.length,ee-1);xn!==Sn&&An[Sn]!==void 0&&((yn=$t.current[xn])===null||yn===void 0||yn.focus()),$n(An)},bn=Sn=>{var Fn;(Fn=$t.current[Sn])===null||Fn===void 0||Fn.focus()},qn={variant:Ee,disabled:je,status:Pe,mask:dt,type:Zt,inputMode:rt};return Lt(z.createElement("div",Object.assign({},Gt,{ref:yt,className:ve()(st,{[`${st}-sm`]:Rn==="small",[`${st}-lg`]:Rn==="large",[`${st}-rtl`]:_t==="rtl"},Qt,Nt)}),z.createElement(ye.aM.Provider,{value:Qe},Array.from({length:ee}).map((Sn,Fn)=>{const yn=`otp-${Fn}`,An=vn[Fn]||"";return z.createElement(z.Fragment,{key:yn},z.createElement(_e,Object.assign({ref:xn=>{$t.current[Fn]=xn},index:Fn,size:Rn,htmlSize:1,className:`${st}-input`,onChange:gn,value:An,onActiveChange:bn,autoFocus:Fn===0&&wt},qn)),Fn<ee-1&&z.createElement(Xe,{separator:at,index:Fn,prefixCls:st}))}))))}),Ne=ie(73331),et=ie(15277),qe=ie(2738),me=ie(8654),Ot=ie(2171),De=ie(23826),At=function(pt,le){var te={};for(var ee in pt)Object.prototype.hasOwnProperty.call(pt,ee)&&le.indexOf(ee)<0&&(te[ee]=pt[ee]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(pt);oe<ee.length;oe++)le.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(pt,ee[oe])&&(te[ee[oe]]=pt[ee[oe]]);return te};const Xt=pt=>pt?z.createElement(et.Z,null):z.createElement(Ne.Z,null),Se={click:"onClick",hover:"onMouseOver"};var vt=z.forwardRef((pt,le)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Xt}=pt,re=z.useContext(Ot.Z),pe=te!=null?te:re,xe=typeof oe=="object"&&oe.visible!==void 0,[at,Ee]=(0,z.useState)(()=>xe?oe.visible:!1),je=(0,z.useRef)(null);z.useEffect(()=>{xe&&Ee(oe.visible)},[xe,oe]);const ot=(0,De.Z)(je),wt=()=>{var Rn;if(pe)return;at&&ot();const fn=!at;Ee(fn),typeof oe=="object"&&((Rn=oe.onVisibleChange)===null||Rn===void 0||Rn.call(oe,fn))},dt=Rn=>{const fn=Se[ee]||"",Pe=se(at),Qe={[fn]:wt,className:`${Rn}-icon`,key:"passwordIcon",onMouseDown:yt=>{yt.preventDefault()},onMouseUp:yt=>{yt.preventDefault()}};return z.cloneElement(z.isValidElement(Pe)?Pe:z.createElement("span",null,Pe),Qe)},{className:Zt,prefixCls:lt,inputPrefixCls:rt,size:xt}=pt,Pt=At(pt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_t}=z.useContext(Le.E_),st=_t("input",rt),Gt=_t("input-password",lt),Lt=oe&&dt(Gt),Nt=ve()(Gt,Zt,{[`${Gt}-${xt}`]:!!xt}),Qt=Object.assign(Object.assign({},(0,qe.Z)(Pt,["suffix","iconRender","visibilityToggle"])),{type:at?"text":"password",className:Nt,prefixCls:st,suffix:Lt});return xt&&(Qt.size=xt),z.createElement(Me.Z,Object.assign({ref:(0,me.sQ)(le,je)},Qt))}),Vt=ie(47472),Dt=ie(22703),ze=ie(7939),ut=ie(70045),gt=function(pt,le){var te={};for(var ee in pt)Object.prototype.hasOwnProperty.call(pt,ee)&&le.indexOf(ee)<0&&(te[ee]=pt[ee]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(pt);oe<ee.length;oe++)le.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(pt,ee[oe])&&(te[ee[oe]]=pt[ee[oe]]);return te},Ft=z.forwardRef((pt,le)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:re,enterButton:pe=!1,addonAfter:xe,loading:at,disabled:Ee,onSearch:je,onChange:ot,onCompositionStart:wt,onCompositionEnd:dt}=pt,Zt=gt(pt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:lt,direction:rt}=z.useContext(Le.E_),xt=z.useRef(!1),Pt=lt("input-search",te),_t=lt("input",ee),{compactSize:st}=(0,ut.ri)(Pt,rt),Gt=(0,Ae.Z)(gn=>{var bn;return(bn=se!=null?se:st)!==null&&bn!==void 0?bn:gn}),Lt=z.useRef(null),Nt=gn=>{gn!=null&&gn.target&&gn.type==="click"&&je&&je(gn.target.value,gn,{source:"clear"}),ot==null||ot(gn)},Qt=gn=>{var bn;document.activeElement===((bn=Lt.current)===null||bn===void 0?void 0:bn.input)&&gn.preventDefault()},Rn=gn=>{var bn,qn;je&&je((qn=(bn=Lt.current)===null||bn===void 0?void 0:bn.input)===null||qn===void 0?void 0:qn.value,gn,{source:"input"})},fn=gn=>{xt.current||at||Rn(gn)},Pe=typeof pe=="boolean"?z.createElement(Vt.Z,null):null,Qe=`${Pt}-button`;let yt;const $t=pe||{},cn=$t.type&&$t.type.__ANT_BUTTON===!0;cn||$t.type==="button"?yt=(0,Dt.Tm)($t,Object.assign({onMouseDown:Qt,onClick:gn=>{var bn,qn;(qn=(bn=$t==null?void 0:$t.props)===null||bn===void 0?void 0:bn.onClick)===null||qn===void 0||qn.call(bn,gn),Rn(gn)},key:"enterButton"},cn?{className:Qe,size:Gt}:{})):yt=z.createElement(ze.ZP,{className:Qe,type:pe?"primary":void 0,size:Gt,disabled:Ee,key:"enterButton",onMouseDown:Qt,onClick:Rn,loading:at,icon:Pe},pe),xe&&(yt=[yt,(0,Dt.Tm)(xe,{key:"addonAfter"})]);const vn=ve()(Pt,{[`${Pt}-rtl`]:rt==="rtl",[`${Pt}-${Gt}`]:!!Gt,[`${Pt}-with-button`]:!!pe},oe),Un=Object.assign(Object.assign({},Zt),{className:vn,prefixCls:_t,type:"search"}),$n=gn=>{xt.current=!0,wt==null||wt(gn)},dn=gn=>{xt.current=!1,dt==null||dt(gn)};return z.createElement(Me.Z,Object.assign({ref:(0,me.sQ)(Lt,le),onPressEnter:fn},Un,{size:Gt,onCompositionStart:$n,onCompositionEnd:dn,addonAfter:yt,suffix:re,onChange:Nt,disabled:Ee}))}),en=ie(79809);const tt=Me.Z;tt.Group=$e,tt.Search=Ft,tt.TextArea=en.Z,tt.Password=vt,tt.OTP=ht;var Kt=tt},24303:function(Yt,zt,ie){"use strict";ie.d(zt,{D:function(){return We},Z:function(){return Ke}});var z=ie(59301),Ve=ie(60499),ve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Le=ve,ye=ie(7657),ge=function(Ne,et){return z.createElement(ye.Z,(0,Ve.Z)({},Ne,{ref:et,icon:Le}))},ke=z.forwardRef(ge),$e=ke,Me=ie(33853),de=ie(38819),Ze=ie(92310),be=ie.n(Ze),nt=ie(2738),Ae=ie(48755),Ie=ie(6989),Oe=ie(36237),Be=ie(48923),ct=ie(16931);const kt=ht=>{const{componentCls:Ne,siderBg:et,motionDurationMid:qe,motionDurationSlow:me,antCls:Ot,triggerHeight:De,triggerColor:At,triggerBg:Xt,headerHeight:Se,zeroTriggerWidth:fe,zeroTriggerHeight:vt,borderRadiusLG:Vt,lightSiderBg:Dt,lightTriggerColor:ze,lightTriggerBg:ut,bodyBg:gt}=ht;return{[Ne]:{position:"relative",minWidth:0,background:et,transition:`all ${qe}, background 0s`,"&-has-trigger":{paddingBottom:De},"&-right":{order:1},[`${Ne}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ot}-menu${Ot}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ne}-children`]:{overflow:"hidden"},[`${Ne}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:De,color:At,lineHeight:(0,Oe.unit)(De),textAlign:"center",background:Xt,cursor:"pointer",transition:`all ${qe}`},[`${Ne}-zero-width-trigger`]:{position:"absolute",top:Se,insetInlineEnd:ht.calc(fe).mul(-1).equal(),zIndex:1,width:fe,height:vt,color:At,fontSize:ht.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:et,borderRadius:`0 ${(0,Oe.unit)(Vt)} ${(0,Oe.unit)(Vt)} 0`,cursor:"pointer",transition:`background ${me} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${me}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ht.calc(fe).mul(-1).equal(),borderRadius:`${(0,Oe.unit)(Vt)} 0 0 ${(0,Oe.unit)(Vt)}`}},"&-light":{background:Dt,[`${Ne}-trigger`]:{color:ze,background:ut},[`${Ne}-zero-width-trigger`]:{color:ze,background:ut,border:`1px solid ${gt}`,borderInlineStart:0}}}}};var Ct=(0,ct.I$)(["Layout","Sider"],ht=>[kt(ht)],Be.eh,{deprecatedTokens:Be.jn}),it=function(ht,Ne){var et={};for(var qe in ht)Object.prototype.hasOwnProperty.call(ht,qe)&&Ne.indexOf(qe)<0&&(et[qe]=ht[qe]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,qe=Object.getOwnPropertySymbols(ht);me<qe.length;me++)Ne.indexOf(qe[me])<0&&Object.prototype.propertyIsEnumerable.call(ht,qe[me])&&(et[qe[me]]=ht[qe[me]]);return et};const Je={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},_e=ht=>!Number.isNaN(Number.parseFloat(ht))&&isFinite(ht),We=z.createContext({}),St=(()=>{let ht=0;return function(){let Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ht+=1,`${Ne}${ht}`}})();var Ke=z.forwardRef((ht,Ne)=>{const{prefixCls:et,className:qe,trigger:me,children:Ot,defaultCollapsed:De=!1,theme:At="dark",style:Xt={},collapsible:Se=!1,reverseArrow:fe=!1,width:vt=200,collapsedWidth:Vt=80,zeroWidthTriggerStyle:Dt,breakpoint:ze,onCollapse:ut,onBreakpoint:gt}=ht,pn=it(ht,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ft}=(0,z.useContext)(Ie.V),[en,tt]=(0,z.useState)("collapsed"in ht?ht.collapsed:De),[Kt,pt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in ht&&tt(ht.collapsed)},[ht.collapsed]);const le=(Gt,Lt)=>{"collapsed"in ht||tt(Gt),ut==null||ut(Gt,Lt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(Ae.E_),oe=te("layout-sider",et),[se,re,pe]=Ct(oe),xe=(0,z.useRef)(null);xe.current=Gt=>{pt(Gt.matches),gt==null||gt(Gt.matches),en!==Gt.matches&&le(Gt.matches,"responsive")},(0,z.useEffect)(()=>{function Gt(Nt){return xe.current(Nt)}let Lt;if(typeof window!="undefined"){const{matchMedia:Nt}=window;if(Nt&&ze&&ze in Je){Lt=Nt(`screen and (max-width: ${Je[ze]})`);try{Lt.addEventListener("change",Gt)}catch(Qt){Lt.addListener(Gt)}Gt(Lt)}}return()=>{try{Lt==null||Lt.removeEventListener("change",Gt)}catch(Nt){Lt==null||Lt.removeListener(Gt)}}},[ze]),(0,z.useEffect)(()=>{const Gt=St("ant-sider-");return Ft.addSider(Gt),()=>Ft.removeSider(Gt)},[]);const at=()=>{le(!en,"clickTrigger")},Ee=(0,nt.Z)(pn,["collapsed"]),je=en?Vt:vt,ot=_e(je)?`${je}px`:String(je),wt=parseFloat(String(Vt||0))===0?z.createElement("span",{onClick:at,className:be()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${fe?"right":"left"}`),style:Dt},me||z.createElement($e,null)):null,dt=ee==="rtl"==!fe,rt={expanded:dt?z.createElement(de.Z,null):z.createElement(Me.Z,null),collapsed:dt?z.createElement(Me.Z,null):z.createElement(de.Z,null)}[en?"collapsed":"expanded"],xt=me!==null?wt||z.createElement("div",{className:`${oe}-trigger`,onClick:at,style:{width:ot}},me||rt):null,Pt=Object.assign(Object.assign({},Xt),{flex:`0 0 ${ot}`,maxWidth:ot,minWidth:ot,width:ot}),_t=be()(oe,`${oe}-${At}`,{[`${oe}-collapsed`]:!!en,[`${oe}-has-trigger`]:Se&&me!==null&&!wt,[`${oe}-below`]:!!Kt,[`${oe}-zero-width`]:parseFloat(ot)===0},qe,re,pe),st=z.useMemo(()=>({siderCollapsed:en}),[en]);return se(z.createElement(We.Provider,{value:st},z.createElement("aside",Object.assign({className:_t},Ee,{style:Pt,ref:Ne}),z.createElement("div",{className:`${oe}-children`},Ot),Se||Kt&&wt?xt:null)))})},6989:function(Yt,zt,ie){"use strict";ie.d(zt,{V:function(){return Ve}});var z=ie(59301);const Ve=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24404:function(Yt,zt,ie){"use strict";ie.d(zt,{default:function(){return Je}});var z=ie(77654),Ve=ie(59301),ve=ie(92310),Le=ie.n(ve),ye=ie(2738),ge=ie(48755),ke=ie(6989),$e=ie(11592),Me=ie(24303);function de(_e,We,St){return typeof St=="boolean"?St:_e.length?!0:(0,$e.Z)(We).some(Ke=>Ke.type===Me.Z)}var Ze=ie(48923),be=function(_e,We){var St={};for(var Xe in _e)Object.prototype.hasOwnProperty.call(_e,Xe)&&We.indexOf(Xe)<0&&(St[Xe]=_e[Xe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Xe=Object.getOwnPropertySymbols(_e);Ke<Xe.length;Ke++)We.indexOf(Xe[Ke])<0&&Object.prototype.propertyIsEnumerable.call(_e,Xe[Ke])&&(St[Xe[Ke]]=_e[Xe[Ke]]);return St};function nt(_e){let{suffixCls:We,tagName:St,displayName:Xe}=_e;return Ke=>Ve.forwardRef((Ne,et)=>Ve.createElement(Ke,Object.assign({ref:et,suffixCls:We,tagName:St},Ne)))}const Ae=Ve.forwardRef((_e,We)=>{const{prefixCls:St,suffixCls:Xe,className:Ke,tagName:ht}=_e,Ne=be(_e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:et}=Ve.useContext(ge.E_),qe=et("layout",St),[me,Ot,De]=(0,Ze.ZP)(qe),At=Xe?`${qe}-${Xe}`:qe;return me(Ve.createElement(ht,Object.assign({className:Le()(St||At,Ke,Ot,De),ref:We},Ne)))}),Ie=Ve.forwardRef((_e,We)=>{const{direction:St}=Ve.useContext(ge.E_),[Xe,Ke]=Ve.useState([]),{prefixCls:ht,className:Ne,rootClassName:et,children:qe,hasSider:me,tagName:Ot,style:De}=_e,At=be(_e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Xt=(0,ye.Z)(At,["suffixCls"]),{getPrefixCls:Se,className:fe,style:vt}=(0,ge.dj)("layout"),Vt=Se("layout",ht),Dt=de(Xe,qe,me),[ze,ut,gt]=(0,Ze.ZP)(Vt),pn=Le()(Vt,{[`${Vt}-has-sider`]:Dt,[`${Vt}-rtl`]:St==="rtl"},fe,Ne,et,ut,gt),Ft=Ve.useMemo(()=>({siderHook:{addSider:en=>{Ke(tt=>[].concat((0,z.Z)(tt),[en]))},removeSider:en=>{Ke(tt=>tt.filter(Kt=>Kt!==en))}}}),[]);return ze(Ve.createElement(ke.V.Provider,{value:Ft},Ve.createElement(Ot,Object.assign({ref:We,className:pn,style:Object.assign(Object.assign({},vt),De)},Xt),qe)))}),Oe=nt({tagName:"div",displayName:"Layout"})(Ie),Be=nt({suffixCls:"header",tagName:"header",displayName:"Header"})(Ae),ct=nt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ae),kt=nt({suffixCls:"content",tagName:"main",displayName:"Content"})(Ae);var Ct=Oe;const it=Ct;it.Header=Be,it.Footer=ct,it.Content=kt,it.Sider=Me.Z,it._InternalSiderContext=Me.D;var Je=it},48923:function(Yt,zt,ie){"use strict";ie.d(zt,{eh:function(){return Le},jn:function(){return ye}});var z=ie(36237),Ve=ie(16931);const ve=ge=>{const{antCls:ke,componentCls:$e,colorText:Me,footerBg:de,headerHeight:Ze,headerPadding:be,headerColor:nt,footerPadding:Ae,fontSize:Ie,bodyBg:Oe,headerBg:Be}=ge;return{[$e]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Oe,"&, *":{boxSizing:"border-box"},[`&${$e}-has-sider`]:{flexDirection:"row",[`> ${$e}, > ${$e}-content`]:{width:0}},[`${$e}-header, &${$e}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${$e}-header`]:{height:Ze,padding:be,color:nt,lineHeight:(0,z.unit)(Ze),background:Be,[`${ke}-menu`]:{lineHeight:"inherit"}},[`${$e}-footer`]:{padding:Ae,color:Me,fontSize:Ie,background:de},[`${$e}-content`]:{flex:"auto",color:Me,minHeight:0}}},Le=ge=>{const{colorBgLayout:ke,controlHeight:$e,controlHeightLG:Me,colorText:de,controlHeightSM:Ze,marginXXS:be,colorTextLightSolid:nt,colorBgContainer:Ae}=ge,Ie=Me*1.25;return{colorBgHeader:"#001529",colorBgBody:ke,colorBgTrigger:"#002140",bodyBg:ke,headerBg:"#001529",headerHeight:$e*2,headerPadding:`0 ${Ie}px`,headerColor:de,footerPadding:`${Ze}px ${Ie}px`,footerBg:ke,siderBg:"#001529",triggerHeight:Me+be*2,triggerBg:"#002140",triggerColor:nt,zeroTriggerWidth:Me,zeroTriggerHeight:Me,lightSiderBg:Ae,lightTriggerBg:Ae,lightTriggerColor:de}},ye=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];zt.ZP=(0,Ve.I$)("Layout",ge=>[ve(ge)],Le,{deprecatedTokens:ye})},78857:function(Yt,zt,ie){"use strict";ie.d(zt,{J:function(){return ge}});var z=ie(59301),Ve=ie(8654),ve=ie(62487),Le=function(ke,$e){var Me={};for(var de in ke)Object.prototype.hasOwnProperty.call(ke,de)&&$e.indexOf(de)<0&&(Me[de]=ke[de]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,de=Object.getOwnPropertySymbols(ke);Ze<de.length;Ze++)$e.indexOf(de[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ke,de[Ze])&&(Me[de[Ze]]=ke[de[Ze]]);return Me};const ye=z.createContext(null),ge=z.forwardRef((ke,$e)=>{const{children:Me}=ke,de=Le(ke,["children"]),Ze=z.useContext(ye),be=z.useMemo(()=>Object.assign(Object.assign({},Ze),de),[Ze,de.prefixCls,de.mode,de.selectable,de.rootClassName]),nt=(0,Ve.t4)(Me),Ae=(0,Ve.x1)($e,nt?(0,Ve.C4)(Me):null);return z.createElement(ye.Provider,{value:be},z.createElement(ve.Z,{space:!0},nt?z.cloneElement(Me,{ref:Ae}):Me))});zt.Z=ye},93041:function(Yt,zt,ie){"use strict";ie.d(zt,{default:function(){return se}});var z=ie(59301),Ve=ie(28321),ve=ie(24303),Le=ie(18785),ye=ie(92310),ge=ie.n(ye),ke=ie(6089),$e=ie(2738),Me=ie(86641),de=ie(22703),Ze=ie(48755),be=ie(83397),Ae=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ie=function(re,pe){var xe={};for(var at in re)Object.prototype.hasOwnProperty.call(re,at)&&pe.indexOf(at)<0&&(xe[at]=re[at]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,at=Object.getOwnPropertySymbols(re);Ee<at.length;Ee++)pe.indexOf(at[Ee])<0&&Object.prototype.propertyIsEnumerable.call(re,at[Ee])&&(xe[at[Ee]]=re[at[Ee]]);return xe},Be=re=>{const{prefixCls:pe,className:xe,dashed:at}=re,Ee=Ie(re,["prefixCls","className","dashed"]),{getPrefixCls:je}=z.useContext(Ze.E_),ot=je("menu",pe),wt=ge()({[`${ot}-item-divider-dashed`]:!!at},xe);return z.createElement(Ve.iz,Object.assign({className:wt},Ee))},ct=ie(11592),kt=ie(25399),it=re=>{var pe;const{className:xe,children:at,icon:Ee,title:je,danger:ot,extra:wt}=re,{prefixCls:dt,firstLevel:Zt,direction:lt,disableMenuItemTitleTooltip:rt,inlineCollapsed:xt}=z.useContext(Ae),Pt=Qt=>{const Rn=at==null?void 0:at[0],fn=z.createElement("span",{className:ge()(`${dt}-title-content`,{[`${dt}-title-content-with-extra`]:!!wt||wt===0})},at);return(!Ee||z.isValidElement(at)&&at.type==="span")&&at&&Qt&&Zt&&typeof Rn=="string"?z.createElement("div",{className:`${dt}-inline-collapsed-noicon`},Rn.charAt(0)):fn},{siderCollapsed:_t}=z.useContext(ve.D);let st=je;typeof je=="undefined"?st=Zt?at:"":je===!1&&(st="");const Gt={title:st};!_t&&!xt&&(Gt.title=null,Gt.open=!1);const Lt=(0,ct.Z)(at).length;let Nt=z.createElement(Ve.ck,Object.assign({},(0,$e.Z)(re,["title","icon","danger"]),{className:ge()({[`${dt}-item-danger`]:ot,[`${dt}-item-only-child`]:(Ee?Lt+1:Lt)===1},xe),title:typeof je=="string"?je:void 0}),(0,de.Tm)(Ee,{className:ge()(z.isValidElement(Ee)?(pe=Ee.props)===null||pe===void 0?void 0:pe.className:"",`${dt}-item-icon`)}),Pt(xt));return rt||(Nt=z.createElement(kt.Z,Object.assign({},Gt,{placement:lt==="rtl"?"left":"right",classNames:{root:`${dt}-inline-collapsed-tooltip`}}),Nt)),Nt},Je=ie(78857),_e=ie(36237),We=ie(17835),St=ie(63356),Xe=ie(34961),Ke=ie(46e3),ht=ie(34925),Ne=ie(16931),et=ie(51636),me=re=>{const{componentCls:pe,motionDurationSlow:xe,horizontalLineHeight:at,colorSplit:Ee,lineWidth:je,lineType:ot,itemPaddingInline:wt}=re;return{[`${pe}-horizontal`]:{lineHeight:at,border:0,borderBottom:`${(0,_e.unit)(je)} ${ot} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${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"}}}},De=re=>{let{componentCls:pe,menuArrowOffset:xe,calc:at}=re;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,_e.unit)(at(xe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,_e.unit)(xe)})`}}}}};const At=re=>Object.assign({},(0,St.oN)(re));var Se=(re,pe)=>{const{componentCls:xe,itemColor:at,itemSelectedColor:Ee,subMenuItemSelectedColor:je,groupTitleColor:ot,itemBg:wt,subMenuItemBg:dt,itemSelectedBg:Zt,activeBarHeight:lt,activeBarWidth:rt,activeBarBorderWidth:xt,motionDurationSlow:Pt,motionEaseInOut:_t,motionEaseOut:st,itemPaddingInline:Gt,motionDurationMid:Lt,itemHoverColor:Nt,lineType:Qt,colorSplit:Rn,itemDisabledColor:fn,dangerItemColor:Pe,dangerItemHoverColor:Qe,dangerItemSelectedColor:yt,dangerItemActiveBg:$t,dangerItemSelectedBg:cn,popupBg:vn,itemHoverBg:Un,itemActiveBg:$n,menuSubMenuBg:dn,horizontalItemSelectedColor:gn,horizontalItemSelectedBg:bn,horizontalItemBorderRadius:qn,horizontalItemHoverBg:Sn}=re;return{[`${xe}-${pe}, ${xe}-${pe} > ${xe}`]:{color:at,background:wt,[`&${xe}-root:focus-visible`]:Object.assign({},At(re)),[`${xe}-item`]:{"&-group-title, &-extra":{color:ot}},[`${xe}-submenu-selected > ${xe}-submenu-title`]:{color:je},[`${xe}-item, ${xe}-submenu-title`]:{color:at,[`&:not(${xe}-item-disabled):focus-visible`]:Object.assign({},At(re))},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{color:`${fn} !important`},[`${xe}-item:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{[`&:hover, > ${xe}-submenu-title:hover`]:{color:Nt}},[`&:not(${xe}-horizontal)`]:{[`${xe}-item:not(${xe}-item-selected)`]:{"&:hover":{backgroundColor:Un},"&:active":{backgroundColor:$n}},[`${xe}-submenu-title`]:{"&:hover":{backgroundColor:Un},"&:active":{backgroundColor:$n}}},[`${xe}-item-danger`]:{color:Pe,[`&${xe}-item:hover`]:{[`&:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{color:Qe}},[`&${xe}-item:active`]:{background:$t}},[`${xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${xe}-item-selected`]:{color:Ee,[`&${xe}-item-danger`]:{color:yt},"a, a:hover":{color:"inherit"}},[`& ${xe}-item-selected`]:{backgroundColor:Zt,[`&${xe}-item-danger`]:{backgroundColor:cn}},[`&${xe}-submenu > ${xe}`]:{backgroundColor:dn},[`&${xe}-popup > ${xe}`]:{backgroundColor:vn},[`&${xe}-submenu-popup > ${xe}`]:{backgroundColor:vn},[`&${xe}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${xe}-item, > ${xe}-submenu`]:{top:xt,marginTop:re.calc(xt).mul(-1).equal(),marginBottom:0,borderRadius:qn,"&::after":{position:"absolute",insetInline:Gt,bottom:0,borderBottom:`${(0,_e.unit)(lt)} solid transparent`,transition:`border-color ${Pt} ${_t}`,content:'""'},"&:hover, &-active, &-open":{background:Sn,"&::after":{borderBottomWidth:lt,borderBottomColor:gn}},"&-selected":{color:gn,backgroundColor:bn,"&:hover":{backgroundColor:bn},"&::after":{borderBottomWidth:lt,borderBottomColor:gn}}}}),[`&${xe}-root`]:{[`&${xe}-inline, &${xe}-vertical`]:{borderInlineEnd:`${(0,_e.unit)(xt)} ${Qt} ${Rn}`}},[`&${xe}-inline`]:{[`${xe}-sub${xe}-inline`]:{background:dt},[`${xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,_e.unit)(rt)} solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Lt} ${st}`,`opacity ${Lt} ${st}`].join(","),content:'""'},[`&${xe}-item-danger`]:{"&::after":{borderInlineEndColor:yt}}},[`${xe}-selected, ${xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Lt} ${_t}`,`opacity ${Lt} ${_t}`].join(",")}}}}}};const fe=re=>{const{componentCls:pe,itemHeight:xe,itemMarginInline:at,padding:Ee,menuArrowSize:je,marginXS:ot,itemMarginBlock:wt,itemWidth:dt,itemPaddingInline:Zt}=re,lt=re.calc(je).add(Ee).add(ot).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:xe,lineHeight:(0,_e.unit)(xe),paddingInline:Zt,overflow:"hidden",textOverflow:"ellipsis",marginInline:at,marginBlock:wt,width:dt},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:xe,lineHeight:(0,_e.unit)(xe)},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:lt}}};var Vt=re=>{const{componentCls:pe,iconCls:xe,itemHeight:at,colorTextLightSolid:Ee,dropdownWidth:je,controlHeightLG:ot,motionEaseOut:wt,paddingXL:dt,itemMarginInline:Zt,fontSizeLG:lt,motionDurationFast:rt,motionDurationSlow:xt,paddingXS:Pt,boxShadowSecondary:_t,collapsedWidth:st,collapsedIconSize:Gt}=re,Lt={height:at,lineHeight:(0,_e.unit)(at),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},fe(re))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},fe(re)),{boxShadow:_t})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:je,maxHeight:`calc(100vh - ${(0,_e.unit)(re.calc(ot).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 ${xt}`,`background ${xt}`,`padding ${rt} ${wt}`].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`]:Lt,[`& ${pe}-item-group-title`]:{paddingInlineStart:dt}},[`${pe}-item`]:Lt}},{[`${pe}-inline-collapsed`]:{width:st,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:lt,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,_e.unit)(re.calc(Gt).div(2).equal())} - ${(0,_e.unit)(Zt)})`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${xe}`]:{margin:0,fontSize:Gt,lineHeight:(0,_e.unit)(at),"+ 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:Ee}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},St.vS),{paddingInline:Pt})}}]};const Dt=re=>{const{componentCls:pe,motionDurationSlow:xe,motionDurationMid:at,motionEaseInOut:Ee,motionEaseOut:je,iconCls:ot,iconSize:wt,iconMarginInlineEnd:dt}=re;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) ${Ee}`].join(","),[`${pe}-item-icon, ${ot}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${at} ${je}`,`margin ${xe} ${Ee}`,`color ${xe}`].join(","),"+ span":{marginInlineStart:dt,opacity:1,transition:[`opacity ${xe} ${Ee}`,`margin ${xe}`,`color ${xe}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,St.Ro)()),[`&${pe}-item-only-child`]:{[`> ${ot}, > ${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"}}}},ze=re=>{const{componentCls:pe,motionDurationSlow:xe,motionEaseInOut:at,borderRadius:Ee,menuArrowSize:je,menuArrowOffset:ot}=re;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${xe} ${at}, opacity ${xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(je).mul(.6).equal(),height:re.calc(je).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${xe} ${at}`,`transform ${xe} ${at}`,`top ${xe} ${at}`,`color ${xe} ${at}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,_e.unit)(re.calc(ot).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,_e.unit)(ot)})`}}}}},ut=re=>{const{antCls:pe,componentCls:xe,fontSize:at,motionDurationSlow:Ee,motionDurationMid:je,motionEaseInOut:ot,paddingXS:wt,padding:dt,colorSplit:Zt,lineWidth:lt,zIndexPopup:rt,borderRadiusLG:xt,subMenuItemBorderRadius:Pt,menuArrowSize:_t,menuArrowOffset:st,lineType:Gt,groupTitleLineHeight:Lt,groupTitleFontSize:Nt}=re;return[{"":{[xe]:Object.assign(Object.assign({},(0,St.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,St.Wf)(re)),(0,St.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:at,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} 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:re.itemBorderRadius},[`${xe}-item-group-title`]:{padding:`${(0,_e.unit)(wt)} ${(0,_e.unit)(dt)}`,fontSize:Nt,lineHeight:Lt,transition:`all ${Ee}`},[`&-horizontal ${xe}-submenu`]:{transition:[`border-color ${Ee} ${ot}`,`background ${Ee} ${ot}`].join(",")},[`${xe}-submenu, ${xe}-submenu-inline`]:{transition:[`border-color ${Ee} ${ot}`,`background ${Ee} ${ot}`,`padding ${je} ${ot}`].join(",")},[`${xe}-submenu ${xe}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${ot}`,`padding ${Ee} ${ot}`].join(",")},[`${xe}-title-content`]:{transition:`color ${Ee}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${xe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Zt,borderStyle:Gt,borderWidth:0,borderTopWidth:lt,marginBlock:lt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Dt(re)),{[`${xe}-item-group`]:{[`${xe}-item-group-list`]:{margin:0,padding:0,[`${xe}-item, ${xe}-submenu-title`]:{paddingInline:`${(0,_e.unit)(re.calc(at).mul(2).equal())} ${(0,_e.unit)(dt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:rt,borderRadius:xt,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:xt},Dt(re)),ze(re)),{[`${xe}-item, ${xe}-submenu > ${xe}-submenu-title`]:{borderRadius:Pt},[`${xe}-submenu-title::after`]:{transition:`transform ${Ee} ${ot}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),ze(re)),{[`&-inline-collapsed ${xe}-submenu-arrow,
|
|
|
&-inline ${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,_e.unit)(st)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,_e.unit)(re.calc(st).mul(-1).equal())})`}},[`${xe}-submenu-open${xe}-submenu-inline > ${xe}-submenu-title > ${xe}-submenu-arrow`]:{transform:`translateY(${(0,_e.unit)(re.calc(_t).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,_e.unit)(re.calc(st).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,_e.unit)(st)})`}}})},{[`${pe}-layout-header`]:{[xe]:{lineHeight:"inherit"}}}]},gt=re=>{var pe,xe,at;const{colorPrimary:Ee,colorError:je,colorTextDisabled:ot,colorErrorBg:wt,colorText:dt,colorTextDescription:Zt,colorBgContainer:lt,colorFillAlter:rt,colorFillContent:xt,lineWidth:Pt,lineWidthBold:_t,controlItemBgActive:st,colorBgTextHover:Gt,controlHeightLG:Lt,lineHeight:Nt,colorBgElevated:Qt,marginXXS:Rn,padding:fn,fontSize:Pe,controlHeightSM:Qe,fontSizeLG:yt,colorTextLightSolid:$t,colorErrorHover:cn}=re,vn=(pe=re.activeBarWidth)!==null&&pe!==void 0?pe:0,Un=(xe=re.activeBarBorderWidth)!==null&&xe!==void 0?xe:Pt,$n=(at=re.itemMarginInline)!==null&&at!==void 0?at:re.marginXXS,dn=new We.FastColor($t).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:dt,itemColor:dt,colorItemTextHover:dt,itemHoverColor:dt,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:Zt,groupTitleColor:Zt,colorItemTextSelected:Ee,itemSelectedColor:Ee,subMenuItemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:lt,itemBg:lt,colorItemBgHover:Gt,itemHoverBg:Gt,colorItemBgActive:xt,itemActiveBg:st,colorSubItemBg:rt,subMenuItemBg:rt,colorItemBgSelected:st,itemSelectedBg:st,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:vn,colorActiveBarHeight:_t,activeBarHeight:_t,colorActiveBarBorderSize:Pt,activeBarBorderWidth:Un,colorItemTextDisabled:ot,itemDisabledColor:ot,colorDangerItemText:je,dangerItemColor:je,colorDangerItemTextHover:je,dangerItemHoverColor:je,colorDangerItemTextSelected:je,dangerItemSelectedColor:je,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:$n,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Lt,groupTitleLineHeight:Nt,collapsedWidth:Lt*2,popupBg:Qt,itemMarginBlock:Rn,itemPaddingInline:fn,horizontalLineHeight:`${Lt*1.15}px`,iconSize:Pe,iconMarginInlineEnd:Qe-Pe,collapsedIconSize:yt,groupTitleFontSize:Pe,darkItemDisabledColor:new We.FastColor($t).setA(.25).toRgbString(),darkItemColor:dn,darkDangerItemColor:je,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$t,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:je,darkItemHoverBg:"transparent",darkGroupTitleColor:dn,darkItemHoverColor:$t,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:je,itemWidth:vn?`calc(100% + ${Un}px)`:`calc(100% - ${$n*2}px)`}};var pn=function(re){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ne.I$)("Menu",Ee=>{const{colorBgElevated:je,controlHeightLG:ot,fontSize:wt,darkItemColor:dt,darkDangerItemColor:Zt,darkItemBg:lt,darkSubMenuItemBg:rt,darkItemSelectedColor:xt,darkItemSelectedBg:Pt,darkDangerItemSelectedBg:_t,darkItemHoverBg:st,darkGroupTitleColor:Gt,darkItemHoverColor:Lt,darkItemDisabledColor:Nt,darkDangerItemHoverColor:Qt,darkDangerItemSelectedColor:Rn,darkDangerItemActiveBg:fn,popupBg:Pe,darkPopupBg:Qe}=Ee,yt=Ee.calc(wt).div(7).mul(5).equal(),$t=(0,et.mergeToken)(Ee,{menuArrowSize:yt,menuHorizontalHeight:Ee.calc(ot).mul(1.15).equal(),menuArrowOffset:Ee.calc(yt).mul(.25).equal(),menuSubMenuBg:je,calc:Ee.calc,popupBg:Pe}),cn=(0,et.mergeToken)($t,{itemColor:dt,itemHoverColor:Lt,groupTitleColor:Gt,itemSelectedColor:xt,subMenuItemSelectedColor:xt,itemBg:lt,popupBg:Qe,subMenuItemBg:rt,itemActiveBg:"transparent",itemSelectedBg:Pt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:st,itemDisabledColor:Nt,dangerItemColor:Zt,dangerItemHoverColor:Qt,dangerItemSelectedColor:Rn,dangerItemActiveBg:fn,dangerItemSelectedBg:_t,menuSubMenuBg:rt,horizontalItemSelectedColor:xt,horizontalItemSelectedBg:Pt});return[ut($t),me($t),Vt($t),Se($t,"light"),Se(cn,"dark"),De($t),(0,Xe.Z)($t),(0,Ke.oN)($t,"slide-up"),(0,Ke.oN)($t,"slide-down"),(0,ht._y)($t,"zoom-big")]},gt,{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}})(re,pe)},Ft=ie(75030),tt=re=>{var pe;const{popupClassName:xe,icon:at,title:Ee,theme:je}=re,ot=z.useContext(Ae),{prefixCls:wt,inlineCollapsed:dt,theme:Zt}=ot,lt=(0,Ve.Xl)();let rt;if(!at)rt=dt&&!lt.length&&Ee&&typeof Ee=="string"?z.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Ee.charAt(0)):z.createElement("span",{className:`${wt}-title-content`},Ee);else{const _t=z.isValidElement(Ee)&&Ee.type==="span";rt=z.createElement(z.Fragment,null,(0,de.Tm)(at,{className:ge()(z.isValidElement(at)?(pe=at.props)===null||pe===void 0?void 0:pe.className:"",`${wt}-item-icon`)}),_t?Ee:z.createElement("span",{className:`${wt}-title-content`},Ee))}const xt=z.useMemo(()=>Object.assign(Object.assign({},ot),{firstLevel:!1}),[ot]),[Pt]=(0,Ft.Cn)("Menu");return z.createElement(Ae.Provider,{value:xt},z.createElement(Ve.Wd,Object.assign({},(0,$e.Z)(re,["icon"]),{title:rt,popupClassName:ge()(wt,xe,`${wt}-${je||Zt}`),popupStyle:Object.assign({zIndex:Pt},re.popupStyle)})))},Kt=function(re,pe){var xe={};for(var at in re)Object.prototype.hasOwnProperty.call(re,at)&&pe.indexOf(at)<0&&(xe[at]=re[at]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,at=Object.getOwnPropertySymbols(re);Ee<at.length;Ee++)pe.indexOf(at[Ee])<0&&Object.prototype.propertyIsEnumerable.call(re,at[Ee])&&(xe[at[Ee]]=re[at[Ee]]);return xe};function pt(re){return re===null||re===!1}const le={item:it,submenu:tt,divider:Be};var ee=(0,z.forwardRef)((re,pe)=>{var xe;const at=z.useContext(Je.Z),Ee=at||{},{getPrefixCls:je,getPopupContainer:ot,direction:wt,menu:dt}=z.useContext(Ze.E_),Zt=je(),{prefixCls:lt,className:rt,style:xt,theme:Pt="light",expandIcon:_t,_internalDisableMenuItemTitleTooltip:st,inlineCollapsed:Gt,siderCollapsed:Lt,rootClassName:Nt,mode:Qt,selectable:Rn,onClick:fn,overflowedIndicatorPopupClassName:Pe}=re,Qe=Kt(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),yt=(0,$e.Z)(Qe,["collapsedWidth"]);(xe=Ee.validator)===null||xe===void 0||xe.call(Ee,{mode:Qt});const $t=(0,ke.Z)(function(){var xn;fn==null||fn.apply(void 0,arguments),(xn=Ee.onClick)===null||xn===void 0||xn.call(Ee)}),cn=Ee.mode||Qt,vn=Rn!=null?Rn:Ee.selectable,Un=Gt!=null?Gt:Lt,$n={horizontal:{motionName:`${Zt}-slide-up`},inline:(0,Me.Z)(Zt),other:{motionName:`${Zt}-zoom-big`}},dn=je("menu",lt||Ee.prefixCls),gn=(0,be.Z)(dn),[bn,qn,Sn]=pn(dn,gn,!at),Fn=ge()(`${dn}-${Pt}`,dt==null?void 0:dt.className,rt),yn=z.useMemo(()=>{var xn,Vn;if(typeof _t=="function"||pt(_t))return _t||null;if(typeof Ee.expandIcon=="function"||pt(Ee.expandIcon))return Ee.expandIcon||null;if(typeof(dt==null?void 0:dt.expandIcon)=="function"||pt(dt==null?void 0:dt.expandIcon))return(dt==null?void 0:dt.expandIcon)||null;const ur=(xn=_t!=null?_t:Ee==null?void 0:Ee.expandIcon)!==null&&xn!==void 0?xn:dt==null?void 0:dt.expandIcon;return(0,de.Tm)(ur,{className:ge()(`${dn}-submenu-expand-icon`,z.isValidElement(ur)?(Vn=ur.props)===null||Vn===void 0?void 0:Vn.className:void 0)})},[_t,Ee==null?void 0:Ee.expandIcon,dt==null?void 0:dt.expandIcon,dn]),An=z.useMemo(()=>({prefixCls:dn,inlineCollapsed:Un||!1,direction:wt,firstLevel:!0,theme:Pt,mode:cn,disableMenuItemTitleTooltip:st}),[dn,Un,wt,st,Pt]);return bn(z.createElement(Je.Z.Provider,{value:null},z.createElement(Ae.Provider,{value:An},z.createElement(Ve.ZP,Object.assign({getPopupContainer:ot,overflowedIndicator:z.createElement(Le.Z,null),overflowedIndicatorPopupClassName:ge()(dn,`${dn}-${Pt}`,Pe),mode:cn,selectable:vn,onClick:$t},yt,{inlineCollapsed:Un,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),xt),className:Fn,prefixCls:dn,direction:wt,defaultMotions:$n,expandIcon:yn,ref:pe,rootClassName:ge()(Nt,qn,Ee.rootClassName,Sn,gn),_internalComponents:le})))))});const oe=(0,z.forwardRef)((re,pe)=>{const xe=(0,z.useRef)(null),at=z.useContext(ve.D);return(0,z.useImperativeHandle)(pe,()=>({menu:xe.current,focus:Ee=>{var je;(je=xe.current)===null||je===void 0||je.focus(Ee)}})),z.createElement(ee,Object.assign({ref:xe},re,at))});oe.Item=it,oe.SubMenu=tt,oe.Divider=Be,oe.ItemGroup=Ve.BW;var se=oe},82326:function(Yt,zt,ie){"use strict";var z=ie(59301),Ve=ie(92310),ve=ie.n(Ve),Le=ie(37463),ye=ie(2738),ge=ie(75030),ke=ie(86641),$e=ie(45915),Me=ie(82855),de=ie(48755),Ze=ie(38406),be=ie(2171),nt=ie(83397),Ae=ie(31756),Ie=ie(56553),Oe=ie(24971),Be=ie(70045),ct=ie(57700),kt=ie(1722),Ct=ie(90376),it=ie(68525),Je=ie(90005),_e=function(ht,Ne){var et={};for(var qe in ht)Object.prototype.hasOwnProperty.call(ht,qe)&&Ne.indexOf(qe)<0&&(et[qe]=ht[qe]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,qe=Object.getOwnPropertySymbols(ht);me<qe.length;me++)Ne.indexOf(qe[me])<0&&Object.prototype.propertyIsEnumerable.call(ht,qe[me])&&(et[qe[me]]=ht[qe[me]]);return et};const We="SECRET_COMBOBOX_MODE_DO_NOT_USE",St=(ht,Ne)=>{var et;const{prefixCls:qe,bordered:me,className:Ot,rootClassName:De,getPopupContainer:At,popupClassName:Xt,dropdownClassName:Se,listHeight:fe=256,placement:vt,listItemHeight:Vt,size:Dt,disabled:ze,notFoundContent:ut,status:gt,builtinPlacements:pn,dropdownMatchSelectWidth:Ft,popupMatchSelectWidth:en,direction:tt,style:Kt,allowClear:pt,variant:le,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:re}=ht,pe=_e(ht,["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:at,renderEmpty:Ee,direction:je,virtual:ot,popupMatchSelectWidth:wt,popupOverflow:dt}=z.useContext(de.E_),Zt=(0,de.dj)("select"),[,lt]=(0,ct.ZP)(),rt=Vt!=null?Vt:lt==null?void 0:lt.controlHeight,xt=at("select",qe),Pt=at(),_t=tt!=null?tt:je,{compactSize:st,compactItemClassnames:Gt}=(0,Be.ri)(xt,_t),[Lt,Nt]=(0,Oe.Z)("select",le,me),Qt=(0,nt.Z)(xt),[Rn,fn,Pe]=(0,Ct.Z)(xt,Qt),Qe=z.useMemo(()=>{const{mode:ir}=ht;if(ir!=="combobox")return ir===We?"combobox":ir},[ht.mode]),yt=Qe==="multiple"||Qe==="tags",$t=(0,Je.Z)(ht.suffixIcon,ht.showArrow),cn=(et=en!=null?en:Ft)!==null&&et!==void 0?et:wt,{status:vn,hasFeedback:Un,isFormItemInput:$n,feedbackIcon:dn}=z.useContext(Ie.aM),gn=(0,Me.F)(vn,gt);let bn;ut!==void 0?bn=ut:Qe==="combobox"?bn=null:bn=(Ee==null?void 0:Ee("Select"))||z.createElement(Ze.Z,{componentName:"Select"});const{suffixIcon:qn,itemIcon:Sn,removeIcon:Fn,clearIcon:yn}=(0,it.Z)(Object.assign(Object.assign({},pe),{multiple:yt,hasFeedback:Un,feedbackIcon:dn,showSuffixIcon:$t,prefixCls:xt,componentName:"Select"})),An=pt===!0?{clearIcon:yn}:pt,xn=(0,ye.Z)(pe,["suffixIcon","itemIcon"]),Vn=ve()(Xt||Se,{[`${xt}-dropdown-${_t}`]:_t==="rtl"},De,Pe,Qt,fn),ur=(0,Ae.Z)(ir=>{var Bt;return(Bt=Dt!=null?Dt:st)!==null&&Bt!==void 0?Bt:ir}),Tn=z.useContext(be.Z),Qn=ze!=null?ze:Tn,sr=ve()({[`${xt}-lg`]:ur==="large",[`${xt}-sm`]:ur==="small",[`${xt}-rtl`]:_t==="rtl",[`${xt}-${Lt}`]:Nt,[`${xt}-in-form-item`]:$n},(0,Me.Z)(xt,gn,Un),Gt,Zt.className,Ot,De,Pe,Qt,fn),gr=z.useMemo(()=>vt!==void 0?vt:_t==="rtl"?"bottomRight":"bottomLeft",[vt,_t]),[Cr]=(0,ge.Cn)("SelectLike",te==null?void 0:te.zIndex);return Rn(z.createElement(Le.ZP,Object.assign({ref:Ne,virtual:ot,showSearch:Zt.showSearch},xn,{style:Object.assign(Object.assign({},Zt.style),Kt),dropdownMatchSelectWidth:cn,transitionName:(0,ke.m)(Pt,"slide-up",ee),builtinPlacements:(0,kt.Z)(pn,dt),listHeight:fe,listItemHeight:rt,mode:Qe,prefixCls:xt,placement:gr,direction:_t,prefix:re,suffixIcon:qn,menuItemSelectedIcon:Sn,removeIcon:Fn,allowClear:An,notFoundContent:bn,className:sr,getPopupContainer:At||xe,dropdownClassName:Vn,disabled:Qn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Cr}),maxCount:yt?se:void 0,tagRender:yt?oe:void 0})))},Xe=z.forwardRef(St),Ke=(0,$e.Z)(Xe,"dropdownAlign");Xe.SECRET_COMBOBOX_MODE_DO_NOT_USE=We,Xe.Option=Le.Wx,Xe.OptGroup=Le.Xo,Xe._InternalPanelDoNotUseOrYouWillBeFired=Ke,zt.default=Xe},1722:function(Yt,zt){"use strict";const ie=Ve=>{const Le={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ve==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Le),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Le),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Le),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Le),{points:["br","tr"],offset:[0,-4]})}};function z(Ve,ve){return Ve||ie(ve)}zt.Z=z},90376:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return qe}});var z=ie(63356),Ve=ie(56119),ve=ie(16931),Le=ie(51636),ye=ie(46e3),ge=ie(93873);const ke=me=>{const{optionHeight:Ot,optionFontSize:De,optionLineHeight:At,optionPadding:Xt}=me;return{position:"relative",display:"block",minHeight:Ot,padding:Xt,color:me.colorText,fontWeight:"normal",fontSize:De,lineHeight:At,boxSizing:"border-box"}};var Me=me=>{const{antCls:Ot,componentCls:De}=me,At=`${De}-item`,Xt=`&${Ot}-slide-up-enter${Ot}-slide-up-enter-active`,Se=`&${Ot}-slide-up-appear${Ot}-slide-up-appear-active`,fe=`&${Ot}-slide-up-leave${Ot}-slide-up-leave-active`,vt=`${De}-dropdown-placement-`,Vt=`${At}-option-selected`;return[{[`${De}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(me)),{position:"absolute",top:-9999,zIndex:me.zIndexPopup,boxSizing:"border-box",padding:me.paddingXXS,overflow:"hidden",fontSize:me.fontSize,fontVariant:"initial",backgroundColor:me.colorBgElevated,borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,[`
|
|
|
${Xt}${vt}bottomLeft,
|
|
|
${Se}${vt}bottomLeft
|
|
|
`]:{animationName:ye.fJ},[`
|
|
|
${Xt}${vt}topLeft,
|
|
|
${Se}${vt}topLeft,
|
|
|
${Xt}${vt}topRight,
|
|
|
${Se}${vt}topRight
|
|
|
`]:{animationName:ye.Qt},[`${fe}${vt}bottomLeft`]:{animationName:ye.Uw},[`
|
|
|
${fe}${vt}topLeft,
|
|
|
${fe}${vt}topRight
|
|
|
`]:{animationName:ye.ly},"&-hidden":{display:"none"},[At]:Object.assign(Object.assign({},ke(me)),{cursor:"pointer",transition:`background ${me.motionDurationSlow} ease`,borderRadius:me.borderRadiusSM,"&-group":{color:me.colorTextDescription,fontSize:me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${At}-option-disabled)`]:{backgroundColor:me.optionActiveBg},[`&-selected:not(${At}-option-disabled)`]:{color:me.optionSelectedColor,fontWeight:me.optionSelectedFontWeight,backgroundColor:me.optionSelectedBg,[`${At}-option-state`]:{color:me.colorPrimary}},"&-disabled":{[`&${At}-option-selected`]:{backgroundColor:me.colorBgContainerDisabled},color:me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:me.calc(me.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ke(me)),{color:me.colorTextDisabled})}),[`${Vt}:has(+ ${Vt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Vt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ye.oN)(me,"slide-up"),(0,ye.oN)(me,"slide-down"),(0,ge.Fm)(me,"move-up"),(0,ge.Fm)(me,"move-down")]},de=ie(26743),Ze=ie(36237);function be(me,Ot){const{componentCls:De,inputPaddingHorizontalBase:At,borderRadius:Xt}=me,Se=me.calc(me.controlHeight).sub(me.calc(me.lineWidth).mul(2)).equal(),fe=Ot?`${De}-${Ot}`:"";return{[`${De}-single${fe}`]:{fontSize:me.fontSize,height:me.controlHeight,[`${De}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(me,!0)),{display:"flex",borderRadius:Xt,flex:"1 1 auto",[`${De}-selection-wrap:after`]:{lineHeight:(0,Ze.unit)(Se)},[`${De}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${De}-selection-item,
|
|
|
${De}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,Ze.unit)(Se),transition:`all ${me.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${De}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${De}-selection-item:empty:after`,`${De}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${De}-show-arrow ${De}-selection-item,
|
|
|
&${De}-show-arrow ${De}-selection-search,
|
|
|
&${De}-show-arrow ${De}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:me.showArrowPaddingInlineEnd},[`&${De}-open ${De}-selection-item`]:{color:me.colorTextPlaceholder},[`&:not(${De}-customize-input)`]:{[`${De}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ze.unit)(At)}`,[`${De}-selection-search-input`]:{height:Se,fontSize:me.fontSize},"&:after":{lineHeight:(0,Ze.unit)(Se)}}},[`&${De}-customize-input`]:{[`${De}-selector`]:{"&:after":{display:"none"},[`${De}-selection-search`]:{position:"static",width:"100%"},[`${De}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ze.unit)(At)}`,"&:after":{display:"none"}}}}}}}function nt(me){const{componentCls:Ot}=me,De=me.calc(me.controlPaddingHorizontalSM).sub(me.lineWidth).equal();return[be(me),be((0,Le.mergeToken)(me,{controlHeight:me.controlHeightSM,borderRadius:me.borderRadiusSM}),"sm"),{[`${Ot}-single${Ot}-sm`]:{[`&:not(${Ot}-customize-input)`]:{[`${Ot}-selector`]:{padding:`0 ${(0,Ze.unit)(De)}`},[`&${Ot}-show-arrow ${Ot}-selection-search`]:{insetInlineEnd:me.calc(De).add(me.calc(me.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Ot}-show-arrow ${Ot}-selection-item,
|
|
|
&${Ot}-show-arrow ${Ot}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:me.calc(me.fontSize).mul(1.5).equal()}}}},be((0,Le.mergeToken)(me,{controlHeight:me.singleItemHeightLG,fontSize:me.fontSizeLG,borderRadius:me.borderRadiusLG}),"lg")]}const Ae=me=>{const{fontSize:Ot,lineHeight:De,lineWidth:At,controlHeight:Xt,controlHeightSM:Se,controlHeightLG:fe,paddingXXS:vt,controlPaddingHorizontal:Vt,zIndexPopupBase:Dt,colorText:ze,fontWeightStrong:ut,controlItemBgActive:gt,controlItemBgHover:pn,colorBgContainer:Ft,colorFillSecondary:en,colorBgContainerDisabled:tt,colorTextDisabled:Kt,colorPrimaryHover:pt,colorPrimary:le,controlOutline:te}=me,ee=vt*2,oe=At*2,se=Math.min(Xt-ee,Xt-oe),re=Math.min(Se-ee,Se-oe),pe=Math.min(fe-ee,fe-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(vt/2),zIndexPopup:Dt+50,optionSelectedColor:ze,optionSelectedFontWeight:ut,optionSelectedBg:gt,optionActiveBg:pn,optionPadding:`${(Xt-Ot*De)/2}px ${Vt}px`,optionFontSize:Ot,optionLineHeight:De,optionHeight:Xt,selectorBg:Ft,clearBg:Ft,singleItemHeightLG:fe,multipleItemBg:en,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:re,multipleItemHeightLG:pe,multipleSelectorBgDisabled:tt,multipleItemColorDisabled:Kt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(me.fontSize*1.25),hoverBorderColor:pt,activeBorderColor:le,activeOutlineColor:te,selectAffixPadding:vt}},Ie=(me,Ot)=>{const{componentCls:De,antCls:At,controlOutlineWidth:Xt}=me;return{[`&:not(${De}-customize-input) ${De}-selector`]:{border:`${(0,Ze.unit)(me.lineWidth)} ${me.lineType} ${Ot.borderColor}`,background:me.selectorBg},[`&:not(${De}-disabled):not(${De}-customize-input):not(${At}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{borderColor:Ot.hoverBorderHover},[`${De}-focused& ${De}-selector`]:{borderColor:Ot.activeBorderColor,boxShadow:`0 0 0 ${(0,Ze.unit)(Xt)} ${Ot.activeOutlineColor}`,outline:0},[`${De}-prefix`]:{color:Ot.color}}}},Oe=(me,Ot)=>({[`&${me.componentCls}-status-${Ot.status}`]:Object.assign({},Ie(me,Ot))}),Be=me=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ie(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),Oe(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),Oe(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ze.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})}),ct=(me,Ot)=>{const{componentCls:De,antCls:At}=me;return{[`&:not(${De}-customize-input) ${De}-selector`]:{background:Ot.bg,border:`${(0,Ze.unit)(me.lineWidth)} ${me.lineType} transparent`,color:Ot.color},[`&:not(${De}-disabled):not(${De}-customize-input):not(${At}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{background:Ot.hoverBg},[`${De}-focused& ${De}-selector`]:{background:me.selectorBg,borderColor:Ot.activeBorderColor,outline:0}}}},kt=(me,Ot)=>({[`&${me.componentCls}-status-${Ot.status}`]:Object.assign({},ct(me,Ot))}),Ct=me=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ct(me,{bg:me.colorFillTertiary,hoverBg:me.colorFillSecondary,activeBorderColor:me.activeBorderColor,color:me.colorText})),kt(me,{status:"error",bg:me.colorErrorBg,hoverBg:me.colorErrorBgHover,activeBorderColor:me.colorError,color:me.colorError})),kt(me,{status:"warning",bg:me.colorWarningBg,hoverBg:me.colorWarningBgHover,activeBorderColor:me.colorWarning,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{borderColor:me.colorBorder,background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.colorBgContainer,border:`${(0,Ze.unit)(me.lineWidth)} ${me.lineType} ${me.colorSplit}`}})}),it=me=>({"&-borderless":{[`${me.componentCls}-selector`]:{background:"transparent",border:`${(0,Ze.unit)(me.lineWidth)} ${me.lineType} transparent`},[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ze.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`},[`&${me.componentCls}-status-error`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorError}},[`&${me.componentCls}-status-warning`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorWarning}}}}),Je=(me,Ot)=>{const{componentCls:De,antCls:At}=me;return{[`&:not(${De}-customize-input) ${De}-selector`]:{borderWidth:`0 0 ${(0,Ze.unit)(me.lineWidth)} 0`,borderStyle:`none none ${me.lineType} none`,borderColor:Ot.borderColor,background:me.selectorBg,borderRadius:0},[`&:not(${De}-disabled):not(${De}-customize-input):not(${At}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{borderColor:Ot.hoverBorderHover},[`${De}-focused& ${De}-selector`]:{borderColor:Ot.activeBorderColor,outline:0},[`${De}-prefix`]:{color:Ot.color}}}},_e=(me,Ot)=>({[`&${me.componentCls}-status-${Ot.status}`]:Object.assign({},Je(me,Ot))}),We=me=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Je(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),_e(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),_e(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ze.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})});var Xe=me=>({[me.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Be(me)),Ct(me)),it(me)),We(me))});const Ke=me=>{const{componentCls:Ot}=me;return{position:"relative",transition:`all ${me.motionDurationMid} ${me.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ot}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ot}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ht=me=>{const{componentCls:Ot}=me;return{[`${Ot}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Ne=me=>{const{antCls:Ot,componentCls:De,inputPaddingHorizontalBase:At,iconCls:Xt}=me;return{[De]:Object.assign(Object.assign({},(0,z.Wf)(me)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${De}-customize-input) ${De}-selector`]:Object.assign(Object.assign({},Ke(me)),ht(me)),[`${De}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${Ot}-typography`]:{display:"inline"}}),[`${De}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:me.colorTextPlaceholder,pointerEvents:"none"}),[`${De}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:At,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${me.motionDurationSlow} ease`,[Xt]:{verticalAlign:"top",transition:`transform ${me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${De}-suffix)`]:{pointerEvents:"auto"}},[`${De}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${De}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${De}-prefix`]:{flex:"none",marginInlineEnd:me.selectAffixPadding},[`${De}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:At,zIndex:1,display:"inline-block",width:me.fontSizeIcon,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${me.motionDurationMid} ease, opacity ${me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:me.colorTextTertiary}},[`&:hover ${De}-clear`]:{opacity:1,background:me.colorBgBase,borderRadius:"50%"}}),[`${De}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${De}-has-feedback`]:{[`${De}-clear`]:{insetInlineEnd:me.calc(At).add(me.fontSize).add(me.paddingXS).equal()}}}}}},et=me=>{const{componentCls:Ot}=me;return[{[Ot]:{[`&${Ot}-in-form-item`]:{width:"100%"}}},Ne(me),nt(me),(0,de.ZP)(me),Me(me),{[`${Ot}-rtl`]:{direction:"rtl"}},(0,Ve.c)(me,{borderElCls:`${Ot}-selector`,focusElCls:`${Ot}-focused`})]};var qe=(0,ve.I$)("Select",(me,Ot)=>{let{rootPrefixCls:De}=Ot;const At=(0,Le.mergeToken)(me,{rootPrefixCls:De,inputPaddingHorizontalBase:me.calc(me.paddingSM).sub(1).equal(),multipleSelectItemHeight:me.multipleItemHeight,selectHeight:me.controlHeight});return[et(At),Xe(At)]},Ae,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Yt,zt,ie){"use strict";ie.d(zt,{_z:function(){return ge},gp:function(){return Le}});var z=ie(36237),Ve=ie(63356),ve=ie(51636);const Le=de=>{const{multipleSelectItemHeight:Ze,paddingXXS:be,lineWidth:nt,INTERNAL_FIXED_ITEM_MARGIN:Ae}=de,Ie=de.max(de.calc(be).sub(nt).equal(),0),Oe=de.max(de.calc(Ie).sub(Ae).equal(),0);return{basePadding:Ie,containerPadding:Oe,itemHeight:(0,z.unit)(Ze),itemLineHeight:(0,z.unit)(de.calc(Ze).sub(de.calc(de.lineWidth).mul(2)).equal())}},ye=de=>{const{multipleSelectItemHeight:Ze,selectHeight:be,lineWidth:nt}=de;return de.calc(be).sub(Ze).div(2).sub(nt).equal()},ge=de=>{const{componentCls:Ze,iconCls:be,borderRadiusSM:nt,motionDurationSlow:Ae,paddingXS:Ie,multipleItemColorDisabled:Oe,multipleItemBorderColorDisabled:Be,colorIcon:ct,colorIconHover:kt,INTERNAL_FIXED_ITEM_MARGIN:Ct}=de;return{[`${Ze}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Ze}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ct,borderRadius:nt,cursor:"default",transition:`font-size ${Ae}, line-height ${Ae}, height ${Ae}`,marginInlineEnd:de.calc(Ct).mul(2).equal(),paddingInlineStart:Ie,paddingInlineEnd:de.calc(Ie).div(2).equal(),[`${Ze}-disabled&`]:{color:Oe,borderColor:Be,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:de.calc(Ie).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ve.Ro)()),{display:"inline-flex",alignItems:"center",color:ct,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:kt}})}}}},ke=(de,Ze)=>{const{componentCls:be,INTERNAL_FIXED_ITEM_MARGIN:nt}=de,Ae=`${be}-selection-overflow`,Ie=de.multipleSelectItemHeight,Oe=ye(de),Be=Ze?`${be}-${Ze}`:"",ct=Le(de);return{[`${be}-multiple${Be}`]:Object.assign(Object.assign({},ge(de)),{[`${be}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ct.basePadding,paddingBlock:ct.containerPadding,borderRadius:de.borderRadius,[`${be}-disabled&`]:{background:de.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(nt)} 0`,lineHeight:(0,z.unit)(Ie),visibility:"hidden",content:'"\\a0"'}},[`${be}-selection-item`]:{height:ct.itemHeight,lineHeight:(0,z.unit)(ct.itemLineHeight)},[`${be}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Ie),marginBlock:nt}},[`${be}-prefix`]:{marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(ct.basePadding).equal()},[`${Ae}-item + ${Ae}-item,
|
|
|
${be}-prefix + ${be}-selection-wrap
|
|
|
`]:{[`${be}-selection-search`]:{marginInlineStart:0},[`${be}-selection-placeholder`]:{insetInlineStart:0}},[`${Ae}-item-suffix`]:{minHeight:ct.itemHeight,marginBlock:nt},[`${be}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(Oe).equal(),"\n &-input,\n &-mirror\n ":{height:Ie,fontFamily:de.fontFamily,lineHeight:(0,z.unit)(Ie),transition:`all ${de.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${be}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(ct.basePadding).equal(),insetInlineEnd:de.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${de.motionDurationSlow}`}})}};function $e(de,Ze){const{componentCls:be}=de,nt=Ze?`${be}-${Ze}`:"",Ae={[`${be}-multiple${nt}`]:{fontSize:de.fontSize,[`${be}-selector`]:{[`${be}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${be}-show-arrow ${be}-selector,
|
|
|
&${be}-allow-clear ${be}-selector
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSizeIcon).add(de.controlPaddingHorizontal).equal()}}};return[ke(de,Ze),Ae]}const Me=de=>{const{componentCls:Ze}=de,be=(0,ve.mergeToken)(de,{selectHeight:de.controlHeightSM,multipleSelectItemHeight:de.multipleItemHeightSM,borderRadius:de.borderRadiusSM,borderRadiusSM:de.borderRadiusXS}),nt=(0,ve.mergeToken)(de,{fontSize:de.fontSizeLG,selectHeight:de.controlHeightLG,multipleSelectItemHeight:de.multipleItemHeightLG,borderRadius:de.borderRadiusLG,borderRadiusSM:de.borderRadius});return[$e(de),$e(be,"sm"),{[`${Ze}-multiple${Ze}-sm`]:{[`${Ze}-selection-placeholder`]:{insetInline:de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal()},[`${Ze}-selection-search`]:{marginInlineStart:2}}},$e(nt,"lg")]};zt.ZP=Me},68525:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});var z=ie(59301),Ve=ie(40001),ve=ie(19248),Le=ie(99267),ye=ie(84105),ge=ie(58617),ke=ie(47472);function $e(Me){let{suffixIcon:de,clearIcon:Ze,menuItemSelectedIcon:be,removeIcon:nt,loading:Ae,multiple:Ie,hasFeedback:Oe,prefixCls:Be,showSuffixIcon:ct,feedbackIcon:kt,showArrow:Ct,componentName:it}=Me;const Je=Ze!=null?Ze:z.createElement(ve.Z,null),_e=Ke=>de===null&&!Oe&&!Ct?null:z.createElement(z.Fragment,null,ct!==!1&&Ke,Oe&&kt);let We=null;if(de!==void 0)We=_e(de);else if(Ae)We=_e(z.createElement(ge.Z,{spin:!0}));else{const Ke=`${Be}-suffix`;We=ht=>{let{open:Ne,showSearch:et}=ht;return _e(Ne&&et?z.createElement(ke.Z,{className:Ke}):z.createElement(ye.Z,{className:Ke}))}}let St=null;be!==void 0?St=be:Ie?St=z.createElement(Ve.Z,null):St=null;let Xe=null;return nt!==void 0?Xe=nt:Xe=z.createElement(Le.Z,null),{clearIcon:Je,suffixIcon:We,itemIcon:St,removeIcon:Xe}}},90005:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return z}});function z(Ve,ve){return ve!==void 0?ve:Ve!==null}},58755:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Ot}});var z=ie(59301),Ve=ie(58617),ve=ie(92310),Le=ie.n(ve),ye=ie(60499),ge=ie(18642),ke=ie(72190),$e=ie(42244),Me=ie(18929),de=ie(10228),Ze=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],be=z.forwardRef(function(De,At){var Xt,Se=De.prefixCls,fe=Se===void 0?"rc-switch":Se,vt=De.className,Vt=De.checked,Dt=De.defaultChecked,ze=De.disabled,ut=De.loadingIcon,gt=De.checkedChildren,pn=De.unCheckedChildren,Ft=De.onClick,en=De.onChange,tt=De.onKeyDown,Kt=(0,$e.Z)(De,Ze),pt=(0,Me.Z)(!1,{value:Vt,defaultValue:Dt}),le=(0,ke.Z)(pt,2),te=le[0],ee=le[1];function oe(xe,at){var Ee=te;return ze||(Ee=xe,ee(Ee),en==null||en(Ee,at)),Ee}function se(xe){xe.which===de.Z.LEFT?oe(!1,xe):xe.which===de.Z.RIGHT&&oe(!0,xe),tt==null||tt(xe)}function re(xe){var at=oe(!te,xe);Ft==null||Ft(at,xe)}var pe=Le()(fe,vt,(Xt={},(0,ge.Z)(Xt,"".concat(fe,"-checked"),te),(0,ge.Z)(Xt,"".concat(fe,"-disabled"),ze),Xt));return z.createElement("button",(0,ye.Z)({},Kt,{type:"button",role:"switch","aria-checked":te,disabled:ze,className:pe,ref:At,onKeyDown:se,onClick:re}),ut,z.createElement("span",{className:"".concat(fe,"-inner")},z.createElement("span",{className:"".concat(fe,"-inner-checked")},gt),z.createElement("span",{className:"".concat(fe,"-inner-unchecked")},pn)))});be.displayName="Switch";var nt=be,Ae=ie(12919),Ie=ie(48755),Oe=ie(2171),Be=ie(31756),ct=ie(36237),kt=ie(17835),Ct=ie(63356),it=ie(16931),Je=ie(51636);const _e=De=>{const{componentCls:At,trackHeightSM:Xt,trackPadding:Se,trackMinWidthSM:fe,innerMinMarginSM:vt,innerMaxMarginSM:Vt,handleSizeSM:Dt,calc:ze}=De,ut=`${At}-inner`,gt=(0,ct.unit)(ze(Dt).add(ze(Se).mul(2)).equal()),pn=(0,ct.unit)(ze(Vt).mul(2).equal());return{[At]:{[`&${At}-small`]:{minWidth:fe,height:Xt,lineHeight:(0,ct.unit)(Xt),[`${At}-inner`]:{paddingInlineStart:Vt,paddingInlineEnd:vt,[`${ut}-checked, ${ut}-unchecked`]:{minHeight:Xt},[`${ut}-checked`]:{marginInlineStart:`calc(-100% + ${gt} - ${pn})`,marginInlineEnd:`calc(100% - ${gt} + ${pn})`},[`${ut}-unchecked`]:{marginTop:ze(Xt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${At}-handle`]:{width:Dt,height:Dt},[`${At}-loading-icon`]:{top:ze(ze(Dt).sub(De.switchLoadingIconSize)).div(2).equal(),fontSize:De.switchLoadingIconSize},[`&${At}-checked`]:{[`${At}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:Vt,[`${ut}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ut}-unchecked`]:{marginInlineStart:`calc(100% - ${gt} + ${pn})`,marginInlineEnd:`calc(-100% + ${gt} - ${pn})`}},[`${At}-handle`]:{insetInlineStart:`calc(100% - ${(0,ct.unit)(ze(Dt).add(Se).equal())})`}},[`&:not(${At}-disabled):active`]:{[`&:not(${At}-checked) ${ut}`]:{[`${ut}-unchecked`]:{marginInlineStart:ze(De.marginXXS).div(2).equal(),marginInlineEnd:ze(De.marginXXS).mul(-1).div(2).equal()}},[`&${At}-checked ${ut}`]:{[`${ut}-checked`]:{marginInlineStart:ze(De.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ze(De.marginXXS).div(2).equal()}}}}}}},We=De=>{const{componentCls:At,handleSize:Xt,calc:Se}=De;return{[At]:{[`${At}-loading-icon${De.iconCls}`]:{position:"relative",top:Se(Se(Xt).sub(De.fontSize)).div(2).equal(),color:De.switchLoadingIconColor,verticalAlign:"top"},[`&${At}-checked ${At}-loading-icon`]:{color:De.switchColor}}}},St=De=>{const{componentCls:At,trackPadding:Xt,handleBg:Se,handleShadow:fe,handleSize:vt,calc:Vt}=De,Dt=`${At}-handle`;return{[At]:{[Dt]:{position:"absolute",top:Xt,insetInlineStart:Xt,width:vt,height:vt,transition:`all ${De.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Se,borderRadius:Vt(vt).div(2).equal(),boxShadow:fe,transition:`all ${De.switchDuration} ease-in-out`,content:'""'}},[`&${At}-checked ${Dt}`]:{insetInlineStart:`calc(100% - ${(0,ct.unit)(Vt(vt).add(Xt).equal())})`},[`&:not(${At}-disabled):active`]:{[`${Dt}::before`]:{insetInlineEnd:De.switchHandleActiveInset,insetInlineStart:0},[`&${At}-checked ${Dt}::before`]:{insetInlineEnd:0,insetInlineStart:De.switchHandleActiveInset}}}}},Xe=De=>{const{componentCls:At,trackHeight:Xt,trackPadding:Se,innerMinMargin:fe,innerMaxMargin:vt,handleSize:Vt,calc:Dt}=De,ze=`${At}-inner`,ut=(0,ct.unit)(Dt(Vt).add(Dt(Se).mul(2)).equal()),gt=(0,ct.unit)(Dt(vt).mul(2).equal());return{[At]:{[ze]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vt,paddingInlineEnd:fe,transition:`padding-inline-start ${De.switchDuration} ease-in-out, padding-inline-end ${De.switchDuration} ease-in-out`,[`${ze}-checked, ${ze}-unchecked`]:{display:"block",color:De.colorTextLightSolid,fontSize:De.fontSizeSM,transition:`margin-inline-start ${De.switchDuration} ease-in-out, margin-inline-end ${De.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Xt},[`${ze}-checked`]:{marginInlineStart:`calc(-100% + ${ut} - ${gt})`,marginInlineEnd:`calc(100% - ${ut} + ${gt})`},[`${ze}-unchecked`]:{marginTop:Dt(Xt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${At}-checked ${ze}`]:{paddingInlineStart:fe,paddingInlineEnd:vt,[`${ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ze}-unchecked`]:{marginInlineStart:`calc(100% - ${ut} + ${gt})`,marginInlineEnd:`calc(-100% + ${ut} - ${gt})`}},[`&:not(${At}-disabled):active`]:{[`&:not(${At}-checked) ${ze}`]:{[`${ze}-unchecked`]:{marginInlineStart:Dt(Se).mul(2).equal(),marginInlineEnd:Dt(Se).mul(-1).mul(2).equal()}},[`&${At}-checked ${ze}`]:{[`${ze}-checked`]:{marginInlineStart:Dt(Se).mul(-1).mul(2).equal(),marginInlineEnd:Dt(Se).mul(2).equal()}}}}}},Ke=De=>{const{componentCls:At,trackHeight:Xt,trackMinWidth:Se}=De;return{[At]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(De)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Se,height:Xt,lineHeight:(0,ct.unit)(Xt),verticalAlign:"middle",background:De.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${De.motionDurationMid}`,userSelect:"none",[`&:hover:not(${At}-disabled)`]:{background:De.colorTextTertiary}}),(0,Ct.Qy)(De)),{[`&${At}-checked`]:{background:De.switchColor,[`&:hover:not(${At}-disabled)`]:{background:De.colorPrimaryHover}},[`&${At}-loading, &${At}-disabled`]:{cursor:"not-allowed",opacity:De.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${At}-rtl`]:{direction:"rtl"}})}},ht=De=>{const{fontSize:At,lineHeight:Xt,controlHeight:Se,colorWhite:fe}=De,vt=At*Xt,Vt=Se/2,Dt=2,ze=vt-Dt*2,ut=Vt-Dt*2;return{trackHeight:vt,trackHeightSM:Vt,trackMinWidth:ze*2+Dt*4,trackMinWidthSM:ut*2+Dt*2,trackPadding:Dt,handleBg:fe,handleSize:ze,handleSizeSM:ut,handleShadow:`0 2px 4px 0 ${new kt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ze/2,innerMaxMargin:ze+Dt+Dt*2,innerMinMarginSM:ut/2,innerMaxMarginSM:ut+Dt+Dt*2}};var Ne=(0,it.I$)("Switch",De=>{const At=(0,Je.mergeToken)(De,{switchDuration:De.motionDurationMid,switchColor:De.colorPrimary,switchDisabledOpacity:De.opacityLoading,switchLoadingIconSize:De.calc(De.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${De.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ke(At),Xe(At),St(At),We(At),_e(At)]},ht),et=function(De,At){var Xt={};for(var Se in De)Object.prototype.hasOwnProperty.call(De,Se)&&At.indexOf(Se)<0&&(Xt[Se]=De[Se]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Se=Object.getOwnPropertySymbols(De);fe<Se.length;fe++)At.indexOf(Se[fe])<0&&Object.prototype.propertyIsEnumerable.call(De,Se[fe])&&(Xt[Se[fe]]=De[Se[fe]]);return Xt};const me=z.forwardRef((De,At)=>{const{prefixCls:Xt,size:Se,disabled:fe,loading:vt,className:Vt,rootClassName:Dt,style:ze,checked:ut,value:gt,defaultChecked:pn,defaultValue:Ft,onChange:en}=De,tt=et(De,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Kt,pt]=(0,Me.Z)(!1,{value:ut!=null?ut:gt,defaultValue:pn!=null?pn:Ft}),{getPrefixCls:le,direction:te,switch:ee}=z.useContext(Ie.E_),oe=z.useContext(Oe.Z),se=(fe!=null?fe:oe)||vt,re=le("switch",Xt),pe=z.createElement("div",{className:`${re}-handle`},vt&&z.createElement(Ve.Z,{className:`${re}-loading-icon`})),[xe,at,Ee]=Ne(re),je=(0,Be.Z)(Se),ot=Le()(ee==null?void 0:ee.className,{[`${re}-small`]:je==="small",[`${re}-loading`]:vt,[`${re}-rtl`]:te==="rtl"},Vt,Dt,at,Ee),wt=Object.assign(Object.assign({},ee==null?void 0:ee.style),ze),dt=function(){pt(arguments.length<=0?void 0:arguments[0]),en==null||en.apply(void 0,arguments)};return xe(z.createElement(Ae.Z,{component:"Switch"},z.createElement(nt,Object.assign({},tt,{checked:Kt,onChange:dt,prefixCls:re,className:ot,style:wt,disabled:se,ref:At,loadingIcon:pe}))))});me.__ANT_SWITCH=!0;var Ot=me},99498:function(Yt,zt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function($e,Me,de){var Ze=de&&de!=z.Init;if(Me&&!Ze)$e.on("blur",ye),$e.on("change",ge),$e.on("swapDoc",ge),z.on($e.getInputField(),"compositionupdate",$e.state.placeholderCompose=function(){Le($e)}),ge($e);else if(!Me&&Ze){$e.off("blur",ye),$e.off("change",ge),$e.off("swapDoc",ge),z.off($e.getInputField(),"compositionupdate",$e.state.placeholderCompose),Ve($e);var be=$e.getWrapperElement();be.className=be.className.replace(" CodeMirror-empty","")}Me&&!$e.hasFocus()&&ye($e)});function Ve($e){$e.state.placeholder&&($e.state.placeholder.parentNode.removeChild($e.state.placeholder),$e.state.placeholder=null)}function ve($e){Ve($e);var Me=$e.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=$e.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var de=$e.getOption("placeholder");typeof de=="string"&&(de=document.createTextNode(de)),Me.appendChild(de),$e.display.lineSpace.insertBefore(Me,$e.display.lineSpace.firstChild)}function Le($e){setTimeout(function(){var Me=!1,de=$e.getInputField();de.nodeName=="TEXTAREA"?Me=!de.value:$e.lineCount()==1&&(Me=!/[^\u200b]/.test(de.querySelector(".CodeMirror-line").textContent)),Me?ve($e):Ve($e)},20)}function ye($e){ke($e)&&ve($e)}function ge($e){var Me=$e.getWrapperElement(),de=ke($e);Me.className=Me.className.replace(" CodeMirror-empty","")+(de?" CodeMirror-empty":""),de?ve($e):Ve($e)}function ke($e){return $e.lineCount()===1&&$e.getLine(0)===""}})},25717:function(Yt,zt,ie){(function(z){z(ie(89780))})(function(z){var Ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Ie,Oe,Be){Be&&Be!=z.Init&&(Ie.removeKeyMap(ye),Ie.state.closeBrackets=null),Oe&&(ge(Le(Oe,"pairs")),Ie.state.closeBrackets=Oe,Ie.addKeyMap(ye))});function Le(Ie,Oe){return Oe=="pairs"&&typeof Ie=="string"?Ie:typeof Ie=="object"&&Ie[Oe]!=null?Ie[Oe]:Ve[Oe]}var ye={Backspace:Me,Enter:de};function ge(Ie){for(var Oe=0;Oe<Ie.length;Oe++){var Be=Ie.charAt(Oe),ct="'"+Be+"'";ye[ct]||(ye[ct]=ke(Be))}}ge(Ve.pairs+"`");function ke(Ie){return function(Oe){return be(Oe,Ie)}}function $e(Ie){var Oe=Ie.state.closeBrackets;if(!Oe||Oe.override)return Oe;var Be=Ie.getModeAt(Ie.getCursor());return Be.closeBrackets||Oe}function Me(Ie){var Oe=$e(Ie);if(!Oe||Ie.getOption("disableInput"))return z.Pass;for(var Be=Le(Oe,"pairs"),ct=Ie.listSelections(),kt=0;kt<ct.length;kt++){if(!ct[kt].empty())return z.Pass;var Ct=nt(Ie,ct[kt].head);if(!Ct||Be.indexOf(Ct)%2!=0)return z.Pass}for(var kt=ct.length-1;kt>=0;kt--){var it=ct[kt].head;Ie.replaceRange("",ve(it.line,it.ch-1),ve(it.line,it.ch+1),"+delete")}}function de(Ie){var Oe=$e(Ie),Be=Oe&&Le(Oe,"explode");if(!Be||Ie.getOption("disableInput"))return z.Pass;for(var ct=Ie.listSelections(),kt=0;kt<ct.length;kt++){if(!ct[kt].empty())return z.Pass;var Ct=nt(Ie,ct[kt].head);if(!Ct||Be.indexOf(Ct)%2!=0)return z.Pass}Ie.operation(function(){var it=Ie.lineSeparator()||`
|
|
|
`;Ie.replaceSelection(it+it,null),Ie.execCommand("goCharLeft"),ct=Ie.listSelections();for(var Je=0;Je<ct.length;Je++){var _e=ct[Je].head.line;Ie.indentLine(_e,null,!0),Ie.indentLine(_e+1,null,!0)}})}function Ze(Ie){var Oe=z.cmpPos(Ie.anchor,Ie.head)>0;return{anchor:new ve(Ie.anchor.line,Ie.anchor.ch+(Oe?-1:1)),head:new ve(Ie.head.line,Ie.head.ch+(Oe?1:-1))}}function be(Ie,Oe){var Be=$e(Ie);if(!Be||Ie.getOption("disableInput"))return z.Pass;var ct=Le(Be,"pairs"),kt=ct.indexOf(Oe);if(kt==-1)return z.Pass;for(var Ct=Le(Be,"closeBefore"),it=Le(Be,"triples"),Je=ct.charAt(kt+1)==Oe,_e=Ie.listSelections(),We=kt%2==0,St,Xe=0;Xe<_e.length;Xe++){var Ke=_e[Xe],ht=Ke.head,Ne,et=Ie.getRange(ht,ve(ht.line,ht.ch+1));if(We&&!Ke.empty())Ne="surround";else if((Je||!We)&&et==Oe)Je&&Ae(Ie,ht)?Ne="both":it.indexOf(Oe)>=0&&Ie.getRange(ht,ve(ht.line,ht.ch+3))==Oe+Oe+Oe?Ne="skipThree":Ne="skip";else if(Je&&ht.ch>1&&it.indexOf(Oe)>=0&&Ie.getRange(ve(ht.line,ht.ch-2),ht)==Oe+Oe){if(ht.ch>2&&/\bstring/.test(Ie.getTokenTypeAt(ve(ht.line,ht.ch-2))))return z.Pass;Ne="addFour"}else if(Je){var qe=ht.ch==0?" ":Ie.getRange(ve(ht.line,ht.ch-1),ht);if(!z.isWordChar(et)&&qe!=Oe&&!z.isWordChar(qe))Ne="both";else return z.Pass}else if(We&&(et.length===0||/\s/.test(et)||Ct.indexOf(et)>-1))Ne="both";else return z.Pass;if(!St)St=Ne;else if(St!=Ne)return z.Pass}var me=kt%2?ct.charAt(kt-1):Oe,Ot=kt%2?Oe:ct.charAt(kt+1);Ie.operation(function(){if(St=="skip")Ie.execCommand("goCharRight");else if(St=="skipThree")for(var De=0;De<3;De++)Ie.execCommand("goCharRight");else if(St=="surround"){for(var At=Ie.getSelections(),De=0;De<At.length;De++)At[De]=me+At[De]+Ot;Ie.replaceSelections(At,"around"),At=Ie.listSelections().slice();for(var De=0;De<At.length;De++)At[De]=Ze(At[De]);Ie.setSelections(At)}else St=="both"?(Ie.replaceSelection(me+Ot,null),Ie.triggerElectric(me+Ot),Ie.execCommand("goCharLeft")):St=="addFour"&&(Ie.replaceSelection(me+me+me+me,"before"),Ie.execCommand("goCharRight"))})}function nt(Ie,Oe){var Be=Ie.getRange(ve(Oe.line,Oe.ch-1),ve(Oe.line,Oe.ch+1));return Be.length==2?Be:null}function Ae(Ie,Oe){var Be=Ie.getTokenAt(ve(Oe.line,Oe.ch+1));return/\bstring/.test(Be.type)&&Be.start==Oe.ch&&(Oe.ch==0||!/\bstring/.test(Ie.getTokenTypeAt(Oe)))}})},6313:function(Yt,zt,ie){(function(z){z(ie(89780),ie(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(Me,de,Ze){if(Ze!=z.Init&&Ze&&Me.removeKeyMap("autoCloseTags"),!!de){var be={name:"autoCloseTags"};(typeof de!="object"||de.whenClosing!==!1)&&(be["'/'"]=function(nt){return ge(nt)}),(typeof de!="object"||de.whenOpening!==!1)&&(be["'>'"]=function(nt){return Le(nt)}),Me.addKeyMap(be)}});var Ve=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ve=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Le(Me){if(Me.getOption("disableInput"))return z.Pass;for(var de=Me.listSelections(),Ze=[],be=Me.getOption("autoCloseTags"),nt=0;nt<de.length;nt++){if(!de[nt].empty())return z.Pass;var Ae=de[nt].head,Ie=Me.getTokenAt(Ae),Oe=z.innerMode(Me.getMode(),Ie.state),Be=Oe.state,ct=Oe.mode.xmlCurrentTag&&Oe.mode.xmlCurrentTag(Be),kt=ct&&ct.name;if(!kt)return z.Pass;var Ct=Oe.mode.configuration=="html",it=typeof be=="object"&&be.dontCloseTags||Ct&&Ve,Je=typeof be=="object"&&be.indentTags||Ct&&ve;Ie.end>Ae.ch&&(kt=kt.slice(0,kt.length-Ie.end+Ae.ch));var _e=kt.toLowerCase();if(!kt||Ie.type=="string"&&(Ie.end!=Ae.ch||!/[\"\']/.test(Ie.string.charAt(Ie.string.length-1))||Ie.string.length==1)||Ie.type=="tag"&&ct.close||Ie.string.indexOf("/")==Ae.ch-Ie.start-1||it&&ke(it,_e)>-1||$e(Me,Oe.mode.xmlCurrentContext&&Oe.mode.xmlCurrentContext(Be)||[],kt,Ae,!0))return z.Pass;var We=typeof be=="object"&&be.emptyTags;if(We&&ke(We,kt)>-1){Ze[nt]={text:"/>",newPos:z.Pos(Ae.line,Ae.ch+2)};continue}var St=Je&&ke(Je,_e)>-1;Ze[nt]={indent:St,text:">"+(St?`
|
|
|
|
|
|
`:"")+"</"+kt+">",newPos:St?z.Pos(Ae.line+1,0):z.Pos(Ae.line,Ae.ch+1)}}for(var Xe=typeof be=="object"&&be.dontIndentOnAutoClose,nt=de.length-1;nt>=0;nt--){var Ke=Ze[nt];Me.replaceRange(Ke.text,de[nt].head,de[nt].anchor,"+insert");var ht=Me.listSelections().slice(0);ht[nt]={head:Ke.newPos,anchor:Ke.newPos},Me.setSelections(ht),!Xe&&Ke.indent&&(Me.indentLine(Ke.newPos.line,null,!0),Me.indentLine(Ke.newPos.line+1,null,!0))}}function ye(Me,de){for(var Ze=Me.listSelections(),be=[],nt=de?"/":"</",Ae=Me.getOption("autoCloseTags"),Ie=typeof Ae=="object"&&Ae.dontIndentOnSlash,Oe=0;Oe<Ze.length;Oe++){if(!Ze[Oe].empty())return z.Pass;var Be=Ze[Oe].head,ct=Me.getTokenAt(Be),kt=z.innerMode(Me.getMode(),ct.state),Ct=kt.state;if(de&&(ct.type=="string"||ct.string.charAt(0)!="<"||ct.start!=Be.ch-1))return z.Pass;var it,Je=kt.mode.name!="xml"&&Me.getMode().name=="htmlmixed";if(Je&&kt.mode.name=="javascript")it=nt+"script";else if(Je&&kt.mode.name=="css")it=nt+"style";else{var _e=kt.mode.xmlCurrentContext&&kt.mode.xmlCurrentContext(Ct);if(!_e||_e.length&&$e(Me,_e,_e[_e.length-1],Be))return z.Pass;it=nt+_e[_e.length-1]}Me.getLine(Be.line).charAt(ct.end)!=">"&&(it+=">"),be[Oe]=it}if(Me.replaceSelections(be),Ze=Me.listSelections(),!Ie)for(var Oe=0;Oe<Ze.length;Oe++)(Oe==Ze.length-1||Ze[Oe].head.line<Ze[Oe+1].head.line)&&Me.indentLine(Ze[Oe].head.line)}function ge(Me){return Me.getOption("disableInput")?z.Pass:ye(Me,!0)}z.commands.closeTag=function(Me){return ye(Me)};function ke(Me,de){if(Me.indexOf)return Me.indexOf(de);for(var Ze=0,be=Me.length;Ze<be;++Ze)if(Me[Ze]==de)return Ze;return-1}function $e(Me,de,Ze,be,nt){if(!z.scanForClosingTag)return!1;var Ae=Math.min(Me.lastLine()+1,be.line+500),Ie=z.scanForClosingTag(Me,be,null,Ae);if(!Ie||Ie.tag!=Ze)return!1;for(var Oe=nt?1:0,Be=de.length-1;Be>=0&&de[Be]==Ze;Be--)++Oe;be=Ie.to;for(var Be=1;Be<Oe;Be++){var ct=z.scanForClosingTag(Me,be,null,Ae);if(!ct||ct.tag!=Ze)return!1;be=ct.to}return!0}})},32855:function(Yt,zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var Ve=z.Pos;function ve(Be,ct){return Be.line-ct.line||Be.ch-ct.ch}var Le="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",ye=Le+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+Le+"]["+ye+"]*)","g");function ke(Be,ct,kt,Ct){this.line=ct,this.ch=kt,this.cm=Be,this.text=Be.getLine(ct),this.min=Ct?Math.max(Ct.from,Be.firstLine()):Be.firstLine(),this.max=Ct?Math.min(Ct.to-1,Be.lastLine()):Be.lastLine()}function $e(Be,ct){var kt=Be.cm.getTokenTypeAt(Ve(Be.line,ct));return kt&&/\btag\b/.test(kt)}function Me(Be){if(!(Be.line>=Be.max))return Be.ch=0,Be.text=Be.cm.getLine(++Be.line),!0}function de(Be){if(!(Be.line<=Be.min))return Be.text=Be.cm.getLine(--Be.line),Be.ch=Be.text.length,!0}function Ze(Be){for(;;){var ct=Be.text.indexOf(">",Be.ch);if(ct==-1){if(Me(Be))continue;return}if(!$e(Be,ct+1)){Be.ch=ct+1;continue}var kt=Be.text.lastIndexOf("/",ct),Ct=kt>-1&&!/\S/.test(Be.text.slice(kt+1,ct));return Be.ch=ct+1,Ct?"selfClose":"regular"}}function be(Be){for(;;){var ct=Be.ch?Be.text.lastIndexOf("<",Be.ch-1):-1;if(ct==-1){if(de(Be))continue;return}if(!$e(Be,ct+1)){Be.ch=ct;continue}ge.lastIndex=ct,Be.ch=ct;var kt=ge.exec(Be.text);if(kt&&kt.index==ct)return kt}}function nt(Be){for(;;){ge.lastIndex=Be.ch;var ct=ge.exec(Be.text);if(!ct){if(Me(Be))continue;return}if(!$e(Be,ct.index+1)){Be.ch=ct.index+1;continue}return Be.ch=ct.index+ct[0].length,ct}}function Ae(Be){for(;;){var ct=Be.ch?Be.text.lastIndexOf(">",Be.ch-1):-1;if(ct==-1){if(de(Be))continue;return}if(!$e(Be,ct+1)){Be.ch=ct;continue}var kt=Be.text.lastIndexOf("/",ct),Ct=kt>-1&&!/\S/.test(Be.text.slice(kt+1,ct));return Be.ch=ct+1,Ct?"selfClose":"regular"}}function Ie(Be,ct){for(var kt=[];;){var Ct=nt(Be),it,Je=Be.line,_e=Be.ch-(Ct?Ct[0].length:0);if(!Ct||!(it=Ze(Be)))return;if(it!="selfClose")if(Ct[1]){for(var We=kt.length-1;We>=0;--We)if(kt[We]==Ct[2]){kt.length=We;break}if(We<0&&(!ct||ct==Ct[2]))return{tag:Ct[2],from:Ve(Je,_e),to:Ve(Be.line,Be.ch)}}else kt.push(Ct[2])}}function Oe(Be,ct){for(var kt=[];;){var Ct=Ae(Be);if(!Ct)return;if(Ct=="selfClose"){be(Be);continue}var it=Be.line,Je=Be.ch,_e=be(Be);if(!_e)return;if(_e[1])kt.push(_e[2]);else{for(var We=kt.length-1;We>=0;--We)if(kt[We]==_e[2]){kt.length=We;break}if(We<0&&(!ct||ct==_e[2]))return{tag:_e[2],from:Ve(Be.line,Be.ch),to:Ve(it,Je)}}}}z.registerHelper("fold","xml",function(Be,ct){for(var kt=new ke(Be,ct.line,0);;){var Ct=nt(kt);if(!Ct||kt.line!=ct.line)return;var it=Ze(kt);if(!it)return;if(!Ct[1]&&it!="selfClose"){var Je=Ve(kt.line,kt.ch),_e=Ie(kt,Ct[2]);return _e&&ve(_e.from,Je)>0?{from:Je,to:_e.from}:null}}}),z.findMatchingTag=function(Be,ct,kt){var Ct=new ke(Be,ct.line,ct.ch,kt);if(!(Ct.text.indexOf(">")==-1&&Ct.text.indexOf("<")==-1)){var it=Ze(Ct),Je=it&&Ve(Ct.line,Ct.ch),_e=it&&be(Ct);if(!(!it||!_e||ve(Ct,ct)>0)){var We={from:Ve(Ct.line,Ct.ch),to:Je,tag:_e[2]};return it=="selfClose"?{open:We,close:null,at:"open"}:_e[1]?{open:Oe(Ct,_e[2]),close:We,at:"close"}:(Ct=new ke(Be,Je.line,Je.ch,kt),{open:We,close:Ie(Ct,_e[2]),at:"open"})}}},z.findEnclosingTag=function(Be,ct,kt,Ct){for(var it=new ke(Be,ct.line,ct.ch,kt);;){var Je=Oe(it,Ct);if(!Je)break;var _e=new ke(Be,ct.line,ct.ch,kt),We=Ie(_e,Je.tag);if(We)return{open:Je,close:We}}},z.scanForClosingTag=function(Be,ct,kt,Ct){var it=new ke(Be,ct.line,ct.ch,Ct?{from:0,to:Ct}:null);return Ie(it,kt)}})},89780:function(Yt){(function(zt,ie){Yt.exports=ie()})(this,function(){"use strict";var zt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(zt),Ve=/MSIE \d/.test(zt),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zt),Le=/Edge\/(\d+)/.exec(zt),ye=Ve||ve||Le,ge=ye&&(Ve?document.documentMode||6:+(Le||ve)[1]),ke=!Le&&/WebKit\//.test(zt),$e=ke&&/Qt\/\d+\.\d+/.test(zt),Me=!Le&&/Chrome\//.test(zt),de=/Opera\//.test(zt),Ze=/Apple Computer/.test(navigator.vendor),be=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(zt),nt=/PhantomJS/.test(zt),Ae=!Le&&/AppleWebKit/.test(zt)&&/Mobile\/\w+/.test(zt),Ie=/Android/.test(zt),Oe=Ae||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(zt),Be=Ae||/Mac/.test(ie),ct=/\bCrOS\b/.test(zt),kt=/win/i.test(ie),Ct=de&&zt.match(/Version\/(\d*\.\d*)/);Ct&&(Ct=Number(Ct[1])),Ct&&Ct>=15&&(de=!1,ke=!0);var it=Be&&($e||de&&(Ct==null||Ct<12.11)),Je=z||ye&&ge>=9;function _e(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var We=function(a,y){var x=a.className,b=_e(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function St(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Xe(a,y){return St(a).appendChild(y)}function Ke(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var ne=0;ne<y.length;++ne)E.appendChild(y[ne]);return E}function ht(a,y,x,b){var E=Ke(a,y,x,b);return E.setAttribute("role","presentation"),E}var Ne;document.createRange?Ne=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Ne=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(E){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function et(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 qe(){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 me(a,y){var x=a.className;_e(y).test(x)||(a.className+=(x?" ":"")+y)}function Ot(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!_e(x[b]).test(y)&&(y+=" "+x[b]);return y}var De=function(a){a.select()};Ae?De=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ye&&(De=function(a){try{a.select()}catch(y){}});function At(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Xt(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 Se(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ne=b||0,ae=E||0;;){var ue=a.indexOf(" ",ne);if(ue<0||ue>=y)return ae+(y-ne);ae+=ue-ne,ae+=x-ae%x,ne=ue+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=At(this.onTimeout,this)};fe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},fe.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 vt(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Vt=50,Dt={toString:function(){return"CodeMirror.Pass"}},ze={scroll:!1},ut={origin:"*mouse"},gt={origin:"+move"};function pn(a,y,x){for(var b=0,E=0;;){var ne=a.indexOf(" ",b);ne==-1&&(ne=a.length);var ae=ne-b;if(ne==a.length||E+ae>=y)return b+Math.min(ae,y-E);if(E+=ne-b,E+=x-E%x,b=ne+1,E>=y)return b}}var Ft=[""];function en(a){for(;Ft.length<=a;)Ft.push(tt(Ft)+" ");return Ft[a]}function tt(a){return a[a.length-1]}function Kt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function pt(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function le(){}function te(a,y){var x;return Object.create?x=Object.create(a):(le.prototype=a,x=new le),y&&Xt(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 re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var pe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xe(a){return a.charCodeAt(0)>=768&&pe.test(a)}function at(a,y,x){for(;(x<0?y>0:y<a.length)&&xe(a.charAt(y));)y+=x;return y}function Ee(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,ne=b<0?Math.ceil(E):Math.floor(E);if(ne==y)return a(ne)?y:x;a(ne)?x=ne:y=ne+b}}function je(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,ne=0;ne<a.length;++ne){var ae=a[ne];(ae.from<x&&ae.to>y||y==x&&ae.to==y)&&(b(Math.max(ae.from,y),Math.min(ae.to,x),ae.level==1?"rtl":"ltr",ne),E=!0)}E||b(y,x,"ltr")}var ot=null;function wt(a,y,x){var b;ot=null;for(var E=0;E<a.length;++E){var ne=a[E];if(ne.from<y&&ne.to>y)return E;ne.to==y&&(ne.from!=ne.to&&x=="before"?b=E:ot=E),ne.from==y&&(ne.from!=ne.to&&x!="before"?b=E:ot=E)}return b!=null?b:ot}var dt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(he){return he<=247?a.charAt(he):1424<=he&&he<=1524?"R":1536<=he&&he<=1785?y.charAt(he-1536):1774<=he&&he<=2220?"r":8192<=he&&he<=8203?"w":he==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,ne=/[LRr]/,ae=/[Lb1n]/,ue=/[1n]/;function ce(he,He,Ye){this.level=he,this.from=He,this.to=Ye}return function(he,He){var Ye=He=="ltr"?"L":"R";if(he.length==0||He=="ltr"&&!b.test(he))return!1;for(var Tt=he.length,It=[],sn=0;sn<Tt;++sn)It.push(x(he.charCodeAt(sn)));for(var Cn=0,Hn=Ye;Cn<Tt;++Cn){var Xn=It[Cn];Xn=="m"?It[Cn]=Hn:Hn=Xn}for(var or=0,Jn=Ye;or<Tt;++or){var pr=It[or];pr=="1"&&Jn=="r"?It[or]="n":ne.test(pr)&&(Jn=pr,pr=="r"&&(It[or]="R"))}for(var Ir=1,Er=It[0];Ir<Tt-1;++Ir){var zr=It[Ir];zr=="+"&&Er=="1"&&It[Ir+1]=="1"?It[Ir]="1":zr==","&&Er==It[Ir+1]&&(Er=="1"||Er=="n")&&(It[Ir]=Er),Er=zr}for(var Xr=0;Xr<Tt;++Xr){var bi=It[Xr];if(bi==",")It[Xr]="N";else if(bi=="%"){var ti=void 0;for(ti=Xr+1;ti<Tt&&It[ti]=="%";++ti);for(var ji=Xr&&It[Xr-1]=="!"||ti<Tt&&It[ti]=="1"?"1":"N",Ri=Xr;Ri<ti;++Ri)It[Ri]=ji;Xr=ti-1}}for(var ci=0,Fi=Ye;ci<Tt;++ci){var Ei=It[ci];Fi=="L"&&Ei=="1"?It[ci]="L":ne.test(Ei)&&(Fi=Ei)}for(var vi=0;vi<Tt;++vi)if(E.test(It[vi])){var di=void 0;for(di=vi+1;di<Tt&&E.test(It[di]);++di);for(var ni=(vi?It[vi-1]:Ye)=="L",zi=(di<Tt?It[di]:Ye)=="L",Vo=ni==zi?ni?"L":"R":Ye,xo=vi;xo<di;++xo)It[xo]=Vo;vi=di-1}for(var Oi=[],oo,xi=0;xi<Tt;)if(ae.test(It[xi])){var bl=xi;for(++xi;xi<Tt&&ae.test(It[xi]);++xi);Oi.push(new ce(0,bl,xi))}else{var uo=xi,Po=Oi.length,Oo=He=="rtl"?1:0;for(++xi;xi<Tt&&It[xi]!="L";++xi);for(var Ti=uo;Ti<xi;)if(ue.test(It[Ti])){uo<Ti&&(Oi.splice(Po,0,new ce(1,uo,Ti)),Po+=Oo);var _o=Ti;for(++Ti;Ti<xi&&ue.test(It[Ti]);++Ti);Oi.splice(Po,0,new ce(2,_o,Ti)),Po+=Oo,uo=Ti}else++Ti;uo<xi&&Oi.splice(Po,0,new ce(1,uo,xi))}return He=="ltr"&&(Oi[0].level==1&&(oo=he.match(/^\s+/))&&(Oi[0].from=oo[0].length,Oi.unshift(new ce(0,0,oo[0].length))),tt(Oi).level==1&&(oo=he.match(/\s+$/))&&(tt(Oi).to-=oo[0].length,Oi.push(new ce(0,Tt-oo[0].length,Tt)))),He=="rtl"?Oi.reverse():Oi}}();function Zt(a,y){var x=a.order;return x==null&&(x=a.order=dt(a.text,y)),x}var lt=[],rt=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]||lt).concat(x)}};function xt(a,y){return a._handlers&&a._handlers[y]||lt}function Pt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,E=b&&b[y];if(E){var ne=vt(E,x);ne>-1&&(b[y]=E.slice(0,ne).concat(E.slice(ne+1)))}}}function _t(a,y){var x=xt(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E<x.length;++E)x[E].apply(null,b)}function st(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),_t(a,x||y.type,a,y),fn(y)||y.codemirrorIgnore}function Gt(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)vt(x,y[b])==-1&&x.push(y[b])}function Lt(a,y){return xt(a,y).length>0}function Nt(a){a.prototype.on=function(y,x){rt(this,y,x)},a.prototype.off=function(y,x){Pt(this,y,x)}}function Qt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Rn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function fn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Pe(a){Qt(a),Rn(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)),Be&&a.ctrlKey&&y==1&&(y=3),y}var $t=function(){if(ye&&ge<9)return!1;var a=Ke("div");return"draggable"in a||"dragDrop"in a}(),cn;function vn(a){if(cn==null){var y=Ke("span","\u200B");Xe(a,Ke("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(cn=y.offsetWidth<=1&&y.offsetHeight>2&&!(ye&&ge<8))}var x=cn?Ke("span","\u200B"):Ke("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Un;function $n(a){if(Un!=null)return Un;var y=Xe(a,document.createTextNode("A\u062EA")),x=Ne(y,0,1).getBoundingClientRect(),b=Ne(y,1,2).getBoundingClientRect();return St(a),!x||x.left==x.right?!1:Un=b.right-x.right<3}var dn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
|
|
|
`,y);E==-1&&(E=a.length);var ne=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),ae=ne.indexOf("\r");ae!=-1?(x.push(ne.slice(0,ae)),y+=ae+1):(x.push(ne),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},gn=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},bn=function(){var a=Ke("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),qn=null;function Sn(a){if(qn!=null)return qn;var y=Xe(a,Ke("span","x")),x=y.getBoundingClientRect(),b=Ne(y,0,1).getBoundingClientRect();return qn=Math.abs(x.left-b.left)>1}var Fn={},yn={};function An(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Fn[a]=y}function xn(a,y){yn[a]=y}function Vn(a){if(typeof a=="string"&&yn.hasOwnProperty(a))a=yn[a];else if(a&&typeof a.name=="string"&&yn.hasOwnProperty(a.name)){var y=yn[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 Vn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Vn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function ur(a,y){y=Vn(y);var x=Fn[y.name];if(!x)return ur(a,"text/plain");var b=x(a,y);if(Tn.hasOwnProperty(y.name)){var E=Tn[y.name];for(var ne in E)E.hasOwnProperty(ne)&&(b.hasOwnProperty(ne)&&(b["_"+ne]=b[ne]),b[ne]=E[ne])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var ae in y.modeProps)b[ae]=y.modeProps[ae];return b}var Tn={};function Qn(a,y){var x=Tn.hasOwnProperty(a)?Tn[a]:Tn[a]={};Xt(y,x)}function sr(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function gr(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 Cr(a,y,x){return a.startState?a.startState(y,x):!0}var ir=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};ir.prototype.eol=function(){return this.pos>=this.string.length},ir.prototype.sol=function(){return this.pos==this.lineStart},ir.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ir.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ir.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},ir.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},ir.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},ir.prototype.skipToEnd=function(){this.pos=this.string.length},ir.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},ir.prototype.backUp=function(a){this.pos-=a},ir.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Se(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Se(this.string,this.lineStart,this.tabSize):0)},ir.prototype.indentation=function(){return Se(this.string,null,this.tabSize)-(this.lineStart?Se(this.string,this.lineStart,this.tabSize):0)},ir.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(ae){return x?ae.toLowerCase():ae},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ne=this.string.slice(this.pos).match(a);return ne&&ne.index>0?null:(ne&&y!==!1&&(this.pos+=ne[0].length),ne)}},ir.prototype.current=function(){return this.string.slice(this.start,this.pos)},ir.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},ir.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},ir.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Bt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],ne=E.chunkSize();if(y<ne){x=E;break}y-=ne}return x.lines[y]}function ln(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(ne){var ae=ne.text;E==x.line&&(ae=ae.slice(0,x.ch)),E==y.line&&(ae=ae.slice(y.ch)),b.push(ae),++E}),b}function Kn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function yr(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Te(a){if(a.parent==null)return null;for(var y=a.parent,x=vt(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var E=0;b.children[E]!=y;++E)x+=b.children[E].chunkSize();return x+y.first}function Ue(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],ne=E.height;if(y<ne){a=E;continue e}y-=ne,x+=E.chunkSize()}return x}while(!a.lines);for(var ae=0;ae<a.lines.length;++ae){var ue=a.lines[ae],ce=ue.height;if(y<ce)break;y-=ce}return x+ae}function Ce(a,y){return y>=a.first&&y<a.first+a.size}function Re(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function we(a,y,x){if(x===void 0&&(x=null),!(this instanceof we))return new we(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Fe(a,y){return a.line-y.line||a.ch-y.ch}function ft(a,y){return a.sticky==y.sticky&&Fe(a,y)==0}function qt(a){return we(a.line,a.ch)}function rn(a,y){return Fe(a,y)<0?y:a}function hn(a,y){return Fe(a,y)<0?a:y}function Wt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Mt(a,y){if(y.line<a.first)return we(a.first,0);var x=a.first+a.size-1;return y.line>x?we(x,Bt(a,x).text.length):bt(y,Bt(a,y.line).text.length)}function bt(a,y){var x=a.ch;return x==null||x>y?we(a.line,y):x<0?we(a.line,0):a}function un(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Mt(a,y[b]);return x}var Ln=function(a,y){this.state=a,this.lookAhead=y},En=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};En.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},En.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},En.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},En.fromSaved=function(a,y,x){return y instanceof Ln?new En(a,sr(a.mode,y.state),x,y.lookAhead):new En(a,sr(a.mode,y),x)},En.prototype.save=function(a){var y=a!==!1?sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ln(y,this.maxLookAhead):y};function In(a,y,x,b){var E=[a.state.modeGen],ne={};mn(a,y.text,a.doc.mode,x,function(he,He){return E.push(he,He)},ne,b);for(var ae=x.state,ue=function(he){x.baseTokens=E;var He=a.state.overlays[he],Ye=1,Tt=0;x.state=!0,mn(a,y.text,He.mode,x,function(It,sn){for(var Cn=Ye;Tt<It;){var Hn=E[Ye];Hn>It&&E.splice(Ye,1,It,E[Ye+1],Hn),Ye+=2,Tt=Math.min(It,Hn)}if(sn)if(He.opaque)E.splice(Cn,Ye-Cn,It,"overlay "+sn),Ye=Cn+2;else for(;Cn<Ye;Cn+=2){var Xn=E[Cn+1];E[Cn+1]=(Xn?Xn+" ":"")+"overlay "+sn}},ne),x.state=ae,x.baseTokens=null,x.baseTokenPos=1},ce=0;ce<a.state.overlays.length;++ce)ue(ce);return{styles:E,classes:ne.bgClass||ne.textClass?ne:null}}function dr(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=mt(a,Te(y)),E=y.text.length>a.options.maxHighlightLength&&sr(a.doc.mode,b.state),ne=In(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=ne.styles,ne.classes?y.styleClasses=ne.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 mt(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new En(b,!0,y);var ne=Mn(a,y,x),ae=ne>b.first&&Bt(b,ne-1).stateAfter,ue=ae?En.fromSaved(b,ae,ne):new En(b,Cr(b.mode),ne);return b.iter(ne,y,function(ce){Ge(a,ce.text,ue);var he=ue.line;ce.stateAfter=he==y-1||he%5==0||he>=E.viewFrom&&he<E.viewTo?ue.save():null,ue.nextLine()}),x&&(b.modeFrontier=ue.line),ue}function Ge(a,y,x,b){var E=a.doc.mode,ne=new ir(y,a.options.tabSize,x);for(ne.start=ne.pos=b||0,y==""&&Et(E,x.state);!ne.eol();)Rt(E,ne,x.state),ne.start=ne.pos}function Et(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=gr(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Rt(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=gr(a,x).mode);var ne=a.token(y,x);if(y.pos>y.start)return ne}throw new Error("Mode "+a.name+" failed to advance stream.")}var Ht=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function on(a,y,x,b){var E=a.doc,ne=E.mode,ae;y=Mt(E,y);var ue=Bt(E,y.line),ce=mt(a,y.line,x),he=new ir(ue.text,a.options.tabSize,ce),He;for(b&&(He=[]);(b||he.pos<y.ch)&&!he.eol();)he.start=he.pos,ae=Rt(ne,he,ce.state),b&&He.push(new Ht(he,ae,sr(E.mode,ce.state)));return b?He:new Ht(he,ae,ce.state)}function Bn(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 mn(a,y,x,b,E,ne,ae){var ue=x.flattenSpans;ue==null&&(ue=a.options.flattenSpans);var ce=0,he=null,He=new ir(y,a.options.tabSize,b),Ye,Tt=a.options.addModeClass&&[null];for(y==""&&Bn(Et(x,b.state),ne);!He.eol();){if(He.pos>a.options.maxHighlightLength?(ue=!1,ae&&Ge(a,y,b,He.pos),He.pos=y.length,Ye=null):Ye=Bn(Rt(x,He,b.state,Tt),ne),Tt){var It=Tt[0].name;It&&(Ye="m-"+(Ye?It+" "+Ye:It))}if(!ue||he!=Ye){for(;ce<He.start;)ce=Math.min(He.start,ce+5e3),E(ce,he);he=Ye}He.start=He.pos}for(;ce<He.pos;){var sn=Math.min(He.pos,ce+5e3);E(sn,he),ce=sn}}function Mn(a,y,x){for(var b,E,ne=a.doc,ae=x?-1:y-(a.doc.mode.innerMode?1e3:100),ue=y;ue>ae;--ue){if(ue<=ne.first)return ne.first;var ce=Bt(ne,ue-1),he=ce.stateAfter;if(he&&(!x||ue+(he instanceof Ln?he.lookAhead:0)<=ne.modeFrontier))return ue;var He=Se(ce.text,null,a.options.tabSize);(E==null||b>He)&&(E=ue-1,b=He)}return E}function Pn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var E=Bt(a,b).stateAfter;if(E&&(!(E instanceof Ln)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var Nn=!1,wn=!1;function nr(){Nn=!0}function jn(){wn=!0}function Zn(a,y,x){this.marker=a,this.from=y,this.to=x}function rr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function fr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function Gn(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function ar(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ne=a[E],ae=ne.marker,ue=ne.from==null||(ae.inclusiveLeft?ne.from<=y:ne.from<y);if(ue||ne.from==y&&ae.type=="bookmark"&&(!x||!ne.marker.insertLeft)){var ce=ne.to==null||(ae.inclusiveRight?ne.to>=y:ne.to>y);(b||(b=[])).push(new Zn(ae,ne.from,ce?null:ne.to))}}return b}function zn(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ne=a[E],ae=ne.marker,ue=ne.to==null||(ae.inclusiveRight?ne.to>=y:ne.to>y);if(ue||ne.from==y&&ae.type=="bookmark"&&(!x||ne.marker.insertLeft)){var ce=ne.from==null||(ae.inclusiveLeft?ne.from<=y:ne.from<y);(b||(b=[])).push(new Zn(ae,ce?null:ne.from-y,ne.to==null?null:ne.to-y))}}return b}function hr(a,y){if(y.full)return null;var x=Ce(a,y.from.line)&&Bt(a,y.from.line).markedSpans,b=Ce(a,y.to.line)&&Bt(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,ne=y.to.ch,ae=Fe(y.from,y.to)==0,ue=ar(x,E,ae),ce=zn(b,ne,ae),he=y.text.length==1,He=tt(y.text).length+(he?E:0);if(ue)for(var Ye=0;Ye<ue.length;++Ye){var Tt=ue[Ye];if(Tt.to==null){var It=rr(ce,Tt.marker);It?he&&(Tt.to=It.to==null?null:It.to+He):Tt.to=E}}if(ce)for(var sn=0;sn<ce.length;++sn){var Cn=ce[sn];if(Cn.to!=null&&(Cn.to+=He),Cn.from==null){var Hn=rr(ue,Cn.marker);Hn||(Cn.from=He,he&&(ue||(ue=[])).push(Cn))}else Cn.from+=He,he&&(ue||(ue=[])).push(Cn)}ue&&(ue=_n(ue)),ce&&ce!=ue&&(ce=_n(ce));var Xn=[ue];if(!he){var or=y.text.length-2,Jn;if(or>0&&ue)for(var pr=0;pr<ue.length;++pr)ue[pr].to==null&&(Jn||(Jn=[])).push(new Zn(ue[pr].marker,null,null));for(var Ir=0;Ir<or;++Ir)Xn.push(Jn);Xn.push(ce)}return Xn}function _n(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 Sr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(It){if(It.markedSpans)for(var sn=0;sn<It.markedSpans.length;++sn){var Cn=It.markedSpans[sn].marker;Cn.readOnly&&(!b||vt(b,Cn)==-1)&&(b||(b=[])).push(Cn)}}),!b)return null;for(var E=[{from:y,to:x}],ne=0;ne<b.length;++ne)for(var ae=b[ne],ue=ae.find(0),ce=0;ce<E.length;++ce){var he=E[ce];if(!(Fe(he.to,ue.from)<0||Fe(he.from,ue.to)>0)){var He=[ce,1],Ye=Fe(he.from,ue.from),Tt=Fe(he.to,ue.to);(Ye<0||!ae.inclusiveLeft&&!Ye)&&He.push({from:he.from,to:ue.from}),(Tt>0||!ae.inclusiveRight&&!Tt)&&He.push({from:ue.to,to:he.to}),E.splice.apply(E,He),ce+=He.length-3}}return E}function tr(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function er(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function cr(a){return a.inclusiveLeft?-1:0}function br(a){return a.inclusiveRight?1:0}function vr(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),ne=Fe(b.from,E.from)||cr(a)-cr(y);if(ne)return-ne;var ae=Fe(b.to,E.to)||br(a)-br(y);return ae||y.id-a.id}function lr(a,y){var x=wn&&a.markedSpans,b;if(x)for(var E=void 0,ne=0;ne<x.length;++ne)E=x[ne],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||vr(b,E.marker)<0)&&(b=E.marker);return b}function Yn(a){return lr(a,!0)}function Ut(a){return lr(a,!1)}function nn(a,y){var x=wn&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var ne=x[E];ne.marker.collapsed&&(ne.from==null||ne.from<y)&&(ne.to==null||ne.to>y)&&(!b||vr(b,ne.marker)<0)&&(b=ne.marker)}return b}function an(a,y,x,b,E){var ne=Bt(a,y),ae=wn&&ne.markedSpans;if(ae)for(var ue=0;ue<ae.length;++ue){var ce=ae[ue];if(ce.marker.collapsed){var he=ce.marker.find(0),He=Fe(he.from,x)||cr(ce.marker)-cr(E),Ye=Fe(he.to,b)||br(ce.marker)-br(E);if(!(He>=0&&Ye<=0||He<=0&&Ye>=0)&&(He<=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Fe(he.to,x)>=0:Fe(he.to,x)>0)||He>=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Fe(he.from,b)<=0:Fe(he.from,b)<0)))return!0}}}function jt(a){for(var y;y=Yn(a);)a=y.find(-1,!0).line;return a}function Dn(a){for(var y;y=Ut(a);)a=y.find(1,!0).line;return a}function Wn(a){for(var y,x;y=Ut(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Jt(a,y){var x=Bt(a,y),b=jt(x);return x==b?y:Te(b)}function tn(a,y){if(y>a.lastLine())return y;var x=Bt(a,y),b;if(!On(a,x))return y;for(;b=Ut(x);)x=b.find(1,!0).line;return Te(x)+1}function On(a,y){var x=wn&&y.markedSpans;if(x){for(var b=void 0,E=0;E<x.length;++E)if(b=x[E],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&kn(a,y,b))return!0}}}function kn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return kn(a,b.line,rr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,ne=0;ne<y.markedSpans.length;++ne)if(E=y.markedSpans[ne],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&kn(a,y,E))return!0}function mr(a){a=jt(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var E=x.lines[b];if(E==a)break;y+=E.height}for(var ne=x.parent;ne;x=ne,ne=x.parent)for(var ae=0;ae<ne.children.length;++ae){var ue=ne.children[ae];if(ue==x)break;y+=ue.height}return y}function kr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Yn(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=Ut(b);){var ne=x.find(0,!0);y-=b.text.length-ne.from.ch,b=ne.to.line,y+=b.text.length-ne.to.ch}return y}function xr(a){var y=a.display,x=a.doc;y.maxLine=Bt(x,x.first),y.maxLineLength=kr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=kr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Br=function(a,y,x){this.text=a,er(this,y),this.height=x?x(this):1};Br.prototype.lineNo=function(){return Te(this)},Nt(Br);function Lr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),tr(a),er(a,x);var E=b?b(a):1;E!=a.height&&yr(a,E)}function Tr(a){a.parent=null,tr(a)}var Or={},Nr={};function Fr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Nr:Or;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Gr(a,y){var x=ht("span",null,null,ke?"padding-right: .1px":null),b={pre:ht("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var ne=E?y.rest[E-1]:y.line,ae=void 0;b.pos=0,b.addToken=ri,$n(a.display.measure)&&(ae=Zt(ne,a.doc.direction))&&(b.addToken=Zr(b.addToken,ae)),b.map=[];var ue=y!=a.display.externalMeasured&&Te(ne);Dr(ne,b,dr(a,ne,ue)),ne.styleClasses&&(ne.styleClasses.bgClass&&(b.bgClass=Ot(ne.styleClasses.bgClass,b.bgClass||"")),ne.styleClasses.textClass&&(b.textClass=Ot(ne.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(vn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(ke){var ce=b.content.lastChild;(/\bcm-tab\b/.test(ce.className)||ce.querySelector&&ce.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return _t(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Ot(b.pre.className,b.textClass||"")),b}function Qr(a){var y=Ke("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function ri(a,y,x,b,E,ne,ae){if(y){var ue=a.splitSpaces?jr(y,a.trailingSpace):y,ce=a.cm.state.specialChars,he=!1,He;if(!ce.test(y))a.col+=y.length,He=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,He),ye&&ge<9&&(he=!0),a.pos+=y.length;else{He=document.createDocumentFragment();for(var Ye=0;;){ce.lastIndex=Ye;var Tt=ce.exec(y),It=Tt?Tt.index-Ye:y.length-Ye;if(It){var sn=document.createTextNode(ue.slice(Ye,Ye+It));ye&&ge<9?He.appendChild(Ke("span",[sn])):He.appendChild(sn),a.map.push(a.pos,a.pos+It,sn),a.col+=It,a.pos+=It}if(!Tt)break;Ye+=It+1;var Cn=void 0;if(Tt[0]==" "){var Hn=a.cm.options.tabSize,Xn=Hn-a.col%Hn;Cn=He.appendChild(Ke("span",en(Xn),"cm-tab")),Cn.setAttribute("role","presentation"),Cn.setAttribute("cm-text"," "),a.col+=Xn}else Tt[0]=="\r"||Tt[0]==`
|
|
|
`?(Cn=He.appendChild(Ke("span",Tt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Cn.setAttribute("cm-text",Tt[0]),a.col+=1):(Cn=a.cm.options.specialCharPlaceholder(Tt[0]),Cn.setAttribute("cm-text",Tt[0]),ye&&ge<9?He.appendChild(Ke("span",[Cn])):He.appendChild(Cn),a.col+=1);a.map.push(a.pos,a.pos+1,Cn),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,x||b||E||he||ne||ae){var or=x||"";b&&(or+=b),E&&(or+=E);var Jn=Ke("span",[He],or,ne);if(ae)for(var pr in ae)ae.hasOwnProperty(pr)&&pr!="style"&&pr!="class"&&Jn.setAttribute(pr,ae[pr]);return a.content.appendChild(Jn)}a.content.appendChild(He)}}function jr(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var ne=a.charAt(E);ne==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(ne="\xA0"),b+=ne,x=ne==" "}return b}function Zr(a,y){return function(x,b,E,ne,ae,ue,ce){E=E?E+" cm-force-border":"cm-force-border";for(var he=x.pos,He=he+b.length;;){for(var Ye=void 0,Tt=0;Tt<y.length&&(Ye=y[Tt],!(Ye.to>he&&Ye.from<=he));Tt++);if(Ye.to>=He)return a(x,b,E,ne,ae,ue,ce);a(x,b.slice(0,Ye.to-he),E,ne,null,ue,ce),ne=null,b=b.slice(Ye.to-he),he=Ye.to}}}function _r(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function Dr(a,y,x){var b=a.markedSpans,E=a.text,ne=0;if(!b){for(var ae=1;ae<x.length;ae+=2)y.addToken(y,E.slice(ne,ne=x[ae]),Fr(x[ae+1],y.cm.options));return}for(var ue=E.length,ce=0,he=1,He="",Ye,Tt,It=0,sn,Cn,Hn,Xn,or;;){if(It==ce){sn=Cn=Hn=Tt="",or=null,Xn=null,It=1/0;for(var Jn=[],pr=void 0,Ir=0;Ir<b.length;++Ir){var Er=b[Ir],zr=Er.marker;if(zr.type=="bookmark"&&Er.from==ce&&zr.widgetNode)Jn.push(zr);else if(Er.from<=ce&&(Er.to==null||Er.to>ce||zr.collapsed&&Er.to==ce&&Er.from==ce)){if(Er.to!=null&&Er.to!=ce&&It>Er.to&&(It=Er.to,Cn=""),zr.className&&(sn+=" "+zr.className),zr.css&&(Tt=(Tt?Tt+";":"")+zr.css),zr.startStyle&&Er.from==ce&&(Hn+=" "+zr.startStyle),zr.endStyle&&Er.to==It&&(pr||(pr=[])).push(zr.endStyle,Er.to),zr.title&&((or||(or={})).title=zr.title),zr.attributes)for(var Xr in zr.attributes)(or||(or={}))[Xr]=zr.attributes[Xr];zr.collapsed&&(!Xn||vr(Xn.marker,zr)<0)&&(Xn=Er)}else Er.from>ce&&It>Er.from&&(It=Er.from)}if(pr)for(var bi=0;bi<pr.length;bi+=2)pr[bi+1]==It&&(Cn+=" "+pr[bi]);if(!Xn||Xn.from==ce)for(var ti=0;ti<Jn.length;++ti)_r(y,0,Jn[ti]);if(Xn&&(Xn.from||0)==ce){if(_r(y,(Xn.to==null?ue+1:Xn.to)-ce,Xn.marker,Xn.from==null),Xn.to==null)return;Xn.to==ce&&(Xn=!1)}}if(ce>=ue)break;for(var ji=Math.min(ue,It);;){if(He){var Ri=ce+He.length;if(!Xn){var ci=Ri>ji?He.slice(0,ji-ce):He;y.addToken(y,ci,Ye?Ye+sn:sn,Hn,ce+ci.length==It?Cn:"",Tt,or)}if(Ri>=ji){He=He.slice(ji-ce),ce=ji;break}ce=Ri,Hn=""}He=E.slice(ne,ne=x[he++]),Ye=Fr(x[he++],y.cm.options)}}}function Jr(a,y,x){this.line=y,this.rest=Wn(y),this.size=this.rest?Te(tt(this.rest))-x+1:1,this.node=this.text=null,this.hidden=On(a,y)}function Yr(a,y,x){for(var b=[],E,ne=y;ne<x;ne=E){var ae=new Jr(a.doc,Bt(a.doc,ne),ne);E=ne+ae.size,b.push(ae)}return b}var li=null;function Ci(a){li?li.ops.push(a):a.ownsGroup=li={ops:[a],delayedCallbacks:[]}}function fi(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var E=a.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<y.length)}function hi(a,y){var x=a.ownsGroup;if(x)try{fi(x)}finally{li=null,y(x)}}var Ii=null;function Ur(a,y){var x=xt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;li?E=li.delayedCallbacks:Ii?E=Ii:(E=Ii=[],setTimeout(si,0));for(var ne=function(ue){E.push(function(){return x[ue].apply(null,b)})},ae=0;ae<x.length;++ae)ne(ae)}}function si(){var a=Ii;Ii=null;for(var y=0;y<a.length;++y)a[y]()}function Mi(a,y,x,b){for(var E=0;E<y.changes.length;E++){var ne=y.changes[E];ne=="text"?to(a,y):ne=="gutter"?Ar(a,y,x,b):ne=="class"?wr(a,y):ne=="widget"&&Mr(a,y,b)}y.changes=null}function Di(a){return a.node==a.text&&(a.node=Ke("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ye&&ge<8&&(a.node.style.zIndex=2)),a.node}function qr(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=Di(y);y.background=b.insertBefore(Ke("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function _i(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):Gr(a,y)}function to(a,y){var x=y.text.className,b=_i(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,wr(a,y)):x&&(y.text.className=x)}function wr(a,y){qr(a,y),y.line.wrapClass?Di(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 Ar(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var E=Di(y);y.gutterBackground=Ke("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var ne=y.line.gutterMarkers;if(a.options.lineNumbers||ne){var ae=Di(y),ue=y.gutter=Ke("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ue),ae.insertBefore(ue,y.text),y.line.gutterClass&&(ue.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(y.lineNumber=ue.appendChild(Ke("div",Re(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ne)for(var ce=0;ce<a.display.gutterSpecs.length;++ce){var he=a.display.gutterSpecs[ce].className,He=ne.hasOwnProperty(he)&&ne[he];He&&ue.appendChild(Ke("div",[He],"CodeMirror-gutter-elt","left: "+b.gutterLeft[he]+"px; width: "+b.gutterWidth[he]+"px"))}}}function Mr(a,y,x){y.alignable&&(y.alignable=null);for(var b=_e("CodeMirror-linewidget"),E=y.node.firstChild,ne=void 0;E;E=ne)ne=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);$r(a,y,x)}function Pr(a,y,x,b){var E=_i(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),wr(a,y),Ar(a,y,x,b),$r(a,y,b),y.node}function $r(a,y,x){if(Hr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Hr(a,y.rest[b],y,x,!1)}function Hr(a,y,x,b,E){if(y.widgets)for(var ne=Di(x),ae=0,ue=y.widgets;ae<ue.length;++ae){var ce=ue[ae],he=Ke("div",[ce.node],"CodeMirror-linewidget"+(ce.className?" "+ce.className:""));ce.handleMouseEvents||he.setAttribute("cm-ignore-events","true"),pi(ce,he,x,b),a.display.input.setUneditable(he),E&&ce.above?ne.insertBefore(he,x.gutter||x.text):ne.appendChild(he),Ur(ce,"redraw")}}function pi(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var E=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(E-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function ui(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!et(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;"),Xe(y.display.measure,Ke("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function wi(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 ii(a){return a.lineSpace.offsetTop}function Ui(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function no(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=Xe(a.measure,Ke("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 Hi(a){return Vt-a.display.nativeBarWidth}function ro(a){return a.display.scroller.clientWidth-Hi(a)-a.display.barWidth}function ao(a){return a.display.scroller.clientHeight-Hi(a)-a.display.barHeight}function Xi(a,y,x){var b=a.options.lineWrapping,E=b&&ro(a);if(!y.measure.heights||b&&y.measure.width!=E){var ne=y.measure.heights=[];if(b){y.measure.width=E;for(var ae=y.text.firstChild.getClientRects(),ue=0;ue<ae.length-1;ue++){var ce=ae[ue],he=ae[ue+1];Math.abs(ce.bottom-he.bottom)>2&&ne.push((ce.bottom+he.top)/2-x.top)}}ne.push(x.bottom-x.top)}}function Do(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var E=0;E<a.rest.length;E++)if(Te(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Ga(a,y){y=jt(y);var x=Te(y),b=a.display.externalMeasured=new Jr(a.doc,y,x);b.lineN=x;var E=b.built=Gr(a,b);return b.text=E.pre,Xe(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Ki(a,co(a,y),x,b)}function io(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[So(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function co(a,y){var x=Te(y),b=io(a,x);b&&!b.text?b=null:b&&b.changes&&(Mi(a,b,x,fo(a)),a.curOp.forceUpdate=!0),b||(b=Ga(a,y));var E=Do(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Ki(a,y,x,b,E){y.before&&(x=-1);var ne=x+(b||""),ae;return y.cache.hasOwnProperty(ne)?ae=y.cache[ne]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Xi(a,y.view,y.rect),y.hasHeights=!0),ae=Ca(a,y,x,b),ae.bogus||(y.cache[ne]=ae)),{left:ae.left,right:ae.right,top:E?ae.rtop:ae.top,bottom:E?ae.rbottom:ae.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,E,ne,ae,ue,ce,he=0;he<a.length;he+=3)if(ue=a[he],ce=a[he+1],y<ue?(E=0,ne=1,ae="left"):y<ce?(E=y-ue,ne=E+1):(he==a.length-3||y==ce&&a[he+3]>y)&&(ne=ce-ue,E=ne-1,y>=ce&&(ae="right")),E!=null){if(b=a[he+2],ue==ce&&x==(b.insertLeft?"left":"right")&&(ae=x),x=="left"&&E==0)for(;he&&a[he-2]==a[he-3]&&a[he-1].insertLeft;)b=a[(he-=3)+2],ae="left";if(x=="right"&&E==ce-ue)for(;he<a.length-3&&a[he+3]==a[he+4]&&!a[he+5].insertLeft;)b=a[(he+=3)+2],ae="right";break}return{node:b,start:E,end:ne,collapse:ae,coverStart:ue,coverEnd:ce}}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 E=a.length-1;E>=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),ne=E.node,ae=E.start,ue=E.end,ce=E.collapse,he;if(ne.nodeType==3){for(var He=0;He<4;He++){for(;ae&&xe(y.line.text.charAt(E.coverStart+ae));)--ae;for(;E.coverStart+ue<E.coverEnd&&xe(y.line.text.charAt(E.coverStart+ue));)++ue;if(ye&&ge<9&&ae==0&&ue==E.coverEnd-E.coverStart?he=ne.parentNode.getBoundingClientRect():he=Va(Ne(ne,ae,ue).getClientRects(),b),he.left||he.right||ae==0)break;ue=ae,ae=ae-1,ce="right"}ye&&ge<11&&(he=_a(a.display.measure,he))}else{ae>0&&(ce=b="right");var Ye;a.options.lineWrapping&&(Ye=ne.getClientRects()).length>1?he=Ye[b=="right"?Ye.length-1:0]:he=ne.getBoundingClientRect()}if(ye&&ge<9&&!ae&&(!he||!he.left&&!he.right)){var Tt=ne.parentNode.getClientRects()[0];Tt?he={left:Tt.left,right:Tt.left+Qi(a.display),top:Tt.top,bottom:Tt.bottom}:he=ba}for(var It=he.top-y.rect.top,sn=he.bottom-y.rect.top,Cn=(It+sn)/2,Hn=y.view.measure.heights,Xn=0;Xn<Hn.length-1&&!(Cn<Hn[Xn]);Xn++);var or=Xn?Hn[Xn-1]:0,Jn=Hn[Xn],pr={left:(ce=="right"?he.right:he.left)-y.rect.left,right:(ce=="left"?he.left:he.right)-y.rect.left,top:or,bottom:Jn};return!he.left&&!he.right&&(pr.bogus=!0),a.options.singleCursorHeightPerLine||(pr.rtop=It,pr.rbottom=sn),pr}function _a(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Sn(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,St(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 Yo(){return Me&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function wa(){return Me&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Xo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=ui(a.widgets[x]));return y}function Lo(a,y,x,b,E){if(!E){var ne=Xo(y);x.top+=ne,x.bottom+=ne}if(b=="line")return x;b||(b="local");var ae=mr(y);if(b=="local"?ae+=ii(a.display):ae-=a.display.viewOffset,b=="page"||b=="window"){var ue=a.display.lineSpace.getBoundingClientRect();ae+=ue.top+(b=="window"?0:wa());var ce=ue.left+(b=="window"?0:Yo());x.left+=ce,x.right+=ce}return x.top+=ae,x.bottom+=ae,x}function Sa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Yo(),E-=wa();else if(x=="local"||!x){var ne=a.display.sizer.getBoundingClientRect();b+=ne.left,E+=ne.top}var ae=a.display.lineSpace.getBoundingClientRect();return{left:b-ae.left,top:E-ae.top}}function To(a,y,x,b,E){return b||(b=Bt(a.doc,y.line)),Lo(a,b,ya(a,b,y.ch,E),x)}function Ai(a,y,x,b,E,ne){b=b||Bt(a.doc,y.line),E||(E=co(a,b));function ae(sn,Cn){var Hn=Ki(a,E,sn,Cn?"right":"left",ne);return Cn?Hn.left=Hn.right:Hn.right=Hn.left,Lo(a,b,Hn,x)}var ue=Zt(b,a.doc.direction),ce=y.ch,he=y.sticky;if(ce>=b.text.length?(ce=b.text.length,he="before"):ce<=0&&(ce=0,he="after"),!ue)return ae(he=="before"?ce-1:ce,he=="before");function He(sn,Cn,Hn){var Xn=ue[Cn],or=Xn.level==1;return ae(Hn?sn-1:sn,or!=Hn)}var Ye=wt(ue,ce,he),Tt=ot,It=He(ce,Ye,he=="before");return Tt!=null&&(It.other=He(ce,Tt,he!="before")),It}function Wr(a,y){var x=0;y=Mt(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=Bt(a.doc,y.line),E=mr(b)+ii(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Rr(a,y,x,b,E){var ne=we(a,y,x);return ne.xRel=E,b&&(ne.outside=b),ne}function Si(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Rr(b.first,0,null,-1,-1);var E=Ue(b,x),ne=b.first+b.size-1;if(E>ne)return Rr(b.first+b.size-1,Bt(b,ne).text.length,null,1,1);y<0&&(y=0);for(var ae=Bt(b,E);;){var ue=Ji(a,ae,E,y,x),ce=nn(ae,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!ce)return ue;var he=ce.find(1);if(he.line==E)return he;ae=Bt(b,E=he.line)}}function ki(a,y,x,b){b-=Xo(y);var E=y.text.length,ne=Ee(function(ae){return Ki(a,x,ae-1).bottom<=b},E,0);return E=Ee(function(ae){return Ki(a,x,ae).top>b},ne,E),{begin:ne,end:E}}function oi(a,y,x,b){x||(x=co(a,y));var E=Lo(a,y,Ki(a,x,b),"line").top;return ki(a,y,x,E)}function mi(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Ji(a,y,x,b,E){E-=mr(y);var ne=co(a,y),ae=Xo(y),ue=0,ce=y.text.length,he=!0,He=Zt(y,a.doc.direction);if(He){var Ye=(a.options.lineWrapping?lo:Yi)(a,y,x,ne,He,b,E);he=Ye.level!=1,ue=he?Ye.from:Ye.to-1,ce=he?Ye.to:Ye.from-1}var Tt=null,It=null,sn=Ee(function(Ir){var Er=Ki(a,ne,Ir);return Er.top+=ae,Er.bottom+=ae,mi(Er,b,E,!1)?(Er.top<=E&&Er.left<=b&&(Tt=Ir,It=Er),!0):!1},ue,ce),Cn,Hn,Xn=!1;if(It){var or=b-It.left<It.right-b,Jn=or==he;sn=Tt+(Jn?0:1),Hn=Jn?"after":"before",Cn=or?It.left:It.right}else{!he&&(sn==ce||sn==ue)&&sn++,Hn=sn==0?"after":sn==y.text.length?"before":Ki(a,ne,sn-(he?1:0)).bottom+ae<=E==he?"after":"before";var pr=Ai(a,we(x,sn,Hn),"line",y,ne);Cn=pr.left,Xn=E<pr.top?-1:E>=pr.bottom?1:0}return sn=at(y.text,sn,1),Rr(x,sn,Hn,Xn,b-Cn)}function Yi(a,y,x,b,E,ne,ae){var ue=Ee(function(Ye){var Tt=E[Ye],It=Tt.level!=1;return mi(Ai(a,we(x,It?Tt.to:Tt.from,It?"before":"after"),"line",y,b),ne,ae,!0)},0,E.length-1),ce=E[ue];if(ue>0){var he=ce.level!=1,He=Ai(a,we(x,he?ce.from:ce.to,he?"after":"before"),"line",y,b);mi(He,ne,ae,!0)&&He.top>ae&&(ce=E[ue-1])}return ce}function lo(a,y,x,b,E,ne,ae){var ue=ki(a,y,b,ae),ce=ue.begin,he=ue.end;/\s/.test(y.text.charAt(he-1))&&he--;for(var He=null,Ye=null,Tt=0;Tt<E.length;Tt++){var It=E[Tt];if(!(It.from>=he||It.to<=ce)){var sn=It.level!=1,Cn=Ki(a,b,sn?Math.min(he,It.to)-1:Math.max(ce,It.from)).right,Hn=Cn<ne?ne-Cn+1e9:Cn-ne;(!He||Ye>Hn)&&(He=It,Ye=Hn)}}return He||(He=E[E.length-1]),He.from<ce&&(He={from:ce,to:He.to,level:He.level}),He.to>he&&(He={from:He.from,to:he,level:He.level}),He}var $i;function Wi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=Ke("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(Ke("br"));$i.appendChild(document.createTextNode("x"))}Xe(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),St(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Ke("span","xxxxxxxxxx"),x=Ke("pre",[y],"CodeMirror-line-like");Xe(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function fo(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,ne=y.gutters.firstChild,ae=0;ne;ne=ne.nextSibling,++ae){var ue=a.display.gutterSpecs[ae].className;x[ue]=ne.offsetLeft+ne.clientLeft+E,b[ue]=ne.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=Wi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(On(a.doc,E))return 0;var ne=0;if(E.widgets)for(var ae=0;ae<E.widgets.length;ae++)E.widgets[ae].height&&(ne+=E.widgets[ae].height);return x?ne+(Math.ceil(E.text.length/b)||1)*y:ne+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var E=x(b);E!=b.height&&yr(b,E)})}function wo(a,y,x,b){var E=a.display;if(!x&&Qe(y).getAttribute("cm-not-content")=="true")return null;var ne,ae,ue=E.lineSpace.getBoundingClientRect();try{ne=y.clientX-ue.left,ae=y.clientY-ue.top}catch(Ye){return null}var ce=Si(a,ne,ae),he;if(b&&ce.xRel>0&&(he=Bt(a.doc,ce.line).text).length==ce.ch){var He=Se(he,he.length,a.options.tabSize)-he.length;ce=we(ce.line,Math.max(0,Math.round((ne-no(a.display).left)/Qi(a.display))-He))}return ce}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Bi(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var E=a.display;if(b&&x<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)wn&&Jt(a.doc,y)<E.viewTo&&po(a);else if(x<=E.viewFrom)wn&&tn(a.doc,x+b)>E.viewFrom?po(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)po(a);else if(y<=E.viewFrom){var ne=Ea(a,x,x+b,1);ne?(E.view=E.view.slice(ne.index),E.viewFrom=ne.lineN,E.viewTo+=b):po(a)}else if(x>=E.viewTo){var ae=Ea(a,y,y,-1);ae?(E.view=E.view.slice(0,ae.index),E.viewTo=ae.lineN):po(a)}else{var ue=Ea(a,y,y,-1),ce=Ea(a,x,x+b,1);ue&&ce?(E.view=E.view.slice(0,ue.index).concat(Yr(a,ue.lineN,ce.lineN)).concat(E.view.slice(ce.index)),E.viewTo+=b):po(a)}var he=E.externalMeasured;he&&(x<he.lineN?he.lineN+=b:y<he.lineN+he.size&&(E.externalMeasured=null))}function ho(a,y,x){a.curOp.viewChanged=!0;var b=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ne=b.view[So(a,y)];if(ne.node!=null){var ae=ne.changes||(ne.changes=[]);vt(ae,x)==-1&&ae.push(x)}}}function po(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),ne,ae=a.display.view;if(!wn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ue=a.display.viewFrom,ce=0;ce<E;ce++)ue+=ae[ce].size;if(ue!=y){if(b>0){if(E==ae.length-1)return null;ne=ue+ae[E].size-y,E++}else ne=ue-y;y+=ne,x+=ne}for(;Jt(a.doc,x)!=x;){if(E==(b<0?0:ae.length-1))return null;x+=b*ae[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function Hs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=Yr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=Yr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(So(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(Yr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function wl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Jo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Sl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),ne=b.selection=document.createDocumentFragment(),ae=0;ae<x.sel.ranges.length;ae++)if(!(!y&&ae==x.sel.primIndex)){var ue=x.sel.ranges[ae];if(!(ue.from().line>=a.display.viewTo||ue.to().line<a.display.viewFrom)){var ce=ue.empty();(ce||a.options.showCursorWhenSelecting)&&El(a,ue.head,E),ce||$s(a,ue,ne)}}return b}function El(a,y,x){var b=Ai(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(Ke("div","\xA0","CodeMirror-cursor"));if(E.style.left=b.left+"px",E.style.top=b.top+"px",E.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var ne=x.appendChild(Ke("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ne.style.display="",ne.style.left=b.other.left+"px",ne.style.top=b.other.top+"px",ne.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function $s(a,y,x){var b=a.display,E=a.doc,ne=document.createDocumentFragment(),ae=no(a.display),ue=ae.left,ce=Math.max(b.sizerWidth,ro(a)-b.sizer.offsetLeft)-ae.right,he=E.direction=="ltr";function He(Jn,pr,Ir,Er){pr<0&&(pr=0),pr=Math.round(pr),Er=Math.round(Er),ne.appendChild(Ke("div",null,"CodeMirror-selected","position: absolute; left: "+Jn+`px;
|
|
|
top: `+pr+"px; width: "+(Ir==null?ce-Jn:Ir)+`px;
|
|
|
height: `+(Er-pr)+"px"))}function Ye(Jn,pr,Ir){var Er=Bt(E,Jn),zr=Er.text.length,Xr,bi;function ti(ci,Fi){return To(a,we(Jn,ci),"div",Er,Fi)}function ji(ci,Fi,Ei){var vi=oi(a,Er,null,ci),di=Fi=="ltr"==(Ei=="after")?"left":"right",ni=Ei=="after"?vi.begin:vi.end-(/\s/.test(Er.text.charAt(vi.end-1))?2:1);return ti(ni,di)[di]}var Ri=Zt(Er,E.direction);return je(Ri,pr||0,Ir==null?zr:Ir,function(ci,Fi,Ei,vi){var di=Ei=="ltr",ni=ti(ci,di?"left":"right"),zi=ti(Fi-1,di?"right":"left"),Vo=pr==null&&ci==0,xo=Ir==null&&Fi==zr,Oi=vi==0,oo=!Ri||vi==Ri.length-1;if(zi.top-ni.top<=3){var xi=(he?Vo:xo)&&Oi,bl=(he?xo:Vo)&&oo,uo=xi?ue:(di?ni:zi).left,Po=bl?ce:(di?zi:ni).right;He(uo,ni.top,Po-uo,ni.bottom)}else{var Oo,Ti,_o,xl;di?(Oo=he&&Vo&&Oi?ue:ni.left,Ti=he?ce:ji(ci,Ei,"before"),_o=he?ue:ji(Fi,Ei,"after"),xl=he&&xo&&oo?ce:zi.right):(Oo=he?ji(ci,Ei,"before"):ue,Ti=!he&&Vo&&Oi?ce:ni.right,_o=!he&&xo&&oo?ue:zi.left,xl=he?ji(Fi,Ei,"after"):ce),He(Oo,ni.top,Ti-Oo,ni.bottom),ni.bottom<zi.top&&He(ue,ni.bottom,null,zi.top),He(_o,zi.top,xl-_o,zi.bottom)}(!Xr||Ia(ni,Xr)<0)&&(Xr=ni),Ia(zi,Xr)<0&&(Xr=zi),(!bi||Ia(ni,bi)<0)&&(bi=ni),Ia(zi,bi)<0&&(bi=zi)}),{start:Xr,end:bi}}var Tt=y.from(),It=y.to();if(Tt.line==It.line)Ye(Tt.line,Tt.ch,It.ch);else{var sn=Bt(E,Tt.line),Cn=Bt(E,It.line),Hn=jt(sn)==jt(Cn),Xn=Ye(Tt.line,Tt.ch,Hn?sn.text.length+1:null).end,or=Ye(It.line,Hn?0:null,It.ch).start;Hn&&(Xn.top<or.top-2?(He(Xn.right,Xn.top,null,Xn.bottom),He(ue,or.top,or.left,or.bottom)):He(Xn.right,Xn.top,or.left-Xn.right,Xn.bottom)),Xn.bottom<or.top&&He(ue,Xn.bottom,null,or.top)}x.appendChild(ne)}function Ya(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()||Ao(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Xa(a))}function Ml(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ao(a))},100)}function Xa(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(_t(a,"focus",a,y),a.state.focused=!0,me(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),ke&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ya(a))}function Ao(a,y){a.state.delayingBlurEvent||(a.state.focused&&(_t(a,"blur",a,y),a.state.focused=!1,We(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ma(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],ne=a.options.lineWrapping,ae=void 0,ue=0;if(!E.hidden){if(ye&&ge<8){var ce=E.node.offsetTop+E.node.offsetHeight;ae=ce-x,x=ce}else{var he=E.node.getBoundingClientRect();ae=he.bottom-he.top,!ne&&E.text.firstChild&&(ue=E.text.firstChild.getBoundingClientRect().right-he.left-1)}var He=E.line.height-ae;if((He>.005||He<-.005)&&(yr(E.line,ae),kl(E.line),E.rest))for(var Ye=0;Ye<E.rest.length;Ye++)kl(E.rest[Ye]);if(ue>a.display.sizerWidth){var Tt=Math.ceil(ue/Qi(a.display));Tt>a.display.maxLineLength&&(a.display.maxLineLength=Tt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function kl(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 ka(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-ii(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ne=Ue(y,b),ae=Ue(y,E);if(x&&x.ensure){var ue=x.ensure.from.line,ce=x.ensure.to.line;ue<ne?(ne=ue,ae=Ue(y,mr(Bt(y,ue))+a.wrapper.clientHeight)):Math.min(ce,y.lastLine())>=ae&&(ne=Ue(y,mr(Bt(y,ce))-a.wrapper.clientHeight),ae=ce)}return{from:ne,to:Math.max(ae,ne+1)}}function Ws(a,y){if(!st(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!nt){var ne=Ke("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-x.viewOffset-ii(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+Hi(a)+x.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ne),ne.scrollIntoView(E),a.display.lineSpace.removeChild(ne)}}}function Zs(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?we(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?we(y.line,y.ch+1,"before"):y);for(var ne=0;ne<5;ne++){var ae=!1,ue=Ai(a,y),ce=!x||x==y?ue:Ai(a,x);E={left:Math.min(ue.left,ce.left),top:Math.min(ue.top,ce.top)-b,right:Math.max(ue.left,ce.left),bottom:Math.max(ue.bottom,ce.bottom)+b};var he=Ja(a,E),He=a.doc.scrollTop,Ye=a.doc.scrollLeft;if(he.scrollTop!=null&&(qo(a,he.scrollTop),Math.abs(a.doc.scrollTop-He)>1&&(ae=!0)),he.scrollLeft!=null&&(Eo(a,he.scrollLeft),Math.abs(a.doc.scrollLeft-Ye)>1&&(ae=!0)),!ae)break}return E}function js(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=Wi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ne=ao(a),ae={};y.bottom-y.top>ne&&(y.bottom=y.top+ne);var ue=a.doc.height+Ui(x),ce=y.top<b,he=y.bottom>ue-b;if(y.top<E)ae.scrollTop=ce?0:y.top;else if(y.bottom>E+ne){var He=Math.min(y.top,(he?ue:y.bottom)-ne);He!=E&&(ae.scrollTop=He)}var Ye=a.options.fixedGutter?0:x.gutters.offsetWidth,Tt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-Ye,It=ro(a)-x.gutters.offsetWidth,sn=y.right-y.left>It;return sn&&(y.right=y.left+It),y.left<10?ae.scrollLeft=0:y.left<Tt?ae.scrollLeft=Math.max(0,y.left+Ye-(sn?0:10)):y.right>It+Tt-3&&(ae.scrollLeft=y.right+(sn?0:10)-It),ae}function Qa(a,y){y!=null&&(Pa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Bo(a){Pa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Pa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gs(a,y){Pa(a),a.curOp.scrollToPos=y}function Pa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Wr(a,y.from),b=Wr(a,y.to);Pl(a,x,b,y.margin)}}function Pl(a,y,x,b){var E=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ol(a,y,!0),z&&el(a),na(a,100))}function Ol(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Bl(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+Ui(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+Hi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=Ke("div",[Ke("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Ke("div",[Ke("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),rt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),rt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ye&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ne=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ne)+"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=Be&&!be?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new fe,this.disableVert=new fe},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),ne=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);ne!=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;Dl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Ma(a),Dl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Dl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Ll={native:Io,null:ta};function Tl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&We(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ll[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),rt(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&&me(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Mo(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},Ci(a.curOp)}function ko(a){var y=a.curOp;y&&hi(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;_s(x)})}function _s(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 E=0;E<y.length;E++)Ys(y[E]);for(var ne=0;ne<y.length;ne++)Xs(y[ne]);for(var ae=0;ae<y.length;ae++)Js(y[ae])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&xr(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Oa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Ys(a){var y=a.cm,x=y.display;a.updatedDisplay&&Ma(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+Hi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-ro(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Xs(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==qe();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&&Ya(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Js(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Al(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Ol(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=Zs(y,Mt(b,a.scrollToPos.from),Mt(b,a.scrollToPos.to),a.scrollToPos.margin);Ws(y,E)}var ne=a.maybeHiddenMarkers,ae=a.maybeUnhiddenMarkers;if(ne)for(var ue=0;ue<ne.length;++ue)ne[ue].lines.length||_t(ne[ue],"hide");if(ae)for(var ce=0;ce<ae.length;++ce)ae[ce].lines.length&&_t(ae[ce],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&_t(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Zi(a,y){if(a.curOp)return y();Mo(a);try{return y()}finally{ko(a)}}function gi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Mo(a);try{return y.apply(a,arguments)}finally{ko(a)}}}function Li(a){return function(){if(this.curOp)return a.apply(this,arguments);Mo(this);try{return a.apply(this,arguments)}finally{ko(this)}}}function yi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Mo(y);try{return a.apply(this,arguments)}finally{ko(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,At(Qs,a))}function Qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=mt(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ne){if(b.line>=a.display.viewFrom){var ae=ne.styles,ue=ne.text.length>a.options.maxHighlightLength?sr(y.mode,b.state):null,ce=In(a,ne,b,!0);ue&&(b.state=ue),ne.styles=ce.styles;var he=ne.styleClasses,He=ce.classes;He?ne.styleClasses=He:he&&(ne.styleClasses=null);for(var Ye=!ae||ae.length!=ne.styles.length||he!=He&&(!he||!He||he.bgClass!=He.bgClass||he.textClass!=He.textClass),Tt=0;!Ye&&Tt<ae.length;++Tt)Ye=ae[Tt]!=ne.styles[Tt];Ye&&E.push(b.line),ne.stateAfter=b.save(),b.nextLine()}else ne.text.length<=a.options.maxHighlightLength&&Ge(a,ne.text,b),ne.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Zi(a,function(){for(var ne=0;ne<E.length;ne++)ho(a,E[ne],"text")})}}var Oa=function(a,y,x){var b=a.display;this.viewport=y,this.visible=ka(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=ro(a),this.force=x,this.dims=fo(a),this.events=[]};Oa.prototype.signal=function(a,y){Lt(a,y)&&this.events.push(arguments)},Oa.prototype.finish=function(){for(var a=0;a<this.events.length;a++)_t.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=Hi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Hi(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=qe();if(!y||!et(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&et(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==qe())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&et(document.body,a.anchorNode)&&et(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 po(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&wl(a)==0)return!1;Nl(a)&&(po(a),y.dims=fo(a));var E=b.first+b.size,ne=Math.max(y.visible.from-a.options.viewportMargin,b.first),ae=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<ne&&ne-x.viewFrom<20&&(ne=Math.max(b.first,x.viewFrom)),x.viewTo>ae&&x.viewTo-ae<20&&(ae=Math.min(E,x.viewTo)),wn&&(ne=Jt(a.doc,ne),ae=tn(a.doc,ae));var ue=ne!=x.viewFrom||ae!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hs(a,ne,ae),x.viewOffset=mr(Bt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ce=wl(a);if(!ue&&ce==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var he=eu(a);return ce>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),ce>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(he),St(x.cursorDiv),St(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ue&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Al(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==ro(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Ui(a.display)-ao(a),x.top)}),y.visible=ka(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=ka(a.display,a.doc,x));if(!qa(a,y))break;Ma(a);var E=ea(a);Jo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Oa(a,y);if(qa(a,x)){Ma(a),Al(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,ne=b.lineDiv,ae=ne.firstChild;function ue(sn){var Cn=sn.nextSibling;return ke&&Be&&a.display.currentWheelTarget==sn?sn.style.display="none":sn.parentNode.removeChild(sn),Cn}for(var ce=b.view,he=b.viewFrom,He=0;He<ce.length;He++){var Ye=ce[He];if(!Ye.hidden)if(!Ye.node||Ye.node.parentNode!=ne){var Tt=Pr(a,Ye,he,x);ne.insertBefore(Tt,ae)}else{for(;ae!=Ye.node;)ae=ue(ae);var It=E&&y!=null&&y<=he&&Ye.lineNumber;Ye.changes&&(vt(Ye.changes,"gutter")>-1&&(It=!1),Mi(a,Ye,he,x)),It&&(St(Ye.lineNumber),Ye.lineNumber.appendChild(document.createTextNode(Re(a.options,he)))),ae=Ye.node.nextSibling}he+=Ye.size}for(;ae;)ae=ue(ae)}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+Hi(a)+"px"}function Bl(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,ne=b+"px",ae=0;ae<x.length;ae++)if(!x[ae].hidden){a.options.fixedGutter&&(x[ae].gutter&&(x[ae].gutter.style.left=ne),x[ae].gutterBackground&&(x[ae].gutterBackground.style.left=ne));var ue=x[ae].alignable;if(ue)for(var ce=0;ce<ue.length;ce++)ue[ce].style.left=ne}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Re(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(Ke("div",[Ke("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ne=E.firstChild.offsetWidth,ae=E.offsetWidth-ne;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ne,b.lineGutter.offsetWidth-ae)+1,b.lineNumWidth=b.lineNumInnerWidth+ae,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var ne=a[E],ae=null;if(typeof ne!="string"&&(ae=ne.style,ne=ne.className),ne=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ne,style:ae})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;St(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],ne=E.className,ae=E.style,ue=y.appendChild(Ke("div",null,"CodeMirror-gutter "+ne));ae&&(ue.style.cssText=ae),ne=="CodeMirror-linenumbers"&&(a.lineGutter=ue,ue.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),Bi(a),Bl(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=Ke("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=Ke("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=ht("div",null,"CodeMirror-code"),E.selectionDiv=Ke("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=Ke("div",null,"CodeMirror-cursors"),E.measure=Ke("div",null,"CodeMirror-measure"),E.lineMeasure=Ke("div",null,"CodeMirror-measure"),E.lineSpace=ht("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var ne=ht("div",[E.lineSpace],"CodeMirror-lines");E.mover=Ke("div",[ne],null,"position: relative"),E.sizer=Ke("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=Ke("div",null,null,"position: absolute; height: "+Vt+"px; width: 1px;"),E.gutters=Ke("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=Ke("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=Ke("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),ye&&ge<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!ke&&!(z&&Oe)&&(E.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(E.wrapper):a(E.wrapper)),E.viewFrom=E.viewTo=y.first,E.reportedViewFrom=E.reportedViewTo=y.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=rl(b.gutters,b.lineNumbers),Rl(E),x.init(E)}var Da=0,Gi=null;ye?Gi=-.53:z?Gi=15:Me?Gi=-.7:Ze&&(Gi=-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*=Gi,y.y*=Gi,y}function zl(a,y){var x=Fl(y),b=x.x,E=x.y,ne=a.display,ae=ne.scroller,ue=ae.scrollWidth>ae.clientWidth,ce=ae.scrollHeight>ae.clientHeight;if(b&&ue||E&&ce){if(E&&Be&&ke){e:for(var he=y.target,He=ne.view;he!=ae;he=he.parentNode)for(var Ye=0;Ye<He.length;Ye++)if(He[Ye].node==he){a.display.currentWheelTarget=he;break e}}if(b&&!z&&!de&&Gi!=null){E&&ce&&qo(a,Math.max(0,ae.scrollTop+E*Gi)),Eo(a,Math.max(0,ae.scrollLeft+b*Gi)),(!E||E&&ce)&&Qt(y),ne.wheelStartX=null;return}if(E&&Gi!=null){var Tt=E*Gi,It=a.doc.scrollTop,sn=It+ne.wrapper.clientHeight;Tt<0?It=Math.max(0,It+Tt-50):sn=Math.min(a.doc.height,sn+Tt+50),el(a,{top:It,bottom:sn})}Da<20&&(ne.wheelStartX==null?(ne.wheelStartX=ae.scrollLeft,ne.wheelStartY=ae.scrollTop,ne.wheelDX=b,ne.wheelDY=E,setTimeout(function(){if(ne.wheelStartX!=null){var Cn=ae.scrollLeft-ne.wheelStartX,Hn=ae.scrollTop-ne.wheelStartY,Xn=Hn&&ne.wheelDY&&Hn/ne.wheelDY||Cn&&ne.wheelDX&&Cn/ne.wheelDX;ne.wheelStartX=ne.wheelStartY=null,Xn&&(Gi=(Gi*Da+Xn)/(Da+1),++Da)}},200)):(ne.wheelDX+=b,ne.wheelDY+=E))}}var Vi=function(a,y){this.ranges=a,this.primIndex=y};Vi.prototype.primary=function(){return this.ranges[this.primIndex]},Vi.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(!ft(x.anchor,b.anchor)||!ft(x.head,b.head))return!1}return!0},Vi.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Vr(qt(this.ranges[y].anchor),qt(this.ranges[y].head));return new Vi(a,this.primIndex)},Vi.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Vi.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Fe(y,b.from())>=0&&Fe(a,b.to())<=0)return x}return-1};var Vr=function(a,y){this.anchor=a,this.head=y};Vr.prototype.from=function(){return hn(this.anchor,this.head)},Vr.prototype.to=function(){return rn(this.anchor,this.head)},Vr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qi(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Tt,It){return Fe(Tt.from(),It.from())}),x=vt(y,E);for(var ne=1;ne<y.length;ne++){var ae=y[ne],ue=y[ne-1],ce=Fe(ue.to(),ae.from());if(b&&!ae.empty()?ce>0:ce>=0){var he=hn(ue.from(),ae.from()),He=rn(ue.to(),ae.to()),Ye=ue.empty()?ae.from()==ae.head:ue.from()==ue.head;ne<=x&&--x,y.splice(--ne,2,new Vr(Ye?He:he,Ye?he:He))}}return new Vi(y,x)}function mo(a,y){return new Vi([new Vr(a,y||a)],0)}function vo(a){return a.text?we(a.from.line+a.text.length-1,tt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Hl(a,y){if(Fe(a,y.from)<0)return a;if(Fe(a,y.to)<=0)return vo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=vo(y).ch-y.to.ch),we(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var E=a.sel.ranges[b];x.push(new Vr(Hl(E.anchor,y),Hl(E.head,y)))}return qi(a.cm,x,a.sel.primIndex)}function $l(a,y,x){return a.line==y.line?we(x.line,a.ch-y.ch+x.ch):we(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=we(a.first,0),ne=E,ae=0;ae<y.length;ae++){var ue=y[ae],ce=$l(ue.from,E,ne),he=$l(vo(ue),E,ne);if(E=ue.to,ne=he,x=="around"){var He=a.sel.ranges[ae],Ye=Fe(He.head,He.anchor)<0;b[ae]=new Vr(Ye?he:ce,Ye?ce:he)}else b[ae]=new Vr(ce,ce)}return new Vi(b,a.sel.primIndex)}function ol(a){a.doc.mode=ur(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&&Bi(a)}function Wl(a,y){return y.from.ch==0&&y.to.ch==0&&tt(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function E(or){return x?x[or]:null}function ne(or,Jn,pr){Lr(or,Jn,pr,b),Ur(or,"change",or,y)}function ae(or,Jn){for(var pr=[],Ir=or;Ir<Jn;++Ir)pr.push(new Br(he[Ir],E(Ir),b));return pr}var ue=y.from,ce=y.to,he=y.text,He=Bt(a,ue.line),Ye=Bt(a,ce.line),Tt=tt(he),It=E(he.length-1),sn=ce.line-ue.line;if(y.full)a.insert(0,ae(0,he.length)),a.remove(he.length,a.size-he.length);else if(Wl(a,y)){var Cn=ae(0,he.length-1);ne(Ye,Ye.text,It),sn&&a.remove(ue.line,sn),Cn.length&&a.insert(ue.line,Cn)}else if(He==Ye)if(he.length==1)ne(He,He.text.slice(0,ue.ch)+Tt+He.text.slice(ce.ch),It);else{var Hn=ae(1,he.length-1);Hn.push(new Br(Tt+He.text.slice(ce.ch),It,b)),ne(He,He.text.slice(0,ue.ch)+he[0],E(0)),a.insert(ue.line+1,Hn)}else if(he.length==1)ne(He,He.text.slice(0,ue.ch)+he[0]+Ye.text.slice(ce.ch),E(0)),a.remove(ue.line+1,sn);else{ne(He,He.text.slice(0,ue.ch)+he[0],E(0)),ne(Ye,Tt+Ye.text.slice(ce.ch),It);var Xn=ae(1,he.length-1);sn>1&&a.remove(ue.line+1,sn-1),a.insert(ue.line+1,Xn)}Ur(a,"change",a,y)}function go(a,y,x){function b(E,ne,ae){if(E.linked)for(var ue=0;ue<E.linked.length;++ue){var ce=E.linked[ue];if(ce.doc!=ne){var he=ae&&ce.sharedHist;x&&!he||(y(ce.doc,he),b(ce.doc,E,he))}}}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),jl(a),a.options.lineWrapping||xr(a),a.options.mode=y.modeOption,Bi(a)}function jl(a){(a.doc.direction=="rtl"?me:We)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Zi(a,function(){jl(a),Bi(a)})}function La(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:qt(y.from),to:vo(y),text:ln(a,y.from,y.to)};return _l(a,x,y.from.line,y.to.line+1),go(a,function(b){return _l(b,x,y.from.line,y.to.line+1)},!0),x}function Gl(a){for(;a.length;){var y=tt(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Gl(a.done),tt(a.done);if(a.done.length&&!tt(a.done).ranges)return tt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),tt(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var ne=+new Date,ae,ue;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>ne-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(ae=lu(E,E.lastOp==b)))ue=tt(ae.changes),Fe(y.from,y.to)==0&&Fe(y.from,ue.to)==0?ue.to=vo(y):ae.changes.push(ll(a,y));else{var ce=tt(E.done);for((!ce||!ce.ranges)&&Ta(a.sel,E.done),ae={changes:[ll(a,y)],generation:E.generation},E.done.push(ae);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=ne,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ue||_t(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,ne=b&&b.origin;x==E.lastSelOp||ne&&E.lastSelOrigin==ne&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==ne||su(a,ne,tt(E.done),y))?E.done[E.done.length-1]=y:Ta(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=ne,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gl(E.undone)}function Ta(a,y){var x=tt(y);x&&x.ranges&&x.equals(a)||y.push(a)}function _l(a,y,x,b){var E=y["spans_"+a.id],ne=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(ae){ae.markedSpans&&((E||(E=y["spans_"+a.id]={}))[ne]=ae.markedSpans),++ne})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],E=0;E<y.text.length;++E)b.push(cu(x[E]));return b}function Ul(a,y){var x=du(a,y),b=hr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var ne=x[E],ae=b[E];if(ne&&ae)e:for(var ue=0;ue<ae.length;++ue){for(var ce=ae[ue],he=0;he<ne.length;++he)if(ne[he].marker==ce.marker)continue e;ne.push(ce)}else ae&&(x[E]=ae)}return x}function Ro(a,y,x){for(var b=[],E=0;E<a.length;++E){var ne=a[E];if(ne.ranges){b.push(x?Vi.prototype.deepCopy.call(ne):ne);continue}var ae=ne.changes,ue=[];b.push({changes:ue});for(var ce=0;ce<ae.length;++ce){var he=ae[ce],He=void 0;if(ue.push({from:he.from,to:he.to,text:he.text}),y)for(var Ye in he)(He=Ye.match(/^spans_(\d+)$/))&&vt(y,Number(He[1]))>-1&&(tt(ue)[Ye]=he[Ye],delete he[Ye])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var ne=Fe(y,E)<0;ne!=Fe(x,E)<0?(E=y,y=x):ne!=Fe(y,x)<0&&(y=x)}return new Vr(E,y)}else return new Vr(x||y,y)}function Aa(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Pi(a,new Vi([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),ne=0;ne<a.sel.ranges.length;ne++)b[ne]=sl(a.sel.ranges[ne],y[ne],null,E);var ae=qi(a.cm,b,a.sel.primIndex);Pi(a,ae,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,Pi(a,qi(a.cm,E,a.sel.primIndex),b)}function Yl(a,y,x,b){Pi(a,mo(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var ne=0;ne<E.length;ne++)this.ranges[ne]=new Vr(Mt(a,E[ne].anchor),Mt(a,E[ne].head))},origin:x&&x.origin};return _t(a,"beforeSelectionChange",a,b),a.cm&&_t(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?qi(a.cm,b.ranges,b.ranges.length-1):y}function Xl(a,y,x){var b=a.history.done,E=tt(b);E&&E.ranges?(b[b.length-1]=y,Ba(a,y,x)):Pi(a,y,x)}function Pi(a,y,x){Ba(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Ba(a,y,x){(Lt(a,"beforeSelectionChange")||a.cm&&Lt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Fe(y.primary().head,a.sel.primary().head)<0?-1:1);Jl(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Bo(a.cm)}function Jl(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Gt(a.cm)),Ur(a,"cursorActivity",a))}function Ql(a){Jl(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var E,ne=0;ne<y.ranges.length;ne++){var ae=y.ranges[ne],ue=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ne],ce=Na(a,ae.anchor,ue&&ue.anchor,x,b),he=Na(a,ae.head,ue&&ue.head,x,b);(E||ce!=ae.anchor||he!=ae.head)&&(E||(E=y.ranges.slice(0,ne)),E[ne]=new Vr(ce,he))}return E?qi(a.cm,E,y.primIndex):y}function Fo(a,y,x,b,E){var ne=Bt(a,y.line);if(ne.markedSpans)for(var ae=0;ae<ne.markedSpans.length;++ae){var ue=ne.markedSpans[ae],ce=ue.marker,he="selectLeft"in ce?!ce.selectLeft:ce.inclusiveLeft,He="selectRight"in ce?!ce.selectRight:ce.inclusiveRight;if((ue.from==null||(he?ue.from<=y.ch:ue.from<y.ch))&&(ue.to==null||(He?ue.to>=y.ch:ue.to>y.ch))){if(E&&(_t(ce,"beforeCursorEnter"),ce.explicitlyCleared))if(ne.markedSpans){--ae;continue}else break;if(!ce.atomic)continue;if(x){var Ye=ce.find(b<0?1:-1),Tt=void 0;if((b<0?He:he)&&(Ye=es(a,Ye,-b,Ye&&Ye.line==y.line?ne:null)),Ye&&Ye.line==y.line&&(Tt=Fe(Ye,x))&&(b<0?Tt<0:Tt>0))return Fo(a,Ye,y,b,E)}var It=ce.find(b<0?-1:1);return(b<0?he:He)&&(It=es(a,It,b,It.line==y.line?ne:null)),It?Fo(a,It,y,b,E):null}}return y}function Na(a,y,x,b,E){var ne=b||1,ae=Fo(a,y,x,ne,E)||!E&&Fo(a,y,x,ne,!0)||Fo(a,y,x,-ne,E)||!E&&Fo(a,y,x,-ne,!0);return ae||(a.cantEdit=!0,we(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Mt(a,we(y.line-1)):null:x>0&&y.ch==(b||Bt(a,y.line)).text.length?y.line<a.first+a.size-1?we(y.line+1,0):null:new we(y.line,y.ch+x)}function ts(a){a.setSelection(we(a.firstLine(),0),we(a.lastLine()),ze)}function ns(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(E,ne,ae,ue){E&&(b.from=Mt(a,E)),ne&&(b.to=Mt(a,ne)),ae&&(b.text=ae),ue!==void 0&&(b.origin=ue)}),_t(a,"beforeChange",a,b),a.cm&&_t(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 gi(a.cm,zo)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Lt(a,"beforeChange")||a.cm&&Lt(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=Nn&&!x&&Sr(a,y.from,y.to);if(b)for(var E=b.length-1;E>=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&Fe(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,hr(a,y));var b=[];go(a,function(E,ne){!ne&&vt(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,hr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,ne,ae=a.sel,ue=y=="undo"?E.done:E.undone,ce=y=="undo"?E.undone:E.done,he=0;he<ue.length&&(ne=ue[he],!(x?ne.ranges&&!ne.equals(a.sel):!ne.ranges));he++);if(he!=ue.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(ne=ue.pop(),ne.ranges){if(Ta(ne,ce),x&&!ne.equals(a.sel)){Pi(a,ne,{clearRedo:!1});return}ae=ne}else if(b){ue.push(ne);return}else break;var He=[];Ta(ae,ce),ce.push({changes:He,generation:E.generation}),E.generation=ne.generation||++E.maxGeneration;for(var Ye=Lt(a,"beforeChange")||a.cm&&Lt(a.cm,"beforeChange"),Tt=function(Cn){var Hn=ne.changes[Cn];if(Hn.origin=y,Ye&&!ns(a,Hn,!1))return ue.length=0,{};He.push(ll(a,Hn));var Xn=Cn?il(a,Hn):tt(ue);oa(a,Hn,Xn,Ul(a,Hn)),!Cn&&a.cm&&a.cm.scrollIntoView({from:Hn.from,to:vo(Hn)});var or=[];go(a,function(Jn,pr){!pr&&vt(or,Jn.history)==-1&&(ls(Jn.history,Hn),or.push(Jn.history)),oa(Jn,Hn,null,Ul(Jn,Hn))})},It=ne.changes.length-1;It>=0;--It){var sn=Tt(It);if(sn)return sn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Vi(Kt(a.sel.ranges,function(E){return new Vr(we(E.anchor.line+y,E.anchor.ch),we(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Bi(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)ho(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return gi(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){is(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var E=y.text.length-1-(a.first-y.from.line);is(a,E),y={from:we(a.first,0),to:we(y.to.line+E,y.to.ch),text:[tt(y.text)],origin:y.origin}}var ne=a.lastLine();y.to.line>ne&&(y={from:y.from,to:we(ne,Bt(a,ne).text.length),text:[y.text[0]],origin:y.origin}),y.removed=ln(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Ba(a,x,ze),a.cantEdit&&Na(a,we(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,ne=y.from,ae=y.to,ue=!1,ce=ne.line;a.options.lineWrapping||(ce=Te(jt(Bt(b,ne.line))),b.iter(ce,ae.line+1,function(It){if(It==E.maxLine)return ue=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Gt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(ce,ne.line+y.text.length,function(It){var sn=kr(It);sn>E.maxLineLength&&(E.maxLine=It,E.maxLineLength=sn,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),Pn(b,ne.line),na(a,400);var he=y.text.length-(ae.line-ne.line)-1;y.full?Bi(a):ne.line==ae.line&&y.text.length==1&&!Wl(a.doc,y)?ho(a,ne.line,"text"):Bi(a,ne.line,ae.line+1,he);var He=Lt(a,"changes"),Ye=Lt(a,"change");if(Ye||He){var Tt={from:ne,to:ae,text:y.text,removed:y.removed,origin:y.origin};Ye&&Ur(a,"change",a,Tt),He&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Tt)}a.display.selForContextMenu=null}function Ho(a,y,x,b,E){var ne;b||(b=x),Fe(b,x)<0&&(ne=[b,x],x=ne[0],b=ne[1]),typeof y=="string"&&(y=a.splitLines(y)),zo(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var E=0;E<a.length;++E){var ne=a[E],ae=!0;if(ne.ranges){ne.copied||(ne=a[E]=ne.deepCopy(),ne.copied=!0);for(var ue=0;ue<ne.ranges.length;ue++)os(ne.ranges[ue].anchor,y,x,b),os(ne.ranges[ue].head,y,x,b);continue}for(var ce=0;ce<ne.changes.length;++ce){var he=ne.changes[ce];if(x<he.from.line)he.from=we(he.from.line+b,he.from.ch),he.to=we(he.to.line+b,he.to.ch);else if(y<=he.to.line){ae=!1;break}}ae||(a.splice(0,E+1),E=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;as(a.done,x,b,E),as(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,ne=y;return typeof y=="number"?ne=Bt(a,Wt(a,y)):E=Te(y),E==null?null:(b(ne,E)&&a.cm&&ho(a.cm,E,x),ne)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,Tr(E),Ur(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function sa(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var E=a[b];y+=E.chunkSize(),x+=E.height,E.parent=this}this.size=y,this.height=x,this.parent=null}sa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],E=b.chunkSize();if(a<E){var ne=Math.min(y,E-a),ae=b.height;if(b.removeInner(a,ne),this.height-=ae-b.height,E==ne&&(this.children.splice(x--,1),b.parent=null),(y-=ne)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var ue=[];this.collapse(ue),this.children=[new la(ue)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var E=this.children[b],ne=E.chunkSize();if(a<=ne){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var ae=E.lines.length%25+25,ue=ae;ue<E.lines.length;){var ce=new la(E.lines.slice(ue,ue+=25));E.height-=ce.height,this.children.splice(++b,0,ce),ce.parent=this}E.lines=E.lines.slice(0,ae),this.maybeSpill()}break}a-=ne}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=vt(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],ne=E.chunkSize();if(a<ne){var ae=Math.min(y,ne-a);if(E.iterN(a,ae,x))return!0;if((y-=ae)==0)break;a=0}else a-=ne}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=Te(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var ne=ui(this);yr(x,Math.max(0,x.height-ne)),a&&(Zi(a,function(){ss(a,x,-ne),ho(a,b,"widget")}),Ur(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var E=ui(this)-y;E&&(On(this.doc,b)||yr(b,b.height+E),x&&Zi(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),Ur(x,"lineWidgetChanged",x,a,Te(b))}))},Nt(ua);function ss(a,y,x){mr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Qa(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),ne=a.cm;return ne&&E.noHScroll&&(ne.display.alignWidgets=!0),aa(a,y,"widget",function(ae){var ue=ae.widgets||(ae.widgets=[]);if(E.insertAt==null?ue.push(E):ue.splice(Math.min(ue.length-1,Math.max(0,E.insertAt)),0,E),E.line=ae,ne&&!On(a,ae)){var ce=mr(ae)<a.scrollTop;yr(ae,ae.height+ui(E)),ce&&Qa(ne,E.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Ur(ne,"lineWidgetAdded",ne,E,typeof y=="number"?y:Te(y)),E}var us=0,yo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};yo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Mo(a),Lt(this,"clear")){var x=this.find();x&&Ur(this,"clear",x.from,x.to)}for(var b=null,E=null,ne=0;ne<this.lines.length;++ne){var ae=this.lines[ne],ue=rr(ae.markedSpans,this);a&&!this.collapsed?ho(a,Te(ae),"text"):a&&(ue.to!=null&&(E=Te(ae)),ue.from!=null&&(b=Te(ae))),ae.markedSpans=fr(ae.markedSpans,ue),ue.from==null&&this.collapsed&&!On(this.doc,ae)&&a&&yr(ae,Wi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ce=0;ce<this.lines.length;++ce){var he=jt(this.lines[ce]),He=kr(he);He>a.display.maxLineLength&&(a.display.maxLine=he,a.display.maxLineLength=He,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Bi(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Ur(a,"markerCleared",a,this,b,E),y&&ko(a),this.parent&&this.parent.clear()}},yo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E<this.lines.length;++E){var ne=this.lines[E],ae=rr(ne.markedSpans,this);if(ae.from!=null&&(x=we(y?ne:Te(ne),ae.from),a==-1))return x;if(ae.to!=null&&(b=we(y?ne:Te(ne),ae.to),a==1))return b}return x&&{from:x,to:b}},yo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Zi(b,function(){var E=y.line,ne=Te(y.line),ae=io(b,ne);if(ae&&(Uo(ae),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!On(x.doc,E)&&x.height!=null){var ue=x.height;x.height=null;var ce=ui(x)-ue;ce&&yr(E,E.height+ce)}Ur(b,"markerChanged",b,a)})},yo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||vt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},yo.prototype.detachLine=function(a){if(this.lines.splice(vt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Nt(yo);function $o(a,y,x,b,E){if(b&&b.shared)return mu(a,y,x,b,E);if(a.cm&&!a.cm.curOp)return gi(a.cm,$o)(a,y,x,b,E);var ne=new yo(a,E),ae=Fe(y,x);if(b&&Xt(b,ne,!1),ae>0||ae==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=ht("span",[ne.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(an(a,y.line,y,x,ne)||y.line!=x.line&&an(a,x.line,y,x,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");jn()}ne.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ue=y.line,ce=a.cm,he;if(a.iter(ue,x.line+1,function(Ye){ce&&ne.collapsed&&!ce.options.lineWrapping&&jt(Ye)==ce.display.maxLine&&(he=!0),ne.collapsed&&ue!=y.line&&yr(Ye,0),Gn(Ye,new Zn(ne,ue==y.line?y.ch:null,ue==x.line?x.ch:null)),++ue}),ne.collapsed&&a.iter(y.line,x.line+1,function(Ye){On(a,Ye)&&yr(Ye,0)}),ne.clearOnEnter&&rt(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(nr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ne.collapsed&&(ne.id=++us,ne.atomic=!0),ce){if(he&&(ce.curOp.updateMaxLine=!0),ne.collapsed)Bi(ce,y.line,x.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var He=y.line;He<=x.line;He++)ho(ce,He,"text");ne.atomic&&Ql(ce.doc),Ur(ce,"markerAdded",ce,ne)}return ne}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();Ur(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Nt(ca);function mu(a,y,x,b,E){b=Xt(b),b.shared=!1;var ne=[$o(a,y,x,b,E)],ae=ne[0],ue=b.widgetNode;return go(a,function(ce){ue&&(b.widgetNode=ue.cloneNode(!0)),ne.push($o(ce,Mt(ce,y),Mt(ce,x),b,E));for(var he=0;he<ce.linked.length;++he)if(ce.linked[he].isParent)return;ae=tt(ne)}),new ca(ne,ae)}function cs(a){return a.findMarks(we(a.first,0),a.clipPos(we(a.lastLine())),function(y){return y.parent})}function vu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),ne=a.clipPos(E.from),ae=a.clipPos(E.to);if(Fe(ne,ae)){var ue=$o(a,ne,ae,b.primary,b.primary.type);b.markers.push(ue),ue.parent=b}}}function gu(a){for(var y=function(b){var E=a[b],ne=[E.primary.doc];go(E.primary.doc,function(ce){return ne.push(ce)});for(var ae=0;ae<E.markers.length;ae++){var ue=E.markers[ae];vt(ne,ue.doc)==-1&&(ue.parent=null,E.markers.splice(ae--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,Ni=function(a,y,x,b,E){if(!(this instanceof Ni))return new Ni(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new Br("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ne=we(x,0);this.sel=mo(ne),this.history=new La(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:ne,to:ne,text:a}),Pi(this,mo(ne),ze)};Ni.prototype=te(sa.prototype,{constructor:Ni,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=Kn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:yi(function(a){var y=we(this.first,0),x=this.first+this.size-1;zo(this,{from:y,to:we(x,Bt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),Pi(this,mo(y),ze)}),replaceRange:function(a,y,x,b){y=Mt(this,y),x=x?Mt(this,x):y,Ho(this,a,y,x,b)},getRange:function(a,y,x){var b=ln(this,Mt(this,a),Mt(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(Ce(this,a))return Bt(this,a)},getLineNumber:function(a){return Te(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Bt(this,a)),jt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Mt(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:yi(function(a,y,x){Yl(this,Mt(this,typeof a=="number"?we(a,y||0):a),null,x)}),setSelection:yi(function(a,y,x){Yl(this,Mt(this,a),Mt(this,y||a),x)}),extendSelection:yi(function(a,y,x){Aa(this,Mt(this,a),y&&Mt(this,y),x)}),extendSelections:yi(function(a,y){Kl(this,un(this,a),y)}),extendSelectionsBy:yi(function(a,y){var x=Kt(this.sel.ranges,a);Kl(this,un(this,x),y)}),setSelections:yi(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Vr(Mt(this,a[E].anchor),Mt(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Pi(this,qi(this.cm,b,y),x)}}),addSelection:yi(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Vr(Mt(this,a),Mt(this,y||a))),Pi(this,qi(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=ln(this,y[b].from(),y[b].to());x=x?x.concat(E):E}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var E=ln(this,x[b].from(),x[b].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[b]=E}return y},replaceSelection:function(a,y,x){for(var b=[],E=0;E<this.sel.ranges.length;E++)b[E]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:yi(function(a,y,x){for(var b=[],E=this.sel,ne=0;ne<E.ranges.length;ne++){var ae=E.ranges[ne];b[ne]={from:ae.from(),to:ae.to(),text:this.splitLines(a[ne]),origin:x}}for(var ue=y&&y!="end"&&ou(this,b,y),ce=b.length-1;ce>=0;ce--)zo(this,b[ce]);ue?Xl(this,ue):this.cm&&Bo(this.cm)}),undo:yi(function(){Ra(this,"undo")}),redo:yi(function(){Ra(this,"redo")}),undoSelection:yi(function(){Ra(this,"undo",!0)}),redoSelection:yi(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new La(this.history.maxGeneration),go(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(a){var y=this.history=new La(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(a.undone.slice(0),null,!0)},setGutterMarker:yi(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&re(E)&&(b.gutterMarkers=null),!0})}),clearGutter:yi(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,re(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Ce(this,a)||(y=a,a=Bt(this,a),!a))return null}else if(y=Te(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:yi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[E])b[E]=x;else{if(_e(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:yi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ne=b[E];if(ne)if(x==null)b[E]=null;else{var ae=ne.match(_e(x));if(!ae)return!1;var ue=ae.index+ae[0].length;b[E]=ne.slice(0,ae.index)+(!ae.index||ue==ne.length?"":" ")+ne.slice(ue)||null}else return!1;return!0})}),addLineWidget:yi(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return $o(this,Mt(this,a),Mt(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=Mt(this,a),$o(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Mt(this,a);var y=[],x=Bt(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var E=x[b];(E.from==null||E.from<=a.ch)&&(E.to==null||E.to>=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=Mt(this,a),y=Mt(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(ne){var ae=ne.markedSpans;if(ae)for(var ue=0;ue<ae.length;ue++){var ce=ae[ue];!(ce.to!=null&&E==a.line&&a.ch>=ce.to||ce.from==null&&E!=a.line||ce.from!=null&&E==y.line&&ce.from>=y.ch)&&(!x||x(ce.marker))&&b.push(ce.marker.parent||ce.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(E){var ne=E.text.length+b;if(ne>a)return y=a,!0;a-=ne,++x}),Mt(this,we(x,y))},indexFromPos:function(a){a=Mt(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 Ni(Kn(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 Ni(Kn(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 ei&&(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];go(a,function(E){return b.push(E.id)},!0),a.history=new La(null),a.history.done=Ro(this.history.done,b),a.history.undone=Ro(this.history.undone,b)}},iterLinkedDocs:function(a){go(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):dn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:yi(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))})}),Ni.prototype.eachLine=Ni.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(st(y,a)||wi(y.display,a))){Qt(a),ye&&(ds=+new Date);var x=wo(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,ne=Array(E),ae=0,ue=function(){++ae==E&&gi(y,function(){x=Mt(y.doc,x);var It={from:x,to:x,text:y.doc.splitLines(ne.filter(function(sn){return sn!=null}).join(y.doc.lineSeparator())),origin:"paste"};zo(y.doc,It),Xl(y.doc,mo(Mt(y.doc,x),Mt(y.doc,vo(It))))})()},ce=function(It,sn){if(y.options.allowDropFileTypes&&vt(y.options.allowDropFileTypes,It.type)==-1){ue();return}var Cn=new FileReader;Cn.onerror=function(){return ue()},Cn.onload=function(){var Hn=Cn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hn)){ue();return}ne[sn]=Hn,ue()},Cn.readAsText(It)},he=0;he<b.length;he++)ce(b[he],he);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 He=a.dataTransfer.getData("Text");if(He){var Ye;if(y.state.draggingText&&!y.state.draggingText.copy&&(Ye=y.listSelections()),Ba(y.doc,mo(x,x)),Ye)for(var Tt=0;Tt<Ye.length;++Tt)Ho(y.doc,"",Ye[Tt].anchor,Ye[Tt].head,"drag");y.replaceSelection(He,"around","paste"),y.display.input.focus()}}catch(It){}}}}function xu(a,y){if(ye&&(!a.state.draggingText||+new Date-ds<100)){Pe(y);return}if(!(st(a,y)||wi(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Ze)){var x=Ke("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",de&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),de&&x.parentNode.removeChild(x)}}function Cu(a,y){var x=wo(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=Ke("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Xe(a.display.dragCursor,b)}}function fs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var E=y[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var ne=0;ne<x.length;ne++)a(x[ne])})}}var ps=!1;function wu(){ps||(Su(),ps=!0)}function Su(){var a;rt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),rt(window,"blur",function(){return hs(Ao)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var bo={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++)bo[da+48]=bo[da+96]=String(da);for(var Fa=65;Fa<=90;Fa++)bo[Fa]=String.fromCharCode(Fa);for(var fa=1;fa<=12;fa++)bo[fa+111]=bo[fa+63235]="F"+fa;var so={};so.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"},so.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"},so.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"},so.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"]},so.default=Be?so.macDefault:so.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,ne,ae=0;ae<y.length-1;ae++){var ue=y[ae];if(/^(cmd|meta|m)$/i.test(ue))ne=!0;else if(/^a(lt)?$/i.test(ue))x=!0;else if(/^(c|ctrl|control)$/i.test(ue))b=!0;else if(/^s(hift)?$/i.test(ue))E=!0;else throw new Error("Unrecognized modifier name: "+ue)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ne&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Mu(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var E=Kt(x.split(" "),Iu),ne=0;ne<E.length;ne++){var ae=void 0,ue=void 0;ne==E.length-1?(ue=E.join(" "),ae=b):(ue=E.slice(0,ne+1).join(" "),ae="...");var ce=y[ue];if(!ce)y[ue]=ae;else if(ce!=ae)throw new Error("Inconsistent bindings for "+ue)}delete a[x]}for(var he in y)a[he]=y[he];return a}function Wo(a,y,x,b){y=za(y);var E=y.call?y.call(a,b):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&x(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Wo(a,y.fallthrough,x,b);for(var ne=0;ne<y.fallthrough.length;ne++){var ae=Wo(a,y.fallthrough[ne],x,b);if(ae)return ae}}}function ms(a){var y=typeof a=="string"?a:bo[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),(it?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(it?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gs(a,y){if(de&&a.keyCode==34&&a.char)return!1;var x=bo[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"?so[a]:a}function Zo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var ne=y(x[E]);b.length&&Fe(ne.from,tt(b).to)<=0;){var ae=b.pop();if(Fe(ae.from,ne.from)<0){ne.from=ae.from;break}}b.push(ne)}Zi(a,function(){for(var ue=b.length-1;ue>=0;ue--)Ho(a.doc,"",b[ue].from,b[ue].to,"+delete");Bo(a)})}function cl(a,y,x){var b=at(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 we(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var ne=Zt(x,y.doc.direction);if(ne){var ae=E<0?tt(ne):ne[0],ue=E<0==(ae.level==1),ce=ue?"after":"before",he;if(ae.level>0||y.doc.direction=="rtl"){var He=co(y,x);he=E<0?x.text.length-1:0;var Ye=Ki(y,He,he).top;he=Ee(function(Tt){return Ki(y,He,Tt).top==Ye},E<0==(ae.level==1)?ae.from:ae.to-1,he),ce=="before"&&(he=cl(x,he,1))}else he=E<0?ae.to:ae.from;return new we(b,he,ce)}}return new we(b,E<0?x.text.length:0,E<0?"before":"after")}function ku(a,y,x,b){var E=Zt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ne=wt(E,x.ch,x.sticky),ae=E[ne];if(a.doc.direction=="ltr"&&ae.level%2==0&&(b>0?ae.to>x.ch:ae.from<x.ch))return dl(y,x,b);var ue=function(Xn,or){return cl(y,Xn instanceof we?Xn.ch:Xn,or)},ce,he=function(Xn){return a.options.lineWrapping?(ce=ce||co(a,y),oi(a,y,ce,Xn)):{begin:0,end:y.text.length}},He=he(x.sticky=="before"?ue(x,-1):x.ch);if(a.doc.direction=="rtl"||ae.level==1){var Ye=ae.level==1==b<0,Tt=ue(x,Ye?1:-1);if(Tt!=null&&(Ye?Tt<=ae.to&&Tt<=He.end:Tt>=ae.from&&Tt>=He.begin)){var It=Ye?"before":"after";return new we(x.line,Tt,It)}}var sn=function(Xn,or,Jn){for(var pr=function(Xr,bi){return bi?new we(x.line,ue(Xr,1),"before"):new we(x.line,Xr,"after")};Xn>=0&&Xn<E.length;Xn+=or){var Ir=E[Xn],Er=or>0==(Ir.level!=1),zr=Er?Jn.begin:ue(Jn.end,-1);if(Ir.from<=zr&&zr<Ir.to||(zr=Er?Ir.from:ue(Ir.to,-1),Jn.begin<=zr&&zr<Jn.end))return pr(zr,Er)}},Cn=sn(ne+b,b,He);if(Cn)return Cn;var Hn=b>0?He.end:ue(He.begin,-1);return Hn!=null&&!(b>0&&Hn==y.text.length)&&(Cn=sn(b>0?0:E.length-1,b,he(Hn)),Cn)?Cn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ze)},killLine:function(a){return Zo(a,function(y){if(y.empty()){var x=Bt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:we(y.head.line+1,0)}:{from:y.head,to:we(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Zo(a,function(y){return{from:we(y.from().line,0),to:Mt(a.doc,we(y.to().line+1,0))}})},delLineLeft:function(a){return Zo(a,function(y){return{from:we(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(we(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(we(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ys(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bs(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Pu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},gt)},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")},gt)},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},gt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var ne=x[E].from(),ae=Se(a.getLine(ne.line),ne.ch,b);y.push(en(b-ae%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Zi(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,ne=Bt(a.doc,E.line).text;if(ne){if(E.ch==ne.length&&(E=new we(E.line,E.ch-1)),E.ch>0)E=new we(E.line,E.ch+1),a.replaceRange(ne.charAt(E.ch-1)+ne.charAt(E.ch-2),we(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var ae=Bt(a.doc,E.line-1).text;ae&&(E=new we(E.line,1),a.replaceRange(ne.charAt(0)+a.doc.lineSeparator()+ae.charAt(ae.length-1),we(E.line-1,ae.length-1),E,"+transpose"))}}x.push(new Vr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Zi(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);Bo(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=Bt(a.doc,y),b=jt(x);return b!=x&&(y=Te(b)),fl(!0,a,b,y,1)}function Pu(a,y){var x=Bt(a.doc,y),b=Dn(x);return b!=x&&(y=Te(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Bt(a.doc,x.line),E=Zt(b,a.doc.direction);if(!E||E[0].level==0){var ne=Math.max(x.ch,b.text.search(/\S/)),ae=y.line==x.line&&y.ch<=ne&&y.ch;return we(x.line,ae?0:ne,x.sticky)}return x}function Ha(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),E=y(a)!=Dt}finally{a.display.shift=b,a.state.suppressEdits=!1}return E}function Ou(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var E=Wo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&Wo(y,a.options.extraKeys,x,a)||Wo(y,a.options.keyMap,x,a)}var Du=new fe;function pa(a,y,x,b){var E=a.state.keySeq;if(E){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Du.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,E+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var E=Ou(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&Ur(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(Qt(x),Ya(a)),!!E}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 Lu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return Ha(a,b,!0)})}var hl=null;function ws(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=qe(),!st(y,a))){ye&&ge<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);de&&(hl=b?x:null,!b&&x==88&&!bn&&(Be?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),z&&!Be&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Tu(y)}}function Tu(a){var y=a.display.lineDiv;me(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(We(y,"CodeMirror-crosshair"),Pt(document,"keyup",x),Pt(document,"mouseover",x))}rt(document,"keyup",x),rt(document,"mouseover",x)}function Ss(a){a.keyCode==16&&(this.doc.sel.shift=!1),st(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(wi(y.display,a)||st(y,a)||a.ctrlKey&&!a.altKey||Be&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(de&&x==hl){hl=null,Qt(a);return}if(!(de&&(!a.which||a.which<10)&&Cs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Lu(y,a,E)||y.display.input.onKeyPress(a))}}}var Au=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+Au>a&&Fe(y,this.pos)==0&&x==this.button};var ma,va;function Bu(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(!(st(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,wi(x,a)){ke||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=yt(a),ne=b?Bu(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,ne,a))&&(E==1?b?Fu(y,b,ne,a):Qe(a)==x.scroller&&Qt(a):E==2?(b&&Aa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(Je?y.display.input.onContextMenu(a):Ml(y)))}}}function Nu(a,y,x,b,E){var ne="Click";return b=="double"?ne="Double"+ne:b=="triple"&&(ne="Triple"+ne),ne=(y==1?"Left":y==2?"Middle":"Right")+ne,pa(a,vs(ne,E),E,function(ae){if(typeof ae=="string"&&(ae=ha[ae]),!ae)return!1;var ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue=ae(a,x)!=Dt}finally{a.state.suppressEdits=!1}return ue})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var ne=ct?x.shiftKey&&x.metaKey:x.altKey;E.unit=ne?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=Be?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Be?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){ye?setTimeout(At(Il,a),0):a.curOp.focus=qe();var E=Ru(a,x,b),ne=a.doc.sel,ae;a.options.dragDrop&&$t&&!a.isReadOnly()&&x=="single"&&(ae=ne.contains(y))>-1&&(Fe((ae=ne.ranges[ae]).from(),y)<0||y.xRel>0)&&(Fe(ae.to(),y)>0||y.xRel<0)?zu(a,b,y,E):Hu(a,b,y,E)}function zu(a,y,x,b){var E=a.display,ne=!1,ae=gi(a,function(he){ke&&(E.scroller.draggable=!1),a.state.draggingText=!1,Pt(E.wrapper.ownerDocument,"mouseup",ae),Pt(E.wrapper.ownerDocument,"mousemove",ue),Pt(E.scroller,"dragstart",ce),Pt(E.scroller,"drop",ae),ne||(Qt(he),b.addNew||Aa(a.doc,x,null,null,b.extend),ke&&!Ze||ye&&ge==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(he){ne=ne||Math.abs(y.clientX-he.clientX)+Math.abs(y.clientY-he.clientY)>=10},ce=function(){return ne=!0};ke&&(E.scroller.draggable=!0),a.state.draggingText=ae,ae.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),rt(E.wrapper.ownerDocument,"mouseup",ae),rt(E.wrapper.ownerDocument,"mousemove",ue),rt(E.scroller,"dragstart",ce),rt(E.scroller,"drop",ae),Ml(a),setTimeout(function(){return E.input.focus()},20)}function Ms(a,y,x){if(x=="char")return new Vr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Vr(we(y.line,0),Mt(a.doc,we(y.line+1,0)));var b=x(a,y);return new Vr(b.from,b.to)}function Hu(a,y,x,b){var E=a.display,ne=a.doc;Qt(y);var ae,ue,ce=ne.sel,he=ce.ranges;if(b.addNew&&!b.extend?(ue=ne.sel.contains(x),ue>-1?ae=he[ue]:ae=new Vr(x,x)):(ae=ne.sel.primary(),ue=ne.sel.primIndex),b.unit=="rectangle")b.addNew||(ae=new Vr(x,x)),x=wo(a,y,!0,!0),ue=-1;else{var He=Ms(a,x,b.unit);b.extend?ae=sl(ae,He.anchor,He.head,b.extend):ae=He}b.addNew?ue==-1?(ue=he.length,Pi(ne,qi(a,he.concat([ae]),ue),{scroll:!1,origin:"*mouse"})):he.length>1&&he[ue].empty()&&b.unit=="char"&&!b.extend?(Pi(ne,qi(a,he.slice(0,ue).concat(he.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),ce=ne.sel):ul(ne,ue,ae,ut):(ue=0,Pi(ne,new Vi([ae],0),ut),ce=ne.sel);var Ye=x;function Tt(Jn){if(Fe(Ye,Jn)!=0)if(Ye=Jn,b.unit=="rectangle"){for(var pr=[],Ir=a.options.tabSize,Er=Se(Bt(ne,x.line).text,x.ch,Ir),zr=Se(Bt(ne,Jn.line).text,Jn.ch,Ir),Xr=Math.min(Er,zr),bi=Math.max(Er,zr),ti=Math.min(x.line,Jn.line),ji=Math.min(a.lastLine(),Math.max(x.line,Jn.line));ti<=ji;ti++){var Ri=Bt(ne,ti).text,ci=pn(Ri,Xr,Ir);Xr==bi?pr.push(new Vr(we(ti,ci),we(ti,ci))):Ri.length>ci&&pr.push(new Vr(we(ti,ci),we(ti,pn(Ri,bi,Ir))))}pr.length||pr.push(new Vr(x,x)),Pi(ne,qi(a,ce.ranges.slice(0,ue).concat(pr),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Jn)}else{var Fi=ae,Ei=Ms(a,Jn,b.unit),vi=Fi.anchor,di;Fe(Ei.anchor,vi)>0?(di=Ei.head,vi=hn(Fi.from(),Ei.anchor)):(di=Ei.anchor,vi=rn(Fi.to(),Ei.head));var ni=ce.ranges.slice(0);ni[ue]=$u(a,new Vr(Mt(ne,vi),di)),Pi(ne,qi(a,ni,ue),ut)}}var It=E.wrapper.getBoundingClientRect(),sn=0;function Cn(Jn){var pr=++sn,Ir=wo(a,Jn,!0,b.unit=="rectangle");if(Ir)if(Fe(Ir,Ye)!=0){a.curOp.focus=qe(),Tt(Ir);var Er=ka(E,ne);(Ir.line>=Er.to||Ir.line<Er.from)&&setTimeout(gi(a,function(){sn==pr&&Cn(Jn)}),150)}else{var zr=Jn.clientY<It.top?-20:Jn.clientY>It.bottom?20:0;zr&&setTimeout(gi(a,function(){sn==pr&&(E.scroller.scrollTop+=zr,Cn(Jn))}),50)}}function Hn(Jn){a.state.selectingText=!1,sn=1/0,Jn&&(Qt(Jn),E.input.focus()),Pt(E.wrapper.ownerDocument,"mousemove",Xn),Pt(E.wrapper.ownerDocument,"mouseup",or),ne.history.lastSelOrigin=null}var Xn=gi(a,function(Jn){Jn.buttons===0||!yt(Jn)?Hn(Jn):Cn(Jn)}),or=gi(a,Hn);a.state.selectingText=or,rt(E.wrapper.ownerDocument,"mousemove",Xn),rt(E.wrapper.ownerDocument,"mouseup",or)}function $u(a,y){var x=y.anchor,b=y.head,E=Bt(a.doc,x.line);if(Fe(x,b)==0&&x.sticky==b.sticky)return y;var ne=Zt(E);if(!ne)return y;var ae=wt(ne,x.ch,x.sticky),ue=ne[ae];if(ue.from!=x.ch&&ue.to!=x.ch)return y;var ce=ae+(ue.from==x.ch==(ue.level!=1)?0:1);if(ce==0||ce==ne.length)return y;var he;if(b.line!=x.line)he=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var He=wt(ne,b.ch,b.sticky),Ye=He-ae||(b.ch-x.ch)*(ue.level==1?-1:1);He==ce-1||He==ce?he=Ye<0:he=Ye>0}var Tt=ne[ce+(he?-1:0)],It=he==(Tt.level==1),sn=It?Tt.from:Tt.to,Cn=It?"after":"before";return x.ch==sn&&x.sticky==Cn?y:new Vr(new we(x.line,sn,Cn),b)}function ks(a,y,x,b){var E,ne;if(y.touches)E=y.touches[0].clientX,ne=y.touches[0].clientY;else try{E=y.clientX,ne=y.clientY}catch(Tt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&Qt(y);var ae=a.display,ue=ae.lineDiv.getBoundingClientRect();if(ne>ue.bottom||!Lt(a,x))return fn(y);ne-=ue.top-ae.viewOffset;for(var ce=0;ce<a.display.gutterSpecs.length;++ce){var he=ae.gutters.childNodes[ce];if(he&&he.getBoundingClientRect().right>=E){var He=Ue(a.doc,ne),Ye=a.display.gutterSpecs[ce];return _t(a,x,a,He,Ye.className,y),fn(y)}}}function ml(a,y){return ks(a,y,"gutterClick",!0)}function Ps(a,y){wi(a.display,y)||Wu(a,y)||st(a,y,"contextmenu")||Je||a.display.input.onContextMenu(y)}function Wu(a,y){return Lt(a,"gutterContextMenu")?ks(a,y,"gutterContextMenu",!1):!1}function Os(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var jo={toString:function(){return"CodeMirror.Init"}},Ds={},$a={};function Zu(a){var y=a.optionHandlers;function x(b,E,ne,ae){a.defaults[b]=E,ne&&(y[b]=ae?function(ue,ce,he){he!=jo&&ne(ue,ce,he)}:ne)}a.defineOption=x,a.Init=jo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Bi(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var ne=[],ae=b.doc.first;b.doc.iter(function(ce){for(var he=0;;){var He=ce.text.indexOf(E,he);if(He==-1)break;he=He+E.length,ne.push(we(ae,He))}ae++});for(var ue=ne.length-1;ue>=0;ue--)Ho(b.doc,E,ne[ue],we(ne[ue].line,ne[ue].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,ne){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),ne!=jo&&b.refresh()}),x("specialCharPlaceholder",Qr,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Oe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!kt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Os(b),ra(b)},!0),x("keyMap","default",function(b,E,ne){var ae=za(E),ue=ne!=jo&&za(ne);ue&&ue.detach&&ue.detach(b,ae),ae.attach&&ae.attach(b,ue||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Gu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Tl(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Ao(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,ju),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function ju(a,y,x){var b=x&&x!=jo;if(!y!=!b){var E=a.display.dragFunctions,ne=y?rt:Pt;ne(a.display.scroller,"dragstart",E.start),ne(a.display.scroller,"dragenter",E.enter),ne(a.display.scroller,"dragover",E.over),ne(a.display.scroller,"dragleave",E.leave),ne(a.display.scroller,"drop",E.drop)}}function Gu(a){a.options.lineWrapping?(me(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(We(a.display.wrapper,"CodeMirror-wrap"),xr(a)),Ka(a),Bi(a),Co(a),setTimeout(function(){return No(a)},100)}function ei(a,y){var x=this;if(!(this instanceof ei))return new ei(a,y);this.options=y=y?Xt(y):{},Xt(Ds,y,!1);var b=y.value;typeof b=="string"?b=new Ni(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new ei.inputStyles[y.inputStyle](this),ne=this.display=new ru(a,b,E,y);ne.wrapper.CodeMirror=this,Os(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Tl(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 fe,keySeq:null,specialChars:null},y.autofocus&&!Oe&&ne.input.focus(),ye&&ge<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),wu(),Mo(this),this.curOp.forceUpdate=!0,Zl(this,b),y.autofocus&&!Oe||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Xa(x)},20):Ao(this);for(var ae in $a)$a.hasOwnProperty(ae)&&$a[ae](this,y[ae],jo);Nl(this),y.finishInit&&y.finishInit(this);for(var ue=0;ue<vl.length;++ue)vl[ue](this);ko(this),ke&&y.lineWrapping&&getComputedStyle(ne.lineDiv).textRendering=="optimizelegibility"&&(ne.lineDiv.style.textRendering="auto")}ei.defaults=Ds,ei.optionHandlers=$a;function Vu(a){var y=a.display;rt(y.scroller,"mousedown",gi(a,Is)),ye&&ge<11?rt(y.scroller,"dblclick",gi(a,function(ce){if(!st(a,ce)){var he=wo(a,ce);if(!(!he||ml(a,ce)||wi(a.display,ce))){Qt(ce);var He=a.findWordAt(he);Aa(a.doc,He.anchor,He.head)}}})):rt(y.scroller,"dblclick",function(ce){return st(a,ce)||Qt(ce)}),rt(y.scroller,"contextmenu",function(ce){return Ps(a,ce)}),rt(y.input.getField(),"contextmenu",function(ce){y.scroller.contains(ce.target)||Ps(a,ce)});var x,b={end:0};function E(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function ne(ce){if(ce.touches.length!=1)return!1;var he=ce.touches[0];return he.radiusX<=1&&he.radiusY<=1}function ae(ce,he){if(he.left==null)return!0;var He=he.left-ce.left,Ye=he.top-ce.top;return He*He+Ye*Ye>20*20}rt(y.scroller,"touchstart",function(ce){if(!st(a,ce)&&!ne(ce)&&!ml(a,ce)){y.input.ensurePolled(),clearTimeout(x);var he=+new Date;y.activeTouch={start:he,moved:!1,prev:he-b.end<=300?b:null},ce.touches.length==1&&(y.activeTouch.left=ce.touches[0].pageX,y.activeTouch.top=ce.touches[0].pageY)}}),rt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),rt(y.scroller,"touchend",function(ce){var he=y.activeTouch;if(he&&!wi(y,ce)&&he.left!=null&&!he.moved&&new Date-he.start<300){var He=a.coordsChar(y.activeTouch,"page"),Ye;!he.prev||ae(he,he.prev)?Ye=new Vr(He,He):!he.prev.prev||ae(he,he.prev.prev)?Ye=a.findWordAt(He):Ye=new Vr(we(He.line,0),Mt(a.doc,we(He.line+1,0))),a.setSelection(Ye.anchor,Ye.head),a.focus(),Qt(ce)}E()}),rt(y.scroller,"touchcancel",E),rt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),_t(a,"scroll",a))}),rt(y.scroller,"mousewheel",function(ce){return zl(a,ce)}),rt(y.scroller,"DOMMouseScroll",function(ce){return zl(a,ce)}),rt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ce){st(a,ce)||Pe(ce)},over:function(ce){st(a,ce)||(Cu(a,ce),Pe(ce))},start:function(ce){return xu(a,ce)},drop:gi(a,bu),leave:function(ce){st(a,ce)||fs(a)}};var ue=y.input.getField();rt(ue,"keyup",function(ce){return Ss.call(a,ce)}),rt(ue,"keydown",gi(a,ws)),rt(ue,"keypress",gi(a,Es)),rt(ue,"focus",function(ce){return Xa(a,ce)}),rt(ue,"blur",function(ce){return Ao(a,ce)})}var vl=[];ei.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var E=a.doc,ne;x==null&&(x="add"),x=="smart"&&(E.mode.indent?ne=mt(a,y).state:x="prev");var ae=a.options.tabSize,ue=Bt(E,y),ce=Se(ue.text,null,ae);ue.stateAfter&&(ue.stateAfter=null);var he=ue.text.match(/^\s*/)[0],He;if(!b&&!/\S/.test(ue.text))He=0,x="not";else if(x=="smart"&&(He=E.mode.indent(ne,ue.text.slice(he.length),ue.text),He==Dt||He>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?He=Se(Bt(E,y-1).text,null,ae):He=0:x=="add"?He=ce+a.options.indentUnit:x=="subtract"?He=ce-a.options.indentUnit:typeof x=="number"&&(He=ce+x),He=Math.max(0,He);var Ye="",Tt=0;if(a.options.indentWithTabs)for(var It=Math.floor(He/ae);It;--It)Tt+=ae,Ye+=" ";if(Tt<He&&(Ye+=en(He-Tt)),Ye!=he)return Ho(E,Ye,we(y,0),we(y,he.length),"+input"),ue.stateAfter=null,!0;for(var sn=0;sn<E.sel.ranges.length;sn++){var Cn=E.sel.ranges[sn];if(Cn.head.line==y&&Cn.head.ch<he.length){var Hn=we(y,he.length);ul(E,sn,new Vr(Hn,Hn));break}}}var eo=null;function Wa(a){eo=a}function gl(a,y,x,b,E){var ne=a.doc;a.display.shift=!1,b||(b=ne.sel);var ae=+new Date-200,ue=E=="paste"||a.state.pasteIncoming>ae,ce=dn(y),he=null;if(ue&&b.ranges.length>1)if(eo&&eo.text.join(`
|
|
|
`)==y){if(b.ranges.length%eo.text.length==0){he=[];for(var He=0;He<eo.text.length;He++)he.push(ne.splitLines(eo.text[He]))}}else ce.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(he=Kt(ce,function(Xn){return[Xn]}));for(var Ye=a.curOp.updateInput,Tt=b.ranges.length-1;Tt>=0;Tt--){var It=b.ranges[Tt],sn=It.from(),Cn=It.to();It.empty()&&(x&&x>0?sn=we(sn.line,sn.ch-x):a.state.overwrite&&!ue?Cn=we(Cn.line,Math.min(Bt(ne,Cn.line).text.length,Cn.ch+tt(ce).length)):ue&&eo&&eo.lineWise&&eo.text.join(`
|
|
|
`)==ce.join(`
|
|
|
`)&&(sn=Cn=we(sn.line,0)));var Hn={from:sn,to:Cn,text:he?he[Tt%he.length]:ce,origin:E||(ue?"paste":a.state.cutIncoming>ae?"cut":"+input")};zo(a.doc,Hn),Ur(a,"inputRead",a,Hn)}y&&!ue&&Ts(a,y),Bo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Ye),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ls(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Zi(y,function(){return gl(y,x,0,null,"paste")}),!0}function Ts(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var ne=a.getModeAt(E.head),ae=!1;if(ne.electricChars){for(var ue=0;ue<ne.electricChars.length;ue++)if(y.indexOf(ne.electricChars.charAt(ue))>-1){ae=ga(a,E.head.line,"smart");break}}else ne.electricInput&&ne.electricInput.test(Bt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(ae=ga(a,E.head.line,"smart"));ae&&Ur(a,"electricInput",a,E.head.line)}}}function As(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,ne={anchor:we(E,0),head:we(E+1,0)};x.push(ne),y.push(a.getRange(ne.anchor,ne.head))}return{text:y,ranges:x}}function Bs(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ns(){var a=Ke("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Ke("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ke?a.style.width="1000px":a.setAttribute("wrap","off"),Ae&&(a.style.border="1px solid black"),Bs(a),y}function _u(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,E){var ne=this.options,ae=ne[b];ne[b]==E&&b!="mode"||(ne[b]=E,y.hasOwnProperty(b)&&gi(this,y[b])(this,E,ae),_t(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"](za(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,ne=0;ne<E.length;++ne)if(E[ne]==b||E[ne].name==b)return E.splice(ne,1),!0},addOverlay:Li(function(b,E){var ne=b.token?b:a.getMode(this.options,b);if(ne.startState)throw new Error("Overlays may not be stateful.");pt(this.state.overlays,{mode:ne,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(ae){return ae.priority}),this.state.modeGen++,Bi(this)}),removeOverlay:Li(function(b){for(var E=this.state.overlays,ne=0;ne<E.length;++ne){var ae=E[ne].modeSpec;if(ae==b||typeof b=="string"&&ae.name==b){E.splice(ne,1),this.state.modeGen++,Bi(this);return}}}),indentLine:Li(function(b,E,ne){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Ce(this.doc,b)&&ga(this,b,E,ne)}),indentSelection:Li(function(b){for(var E=this.doc.sel.ranges,ne=-1,ae=0;ae<E.length;ae++){var ue=E[ae];if(ue.empty())ue.head.line>ne&&(ga(this,ue.head.line,b,!0),ne=ue.head.line,ae==this.doc.sel.primIndex&&Bo(this));else{var ce=ue.from(),he=ue.to(),He=Math.max(ne,ce.line);ne=Math.min(this.lastLine(),he.line-(he.ch?0:1))+1;for(var Ye=He;Ye<ne;++Ye)ga(this,Ye,b);var Tt=this.doc.sel.ranges;ce.ch==0&&E.length==Tt.length&&Tt[ae].from().ch>0&&ul(this.doc,ae,new Vr(ce,Tt[ae].to()),ze)}}}),getTokenAt:function(b,E){return on(this,b,E)},getLineTokens:function(b,E){return on(this,we(b),E,!0)},getTokenTypeAt:function(b){b=Mt(this.doc,b);var E=dr(this,Bt(this.doc,b.line)),ne=0,ae=(E.length-1)/2,ue=b.ch,ce;if(ue==0)ce=E[2];else for(;;){var he=ne+ae>>1;if((he?E[he*2-1]:0)>=ue)ae=he;else if(E[he*2+1]<ue)ne=he+1;else{ce=E[he*2+2];break}}var He=ce?ce.indexOf("overlay "):-1;return He<0?ce:He==0?null:ce.slice(0,He-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var ne=[];if(!x.hasOwnProperty(E))return ne;var ae=x[E],ue=this.getModeAt(b);if(typeof ue[E]=="string")ae[ue[E]]&&ne.push(ae[ue[E]]);else if(ue[E])for(var ce=0;ce<ue[E].length;ce++){var he=ae[ue[E][ce]];he&&ne.push(he)}else ue.helperType&&ae[ue.helperType]?ne.push(ae[ue.helperType]):ae[ue.name]&&ne.push(ae[ue.name]);for(var He=0;He<ae._global.length;He++){var Ye=ae._global[He];Ye.pred(ue,this)&&vt(ne,Ye.val)==-1&&ne.push(Ye.val)}return ne},getStateAfter:function(b,E){var ne=this.doc;return b=Wt(ne,b==null?ne.first+ne.size-1:b),mt(this,b+1,E).state},cursorCoords:function(b,E){var ne,ae=this.doc.sel.primary();return b==null?ne=ae.head:typeof b=="object"?ne=Mt(this.doc,b):ne=b?ae.from():ae.to(),Ai(this,ne,E||"page")},charCoords:function(b,E){return To(this,Mt(this.doc,b),E||"page")},coordsChar:function(b,E){return b=Sa(this,b,E||"page"),Si(this,b.left,b.top)},lineAtHeight:function(b,E){return b=Sa(this,{top:b,left:0},E||"page").top,Ue(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,ne){var ae=!1,ue;if(typeof b=="number"){var ce=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>ce&&(b=ce,ae=!0),ue=Bt(this.doc,b)}else ue=b;return Lo(this,ue,{top:0,left:0},E||"page",ne||ae).top+(ae?this.doc.height-mr(ue):0)},defaultTextHeight:function(){return Wi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,ne,ae,ue){var ce=this.display;b=Ai(this,Mt(this.doc,b));var he=b.bottom,He=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),ce.sizer.appendChild(E),ae=="over")he=b.top;else if(ae=="above"||ae=="near"){var Ye=Math.max(ce.wrapper.clientHeight,this.doc.height),Tt=Math.max(ce.sizer.clientWidth,ce.lineSpace.clientWidth);(ae=="above"||b.bottom+E.offsetHeight>Ye)&&b.top>E.offsetHeight?he=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=Ye&&(he=b.bottom),He+E.offsetWidth>Tt&&(He=Tt-E.offsetWidth)}E.style.top=he+"px",E.style.left=E.style.right="",ue=="right"?(He=ce.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?He=0:ue=="middle"&&(He=(ce.sizer.clientWidth-E.offsetWidth)/2),E.style.left=He+"px"),ne&&js(this,{left:He,top:he,right:He+E.offsetWidth,bottom:he+E.offsetHeight})},triggerOnKeyDown:Li(ws),triggerOnKeyPress:Li(Es),triggerOnKeyUp:Ss,triggerOnMouseDown:Li(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Li(function(b){Ts(this,b)}),findPosH:function(b,E,ne,ae){var ue=1;E<0&&(ue=-1,E=-E);for(var ce=Mt(this.doc,b),he=0;he<E&&(ce=yl(this.doc,ce,ue,ne,ae),!ce.hitSide);++he);return ce},moveH:Li(function(b,E){var ne=this;this.extendSelectionsBy(function(ae){return ne.display.shift||ne.doc.extend||ae.empty()?yl(ne.doc,ae.head,b,E,ne.options.rtlMoveVisually):b<0?ae.from():ae.to()},gt)}),deleteH:Li(function(b,E){var ne=this.doc.sel,ae=this.doc;ne.somethingSelected()?ae.replaceSelection("",null,"+delete"):Zo(this,function(ue){var ce=yl(ae,ue.head,b,E,!1);return b<0?{from:ce,to:ue.head}:{from:ue.head,to:ce}})}),findPosV:function(b,E,ne,ae){var ue=1,ce=ae;E<0&&(ue=-1,E=-E);for(var he=Mt(this.doc,b),He=0;He<E;++He){var Ye=Ai(this,he,"div");if(ce==null?ce=Ye.left:Ye.left=ce,he=Rs(this,Ye,ue,ne),he.hitSide)break}return he},moveV:Li(function(b,E){var ne=this,ae=this.doc,ue=[],ce=!this.display.shift&&!ae.extend&&ae.sel.somethingSelected();if(ae.extendSelectionsBy(function(He){if(ce)return b<0?He.from():He.to();var Ye=Ai(ne,He.head,"div");He.goalColumn!=null&&(Ye.left=He.goalColumn),ue.push(Ye.left);var Tt=Rs(ne,Ye,b,E);return E=="page"&&He==ae.sel.primary()&&Qa(ne,To(ne,Tt,"div").top-Ye.top),Tt},gt),ue.length)for(var he=0;he<ae.sel.ranges.length;he++)ae.sel.ranges[he].goalColumn=ue[he]}),findWordAt:function(b){var E=this.doc,ne=Bt(E,b.line).text,ae=b.ch,ue=b.ch;if(ne){var ce=this.getHelper(b,"wordChars");(b.sticky=="before"||ue==ne.length)&&ae?--ae:++ue;for(var he=ne.charAt(ae),He=se(he,ce)?function(Ye){return se(Ye,ce)}:/\s/.test(he)?function(Ye){return/\s/.test(Ye)}:function(Ye){return!/\s/.test(Ye)&&!se(Ye)};ae>0&&He(ne.charAt(ae-1));)--ae;for(;ue<ne.length&&He(ne.charAt(ue));)++ue}return new Vr(we(b.line,ae),we(b.line,ue))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?me(this.display.cursorDiv,"CodeMirror-overwrite"):We(this.display.cursorDiv,"CodeMirror-overwrite"),_t(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==qe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Li(function(b,E){Qo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Hi(this)-this.display.barHeight,width:b.scrollWidth-Hi(this)-this.display.barWidth,clientHeight:ao(this),clientWidth:ro(this)}},scrollIntoView:Li(function(b,E){b==null?(b={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof b=="number"?b={from:we(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=E||0,b.from.line!=null?Gs(this,b):Pl(this,b.from,b.to,b.margin)}),setSize:Li(function(b,E){var ne=this,ae=function(ce){return typeof ce=="number"||/^\d+$/.test(String(ce))?ce+"px":ce};b!=null&&(this.display.wrapper.style.width=ae(b)),E!=null&&(this.display.wrapper.style.height=ae(E)),this.options.lineWrapping&&Ko(this);var ue=this.display.viewFrom;this.doc.iter(ue,this.display.viewTo,function(ce){if(ce.widgets){for(var he=0;he<ce.widgets.length;he++)if(ce.widgets[he].noHScroll){ho(ne,ue,"widget");break}}++ue}),this.curOp.forceUpdate=!0,_t(this,"refresh",this)}),operation:function(b){return Zi(this,b)},startOperation:function(){return Mo(this)},endOperation:function(){return ko(this)},refresh:Li(function(){var b=this.display.cachedTextHeight;Bi(this),this.curOp.forceUpdate=!0,Co(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Wi(this.display))>.5||this.options.lineWrapping)&&Ka(this),_t(this,"refresh",this)}),swapDoc:Li(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Zl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Ur(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Nt(a),a.registerHelper=function(b,E,ne){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=ne},a.registerGlobalHelper=function(b,E,ne,ae){a.registerHelper(b,E,ae),x[b]._global.push({pred:ne,val:ae})}}function yl(a,y,x,b,E){var ne=y,ae=x,ue=Bt(a,y.line),ce=E&&a.direction=="rtl"?-x:x;function he(){var or=y.line+ce;return or<a.first||or>=a.first+a.size?!1:(y=new we(or,y.ch,y.sticky),ue=Bt(a,or))}function He(or){var Jn;if(b=="codepoint"){var pr=ue.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(pr)?Jn=null:Jn=new we(y.line,Math.max(0,Math.min(ue.text.length,y.ch+x*(pr>=55296&&pr<56320?2:1))),-x)}else E?Jn=ku(a.cm,ue,y,x):Jn=dl(ue,y,x);if(Jn==null)if(!or&&he())y=fl(E,a.cm,ue,y.line,ce);else return!1;else y=Jn;return!0}if(b=="char"||b=="codepoint")He();else if(b=="column")He(!0);else if(b=="word"||b=="group")for(var Ye=null,Tt=b=="group",It=a.cm&&a.cm.getHelper(y,"wordChars"),sn=!0;!(x<0&&!He(!sn));sn=!1){var Cn=ue.text.charAt(y.ch)||`
|
|
|
`,Hn=se(Cn,It)?"w":Tt&&Cn==`
|
|
|
`?"n":!Tt||/\s/.test(Cn)?null:"p";if(Tt&&!sn&&!Hn&&(Hn="s"),Ye&&Ye!=Hn){x<0&&(x=1,He(),y.sticky="after");break}if(Hn&&(Ye=Hn),x>0&&!He(!sn))break}var Xn=Na(a,y,ne,ae,!0);return ft(ne,Xn)&&(Xn.hitSide=!0),Xn}function Rs(a,y,x,b){var E=a.doc,ne=y.left,ae;if(b=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ce=Math.max(ue-.5*Wi(a.display),3);ae=(x>0?y.bottom:y.top)+x*ce}else b=="line"&&(ae=x>0?y.bottom+3:y.top-3);for(var he;he=Si(a,ne,ae),!!he.outside;){if(x<0?ae<=0:ae>=E.height){he.hitSide=!0;break}ae+=x*5}return he}var Kr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Kr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Bs(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ne(ue){for(var ce=ue.target;ce;ce=ce.parentNode){if(ce==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ce.className))break}return!1}rt(E,"paste",function(ue){!ne(ue)||st(b,ue)||Ls(ue,b)||ge<=11&&setTimeout(gi(b,function(){return y.updateFromDOM()}),20)}),rt(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),rt(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),rt(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),rt(E,"touchstart",function(){return x.forceCompositionEnd()}),rt(E,"input",function(){y.composing||y.readFromDOMSoon()});function ae(ue){if(!(!ne(ue)||st(b,ue))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),ue.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ce=As(b);Wa({lineWise:!0,text:ce.text}),ue.type=="cut"&&b.operation(function(){b.setSelections(ce.ranges,0,ze),b.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var he=eo.text.join(`
|
|
|
`);if(ue.clipboardData.setData("Text",he),ue.clipboardData.getData("Text")==he){ue.preventDefault();return}}var He=Ns(),Ye=He.firstChild;b.display.lineSpace.insertBefore(He,b.display.lineSpace.firstChild),Ye.value=eo.text.join(`
|
|
|
`);var Tt=document.activeElement;De(Ye),setTimeout(function(){b.display.lineSpace.removeChild(He),Tt.focus(),Tt==E&&x.showPrimarySelection()},50)}}rt(E,"copy",ae),rt(E,"cut",ae)},Kr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Kr.prototype.prepareSelection=function(){var a=Sl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Kr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Kr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Kr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var ne=Za(y,a.anchorNode,a.anchorOffset),ae=Za(y,a.focusNode,a.focusOffset);if(!(ne&&!ne.bad&&ae&&!ae.bad&&Fe(hn(ne,ae),b)==0&&Fe(rn(ne,ae),E)==0)){var ue=y.display.view,ce=b.line>=y.display.viewFrom&&Fs(y,b)||{node:ue[0].measure.map[2],offset:0},he=E.line<y.display.viewTo&&Fs(y,E);if(!he){var He=ue[ue.length-1].measure,Ye=He.maps?He.maps[He.maps.length-1]:He.map;he={node:Ye[Ye.length-1],offset:Ye[Ye.length-2]-Ye[Ye.length-3]}}if(!ce||!he){a.removeAllRanges();return}var Tt=a.rangeCount&&a.getRangeAt(0),It;try{It=Ne(ce.node,ce.offset,he.offset,he.node)}catch(sn){}It&&(!z&&y.state.focused?(a.collapse(ce.node,ce.offset),It.collapsed||(a.removeAllRanges(),a.addRange(It))):(a.removeAllRanges(),a.addRange(It)),Tt&&a.anchorNode==null?a.addRange(Tt):z&&this.startGracePeriod()),this.rememberSelection()}},Kr.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)},Kr.prototype.showMultipleSelections=function(a){Xe(this.cm.display.cursorDiv,a.cursors),Xe(this.cm.display.selectionDiv,a.selection)},Kr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Kr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return et(this.div,y)},Kr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Kr.prototype.blur=function(){this.div.blur()},Kr.prototype.getField=function(){return this.div},Kr.prototype.supportsTouch=function(){return!0},Kr.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Zi(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)},Kr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Kr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Ie&&Me&&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&&Zi(y,function(){Pi(y.doc,mo(x,b),ze),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Kr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=we(b.line-1,Bt(a.doc,b.line-1).length)),E.ch==Bt(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=we(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var ne,ae,ue;b.line==y.viewFrom||(ne=So(a,b.line))==0?(ae=Te(y.view[0].line),ue=y.view[0].node):(ae=Te(y.view[ne].line),ue=y.view[ne-1].node.nextSibling);var ce=So(a,E.line),he,He;if(ce==y.view.length-1?(he=y.viewTo-1,He=y.lineDiv.lastChild):(he=Te(y.view[ce+1].line)-1,He=y.view[ce+1].node.previousSibling),!ue)return!1;for(var Ye=a.doc.splitLines(Ku(a,ue,He,ae,he)),Tt=ln(a.doc,we(ae,0),we(he,Bt(a.doc,he).text.length));Ye.length>1&&Tt.length>1;)if(tt(Ye)==tt(Tt))Ye.pop(),Tt.pop(),he--;else if(Ye[0]==Tt[0])Ye.shift(),Tt.shift(),ae++;else break;for(var It=0,sn=0,Cn=Ye[0],Hn=Tt[0],Xn=Math.min(Cn.length,Hn.length);It<Xn&&Cn.charCodeAt(It)==Hn.charCodeAt(It);)++It;for(var or=tt(Ye),Jn=tt(Tt),pr=Math.min(or.length-(Ye.length==1?It:0),Jn.length-(Tt.length==1?It:0));sn<pr&&or.charCodeAt(or.length-sn-1)==Jn.charCodeAt(Jn.length-sn-1);)++sn;if(Ye.length==1&&Tt.length==1&&ae==b.line)for(;It&&It>b.ch&&or.charCodeAt(or.length-sn-1)==Jn.charCodeAt(Jn.length-sn-1);)It--,sn++;Ye[Ye.length-1]=or.slice(0,or.length-sn).replace(/^\u200b+/,""),Ye[0]=Ye[0].slice(It).replace(/\u200b+$/,"");var Ir=we(ae,It),Er=we(he,Tt.length?tt(Tt).length-sn:0);if(Ye.length>1||Ye[0]||Fe(Ir,Er))return Ho(a.doc,Ye,Ir,Er,"+input"),!0},Kr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Kr.prototype.reset=function(){this.forceCompositionEnd()},Kr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Kr.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Kr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Zi(this.cm,function(){return Bi(a.cm)})},Kr.prototype.setUneditable=function(a){a.contentEditable="false"},Kr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||gi(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Kr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Kr.prototype.onContextMenu=function(){},Kr.prototype.resetPosition=function(){},Kr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=io(a,y.line);if(!x||x.hidden)return null;var b=Bt(a.doc,y.line),E=Do(x,b,y.line),ne=Zt(b,a.doc.direction),ae="left";if(ne){var ue=wt(ne,y.ch);ae=ue%2?"right":"left"}var ce=xa(E.map,y.ch,ae);return ce.offset=ce.collapse=="right"?ce.end:ce.start,ce}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Go(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var ne="",ae=!1,ue=a.doc.lineSeparator(),ce=!1;function he(It){return function(sn){return sn.id==It}}function He(){ae&&(ne+=ue,ce&&(ne+=ue),ae=ce=!1)}function Ye(It){It&&(He(),ne+=It)}function Tt(It){if(It.nodeType==1){var sn=It.getAttribute("cm-text");if(sn){Ye(sn);return}var Cn=It.getAttribute("cm-marker"),Hn;if(Cn){var Xn=a.findMarks(we(b,0),we(E+1,0),he(+Cn));Xn.length&&(Hn=Xn[0].find(0))&&Ye(ln(a.doc,Hn.from,Hn.to).join(ue));return}if(It.getAttribute("contenteditable")=="false")return;var or=/^(pre|div|p|li|table|br)$/i.test(It.nodeName);if(!/^br$/i.test(It.nodeName)&&It.textContent.length==0)return;or&&He();for(var Jn=0;Jn<It.childNodes.length;Jn++)Tt(It.childNodes[Jn]);/^(pre|p)$/i.test(It.nodeName)&&(ce=!0),or&&(ae=!0)}else It.nodeType==3&&Ye(It.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Tt(y),y!=x;)y=y.nextSibling,ce=!1;return ne}function Za(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Go(a.clipPos(we(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var ne=a.display.view[E];if(ne.node==b)return Yu(ne,y,x)}}function Yu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!et(b,y))return Go(we(Te(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var ne=a.rest?tt(a.rest):a.line;return Go(we(Te(ne),ne.text.length),E)}var ae=y.nodeType==3?y:null,ue=y;for(!ae&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(ae=y.firstChild,x&&(x=ae.nodeValue.length));ue.parentNode!=b;)ue=ue.parentNode;var ce=a.measure,he=ce.maps;function He(Hn,Xn,or){for(var Jn=-1;Jn<(he?he.length:0);Jn++)for(var pr=Jn<0?ce.map:he[Jn],Ir=0;Ir<pr.length;Ir+=3){var Er=pr[Ir+2];if(Er==Hn||Er==Xn){var zr=Te(Jn<0?a.line:a.rest[Jn]),Xr=pr[Ir]+or;return(or<0||Er!=Hn)&&(Xr=pr[Ir+(or?1:0)]),we(zr,Xr)}}}var Ye=He(ae,ue,x);if(Ye)return Go(Ye,E);for(var Tt=ue.nextSibling,It=ae?ae.nodeValue.length-x:0;Tt;Tt=Tt.nextSibling){if(Ye=He(Tt,Tt.firstChild,0),Ye)return Go(we(Ye.line,Ye.ch-It),E);It+=Tt.textContent.length}for(var sn=ue.previousSibling,Cn=x;sn;sn=sn.previousSibling){if(Ye=He(sn,sn.firstChild,-1),Ye)return Go(we(Ye.line,Ye.ch+Cn),E);Cn+=sn.textContent.length}}var ai=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null};ai.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ae&&(E.style.width="0px"),rt(E,"input",function(){ye&&ge>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),rt(E,"paste",function(ae){st(b,ae)||Ls(ae,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ne(ae){if(!st(b,ae)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ue=As(b);Wa({lineWise:!0,text:ue.text}),ae.type=="cut"?b.setSelections(ue.ranges,null,ze):(x.prevInput="",E.value=ue.text.join(`
|
|
|
`),De(E))}else return;ae.type=="cut"&&(b.state.cutIncoming=+new Date)}}rt(E,"cut",ne),rt(E,"copy",ne),rt(a.scroller,"paste",function(ae){if(!(wi(a,ae)||st(b,ae))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ue=new Event("paste");ue.clipboardData=ae.clipboardData,E.dispatchEvent(ue)}}),rt(a.lineSpace,"selectstart",function(ae){wi(a,ae)||Qt(ae)}),rt(E,"compositionstart",function(){var ae=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:ae,range:b.markText(ae,b.getCursor("to"),{className:"CodeMirror-composing"})}}),rt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},ai.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},ai.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},ai.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Sl(a);if(a.options.moveInputWithCursor){var E=Ai(a,x.sel.primary().head,"div"),ne=y.wrapper.getBoundingClientRect(),ae=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+ae.top-ne.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+ae.left-ne.left))}return b},ai.prototype.showSelection=function(a){var y=this.cm,x=y.display;Xe(x.cursorDiv,a.cursors),Xe(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},ai.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&&De(this.textarea),ye&&ge>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",ye&&ge>=9&&(this.hasSelection=null))}},ai.prototype.getField=function(){return this.textarea},ai.prototype.supportsTouch=function(){return!1},ai.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Oe||qe()!=this.textarea))try{this.textarea.focus()}catch(a){}},ai.prototype.blur=function(){this.textarea.blur()},ai.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ai.prototype.receivedFocus=function(){this.slowPoll()},ai.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},ai.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)},ai.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||gn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(ye&&ge>=9&&this.hasSelection===E||Be&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ne=E.charCodeAt(0);if(ne==8203&&!b&&(b="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var ae=0,ue=Math.min(b.length,E.length);ae<ue&&b.charCodeAt(ae)==E.charCodeAt(ae);)++ae;return Zi(y,function(){gl(y,E.slice(ae),b.length-ae,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
|
|
|
`)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ai.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ai.prototype.onKeyPress=function(){ye&&ge>=9&&(this.hasSelection=null),this.fastPoll()},ai.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ne=wo(x,a),ae=b.scroller.scrollTop;if(!ne||de)return;var ue=x.options.resetSelectionOnContextMenu;ue&&x.doc.sel.contains(ne)==-1&&gi(x,Pi)(x.doc,mo(ne),ze);var ce=E.style.cssText,he=y.wrapper.style.cssText,He=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-He.top-5)+"px; left: "+(a.clientX-He.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ye?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ye;ke&&(Ye=window.scrollY),b.input.focus(),ke&&window.scrollTo(null,Ye),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=It,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Tt(){if(E.selectionStart!=null){var Cn=x.somethingSelected(),Hn="\u200B"+(Cn?E.value:"");E.value="\u21DA",E.value=Hn,y.prevInput=Cn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Hn.length,b.selForContextMenu=x.doc.sel}}function It(){if(y.contextMenuPending==It&&(y.contextMenuPending=!1,y.wrapper.style.cssText=he,E.style.cssText=ce,ye&&ge<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=ae),E.selectionStart!=null)){(!ye||ye&&ge<9)&&Tt();var Cn=0,Hn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?gi(x,ts)(x):Cn++<10?b.detectingSelectAll=setTimeout(Hn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Hn,200)}}if(ye&&ge>=9&&Tt(),Je){Pe(a);var sn=function(){Pt(window,"mouseup",sn),setTimeout(It,20)};rt(window,"mouseup",sn)}else setTimeout(It,50)},ai.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},ai.prototype.setUneditable=function(){},ai.prototype.needsContentAttribute=!1;function Xu(a,y){if(y=y?Xt(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=qe();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ue.getValue()}var E;if(a.form&&(rt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ne=a.form;E=ne.submit;try{var ae=ne.submit=function(){b(),ne.submit=E,ne.submit(),ne.submit=ae}}catch(ce){}}y.finishInit=function(ce){ce.save=b,ce.getTextArea=function(){return a},ce.toTextArea=function(){ce.toTextArea=isNaN,b(),a.parentNode.removeChild(ce.getWrapperElement()),a.style.display="",a.form&&(Pt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ue=ei(function(ce){return a.parentNode.insertBefore(ce,a.nextSibling)},y);return ue}function Ju(a){a.off=Pt,a.on=rt,a.wheelEventPixels=iu,a.Doc=Ni,a.splitLines=dn,a.countColumn=Se,a.findColumn=pn,a.isWordChar=oe,a.Pass=Dt,a.signal=_t,a.Line=Br,a.changeEnd=vo,a.scrollbarModel=Ll,a.Pos=we,a.cmpPos=Fe,a.modes=Fn,a.mimeModes=yn,a.resolveMode=Vn,a.getMode=ur,a.modeExtensions=Tn,a.extendMode=Qn,a.copyState=sr,a.startState=Cr,a.innerMode=gr,a.commands=ha,a.keyMap=so,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=Mu,a.StringStream=ir,a.SharedTextMarker=ca,a.TextMarker=yo,a.LineWidget=ua,a.e_preventDefault=Qt,a.e_stopPropagation=Rn,a.e_stop=Pe,a.addClass=me,a.contains=et,a.rmClass=We,a.keyNames=bo}Zu(ei),_u(ei);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var ja in Ni.prototype)Ni.prototype.hasOwnProperty(ja)&&vt(Qu,ja)<0&&(ei.prototype[ja]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ni.prototype[ja]));return Nt(Ni),ei.inputStyles={textarea:ai,contenteditable:Kr},ei.defineMode=function(a){!ei.defaults.mode&&a!="null"&&(ei.defaults.mode=a),An.apply(this,arguments)},ei.defineMIME=xn,ei.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),ei.defineMIME("text/plain","null"),ei.defineExtension=function(a,y){ei.prototype[a]=y},ei.defineDocExtension=function(a,y){Ni.prototype[a]=y},ei.fromTextArea=Xu,Ju(ei),ei.version="5.58.2",ei})},25419:function(Yt,zt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(Ve,ve){var Le=z.getMode(Ve,"text/html"),ye=Le.name=="null";function ge(Se){if(z.findModeByName){var fe=z.findModeByName(Se);fe&&(Se=fe.mime||fe.mimes[0])}var vt=z.getMode(Ve,Se);return vt.name=="null"?null:vt}ve.highlightFormatting===void 0&&(ve.highlightFormatting=!1),ve.maxBlockquoteDepth===void 0&&(ve.maxBlockquoteDepth=0),ve.taskLists===void 0&&(ve.taskLists=!1),ve.strikethrough===void 0&&(ve.strikethrough=!1),ve.emoji===void 0&&(ve.emoji=!1),ve.fencedCodeBlockHighlighting===void 0&&(ve.fencedCodeBlockHighlighting=!0),ve.fencedCodeBlockDefaultMode===void 0&&(ve.fencedCodeBlockDefaultMode="text/plain"),ve.xml===void 0&&(ve.xml=!0),ve.tokenTypeOverrides===void 0&&(ve.tokenTypeOverrides={});var ke={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var $e in ke)ke.hasOwnProperty($e)&&ve.tokenTypeOverrides[$e]&&(ke[$e]=ve.tokenTypeOverrides[$e]);var Me=/^([*\-_])(?:\s*\1){2,}\s*$/,de=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ze=/^\[(x| )\](?=\s)/i,be=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,nt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ae=/^[^#!\[\]*_\\<>` "'(~:]+/,Ie=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Oe=/^\s*\[[^\]]+?\]:.*$/,Be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ct=" ";function kt(Se,fe,vt){return fe.f=fe.inline=vt,vt(Se,fe)}function Ct(Se,fe,vt){return fe.f=fe.block=vt,vt(Se,fe)}function it(Se){return!Se||!/\S/.test(Se.string)}function Je(Se){if(Se.linkTitle=!1,Se.linkHref=!1,Se.linkText=!1,Se.em=!1,Se.strong=!1,Se.strikethrough=!1,Se.quote=0,Se.indentedCode=!1,Se.f==We){var fe=ye;if(!fe){var vt=z.innerMode(Le,Se.htmlState);fe=vt.mode.name=="xml"&&vt.state.tagStart===null&&!vt.state.context&&vt.state.tokenize.isInText}fe&&(Se.f=ht,Se.block=_e,Se.htmlState=null)}return Se.trailingSpace=0,Se.trailingSpaceNewLine=!1,Se.prevLine=Se.thisLine,Se.thisLine={stream:null},null}function _e(Se,fe){var vt=Se.column()===fe.indentation,Vt=it(fe.prevLine.stream),Dt=fe.indentedCode,ze=fe.prevLine.hr,ut=fe.list!==!1,gt=(fe.listStack[fe.listStack.length-1]||0)+3;fe.indentedCode=!1;var pn=fe.indentation;if(fe.indentationDiff===null&&(fe.indentationDiff=fe.indentation,ut)){for(fe.list=null;pn<fe.listStack[fe.listStack.length-1];)fe.listStack.pop(),fe.listStack.length?fe.indentation=fe.listStack[fe.listStack.length-1]:fe.list=!1;fe.list!==!1&&(fe.indentationDiff=pn-fe.listStack[fe.listStack.length-1])}var Ft=!Vt&&!ze&&!fe.prevLine.header&&(!ut||!Dt)&&!fe.prevLine.fencedCodeEnd,en=(fe.list===!1||ze||Vt)&&fe.indentation<=gt&&Se.match(Me),tt=null;if(fe.indentationDiff>=4&&(Dt||fe.prevLine.fencedCodeEnd||fe.prevLine.header||Vt))return Se.skipToEnd(),fe.indentedCode=!0,ke.code;if(Se.eatSpace())return null;if(vt&&fe.indentation<=gt&&(tt=Se.match(be))&&tt[1].length<=6)return fe.quote=0,fe.header=tt[1].length,fe.thisLine.header=!0,ve.highlightFormatting&&(fe.formatting="header"),fe.f=fe.inline,Xe(fe);if(fe.indentation<=gt&&Se.eat(">"))return fe.quote=vt?1:fe.quote+1,ve.highlightFormatting&&(fe.formatting="quote"),Se.eatSpace(),Xe(fe);if(!en&&!fe.setext&&vt&&fe.indentation<=gt&&(tt=Se.match(de))){var Kt=tt[1]?"ol":"ul";return fe.indentation=pn+Se.current().length,fe.list=!0,fe.quote=0,fe.listStack.push(fe.indentation),fe.em=!1,fe.strong=!1,fe.code=!1,fe.strikethrough=!1,ve.taskLists&&Se.match(Ze,!1)&&(fe.taskList=!0),fe.f=fe.inline,ve.highlightFormatting&&(fe.formatting=["list","list-"+Kt]),Xe(fe)}else{if(vt&&fe.indentation<=gt&&(tt=Se.match(Ie,!0)))return fe.quote=0,fe.fencedEndRE=new RegExp(tt[1]+"+ *$"),fe.localMode=ve.fencedCodeBlockHighlighting&&ge(tt[2]||ve.fencedCodeBlockDefaultMode),fe.localMode&&(fe.localState=z.startState(fe.localMode)),fe.f=fe.block=St,ve.highlightFormatting&&(fe.formatting="code-block"),fe.code=-1,Xe(fe);if(fe.setext||(!Ft||!ut)&&!fe.quote&&fe.list===!1&&!fe.code&&!en&&!Oe.test(Se.string)&&(tt=Se.lookAhead(1))&&(tt=tt.match(nt)))return fe.setext?(fe.header=fe.setext,fe.setext=0,Se.skipToEnd(),ve.highlightFormatting&&(fe.formatting="header")):(fe.header=tt[0].charAt(0)=="="?1:2,fe.setext=fe.header),fe.thisLine.header=!0,fe.f=fe.inline,Xe(fe);if(en)return Se.skipToEnd(),fe.hr=!0,fe.thisLine.hr=!0,ke.hr;if(Se.peek()==="[")return kt(Se,fe,Ot)}return kt(Se,fe,fe.inline)}function We(Se,fe){var vt=Le.token(Se,fe.htmlState);if(!ye){var Vt=z.innerMode(Le,fe.htmlState);(Vt.mode.name=="xml"&&Vt.state.tagStart===null&&!Vt.state.context&&Vt.state.tokenize.isInText||fe.md_inside&&Se.current().indexOf(">")>-1)&&(fe.f=ht,fe.block=_e,fe.htmlState=null)}return vt}function St(Se,fe){var vt=fe.listStack[fe.listStack.length-1]||0,Vt=fe.indentation<vt,Dt=vt+3;if(fe.fencedEndRE&&fe.indentation<=Dt&&(Vt||Se.match(fe.fencedEndRE))){ve.highlightFormatting&&(fe.formatting="code-block");var ze;return Vt||(ze=Xe(fe)),fe.localMode=fe.localState=null,fe.block=_e,fe.f=ht,fe.fencedEndRE=null,fe.code=0,fe.thisLine.fencedCodeEnd=!0,Vt?Ct(Se,fe,fe.block):ze}else return fe.localMode?fe.localMode.token(Se,fe.localState):(Se.skipToEnd(),ke.code)}function Xe(Se){var fe=[];if(Se.formatting){fe.push(ke.formatting),typeof Se.formatting=="string"&&(Se.formatting=[Se.formatting]);for(var vt=0;vt<Se.formatting.length;vt++)fe.push(ke.formatting+"-"+Se.formatting[vt]),Se.formatting[vt]==="header"&&fe.push(ke.formatting+"-"+Se.formatting[vt]+"-"+Se.header),Se.formatting[vt]==="quote"&&(!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=Se.quote?fe.push(ke.formatting+"-"+Se.formatting[vt]+"-"+Se.quote):fe.push("error"))}if(Se.taskOpen)return fe.push("meta"),fe.length?fe.join(" "):null;if(Se.taskClosed)return fe.push("property"),fe.length?fe.join(" "):null;if(Se.linkHref?fe.push(ke.linkHref,"url"):(Se.strong&&fe.push(ke.strong),Se.em&&fe.push(ke.em),Se.strikethrough&&fe.push(ke.strikethrough),Se.emoji&&fe.push(ke.emoji),Se.linkText&&fe.push(ke.linkText),Se.code&&fe.push(ke.code),Se.image&&fe.push(ke.image),Se.imageAltText&&fe.push(ke.imageAltText,"link"),Se.imageMarker&&fe.push(ke.imageMarker)),Se.header&&fe.push(ke.header,ke.header+"-"+Se.header),Se.quote&&(fe.push(ke.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=Se.quote?fe.push(ke.quote+"-"+Se.quote):fe.push(ke.quote+"-"+ve.maxBlockquoteDepth)),Se.list!==!1){var Vt=(Se.listStack.length-1)%3;Vt?Vt===1?fe.push(ke.list2):fe.push(ke.list3):fe.push(ke.list1)}return Se.trailingSpaceNewLine?fe.push("trailing-space-new-line"):Se.trailingSpace&&fe.push("trailing-space-"+(Se.trailingSpace%2?"a":"b")),fe.length?fe.join(" "):null}function Ke(Se,fe){if(Se.match(Ae,!0))return Xe(fe)}function ht(Se,fe){var vt=fe.text(Se,fe);if(typeof vt!="undefined")return vt;if(fe.list)return fe.list=null,Xe(fe);if(fe.taskList){var Vt=Se.match(Ze,!0)[1]===" ";return Vt?fe.taskOpen=!0:fe.taskClosed=!0,ve.highlightFormatting&&(fe.formatting="task"),fe.taskList=!1,Xe(fe)}if(fe.taskOpen=!1,fe.taskClosed=!1,fe.header&&Se.match(/^#+$/,!0))return ve.highlightFormatting&&(fe.formatting="header"),Xe(fe);var Dt=Se.next();if(fe.linkTitle){fe.linkTitle=!1;var ze=Dt;Dt==="("&&(ze=")"),ze=(ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ut="^\\s*(?:[^"+ze+"\\\\]+|\\\\\\\\|\\\\.)"+ze;if(Se.match(new RegExp(ut),!0))return ke.linkHref}if(Dt==="`"){var gt=fe.formatting;ve.highlightFormatting&&(fe.formatting="code"),Se.eatWhile("`");var pn=Se.current().length;if(fe.code==0&&(!fe.quote||pn==1))return fe.code=pn,Xe(fe);if(pn==fe.code){var Ft=Xe(fe);return fe.code=0,Ft}else return fe.formatting=gt,Xe(fe)}else if(fe.code)return Xe(fe);if(Dt==="\\"&&(Se.next(),ve.highlightFormatting)){var en=Xe(fe),tt=ke.formatting+"-escape";return en?en+" "+tt:tt}if(Dt==="!"&&Se.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return fe.imageMarker=!0,fe.image=!0,ve.highlightFormatting&&(fe.formatting="image"),Xe(fe);if(Dt==="["&&fe.imageMarker&&Se.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return fe.imageMarker=!1,fe.imageAltText=!0,ve.highlightFormatting&&(fe.formatting="image"),Xe(fe);if(Dt==="]"&&fe.imageAltText){ve.highlightFormatting&&(fe.formatting="image");var en=Xe(fe);return fe.imageAltText=!1,fe.image=!1,fe.inline=fe.f=et,en}if(Dt==="["&&!fe.image)return fe.linkText&&Se.match(/^.*?\]/)||(fe.linkText=!0,ve.highlightFormatting&&(fe.formatting="link")),Xe(fe);if(Dt==="]"&&fe.linkText){ve.highlightFormatting&&(fe.formatting="link");var en=Xe(fe);return fe.linkText=!1,fe.inline=fe.f=Se.match(/\(.*?\)| ?\[.*?\]/,!1)?et:ht,en}if(Dt==="<"&&Se.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Ne,ve.highlightFormatting&&(fe.formatting="link");var en=Xe(fe);return en?en+=" ":en="",en+ke.linkInline}if(Dt==="<"&&Se.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Ne,ve.highlightFormatting&&(fe.formatting="link");var en=Xe(fe);return en?en+=" ":en="",en+ke.linkEmail}if(ve.xml&&Dt==="<"&&Se.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Kt=Se.string.indexOf(">",Se.pos);if(Kt!=-1){var pt=Se.string.substring(Se.start,Kt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pt)&&(fe.md_inside=!0)}return Se.backUp(1),fe.htmlState=z.startState(Le),Ct(Se,fe,We)}if(ve.xml&&Dt==="<"&&Se.match(/^\/\w*?>/))return fe.md_inside=!1,"tag";if(Dt==="*"||Dt==="_"){for(var le=1,te=Se.pos==1?" ":Se.string.charAt(Se.pos-2);le<3&&Se.eat(Dt);)le++;var ee=Se.peek()||" ",oe=!/\s/.test(ee)&&(!Be.test(ee)||/\s/.test(te)||Be.test(te)),se=!/\s/.test(te)&&(!Be.test(te)||/\s/.test(ee)||Be.test(ee)),re=null,pe=null;if(le%2&&(!fe.em&&oe&&(Dt==="*"||!se||Be.test(te))?re=!0:fe.em==Dt&&se&&(Dt==="*"||!oe||Be.test(ee))&&(re=!1)),le>1&&(!fe.strong&&oe&&(Dt==="*"||!se||Be.test(te))?pe=!0:fe.strong==Dt&&se&&(Dt==="*"||!oe||Be.test(ee))&&(pe=!1)),pe!=null||re!=null){ve.highlightFormatting&&(fe.formatting=re==null?"strong":pe==null?"em":"strong em"),re===!0&&(fe.em=Dt),pe===!0&&(fe.strong=Dt);var Ft=Xe(fe);return re===!1&&(fe.em=!1),pe===!1&&(fe.strong=!1),Ft}}else if(Dt===" "&&(Se.eat("*")||Se.eat("_"))){if(Se.peek()===" ")return Xe(fe);Se.backUp(1)}if(ve.strikethrough){if(Dt==="~"&&Se.eatWhile(Dt)){if(fe.strikethrough){ve.highlightFormatting&&(fe.formatting="strikethrough");var Ft=Xe(fe);return fe.strikethrough=!1,Ft}else if(Se.match(/^[^\s]/,!1))return fe.strikethrough=!0,ve.highlightFormatting&&(fe.formatting="strikethrough"),Xe(fe)}else if(Dt===" "&&Se.match(/^~~/,!0)){if(Se.peek()===" ")return Xe(fe);Se.backUp(2)}}if(ve.emoji&&Dt===":"&&Se.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){fe.emoji=!0,ve.highlightFormatting&&(fe.formatting="emoji");var xe=Xe(fe);return fe.emoji=!1,xe}return Dt===" "&&(Se.match(/^ +$/,!1)?fe.trailingSpace++:fe.trailingSpace&&(fe.trailingSpaceNewLine=!0)),Xe(fe)}function Ne(Se,fe){var vt=Se.next();if(vt===">"){fe.f=fe.inline=ht,ve.highlightFormatting&&(fe.formatting="link");var Vt=Xe(fe);return Vt?Vt+=" ":Vt="",Vt+ke.linkInline}return Se.match(/^[^>]+/,!0),ke.linkInline}function et(Se,fe){if(Se.eatSpace())return null;var vt=Se.next();return vt==="("||vt==="["?(fe.f=fe.inline=me(vt==="("?")":"]"),ve.highlightFormatting&&(fe.formatting="link-string"),fe.linkHref=!0,Xe(fe)):"error"}var qe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function me(Se){return function(fe,vt){var Vt=fe.next();if(Vt===Se){vt.f=vt.inline=ht,ve.highlightFormatting&&(vt.formatting="link-string");var Dt=Xe(vt);return vt.linkHref=!1,Dt}return fe.match(qe[Se]),vt.linkHref=!0,Xe(vt)}}function Ot(Se,fe){return Se.match(/^([^\]\\]|\\.)*\]:/,!1)?(fe.f=De,Se.next(),ve.highlightFormatting&&(fe.formatting="link"),fe.linkText=!0,Xe(fe)):kt(Se,fe,ht)}function De(Se,fe){if(Se.match(/^\]:/,!0)){fe.f=fe.inline=At,ve.highlightFormatting&&(fe.formatting="link");var vt=Xe(fe);return fe.linkText=!1,vt}return Se.match(/^([^\]\\]|\\.)+/,!0),ke.linkText}function At(Se,fe){return Se.eatSpace()?null:(Se.match(/^[^\s]+/,!0),Se.peek()===void 0?fe.linkTitle=!0:Se.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),fe.f=fe.inline=ht,ke.linkHref+" url")}var Xt={startState:function(){return{f:_e,prevLine:{stream:null},thisLine:{stream:null},block:_e,htmlState:null,indentation:0,inline:ht,text:Ke,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(Se){return{f:Se.f,prevLine:Se.prevLine,thisLine:Se.thisLine,block:Se.block,htmlState:Se.htmlState&&z.copyState(Le,Se.htmlState),indentation:Se.indentation,localMode:Se.localMode,localState:Se.localMode?z.copyState(Se.localMode,Se.localState):null,inline:Se.inline,text:Se.text,formatting:!1,linkText:Se.linkText,linkTitle:Se.linkTitle,linkHref:Se.linkHref,code:Se.code,em:Se.em,strong:Se.strong,strikethrough:Se.strikethrough,emoji:Se.emoji,header:Se.header,setext:Se.setext,hr:Se.hr,taskList:Se.taskList,list:Se.list,listStack:Se.listStack.slice(0),quote:Se.quote,indentedCode:Se.indentedCode,trailingSpace:Se.trailingSpace,trailingSpaceNewLine:Se.trailingSpaceNewLine,md_inside:Se.md_inside,fencedEndRE:Se.fencedEndRE}},token:function(Se,fe){if(fe.formatting=!1,Se!=fe.thisLine.stream){if(fe.header=0,fe.hr=!1,Se.match(/^\s*$/,!0))return Je(fe),null;if(fe.prevLine=fe.thisLine,fe.thisLine={stream:Se},fe.taskList=!1,fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,!fe.localState&&(fe.f=fe.block,fe.f!=We)){var vt=Se.match(/^\s*/,!0)[0].replace(/\t/g,ct).length;if(fe.indentation=vt,fe.indentationDiff=null,vt>0)return null}}return fe.f(Se,fe)},innerMode:function(Se){return Se.block==We?{state:Se.htmlState,mode:Le}:Se.localState?{state:Se.localState,mode:Se.localMode}:{state:Se,mode:Xt}},indent:function(Se,fe,vt){return Se.block==We&&Le.indent?Le.indent(Se.htmlState,fe,vt):Se.localState&&Se.localMode.indent?Se.localMode.indent(Se.localState,fe,vt):z.Pass},blankLine:Je,getType:Xe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Xt},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(Yt,zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Ve=0;Ve<z.modeInfo.length;Ve++){var ve=z.modeInfo[Ve];ve.mimes&&(ve.mime=ve.mimes[0])}z.findModeByMIME=function(Le){Le=Le.toLowerCase();for(var ye=0;ye<z.modeInfo.length;ye++){var ge=z.modeInfo[ye];if(ge.mime==Le)return ge;if(ge.mimes){for(var ke=0;ke<ge.mimes.length;ke++)if(ge.mimes[ke]==Le)return ge}}if(/\+xml$/.test(Le))return z.findModeByMIME("application/xml");if(/\+json$/.test(Le))return z.findModeByMIME("application/json")},z.findModeByExtension=function(Le){Le=Le.toLowerCase();for(var ye=0;ye<z.modeInfo.length;ye++){var ge=z.modeInfo[ye];if(ge.ext){for(var ke=0;ke<ge.ext.length;ke++)if(ge.ext[ke]==Le)return ge}}},z.findModeByFileName=function(Le){for(var ye=0;ye<z.modeInfo.length;ye++){var ge=z.modeInfo[ye];if(ge.file&&ge.file.test(Le))return ge}var ke=Le.lastIndexOf("."),$e=ke>-1&&Le.substring(ke+1,Le.length);if($e)return z.findModeByExtension($e)},z.findModeByName=function(Le){Le=Le.toLowerCase();for(var ye=0;ye<z.modeInfo.length;ye++){var ge=z.modeInfo[ye];if(ge.name.toLowerCase()==Le)return ge;if(ge.alias){for(var ke=0;ke<ge.alias.length;ke++)if(ge.alias[ke].toLowerCase()==Le)return ge}}}})},67549:function(Yt,zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.defineMode("stex",function(Ve,ve){"use strict";function Le(Ae,Ie){Ae.cmdState.push(Ie)}function ye(Ae){return Ae.cmdState.length>0?Ae.cmdState[Ae.cmdState.length-1]:null}function ge(Ae){var Ie=Ae.cmdState.pop();Ie&&Ie.closeBracket()}function ke(Ae){for(var Ie=Ae.cmdState,Oe=Ie.length-1;Oe>=0;Oe--){var Be=Ie[Oe];if(Be.name!="DEFAULT")return Be}return{styleIdentifier:function(){return null}}}function $e(Ae,Ie,Oe){return function(){this.name=Ae,this.bracketNo=0,this.style=Ie,this.styles=Oe,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Me={};Me.importmodule=$e("importmodule","tag",["string","builtin"]),Me.documentclass=$e("documentclass","tag",["","atom"]),Me.usepackage=$e("usepackage","tag",["atom"]),Me.begin=$e("begin","tag",["atom"]),Me.end=$e("end","tag",["atom"]),Me.label=$e("label","tag",["atom"]),Me.ref=$e("ref","tag",["atom"]),Me.eqref=$e("eqref","tag",["atom"]),Me.cite=$e("cite","tag",["atom"]),Me.bibitem=$e("bibitem","tag",["atom"]),Me.Bibitem=$e("Bibitem","tag",["atom"]),Me.RBibitem=$e("RBibitem","tag",["atom"]),Me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function de(Ae,Ie){Ae.f=Ie}function Ze(Ae,Ie){var Oe;if(Ae.match(/^\\[a-zA-Z@]+/)){var Be=Ae.current().slice(1);return Oe=Me.hasOwnProperty(Be)?Me[Be]:Me.DEFAULT,Oe=new Oe,Le(Ie,Oe),de(Ie,nt),Oe.style}if(Ae.match(/^\\[$&%#{}_]/)||Ae.match(/^\\[,;!\/\\]/))return"tag";if(Ae.match("\\["))return de(Ie,function(kt,Ct){return be(kt,Ct,"\\]")}),"keyword";if(Ae.match("\\("))return de(Ie,function(kt,Ct){return be(kt,Ct,"\\)")}),"keyword";if(Ae.match("$$"))return de(Ie,function(kt,Ct){return be(kt,Ct,"$$")}),"keyword";if(Ae.match("$"))return de(Ie,function(kt,Ct){return be(kt,Ct,"$")}),"keyword";var ct=Ae.next();if(ct=="%")return Ae.skipToEnd(),"comment";if(ct=="}"||ct=="]"){if(Oe=ye(Ie),Oe)Oe.closeBracket(ct),de(Ie,nt);else return"error";return"bracket"}else return ct=="{"||ct=="["?(Oe=Me.DEFAULT,Oe=new Oe,Le(Ie,Oe),"bracket"):/\d/.test(ct)?(Ae.eatWhile(/[\w.%]/),"atom"):(Ae.eatWhile(/[\w\-_]/),Oe=ke(Ie),Oe.name=="begin"&&(Oe.argument=Ae.current()),Oe.styleIdentifier())}function be(Ae,Ie,Oe){if(Ae.eatSpace())return null;if(Oe&&Ae.match(Oe))return de(Ie,Ze),"keyword";if(Ae.match(/^\\[a-zA-Z@]+/))return"tag";if(Ae.match(/^[a-zA-Z]+/))return"variable-2";if(Ae.match(/^\\[$&%#{}_]/)||Ae.match(/^\\[,;!\/]/)||Ae.match(/^[\^_&]/))return"tag";if(Ae.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ae.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Be=Ae.next();return Be=="{"||Be=="}"||Be=="["||Be=="]"||Be=="("||Be==")"?"bracket":Be=="%"?(Ae.skipToEnd(),"comment"):"error"}function nt(Ae,Ie){var Oe=Ae.peek(),Be;return Oe=="{"||Oe=="["?(Be=ye(Ie),Be.openBracket(Oe),Ae.eat(Oe),de(Ie,Ze),"bracket"):/[ \t\r]/.test(Oe)?(Ae.eat(Oe),null):(de(Ie,Ze),ge(Ie),Ze(Ae,Ie))}return{startState:function(){var Ae=ve.inMathMode?function(Ie,Oe){return be(Ie,Oe)}:Ze;return{cmdState:[],f:Ae}},copyState:function(Ae){return{cmdState:Ae.cmdState.slice(),f:Ae.f}},token:function(Ae,Ie){return Ie.f(Ae,Ie)},blankLine:function(Ae){Ae.f=Ze,Ae.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(Yt,zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var Ve={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Le,ye){var ge=Le.indentUnit,ke={},$e=ye.htmlMode?Ve:ve;for(var Me in $e)ke[Me]=$e[Me];for(var Me in ye)ke[Me]=ye[Me];var de,Ze;function be(Ne,et){function qe(De){return et.tokenize=De,De(Ne,et)}var me=Ne.next();if(me=="<")return Ne.eat("!")?Ne.eat("[")?Ne.match("CDATA[")?qe(Ie("atom","]]>")):null:Ne.match("--")?qe(Ie("comment","-->")):Ne.match("DOCTYPE",!0,!0)?(Ne.eatWhile(/[\w\._\-]/),qe(Oe(1))):null:Ne.eat("?")?(Ne.eatWhile(/[\w\._\-]/),et.tokenize=Ie("meta","?>"),"meta"):(de=Ne.eat("/")?"closeTag":"openTag",et.tokenize=nt,"tag bracket");if(me=="&"){var Ot;return Ne.eat("#")?Ne.eat("x")?Ot=Ne.eatWhile(/[a-fA-F\d]/)&&Ne.eat(";"):Ot=Ne.eatWhile(/[\d]/)&&Ne.eat(";"):Ot=Ne.eatWhile(/[\w\.\-:]/)&&Ne.eat(";"),Ot?"atom":"error"}else return Ne.eatWhile(/[^&<]/),null}be.isInText=!0;function nt(Ne,et){var qe=Ne.next();if(qe==">"||qe=="/"&&Ne.eat(">"))return et.tokenize=be,de=qe==">"?"endTag":"selfcloseTag","tag bracket";if(qe=="=")return de="equals",null;if(qe=="<"){et.tokenize=be,et.state=Ct,et.tagName=et.tagStart=null;var me=et.tokenize(Ne,et);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(qe)?(et.tokenize=Ae(qe),et.stringStartCol=Ne.column(),et.tokenize(Ne,et)):(Ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ae(Ne){var et=function(qe,me){for(;!qe.eol();)if(qe.next()==Ne){me.tokenize=nt;break}return"string"};return et.isInAttribute=!0,et}function Ie(Ne,et){return function(qe,me){for(;!qe.eol();){if(qe.match(et)){me.tokenize=be;break}qe.next()}return Ne}}function Oe(Ne){return function(et,qe){for(var me;(me=et.next())!=null;){if(me=="<")return qe.tokenize=Oe(Ne+1),qe.tokenize(et,qe);if(me==">")if(Ne==1){qe.tokenize=be;break}else return qe.tokenize=Oe(Ne-1),qe.tokenize(et,qe)}return"meta"}}function Be(Ne,et,qe){this.prev=Ne.context,this.tagName=et,this.indent=Ne.indented,this.startOfLine=qe,(ke.doNotIndent.hasOwnProperty(et)||Ne.context&&Ne.context.noIndent)&&(this.noIndent=!0)}function ct(Ne){Ne.context&&(Ne.context=Ne.context.prev)}function kt(Ne,et){for(var qe;;){if(!Ne.context||(qe=Ne.context.tagName,!ke.contextGrabbers.hasOwnProperty(qe)||!ke.contextGrabbers[qe].hasOwnProperty(et)))return;ct(Ne)}}function Ct(Ne,et,qe){return Ne=="openTag"?(qe.tagStart=et.column(),it):Ne=="closeTag"?Je:Ct}function it(Ne,et,qe){return Ne=="word"?(qe.tagName=et.current(),Ze="tag",St):ke.allowMissingTagName&&Ne=="endTag"?(Ze="tag bracket",St(Ne,et,qe)):(Ze="error",it)}function Je(Ne,et,qe){if(Ne=="word"){var me=et.current();return qe.context&&qe.context.tagName!=me&&ke.implicitlyClosed.hasOwnProperty(qe.context.tagName)&&ct(qe),qe.context&&qe.context.tagName==me||ke.matchClosing===!1?(Ze="tag",_e):(Ze="tag error",We)}else return ke.allowMissingTagName&&Ne=="endTag"?(Ze="tag bracket",_e(Ne,et,qe)):(Ze="error",We)}function _e(Ne,et,qe){return Ne!="endTag"?(Ze="error",_e):(ct(qe),Ct)}function We(Ne,et,qe){return Ze="error",_e(Ne,et,qe)}function St(Ne,et,qe){if(Ne=="word")return Ze="attribute",Xe;if(Ne=="endTag"||Ne=="selfcloseTag"){var me=qe.tagName,Ot=qe.tagStart;return qe.tagName=qe.tagStart=null,Ne=="selfcloseTag"||ke.autoSelfClosers.hasOwnProperty(me)?kt(qe,me):(kt(qe,me),qe.context=new Be(qe,me,Ot==qe.indented)),Ct}return Ze="error",St}function Xe(Ne,et,qe){return Ne=="equals"?Ke:(ke.allowMissing||(Ze="error"),St(Ne,et,qe))}function Ke(Ne,et,qe){return Ne=="string"?ht:Ne=="word"&&ke.allowUnquoted?(Ze="string",St):(Ze="error",St(Ne,et,qe))}function ht(Ne,et,qe){return Ne=="string"?ht:St(Ne,et,qe)}return{startState:function(Ne){var et={tokenize:be,state:Ct,indented:Ne||0,tagName:null,tagStart:null,context:null};return Ne!=null&&(et.baseIndent=Ne),et},token:function(Ne,et){if(!et.tagName&&Ne.sol()&&(et.indented=Ne.indentation()),Ne.eatSpace())return null;de=null;var qe=et.tokenize(Ne,et);return(qe||de)&&qe!="comment"&&(Ze=null,et.state=et.state(de||qe,Ne,et),Ze&&(qe=Ze=="error"?qe+" error":Ze)),qe},indent:function(Ne,et,qe){var me=Ne.context;if(Ne.tokenize.isInAttribute)return Ne.tagStart==Ne.indented?Ne.stringStartCol+1:Ne.indented+ge;if(me&&me.noIndent)return z.Pass;if(Ne.tokenize!=nt&&Ne.tokenize!=be)return qe?qe.match(/^(\s*)/)[0].length:0;if(Ne.tagName)return ke.multilineTagIndentPastTag!==!1?Ne.tagStart+Ne.tagName.length+2:Ne.tagStart+ge*(ke.multilineTagIndentFactor||1);if(ke.alignCDATA&&/<!\[CDATA\[/.test(et))return 0;var Ot=et&&/^<(\/)?([\w_:\.-]*)/.exec(et);if(Ot&&Ot[1])for(;me;)if(me.tagName==Ot[2]){me=me.prev;break}else if(ke.implicitlyClosed.hasOwnProperty(me.tagName))me=me.prev;else break;else if(Ot)for(;me;){var De=ke.contextGrabbers[me.tagName];if(De&&De.hasOwnProperty(Ot[2]))me=me.prev;else break}for(;me&&me.prev&&!me.startOfLine;)me=me.prev;return me?me.indent+ge:Ne.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ke.htmlMode?"html":"xml",helperType:ke.htmlMode?"html":"xml",skipAttribute:function(Ne){Ne.state==Ke&&(Ne.state=St)},xmlCurrentTag:function(Ne){return Ne.tagName?{name:Ne.tagName,close:Ne.type=="closeTag"}:null},xmlCurrentContext:function(Ne){for(var et=[],qe=Ne.context;qe;qe=qe.prev)qe.tagName&&et.push(qe.tagName);return et.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(Yt,zt,ie){"use strict";ie.d(zt,{hP:function(){return pt}});var z=function(le,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(le,te)};function Ve(le,te){function ee(){this.constructor=le}z(le,te),le.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ve(le,te,ee,oe){return new(ee||(ee=Promise))(function(se,re){function pe(Ee){try{at(oe.next(Ee))}catch(je){re(je)}}function xe(Ee){try{at(oe.throw(Ee))}catch(je){re(je)}}function at(Ee){var je;Ee.done?se(Ee.value):(je=Ee.value,je instanceof ee?je:new ee(function(ot){ot(je)})).then(pe,xe)}at((oe=oe.apply(le,te||[])).next())})}function Le(le,te){var ee,oe,se,re,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return re={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function xe(at){return function(Ee){return function(je){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&je[0]?oe.return:je[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,je[1])).done)return se;switch(oe=0,se&&(je=[2&je[0],se.value]),je[0]){case 0:case 1:se=je;break;case 4:return pe.label++,{value:je[1],done:!1};case 5:pe.label++,oe=je[1],je=[0];continue;case 7:je=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||je[0]!==6&&je[0]!==2)){pe=0;continue}if(je[0]===3&&(!se||je[1]>se[0]&&je[1]<se[3])){pe.label=je[1];break}if(je[0]===6&&pe.label<se[1]){pe.label=se[1],se=je;break}if(se&&pe.label<se[2]){pe.label=se[2],pe.ops.push(je);break}se[2]&&pe.ops.pop(),pe.trys.pop();continue}je=te.call(le,pe)}catch(ot){je=[6,ot],oe=0}finally{ee=se=0}if(5&je[0])throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}([at,Ee])}}}function ye(){for(var le=0,te=0,ee=arguments.length;te<ee;te++)le+=arguments[te].length;var oe=Array(le),se=0;for(te=0;te<ee;te++)for(var re=arguments[te],pe=0,xe=re.length;pe<xe;pe++,se++)oe[se]=re[pe];return oe}var ge=function(){function le(){}return le.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},le.setAttributes=function(te,ee){for(var oe=0,se=ee;oe<se.length;oe++){var re=se[oe],pe=re[0],xe=re[1];te.setAttribute(pe,xe)}},le.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&&le.setAttributes(se,oe),se},le.createLine=function(te,ee,oe,se,re){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()),re&&le.setAttributes(pe,re),pe},le.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&le.setAttributes(oe,ee),oe},le.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&&le.setAttributes(oe,ee),oe},le.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&&le.setAttributes(se,oe),se},le.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&le.setAttributes(ee,te),ee},le.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},le.createMarker=function(te,ee,oe,se,re,pe,xe){var at=document.createElementNS("http://www.w3.org/2000/svg","marker");return le.setAttributes(at,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",re.toString()],["refY",pe.toString()]]),at.appendChild(xe),at},le.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&le.setAttributes(ee,te),ee},le.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&le.setAttributes(oe,ee),oe},le.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&le.setAttributes(ee,te),ee},le.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},le.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&le.setAttributes(oe,ee),oe},le}(),ke=function(){function le(){}return le.addKey=function(te){le.key=te},Object.defineProperty(le,"isLicensed",{get:function(){return!!le.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(le.key)},enumerable:!1,configurable:!0}),le}(),$e=function(){function le(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return le.prototype.rasterize=function(te,ee,oe){var se=this;return new Promise(function(re){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 at=xe.outerHTML,Ee=pe.getContext("2d");se.markersOnly!==!0&&Ee.drawImage(te,0,0,pe.width,pe.height);var je=window.URL,ot=new Image(pe.width,pe.height);ot.setAttribute("crossOrigin","anonymous");var wt=new Blob([at],{type:"image/svg+xml"}),dt=je.createObjectURL(wt);ot.onload=function(){Ee.drawImage(ot,0,0),je.revokeObjectURL(dt);var Zt=pe.toDataURL(se.imageType,se.imageQuality);re(Zt)},ot.src=dt})},le}(),Me=function(){},de=function(){function le(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(le.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(le.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(le.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),le.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},le.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)},le.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 Ze("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new be("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new be("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},le.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},le}(),Ze=function(le,te){this.selector=le,this.style=te},be=function(le,te){this.localName=le,this.style=te},nt=function(){function le(te,ee,oe,se,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=se,this.styles=re,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return le.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(re){var pe=document.createElement("div");pe.className=""+ee.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",re.typeName),pe.innerHTML=re.icon,pe.addEventListener("click",function(){ee.markerToolbarButtonClicked(pe,re)}),ee.buttons.push(pe),ee.markerButtons.push(pe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<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()},le.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},le.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},le.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},le.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]))}},le.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")},le.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)})},le.prototype.addActionButton=function(te,ee,oe){var se=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=ee,re.setAttribute("data-action",oe),re.addEventListener("click",function(){se.actionToolbarButtonClicked(re,oe)}),oe){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(re),this.buttons.push(re)},le.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new be("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 be("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new be("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new be("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 be("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new be("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 be("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new be("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},le.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"},le.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])},le.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)},le.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},le.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")})},le}(),Ae=function(){function le(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 le.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new be("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 be("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new be("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new be("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new be("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 be("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new be("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 be("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new be("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},le.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)},le.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var pe;re.uiStyleSettings=se.uiStyleSettings;var xe=document.createElement("div");xe.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),xe.innerHTML=re.icon,xe.title=re.title,xe.addEventListener("click",function(){se.panelButtonClick(re)}),se.panelButtons.push(xe),se.buttonRow.appendChild(xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},le.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,pe){var xe,at;re.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((xe=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&xe!==void 0?xe:ee.toolboxActiveButtonStyleColorsClass.name):""+((at=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&at!==void 0?at:ee.toolboxButtonStyleColorsClass.name))})},le}(),Ie=function(le,te){this.title=le,this.icon=te},Oe=function(le){function te(ee,oe,se,re){var pe=le.call(this,ee,re||'<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 Ve(te,le),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var re=ee.getColorBox(se);oe.appendChild(re),ee.colorBoxes.push(re)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-se,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=re-2+"px",pe.style.height=re-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(re+2)/2+"px",pe.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(ee,pe)});var xe=document.createElement("div");return xe.style.display="inline-block",xe.style.width=re-2+"px",xe.style.height=re-2+"px",xe.style.backgroundColor=ee,xe.style.borderRadius=re/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(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Ie),Be=function(){function le(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(le.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(te){return!1},Object.defineProperty(le.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),le.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},le.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},le.prototype.pointerDown=function(te,ee){},le.prototype.dblClick=function(te,ee){},le.prototype.manipulate=function(te){},le.prototype.pointerUp=function(te){this.stateChanged()},le.prototype.dispose=function(){},le.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},le.prototype.getState=function(){return{typeName:le.typeName,state:this.state,notes:this.notes}},le.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},le.prototype.scale=function(te,ee){},le.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},le.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},le.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)}},le.typeName="MarkerBase",le}(),ct=function(){function le(){this.findGripByVisual=this.findGripByVisual.bind(this)}return le.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},le}(),kt=function(){function le(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return le.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},le}(),Ct=function(){function le(){}return le.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},le.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},le}(),it=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(ge.createTransform()),re.setupControlBox(),re}return Ve(te,le),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=ge.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!le.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){le.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;le.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,re=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+ee.y-this.manipulationStartY,pe=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),pe>=0?(this.top=re,this.height=pe):(this.top=re+pe,this.height=-pe),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=ge.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=ge.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){le.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){le.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=ge.createGroup();var ee=ge.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=ge.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=ge.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ct,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new kt;return ee.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,re=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,xe=this.height+this.CB_DISTANCE-ee/2,at=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,re,se),this.positionGrip(this.controlGrips.topRight.visual,at,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,at,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,xe),this.positionGrip(this.controlGrips.bottomCenter.visual,re,xe),this.positionGrip(this.controlGrips.bottomRight.visual,at,xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},le.prototype.getState.call(this))},te.prototype.restoreState=function(ee){le.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(Ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){le.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(Be),Je=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=ge.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){le.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){le.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){le.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){le.prototype.setSize.call(this),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){le.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&ge.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},le.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(),le.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){le.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(it),_e=function(le){function te(ee,oe,se,re){var pe=le.call(this,ee,re||'<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 Ve(te,le),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentWidth(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",re.appendChild(pe);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.display="flex",xe.style.alignItems="center";var at=document.createElement("hr");at.style.minWidth="20px",at.style.border="0px",at.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,at.style.flexGrow="2",xe.appendChild(at),re.appendChild(xe),ee.widthBoxes.push(re)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Ie),We=function(le){function te(ee,oe,se,re){var pe=le.call(this,ee,re||'<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 Ve(te,le),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.styles.length-5+"%",re.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentStyle(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var 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,re.appendChild(pe),ee.styleBoxes.push(re)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Ie),St=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Oe("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new _e("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new We("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ve(te,le),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.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}(Je),Xe=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"},Ke=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!!le.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){le.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;le.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(){le.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){le.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=ge.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 kt;return ee.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},le.prototype.getState.call(this))},te.prototype.restoreState=function(ee){le.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){le.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}(Be),ht=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Oe("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new _e("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new We("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.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){le.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()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.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},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.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}(Ke),Ne=function(le){function te(ee,oe,se,re){var pe=le.call(this,ee,re||'<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 Ve(te,le),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.fonts.length-5+"%",re.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentFont(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var 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),re.appendChild(pe),ee.fontBoxes.push(re)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Ie),et=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=se.defaultColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Oe("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Ne("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Ve(te,le),te.prototype.ownsTarget=function(ee){if(le.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=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){le.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(ge.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,re=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,re)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,re=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,re=this.height/2-oe.height*ee/2),{x:se,y:re}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){le.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){le.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){le.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.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),le.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),re={x:se.width*ee,y:se.height*ee};oe.x-=re.x/2,oe.y-=re.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){le.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),le.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){le.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&ge.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&&ge.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},le.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(),le.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){le.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}(it),qe=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=se.defaultColor,re.lineWidth=se.defaultStrokeWidth,re.pixelRatio=se.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Oe("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new _e("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var ee=ge.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):le.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()):le.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){le.prototype.resize.call(this,ee),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.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()):le.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(),le.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),le.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],re=oe[1],pe=oe[2],xe=oe[3],at=!1,Ee=0;Ee<this.canvasElement.height;Ee++)for(var je=0;je<this.canvasElement.width;je++)ee.data[Ee*this.canvasElement.width*4+4*je+3]>0&&(at=!0,Ee<re&&(re=Ee),je<se&&(se=je),Ee>xe&&(xe=Ee),je>pe&&(pe=je));if(at){this.left=se/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(xe-re)/this.pixelRatio;var ot=document.createElement("canvas");ot.width=pe-se,ot.height=xe-re,ot.getContext("2d").putImageData(this.canvasContext.getImageData(se,re,pe-se,xe-re),0,0),this.drawingImgUrl=ot.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.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},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),le.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){le.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}(it),me=function(le){function te(ee,oe,se){var re=le.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 re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return Ve(te,le),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 at="both";switch(xe){case 0:at="both";break;case 1:at="start";break;case 2:at="end";break;case 3:at="none"}var Ee=document.createElement("div");if(Ee.style.display="flex",Ee.style.flexGrow="2",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=at===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){ee.setCurrentType(at,Ee)}),oe.appendChild(Ee),at==="both"||at==="start"){var je=document.createElement("div");je.style.display="flex",je.style.alignItems="center",je.style.minHeight="20px",je.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,je.style.marginLeft="5px",Ee.appendChild(je)}var ot=document.createElement("div");ot.style.display="flex",ot.style.alignItems="center",ot.style.minHeight="20px",ot.style.flexGrow="2";var wt=document.createElement("hr");if(wt.style.minWidth="20px",wt.style.border="0px",wt.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),wt.style.flexGrow="2",ot.appendChild(wt),Ee.appendChild(ot),at==="both"||at==="end"){var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,dt.style.marginRight="5px",Ee.appendChild(dt)}re.typeBoxes.push(Ee)},re=this,pe=0;pe<4;pe++)se(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Ie),Ot=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new me("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+re/2)+" "+ee+","+(oe-re/2)+" "+(ee+se/2)+","+(oe+re/2)},te.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){le.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(le.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",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.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},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.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}(ht),De=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.fillColor=se.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Oe("Color",se.defaultColorSet,se.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Ve(te,le),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.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}(Je),At=function(le){function te(ee,oe,se,re){var pe=le.call(this,ee,re||'<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 Ve(te,le),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentOpacity(se,re)}),oe.appendChild(re);var pe=document.createElement("div");pe.innerText=100*se+"%",re.appendChild(pe),ee.opacityBoxes.push(re)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Ie),Xt=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=se.defaultHighlightColor,re.strokeWidth=0,re.opacity=se.defaultHighlightOpacity,re.fillPanel=new Oe("Color",se.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new At("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Ve(te,le),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&ge.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=le.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}(De),Se='<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>',fe='<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>',vt=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=se.defaultStrokeColor,re.bgColor=se.defaultFillColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Oe("Text color",se.defaultColorSet,re.color,Se),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Oe("Fill color",se.defaultColorSet,re.bgColor,fe),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Ne("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new kt,re.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return le.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&le.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):le.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,le.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";le.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 le.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",ee]]),ge.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<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?re<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?re<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}):re<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){le.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){ge.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(),le.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},le.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,le.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){le.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}(et),Vt=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new Oe("Line color",ye(se.defaultColorSet,["transparent"]),se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Oe("Fill color",ye(se.defaultColorSet,["transparent"]),re.fillColor,fe),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new _e("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new We("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new At("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=ge.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){le.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){le.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){le.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){le.prototype.setSize.call(this),ge.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){le.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&ge.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},le.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(),le.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){le.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}(it),Dt=function(le){function te(ee,oe,se){return le.call(this,ee,oe,se)||this}return Ve(te,le),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=ge.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(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.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(ge.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ee,oe){le.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(le.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.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()]]),ge.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=le.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.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}(ht),ze=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.strokePanel.colors=se.defaultColorSet,re.fillColor="transparent",re}return Ve(te,le),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=le.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}(Vt),ut=function(){function le(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(le.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),le.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))},le.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},le.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},le.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}},le.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},le}(),gt=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Oe("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new _e("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new We("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!(!le.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=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.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){le.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()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){le.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.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,le.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){le.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),le.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),le.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,le.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},le.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){le.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}(Ke),pn=function(le){function te(ee,oe,se){var re=le.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.textColor=se.defaultStrokeColor,re.fontFamily=se.defaultFontFamily,re.fontSize=se.defaultCaptionFontSize,re.captionText=se.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Oe("Line color",ye(se.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Oe("Fill color",ye(se.defaultColorSet,["transparent"]),re.fillColor,fe),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new _e("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new We("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Ne("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Oe("Text color",se.defaultColorSet,re.textColor,Se),re.textColorPanel.onColorChanged=re.setTextColor,re}return Ve(te,le),te.prototype.ownsTarget=function(ee){return!(!le.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.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=ge.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){le.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){le.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){le.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),ge.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')"]]),ge.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&&ge.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&&ge.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){le.prototype.setSize.call(this),ge.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){le.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){le.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&ge.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},le.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(),le.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){le.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}(it),Ft=function(){function le(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(le.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),le.prototype.preventDefault=function(){this._defaultPrevented=!0},le}(),en=function(le){function te(ee,oe,se){var re=le.call(this,ee,!1)||this;return re.dataUrl=oe,re.state=se,re}return Ve(te,le),te}(Ft),tt=function(le){function te(ee,oe,se){se===void 0&&(se=!1);var re=le.call(this,ee,se)||this;return re.marker=oe,re}return Ve(te,le),te}(Ft),Kt=function(){function le(){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 le.prototype.addEventListener=function(te,ee){this[te].push(ee)},le.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},le}(),pt=function(){function le(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 Xe,this._isOpen=!1,this.undoRedoManager=new ut,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 Kt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=le.instanceCounter++,this.styles=new de(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(le.prototype,"ALL_MARKER_TYPES",{get:function(){return[St,qe,Ot,et,ze,Vt,Xt,vt,Dt,De,ht,gt,pn]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[St,qe,Ot,et,Vt,Xt,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"BASIC_MARKER_TYPES",{get:function(){return[St,qe,Ot,et,Xt]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(le.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(le.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),le.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ke.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},le.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Ft(te))})},le.prototype.render=function(){return ve(this,void 0,void 0,function(){var te;return Le(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new $e).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},le.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var re=new Ft(ee,!0);se(re),re.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new Ft(ee))}),this.detachEvents(),this._isOpen=!1)}},le.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},le.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},le.prototype.removeRenderEventListener=function(te){},le.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},le.prototype.removeCloseEventListener=function(te){},le.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))},le.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)},le.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},le.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},le.prototype.scaleMarkers=function(te,ee){var oe,se=this;this._currentMarker&&this._currentMarker instanceof et?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==se._currentMarker&&re.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},le.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"},le.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.top},le.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)},le.prototype.addDefs=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=ge.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},le.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},le.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)},le.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},le.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},le.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)},le.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},le.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)},le.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()},le.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")},le.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"},le.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},le.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 nt(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 Ae(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},le.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},le.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},le.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())},le.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()}},le.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var re=new tt(te,te._currentMarker,!0);se(re),re.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new tt(te,oe))})}}},le.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var xe=new tt(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(at){return at(new tt(te,xe))})},se=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(le.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),le.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))},le.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)},le.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},le.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(re){return re(new Ft(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(re){return re(new Ft(te))})}},le.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},le.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 Ft(te))}))},le.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},le.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 Ft(te))}))},le.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},le.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},le.prototype.startRenderAndClose=function(){return ve(this,void 0,void 0,function(){var te,ee,oe=this;return Le(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(re){return re(new en(oe,te,ee))}),this.close(!0),[2]}})})},le.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},le.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 re=ee.addNewMarker(se);re.restoreState(oe),ee.markers.push(re)}}),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 Ft(ee))})},le.prototype.addNewMarker=function(te){var ee=ge.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},le.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 tt(oe,oe._currentMarker))}))},le.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof qe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(qe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new tt(ee,ee._currentMarker))})},le.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},le.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},le.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new tt(ee,te))})},le.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 tt(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 tt(ee,ee._currentMarker))}))},le.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))},le.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()}},le.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}))},le.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()},le.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},le.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},le.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},le.prototype.onWindowResize=function(){this.positionUI()},le.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()},le.prototype.addLicenseKey=function(te){ke.addKey(te)},le.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},le.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},le.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(le.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),le.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 Ft(te))}))},le.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 Ft(te))}))},le.instanceCounter=0,le}()},6551:function(Yt,zt,ie){"use strict";ie.d(zt,{ZP:function(){return ke}});var z=ie(72190),Ve=ie(59301),ve=ie(47273),Le=0,ye=(0,ve.Z)();function ge(){var $e;return ye?($e=Le,Le+=1):$e="TEST_OR_SSR",$e}function ke($e){var Me=Ve.useState(),de=(0,z.Z)(Me,2),Ze=de[0],be=de[1];return Ve.useEffect(function(){be("rc_select_".concat(ge()))},[]),$e||Ze}},37463:function(Yt,zt,ie){"use strict";ie.d(zt,{Ac:function(){return st},Xo:function(){return Lt},Wx:function(){return Qt},ZP:function(){return yr},lk:function(){return Ct}});var z=ie(60499),Ve=ie(77654),ve=ie(18642),Le=ie(85899),ye=ie(72190),ge=ie(42244),ke=ie(43749),$e=ie(18929),Me=ie(48736),de=ie(59301),Ze=ie(92310),be=ie.n(Ze),nt=ie(34280),Ae=ie(49658),Ie=ie(8654),Oe=function(Ue){var Ce=Ue.className,Re=Ue.customizeIcon,we=Ue.customizeIconProps,Fe=Ue.children,ft=Ue.onMouseDown,qt=Ue.onClick,rn=typeof Re=="function"?Re(we):Re;return de.createElement("span",{className:Ce,onMouseDown:function(Wt){Wt.preventDefault(),ft==null||ft(Wt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:qt,"aria-hidden":!0},rn!==void 0?rn:de.createElement("span",{className:be()(Ce.split(/\s+/).map(function(hn){return"".concat(hn,"-icon")}))},Fe))},Be=Oe,ct=function(Ue,Ce,Re,we,Fe){var ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,qt=arguments.length>6?arguments[6]:void 0,rn=arguments.length>7?arguments[7]:void 0,hn=de.useMemo(function(){if((0,ke.Z)(we)==="object")return we.clearIcon;if(Fe)return Fe},[we,Fe]),Wt=de.useMemo(function(){return!!(!ft&&we&&(Re.length||qt)&&!(rn==="combobox"&&qt===""))},[we,ft,Re.length,qt,rn]);return{allowClear:Wt,clearIcon:de.createElement(Be,{className:"".concat(Ue,"-clear"),onMouseDown:Ce,customizeIcon:hn},"\xD7")}},kt=de.createContext(null);function Ct(){return de.useContext(kt)}function it(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ue=de.useState(!1),Ce=(0,ye.Z)(Ue,2),Re=Ce[0],we=Ce[1],Fe=de.useRef(null),ft=function(){window.clearTimeout(Fe.current)};de.useEffect(function(){return ft},[]);var qt=function(hn,Wt){ft(),Fe.current=window.setTimeout(function(){we(hn),Wt&&Wt()},Te)};return[Re,qt,ft]}function Je(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ue=de.useRef(null),Ce=de.useRef(null);de.useEffect(function(){return function(){window.clearTimeout(Ce.current)}},[]);function Re(we){(we||Ue.current===null)&&(Ue.current=we),window.clearTimeout(Ce.current),Ce.current=window.setTimeout(function(){Ue.current=null},Te)}return[function(){return Ue.current},Re]}function _e(Te,Ue,Ce,Re){var we=de.useRef(null);we.current={open:Ue,triggerOpen:Ce,customizedTrigger:Re},de.useEffect(function(){function Fe(ft){var qt;if(!((qt=we.current)!==null&&qt!==void 0&&qt.customizedTrigger)){var rn=ft.target;rn.shadowRoot&&ft.composed&&(rn=ft.composedPath()[0]||rn),we.current.open&&Te().filter(function(hn){return hn}).every(function(hn){return!hn.contains(rn)&&hn!==rn})&&we.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Fe),function(){return window.removeEventListener("mousedown",Fe)}},[])}var We=ie(10228);function St(Te){return Te&&![We.Z.ESC,We.Z.SHIFT,We.Z.BACKSPACE,We.Z.TAB,We.Z.WIN_KEY,We.Z.ALT,We.Z.META,We.Z.WIN_KEY_RIGHT,We.Z.CTRL,We.Z.SEMICOLON,We.Z.EQUALS,We.Z.CAPS_LOCK,We.Z.CONTEXT_MENU,We.Z.F1,We.Z.F2,We.Z.F3,We.Z.F4,We.Z.F5,We.Z.F6,We.Z.F7,We.Z.F8,We.Z.F9,We.Z.F10,We.Z.F11,We.Z.F12].includes(Te)}var Xe=ie(26112),Ke=ie(83836);function ht(Te,Ue,Ce){var Re=(0,Le.Z)((0,Le.Z)({},Te),Ce?Ue:{});return Object.keys(Ue).forEach(function(we){var Fe=Ue[we];typeof Fe=="function"&&(Re[we]=function(){for(var ft,qt=arguments.length,rn=new Array(qt),hn=0;hn<qt;hn++)rn[hn]=arguments[hn];return Fe.apply(void 0,rn),(ft=Te[we])===null||ft===void 0?void 0:ft.call.apply(ft,[Te].concat(rn))})}),Re}var Ne=ht,et=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],qe=function(Ue,Ce){var Re=Ue.prefixCls,we=Ue.id,Fe=Ue.inputElement,ft=Ue.autoFocus,qt=Ue.autoComplete,rn=Ue.editable,hn=Ue.activeDescendantId,Wt=Ue.value,Mt=Ue.open,bt=Ue.attrs,un=(0,ge.Z)(Ue,et),Ln=Fe||de.createElement("input",null),En=Ln,In=En.ref,dr=En.props;return(0,Me.Kp)(!("maxLength"in Ln.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ln=de.cloneElement(Ln,(0,Le.Z)((0,Le.Z)((0,Le.Z)({type:"search"},Ne(un,dr,!0)),{},{id:we,ref:(0,Ie.sQ)(Ce,In),autoComplete:qt||"off",autoFocus:ft,className:be()("".concat(Re,"-selection-search-input"),dr==null?void 0:dr.className),role:"combobox","aria-expanded":Mt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(we,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(we,"_list"),"aria-activedescendant":Mt?hn:void 0},bt),{},{value:rn?Wt:"",readOnly:!rn,unselectable:rn?null:"on",style:(0,Le.Z)((0,Le.Z)({},dr.style),{},{opacity:rn?null:0})})),Ln},me=de.forwardRef(qe),Ot=me;function De(Te){return Array.isArray(Te)?Te:Te!==void 0?[Te]:[]}var At=typeof window!="undefined"&&window.document&&window.document.documentElement,Xt=At;function Se(Te){return Te!=null}function fe(Te){return!Te&&Te!==0}function vt(Te){return["string","number"].includes((0,ke.Z)(Te))}function Vt(Te){var Ue=void 0;return Te&&(vt(Te.title)?Ue=Te.title.toString():vt(Te.label)&&(Ue=Te.label.toString())),Ue}function Dt(Te,Ue){Xt?de.useLayoutEffect(Te,Ue):de.useEffect(Te,Ue)}function ze(Te){var Ue;return(Ue=Te.key)!==null&&Ue!==void 0?Ue:Te.value}var ut=function(Ue){Ue.preventDefault(),Ue.stopPropagation()},gt=function(Ue){var Ce=Ue.id,Re=Ue.prefixCls,we=Ue.values,Fe=Ue.open,ft=Ue.searchValue,qt=Ue.autoClearSearchValue,rn=Ue.inputRef,hn=Ue.placeholder,Wt=Ue.disabled,Mt=Ue.mode,bt=Ue.showSearch,un=Ue.autoFocus,Ln=Ue.autoComplete,En=Ue.activeDescendantId,In=Ue.tabIndex,dr=Ue.removeIcon,mt=Ue.maxTagCount,Ge=Ue.maxTagTextLength,Et=Ue.maxTagPlaceholder,Rt=Et===void 0?function(an){return"+ ".concat(an.length," ...")}:Et,Ht=Ue.tagRender,on=Ue.onToggleOpen,Bn=Ue.onRemove,mn=Ue.onInputChange,Mn=Ue.onInputPaste,Pn=Ue.onInputKeyDown,Nn=Ue.onInputMouseDown,wn=Ue.onInputCompositionStart,nr=Ue.onInputCompositionEnd,jn=Ue.onInputBlur,Zn=de.useRef(null),rr=(0,de.useState)(0),fr=(0,ye.Z)(rr,2),Gn=fr[0],ar=fr[1],zn=(0,de.useState)(!1),hr=(0,ye.Z)(zn,2),_n=hr[0],Sr=hr[1],tr="".concat(Re,"-selection"),er=Fe||Mt==="multiple"&&qt===!1||Mt==="tags"?ft:"",cr=Mt==="tags"||Mt==="multiple"&&qt===!1||bt&&(Fe||_n);Dt(function(){ar(Zn.current.scrollWidth)},[er]);var br=function(jt,Dn,Wn,Jt,tn){return de.createElement("span",{title:Vt(jt),className:be()("".concat(tr,"-item"),(0,ve.Z)({},"".concat(tr,"-item-disabled"),Wn))},de.createElement("span",{className:"".concat(tr,"-item-content")},Dn),Jt&&de.createElement(Be,{className:"".concat(tr,"-item-remove"),onMouseDown:ut,onClick:tn,customizeIcon:dr},"\xD7"))},vr=function(jt,Dn,Wn,Jt,tn,On){var kn=function(kr){ut(kr),on(!Fe)};return de.createElement("span",{onMouseDown:kn},Ht({label:Dn,value:jt,disabled:Wn,closable:Jt,onClose:tn,isMaxTag:!!On}))},lr=function(jt){var Dn=jt.disabled,Wn=jt.label,Jt=jt.value,tn=!Wt&&!Dn,On=Wn;if(typeof Ge=="number"&&(typeof Wn=="string"||typeof Wn=="number")){var kn=String(On);kn.length>Ge&&(On="".concat(kn.slice(0,Ge),"..."))}var mr=function(xr){xr&&xr.stopPropagation(),Bn(jt)};return typeof Ht=="function"?vr(Jt,On,Dn,tn,mr):br(jt,On,Dn,tn,mr)},Yn=function(jt){if(!we.length)return null;var Dn=typeof Rt=="function"?Rt(jt):Rt;return typeof Ht=="function"?vr(void 0,Dn,!1,!1,void 0,!0):br({title:Dn},Dn,!1)},Ut=de.createElement("div",{className:"".concat(tr,"-search"),style:{width:Gn},onFocus:function(){Sr(!0)},onBlur:function(){Sr(!1)}},de.createElement(Ot,{ref:rn,open:Fe,prefixCls:Re,id:Ce,inputElement:null,disabled:Wt,autoFocus:un,autoComplete:Ln,editable:cr,activeDescendantId:En,value:er,onKeyDown:Pn,onMouseDown:Nn,onChange:mn,onPaste:Mn,onCompositionStart:wn,onCompositionEnd:nr,onBlur:jn,tabIndex:In,attrs:(0,Xe.Z)(Ue,!0)}),de.createElement("span",{ref:Zn,className:"".concat(tr,"-search-mirror"),"aria-hidden":!0},er,"\xA0")),nn=de.createElement(Ke.Z,{prefixCls:"".concat(tr,"-overflow"),data:we,renderItem:lr,renderRest:Yn,suffix:Ut,itemKey:ze,maxCount:mt});return de.createElement("span",{className:"".concat(tr,"-wrap")},nn,!we.length&&!er&&de.createElement("span",{className:"".concat(tr,"-placeholder")},hn))},pn=gt,Ft=function(Ue){var Ce=Ue.inputElement,Re=Ue.prefixCls,we=Ue.id,Fe=Ue.inputRef,ft=Ue.disabled,qt=Ue.autoFocus,rn=Ue.autoComplete,hn=Ue.activeDescendantId,Wt=Ue.mode,Mt=Ue.open,bt=Ue.values,un=Ue.placeholder,Ln=Ue.tabIndex,En=Ue.showSearch,In=Ue.searchValue,dr=Ue.activeValue,mt=Ue.maxLength,Ge=Ue.onInputKeyDown,Et=Ue.onInputMouseDown,Rt=Ue.onInputChange,Ht=Ue.onInputPaste,on=Ue.onInputCompositionStart,Bn=Ue.onInputCompositionEnd,mn=Ue.onInputBlur,Mn=Ue.title,Pn=de.useState(!1),Nn=(0,ye.Z)(Pn,2),wn=Nn[0],nr=Nn[1],jn=Wt==="combobox",Zn=jn||En,rr=bt[0],fr=In||"";jn&&dr&&!wn&&(fr=dr),de.useEffect(function(){jn&&nr(!1)},[jn,dr]);var Gn=Wt!=="combobox"&&!Mt&&!En?!1:!!fr,ar=Mn===void 0?Vt(rr):Mn,zn=de.useMemo(function(){return rr?null:de.createElement("span",{className:"".concat(Re,"-selection-placeholder"),style:Gn?{visibility:"hidden"}:void 0},un)},[rr,Gn,un,Re]);return de.createElement("span",{className:"".concat(Re,"-selection-wrap")},de.createElement("span",{className:"".concat(Re,"-selection-search")},de.createElement(Ot,{ref:Fe,prefixCls:Re,id:we,open:Mt,inputElement:Ce,disabled:ft,autoFocus:qt,autoComplete:rn,editable:Zn,activeDescendantId:hn,value:fr,onKeyDown:Ge,onMouseDown:Et,onChange:function(_n){nr(!0),Rt(_n)},onPaste:Ht,onCompositionStart:on,onCompositionEnd:Bn,onBlur:mn,tabIndex:Ln,attrs:(0,Xe.Z)(Ue,!0),maxLength:jn?mt:void 0})),!jn&&rr?de.createElement("span",{className:"".concat(Re,"-selection-item"),title:ar,style:Gn?{visibility:"hidden"}:void 0},rr.label):null,zn)},en=Ft,tt=function(Ue,Ce){var Re=(0,de.useRef)(null),we=(0,de.useRef)(!1),Fe=Ue.prefixCls,ft=Ue.open,qt=Ue.mode,rn=Ue.showSearch,hn=Ue.tokenWithEnter,Wt=Ue.disabled,Mt=Ue.prefix,bt=Ue.autoClearSearchValue,un=Ue.onSearch,Ln=Ue.onSearchSubmit,En=Ue.onToggleOpen,In=Ue.onInputKeyDown,dr=Ue.onInputBlur,mt=Ue.domRef;de.useImperativeHandle(Ce,function(){return{focus:function(ar){Re.current.focus(ar)},blur:function(){Re.current.blur()}}});var Ge=Je(0),Et=(0,ye.Z)(Ge,2),Rt=Et[0],Ht=Et[1],on=function(ar){var zn=ar.which,hr=Re.current instanceof HTMLTextAreaElement;!hr&&ft&&(zn===We.Z.UP||zn===We.Z.DOWN)&&ar.preventDefault(),In&&In(ar),zn===We.Z.ENTER&&qt==="tags"&&!we.current&&!ft&&(Ln==null||Ln(ar.target.value)),!(hr&&!ft&&~[We.Z.UP,We.Z.DOWN,We.Z.LEFT,We.Z.RIGHT].indexOf(zn))&&St(zn)&&En(!0)},Bn=function(){Ht(!0)},mn=(0,de.useRef)(null),Mn=function(ar){un(ar,!0,we.current)!==!1&&En(!0)},Pn=function(){we.current=!0},Nn=function(ar){we.current=!1,qt!=="combobox"&&Mn(ar.target.value)},wn=function(ar){var zn=ar.target.value;if(hn&&mn.current&&/[\r\n]/.test(mn.current)){var hr=mn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");zn=zn.replace(hr,mn.current)}mn.current=null,Mn(zn)},nr=function(ar){var zn=ar.clipboardData,hr=zn==null?void 0:zn.getData("text");mn.current=hr||""},jn=function(ar){var zn=ar.target;if(zn!==Re.current){var hr=document.body.style.msTouchAction!==void 0;hr?setTimeout(function(){Re.current.focus()}):Re.current.focus()}},Zn=function(ar){var zn=Rt();ar.target!==Re.current&&!zn&&!(qt==="combobox"&&Wt)&&ar.preventDefault(),(qt!=="combobox"&&(!rn||!zn)||!ft)&&(ft&&bt!==!1&&un("",!0,!1),En())},rr={inputRef:Re,onInputKeyDown:on,onInputMouseDown:Bn,onInputChange:wn,onInputPaste:nr,onInputCompositionStart:Pn,onInputCompositionEnd:Nn,onInputBlur:dr},fr=qt==="multiple"||qt==="tags"?de.createElement(pn,(0,z.Z)({},Ue,rr)):de.createElement(en,(0,z.Z)({},Ue,rr));return de.createElement("div",{ref:mt,className:"".concat(Fe,"-selector"),onClick:jn,onMouseDown:Zn},Mt&&de.createElement("div",{className:"".concat(Fe,"-prefix")},Mt),fr)},Kt=de.forwardRef(tt),pt=Kt,le=ie(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(Ue){var Ce=Ue===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"}}},oe=function(Ue,Ce){var Re=Ue.prefixCls,we=Ue.disabled,Fe=Ue.visible,ft=Ue.children,qt=Ue.popupElement,rn=Ue.animation,hn=Ue.transitionName,Wt=Ue.dropdownStyle,Mt=Ue.dropdownClassName,bt=Ue.direction,un=bt===void 0?"ltr":bt,Ln=Ue.placement,En=Ue.builtinPlacements,In=Ue.dropdownMatchSelectWidth,dr=Ue.dropdownRender,mt=Ue.dropdownAlign,Ge=Ue.getPopupContainer,Et=Ue.empty,Rt=Ue.getTriggerDOMNode,Ht=Ue.onPopupVisibleChange,on=Ue.onPopupMouseEnter,Bn=(0,ge.Z)(Ue,te),mn="".concat(Re,"-dropdown"),Mn=qt;dr&&(Mn=dr(qt));var Pn=de.useMemo(function(){return En||ee(In)},[En,In]),Nn=rn?"".concat(mn,"-").concat(rn):hn,wn=typeof In=="number",nr=de.useMemo(function(){return wn?null:In===!1?"minWidth":"width"},[In,wn]),jn=Wt;wn&&(jn=(0,Le.Z)((0,Le.Z)({},jn),{},{width:In}));var Zn=de.useRef(null);return de.useImperativeHandle(Ce,function(){return{getPopupElement:function(){var fr;return(fr=Zn.current)===null||fr===void 0?void 0:fr.popupElement}}}),de.createElement(le.Z,(0,z.Z)({},Bn,{showAction:Ht?["click"]:[],hideAction:Ht?["click"]:[],popupPlacement:Ln||(un==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Pn,prefixCls:mn,popupTransitionName:Nn,popup:de.createElement("div",{onMouseEnter:on},Mn),ref:Zn,stretch:nr,popupAlign:mt,popupVisible:Fe,getPopupContainer:Ge,popupClassName:be()(Mt,(0,ve.Z)({},"".concat(mn,"-empty"),Et)),popupStyle:jn,getTriggerDOMNode:Rt,onPopupVisibleChange:Ht}),ft)},se=de.forwardRef(oe),re=se,pe=ie(48745);function xe(Te,Ue){var Ce=Te.key,Re;return"value"in Te&&(Re=Te.value),Ce!=null?Ce:Re!==void 0?Re:"rc-index-key-".concat(Ue)}function at(Te){return typeof Te!="undefined"&&!Number.isNaN(Te)}function Ee(Te,Ue){var Ce=Te||{},Re=Ce.label,we=Ce.value,Fe=Ce.options,ft=Ce.groupLabel,qt=Re||(Ue?"children":"label");return{label:qt,value:we||"value",options:Fe||"options",groupLabel:ft||qt}}function je(Te){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=Ue.fieldNames,Re=Ue.childrenAsData,we=[],Fe=Ee(Ce,!1),ft=Fe.label,qt=Fe.value,rn=Fe.options,hn=Fe.groupLabel;function Wt(Mt,bt){Array.isArray(Mt)&&Mt.forEach(function(un){if(bt||!(rn in un)){var Ln=un[qt];we.push({key:xe(un,we.length),groupOption:bt,data:un,label:un[ft],value:Ln})}else{var En=un[hn];En===void 0&&Re&&(En=un.label),we.push({key:xe(un,we.length),group:!0,data:un,label:En}),Wt(un[rn],!0)}})}return Wt(Te,!1),we}function ot(Te){var Ue=(0,Le.Z)({},Te);return"props"in Ue||Object.defineProperty(Ue,"props",{get:function(){return(0,Me.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ue}}),Ue}var wt=function(Ue,Ce,Re){if(!Ce||!Ce.length)return null;var we=!1,Fe=function qt(rn,hn){var Wt=(0,pe.Z)(hn),Mt=Wt[0],bt=Wt.slice(1);if(!Mt)return[rn];var un=rn.split(Mt);return we=we||un.length>1,un.reduce(function(Ln,En){return[].concat((0,Ve.Z)(Ln),(0,Ve.Z)(qt(En,bt)))},[]).filter(Boolean)},ft=Fe(Ue,Ce);return we?typeof Re!="undefined"?ft.slice(0,Re):ft:null},dt=de.createContext(null),Zt=dt;function lt(Te){var Ue=Te.visible,Ce=Te.values;if(!Ue)return null;var Re=50;return de.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ce.slice(0,Re).map(function(we){var Fe=we.label,ft=we.value;return["number","string"].includes((0,ke.Z)(Fe))?Fe:ft}).join(", ")),Ce.length>Re?", ...":null)}var rt=["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"],xt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Pt=function(Ue){return Ue==="tags"||Ue==="multiple"},_t=de.forwardRef(function(Te,Ue){var Ce,Re=Te.id,we=Te.prefixCls,Fe=Te.className,ft=Te.showSearch,qt=Te.tagRender,rn=Te.direction,hn=Te.omitDomProps,Wt=Te.displayValues,Mt=Te.onDisplayValuesChange,bt=Te.emptyOptions,un=Te.notFoundContent,Ln=un===void 0?"Not Found":un,En=Te.onClear,In=Te.mode,dr=Te.disabled,mt=Te.loading,Ge=Te.getInputElement,Et=Te.getRawInputElement,Rt=Te.open,Ht=Te.defaultOpen,on=Te.onDropdownVisibleChange,Bn=Te.activeValue,mn=Te.onActiveValueChange,Mn=Te.activeDescendantId,Pn=Te.searchValue,Nn=Te.autoClearSearchValue,wn=Te.onSearch,nr=Te.onSearchSplit,jn=Te.tokenSeparators,Zn=Te.allowClear,rr=Te.prefix,fr=Te.suffixIcon,Gn=Te.clearIcon,ar=Te.OptionList,zn=Te.animation,hr=Te.transitionName,_n=Te.dropdownStyle,Sr=Te.dropdownClassName,tr=Te.dropdownMatchSelectWidth,er=Te.dropdownRender,cr=Te.dropdownAlign,br=Te.placement,vr=Te.builtinPlacements,lr=Te.getPopupContainer,Yn=Te.showAction,Ut=Yn===void 0?[]:Yn,nn=Te.onFocus,an=Te.onBlur,jt=Te.onKeyUp,Dn=Te.onKeyDown,Wn=Te.onMouseDown,Jt=(0,ge.Z)(Te,rt),tn=Pt(In),On=(ft!==void 0?ft:tn)||In==="combobox",kn=(0,Le.Z)({},Jt);xt.forEach(function(Wr){delete kn[Wr]}),hn==null||hn.forEach(function(Wr){delete kn[Wr]});var mr=de.useState(!1),kr=(0,ye.Z)(mr,2),xr=kr[0],Br=kr[1];de.useEffect(function(){Br((0,Ae.Z)())},[]);var Lr=de.useRef(null),Tr=de.useRef(null),Or=de.useRef(null),Nr=de.useRef(null),Fr=de.useRef(null),Gr=de.useRef(!1),Qr=it(),ri=(0,ye.Z)(Qr,3),jr=ri[0],Zr=ri[1],_r=ri[2];de.useImperativeHandle(Ue,function(){var Wr,Rr;return{focus:(Wr=Nr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Rr=Nr.current)===null||Rr===void 0?void 0:Rr.blur,scrollTo:function(ki){var oi;return(oi=Fr.current)===null||oi===void 0?void 0:oi.scrollTo(ki)},nativeElement:Lr.current||Tr.current}});var Dr=de.useMemo(function(){var Wr;if(In!=="combobox")return Pn;var Rr=(Wr=Wt[0])===null||Wr===void 0?void 0:Wr.value;return typeof Rr=="string"||typeof Rr=="number"?String(Rr):""},[Pn,In,Wt]),Jr=In==="combobox"&&typeof Ge=="function"&&Ge()||null,Yr=typeof Et=="function"&&Et(),li=(0,Ie.x1)(Tr,Yr==null||(Ce=Yr.props)===null||Ce===void 0?void 0:Ce.ref),Ci=de.useState(!1),fi=(0,ye.Z)(Ci,2),hi=fi[0],Ii=fi[1];(0,nt.Z)(function(){Ii(!0)},[]);var Ur=(0,$e.Z)(!1,{defaultValue:Ht,value:Rt}),si=(0,ye.Z)(Ur,2),Mi=si[0],Di=si[1],qr=hi?Mi:!1,_i=!Ln&&bt;(dr||_i&&qr&&In==="combobox")&&(qr=!1);var to=_i?!1:qr,wr=de.useCallback(function(Wr){var Rr=Wr!==void 0?Wr:!qr;dr||(Di(Rr),qr!==Rr&&(on==null||on(Rr)))},[dr,qr,Di,on]),Ar=de.useMemo(function(){return(jn||[]).some(function(Wr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Wr)})},[jn]),Mr=de.useContext(Zt)||{},Pr=Mr.maxCount,$r=Mr.rawValues,Hr=function(Rr,Si,ki){if(!(tn&&at(Pr)&&($r==null?void 0:$r.size)>=Pr)){var oi=!0,mi=Rr;mn==null||mn(null);var Ji=wt(Rr,jn,at(Pr)?Pr-$r.size:void 0),Yi=ki?null:Ji;return In!=="combobox"&&Yi&&(mi="",nr==null||nr(Yi),wr(!1),oi=!1),wn&&Dr!==mi&&wn(mi,{source:Si?"typing":"effect"}),oi}},pi=function(Rr){!Rr||!Rr.trim()||wn(Rr,{source:"submit"})};de.useEffect(function(){!qr&&!tn&&In!=="combobox"&&Hr("",!1,!1)},[qr]),de.useEffect(function(){Mi&&dr&&Di(!1),dr&&!Gr.current&&Zr(!1)},[dr]);var ui=Je(),wi=(0,ye.Z)(ui,2),ii=wi[0],Ui=wi[1],no=de.useRef(!1),Hi=function(Rr){var Si=ii(),ki=Rr.key,oi=ki==="Enter";if(oi&&(In!=="combobox"&&Rr.preventDefault(),qr||wr(!0)),Ui(!!Dr),ki==="Backspace"&&!Si&&tn&&!Dr&&Wt.length){for(var mi=(0,Ve.Z)(Wt),Ji=null,Yi=mi.length-1;Yi>=0;Yi-=1){var lo=mi[Yi];if(!lo.disabled){mi.splice(Yi,1),Ji=lo;break}}Ji&&Mt(mi,{type:"remove",values:[Ji]})}for(var $i=arguments.length,Wi=new Array($i>1?$i-1:0),Qi=1;Qi<$i;Qi++)Wi[Qi-1]=arguments[Qi];if(qr&&(!oi||!no.current)){var fo;oi&&(no.current=!0),(fo=Fr.current)===null||fo===void 0||fo.onKeyDown.apply(fo,[Rr].concat(Wi))}Dn==null||Dn.apply(void 0,[Rr].concat(Wi))},ro=function(Rr){for(var Si=arguments.length,ki=new Array(Si>1?Si-1:0),oi=1;oi<Si;oi++)ki[oi-1]=arguments[oi];if(qr){var mi;(mi=Fr.current)===null||mi===void 0||mi.onKeyUp.apply(mi,[Rr].concat(ki))}Rr.key==="Enter"&&(no.current=!1),jt==null||jt.apply(void 0,[Rr].concat(ki))},ao=function(Rr){var Si=Wt.filter(function(ki){return ki!==Rr});Mt(Si,{type:"remove",values:[Rr]})},Xi=function(){no.current=!1},Do=de.useRef(!1),Ga=function(){Zr(!0),dr||(nn&&!Do.current&&nn.apply(void 0,arguments),Ut.includes("focus")&&wr(!0)),Do.current=!0},ya=function(){Gr.current=!0,Zr(!1,function(){Do.current=!1,Gr.current=!1,wr(!1)}),!dr&&(Dr&&(In==="tags"?wn(Dr,{source:"submit"}):In==="multiple"&&wn("",{source:"blur"})),an&&an.apply(void 0,arguments))},io=[];de.useEffect(function(){return function(){io.forEach(function(Wr){return clearTimeout(Wr)}),io.splice(0,io.length)}},[]);var co=function(Rr){var Si,ki=Rr.target,oi=(Si=Or.current)===null||Si===void 0?void 0:Si.getPopupElement();if(oi&&oi.contains(ki)){var mi=setTimeout(function(){var $i=io.indexOf(mi);if($i!==-1&&io.splice($i,1),_r(),!xr&&!oi.contains(document.activeElement)){var Wi;(Wi=Nr.current)===null||Wi===void 0||Wi.focus()}});io.push(mi)}for(var Ji=arguments.length,Yi=new Array(Ji>1?Ji-1:0),lo=1;lo<Ji;lo++)Yi[lo-1]=arguments[lo];Wn==null||Wn.apply(void 0,[Rr].concat(Yi))},Ki=de.useState({}),ba=(0,ye.Z)(Ki,2),xa=ba[1];function Va(){xa({})}var Ca;Yr&&(Ca=function(Rr){wr(Rr)}),_e(function(){var Wr;return[Lr.current,(Wr=Or.current)===null||Wr===void 0?void 0:Wr.getPopupElement()]},to,wr,!!Yr);var _a=de.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},Te),{},{notFoundContent:Ln,open:qr,triggerOpen:to,id:Re,showSearch:On,multiple:tn,toggleOpen:wr})},[Te,Ln,to,qr,Re,On,tn,wr]),Uo=!!fr||mt,Ko;Uo&&(Ko=de.createElement(Be,{className:be()("".concat(we,"-arrow"),(0,ve.Z)({},"".concat(we,"-arrow-loading"),mt)),customizeIcon:fr,customizeIconProps:{loading:mt,searchValue:Dr,open:qr,focused:jr,showSearch:On}}));var Co=function(){var Rr;En==null||En(),(Rr=Nr.current)===null||Rr===void 0||Rr.focus(),Mt([],{type:"clear",values:Wt}),Hr("",!1,!1)},Yo=ct(we,Co,Wt,Zn,Gn,dr,Dr,In),wa=Yo.allowClear,Xo=Yo.clearIcon,Lo=de.createElement(ar,{ref:Fr}),Sa=be()(we,Fe,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(we,"-focused"),jr),"".concat(we,"-multiple"),tn),"".concat(we,"-single"),!tn),"".concat(we,"-allow-clear"),Zn),"".concat(we,"-show-arrow"),Uo),"".concat(we,"-disabled"),dr),"".concat(we,"-loading"),mt),"".concat(we,"-open"),qr),"".concat(we,"-customize-input"),Jr),"".concat(we,"-show-search"),On)),To=de.createElement(re,{ref:Or,disabled:dr,prefixCls:we,visible:to,popupElement:Lo,animation:zn,transitionName:hr,dropdownStyle:_n,dropdownClassName:Sr,direction:rn,dropdownMatchSelectWidth:tr,dropdownRender:er,dropdownAlign:cr,placement:br,builtinPlacements:vr,getPopupContainer:lr,empty:bt,getTriggerDOMNode:function(Rr){return Tr.current||Rr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},Yr?de.cloneElement(Yr,{ref:li}):de.createElement(pt,(0,z.Z)({},Te,{domRef:Tr,prefixCls:we,inputElement:Jr,ref:Nr,id:Re,prefix:rr,showSearch:On,autoClearSearchValue:Nn,mode:In,activeDescendantId:Mn,tagRender:qt,values:Wt,open:qr,onToggleOpen:wr,activeValue:Bn,searchValue:Dr,onSearch:Hr,onSearchSubmit:pi,onRemove:ao,tokenWithEnter:Ar,onInputBlur:Xi}))),Ai;return Yr?Ai=To:Ai=de.createElement("div",(0,z.Z)({className:Sa},kn,{ref:Lr,onMouseDown:co,onKeyDown:Hi,onKeyUp:ro,onFocus:Ga,onBlur:ya}),de.createElement(lt,{visible:jr&&!qr,values:Wt}),To,Ko,wa&&Xo),de.createElement(kt.Provider,{value:_a},Ai)}),st=_t,Gt=function(){return null};Gt.isSelectOptGroup=!0;var Lt=Gt,Nt=function(){return null};Nt.isSelectOption=!0;var Qt=Nt,Rn=ie(80547),fn=ie(2738),Pe=ie(48911);function Qe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yt=["disabled","title","children","style","className"];function $t(Te){return typeof Te=="string"||typeof Te=="number"}var cn=function(Ue,Ce){var Re=Ct(),we=Re.prefixCls,Fe=Re.id,ft=Re.open,qt=Re.multiple,rn=Re.mode,hn=Re.searchValue,Wt=Re.toggleOpen,Mt=Re.notFoundContent,bt=Re.onPopupScroll,un=de.useContext(Zt),Ln=un.maxCount,En=un.flattenOptions,In=un.onActiveValue,dr=un.defaultActiveFirstOption,mt=un.onSelect,Ge=un.menuItemSelectedIcon,Et=un.rawValues,Rt=un.fieldNames,Ht=un.virtual,on=un.direction,Bn=un.listHeight,mn=un.listItemHeight,Mn=un.optionRender,Pn="".concat(we,"-item"),Nn=(0,Rn.Z)(function(){return En},[ft,En],function(Yn,Ut){return Ut[0]&&Yn[1]!==Ut[1]}),wn=de.useRef(null),nr=de.useMemo(function(){return qt&&at(Ln)&&(Et==null?void 0:Et.size)>=Ln},[qt,Ln,Et==null?void 0:Et.size]),jn=function(Ut){Ut.preventDefault()},Zn=function(Ut){var nn;(nn=wn.current)===null||nn===void 0||nn.scrollTo(typeof Ut=="number"?{index:Ut}:Ut)},rr=de.useCallback(function(Yn){return rn==="combobox"?!1:Et.has(Yn)},[rn,(0,Ve.Z)(Et).toString(),Et.size]),fr=function(Ut){for(var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,an=Nn.length,jt=0;jt<an;jt+=1){var Dn=(Ut+jt*nn+an)%an,Wn=Nn[Dn]||{},Jt=Wn.group,tn=Wn.data;if(!Jt&&!(tn!=null&&tn.disabled)&&(rr(tn.value)||!nr))return Dn}return-1},Gn=de.useState(function(){return fr(0)}),ar=(0,ye.Z)(Gn,2),zn=ar[0],hr=ar[1],_n=function(Ut){var nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;hr(Ut);var an={source:nn?"keyboard":"mouse"},jt=Nn[Ut];if(!jt){In(null,-1,an);return}In(jt.value,Ut,an)};(0,de.useEffect)(function(){_n(dr!==!1?fr(0):-1)},[Nn.length,hn]);var Sr=de.useCallback(function(Yn){return rn==="combobox"?String(Yn).toLowerCase()===hn.toLowerCase():Et.has(Yn)},[rn,hn,(0,Ve.Z)(Et).toString(),Et.size]);(0,de.useEffect)(function(){var Yn=setTimeout(function(){if(!qt&&ft&&Et.size===1){var nn=Array.from(Et)[0],an=Nn.findIndex(function(jt){var Dn=jt.data;return hn?String(Dn.value).startsWith(hn):Dn.value===nn});an!==-1&&(_n(an),Zn(an))}});if(ft){var Ut;(Ut=wn.current)===null||Ut===void 0||Ut.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[ft,hn]);var tr=function(Ut){Ut!==void 0&&mt(Ut,{selected:!Et.has(Ut)}),qt||Wt(!1)};if(de.useImperativeHandle(Ce,function(){return{onKeyDown:function(Ut){var nn=Ut.which,an=Ut.ctrlKey;switch(nn){case We.Z.N:case We.Z.P:case We.Z.UP:case We.Z.DOWN:{var jt=0;if(nn===We.Z.UP?jt=-1:nn===We.Z.DOWN?jt=1:Qe()&&an&&(nn===We.Z.N?jt=1:nn===We.Z.P&&(jt=-1)),jt!==0){var Dn=fr(zn+jt,jt);Zn(Dn),_n(Dn,!0)}break}case We.Z.TAB:case We.Z.ENTER:{var Wn,Jt=Nn[zn];Jt&&!(Jt!=null&&(Wn=Jt.data)!==null&&Wn!==void 0&&Wn.disabled)&&!nr?tr(Jt.value):tr(void 0),ft&&Ut.preventDefault();break}case We.Z.ESC:Wt(!1),ft&&Ut.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ut){Zn(Ut)}}}),Nn.length===0)return de.createElement("div",{role:"listbox",id:"".concat(Fe,"_list"),className:"".concat(Pn,"-empty"),onMouseDown:jn},Mt);var er=Object.keys(Rt).map(function(Yn){return Rt[Yn]}),cr=function(Ut){return Ut.label};function br(Yn,Ut){var nn=Yn.group;return{role:nn?"presentation":"option",id:"".concat(Fe,"_list_").concat(Ut)}}var vr=function(Ut){var nn=Nn[Ut];if(!nn)return null;var an=nn.data||{},jt=an.value,Dn=nn.group,Wn=(0,Xe.Z)(an,!0),Jt=cr(nn);return nn?de.createElement("div",(0,z.Z)({"aria-label":typeof Jt=="string"&&!Dn?Jt:null},Wn,{key:Ut},br(nn,Ut),{"aria-selected":Sr(jt)}),jt):null},lr={role:"listbox",id:"".concat(Fe,"_list")};return de.createElement(de.Fragment,null,Ht&&de.createElement("div",(0,z.Z)({},lr,{style:{height:0,width:0,overflow:"hidden"}}),vr(zn-1),vr(zn),vr(zn+1)),de.createElement(Pe.Z,{itemKey:"key",ref:wn,data:Nn,height:Bn,itemHeight:mn,fullHeight:!1,onMouseDown:jn,onScroll:bt,virtual:Ht,direction:on,innerProps:Ht?null:lr},function(Yn,Ut){var nn=Yn.group,an=Yn.groupOption,jt=Yn.data,Dn=Yn.label,Wn=Yn.value,Jt=jt.key;if(nn){var tn,On=(tn=jt.title)!==null&&tn!==void 0?tn:$t(Dn)?Dn.toString():void 0;return de.createElement("div",{className:be()(Pn,"".concat(Pn,"-group"),jt.className),title:On},Dn!==void 0?Dn:Jt)}var kn=jt.disabled,mr=jt.title,kr=jt.children,xr=jt.style,Br=jt.className,Lr=(0,ge.Z)(jt,yt),Tr=(0,fn.Z)(Lr,er),Or=rr(Wn),Nr=kn||!Or&&nr,Fr="".concat(Pn,"-option"),Gr=be()(Pn,Fr,Br,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Fr,"-grouped"),an),"".concat(Fr,"-active"),zn===Ut&&!Nr),"".concat(Fr,"-disabled"),Nr),"".concat(Fr,"-selected"),Or)),Qr=cr(Yn),ri=!Ge||typeof Ge=="function"||Or,jr=typeof Qr=="number"?Qr:Qr||Wn,Zr=$t(jr)?jr.toString():void 0;return mr!==void 0&&(Zr=mr),de.createElement("div",(0,z.Z)({},(0,Xe.Z)(Tr),Ht?{}:br(Yn,Ut),{"aria-selected":Sr(Wn),className:Gr,title:Zr,onMouseMove:function(){zn===Ut||Nr||_n(Ut)},onClick:function(){Nr||tr(Wn)},style:xr}),de.createElement("div",{className:"".concat(Fr,"-content")},typeof Mn=="function"?Mn(Yn,{index:Ut}):jr),de.isValidElement(Ge)||Or,ri&&de.createElement(Be,{className:"".concat(Pn,"-option-state"),customizeIcon:Ge,customizeIconProps:{value:Wn,disabled:Nr,isSelected:Or}},Or?"\u2713":null))}))},vn=de.forwardRef(cn),Un=vn,$n=function(Te,Ue){var Ce=de.useRef({values:new Map,options:new Map}),Re=de.useMemo(function(){var Fe=Ce.current,ft=Fe.values,qt=Fe.options,rn=Te.map(function(Mt){if(Mt.label===void 0){var bt;return(0,Le.Z)((0,Le.Z)({},Mt),{},{label:(bt=ft.get(Mt.value))===null||bt===void 0?void 0:bt.label})}return Mt}),hn=new Map,Wt=new Map;return rn.forEach(function(Mt){hn.set(Mt.value,Mt),Wt.set(Mt.value,Ue.get(Mt.value)||qt.get(Mt.value))}),Ce.current.values=hn,Ce.current.options=Wt,rn},[Te,Ue]),we=de.useCallback(function(Fe){return Ue.get(Fe)||Ce.current.options.get(Fe)},[Ue]);return[Re,we]};function dn(Te,Ue){return De(Te).join("").toUpperCase().includes(Ue)}var gn=function(Te,Ue,Ce,Re,we){return de.useMemo(function(){if(!Ce||Re===!1)return Te;var Fe=Ue.options,ft=Ue.label,qt=Ue.value,rn=[],hn=typeof Re=="function",Wt=Ce.toUpperCase(),Mt=hn?Re:function(un,Ln){return we?dn(Ln[we],Wt):Ln[Fe]?dn(Ln[ft!=="children"?ft:"label"],Wt):dn(Ln[qt],Wt)},bt=hn?function(un){return ot(un)}:function(un){return un};return Te.forEach(function(un){if(un[Fe]){var Ln=Mt(Ce,bt(un));if(Ln)rn.push(un);else{var En=un[Fe].filter(function(In){return Mt(Ce,bt(In))});En.length&&rn.push((0,Le.Z)((0,Le.Z)({},un),{},(0,ve.Z)({},Fe,En)))}return}Mt(Ce,bt(un))&&rn.push(un)}),rn},[Te,Re,we,Ce,Ue])},bn=ie(6551),qn=ie(11592),Sn=["children","value"],Fn=["children"];function yn(Te){var Ue=Te,Ce=Ue.key,Re=Ue.props,we=Re.children,Fe=Re.value,ft=(0,ge.Z)(Re,Sn);return(0,Le.Z)({key:Ce,value:Fe!==void 0?Fe:Ce,children:we},ft)}function An(Te){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,qn.Z)(Te).map(function(Ce,Re){if(!de.isValidElement(Ce)||!Ce.type)return null;var we=Ce,Fe=we.type.isSelectOptGroup,ft=we.key,qt=we.props,rn=qt.children,hn=(0,ge.Z)(qt,Fn);return Ue||!Fe?yn(Ce):(0,Le.Z)((0,Le.Z)({key:"__RC_SELECT_GRP__".concat(ft===null?Re:ft,"__"),label:ft},hn),{},{options:An(rn)})}).filter(function(Ce){return Ce})}var xn=function(Ue,Ce,Re,we,Fe){return de.useMemo(function(){var ft=Ue,qt=!Ue;qt&&(ft=An(Ce));var rn=new Map,hn=new Map,Wt=function(un,Ln,En){En&&typeof En=="string"&&un.set(Ln[En],Ln)},Mt=function bt(un){for(var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,En=0;En<un.length;En+=1){var In=un[En];!In[Re.options]||Ln?(rn.set(In[Re.value],In),Wt(hn,In,Re.label),Wt(hn,In,we),Wt(hn,In,Fe)):bt(In[Re.options],!0)}};return Mt(ft),{options:ft,valueOptions:rn,labelOptions:hn}},[Ue,Ce,Re,we,Fe])},Vn=xn;function ur(Te){var Ue=de.useRef();Ue.current=Te;var Ce=de.useCallback(function(){return Ue.current.apply(Ue,arguments)},[]);return Ce}function Tn(Te){var Ue=Te.mode,Ce=Te.options,Re=Te.children,we=Te.backfill,Fe=Te.allowClear,ft=Te.placeholder,qt=Te.getInputElement,rn=Te.showSearch,hn=Te.onSearch,Wt=Te.defaultOpen,Mt=Te.autoFocus,bt=Te.labelInValue,un=Te.value,Ln=Te.inputValue,En=Te.optionLabelProp,In=isMultiple(Ue),dr=rn!==void 0?rn:In||Ue==="combobox",mt=Ce||convertChildrenToData(Re);if(warning(Ue!=="tags"||mt.every(function(Ht){return!Ht.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ue==="tags"||Ue==="combobox"){var Ge=mt.some(function(Ht){return Ht.options?Ht.options.some(function(on){return typeof("value"in on?on.value:on.key)=="number"}):typeof("value"in Ht?Ht.value:Ht.key)=="number"});warning(!Ge,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ue!=="combobox"||!En,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ue==="combobox"||!we,"`backfill` only works with `combobox` mode."),warning(Ue==="combobox"||!qt,"`getInputElement` only work with `combobox` mode."),noteOnce(Ue!=="combobox"||!qt||!Fe||!ft,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hn&&!dr&&Ue!=="combobox"&&Ue!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Wt||Mt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),un!=null){var Et=toArray(un);warning(!bt||Et.every(function(Ht){return _typeof(Ht)==="object"&&("key"in Ht||"value"in Ht)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!In||Array.isArray(un),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var Rt=null;toNodeArray(Re).some(function(Ht){if(!React.isValidElement(Ht)||!Ht.type)return!1;var on=Ht,Bn=on.type;if(Bn.isSelectOption)return!1;if(Bn.isSelectOptGroup){var mn=toNodeArray(Ht.props.children).every(function(Mn){return!React.isValidElement(Mn)||!Ht.type||Mn.type.isSelectOption?!0:(Rt=Mn.type,!1)});return!mn}return Rt=Bn,!0}),Rt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Rt.displayName||Rt.name||Rt,"`.")),warning(Ln===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Qn(Te,Ue){if(Te){var Ce=function Re(we){for(var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=0;ft<we.length;ft++){var qt=we[ft];if(qt[Ue==null?void 0:Ue.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Fe&&Array.isArray(qt[Ue==null?void 0:Ue.options])&&Re(qt[Ue==null?void 0:Ue.options],!0))break}};Ce(Te)}}var sr=null,gr=["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"],Cr=["inputValue"];function ir(Te){return!Te||(0,ke.Z)(Te)!=="object"}var Bt=de.forwardRef(function(Te,Ue){var Ce=Te.id,Re=Te.mode,we=Te.prefixCls,Fe=we===void 0?"rc-select":we,ft=Te.backfill,qt=Te.fieldNames,rn=Te.inputValue,hn=Te.searchValue,Wt=Te.onSearch,Mt=Te.autoClearSearchValue,bt=Mt===void 0?!0:Mt,un=Te.onSelect,Ln=Te.onDeselect,En=Te.dropdownMatchSelectWidth,In=En===void 0?!0:En,dr=Te.filterOption,mt=Te.filterSort,Ge=Te.optionFilterProp,Et=Te.optionLabelProp,Rt=Te.options,Ht=Te.optionRender,on=Te.children,Bn=Te.defaultActiveFirstOption,mn=Te.menuItemSelectedIcon,Mn=Te.virtual,Pn=Te.direction,Nn=Te.listHeight,wn=Nn===void 0?200:Nn,nr=Te.listItemHeight,jn=nr===void 0?20:nr,Zn=Te.labelRender,rr=Te.value,fr=Te.defaultValue,Gn=Te.labelInValue,ar=Te.onChange,zn=Te.maxCount,hr=(0,ge.Z)(Te,gr),_n=(0,bn.ZP)(Ce),Sr=Pt(Re),tr=!!(!Rt&&on),er=de.useMemo(function(){return dr===void 0&&Re==="combobox"?!1:dr},[dr,Re]),cr=de.useMemo(function(){return Ee(qt,tr)},[JSON.stringify(qt),tr]),br=(0,$e.Z)("",{value:hn!==void 0?hn:rn,postState:function(Ar){return Ar||""}}),vr=(0,ye.Z)(br,2),lr=vr[0],Yn=vr[1],Ut=Vn(Rt,on,cr,Ge,Et),nn=Ut.valueOptions,an=Ut.labelOptions,jt=Ut.options,Dn=de.useCallback(function(wr){var Ar=De(wr);return Ar.map(function(Mr){var Pr,$r,Hr,pi,ui;if(ir(Mr))Pr=Mr;else{var wi;Hr=Mr.key,$r=Mr.label,Pr=(wi=Mr.value)!==null&&wi!==void 0?wi:Hr}var ii=nn.get(Pr);if(ii){var Ui;if($r===void 0&&($r=ii==null?void 0:ii[Et||cr.label]),Hr===void 0&&(Hr=(Ui=ii==null?void 0:ii.key)!==null&&Ui!==void 0?Ui:Pr),pi=ii==null?void 0:ii.disabled,ui=ii==null?void 0:ii.title,0)var no}return{label:$r,value:Pr,key:Hr,disabled:pi,title:ui}})},[cr,Et,nn]),Wn=(0,$e.Z)(fr,{value:rr}),Jt=(0,ye.Z)(Wn,2),tn=Jt[0],On=Jt[1],kn=de.useMemo(function(){var wr,Ar=Sr&&tn===null?[]:tn,Mr=Dn(Ar);return Re==="combobox"&&fe((wr=Mr[0])===null||wr===void 0?void 0:wr.value)?[]:Mr},[tn,Dn,Re,Sr]),mr=$n(kn,nn),kr=(0,ye.Z)(mr,2),xr=kr[0],Br=kr[1],Lr=de.useMemo(function(){if(!Re&&xr.length===1){var wr=xr[0];if(wr.value===null&&(wr.label===null||wr.label===void 0))return[]}return xr.map(function(Ar){var Mr;return(0,Le.Z)((0,Le.Z)({},Ar),{},{label:(Mr=typeof Zn=="function"?Zn(Ar):Ar.label)!==null&&Mr!==void 0?Mr:Ar.value})})},[Re,xr,Zn]),Tr=de.useMemo(function(){return new Set(xr.map(function(wr){return wr.value}))},[xr]);de.useEffect(function(){if(Re==="combobox"){var wr,Ar=(wr=xr[0])===null||wr===void 0?void 0:wr.value;Yn(Se(Ar)?String(Ar):"")}},[xr]);var Or=ur(function(wr,Ar){var Mr=Ar!=null?Ar:wr;return(0,ve.Z)((0,ve.Z)({},cr.value,wr),cr.label,Mr)}),Nr=de.useMemo(function(){if(Re!=="tags")return jt;var wr=(0,Ve.Z)(jt),Ar=function(Pr){return nn.has(Pr)};return(0,Ve.Z)(xr).sort(function(Mr,Pr){return Mr.value<Pr.value?-1:1}).forEach(function(Mr){var Pr=Mr.value;Ar(Pr)||wr.push(Or(Pr,Mr.label))}),wr},[Or,jt,nn,xr,Re]),Fr=gn(Nr,cr,lr,er,Ge),Gr=de.useMemo(function(){return Re!=="tags"||!lr||Fr.some(function(wr){return wr[Ge||"value"]===lr})||Fr.some(function(wr){return wr[cr.value]===lr})?Fr:[Or(lr)].concat((0,Ve.Z)(Fr))},[Or,Ge,Re,Fr,lr,cr]),Qr=function wr(Ar){var Mr=(0,Ve.Z)(Ar).sort(function(Pr,$r){return mt(Pr,$r,{searchValue:lr})});return Mr.map(function(Pr){return Array.isArray(Pr.options)?(0,Le.Z)((0,Le.Z)({},Pr),{},{options:Pr.options.length>0?wr(Pr.options):Pr.options}):Pr})},ri=de.useMemo(function(){return mt?Qr(Gr):Gr},[Gr,mt,lr]),jr=de.useMemo(function(){return je(ri,{fieldNames:cr,childrenAsData:tr})},[ri,cr,tr]),Zr=function(Ar){var Mr=Dn(Ar);if(On(Mr),ar&&(Mr.length!==xr.length||Mr.some(function(Hr,pi){var ui;return((ui=xr[pi])===null||ui===void 0?void 0:ui.value)!==(Hr==null?void 0:Hr.value)}))){var Pr=Gn?Mr:Mr.map(function(Hr){return Hr.value}),$r=Mr.map(function(Hr){return ot(Br(Hr.value))});ar(Sr?Pr:Pr[0],Sr?$r:$r[0])}},_r=de.useState(null),Dr=(0,ye.Z)(_r,2),Jr=Dr[0],Yr=Dr[1],li=de.useState(0),Ci=(0,ye.Z)(li,2),fi=Ci[0],hi=Ci[1],Ii=Bn!==void 0?Bn:Re!=="combobox",Ur=de.useCallback(function(wr,Ar){var Mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Pr=Mr.source,$r=Pr===void 0?"keyboard":Pr;hi(Ar),ft&&Re==="combobox"&&wr!==null&&$r==="keyboard"&&Yr(String(wr))},[ft,Re]),si=function(Ar,Mr,Pr){var $r=function(){var ao,Xi=Br(Ar);return[Gn?{label:Xi==null?void 0:Xi[cr.label],value:Ar,key:(ao=Xi==null?void 0:Xi.key)!==null&&ao!==void 0?ao:Ar}:Ar,ot(Xi)]};if(Mr&&un){var Hr=$r(),pi=(0,ye.Z)(Hr,2),ui=pi[0],wi=pi[1];un(ui,wi)}else if(!Mr&&Ln&&Pr!=="clear"){var ii=$r(),Ui=(0,ye.Z)(ii,2),no=Ui[0],Hi=Ui[1];Ln(no,Hi)}},Mi=ur(function(wr,Ar){var Mr,Pr=Sr?Ar.selected:!0;Pr?Mr=Sr?[].concat((0,Ve.Z)(xr),[wr]):[wr]:Mr=xr.filter(function($r){return $r.value!==wr}),Zr(Mr),si(wr,Pr),Re==="combobox"?Yr(""):(!Pt||bt)&&(Yn(""),Yr(""))}),Di=function(Ar,Mr){Zr(Ar);var Pr=Mr.type,$r=Mr.values;(Pr==="remove"||Pr==="clear")&&$r.forEach(function(Hr){si(Hr.value,!1,Pr)})},qr=function(Ar,Mr){if(Yn(Ar),Yr(null),Mr.source==="submit"){var Pr=(Ar||"").trim();if(Pr){var $r=Array.from(new Set([].concat((0,Ve.Z)(Tr),[Pr])));Zr($r),si(Pr,!0),Yn("")}return}Mr.source!=="blur"&&(Re==="combobox"&&Zr(Ar),Wt==null||Wt(Ar))},_i=function(Ar){var Mr=Ar;Re!=="tags"&&(Mr=Ar.map(function($r){var Hr=an.get($r);return Hr==null?void 0:Hr.value}).filter(function($r){return $r!==void 0}));var Pr=Array.from(new Set([].concat((0,Ve.Z)(Tr),(0,Ve.Z)(Mr))));Zr(Pr),Pr.forEach(function($r){si($r,!0)})},to=de.useMemo(function(){var wr=Mn!==!1&&In!==!1;return(0,Le.Z)((0,Le.Z)({},Ut),{},{flattenOptions:jr,onActiveValue:Ur,defaultActiveFirstOption:Ii,onSelect:Mi,menuItemSelectedIcon:mn,rawValues:Tr,fieldNames:cr,virtual:wr,direction:Pn,listHeight:wn,listItemHeight:jn,childrenAsData:tr,maxCount:zn,optionRender:Ht})},[zn,Ut,jr,Ur,Ii,Mi,mn,Tr,cr,Mn,In,Pn,wn,jn,tr,Ht]);return de.createElement(Zt.Provider,{value:to},de.createElement(st,(0,z.Z)({},hr,{id:_n,prefixCls:Fe,ref:Ue,omitDomProps:Cr,mode:Re,displayValues:Lr,onDisplayValuesChange:Di,direction:Pn,searchValue:lr,onSearch:qr,autoClearSearchValue:bt,onSearchSplit:_i,dropdownMatchSelectWidth:In,OptionList:Un,emptyOptions:!jr.length,activeValue:Jr,activeDescendantId:"".concat(_n,"_list_").concat(fi)})))}),ln=Bt;ln.Option=Qt,ln.OptGroup=Lt;var Kn=ln,yr=Kn},22711:function(Yt,zt,ie){"use strict";ie.r(zt),ie.d(zt,{ResizableTextArea:function(){return Ne},default:function(){return Ot}});var z=ie(60499),Ve=ie(18642),ve=ie(85899),Le=ie(77654),ye=ie(72190),ge=ie(42244),ke=ie(92310),$e=ie.n(ke),Me=ie(36901),de=ie(66003),Ze=ie(30292),be=ie(18929),nt=ie(59301),Ae=ie(43749),Ie=ie(29301),Oe=ie(34280),Be=ie(16089),ct=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,kt=["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"],Ct={},it;function Je(De){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=De.getAttribute("id")||De.getAttribute("data-reactid")||De.getAttribute("name");if(At&&Ct[Xt])return Ct[Xt];var Se=window.getComputedStyle(De),fe=Se.getPropertyValue("box-sizing")||Se.getPropertyValue("-moz-box-sizing")||Se.getPropertyValue("-webkit-box-sizing"),vt=parseFloat(Se.getPropertyValue("padding-bottom"))+parseFloat(Se.getPropertyValue("padding-top")),Vt=parseFloat(Se.getPropertyValue("border-bottom-width"))+parseFloat(Se.getPropertyValue("border-top-width")),Dt=kt.map(function(ut){return"".concat(ut,":").concat(Se.getPropertyValue(ut))}).join(";"),ze={sizingStyle:Dt,paddingSize:vt,borderSize:Vt,boxSizing:fe};return At&&Xt&&(Ct[Xt]=ze),ze}function _e(De){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;it||(it=document.createElement("textarea"),it.setAttribute("tab-index","-1"),it.setAttribute("aria-hidden","true"),it.setAttribute("name","hiddenTextarea"),document.body.appendChild(it)),De.getAttribute("wrap")?it.setAttribute("wrap",De.getAttribute("wrap")):it.removeAttribute("wrap");var fe=Je(De,At),vt=fe.paddingSize,Vt=fe.borderSize,Dt=fe.boxSizing,ze=fe.sizingStyle;it.setAttribute("style","".concat(ze,";").concat(ct)),it.value=De.value||De.placeholder||"";var ut=void 0,gt=void 0,pn,Ft=it.scrollHeight;if(Dt==="border-box"?Ft+=Vt:Dt==="content-box"&&(Ft-=vt),Xt!==null||Se!==null){it.value=" ";var en=it.scrollHeight-vt;Xt!==null&&(ut=en*Xt,Dt==="border-box"&&(ut=ut+vt+Vt),Ft=Math.max(ut,Ft)),Se!==null&&(gt=en*Se,Dt==="border-box"&&(gt=gt+vt+Vt),pn=Ft>gt?"":"hidden",Ft=Math.min(gt,Ft))}var tt={height:Ft,overflowY:pn,resize:"none"};return ut&&(tt.minHeight=ut),gt&&(tt.maxHeight=gt),tt}var We=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],St=0,Xe=1,Ke=2,ht=nt.forwardRef(function(De,At){var Xt=De,Se=Xt.prefixCls,fe=Xt.defaultValue,vt=Xt.value,Vt=Xt.autoSize,Dt=Xt.onResize,ze=Xt.className,ut=Xt.style,gt=Xt.disabled,pn=Xt.onChange,Ft=Xt.onInternalAutoSize,en=(0,ge.Z)(Xt,We),tt=(0,be.Z)(fe,{value:vt,postState:function(Qt){return Qt!=null?Qt:""}}),Kt=(0,ye.Z)(tt,2),pt=Kt[0],le=Kt[1],te=function(Qt){le(Qt.target.value),pn==null||pn(Qt)},ee=nt.useRef();nt.useImperativeHandle(At,function(){return{textArea:ee.current}});var oe=nt.useMemo(function(){return Vt&&(0,Ae.Z)(Vt)==="object"?[Vt.minRows,Vt.maxRows]:[]},[Vt]),se=(0,ye.Z)(oe,2),re=se[0],pe=se[1],xe=!!Vt,at=function(){try{if(document.activeElement===ee.current){var Qt=ee.current,Rn=Qt.selectionStart,fn=Qt.selectionEnd,Pe=Qt.scrollTop;ee.current.setSelectionRange(Rn,fn),ee.current.scrollTop=Pe}}catch(Qe){}},Ee=nt.useState(Ke),je=(0,ye.Z)(Ee,2),ot=je[0],wt=je[1],dt=nt.useState(),Zt=(0,ye.Z)(dt,2),lt=Zt[0],rt=Zt[1],xt=function(){wt(St)};(0,Oe.Z)(function(){xe&&xt()},[vt,re,pe,xe]),(0,Oe.Z)(function(){if(ot===St)wt(Xe);else if(ot===Xe){var Nt=_e(ee.current,!1,re,pe);wt(Ke),rt(Nt)}else at()},[ot]);var Pt=nt.useRef(),_t=function(){Be.Z.cancel(Pt.current)},st=function(Qt){ot===Ke&&(Dt==null||Dt(Qt),Vt&&(_t(),Pt.current=(0,Be.Z)(function(){xt()})))};nt.useEffect(function(){return _t},[]);var Gt=xe?lt:null,Lt=(0,ve.Z)((0,ve.Z)({},ut),Gt);return(ot===St||ot===Xe)&&(Lt.overflowY="hidden",Lt.overflowX="hidden"),nt.createElement(Ie.Z,{onResize:st,disabled:!(Vt||Dt)},nt.createElement("textarea",(0,z.Z)({},en,{ref:ee,style:Lt,className:$e()(Se,ze,(0,Ve.Z)({},"".concat(Se,"-disabled"),gt)),disabled:gt,value:pt,onChange:te})))}),Ne=ht,et=["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"],qe=nt.forwardRef(function(De,At){var Xt,Se=De.defaultValue,fe=De.value,vt=De.onFocus,Vt=De.onBlur,Dt=De.onChange,ze=De.allowClear,ut=De.maxLength,gt=De.onCompositionStart,pn=De.onCompositionEnd,Ft=De.suffix,en=De.prefixCls,tt=en===void 0?"rc-textarea":en,Kt=De.showCount,pt=De.count,le=De.className,te=De.style,ee=De.disabled,oe=De.hidden,se=De.classNames,re=De.styles,pe=De.onResize,xe=De.onClear,at=De.onPressEnter,Ee=De.readOnly,je=De.autoSize,ot=De.onKeyDown,wt=(0,ge.Z)(De,et),dt=(0,be.Z)(Se,{value:fe,defaultValue:Se}),Zt=(0,ye.Z)(dt,2),lt=Zt[0],rt=Zt[1],xt=lt==null?"":String(lt),Pt=nt.useState(!1),_t=(0,ye.Z)(Pt,2),st=_t[0],Gt=_t[1],Lt=nt.useRef(!1),Nt=nt.useState(null),Qt=(0,ye.Z)(Nt,2),Rn=Qt[0],fn=Qt[1],Pe=(0,nt.useRef)(null),Qe=(0,nt.useRef)(null),yt=function(){var ln;return(ln=Qe.current)===null||ln===void 0?void 0:ln.textArea},$t=function(){yt().focus()};(0,nt.useImperativeHandle)(At,function(){var Bt;return{resizableTextArea:Qe.current,focus:$t,blur:function(){yt().blur()},nativeElement:((Bt=Pe.current)===null||Bt===void 0?void 0:Bt.nativeElement)||yt()}}),(0,nt.useEffect)(function(){Gt(function(Bt){return!ee&&Bt})},[ee]);var cn=nt.useState(null),vn=(0,ye.Z)(cn,2),Un=vn[0],$n=vn[1];nt.useEffect(function(){if(Un){var Bt;(Bt=yt()).setSelectionRange.apply(Bt,(0,Le.Z)(Un))}},[Un]);var dn=(0,de.Z)(pt,Kt),gn=(Xt=dn.max)!==null&&Xt!==void 0?Xt:ut,bn=Number(gn)>0,qn=dn.strategy(xt),Sn=!!gn&&qn>gn,Fn=function(ln,Kn){var yr=Kn;!Lt.current&&dn.exceedFormatter&&dn.max&&dn.strategy(Kn)>dn.max&&(yr=dn.exceedFormatter(Kn,{max:dn.max}),Kn!==yr&&$n([yt().selectionStart||0,yt().selectionEnd||0])),rt(yr),(0,Ze.rJ)(ln.currentTarget,ln,Dt,yr)},yn=function(ln){Lt.current=!0,gt==null||gt(ln)},An=function(ln){Lt.current=!1,Fn(ln,ln.currentTarget.value),pn==null||pn(ln)},xn=function(ln){Fn(ln,ln.target.value)},Vn=function(ln){ln.key==="Enter"&&at&&at(ln),ot==null||ot(ln)},ur=function(ln){Gt(!0),vt==null||vt(ln)},Tn=function(ln){Gt(!1),Vt==null||Vt(ln)},Qn=function(ln){rt(""),$t(),(0,Ze.rJ)(yt(),ln,Dt)},sr=Ft,gr;dn.show&&(dn.showFormatter?gr=dn.showFormatter({value:xt,count:qn,maxLength:gn}):gr="".concat(qn).concat(bn?" / ".concat(gn):""),sr=nt.createElement(nt.Fragment,null,sr,nt.createElement("span",{className:$e()("".concat(tt,"-data-count"),se==null?void 0:se.count),style:re==null?void 0:re.count},gr)));var Cr=function(ln){var Kn;pe==null||pe(ln),(Kn=yt())!==null&&Kn!==void 0&&Kn.style.height&&fn(!0)},ir=!je&&!Kt&&!ze;return nt.createElement(Me.BaseInput,{ref:Pe,value:xt,allowClear:ze,handleReset:Qn,suffix:sr,prefixCls:tt,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:$e()(se==null?void 0:se.affixWrapper,(0,Ve.Z)((0,Ve.Z)({},"".concat(tt,"-show-count"),Kt),"".concat(tt,"-textarea-allow-clear"),ze))}),disabled:ee,focused:st,className:$e()(le,Sn&&"".concat(tt,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},te),Rn&&!ir?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gr=="string"?gr:void 0}},hidden:oe,readOnly:Ee,onClear:xe},nt.createElement(Ne,(0,z.Z)({},wt,{autoSize:je,maxLength:ut,onKeyDown:Vn,onChange:xn,onFocus:ur,onBlur:Tn,onCompositionStart:yn,onCompositionEnd:An,className:$e()(se==null?void 0:se.textarea),style:(0,ve.Z)((0,ve.Z)({},re==null?void 0:re.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:tt,onResize:Cr,ref:Qe,readOnly:Ee})))}),me=qe,Ot=me},8224:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return Ve}});var z=ie(4676);function Ve(ve,Le,ye,ge){var ke=z.unstable_batchedUpdates?function(Me){z.unstable_batchedUpdates(ye,Me)}:ye;return ve!=null&&ve.addEventListener&&ve.addEventListener(Le,ke,ge),{remove:function(){ve!=null&&ve.removeEventListener&&ve.removeEventListener(Le,ke,ge)}}}},48911:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return pt}});var z=ie(60499),Ve=ie(43749),ve=ie(85899),Le=ie(18642),ye=ie(72190),ge=ie(42244),ke=ie(92310),$e=ie.n(ke),Me=ie(29301),de=ie(70425),Ze=ie(34280),be=ie(59301),nt=ie(4676),Ae=be.forwardRef(function(le,te){var ee=le.height,oe=le.offsetY,se=le.offsetX,re=le.children,pe=le.prefixCls,xe=le.onInnerResize,at=le.innerProps,Ee=le.rtl,je=le.extra,ot={},wt={display:"flex",flexDirection:"column"};return oe!==void 0&&(ot={height:ee,position:"relative",overflow:"hidden"},wt=(0,ve.Z)((0,ve.Z)({},wt),{},(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({transform:"translateY(".concat(oe,"px)")},Ee?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),be.createElement("div",{style:ot},be.createElement(Me.Z,{onResize:function(Zt){var lt=Zt.offsetHeight;lt&&xe&&xe()}},be.createElement("div",(0,z.Z)({style:wt,className:$e()((0,Le.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},at),re,je)))});Ae.displayName="Filler";var Ie=Ae;function Oe(le){var te=le.children,ee=le.setRef,oe=be.useCallback(function(se){ee(se)},[]);return be.cloneElement(te,{ref:oe})}function Be(le,te,ee,oe,se,re,pe,xe){var at=xe.getKey;return le.slice(te,ee+1).map(function(Ee,je){var ot=te+je,wt=pe(Ee,ot,{style:{width:oe},offsetX:se}),dt=at(Ee);return be.createElement(Oe,{key:dt,setRef:function(lt){return re(Ee,lt)}},wt)})}function ct(le,te,ee,oe){var se=ee-le,re=te-ee,pe=Math.min(se,re)*2;if(oe<=pe){var xe=Math.floor(oe/2);return oe%2?ee+xe+1:ee-xe}return se>re?ee-(oe-re):ee+(oe-se)}function kt(le,te,ee){var oe=le.length,se=te.length,re,pe;if(oe===0&&se===0)return null;oe<se?(re=le,pe=te):(re=te,pe=le);var xe={__EMPTY_ITEM__:!0};function at(Zt){return Zt!==void 0?ee(Zt):xe}for(var Ee=null,je=Math.abs(oe-se)!==1,ot=0;ot<pe.length;ot+=1){var wt=at(re[ot]),dt=at(pe[ot]);if(wt!==dt){Ee=ot,je=je||wt!==at(pe[ot+1]);break}}return Ee===null?null:{index:Ee,multiple:je}}function Ct(le,te,ee){var oe=be.useState(le),se=(0,ye.Z)(oe,2),re=se[0],pe=se[1],xe=be.useState(null),at=(0,ye.Z)(xe,2),Ee=at[0],je=at[1];return be.useEffect(function(){var ot=kt(re||[],le||[],te);(ot==null?void 0:ot.index)!==void 0&&(ee==null||ee(ot.index),je(le[ot.index])),pe(le)},[le]),[Ee]}var it=ie(16089),Je=(typeof navigator=="undefined"?"undefined":(0,Ve.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),_e=Je,We=function(le,te,ee,oe){var se=(0,be.useRef)(!1),re=(0,be.useRef)(null);function pe(){clearTimeout(re.current),se.current=!0,re.current=setTimeout(function(){se.current=!1},50)}var xe=(0,be.useRef)({top:le,bottom:te,left:ee,right:oe});return xe.current.top=le,xe.current.bottom=te,xe.current.left=ee,xe.current.right=oe,function(at,Ee){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=at?Ee<0&&xe.current.left||Ee>0&&xe.current.right:Ee<0&&xe.current.top||Ee>0&&xe.current.bottom;return je&&ot?(clearTimeout(re.current),se.current=!1):(!ot||se.current)&&pe(),!se.current&&ot}};function St(le,te,ee,oe,se,re,pe){var xe=(0,be.useRef)(0),at=(0,be.useRef)(null),Ee=(0,be.useRef)(null),je=(0,be.useRef)(!1),ot=We(te,ee,oe,se);function wt(Pt,_t){if(it.Z.cancel(at.current),!ot(!1,_t)){var st=Pt;if(!st._virtualHandled)st._virtualHandled=!0;else return;xe.current+=_t,Ee.current=_t,_e||st.preventDefault(),at.current=(0,it.Z)(function(){var Gt=je.current?10:1;pe(xe.current*Gt,!1),xe.current=0})}}function dt(Pt,_t){pe(_t,!0),_e||Pt.preventDefault()}var Zt=(0,be.useRef)(null),lt=(0,be.useRef)(null);function rt(Pt){if(le){it.Z.cancel(lt.current),lt.current=(0,it.Z)(function(){Zt.current=null},2);var _t=Pt.deltaX,st=Pt.deltaY,Gt=Pt.shiftKey,Lt=_t,Nt=st;(Zt.current==="sx"||!Zt.current&&Gt&&st&&!_t)&&(Lt=st,Nt=0,Zt.current="sx");var Qt=Math.abs(Lt),Rn=Math.abs(Nt);Zt.current===null&&(Zt.current=re&&Qt>Rn?"x":"y"),Zt.current==="y"?wt(Pt,Nt):dt(Pt,Lt)}}function xt(Pt){le&&(je.current=Pt.detail===Ee.current)}return[rt,xt]}function Xe(le,te,ee,oe){var se=be.useMemo(function(){return[new Map,[]]},[le,ee.id,oe]),re=(0,ye.Z)(se,2),pe=re[0],xe=re[1],at=function(je){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:je,wt=pe.get(je),dt=pe.get(ot);if(wt===void 0||dt===void 0)for(var Zt=le.length,lt=xe.length;lt<Zt;lt+=1){var rt,xt=le[lt],Pt=te(xt);pe.set(Pt,lt);var _t=(rt=ee.get(Pt))!==null&&rt!==void 0?rt:oe;if(xe[lt]=(xe[lt-1]||0)+_t,Pt===je&&(wt=lt),Pt===ot&&(dt=lt),wt!==void 0&&dt!==void 0)break}return{top:xe[wt-1]||0,bottom:xe[dt]}};return at}var Ke=ie(38705),ht=ie(17212),Ne=function(){function le(){(0,Ke.Z)(this,le),(0,Le.Z)(this,"maps",void 0),(0,Le.Z)(this,"id",0),(0,Le.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ht.Z)(le,[{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}}]),le}(),et=Ne;function qe(le){var te=parseFloat(le);return isNaN(te)?0:te}function me(le,te,ee){var oe=be.useState(0),se=(0,ye.Z)(oe,2),re=se[0],pe=se[1],xe=(0,be.useRef)(new Map),at=(0,be.useRef)(new et),Ee=(0,be.useRef)(0);function je(){Ee.current+=1}function ot(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;je();var Zt=function(){var xt=!1;xe.current.forEach(function(Pt,_t){if(Pt&&Pt.offsetParent){var st=Pt.offsetHeight,Gt=getComputedStyle(Pt),Lt=Gt.marginTop,Nt=Gt.marginBottom,Qt=qe(Lt),Rn=qe(Nt),fn=st+Qt+Rn;at.current.get(_t)!==fn&&(at.current.set(_t,fn),xt=!0)}}),xt&&pe(function(Pt){return Pt+1})};if(dt)Zt();else{Ee.current+=1;var lt=Ee.current;Promise.resolve().then(function(){lt===Ee.current&&Zt()})}}function wt(dt,Zt){var lt=le(dt),rt=xe.current.get(lt);Zt?(xe.current.set(lt,Zt),ot()):xe.current.delete(lt),!rt!=!Zt&&(Zt?te==null||te(dt):ee==null||ee(dt))}return(0,be.useEffect)(function(){return je},[]),[wt,ot,at.current,re]}var Ot=14/15;function De(le,te,ee){var oe=(0,be.useRef)(!1),se=(0,be.useRef)(0),re=(0,be.useRef)(0),pe=(0,be.useRef)(null),xe=(0,be.useRef)(null),at,Ee=function(dt){if(oe.current){var Zt=Math.ceil(dt.touches[0].pageX),lt=Math.ceil(dt.touches[0].pageY),rt=se.current-Zt,xt=re.current-lt,Pt=Math.abs(rt)>Math.abs(xt);Pt?se.current=Zt:re.current=lt;var _t=ee(Pt,Pt?rt:xt,!1,dt);_t&&dt.preventDefault(),clearInterval(xe.current),_t&&(xe.current=setInterval(function(){Pt?rt*=Ot:xt*=Ot;var st=Math.floor(Pt?rt:xt);(!ee(Pt,st,!0)||Math.abs(st)<=.1)&&clearInterval(xe.current)},16))}},je=function(){oe.current=!1,at()},ot=function(dt){at(),dt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(dt.touches[0].pageX),re.current=Math.ceil(dt.touches[0].pageY),pe.current=dt.target,pe.current.addEventListener("touchmove",Ee,{passive:!1}),pe.current.addEventListener("touchend",je,{passive:!0}))};at=function(){pe.current&&(pe.current.removeEventListener("touchmove",Ee),pe.current.removeEventListener("touchend",je))},(0,Ze.Z)(function(){return le&&te.current.addEventListener("touchstart",ot,{passive:!0}),function(){var wt;(wt=te.current)===null||wt===void 0||wt.removeEventListener("touchstart",ot),at(),clearInterval(xe.current)}},[le])}function At(le){return Math.floor(Math.pow(le,.5))}function Xt(le,te){var ee="touches"in le?le.touches[0]:le;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Se(le,te,ee){be.useEffect(function(){var oe=te.current;if(le&&oe){var se=!1,re,pe,xe=function(){it.Z.cancel(re)},at=function wt(){xe(),re=(0,it.Z)(function(){ee(pe),wt()})},Ee=function(){se=!1,xe()},je=function(dt){if(!(dt.target.draggable||dt.button!==0)){var Zt=dt;Zt._virtualHandled||(Zt._virtualHandled=!0,se=!0)}},ot=function(dt){if(se){var Zt=Xt(dt,!1),lt=oe.getBoundingClientRect(),rt=lt.top,xt=lt.bottom;if(Zt<=rt){var Pt=rt-Zt;pe=-At(Pt),at()}else if(Zt>=xt){var _t=Zt-xt;pe=At(_t),at()}else xe()}};return oe.addEventListener("mousedown",je),oe.ownerDocument.addEventListener("mouseup",Ee),oe.ownerDocument.addEventListener("mousemove",ot),oe.ownerDocument.addEventListener("dragend",Ee),function(){oe.removeEventListener("mousedown",je),oe.ownerDocument.removeEventListener("mouseup",Ee),oe.ownerDocument.removeEventListener("mousemove",ot),oe.ownerDocument.removeEventListener("dragend",Ee),xe()}}},[le])}var fe=10;function vt(le,te,ee,oe,se,re,pe,xe){var at=be.useRef(),Ee=be.useState(null),je=(0,ye.Z)(Ee,2),ot=je[0],wt=je[1];return(0,Ze.Z)(function(){if(ot&&ot.times<fe){if(!le.current){wt(function(dn){return(0,ve.Z)({},dn)});return}re();var dt=ot.targetAlign,Zt=ot.originAlign,lt=ot.index,rt=ot.offset,xt=le.current.clientHeight,Pt=!1,_t=dt,st=null;if(xt){for(var Gt=dt||Zt,Lt=0,Nt=0,Qt=0,Rn=Math.min(te.length-1,lt),fn=0;fn<=Rn;fn+=1){var Pe=se(te[fn]);Nt=Lt;var Qe=ee.get(Pe);Qt=Nt+(Qe===void 0?oe:Qe),Lt=Qt}for(var yt=Gt==="top"?rt:xt-rt,$t=Rn;$t>=0;$t-=1){var cn=se(te[$t]),vn=ee.get(cn);if(vn===void 0){Pt=!0;break}if(yt-=vn,yt<=0)break}switch(Gt){case"top":st=Nt-rt;break;case"bottom":st=Qt-xt+rt;break;default:{var Un=le.current.scrollTop,$n=Un+xt;Nt<Un?_t="top":Qt>$n&&(_t="bottom")}}st!==null&&pe(st),st!==ot.lastTop&&(Pt=!0)}Pt&&wt((0,ve.Z)((0,ve.Z)({},ot),{},{times:ot.times+1,targetAlign:_t,lastTop:st}))}},[ot,le.current]),function(dt){if(dt==null){xe();return}if(it.Z.cancel(at.current),typeof dt=="number")pe(dt);else if(dt&&(0,Ve.Z)(dt)==="object"){var Zt,lt=dt.align;"index"in dt?Zt=dt.index:Zt=te.findIndex(function(Pt){return se(Pt)===dt.key});var rt=dt.offset,xt=rt===void 0?0:rt;wt({times:0,index:Zt,offset:xt,originAlign:lt})}}}var Vt=be.forwardRef(function(le,te){var ee=le.prefixCls,oe=le.rtl,se=le.scrollOffset,re=le.scrollRange,pe=le.onStartMove,xe=le.onStopMove,at=le.onScroll,Ee=le.horizontal,je=le.spinSize,ot=le.containerSize,wt=le.style,dt=le.thumbStyle,Zt=le.showScrollBar,lt=be.useState(!1),rt=(0,ye.Z)(lt,2),xt=rt[0],Pt=rt[1],_t=be.useState(null),st=(0,ye.Z)(_t,2),Gt=st[0],Lt=st[1],Nt=be.useState(null),Qt=(0,ye.Z)(Nt,2),Rn=Qt[0],fn=Qt[1],Pe=!oe,Qe=be.useRef(),yt=be.useRef(),$t=be.useState(Zt),cn=(0,ye.Z)($t,2),vn=cn[0],Un=cn[1],$n=be.useRef(),dn=function(){Zt===!0||Zt===!1||(clearTimeout($n.current),Un(!0),$n.current=setTimeout(function(){Un(!1)},3e3))},gn=re-ot||0,bn=ot-je||0,qn=be.useMemo(function(){if(se===0||gn===0)return 0;var Qn=se/gn;return Qn*bn},[se,gn,bn]),Sn=function(sr){sr.stopPropagation(),sr.preventDefault()},Fn=be.useRef({top:qn,dragging:xt,pageY:Gt,startTop:Rn});Fn.current={top:qn,dragging:xt,pageY:Gt,startTop:Rn};var yn=function(sr){Pt(!0),Lt(Xt(sr,Ee)),fn(Fn.current.top),pe(),sr.stopPropagation(),sr.preventDefault()};be.useEffect(function(){var Qn=function(ir){ir.preventDefault()},sr=Qe.current,gr=yt.current;return sr.addEventListener("touchstart",Qn,{passive:!1}),gr.addEventListener("touchstart",yn,{passive:!1}),function(){sr.removeEventListener("touchstart",Qn),gr.removeEventListener("touchstart",yn)}},[]);var An=be.useRef();An.current=gn;var xn=be.useRef();xn.current=bn,be.useEffect(function(){if(xt){var Qn,sr=function(ir){var Bt=Fn.current,ln=Bt.dragging,Kn=Bt.pageY,yr=Bt.startTop;it.Z.cancel(Qn);var Te=Qe.current.getBoundingClientRect(),Ue=ot/(Ee?Te.width:Te.height);if(ln){var Ce=(Xt(ir,Ee)-Kn)*Ue,Re=yr;!Pe&&Ee?Re-=Ce:Re+=Ce;var we=An.current,Fe=xn.current,ft=Fe?Re/Fe:0,qt=Math.ceil(ft*we);qt=Math.max(qt,0),qt=Math.min(qt,we),Qn=(0,it.Z)(function(){at(qt,Ee)})}},gr=function(){Pt(!1),xe()};return window.addEventListener("mousemove",sr,{passive:!0}),window.addEventListener("touchmove",sr,{passive:!0}),window.addEventListener("mouseup",gr,{passive:!0}),window.addEventListener("touchend",gr,{passive:!0}),function(){window.removeEventListener("mousemove",sr),window.removeEventListener("touchmove",sr),window.removeEventListener("mouseup",gr),window.removeEventListener("touchend",gr),it.Z.cancel(Qn)}}},[xt]),be.useEffect(function(){return dn(),function(){clearTimeout($n.current)}},[se]),be.useImperativeHandle(te,function(){return{delayHidden:dn}});var Vn="".concat(ee,"-scrollbar"),ur={position:"absolute",visibility:vn?null:"hidden"},Tn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ee?(Object.assign(ur,{height:8,left:0,right:0,bottom:0}),Object.assign(Tn,(0,Le.Z)({height:"100%",width:je},Pe?"left":"right",qn))):(Object.assign(ur,(0,Le.Z)({width:8,top:0,bottom:0},Pe?"right":"left",0)),Object.assign(Tn,{width:"100%",height:je,top:qn})),be.createElement("div",{ref:Qe,className:$e()(Vn,(0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(Vn,"-horizontal"),Ee),"".concat(Vn,"-vertical"),!Ee),"".concat(Vn,"-visible"),vn)),style:(0,ve.Z)((0,ve.Z)({},ur),wt),onMouseDown:Sn,onMouseMove:dn},be.createElement("div",{ref:yt,className:$e()("".concat(Vn,"-thumb"),(0,Le.Z)({},"".concat(Vn,"-thumb-moving"),xt)),style:(0,ve.Z)((0,ve.Z)({},Tn),dt),onMouseDown:yn}))}),Dt=Vt,ze=20;function ut(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=le/te*le;return isNaN(ee)&&(ee=0),ee=Math.max(ee,ze),Math.floor(ee)}var gt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],pn=[],Ft={overflowY:"auto",overflowAnchor:"none"};function en(le,te){var ee=le.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=le.className,re=le.height,pe=le.itemHeight,xe=le.fullHeight,at=xe===void 0?!0:xe,Ee=le.style,je=le.data,ot=le.children,wt=le.itemKey,dt=le.virtual,Zt=le.direction,lt=le.scrollWidth,rt=le.component,xt=rt===void 0?"div":rt,Pt=le.onScroll,_t=le.onVirtualScroll,st=le.onVisibleChange,Gt=le.innerProps,Lt=le.extraRender,Nt=le.styles,Qt=le.showScrollBar,Rn=Qt===void 0?"optional":Qt,fn=(0,ge.Z)(le,gt),Pe=be.useCallback(function(Ut){return typeof wt=="function"?wt(Ut):Ut==null?void 0:Ut[wt]},[wt]),Qe=me(Pe,null,null),yt=(0,ye.Z)(Qe,4),$t=yt[0],cn=yt[1],vn=yt[2],Un=yt[3],$n=!!(dt!==!1&&re&&pe),dn=be.useMemo(function(){return Object.values(vn.maps).reduce(function(Ut,nn){return Ut+nn},0)},[vn.id,vn.maps]),gn=$n&&je&&(Math.max(pe*je.length,dn)>re||!!lt),bn=Zt==="rtl",qn=$e()(oe,(0,Le.Z)({},"".concat(oe,"-rtl"),bn),se),Sn=je||pn,Fn=(0,be.useRef)(),yn=(0,be.useRef)(),An=(0,be.useRef)(),xn=(0,be.useState)(0),Vn=(0,ye.Z)(xn,2),ur=Vn[0],Tn=Vn[1],Qn=(0,be.useState)(0),sr=(0,ye.Z)(Qn,2),gr=sr[0],Cr=sr[1],ir=(0,be.useState)(!1),Bt=(0,ye.Z)(ir,2),ln=Bt[0],Kn=Bt[1],yr=function(){Kn(!0)},Te=function(){Kn(!1)},Ue={getKey:Pe};function Ce(Ut){Tn(function(nn){var an;typeof Ut=="function"?an=Ut(nn):an=Ut;var jt=Bn(an);return Fn.current.scrollTop=jt,jt})}var Re=(0,be.useRef)({start:0,end:Sn.length}),we=(0,be.useRef)(),Fe=Ct(Sn,Pe),ft=(0,ye.Z)(Fe,1),qt=ft[0];we.current=qt;var rn=be.useMemo(function(){if(!$n)return{scrollHeight:void 0,start:0,end:Sn.length-1,offset:void 0};if(!gn){var Ut;return{scrollHeight:((Ut=yn.current)===null||Ut===void 0?void 0:Ut.offsetHeight)||0,start:0,end:Sn.length-1,offset:void 0}}for(var nn=0,an,jt,Dn,Wn=Sn.length,Jt=0;Jt<Wn;Jt+=1){var tn=Sn[Jt],On=Pe(tn),kn=vn.get(On),mr=nn+(kn===void 0?pe:kn);mr>=ur&&an===void 0&&(an=Jt,jt=nn),mr>ur+re&&Dn===void 0&&(Dn=Jt),nn=mr}return an===void 0&&(an=0,jt=0,Dn=Math.ceil(re/pe)),Dn===void 0&&(Dn=Sn.length-1),Dn=Math.min(Dn+1,Sn.length-1),{scrollHeight:nn,start:an,end:Dn,offset:jt}},[gn,$n,ur,Sn,Un,re]),hn=rn.scrollHeight,Wt=rn.start,Mt=rn.end,bt=rn.offset;Re.current.start=Wt,Re.current.end=Mt,be.useLayoutEffect(function(){var Ut=vn.getRecord();if(Ut.size===1){var nn=Array.from(Ut.keys())[0],an=Ut.get(nn),jt=Sn[Wt];if(jt&&an===void 0){var Dn=Pe(jt);if(Dn===nn){var Wn=vn.get(nn),Jt=Wn-pe;Ce(function(tn){return tn+Jt})}}}vn.resetRecord()},[hn]);var un=be.useState({width:0,height:re}),Ln=(0,ye.Z)(un,2),En=Ln[0],In=Ln[1],dr=function(nn){In({width:nn.offsetWidth,height:nn.offsetHeight})},mt=(0,be.useRef)(),Ge=(0,be.useRef)(),Et=be.useMemo(function(){return ut(En.width,lt)},[En.width,lt]),Rt=be.useMemo(function(){return ut(En.height,hn)},[En.height,hn]),Ht=hn-re,on=(0,be.useRef)(Ht);on.current=Ht;function Bn(Ut){var nn=Ut;return Number.isNaN(on.current)||(nn=Math.min(nn,on.current)),nn=Math.max(nn,0),nn}var mn=ur<=0,Mn=ur>=Ht,Pn=gr<=0,Nn=gr>=lt,wn=We(mn,Mn,Pn,Nn),nr=function(){return{x:bn?-gr:gr,y:ur}},jn=(0,be.useRef)(nr()),Zn=(0,de.zX)(function(Ut){if(_t){var nn=(0,ve.Z)((0,ve.Z)({},nr()),Ut);(jn.current.x!==nn.x||jn.current.y!==nn.y)&&(_t(nn),jn.current=nn)}});function rr(Ut,nn){var an=Ut;nn?((0,nt.flushSync)(function(){Cr(an)}),Zn()):Ce(an)}function fr(Ut){var nn=Ut.currentTarget.scrollTop;nn!==ur&&Ce(nn),Pt==null||Pt(Ut),Zn()}var Gn=function(nn){var an=nn,jt=lt?lt-En.width:0;return an=Math.max(an,0),an=Math.min(an,jt),an},ar=(0,de.zX)(function(Ut,nn){nn?((0,nt.flushSync)(function(){Cr(function(an){var jt=an+(bn?-Ut:Ut);return Gn(jt)})}),Zn()):Ce(function(an){var jt=an+Ut;return jt})}),zn=St($n,mn,Mn,Pn,Nn,!!lt,ar),hr=(0,ye.Z)(zn,2),_n=hr[0],Sr=hr[1];De($n,Fn,function(Ut,nn,an,jt){var Dn=jt;return wn(Ut,nn,an)?!1:!Dn||!Dn._virtualHandled?(Dn&&(Dn._virtualHandled=!0),_n({preventDefault:function(){},deltaX:Ut?nn:0,deltaY:Ut?0:nn}),!0):!1}),Se(gn,Fn,function(Ut){Ce(function(nn){return nn+Ut})}),(0,Ze.Z)(function(){function Ut(an){var jt=mn&&an.detail<0,Dn=Mn&&an.detail>0;$n&&!jt&&!Dn&&an.preventDefault()}var nn=Fn.current;return nn.addEventListener("wheel",_n,{passive:!1}),nn.addEventListener("DOMMouseScroll",Sr,{passive:!0}),nn.addEventListener("MozMousePixelScroll",Ut,{passive:!1}),function(){nn.removeEventListener("wheel",_n),nn.removeEventListener("DOMMouseScroll",Sr),nn.removeEventListener("MozMousePixelScroll",Ut)}},[$n,mn,Mn]),(0,Ze.Z)(function(){if(lt){var Ut=Gn(gr);Cr(Ut),Zn({x:Ut})}},[En.width,lt]);var tr=function(){var nn,an;(nn=mt.current)===null||nn===void 0||nn.delayHidden(),(an=Ge.current)===null||an===void 0||an.delayHidden()},er=vt(Fn,Sn,vn,pe,Pe,function(){return cn(!0)},Ce,tr);be.useImperativeHandle(te,function(){return{nativeElement:An.current,getScrollInfo:nr,scrollTo:function(nn){function an(jt){return jt&&(0,Ve.Z)(jt)==="object"&&("left"in jt||"top"in jt)}an(nn)?(nn.left!==void 0&&Cr(Gn(nn.left)),er(nn.top)):er(nn)}}}),(0,Ze.Z)(function(){if(st){var Ut=Sn.slice(Wt,Mt+1);st(Ut,Sn)}},[Wt,Mt,Sn]);var cr=Xe(Sn,Pe,vn,pe),br=Lt==null?void 0:Lt({start:Wt,end:Mt,virtual:gn,offsetX:gr,offsetY:bt,rtl:bn,getSize:cr}),vr=Be(Sn,Wt,Mt,lt,gr,$t,ot,Ue),lr=null;re&&(lr=(0,ve.Z)((0,Le.Z)({},at?"height":"maxHeight",re),Ft),$n&&(lr.overflowY="hidden",lt&&(lr.overflowX="hidden"),ln&&(lr.pointerEvents="none")));var Yn={};return bn&&(Yn.dir="rtl"),be.createElement("div",(0,z.Z)({ref:An,style:(0,ve.Z)((0,ve.Z)({},Ee),{},{position:"relative"}),className:qn},Yn,fn),be.createElement(Me.Z,{onResize:dr},be.createElement(xt,{className:"".concat(oe,"-holder"),style:lr,ref:Fn,onScroll:fr,onMouseEnter:tr},be.createElement(Ie,{prefixCls:oe,height:hn,offsetX:gr,offsetY:bt,scrollWidth:lt,onInnerResize:cn,ref:yn,innerProps:Gt,rtl:bn,extra:br},vr))),gn&&hn>re&&be.createElement(Dt,{ref:mt,prefixCls:oe,scrollOffset:ur,scrollRange:hn,rtl:bn,onScroll:rr,onStartMove:yr,onStopMove:Te,spinSize:Rt,containerSize:En.height,style:Nt==null?void 0:Nt.verticalScrollBar,thumbStyle:Nt==null?void 0:Nt.verticalScrollBarThumb,showScrollBar:Rn}),gn&<>En.width&&be.createElement(Dt,{ref:Ge,prefixCls:oe,scrollOffset:gr,scrollRange:lt,rtl:bn,onScroll:rr,onStartMove:yr,onStopMove:Te,spinSize:Et,containerSize:En.width,horizontal:!0,style:Nt==null?void 0:Nt.horizontalScrollBar,thumbStyle:Nt==null?void 0:Nt.horizontalScrollBarThumb,showScrollBar:Rn}))}var tt=be.forwardRef(en);tt.displayName="List";var Kt=tt,pt=Kt},51581:function(Yt,zt,ie){"use strict";Object.defineProperty(zt,"__esModule",{value:!0});var z=function(){function be(nt,Ae){for(var Ie=0;Ie<Ae.length;Ie++){var Oe=Ae[Ie];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(nt,Oe.key,Oe)}}return function(nt,Ae,Ie){return Ae&&be(nt.prototype,Ae),Ie&&be(nt,Ie),nt}}(),Ve=ie(59301),ve=ge(Ve),Le=ie(12708),ye=ge(Le);function ge(be){return be&&be.__esModule?be:{default:be}}function ke(be,nt){var Ae={};for(var Ie in be)nt.indexOf(Ie)>=0||Object.prototype.hasOwnProperty.call(be,Ie)&&(Ae[Ie]=be[Ie]);return Ae}function $e(be,nt){if(!(be instanceof nt))throw new TypeError("Cannot call a class as a function")}function Me(be,nt){if(!be)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nt&&(typeof nt=="object"||typeof nt=="function")?nt:be}function de(be,nt){if(typeof nt!="function"&&nt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof nt);be.prototype=Object.create(nt&&nt.prototype,{constructor:{value:be,enumerable:!1,writable:!0,configurable:!0}}),nt&&(Object.setPrototypeOf?Object.setPrototypeOf(be,nt):be.__proto__=nt)}var Ze=function(be){de(nt,be);function nt(Ae){$e(this,nt);var Ie=Me(this,(nt.__proto__||Object.getPrototypeOf(nt)).call(this,Ae));return Ie.scrollListener=Ie.scrollListener.bind(Ie),Ie.eventListenerOptions=Ie.eventListenerOptions.bind(Ie),Ie.mousewheelListener=Ie.mousewheelListener.bind(Ie),Ie}return z(nt,[{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 Ie=this.getParentElement(this.scrollComponent);Ie.scrollTop=Ie.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var Ie=!1,Oe={get passive(){Ie=!0}};try{document.addEventListener("test",null,Oe),document.removeEventListener("test",null,Oe)}catch(Be){}return Ie}},{key:"eventListenerOptions",value:function(){var Ie=this.props.useCapture;return this.isPassiveSupported()&&(Ie={useCapture:this.props.useCapture,passive:!0}),Ie}},{key:"setDefaultLoader",value:function(Ie){this.defaultLoader=Ie}},{key:"detachMousewheelListener",value:function(){var Ie=window;this.props.useWindow===!1&&(Ie=this.scrollComponent.parentNode),Ie.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var Ie=window;this.props.useWindow===!1&&(Ie=this.getParentElement(this.scrollComponent)),Ie.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Ie.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(Ie){var Oe=this.props.getScrollParent&&this.props.getScrollParent();return Oe!=null?Oe:Ie&&Ie.parentNode}},{key:"filterProps",value:function(Ie){return Ie}},{key:"attachScrollListener",value:function(){var Ie=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!Ie)){var Oe=window;this.props.useWindow===!1&&(Oe=Ie),Oe.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),Oe.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Oe.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(Ie){Ie.deltaY===1&&!this.isPassiveSupported()&&Ie.preventDefault()}},{key:"scrollListener",value:function(){var Ie=this.scrollComponent,Oe=window,Be=this.getParentElement(Ie),ct=void 0;if(this.props.useWindow){var kt=document.documentElement||document.body.parentNode||document.body,Ct=Oe.pageYOffset!==void 0?Oe.pageYOffset:kt.scrollTop;this.props.isReverse?ct=Ct:ct=this.calculateOffset(Ie,Ct)}else this.props.isReverse?ct=Be.scrollTop:ct=Ie.scrollHeight-Be.scrollTop-Be.clientHeight;ct<Number(this.props.threshold)&&Ie&&Ie.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=Be.scrollHeight,this.beforeScrollTop=Be.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(Ie,Oe){return Ie?this.calculateTopPosition(Ie)+(Ie.offsetHeight-Oe-window.innerHeight):0}},{key:"calculateTopPosition",value:function(Ie){return Ie?Ie.offsetTop+this.calculateTopPosition(Ie.offsetParent):0}},{key:"render",value:function(){var Ie=this,Oe=this.filterProps(this.props),Be=Oe.children,ct=Oe.element,kt=Oe.hasMore,Ct=Oe.initialLoad,it=Oe.isReverse,Je=Oe.loader,_e=Oe.loadMore,We=Oe.pageStart,St=Oe.ref,Xe=Oe.threshold,Ke=Oe.useCapture,ht=Oe.useWindow,Ne=Oe.getScrollParent,et=ke(Oe,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);et.ref=function(me){Ie.scrollComponent=me,St&&St(me)};var qe=[Be];return kt&&(Je?it?qe.unshift(Je):qe.push(Je):this.defaultLoader&&(it?qe.unshift(this.defaultLoader):qe.push(this.defaultLoader))),ve.default.createElement(ct,et,qe)}}]),nt}(Ve.Component);Ze.propTypes={children:ye.default.node.isRequired,element:ye.default.node,hasMore:ye.default.bool,initialLoad:ye.default.bool,isReverse:ye.default.bool,loader:ye.default.node,loadMore:ye.default.func.isRequired,pageStart:ye.default.number,ref:ye.default.func,getScrollParent:ye.default.func,threshold:ye.default.number,useCapture:ye.default.bool,useWindow:ye.default.bool},Ze.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},zt.default=Ze,Yt.exports=zt.default},26724:function(Yt,zt,ie){Yt.exports=ie(51581)},4977:function(Yt){"use strict";Yt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Yt,zt,ie){"use strict";ie.d(zt,{Z:function(){return $e}});const z=Me=>typeof Me=="object"&&Me!=null&&Me.nodeType===1,Ve=(Me,de)=>(!de||Me!=="hidden")&&Me!=="visible"&&Me!=="clip",ve=(Me,de)=>{if(Me.clientHeight<Me.scrollHeight||Me.clientWidth<Me.scrollWidth){const Ze=getComputedStyle(Me,null);return Ve(Ze.overflowY,de)||Ve(Ze.overflowX,de)||(be=>{const nt=(Ae=>{if(!Ae.ownerDocument||!Ae.ownerDocument.defaultView)return null;try{return Ae.ownerDocument.defaultView.frameElement}catch(Ie){return null}})(be);return!!nt&&(nt.clientHeight<be.scrollHeight||nt.clientWidth<be.scrollWidth)})(Me)}return!1},Le=(Me,de,Ze,be,nt,Ae,Ie,Oe)=>Ae<Me&&Ie>de||Ae>Me&&Ie<de?0:Ae<=Me&&Oe<=Ze||Ie>=de&&Oe>=Ze?Ae-Me-be:Ie>de&&Oe<Ze||Ae<Me&&Oe>Ze?Ie-de+nt:0,ye=Me=>{const de=Me.parentElement;return de==null?Me.getRootNode().host||null:de},ge=(Me,de)=>{var Ze,be,nt,Ae;if(typeof document=="undefined")return[];const{scrollMode:Ie,block:Oe,inline:Be,boundary:ct,skipOverflowHiddenElements:kt}=de,Ct=typeof ct=="function"?ct:Dt=>Dt!==ct;if(!z(Me))throw new TypeError("Invalid target");const it=document.scrollingElement||document.documentElement,Je=[];let _e=Me;for(;z(_e)&&Ct(_e);){if(_e=ye(_e),_e===it){Je.push(_e);break}_e!=null&&_e===document.body&&ve(_e)&&!ve(document.documentElement)||_e!=null&&ve(_e,kt)&&Je.push(_e)}const We=(be=(Ze=window.visualViewport)==null?void 0:Ze.width)!=null?be:innerWidth,St=(Ae=(nt=window.visualViewport)==null?void 0:nt.height)!=null?Ae:innerHeight,{scrollX:Xe,scrollY:Ke}=window,{height:ht,width:Ne,top:et,right:qe,bottom:me,left:Ot}=Me.getBoundingClientRect(),{top:De,right:At,bottom:Xt,left:Se}=(Dt=>{const ze=window.getComputedStyle(Dt);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(Me);let fe=Oe==="start"||Oe==="nearest"?et-De:Oe==="end"?me+Xt:et+ht/2-De+Xt,vt=Be==="center"?Ot+Ne/2-Se+At:Be==="end"?qe+At:Ot-Se;const Vt=[];for(let Dt=0;Dt<Je.length;Dt++){const ze=Je[Dt],{height:ut,width:gt,top:pn,right:Ft,bottom:en,left:tt}=ze.getBoundingClientRect();if(Ie==="if-needed"&&et>=0&&Ot>=0&&me<=St&&qe<=We&&(ze===it&&!ve(ze)||et>=pn&&me<=en&&Ot>=tt&&qe<=Ft))return Vt;const Kt=getComputedStyle(ze),pt=parseInt(Kt.borderLeftWidth,10),le=parseInt(Kt.borderTopWidth,10),te=parseInt(Kt.borderRightWidth,10),ee=parseInt(Kt.borderBottomWidth,10);let oe=0,se=0;const re="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-pt-te:0,pe="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-le-ee:0,xe="offsetWidth"in ze?ze.offsetWidth===0?0:gt/ze.offsetWidth:0,at="offsetHeight"in ze?ze.offsetHeight===0?0:ut/ze.offsetHeight:0;if(it===ze)oe=Oe==="start"?fe:Oe==="end"?fe-St:Oe==="nearest"?Le(Ke,Ke+St,St,le,ee,Ke+fe,Ke+fe+ht,ht):fe-St/2,se=Be==="start"?vt:Be==="center"?vt-We/2:Be==="end"?vt-We:Le(Xe,Xe+We,We,pt,te,Xe+vt,Xe+vt+Ne,Ne),oe=Math.max(0,oe+Ke),se=Math.max(0,se+Xe);else{oe=Oe==="start"?fe-pn-le:Oe==="end"?fe-en+ee+pe:Oe==="nearest"?Le(pn,en,ut,le,ee+pe,fe,fe+ht,ht):fe-(pn+ut/2)+pe/2,se=Be==="start"?vt-tt-pt:Be==="center"?vt-(tt+gt/2)+re/2:Be==="end"?vt-Ft+te+re:Le(tt,Ft,gt,pt,te+re,vt,vt+Ne,Ne);const{scrollLeft:Ee,scrollTop:je}=ze;oe=at===0?0:Math.max(0,Math.min(je+oe/at,ze.scrollHeight-ut/at+pe)),se=xe===0?0:Math.max(0,Math.min(Ee+se/xe,ze.scrollWidth-gt/xe+re)),fe+=je-oe,vt+=Ee-se}Vt.push({el:ze,top:oe,left:se})}return Vt},ke=Me=>Me===!1?{block:"end",inline:"nearest"}:(de=>de===Object(de)&&Object.keys(de).length!==0)(Me)?Me:{block:"start",inline:"nearest"};function $e(Me,de){if(!Me.isConnected||!(nt=>{let Ae=nt;for(;Ae&&Ae.parentNode;){if(Ae.parentNode===document)return!0;Ae=Ae.parentNode instanceof ShadowRoot?Ae.parentNode.host:Ae.parentNode}return!1})(Me))return;const Ze=(nt=>{const Ae=window.getComputedStyle(nt);return{top:parseFloat(Ae.scrollMarginTop)||0,right:parseFloat(Ae.scrollMarginRight)||0,bottom:parseFloat(Ae.scrollMarginBottom)||0,left:parseFloat(Ae.scrollMarginLeft)||0}})(Me);if((nt=>typeof nt=="object"&&typeof nt.behavior=="function")(de))return de.behavior(ge(Me,de));const be=typeof de=="boolean"||de==null?void 0:de.behavior;for(const{el:nt,top:Ae,left:Ie}of ge(Me,ke(de))){const Oe=Ae-Ze.top+Ze.bottom,Be=Ie-Ze.left+Ze.right;nt.scroll({top:Oe,left:Be,behavior:be})}}}}]);
|