|
|
(self.webpackChunk=self.webpackChunk||[]).push([[3747],{40001:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(60499),it=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"},Qe=ve,Se=ie(7657),Ee=function(he,Ye){return it.createElement(Se.Z,(0,z.Z)({},he,{ref:Ye,icon:Qe}))},Le=it.forwardRef(Ee),Xe=Le},73331:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(60499),it=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"},Qe=ve,Se=ie(7657),Ee=function(he,Ye){return it.createElement(Se.Z,(0,z.Z)({},he,{ref:Ye,icon:Qe}))},Le=it.forwardRef(Ee),Xe=Le},15277:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(60499),it=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"},Qe=ve,Se=ie(7657),Ee=function(he,Ye){return it.createElement(Se.Z,(0,z.Z)({},he,{ref:Ye,icon:Qe}))},Le=it.forwardRef(Ee),Xe=Le},33853:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(60499),it=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"},Qe=ve,Se=ie(7657),Ee=function(he,Ye){return it.createElement(Se.Z,(0,z.Z)({},he,{ref:Ye,icon:Qe}))},Le=it.forwardRef(Ee),Xe=Le},61485:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(60499),it=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"},Qe=ve,Se=ie(7657),Ee=function(he,Ye){return it.createElement(Se.Z,(0,z.Z)({},he,{ref:Ye,icon:Qe}))},Le=it.forwardRef(Ee),Xe=Le},47472:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(60499),it=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"},Qe=ve,Se=ie(7657),Ee=function(he,Ye){return it.createElement(Se.Z,(0,z.Z)({},he,{ref:Ye,icon:Qe}))},Le=it.forwardRef(Ee),Xe=Le},87395:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(60499),it=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"},Qe=ve,Se=ie(7657),Ee=function(he,Ye){return it.createElement(Se.Z,(0,z.Z)({},he,{ref:Ye,icon:Qe}))},Le=it.forwardRef(Ee),Xe=Le},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(ln,Vt){"use strict";Vt.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 ln={},Vt="5.0",ie={},z=null,it=!1,ve=!1,Qe=null,Se=!1,Ee=null,Le=null,Xe=0;Xe<arguments.length;Xe++){var Ie=arguments[Xe];if(Ie!==null)switch(typeof Ie){case"number":Vt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?Vt=Ie:Qe=Ie;break;case"object":typeof Ie.is3D!="undefined"?z=Ie:ie=Ie;break;case"boolean":it=Ie,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&&(it=!0)),Qe!==null&&ie.id===void 0&&(ie.id=Qe);var he="",Ye="",Ce=!1,St=null,Ke=null,Ne=null,Ge=!1,ze=null,ft=null,wt=null,At=null,ht=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var lt=function(me){return parseFloat(me)>4?parseFloat(me):5};ln.setHTML5Codebase=function(me,Te){Le=me,dt(me,Te)},ln.setJavaCodebase=ln.setJavaCodebaseVersion=ln.isCompiledInstalled=ln.setPreCompiledScriptPath=ln.setPreCompiledResourcePath=function(){},ln.setHTML5CodebaseVersion=function(me,Te){var _e=parseFloat(me);if(_e!==NaN&&_e<5){console.log("The GeoGebra HTML5 codebase version "+_e+" is deprecated. Using version latest instead.");return}Ee=me,fe(me,Te)},ln.getHTML5CodebaseVersion=function(){return Ke},ln.getParameters=function(){return ie},ln.setFontsCSSURL=function(me){At=me},ln.setGiacJSURL=function(me){},ln.setJNLPFile=function(me){he=me},ln.setJNLPBaseDir=function(me){},ln.inject=function(){function me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Te="auto",_e=ie.id,Nt,xt=!1,zt=0;zt<arguments.length;zt++){var Ae=arguments[zt];typeof Ae=="string"?(Ae=Ae.toLowerCase(),Ae.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Te=Ae:_e=arguments[zt]):typeof Ae=="boolean"?xt=Ae:Ae instanceof HTMLElement&&(Nt=Ae)}$t();function $t(){if(!Se){setTimeout($t,200);return}Te=Ot(Te);var ct=Nt||document.getElementById(_e);if(!ct){console.log("possibly bug on ajax loading? ");return}if(ln.removeExistingApplet(ct,!1),ie.width===void 0&&ct.clientWidth&&(ie.width=ct.clientWidth),ie.height===void 0&&ct.clientHeight&&(ie.height=ct.clientHeight),!(ie.width&&ie.height)&&Te==="html5"&&(delete ie.width,delete ie.height),St=Te,Te==="screenshot")He(ct,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!ot()||me())&&Ze()),ae?(St="screenshot",ut(ct,ie,xt,Te)):Ue(ct,ie,xt)}}};function ot(){try{return window.self!==window.top}catch(me){return!0}}function Ze(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ln.getViews=function(){return z},ln.isJavaInstalled=function(){return!1};var It=function(me){var Te=function(zt){var Ae=JSON.parse(zt),$t=function(te){return te.type=="G"||te.type=="E"},ct=Ae.elements?Ae.elements.filter($t)[0]:Ae;if(!ct||!ct.url){_e();return}ie.fileName=ct.url,et(ct.settings||{}),z.is3D=!0;var ae="https://www.geogebra.org/images/";ln.setPreviewImage(ze||ct.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),me()},_e=function(){ie.onError&&ie.onError(),Zt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",xt="/materials/"+ie.material_id+"?scope=basic";qe("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(xt),Te,_e)};function et(me){var Te=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_e){me[_e]=!!me[_e]}),Te.forEach(function(_e){ie[_e]===void 0&&me[_e]!==void 0&&(ie[_e]=me[_e])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function qe(me,Te,_e){var Nt=new XMLHttpRequest;Nt.open("GET",me),Nt.onload=function(){Te(Nt.responseText)},Nt.onerror=_e,Nt.send()}ln.isHTML5Installed=function(){return!0},ln.getLoadedAppletType=function(){return St},ln.setPreviewImage=function(me,Te,_e){ze=me,ft=Te,wt=_e},ln.removeExistingApplet=function(me,Te){var _e;typeof me=="string"&&(me=document.getElementById(me)),St=null;var Nt=null;for(_e=0;_e<me.childNodes.length;_e++){var xt=me.childNodes[_e],zt=xt.className;zt==="applet_screenshot"?Te?(xt.style.display="block",St="screenshot"):xt.style.display="none":zt!=="applet_scaler prerender"&&(me.removeChild(xt),Nt=zt&&zt.indexOf("appletParameters")!=-1?xt.id:null,_e--)}var Ae=ie.id!==void 0?ie.id:Nt,$t=window[Ae];$t&&typeof $t.getBase64=="function"&&($t.remove(),window[Ae]=null)},ln.refreshHitPoints=function(){if(lt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var me=ln.getAppletObject();return me&&typeof me.recalculateEnvironments=="function"?(me.recalculateEnvironments(),!0):!1},ln.startAnimation=function(){var me=ln.getAppletObject();return me&&typeof me.startAnimation=="function"?(me.startAnimation(),!0):!1},ln.stopAnimation=function(){var me=ln.getAppletObject();return me&&typeof me.stopAnimation=="function"?(me.stopAnimation(),!0):!1},ln.getAppletObject=function(){var me=ie.id!==void 0?ie.id:"ggbApplet";return window[me]},ln.resize=function(){};var vt=function(me,Te,_e){var Nt=document.createElement("param");Nt.setAttribute("name",Te),Nt.setAttribute("value",_e),me.appendChild(Nt)},Me=function(me){return me&&me!=="false"},Ue=function(me,Te,_e){lt(Ke)<=4.2&&(_e=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ke||ggbHTML5LoadedCodebaseIsWebSimple&&!Ge)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var xt=document.createElement("div");xt.classList.add("appletParameters","notranslate");var zt=Te.width,Ae=Te.height;if(Te.disableAutoScale=Te.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Te.disableAutoScale,Te.width!==void 0)if(lt(Ke)<=4.4)Me(Te.showToolBar)&&(Te.height-=7),Me(Te.showAlgebraInput)&&(Te.height-=37),Te.width<605&&Me(Te.showToolBar)&&(Te.width=605,zt=605);else{var $t=100;(Me(Te.showToolBar)||Me(Te.showMenuBar))&&(Te.hasOwnProperty("customToolBar")&&(Te.customToolbar=Te.customToolBar),$t=Me(Te.showMenuBar)?245:155),zt<$t&&(Te.width=$t,zt=$t)}xt.style.border="none",xt.style.display="inline-block";for(var ct in Te)Te.hasOwnProperty(ct)&&ct!=="appletOnLoad"&&xt.setAttribute("data-param-"+ct,Te[ct]);At&&xt.setAttribute("data-param-fontscssurl",At),ln.resize=function(){GGBAppletUtils.responsiveResize(me,Te)},window.addEventListener("resize",function(yt){ln.resize()});var ae=typeof Te.appletOnLoad=="function"?Te.appletOnLoad:function(){};if(!_e&&Te.width!==void 0){Te.hasOwnProperty("showSplash")||xt.setAttribute("data-param-showSplash","false");var te=me.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=Je(zt,Ae,Te.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=zt+"px",te.style.height=Ae+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),lt(Ke)>=5?(Te.appletOnLoad=function(yt){var gt=me.querySelector(".ggb_preview");gt&>.parentNode.removeChild(gt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(yt)},ee||te.appendChild(oe)):xt.appendChild(oe),te.appendChild(xt),ee||me.appendChild(te),setTimeout(function(){ln.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(xt),me.appendChild(se),Te.appletOnLoad=function(yt){ln.resize(),ae(yt)}}function ne(yt,gt){gt&&typeof gt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(yt,gt.appletOnLoad):renderGGBElement(yt),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",gt)}function pe(yt,gt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:yt,params:gt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Kt){ne(Kt.article,Kt.params)}),html5AppletsToProcess=null)},lt(Ke)<5&&(yt.className+=" geogebraweb")):ne(yt,gt)}if(Nt){scriptLoadStarted=!0;for(var xe=0;xe<xt.childNodes.length;xe++){var st=xt.childNodes[xe].tagName;st==="TABLE"&&(xt.removeChild(xt.childNodes[xe]),xe--)}if(ggbHTML5LoadedScript!==null){var Pe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pe!=null&&Pe.parentNode.removeChild(Pe)}var je=document.createElement("script"),rt=function(){pe(xt,Te)};je.src=Ye+Ne,ggbHTML5LoadedCodebaseIsWebSimple=Ge,ggbHTML5LoadedCodebaseVersion=Ke,ggbHTML5LoadedScript=je.src,Zt("GeoGebra HTML5 codebase loaded: '"+Ye+"'.",Te),!Le&&(!Ee||Ee=="5.0")?(Ge?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),rt()):Ye.requirejs?__webpack_require__.e(4510).then(function(){var yt=[__webpack_require__(4510)];rt.apply(null,yt)}.bind(this)).catch(__webpack_require__.oe):(je.onload=rt,me.appendChild(je))}else pe(xt,Te);Te.height=Ae,Te.width=zt},He=function(me,Te,_e){var Nt=Je(Te.width,Te.height,Te.borderColor,_e),xt=document.createElement("div");xt.style.position="relative",xt.style.display="block",xt.style.width=Te.width+"px",xt.style.height=Te.height+"px",xt.className="applet_screenshot applet_scaler"+(_e?" applet_screenshot_play":""),xt.appendChild(Nt);var zt=GGBAppletUtils.getScale(Te,me,_e);_e?(me.appendChild(Oe()),window.GGBT_wsf_view||(me.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xt,"66%"),me.appendChild(xt),zt!==1&&!isNaN(zt)&&(GGBAppletUtils.scaleElement(xt,zt),xt.style.width=Te.width+"px",xt.style.height=Te.height+"px",xt.parentNode.style.width=Te.width*zt+"px",xt.parentNode.style.height=Te.height*zt+"px"),ln.resize=function(){ue(me,Nt,xt,_e)},window.addEventListener("resize",function(Ae){ln.resize()}),ln.resize()};function ue(me,Te,_e,Nt){if(me.contains(Te)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(me)}var xt=GGBAppletUtils.getScale(ie,me,Nt);_e.parentNode!==null&&(!isNaN(xt)&&xt!==1?(GGBAppletUtils.scaleElement(_e,xt),_e.parentNode.style.width=ie.width*xt+"px",_e.parentNode.style.height=ie.height*xt+"px"):(GGBAppletUtils.scaleElement(_e,1),_e.parentNode.style.width=ie.width+"px",_e.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(me),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ln.onExitFullscreen=function(me,Te){Te.appendChild(me)};var ut=function(me,Te,_e,Nt){He(me,Te,!0);for(var xt=function(){var $t=[];for(Ae=0;Ae<me.childNodes.length;Ae++)$t.push(me.childNodes[Ae]);if(window.GGBT_wsf_view){var ct=window.GGBT_wsf_view.renderFullScreen(me,Te.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(me).find(".fullscreencontent");te.length>0?(ct.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):Ue(ct,Te,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else St=Nt,Ue(me,Te,!1);if(!window.GGBT_wsf_view)for(Ae=0;Ae<$t.length;Ae++)me.removeChild($t[Ae])},zt=me.getElementsByClassName("ggb_preview_play"),Ae=0;Ae<zt.length;Ae++)zt[Ae].addEventListener("click",xt,!1),zt[Ae].addEventListener("ontouchstart",xt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(me),Ze()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Oe=function(){var me=document.createElement("div");if(me.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Te='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',_e=document.createElement("style");_e.styleSheet?_e.styleSheet.cssText=Te:_e.appendChild(document.createTextNode(Te)),document.getElementsByTagName("head")[0].appendChild(_e)}return me},Je=function(me,Te,_e,Nt){var xt=document.createElement("div");xt.className="ggb_preview",xt.style.position="absolute",xt.style.zIndex="90",xt.style.width=me-2+"px",xt.style.height=Te-2+"px",xt.style.top="0px",xt.style.left="0px",xt.style.overflow="hidden",xt.style.backgroundColor="white";var zt="lightgrey";_e!==void 0&&(_e==="none"?zt="transparent":zt=_e),xt.style.border="1px solid "+zt;var Ae=document.createElement("img");if(Ae.style.position="relative",Ae.style.zIndex="1000",Ae.style.top="-1px",Ae.style.left="-1px",ze!==null&&Ae.setAttribute("src",ze),Ae.style.opacity=.7,ft!==null){var $t,ct,ae;if(!Nt){$t=document.createElement("img"),$t.style.position="absolute",$t.style.zIndex="1001",$t.style.opacity=1,Ae.style.opacity=.3,ct=360,ct>me/4*3&&(ct=me/4*3),ae=ct/5.8,$t.setAttribute("src",ft),$t.setAttribute("width",ct),$t.setAttribute("height",ae);var te=(me-ct)/2,ee=(Te-ae)/2;$t.style.left=te+"px",$t.style.top=ee+"px",xt.appendChild($t)}}return xt.appendChild(Ae),xt},Ot=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],fe=function(me,Te){if(Ke=me,Te){dt(Ke,!0);return}var _e=!it;if(_e){var Nt=lt(Ke);!isNaN(Nt)&&Nt<4.4&&(_e=!1)}var xt,zt;window.location.protocol.substr(0,4)==="http"?xt=window.location.protocol:xt="http:";var Ae=Ke.indexOf("//");Ae>0?zt=Ke:Ae===0?zt=xt+Ke:zt="https://www.geogebra.org/apps/5.2.814.0/";for(var $t in ye)if(Ke.slice(ye[$t].length*-1)===ye[$t]||Ke.slice((ye[$t].length+1)*-1)===ye[$t]+"/"){dt(zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_e&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(ie.showToolBar)&&!Me(ie.showMenuBar)&&!Me(ie.showAlgebraInput)&&!Me(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?zt+="webSimple/":zt+="web3d/",dt(zt,!1)},dt=function(me,Te){if(me.requirejs){Ye=me;return}me.slice(-1)!=="/"&&(me+="/"),Ye=me,Te===null&&(Te=me.indexOf("http")===-1),Ce=Te,Ne="web.nocache.js",Ge=!1;var _e=Ye.split("/");_e.length>1&&(!Te&&_e[_e.length-2]==="webSimple"?(Ne="webSimple.nocache.js",Ge=!0):ye.indexOf(_e[_e.length-2])>=0&&(Ne=_e[_e.length-2]+".nocache.js")),_e=me.split("/"),Ke=_e[_e.length-3],Ke.substr(0,4)==="test"?Ke=Ke.substr(4,1)+"."+Ke.substr(5,1):(Ke.substr(0,3)==="war"||Ke.substr(0,4)==="beta")&&(Ke="5.0");var Nt=parseFloat(Ke);Nt!==NaN&&Nt<5&&me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead."),fe("5.0",Te))},Zt=function(me,Te){window.console&&window.console.log&&(!Te||typeof Te.showLogging=="undefined"||Te.showLogging&&Te.showLogging!=="false")&&console.log(me)};ie.material_id!==void 0?It(bt):bt();function bt(){var me=Vt;Ee!==null?me=Ee:parseFloat(me)<5&&(me="5.0"),fe(me,!1),Le!==null&&dt(Le,Ce),Se=!0}return ln},GGBAppletUtils=function(){"use strict";function ln(){return window.GGBT_wsf_edit!==void 0}function Vt(Se,Ee){Ee!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ee+","+Ee+")",Se.style.webkitTransform="scale("+Ee+","+Ee+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function ie(Se,Ee,Le,Xe,Ie,he){var Ye=null;if(he!=null&&he!="")for(var Ce=Se.parentNode;Ce!=null;)if((" "+Ce.className+" ").indexOf(" "+he+" ")>-1){Ye=Ce;break}else Ce=Ce.parentNode;var St=0,Ke=0,Ne=0,Ge=0,ze=0,ft=0,wt=0;if(Ye)St=Ye.offsetWidth,Ke=Math.max(Xe?Ye.offsetWidth:0,Ye.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(St=Math.min(window.innerWidth,document.documentElement.clientWidth),Ke=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=St):(St=window.innerWidth,Ke=window.innerHeight,Ne=window.innerWidth),Se){var At=Se.getBoundingClientRect();At.left>0&&At.left<=St&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(ze=St-At.width-At.left,ft=Ne<=480?10:30):(ft=At.left,ze=Ne<=480?10:30),Ge=ft+ze)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ht=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge=40,wt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge=0,wt=40)}}return Se&&((Le===void 0||!Le)&&Ee>0&&Ee+Ge<St?St=Ee:St-=Ge,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Le===void 0||!Le)&&(Ke-=wt)),{width:St,height:Ke}}function z(Se,Ee,Le,Xe,Ie){if(Se.isScreenshoGenerator)return 1;var he=Xe!==void 0&&Xe,Ye=Se.noScaleMargin!=null&&Se.noScaleMargin,Ce=function(ht){return ht&&ht!=="false"},St=Ce(Se.autoHeight),Ke=ie(Ee,Se.width,Le,St,he&&window.GGBT_wsf_view||Ye,Ie),Ne=parseInt(Ke.width),Ge=Se.width,ze=Se.height;if(Ge===void 0){var ft=Ee.querySelector(".appletParameters");ft&&(Ge=ft.offsetWidth,ze=ft.offsetHeight)}var wt=Ne/Ge,At=he?1:Ke.height/ze;return Le!==void 0&&!Le&&(wt=Math.min(1,wt),At=Math.min(1,At)),Math.min(wt,At)}function it(Se,Ee,Le){var Xe=1,Ie,he=!1;if(Se.hasOwnProperty("allowUpscale")&&(he=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Xe=parseFloat(Se.scale),(isNaN(Xe)||Xe===null||Xe===0)&&(Xe=1),Xe>1&&(he=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Ie=z(Se,Ee,he,Le,Se.scaleContainerClass);else return Xe;return he&&(!Se.hasOwnProperty("scale")||Xe===1)?Ie:Math.min(Xe,Ie)}function ve(Se){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),Le=Math.min(window.innerHeight,document.documentElement.clientHeight),Xe=Se.getBoundingClientRect(),Ie=(Ee-Xe.width)/2,he=(Le-Xe.height)/2;he<0&&(he=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?Se.style.left="40px":Se.style.left=Ie+"px",Se.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?Se.style.top="40px":Se.style.top=he+"px",Se.style.left=Ie+"px")}function Qe(Se,Ee){var Le=Se.querySelector(".appletParameters");if(Le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==Le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(Le.parentElement&&/fullscreen/.test(Le.parentElement.className))return;var Xe=it(Ee,Se);ln()&&Le.setAttribute("data-param-scale",Xe);for(var Ie=null,he=0;he<Se.childNodes.length;he++)if(Se.childNodes[he].className!==void 0&&Se.childNodes[he].className.match(/^applet_scaler/)){Ie=Se.childNodes[he];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var Ye=Ee.id!==void 0?Ee.id:"ggbApplet",Ce=window[Ye];(Ce==null||!Ce.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(Xe)&&Xe!==1?(Ie.parentNode.style.width=Ee.width*Xe+"px",Ie.parentNode.style.height=Ee.height*Xe+"px",Vt(Ie,Xe)):(Vt(Ie,1),Ie.parentNode.style.width=Ee.width+"px",Ie.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ve(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Le).parents(".content-added-content"))}}return{responsiveResize:Qe,isFlexibleWorksheetEditor:ln,positionCenter:ve,getScale:it,scaleElement:Vt}}();__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 ln=n.location.search;return ln.indexOf(J)!=-1||ln.indexOf(K)!=-1}function q(ln,Vt){}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(ln){var Vt=s[L].bindings;s[L].bindings=function(){for(var ie=Vt?Vt():{},z=ln[webModule.__softPermutationId],it=O;it<z.length;it++){var ve=z[it];ie[ve[O]]=ve[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var ln=o.createElement(Q);if(ln.id=L,ln.style.cssText=R+S,ln.tabIndex=-1,o.body.appendChild(ln),t=ln.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Vt=document.compatMode==U?V:W;t.write(Vt+X),t.close()}}}function w(ln){function Vt(z){function it(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ve=it();if(ve){z();return}function Qe(){if(!ve){if(!it())return;ve=!0,z(),o.removeEventListener&&o.removeEventListener(Z,Qe,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Qe,!1);var Se=setInterval(function(){Qe()},$)}function ie(z){var it=u(),ve=it.body,Qe=it.createElement(_);Qe.language=ab,Qe.crossOrigin=W,Qe.src=z,webModule.__errFn&&(Qe.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ve.appendChild(Qe)}Vt(function(){ie(ln)})}webModule.__startLoadingFragment=function(ln){return C(ln)},webModule.__installRunAsyncCode=function(ln){var Vt=u(),ie=Vt.body,z=Vt.createElement(_);z.language=ab,z.text=ln,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(ln){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ln){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ln){var Vt=c[ln];return Vt==null?null:Vt},r=d,webModule.__errFn=e}function B(){function ln(Se){var Ee=Se.lastIndexOf(rb);Ee==-1&&(Ee=Se.length);var Le=Se.indexOf(sb);Le==-1&&(Le=Se.length);var Xe=Se.lastIndexOf(tb,Math.min(Le,Ee));return Xe>=O?Se.substring(O,Xe+P):W}function Vt(Se){if(!Se.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=Se+vb,Se=ln(Ee.src)}return Se}function ie(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function z(){for(var Se=o.getElementsByTagName(_),Ee=O;Ee<Se.length;++Ee)if(Se[Ee].src.indexOf(xb)!=-1)return ln(Se[Ee].src);return W}function it(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function ve(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Qe=ie();return Qe==W&&(Qe=z()),Qe==W&&(Qe=it()),Qe==W&&ve()&&(Qe=ln(o.location.href)),Qe=Vt(Qe),Qe}function C(ln){return ln.match(/^\//)||ln.match(/^[a-zA-Z]+:\/\//)?ln:webModule.__moduleBase+ln}function D(){var ln=[],Vt=O,ie=[],z=[];function it(Se){var Ee=z[Se](),Le=ie[Se];if(Ee in Le)return Ee;var Xe=[];for(var Ie in Le)Xe[Le[Ie]]=Ie;throw r&&r(Se,Xe,Ee),null}if(__gwt_isKnownPropertyValue=function(Se,Ee){return Ee in ie[Se]},webModule.__getPropMap=function(){var Se={};for(var Ee in ie)ie.hasOwnProperty(Ee)&&(Se[Ee]=it(Ee));return Se},webModule.__computePropValue=it,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var Qe=ve.indexOf(Db);Qe!=-1&&(Vt=parseInt(ve.substring(Qe+P),$),ve=ve.substring(O,Qe))}catch(Se){}return webModule.__softPermutationId=Vt,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(ln,Vt,ie){"use strict";ie.d(Vt,{Ax:function(){return Qe},Ds:function(){return Se},KI:function(){return Le},SI:function(){return ve},f1:function(){return it}});var z=ie(14185);function it(Xe){let Ie=!0;if(Xe.length>0){for(let he=0;he<Xe.length;he++)if(Xe[he].compile_success==0||!Xe[he].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function ve(Xe,Ie=""){let he=[];for(let Ye=0;Ye<Xe.length;Ye++){let Ce=Xe[Ye],St=Ie?`${Ie}/${Ce.name}`:`${Ce.name}`;he.push({title:Ce.name,type:Ce.type,isLeaf:Ce.type!=="tree",key:St})}return he}function Qe(Xe,Ie,he){for(let Ye=0;Ye<Xe.length;Ye++){let Ce=Xe[Ye];if(Ce.key===Ie){Ce.children=he;break}Ce.children&&Qe(Ce.children,Ie,he)}return Xe}function Se(Xe,Ie,he){let Ye;return function(){let Ce=this,St=arguments,Ke=function(){Ye=null,he||Xe.apply(Ce,St)},Ne=he&&!Ye;clearTimeout(Ye),Ye=setTimeout(Ke,Ie),Ne&&Xe.apply(Ce,St)}}const Ee=!0,Le=z.Z.API_SERVER},40254:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Ye}});var z=ie(59301),it={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ve=ie(92310),Qe=ie.n(ve),Se=ie(29787),Ee=ie(2859),Le=ie(49317),Xe=ie(76406),Ie=(Ce,St,Ke)=>new Promise((Ne,Ge)=>{var ze=At=>{try{wt(Ke.next(At))}catch(ht){Ge(ht)}},ft=At=>{try{wt(Ke.throw(At))}catch(ht){Ge(ht)}},wt=At=>At.done?Ne(At.value):Promise.resolve(At.value).then(ze,ft);wt((Ke=Ke.apply(Ce,St)).next())}),Ye=({data:Ce,className:St,fullWidth:Ke,style:Ne={},onClose:Ge,onOk:ze,showFullTools:ft,noAssociationId:wt})=>{const At=(0,z.useRef)(null),ht=(0,z.useRef)(null),lt=(0,z.useRef)(null),ot=(0,z.useRef)(null),[Ze,It]=(0,z.useState)(!1),[et,qe]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(lt.current||(lt.current=document.createElement("style"),document.head.appendChild(lt.current)),Ce!=null&&Ce.visible?(document.body.setAttribute("data-custom","y-hidden"),lt.current.innerHTML=" html { overflow-y: hidden; }",Ce!=null&&Ce.src&&vt()):(document.body.removeAttribute("data-custom"),lt.current&&(document.head.removeChild(lt.current),lt.current=null)),()=>{document.body.removeAttribute("data-custom"),lt.current&&(document.head.removeChild(lt.current),lt.current=null)}),[Ce==null?void 0:Ce.visible]);const vt=()=>Ie(void 0,null,function*(){It(!0),qe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Xe.ZJ)(Ce==null?void 0:Ce.src);At.current.src="",At.current.src=ue,At.current.onload=function(){He()},It(!1),qe("")}),Me=ue=>Ie(void 0,null,function*(){It(!0),qe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ut=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ce.title,file:ue.dataUrl}});ut!=null&&ut.id&&!wt?(yield(0,Le.ZP)(`/api/attachments/${Ce.id}/add_subitem.json`,{method:"post",body:{subitem_id:ut==null?void 0:ut.id,settings:JSON.stringify(ue.state)}})).status===0&&ze():ut!=null&&ut.id&&ze(ut),It(!1),qe("")}),Ue=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Oe=>{const Je=document.querySelector(Oe.name);Je&&Je.setAttribute("title",Oe.title)})},He=()=>{ht.current=new Ee.hP(At.current),ht.current.targetRoot=ot.current,ht.current.addEventListener("render",Me),ht.current.addEventListener("beforeclose",Ge),ft&&(ht.current.availableMarkerTypes=ht.current.ALL_MARKER_TYPES,ht.current.uiStyleSettings.redoButtonVisible=!0,ht.current.uiStyleSettings.notesButtonVisible=!0,ht.current.uiStyleSettings.zoomButtonVisible=!0,ht.current.uiStyleSettings.zoomOutButtonVisible=!0,ht.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ht.current.uiStyleSettings,ht.current.show(),Ce!=null&&Ce.snapshotData&&ht.current.restoreState(Ce.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ue()},300)};return z.createElement(z.Fragment,null,(Ce==null?void 0:Ce.visible)&&z.createElement(Se.Z,{spinning:Ze,tip:et,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:ot,className:Qe()(it.imageDimensions,St,Ke?it.fullWidth:""),style:Ne},z.createElement("img",{className:it.img,ref:At}))))}},9057:function(ln,Vt,ie){"use strict";var z=ie(59301),it=ie(77019),ve=ie(5269),Qe=ie(31691),Se=ie(7939),Ee=ie(35883),Le=ie(74501),Xe=ie(48136),Ie=ie(59301);const he=(0,z.forwardRef)(({callback:Ye,showSaveButton:Ce,value:St=""},Ke)=>{const Ne=(0,z.useRef)(),Ge=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ze=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],ft=ht=>{Ne.current.setValue(Ne.current.getValue()+" "+ht.value+" ")},wt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(it.Z,{className:Le.Z.lists,gutter:[10,10]},Ge.map((ht,lt)=>Ie.createElement(ve.Z,{flex:"110px",className:Le.Z.item},Ie.createElement("div",null,Ie.createElement(Ee.Z,{value:`$$${ht.value}$$`}),ht.name),Ie.createElement("div",{className:Le.Z.children},ht.children.map((ot,Ze)=>Ie.createElement("div",{key:Ze},Ie.createElement("h1",null,ot.name),Ie.createElement(it.Z,{gutter:[10,10]},ot.data.map((It,et)=>Ie.createElement(ve.Z,{key:et,onClick:()=>ft(It),className:Le.Z.diamond},Ie.createElement(Ee.Z,{value:"`$$"+It.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(it.Z,{className:Le.Z.lists,gutter:[10,10]},ze.map((ht,lt)=>Ie.createElement(ve.Z,{flex:"110px",className:Le.Z.item},Ie.createElement("div",null,Ie.createElement(Ee.Z,{value:"`$$"+ht.value+"$$`"}),ht.name),Ie.createElement("div",{className:Le.Z.children},ht.children.map((ot,Ze)=>Ie.createElement("div",{key:Ze},ot.name&&Ie.createElement("h1",null,ot.name),Ie.createElement(it.Z,{gutter:[10,10]},ot.data.map((It,et)=>Ie.createElement(ve.Z,{key:et,onClick:()=>ft(It),className:Le.Z.diamond},Ie.createElement(Ee.Z,{value:"`$$"+It.value+"$$`"}))))))))))}],At=()=>{var ht=document.createElement("div");ht.innerHTML=Ne.current.getValue();var lt=ht.innerText;return Ye&&Ye(lt),lt};return(0,z.useImperativeHandle)(Ke,()=>({getData:At})),Ie.createElement("div",{className:Le.Z.mathWrap},Ie.createElement(Qe.default,{defaultActiveKey:"1",items:wt}),Ie.createElement("math-field",{locale:"zh_cn",className:Le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ne,style:{width:800,marginTop:30,fontSize:18}},St||""),Ce&&Ie.createElement("div",{className:Le.Z.button},Ie.createElement(Se.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Vt.Z=he},90736:function(ln,Vt,ie){"use strict";var z=ie(59301),it=ie(4977),ve=ie(7939),Qe=Object.defineProperty,Se=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,he=(Ke,Ne,Ge)=>Ne in Ke?Qe(Ke,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Ke[Ne]=Ge,Ye=(Ke,Ne)=>{for(var Ge in Ne||(Ne={}))Xe.call(Ne,Ge)&&he(Ke,Ge,Ne[Ge]);if(Le)for(var Ge of Le(Ne))Ie.call(Ne,Ge)&&he(Ke,Ge,Ne[Ge]);return Ke},Ce=(Ke,Ne)=>Se(Ke,Ee(Ne));const St=({img:Ke,buttonProps:Ne={},styles:Ge={},customText:ze,ButtonText:ft,ButtonClick:wt,Buttonclass:At,ButtonTwo:ht,imgStyles:lt,loading:ot=!1,className:Ze=""})=>z.createElement("section",{className:`tc animated fadeIn ${Ze}`,style:Ye({color:"#999",margin:"100px auto",visibility:ot?"hidden":"visible"},Ge)},z.createElement("img",{src:Ke||it,style:Ce(Ye({},lt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},ze||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ft&&z.createElement(ve.ZP,Ye({className:At,onClick:wt},Ne),ft),ht&&ht);Vt.Z=St},86974:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return At}});var z=ie(59301),it={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ve=ie(7939),Qe=ie(70557),Se=ie(34728),Ee=ie(25399),Le=ie(76406),Xe=ie(84849),Ie=ie(90736),he=ie(14185),Ye=ie(52078),Ce=ie(59301),St=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ze=(ht,lt,ot)=>lt in ht?St(ht,lt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):ht[lt]=ot,ft=(ht,lt)=>{for(var ot in lt||(lt={}))Ne.call(lt,ot)&&ze(ht,ot,lt[ot]);if(Ke)for(var ot of Ke(lt))Ge.call(lt,ot)&&ze(ht,ot,lt[ot]);return ht},wt=(ht,lt,ot)=>new Promise((Ze,It)=>{var et=Me=>{try{vt(ot.next(Me))}catch(Ue){It(Ue)}},qe=Me=>{try{vt(ot.throw(Me))}catch(Ue){It(Ue)}},vt=Me=>Me.done?Ze(Me.value):Promise.resolve(Me.value).then(et,qe);vt((ot=ot.apply(ht,lt)).next())}),At=({editOffice:ht="view",data:lt,issaver:ot,onSaver:Ze,theme:It,type:et,filename:qe,monacoEditor:vt,className:Me,style:Ue,close:He,onClose:ue,hasMask:ut,disabledDownload:Oe,onImgDimensions:Je,showNodata:Ot,recordInfo:ye})=>{const[fe,dt]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Zt,bt]=(0,z.useState)(""),[me,Te]=(0,z.useState)(),_e=window.ENV==="build"?"/react/build":"",Nt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,zt=10*(1024*1024),Ae=(0,z.useRef)();lt!=null&<.startsWith("/api")&&et!=="txt"&&(lt=he.Z.API_SERVER+lt);const $t=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();qe&&vt&&(vt.filename=qe),(0,z.useEffect)(()=>{var se,ne;const pe=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");pe==null||pe.map(xe=>{let st=xe.split("=");st[0]==="_educoder_session"&&bt(st[1])})},[]),(0,z.useEffect)(()=>{et==="office"&&(lt.indexOf("bigfilescdn.")>-1||lt.indexOf("bigfiles1")>-1?Te({url:lt,fileType:$t(lt),model:lt.indexOf("model=edit")?"edit":"view"}):lt.indexOf("coze")>-1?Te({url:lt,fileType:"doc",model:"view"}):ae())},[et,lt]);function ct(se){return wt(this,null,function*(){se.data.type==="pdfdata"&&(Ze(se.data.data),window.removeEventListener("message",ct,!1)),console.log("mess---:",se.data)})}const ae=()=>wt(void 0,null,function*(){console.log("data:",lt);let se=lt;lt.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const pe=yield(0,Xe.gJ)({attachment_id:ne});pe.url=Nt+pe.url,Te(pe)}),te=()=>{if(lt.startsWith("http")||lt.startsWith("blob:")){ee();return}(0,Le.Sv)(qe||"educoder",lt,qe)},ee=()=>{ye&&(0,Ye.fc)({id:ye==null?void 0:ye.id,watch_type:1,course_id:ye==null?void 0:ye.course_id}),(0,Le.Nd)(qe||"educoder",decodeURIComponent(lt))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&ue()};return Ce.createElement("div",{style:ft({},Ue||{}),className:`${ut&&it.bgBlack} ${et?it.wrp:"hide"}`},!!et&&He&&Ce.createElement("div",{id:"closePop",className:it.close,ref:Ae},!!Je&&Ce.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ae.current},Ce.createElement("span",{onClick:()=>{ue(),Je()}},Ce.createElement("i",{className:"icon-yulanpizhu"}))),!Oe&&window.parent===window&&Ce.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ae.current},Ce.createElement("span",{onClick:ee},Ce.createElement("i",{className:"icon-quxiaozhiding"}))),ot&&Ce.createElement(Ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ae.current},Ce.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",ct,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ce.createElement("i",{className:"icon-baocun"}))),Ce.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ae.current},Ce.createElement("span",{className:"",onClick:()=>{ue()}},Ce.createElement("i",{className:"icon-guanbi1"})))),Ce.createElement("div",{className:`${it[Me]} ${Me} ${it.monaco} ${et==="txt"?"show":"hide"}`},et==="txt"&&Ce.createElement(Ce.Fragment,null,Ce.createElement(Se.ZP,ft({},vt)))),et==="audio"&&Ce.createElement("audio",{controls:!0,src:`${(lt==null?void 0:lt.indexOf("http://"))>-1||(lt==null?void 0:lt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${lt}`,autoPlay:!0}),et==="video"&&Ce.createElement(Ce.Fragment,null,(lt==null?void 0:lt.indexOf("http"))>-1?Ce.createElement("video",{controls:!0,src:`${lt}`,autoPlay:!0}):Ce.createElement("video",{controls:!0,src:`data:video/mp4;base64,${lt}`,autoPlay:!0})),et==="office"&&me&&Ce.createElement("iframe",{src:`${_e}/office.html?key=${me.key}&url=${btoa(me.url)}&callbackUrl=${Nt+(me.callbackUrl||"")}&fileType=${me.fileType}&title=${me.title||""}&model=${ht}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Oe}`}),et==="html"&&Ce.createElement("iframe",{src:lt+"&disposition=inline"}),et==="pdf"&&Ce.createElement("iframe",{id:"pdfiframe",src:`${_e}/js/pdf/index.html?filename=${qe||"educoder.pdf"}&url=${encodeURIComponent(lt)}&disabledDownload=${!!Oe}&model=${ht}`}),et==="image"&&Ce.createElement("img",{src:`${(lt==null?void 0:lt.indexOf("http://"))>-1||(lt==null?void 0:lt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${lt}`}),(et==="other"||et==="download")&&Ce.createElement(Ce.Fragment,null,Ot?Ce.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ce.createElement(ve.ZP,{icon:Ce.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Oe},"\u4E0B\u8F7D")}):Ce.createElement(ve.ZP,{type:"primary",size:"middle",onClick:te,disabled:Oe},Ce.createElement(Qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),et==="flowChart"&&Ce.createElement("div",{className:"embed"},Ce.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${lt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(ln,Vt,ie){"use strict";ie.d(Vt,{z:function(){return vt},Z:function(){return Me}});var z=ie(59301),it=ie(46214),ve=ie(20047),Qe=ie(64018),Se=ie(16471),Ee=ie(14185),Le=ie(76406),Xe=ie(15342),Ie=ie(44104),he=ie(7939),Ye=ie(1012),Ce=ie(86974),St=ie(59301),Ne=({html:Ue})=>{const He=(0,z.useRef)(null),ue=(0,z.useRef)(null),ut=`.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 Oe=He.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=Ue,Oe.appendChild(ue.current);const Je=document.createElement("style");return Je.textContent=ut,Oe.appendChild(Je),()=>{Oe.innerHTML=""}},[]),(0,z.useEffect)(()=>{ue.current&&(ue.current.innerHTML=Ue)},[Ue]),St.createElement("div",{ref:He})};function Ge(Ue){const He=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ue=new RegExp(`\\b(${He.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),ut=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Ue.replace(ue,"").replace(ut,"").trim()}var ze={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ft=Object.defineProperty,wt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,lt=(Ue,He,ue)=>He in Ue?ft(Ue,He,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Ue[He]=ue,ot=(Ue,He)=>{for(var ue in He||(He={}))At.call(He,ue)&<(Ue,ue,He[ue]);if(wt)for(var ue of wt(He))ht.call(He,ue)&<(Ue,ue,He[ue]);return Ue};const Ze="@\u2581\u2581@",It="@\u2581@",et=/<pre[^>]*>/g;function qe(Ue){let He=document.createElement("div");return He.innerHTML=Ue,He.childNodes.length===0?"":He.childNodes[0].nodeValue}const vt=(Ue,He)=>{Ue=Ue||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ut=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Oe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Je=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return He?Ue.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Ot,ye,fe,dt,Zt,bt,me)=>{const Te=ye||dt||bt,_e=fe||Zt||me||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Te+_e+"&t="+(0,Le.Jn)(Te,Date.now())+(Ot.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ue=Ue.replace(Je,(Ot,ye,fe,dt,Zt,bt,me)=>{const Te=ye||dt||bt,_e=fe||Zt||me||"?";return Ee.Z.API_SERVER+"/attachments/download/"+Te+_e+"&t="+(0,Le.Jn)(Te,Date.now())+(Ot.indexOf(")")>-1?")":"&")}).replace(ue,(Ot,ye,fe,dt,Zt,bt,me)=>{const Te=ye||dt||bt,_e=fe||Zt||me||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Te+_e+"&t="+(0,Le.Jn)(Te,Date.now())+(Ot.indexOf(")")>-1?")":"&")}).replace(ut,(Ot,ye,fe,dt,Zt)=>{const bt=ye||dt,me=fe||Zt||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+bt+me+bt+me+"&t="+(0,Le.Jn)(bt,Date.now())}).replace(Oe,(Ot,ye,fe,dt,Zt)=>{const bt=ye||dt,me=fe||Zt||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+bt+me+bt+me+"&t="+(0,Le.Jn)(bt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Ue)};var Me=({value:Ue="",edit:He=!1,className:ue,showTextOnly:ut,showLines:Oe,style:Je={},stylesPrev:Ot={},highlightKeywords:ye,showProgramFill:fe,isProgramFill:dt,disabledFill:Zt=!1,programFillValue:bt,openEditor:me=()=>{},onFillChange:Te=xt=>{},onFillBlur:_e=()=>{},onFillFocus:Nt=()=>{}})=>{let xt=Ge(String(Ue||""));const zt=(0,z.useRef)(),Ae=(0,z.useRef)(),[$t,ct]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,Ye.Z)()),ne={},pe=Ct=>/<style[\s\S]*?>/i.test(Ct||""),xe=(Ct,qt,Wt)=>{const De=document.createElement(Ct===It?"input":"textarea");De.style.width="100%",De.style.height=Ct===It?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=qt;const tt=Object.keys(ne).length;return ne[tt]=De,`<span class="edu-program-fill-wrap ${Ct===It?"":"show"}" style="width:${Ct===It?"600px":"100%"}" title=${Wt||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function st(Ct){return Ct=Ct.replace(/!\[.*?\]\(.*?\)/g,""),Ct=Ct.replace(/\[.*?\]\(.*?\)/g,""),Ct=Ct.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ct=Ct.replace(/<embed.*?>/g,""),Ct=Ct.replace(/<img.*?>/g,""),Ct=Ct.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ct=Ct.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ct=Ct.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ct=Ct.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ct}const Pe=Ct=>!ut&&pe(xt)?Ct:Ct.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(qt,Wt){let De=Wt.replace(/(\n|\r)/g,"").split("}"),tt=[];return De.map(Tt=>{Tt!=""&&tt.push(`.${se.current} ${Tt}`)}),`<style>${tt.join("}")}</style>`}),je=(0,z.useMemo)(()=>{(0,ve.Iy)();try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,tt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Tt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Rt=/\(\/attachments\/download\//g;xt=xt.replace(Rt,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(De,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(tt,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(Tt,'"'+Ee.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),zt.current.style.display="none"}catch(De){}if(fe){let De=-1;return xt=xt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(tt,Tt,Rt){var ke;return++De,xe(tt,De,(ke=bt==null?void 0:bt[De])==null?void 0:ke.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Pe(xt||"")}</pre>`}let Ct=Pe(xt);Ct=(0,ve.ZP)(Ct);const qt=(0,ve.ez)();xt.match(/\[TOC\]/)&&(Ct=Ct.replace("<p>[TOC]</p>",(0,ve.Qv)()),(0,ve.Iy)()),Ct=Ct.replace(/(__special_katext_id_\d+__)/g,(De,tt)=>{const{type:Tt,expression:Rt}=qt[tt];return(0,Xe.renderToString)(qe(Rt)||"",{displayMode:Tt==="block",throwOnError:!1,output:"html"})}),Ct=Ct.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ve.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=Ct,ut)return Wt.innerText;if(ye){const De=ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Kt(Wt,De),Wt.innerHTML}return setTimeout(()=>tn(),500),Wt.innerHTML},[xt,ye]);(0,z.useEffect)(()=>{jt.current&&jt.current.querySelectorAll(["input","textarea"]).forEach(qt=>{qt.oninput=rt,qt.onblur=yt,qt.onfocus=gt})},[ee]),(0,z.useEffect)(()=>{var Ct,qt,Wt,De,tt;if(bt!=null&&bt.length)try{const Tt=jt.current.querySelectorAll(".edu-program-fill-score"),Rt=jt.current.querySelectorAll('[name="edu-program-fill"]');for(const[ke,$e]of Rt.entries())$e.value=((Ct=bt==null?void 0:bt[ke])==null?void 0:Ct.value)||"",((qt=bt==null?void 0:bt[ke])==null?void 0:qt.type)==="warning"?$e.className="program-fill-warning":((Wt=bt==null?void 0:bt[ke])==null?void 0:Wt.type)==="success"?$e.className="program-fill-success":$e.className="";for(const[ke,$e]of Tt.entries())$e.innerHTML=(De=bt==null?void 0:bt[ke])!=null&&De.score?`${(tt=bt==null?void 0:bt[ke])==null?void 0:tt.score}\u5206`:"";oe(bt)}catch(Tt){console.log(Tt,"error")}},[bt]);const rt=Ct=>{ee[Ct.target.dataset.id]=ee[Ct.target.dataset.id]||{},ee[Ct.target.dataset.id].value=Ct.target.value,oe([...ee]),Te(ee,Ct.target.dataset.id)},yt=Ct=>{ee[Ct.target.dataset.id]=ee[Ct.target.dataset.id]||{},ee[Ct.target.dataset.id].value=Ct.target.value,oe([...ee]),_e(ee,Ct.target.dataset.id)},gt=Ct=>{ee[Ct.target.dataset.id]=ee[Ct.target.dataset.id]||{},ee[Ct.target.dataset.id].value=Ct.target.value,oe([...ee]),Nt(ee,Ct.target.dataset.id)};function Kt(Ct,qt){return Ct.childNodes.forEach(Wt=>{var De;if(Wt.childNodes.length>0)Kt(Wt,qt);else if(Wt.nodeName!=="IMG")if(Wt.innerHTML)Wt.innerHTML=(De=Wt.innerHTML)==null?void 0:De.replace(new RegExp(qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const tt=document.createElement("span");tt.innerHTML=Wt.textContent.replace(new RegExp(qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Wt.replaceWith(tt)}})}const jt=(0,z.useRef)();ve.jb.WebkitLineClamp=Oe,Oe&&(Je=ot(ot({},Je),ve.jb));function Ht(Ct){let qt=Ct.target;if(qt.tagName.toUpperCase()==="A"){let Wt=qt.getAttribute("href");if(Wt.indexOf("office")>-1)Ct.preventDefault(),ct(Wt),te("office");else if(Wt.indexOf("application/pdf")>-1)Ct.preventDefault(),ct(Wt),te("pdf");else if(Wt.indexOf("text/html")>-1)Ct.preventDefault(),ct(Wt),te("html");else if(Wt.startsWith("#")){Ct.preventDefault();let De=document.getElementById(Wt.replace("#",""));De&&De.scrollIntoView(!0)}}}const tn=()=>{var Ct;const qt=(Ct=jt.current)==null?void 0:Ct.querySelectorAll("video");qt==null||qt.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var De=new Se.ZP;De.loadSource(Wt.src),De.attachMedia(Wt)}}})};(0,z.useEffect)(()=>{if(jt.current&&je&&je.match(et)&&window.PR.prettyPrint(),jt.current)return jt.current.addEventListener("click",Ht),()=>{var Ct;(Ct=jt.current)==null||Ct.removeEventListener("click",Ht),(0,ve.AL)(),(0,ve.Iy)()}},[je,jt.current,Ht]);const Qt=Ct=>{Ct.target.nodeName==="IMG"&&Ct.target.className.indexOf("draw-flowchart")>-1?(zt.current.style.zIndex=1,zt.current.style.display="flex",zt.current.style.width=Ct.target.clientWidth+"px",zt.current.style.height=Ct.target.clientHeight+"px",zt.current.style.top=Ct.target.offsetTop+"px",zt.current.style.left=Ct.target.offsetLeft+"px",Ct.target.id&&(Ae.current=Ct.target.id)):zt.current.style.display="none"},nn=()=>{zt.current.style.display="none"};return(0,z.useEffect)(()=>{var Ct;const qt=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(Ct=jt.current)==null||Ct.addEventListener("copy",qt),()=>{var Wt;(Wt=jt.current)==null||Wt.removeEventListener("copy",qt)}},[jt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:nn},ut&&z.createElement("div",{ref:jt,className:`${ze.mdBody} `},je),!ut&&!pe(je)&&z.createElement("div",{ref:jt,style:ot({},Je),onMouseOver:Qt,className:`${ue||""} ${Zt?"disabled-fill":""} markdown-body ${ze.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:je}}),!ut&&pe(je)&&z.createElement(Ne,{html:je}),z.createElement("div",{ref:zt,className:`${ze.button} ${He?"":ze.previewFlowChart}`},z.createElement(Ie.Z,null,z.createElement(he.ZP,{onClick:()=>{He?me(Ae.current):(ct(Ae.current),te("flowChart"))}},He?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Ce.Z,{close:!0,data:$t,type:$t!=null&&$t.length?ae:"",style:ot({},Ot),onClose:()=>ct("")}))}},28267:function(ln,Vt,ie){"use strict";ie.d(Vt,{h:function(){return ht}});var z=ie(59301),it=ie(82326),ve=ie(28284),Qe=ie(7939),Se=ie(89780),Ee=ie.n(Se),Le=ie(88319),Xe=ie(94896),Ie=Object.defineProperty,he=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Ne=(lt,ot,Ze)=>ot in lt?Ie(lt,ot,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):lt[ot]=Ze,Ge=(lt,ot)=>{for(var Ze in ot||(ot={}))St.call(ot,Ze)&&Ne(lt,Ze,ot[Ze]);if(Ce)for(var Ze of Ce(ot))Ke.call(ot,Ze)&&Ne(lt,Ze,ot[Ze]);return lt},ze=(lt,ot)=>he(lt,Ye(ot));const ft=it.default.Option,wt={labelCol:{span:4},wrapperCol:{span:20}},At={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"]};Vt.Z=({callback:lt,onCancel:ot})=>{const[Ze,It]=(0,z.useState)("python");function et(vt){It(At[vt][1])}function qe(vt){lt(vt)}return z.createElement(ve.default,ze(Ge({},wt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:qe,style:{width:500}}),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(it.default,{getPopupContainer:vt=>vt.parentNode,onChange:et},Object.keys(At).map(vt=>z.createElement(ft,{key:vt,value:vt},At[vt][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(ht,{mode:Ze})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Qe.ZP,{type:"ghost",onClick:ot},"\u53D6\u6D88")))};function ht({value:lt,onChange:ot,mode:Ze,options:It={}}){const et=(0,z.useRef)(),[qe,vt]=(0,z.useState)();return(0,z.useEffect)(()=>{if(qe){let Me=function(Ue){const He=Ue.getValue();ot&&ot(He)};return qe.on("change",Me),()=>{qe.off("change",Me)}}},[qe,ot]),(0,z.useEffect)(()=>{qe&&qe.setOption("mode",Ze)},[qe,Ze]),(0,z.useEffect)(()=>{qe&&(lt!==qe.getValue()||lt==="")&&setTimeout(()=>{qe.setValue(lt||"")},300)},[qe,lt]),(0,z.useEffect)(()=>{if(et.current&&!qe){const Me=Ee().fromTextArea(et.current,Ge({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},It));vt(Me)}},[et.current,qe]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:et}))}},39116:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Dt}});var z=ie(59301),it=ie(44283),ve=ie(89780),Qe=ie.n(ve),Se=ie(76374),Ee=ie(88319),Le=ie(6313),Xe=ie(25717),Ie=ie(99498),he=ie(25419),Ye=ie(67549),Ce=ie(35883),St=({value:pt="",className:en,showTextOnly:Yt,showLines:Jt,style:vn={}})=>{const wn=(0,z.useMemo)(()=>"",[pt]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:wn}}))},Ke=Object.defineProperty,Ne=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,At=(pt,en,Yt)=>en in pt?Ke(pt,en,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):pt[en]=Yt,ht=(pt,en)=>{for(var Yt in en||(en={}))ft.call(en,Yt)&&At(pt,Yt,en[Yt]);if(ze)for(var Yt of ze(en))wt.call(en,Yt)&&At(pt,Yt,en[Yt]);return pt},lt=(pt,en)=>Ne(pt,Ge(en));let ot=[{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 Ze({onActionCallback:pt,title:en,icon:Yt,actionName:Jt,className:vn="",children:wn}){function Sn(){pt(Jt)}return z.createElement("a",{title:en,className:vn,onClick:Sn},z.createElement("i",{className:`${Yt}`}),wn)}var It=({watch:pt,showNullButton:en,showNullProgramButton:Yt,onActionCallback:Jt,fullScreen:vn,insertTemp:wn,hidetoolBar:Sn,extraUse:On})=>{const Mn=[...ot,{title:`${pt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&Mn.map((jn,An)=>z.createElement("li",{key:An},jn.actionName?z.createElement(Ze,lt(ht({},jn),{onActionCallback:Jt})):z.createElement("span",{className:"v-line"}))),en?z.createElement("li",null,z.createElement(Ze,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Jt},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Yt?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Jt},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(Ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Jt},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,wn&&z.createElement("li",null,z.createElement(Ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${wn}`,onActionCallback:Jt},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),On&&z.createElement("li",null,On),z.createElement("li",{className:"btn-full-screen"},z.createElement(Ze,{icon:`${vn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:vn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Jt})))},et=ie(88487),qe=ie(28284),vt=ie(37568),Me=ie(7939),Ue=Object.defineProperty,He=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ot=(pt,en,Yt)=>en in pt?Ue(pt,en,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):pt[en]=Yt,ye=(pt,en)=>{for(var Yt in en||(en={}))Oe.call(en,Yt)&&Ot(pt,Yt,en[Yt]);if(ut)for(var Yt of ut(en))Je.call(en,Yt)&&Ot(pt,Yt,en[Yt]);return pt},fe=(pt,en)=>He(pt,ue(en));const dt={labelCol:{span:4},wrapperCol:{span:20}};var Zt=({callback:pt,onCancel:en})=>{function Yt(Jt){pt(Jt)}return z.createElement(qe.default,fe(ye({},dt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Yt,style:{width:500}}),z.createElement(qe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(vt.default,null)),z.createElement(qe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(vt.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},bt=ie(28267),me=ie(53332),Te=ie(62957),_e=ie(77019),Nt=ie(40254),xt=ie(59301),zt=({callback:pt,onCancel:en})=>{const Yt=document.createElement("canvas"),Jt=Yt.getContext("2d");Yt.width=1e3,Yt.height=800,Jt.fillStyle="#ffffff",Jt.fillRect(0,0,Yt.width,Yt.height);const vn=Yt.toDataURL("image/png");return xt.createElement(Te.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},xt.createElement(_e.Z,{style:{height:"100vh"}},xt.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:vn,visible:!0,title:String(Date.now())},onOk:wn=>{pt({src:wn.url})},onClose:en})))},Ae=ie(36207),$t=ie(5269),ct=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:pt,editImgId:en,callback:Yt},Jt)=>{let vn=(0,z.useRef)(),wn=(0,z.useRef)(),Sn=(0,z.useRef)(),On=(0,z.useRef)(!1);const Mn=(0,z.useRef)(!1);console.log("ref:",Jt);const[jn,An]=(0,z.useState)(0),[kt,Ut]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{An(1)},[]),(0,z.useImperativeHandle)(Jt,()=>({setHeight:Ut})),te.createElement("div",{ref:Mn,className:"body-overflow-initial"},te.createElement(Ae.Z,{width:"100vw",height:kt,footer:null,closable:!0,placement:"bottom",open:!!jn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(xn=>{Yt({src:`/api/attachments/${xn}`,id:xn})})},title:te.createElement(_e.Z,{align:"middle"},te.createElement($t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement($t.Z,{onClick:()=>{Ut(kt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement($t.Z,{onClick:()=>{window.saveDrawData(xn=>{if(xn===null){ct.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}ct.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Yt({src:`/api/attachments/${xn}`,id:xn,disabledClose:!0})})}},te.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${en||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:wn})))}),se=ie(14185),ne=ie(47889),pe=ie(4875);const xe=ne.ZP.Group,st={margin:"0 8px"};var Pe=({callback:pt,onCancel:en})=>{function Yt(Jt){pt(Jt)}return z.createElement(qe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Yt},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:st},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:st},"\u884C\u6570"),z.createElement(qe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(pe.Z,null)),z.createElement("span",{style:st},"\u5217\u6570"),z.createElement(qe.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:st},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(qe.default.Item,{name:"align"},z.createElement(xe,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},je=ie(58755),rt=ie(84915),yt=ie.n(rt),Kt=(0,z.forwardRef)(({use3d:pt,width:en,height:Yt,callback:Jt,showSaveButton:vn},wn)=>{const Sn=(0,z.useRef)(),On=(0,z.useRef)(),[Mn,jn]=(0,z.useState)(!1),An=(0,z.useRef)({id:Sn,appName:"graphing",width:en||1e3,height:Yt||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)(()=>{On.current=new(yt())(An.current,!0),window.onload=function(){On.current.inject("applet_container")}},[]);const kt=()=>{var Ut=window.ggbApplet.getPNGBase64(1,!0,72);return Jt&&Jt(Ut),Ut};return(0,z.useEffect)(()=>{An.current.appName=Mn?"3D":"graphing",On.current.inject("applet_container")},[Mn]),(0,z.useEffect)(()=>{jn(pt)},[pt]),(0,z.useImperativeHandle)(wn,()=>({getImgData:kt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),z.createElement(_e.Z,{align:"middle"},z.createElement($t.Z,{flex:1},z.createElement(je.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Mn,onChange:Ut=>jn(Ut)})),z.createElement($t.Z,null,z.createElement(Me.ZP,{size:"large",onClick:kt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),jt=ie(9057);const Ht="link",tn="upload-image",Qt="add-flowchart",nn="draw-image",Ct="add-flowchart",qt="code-block",Wt="add-table",De="------------",tt={default:De,left:`:${De}`,center:`:${De}:`,right:`${De}:`};var Tt=ie(79006),Rt=ie(76406);function ke(){}let $e=0;const at=1e4,Et="\u2581",Gt="@\u2581\u2581@",an="@\u2581@",In=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,kn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function rn(pt){return/^\d+$/.test(pt)?`${pt}px`:pt}const dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",_t={[dn+"-B"]:"bold",[dn+"-I"]:"italic"},Mt={[Ht]:"\u6DFB\u52A0\u94FE\u63A5",[qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[tn]:"\u6DFB\u52A0\u56FE\u7247",[nn]:"\u6DFB\u52A0\u753B\u56FE",[Qt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dt=({defaultValue:pt="",onChange:en,width:Yt="100%",height:Jt=400,miniToolbar:vn=!1,isFocus:wn=!1,watch:Sn,insertTemp:On,mode:Mn="markdown",id:jn="markdown-editor-id",showResizeBar:An=!1,noStorage:kt=!1,showNullButton:Ut=!1,showNullProgramButton:xn=!1,hidetoolBar:hn=!1,fullScreen:Be=!1,onBlur:Ve,onCMBeforeChange:be,onFullScreen:Re,className:we="",disablePaste:Fe=!1,disabled:mt=!1,disabledFill:on=!1,placeholder:un="",values:gn="",extraUse:Xt,onAddBlank:Bt})=>{const[Pt,fn]=(0,z.useState)(null),[Bn,Dn]=(0,z.useState)(pt),[Tn,Xn]=(0,z.useState)(Sn),[Qn,Jn]=(0,z.useState)(Be),[Zn,Fn]=(0,z.useState)(""),[Wn,Un]=(0,z.useState)(0),[ur,qn]=(0,z.useState)(Jt),[lr,ir]=(0,z.useState)(!1),[er,tr]=(0,z.useState)(0),[vr,mr]=(0,z.useState)(0),cr=(0,z.useRef)(),gr=(0,z.useRef)(),Cr=(0,z.useRef)(),or=(0,z.useRef)(),dr=(0,z.useRef)(),Gn=(0,z.useRef)(),Sr=(0,it.useDispatch)();(0,z.useEffect)(()=>{const mn=window.scrollY||window.pageYOffset;Dn(gn),Pt==null||Pt.setValue(gn),window.scrollTo(0,mn)},[gn]),(0,z.useEffect)(()=>{Re==null||Re(Qn)},[Qn]),(0,z.useEffect)(()=>{if(cr.current){let mn=function(Nn,Rn){var rr;if(Fe){Rn.preventDefault();return}const kr=Rn.clipboardData;if(kr){const br=kr.types.toString(),Or=kr.items;if(br==="Files"||kr.types.indexOf("Files")>-1){if(Rn.preventDefault(),Mn=="stex")return;try{let Pr=Or[1];((rr=Or[0])==null?void 0:rr.kind)==="file"&&(Pr=Or[0]);const Tr=Pr.getAsFile(),Hr=Tr.name.split(".").pop();(0,me.I)(Tr,Br=>{var Zr,ti,Pi;Br.id?((Zr=Tr==null?void 0:Tr.type)==null?void 0:Zr.indexOf("image"))>-1?yn.replaceSelection(`<img width="100%" src="/api/attachments/${Br.id}?type=${Br.content_type})" alt="" />`):((ti=Tr==null?void 0:Tr.type)==null?void 0:ti.indexOf("video"))>-1?yn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Br.id}"></video>`):((Pi=Tr==null?void 0:Tr.type)==null?void 0:Pi.indexOf("pdf"))>-1?yn.replaceSelection(`<a href="/api/attachments/${Br.id}?type=${Tr.type}&disposition=inline" target="_blank">${Tr.name}</a>`):kn.includes(Hr)?yn.replaceSelection(`<a href="/api/attachments/${Br.id}?type=office&disposition=inline" target="_blank">${Tr.name}</a>`):yn.replaceSelection(`[${Tr.name}](/api/attachments/${Br.id}?type=${Br.content_type})`):(Br==null?void 0:Br.status)===401&&(document.location.href="/user/login")})}catch(Pr){ct.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yn=Qe().fromTextArea(cr.current,{mode:Mn,lineNumbers:!vn,lineWrapping:!0,value:pt,autoCloseTags:!0,autoCloseBrackets:!0});return yn.on("keyup",function(Nn,Rn){Rn.keyCode===8&&(Nn.getValue()==""?yn.setOption("placeholder",un):yn.setOption("placeholder",null))}),yn.on("keydown",function(Nn,Rn){if(Rn.keyCode===8){var rr=Wr(Nn);rr&&Rn.preventDefault()}}),wn&&yn.focus(),yn.on("paste",mn),mt&&yn.on("beforeChange",function(Nn,Rn){(Rn.origin==="paste"||Rn.origin==="+input")&&Rn.cancel()}),fn(yn),()=>{yn.off("paste",mn)}}},[]);const Rr=(0,z.useCallback)(()=>{if(gr.current)try{}catch(mn){console.log(mn,"---- to set md editor body height")}},[ur,gr,Qn]);(0,z.useEffect)(()=>{function mn(){let yn=new Se.Z(Nn=>{for(let Rn of Nn)(Rn.target.offsetHeight>0||Rn.target.offsetWidth>0)&&(Rr(),Pt.setSize("100%","100%"),Pt.refresh())});return yn.observe(cr.current.parentElement),yn}if(Pt){const yn=mn();return()=>{var Nn,Rn;(Nn=cr.current)!=null&&Nn.parentElement&&yn.unobserve((Rn=cr.current)==null?void 0:Rn.parentElement)}}},[Pt,Rr]),(0,z.useEffect)(()=>{if(Pt){let mn=[];for(const[yn,Nn]of Object.entries(_t)){let Rn={[yn]:()=>{Er(Nn)}};mn.push(Rn),Pt.addKeyMap(Rn)}return()=>{for(let yn of mn)Pt.removeKeyMap(yn)}}},[Pt]),(0,z.useEffect)(()=>{Be!==Qn&&Jn(Be)},[Be]),(0,Tt.Z)(()=>{if(!kt&&Wn>0){let mn=new Date().getTime(),yn=window.sessionStorage.getItem(jn);mn>=Wn+at&&(!yn||yn!==Bn)&&(window.sessionStorage.setItem(jn,Bn),ir(!0))}},at),(0,z.useEffect)(()=>{Xn(Sn)},[Pt,Sn]),(0,z.useEffect)(()=>{Pt&&wn&&Pt.focus()},[Pt,wn]),(0,z.useEffect)(()=>{if(Tn&&Pt){let mn=function(Nn){let Rn=Nn.target;if(or.current){let rr=Rn.scrollTop/Rn.scrollHeight;or.current.scrollTop=or.current.scrollHeight*rr}};const yn=Pt.getScrollerElement();return yn.addEventListener("scroll",mn),()=>{yn.removeEventListener("scroll",mn)}}},[Pt,Tn]),(0,z.useEffect)(()=>{if(Pt&&be){let mn=function(yn,Nn){be(yn,Nn)};return Pt.on("beforeChange",mn),()=>{Pt.off("beforeChange",mn)}}},[Pt,be]),(0,z.useEffect)(()=>{if(Pt&&Ve){let mn=function(){Ve(Pt.getValue())};return Pt.on("blur",mn),()=>{Pt.off("blur",mn)}}},[Pt,Ve]);function Wr(mn,yn){var Nn=mn.getDoc(),Rn=Nn.getCursor(),rr=Nn.getLine(Rn.line),kr=rr.charAt(Rn.ch-1),br=rr.lastIndexOf("@\u2581@",Rn.ch),Or=rr.lastIndexOf("@\u2581\u2581@",Rn.ch),Pr=br>Or?br:Or,Tr=br>Or?3:4;if(Gt.indexOf(kr)===-1)return null;if(console.log("change1:",yn,mn,rr,Rn,Pr,br,Or,kr),Pr>=0&&Rn.ch-Pr<5){var Hr=Pr+Tr;return Nn.replaceRange("",{line:Rn.line,ch:Pr},{line:Rn.line,ch:Hr}),{line:Rn.line,ch:Hr}}return null}(0,z.useEffect)(()=>{if(Pt){let mn=function(yn,Nn){const Rn=yn.getValue();Dn(Rn),Un(new Date().getTime()),yn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(xn?en(Rn,En(Rn)):en(Rn))};return Pt.on("change",mn),()=>{Pt.off("change",mn)}}},[Pt,en]),(0,z.useEffect)(()=>{if(Pt)if(pt==null)Pt.setValue(""),Dn("");else{const mn=window.scrollY||window.pageYOffset;pt!==Pt.getValue()&&(Pt.setValue(pt),Dn(pt),Pt.setCursor(mt?1:Pt.lineCount(),0),window.scrollTo(0,mn))}},[Pt,pt]);const Er=(0,z.useCallback)(mn=>{const yn=Pt.getCursor(),Nn=Pt.getSelection();let Rn=Nn.split(`
|
|
|
`);switch(mn){case"bold":return Pt.replaceSelection("**"+Nn+"**"),Nn===""&&Pt.setCursor(yn.line,yn.ch+2),Pt.focus();case"italic":return Pt.replaceSelection("*"+Nn+"*"),Nn===""&&Pt.setCursor(yn.line,yn.ch+1),Pt.focus();case"code":return Pt.replaceSelection("`"+Nn+"`"),Nn===""&&Pt.setCursor(yn.line,yn.ch+1),Pt.focus();case"inline-latex":return(0,Rt.Ye)(Sr)?void 0:(Fn("inline-latex"),Pt.focus());case"latex":return Pt.replaceSelection("```latex\n"+Nn+"\n```"),Pt.setCursor(yn.line+1,Nn.length+1),Pt.focus();case"line-break":return Pt.replaceSelection(`<br/>
|
|
|
`),Pt.focus();case"list-ul":return Nn===""?Pt.replaceSelection("- "+Nn):Pt.replaceSelection(Rn.map(rr=>rr===""?"":`- ${rr}`).join(`
|
|
|
`)),Pt.focus();case"list-ol":return Nn===""?Pt.replaceSelection("1. "+Nn):Pt.replaceSelection(Rn.map((rr,kr)=>rr===""?"":`${kr+1}. ${rr}`).join(`
|
|
|
`)),Pt.focus();case"add-null-ch":Bt==null||Bt();return;case"add-signal":return Nn===""&&Pt.setCursor(yn.line,yn.ch),Pt.replaceSelection(an),Pt.focus();case"add-multiple":return Nn===""&&Pt.setCursor(yn.line,yn.ch),Pt.replaceSelection(Gt),Pt.focus();case"inster-template-1":return Nn===""&&Pt.setCursor(yn.line,yn.ch),Pt.replaceSelection(In),Pt.focus();case"eraser":return Pt.setValue(""),Pt.focus();case"trigger-watch":return Xn(!Tn),Pt.focus();case"trigger-full-screen":return Jn(!Qn),Pt.focus();case Ht:Fn(Ht);return;case qt:Fn(qt);return;case tn:Fn(tn);return;case nn:Fn(nn);return;case"maths-latex":if((0,Rt.Ye)(Sr))return;Fn("maths-latex");return;case Qt:dr.current="",sessionStorage.removeItem("file_id"),Fn(Qt);return;case Wt:Fn(Wt);return;default:throw new Error}},[Pt,Tn,Qn]),Ar=(0,z.useCallback)((mn,yn)=>{var Nn,Rn,rr,kr,br,Or;mn!=null&&mn.disabledClose||Fn("");const{src:Pr,alt:Tr,id:Hr}=mn||{};switch(Zn){case Ht:const{title:Fi,link:xi}=mn;return Pt.replaceSelection(`[${Fi}](${xi})`),Pt.focus();case qt:const{language:mi,content:Xi}=mn;return Pt.replaceSelection(["```"+mi,Xi,"```"].join(`
|
|
|
`)),Pt.focus();case"maths-latex":for(var Br=atob(mn),Zr=new Uint8Array(Br.length),ti=0;ti<Br.length;ti++)Zr[ti]=Br.charCodeAt(ti);var Pi=new Blob([Zr],{type:"image/png"});return(0,me.I)(Pi,gi=>{gi.id?Pt.replaceSelection(``):(gi==null?void 0:gi.status)===401&&(document.location.href="/user/login")}),Pt.focus();case"inline-latex":return(0,Rt.Ye)(Sr)?void 0:(Pt.replaceSelection("`$$"+mn+"$$`"),Pt.focus());case Ct:return Hr?(Pt.getValue().indexOf(Pr)===-1?Pt.replaceSelection(`<center><img id="${Hr}" width="80%" src="${Pr}" class="draw-flowchart" alt="${Tr||""}" /></center>`):document.getElementById(Hr).src=se.Z.API_SERVER+Pr+"?t="+Date.now(),Pt.focus()):void 0;case tn:case nn:const Lr=yn,to=(rr=(Rn=(Nn=Lr==null?void 0:Lr.name)==null?void 0:Nn.split("."))==null?void 0:Rn.pop)==null?void 0:rr.call(Rn);return((kr=Lr==null?void 0:Lr.type)==null?void 0:kr.indexOf("image"))>-1||!(Lr!=null&&Lr.type)?Lr!=null&&Lr.align||Lr!=null&&Lr.width?Pt.replaceSelection(`<p style="text-align:${Lr.align||"initial"}"><img width="${Lr.width?Lr.width+"%":"initial"}" src="${Pr}" alt="${Tr||""}" /></p>`):Pt.replaceSelection(`<img width="100%" src="${Pr}" alt="${Tr||""}" />`):((br=Lr==null?void 0:Lr.type)==null?void 0:br.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="${Pr}"></video>`):((Or=Lr==null?void 0:Lr.type)==null?void 0:Or.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="${Pr}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):kn.includes(to)?Pt.replaceSelection(`<a href="${Pr}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):Pt.replaceSelection(`[${Lr.name}](${Pr})`),Pt.focus();case Wt:const{row:ni,col:Li,align:ao}=mn;let Yi=`
|
|
|
`;for(let gi=0;gi<ni;gi++){let Ai=[],Vr=[];for(let zi=0;zi<Li;zi++)gi===1&&Vr.push(tt[ao]),Ai.push(" ");gi===1&&(Yi+=`| ${Vr.join(" | ")} |
|
|
|
`),Yi+=`| ${Ai.join(Li===1?"":" | ")} |
|
|
|
`}return Pt.replaceSelection(Yi+`
|
|
|
`),Pt.focus();default:throw new Error}},[Pt,Zn]),Ir=(0,z.useMemo)(()=>{switch(Zn){case Ht:return z.createElement(Zt,{callback:Ar,onCancel:Dr});case qt:return z.createElement(bt.Z,{callback:Ar,onCancel:Dr});case tn:return z.createElement(me.Z,{callback:Ar,onCancel:Dr});case Qt:return z.createElement(oe,{editImgId:dr.current,callback:Ar,onCancel:Dr});case Wt:return z.createElement(Pe,{callback:Ar,onCancel:Dr});case"maths-latex":return z.createElement(Kt,{showSaveButton:!0,callback:Ar});case"inline-latex":return z.createElement(jt.Z,{showSaveButton:!0,callback:Ar});default:return null}},[Zn]);function Dr(){Fn("")}(0,z.useEffect)(()=>{if(Cr.current){let mn=function(br){rr=!0,kr=br.pageY},yn=function(){rr=!1},Nn=function(br){if(rr){let Or=br.pageY-kr;Or<0&&(Or=0),Or>300&&(Or=300);let Pr=Jt+Or+"px";qn(Pr)}},Rn=Cr.current,rr=!1,kr=0;return Rn.addEventListener("mousedown",mn),document.addEventListener("mousemove",Nn),document.addEventListener("mouseup",yn),()=>{Rn.removeEventListener("mousedown",mn),document.removeEventListener("mousemove",Nn),document.removeEventListener("mouseup",yn)}}},[Pt,Cr]),(0,z.useEffect)(()=>{qn(Jt)},[Jt]);const zr=rn(Yt),fr=rn(ur),Yn={width:zr,height:fr},pn=(0,z.useMemo)(()=>{if(Wn){let mn=new Date(Wn),yn=mn.getHours(),Nn=mn.getMinutes(),Rn=mn.getSeconds();return yn=yn<10?"0"+yn:yn,Nn=Nn<10?"0"+Nn:Nn,Rn=Rn<10?"0"+Rn:Rn,`${yn}:${Nn}:${Rn}`}return 0},[Wn]),En=mn=>{const yn=[];if(xn){let Nn=-1;mn=mn.replace(/(@▁▁@|@▁@)/g,function(Rn,rr,kr){yn.push({multiLine:Rn!==an})})}return yn};function Cn(){window.sessionStorage.removeItem(jn),ir(!1),Un(0)}function sn(){ir(!1),Un(0),Pt.setValue(window.sessionStorage.getItem(jn))}(0,z.useEffect)(()=>{Mt[Zn]&&Zn!==nn&&Zn!==Qt&&setTimeout(()=>{const mn=document.getElementsByClassName("markdown-popup-form")[0],yn=window.innerWidth/2-mn.offsetWidth/2,Nn=window.innerHeight/2-mn.offsetHeight/2;tr(yn),mr(Nn)},0)},[Zn]);const zn=mn=>{mn.preventDefault();const yn=mn.clientX-er,Nn=mn.clientY-vr;document.body.onmousemove=Rn=>{let rr=Rn.clientX-yn,kr=Rn.clientY-Nn;const br=document.getElementsByClassName("markdown-popup-form")[0],Or=window.innerWidth-br.offsetWidth,Pr=window.innerHeight-br.offsetHeight;rr=Math.max(0,Math.min(rr,Or)),kr=Math.max(0,Math.min(kr,Pr)),_n(Rn.clientX,Rn.clientY,yn,Nn)&&(tr(rr),mr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},_n=(mn,yn,Nn,Rn)=>{const rr=document.body.clientHeight,kr=document.body.clientWidth;return mn<20&&Nn>mn||mn>kr-20&&Nn<mn||yn<20&&Rn>yn||yn>rr-20&&Rn<yn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:gr},z.createElement("div",{className:`markdown-editor-container ${we} ${Tn?"on-preview":""} ${vn?"mini":""} ${Qn?"full-screen":""}`,style:Yn},z.createElement(It,{insertTemp:On,watch:Tn,fullScreen:Qn,showNullButton:Ut,showNullProgramButton:xn,onActionCallback:Er,hidetoolBar:hn,extraUse:Xt}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:cr,placeholder:un})),Tn?z.createElement("div",{ref:or,className:"preview-container"},Mn==="stex"&&z.createElement(St,{value:Bn}),Mn!=="stex"&&z.createElement(Ce.Z,{edit:!0,disabledFill:on,showProgramFill:xn,value:Bn,openEditor:mn=>{var yn;dr.current=mn,(yn=Gn.current)==null||yn.setHeight("100vh"),setTimeout(()=>{Fn("add-flowchart")},150)}})):null))),An?z.createElement("a",{ref:Cr,className:"editor-resize"}):null,Zn===nn&&z.createElement(zt,{callback:Ar,onCancel:Dr}),Zn===Qt&&z.createElement(oe,{ref:Gn,editImgId:dr.current,callback:Ar,onCancel:Dr}),z.createElement(et.Z,null,Mt[Zn]&&Zn!==nn&&Zn!==Qt?z.createElement(Te.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:vr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:zn},Mt[Zn]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:Zn===Qt?"1200px":null,height:Zn===Qt?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return ot},I:function(){return It}});var z=ie(28284),it=ie(6767),ve=ie(37568),Qe=ie(44104),Se=ie(4875),Ee=ie(47889),Le=ie(7939),Xe=ie(23216),Ie=ie(59301),he=ie(59301),Ye=Object.defineProperty,Ce=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ze=(et,qe,vt)=>qe in et?Ye(et,qe,{enumerable:!0,configurable:!0,writable:!0,value:vt}):et[qe]=vt,ft=(et,qe)=>{for(var vt in qe||(qe={}))Ne.call(qe,vt)&&ze(et,vt,qe[vt]);if(Ke)for(var vt of Ke(qe))Ge.call(qe,vt)&&ze(et,vt,qe[vt]);return et},wt=(et,qe)=>Ce(et,St(qe));const{useForm:At}=z.default,ht={width:280,marginRight:10},lt={labelCol:{span:5},wrapperCol:{span:19}};var ot=({callback:et,onCancel:qe})=>{const[vt]=At();let Me=(0,Ie.useRef)();function Ue(ut){Me.current.width=vt.getFieldValue("width"),Me.current.align=vt.getFieldValue("align"),et(ut,Me.current)}function He(ut,Oe){if(ut.status===-1){it.ZP.error(ut.message);return}vt.setFieldsValue({src:`/api/attachments/${ut.id}`,type:Oe.type})}function ue(ut){let Oe=ut.target.files[0];Me.current=Oe,It(Oe,He)}return he.createElement(z.default,wt(ft({form:vt},lt),{className:"upload-image-panel",onFinish:Ue,style:{width:470,overflow:"hidden"}}),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(ve.default,{style:ht})),he.createElement(Ze,{onFileChange:ue}))),he.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ve.default,{style:{width:264}})),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(Qe.Z,null,he.createElement(z.default.Item,{name:"width",style:{margin:0}},he.createElement(Se.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Ee.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),he.createElement("aside",null,he.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Le.ZP,{type:"default",onClick:qe},"\u53D6\u6D88"))))};function Ze({onFileChange:et}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:et}))}function It(et,qe){if(!et)throw new String("\u6CA1\u6709\u6587\u4EF6");let vt=new FormData;vt.append("editormd-image-file",et),vt.append("file_param_name","editormd-image-file"),vt.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(Ue){qe(JSON.parse(Ue.target.responseText),et)},!1),Me.addEventListener("error",function(Ue){console.error(Ue)},!1),Me.open("POST",`${Xe.KI}/api/attachments.json`),Me.send(vt)}},88487:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return ve}});var z=ie(59301),it=ie(4676);class ve extends z.Component{constructor(Se){super(Se);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,it.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(ln,Vt,ie){"use strict";ie.d(Vt,{SV:function(){return zt},ZP:function(){return xt}});var z=ie(59301),it=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"]},Qe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Se={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(`
|
|
|
`)}]},Ee={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(`
|
|
|
`)}]},Le={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 Xe=ie(53184),Ie=ie.n(Xe),he=(Ae,$t,ct)=>new Promise((ae,te)=>{var ee=ne=>{try{se(ct.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(ct.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((ct=ct.apply(Ae,$t)).next())});const Ye={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"]}},Ce=(Ae,$t,ct,ae)=>{const te=$t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:ct.lineNumber,endColumn:ct.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Ae.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},St=(Ae,$t,ct,ae)=>{Ae.languages.registerCompletionItemProvider($t,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Ce(Ae,te,ee,se),...ct.map(xe=>({label:xe,kind:Ae.languages.CompletionItemKind.Keyword,documentation:xe,insertText:xe,insertTextRules:Ae.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(xe=>({label:xe.label,kind:Ae.languages.CompletionItemKind.Snippet,documentation:xe.content,insertText:ne.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:Ae.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Ke=Ae=>{Ye.languages.forEach($t=>{Ae.languages.registerDocumentFormattingEditProvider($t,{provideDocumentFormattingEdits(ct){return he(this,null,function*(){const ae=Ie()(ct.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:ct.getFullModelRange(),text:ae}]})}})}),St(Ae,"java",Qe.keywords,Qe.quickKey),St(Ae,"cpp",Se.keywords,Se.quickKey),St(Ae,"c",ve.keywords,[]),St(Ae,"python",Ee.keywords,Ee.quickKey),St(Ae,"scala",Le.keywords,Le.quickKey)};const Ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ge=Object.defineProperty,ze=(Ae,$t,ct)=>$t in Ae?Ge(Ae,$t,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ae[$t]=ct,ft=(Ae,$t,ct)=>ze(Ae,typeof $t!="symbol"?$t+"":$t,ct);const wt=class zs{constructor($t,ct,ae){this.placeholder=$t,this.editor=ct,this.monaco=ae,ct.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)}};ft(wt,"ID","editor.widget.placeholderHint");var ht=wt,lt=ie(96236),ot=ie(6767),Ze=ie(25399),It=ie(78267),et=ie(33156),qe=ie(56102),vt=Object.defineProperty,Me=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Oe=(Ae,$t,ct)=>$t in Ae?vt(Ae,$t,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ae[$t]=ct,Je=(Ae,$t)=>{for(var ct in $t||($t={}))ue.call($t,ct)&&Oe(Ae,ct,$t[ct]);if(He)for(var ct of He($t))ut.call($t,ct)&&Oe(Ae,ct,$t[ct]);return Ae},Ot=(Ae,$t)=>Me(Ae,Ue($t)),ye=(Ae,$t)=>{var ct={};for(var ae in Ae)ue.call(Ae,ae)&&$t.indexOf(ae)<0&&(ct[ae]=Ae[ae]);if(Ae!=null&&He)for(var ae of He(Ae))$t.indexOf(ae)<0&&ut.call(Ae,ae)&&(ct[ae]=Ae[ae]);return ct},fe=(Ae,$t,ct)=>new Promise((ae,te)=>{var ee=ne=>{try{se(ct.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(ct.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((ct=ct.apply(Ae,$t)).next())});function dt(Ae){return/^\d+$/.test(Ae)?`${Ae}px`:Ae}function Zt(){}let bt=!1;const me={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Te(Ae=[]){let $t=Ae;if(Array.isArray(Ae)){for(let ct=0;ct<Ae.length;ct++){let ae=me[Ae[ct]];if(ae)return ae}return $t[0]}return me[$t]||$t}let _e=null;const Nt=()=>fe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ae){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ae)}});var xt=Ae=>{var $t=Ae,{width:ct="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:xe,isCopy:st=!1,onSave:Pe,autoHeight:je=!1,forbidCopy:rt=!1,forbidCopyTips:yt,onChange:gt=Zt,editorDidMount:Kt=Zt,onFocus:jt=Zt,onBreakPoint:Ht=Zt,breakPointValue:tn=[],filename:Qt="educoder.txt",errorLine:nn,errorContent:Ct="",highlightLine:qt,openBreakPoint:Wt=!1,placeholder:De="",showMiniMap:tt=!0}=$t,Tt=ye($t,["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 Rt=(0,z.useRef)(),ke=(0,z.useRef)({}),$e=(0,z.useRef)(),at=(0,z.useRef)(),Et=(0,z.useRef)([]),Gt=(0,z.useRef)(!1),an=(0,z.useRef)(),In=(0,z.useRef)(),kn=(0,z.useRef)(!1),[rn,bn]=(0,z.useState)(!1);function dn(){let kt;return Rt.current&&(kt=new it.Z(Ut=>{for(let xn of Ut)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&ke.current.instance.layout()}),kt.observe(Rt.current)),kt}function _t(){ot.ZP.warning({content:decodeURIComponent(yt||Ne),key:"monaco-editor-tip"})}const Mt=()=>{let kt=ke.current.instance;if(te!=null&&kt&&rn){const Ut=kt.getModel();Ut&&te!==Ut.getValue()&&(bt=!0,Ut.setValue(te),kt.layout(),bt=!1)}};(0,z.useEffect)(()=>{const kt=et.Z.subscribe("formatDocument",Ut=>{var xn;let hn=ke.current.instance;(xn=hn==null?void 0:hn.getAction)==null||xn.call(hn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Ut=>{gt(Ut)},kt},[]),(0,z.useEffect)(()=>{var kt;let Ut=ke.current.instance;at.current&&clearTimeout(at.current),at.current=setTimeout(()=>{Mt()},500),te&&(te!=null&&te.length)&&((kt=Ut==null?void 0:Ut.updateOptions)==null||kt.call(Ut,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,rn,ke.current]),(0,z.useEffect)(()=>{if(nn&&ke.current&&ke.current.instance){let Ut=ke.current.instance;Ut.changeViewZones(function(xn){var hn=document.createElement("div");hn.style.padding="10px 20px",hn.style.width="calc(100% - 20px)",hn.className="my-error-line-wrp",hn.innerHTML=Ct,xn.addZone({afterLineNumber:nn||11,heightInLines:3,domNode:hn})});var kt={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}};Ut.addOverlayWidget(kt),Ut.revealPositionInCenter({lineNumber:20,column:1})}},[nn,ke.current,rn]);const Dt=(kt="",Ut)=>{if(!kt||kt.trim()==="")return!0;const hn=ke.current.instance.getModel().getLineTokens(Ut);let Be=!1;for(let Ve=0;Ve<2;Ve++)hn.getStandardTokenType(Ve)===1&&(Be=!0);return Be};(0,z.useEffect)(()=>{var kt;const Ut=(kt=ke.current)==null?void 0:kt.instance;if(Ut&&rn&&rt){const xn=Ut.onDidBlurEditorWidget(()=>{kn.current=!1}),hn=Ut.onDidFocusEditorText(()=>{kn.current=!0});return()=>{xn.dispose(),hn.dispose()}}},[ke.current,rn,rt]),(0,z.useEffect)(()=>{var kt;if((kt=ke.current)!=null&&kt.instance&&rn&&Wt){let Ut=ke.current.instance,xn=Ut.getModel();if(!xn)return;(()=>{var Xt;let Bt=[],Pt=[];const fn=xn.getAllDecorations();for(let Dn of fn)Dn.options.className==="highlighted-line"&&(Bt.push((Xt=Dn==null?void 0:Dn.range)==null?void 0:Xt.startLineNumber),Pt.push(Dn==null?void 0:Dn.id));if(qt===Bt[0])return;xn.deltaDecorations(Pt,[]);const Bn=xn.getLineCount();qt&&qt<=Bn&&(Ut.deltaDecorations([],[{range:new _e.Range(qt,1,qt,xn.getLineMaxColumn(qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ut.revealLineInCenter(qt))})();const Be=(Xt=!1)=>{var Bt;let Pt=[],fn=[];const Bn=xn.getAllDecorations();for(let Dn of Bn)Dn.options.linesDecorationsClassName==="breakpoints-select"&&(Pt.push((Bt=Dn==null?void 0:Dn.range)==null?void 0:Bt.startLineNumber),fn.push(Dn==null?void 0:Dn.id));if(Xt)return{lines:Pt,ids:fn};Ht(Pt)},Ve=Xt=>fe(void 0,null,function*(){let Bt={range:new _e.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xn.deltaDecorations([],[Bt]),Be()}),be=Xt=>fe(void 0,null,function*(){let Bt=[];const Pt=Ut.getLineDecorations(Xt);for(let fn of Pt)fn.options.linesDecorationsClassName==="breakpoints-select"&&Bt.push(fn.id);yield xn.deltaDecorations(Bt,[]),Be()}),Re=Xt=>{let Bt=Ut.getLineDecorations(Xt);for(let Pt of Bt)if(Pt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,It.isEqual)(tn,Be(!0).lines)){xn.deltaDecorations(Be(!0).ids,[]);const Xt=tn.map(Bt=>({range:new _e.Range(Bt,1,Bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xn.deltaDecorations([],Xt)}const we=Ut.onDidChangeModelContent(Xt=>{let Bt=Ut.getPosition();if(Bt){let Pt=Bt.lineNumber;clearTimeout(In.current),In.current=setTimeout(()=>{Dt(xn.getLineContent(Pt),Pt)?be(Pt):Re(Pt)?(be(Pt),Ve(Pt)):Be()},100)}}),Fe=Ut.onMouseDown(Xt=>{var Bt,Pt,fn;if(Xt.target.detail&&((fn=(Pt=(Bt=Xt.target)==null?void 0:Bt.element)==null?void 0:Pt.className)!=null&&fn.includes("line-numbers"))){let Bn=Xt.target.position.lineNumber;if(Dt(xn.getLineContent(Bn),Bn))return;Re(Bn)?be(Bn):Ve(Bn)}}),mt=Xt=>{let Bt={range:new _e.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Et.current=Ut.deltaDecorations(Et.current,[Bt])},on=()=>{Et.current=Ut.deltaDecorations(Et.current,[])},un=Ut.onMouseMove(Xt=>{var Bt,Pt,fn;if(on(),Xt.target.detail&&((fn=(Pt=(Bt=Xt.target)==null?void 0:Bt.element)==null?void 0:Pt.className)!=null&&fn.includes("line-numbers"))){let Bn=Xt.target.position.lineNumber;if(Dt(xn.getLineContent(Bn),Bn))return;mt(Bn)}}),gn=Ut.onMouseLeave(()=>{on()});return()=>{we.dispose(),Fe.dispose(),un.dispose(),gn.dispose()}}},[ke.current,rn,tn,qt,Wt,ee]),(0,z.useEffect)(()=>{var kt;(kt=ke.current)!=null&&kt.instance&&Wt&&ke.current.instance.setPosition({lineNumber:0,column:0})},[qt]);function pt(){let kt=ke.current.instance;if(kt){const Ut=kt.getSelection(),xn=ke.current.pastePos||{},hn=new _e.Range(xn.startLineNumber||Ut.endLineNumber,xn.startColumn||Ut.endColumn,xn.endLineNumber||Ut.endLineNumber,xn.endColumn||Ut.endColumn);setTimeout(()=>{kt.executeEdits("",[{range:hn,text:""}])},300)}}function en(kt){(window.navigator.platform.match("Mac")?kt.metaKey:kt.ctrlKey)&&kt.keyCode==83&&(kt.preventDefault(),Pe())}const Yt=()=>{if(je&&ke.current.instance){const kt=ke.current.instance.getContentHeight();jn(kt<ae?ae:kt)}else jn(ae)};function Jt(kt){var Ut=document.createEvent("MouseEvents");Ut.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kt.dispatchEvent(Ut)}const vn=kt=>{if(!kn.current)return;const{keyCode:Ut,ctrlKey:xn,metaKey:hn,target:Be,type:Ve}=kt;return(Ve==="paste"||(Ut===67||Ut===86)&&(hn||xn))&&Be.nodeName==="TEXTAREA"&&(_t(),kt.preventDefault()),!1};function wn(kt,Ut){var xn=window.URL||window.webkitURL||window,hn=new Blob([Ut]),Be=document.createElementNS("http://www.w3.org/1999/xhtml","a");Be.href=xn.createObjectURL(hn),Be.download=kt,Jt(Be)}(0,z.useEffect)(()=>{Yt()},[Yt]),(0,z.useEffect)(()=>{Rt.current&&!rn&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(kt=>{try{_e=kt,ke.current.instance=_e.editor.create(Rt.current,{value:te,language:Te(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:tt||!1}},ne);const Ut=ke.current.instance;let Be=[...lt.BH._menuItems].find(we=>we[0]._debugName=="EditorContext")[1],Ve=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],be=(we,Fe)=>{var mt,on;let un=we._first;do Fe.includes((on=(mt=un.element)==null?void 0:mt.command)==null?void 0:on.id)&&we._remove(un);while(un=un.next)};if(Kt(Ut,_e),setTimeout(()=>{Yt(),ke.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{wn(Qt||"educoder.txt",Ut.getValue())}})},500),ke.current.subscription=Ut.onDidChangeModelContent(we=>{Gt.current?clearTimeout(an.current):(Yt(),gt(Ut.getValue(),we)),an.current=setTimeout(()=>{Gt.current=!1},500)}),window.Monaco||Ke(_e,Te(ee)),rt&&(be(Be,Ve),Rt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",vn),window.removeEventListener("paste",vn),window.addEventListener("keydown",vn),window.addEventListener("paste",vn)),window.Monaco=_e,xe&&Ut.onDidBlurEditorWidget(()=>{xe(Ut.getValue())}),jt&&Ut.onDidFocusEditorText(()=>{rt&&Nt(),jt(Ut.getValue())}),rt){Nt();try{Ut.onDidPaste(we=>{const Fe=Ut.getSelection(),mt=ke.current.pastePos||{},on=new _e.Range(mt.startLineNumber||Fe.endLineNumber,mt.startColumn||Fe.endColumn,mt.endLineNumber||Fe.endLineNumber,mt.endColumn||Fe.endColumn);Ut.executeEdits("",[{range:we.range,text:""}])})}catch(we){}}let Re=dn();return De&&typeof De=="string"&&new ht(De,Ut,_e),bn(!0),()=>{const we=ke.current.instance;we.dispose();const Fe=we.getModel();Fe&&Fe.dispose(),ke.current.subscription&&ke.current.subscription.dispose(),Re.unobserve(Rt.current)}}catch(Ut){}})},[]),(0,z.useEffect)(()=>{if(ke.current.instance&&rn)return document.addEventListener("keydown",en,!1),()=>{document.removeEventListener("keydown",en)}},[Pe,rn]),(0,z.useEffect)(()=>{let kt=ke.current.instance;if(kt&&rn){let Ut=Te(ee);_e.editor.setModelLanguage(kt.getModel(),Ut)}},[ee,rn]),(0,z.useEffect)(()=>{ke.current.instance&&rn&&_e.editor.setTheme(pe)},[pe,rn]),(0,z.useEffect)(()=>{let kt=ke.current.instance;$e.current=se,kt&&rn&&(kt.updateOptions(Je({},se)),setTimeout(()=>{kt.getModel().updateOptions(Je({},se))},200))},[JSON.stringify(se),rn]),(0,z.useEffect)(()=>{let kt=ke.current.instance;kt&&rn&&kt.layout()},[ct,ae,rn]);const[Sn,On]=(0,z.useState)(dt(ct)),[Mn,jn]=(0,z.useState)(dt(ae)),An=Ot(Je({},oe),{width:Sn,height:Mn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:Rt,style:An,onFocus:()=>{rt&&Nt()}},st&&z.createElement(qe.CopyToClipboard,{text:te,onCopy:()=>ot.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Ze.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function zt({width:Ae="100%",height:$t="100%",original:ct,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,ne]=(0,z.useState)(null);function pe(je){let rt;return oe.current&&(rt=new it.Z(yt=>{for(let gt of yt)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&je.layout()}),rt.observe(oe.current)),rt}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(je=>{_e=je;const rt=_e.editor.createDiffEditor(oe.current,Ot(Je({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ne(rt);let yt=pe(rt);return()=>{rt.dispose();const gt=rt.getModel();gt&>.dispose(),yt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:_e.editor.createModel(ct,te),modified:_e.editor.createModel(ae,te)})},[ct,ae,te,se]);const xe=dt(Ae),st=dt($t),Pe={width:xe,height:st};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Pe})}},54077:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Ye}});var z={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},it=ie(29787),ve=ie(25399),Qe=ie(89787),Se=ie(92310),Ee=ie.n(Se),Le=ie(76406),Xe=ie(90736),Ie=ie(59301),Ye=({className:Ce,dataSource:St=[],col:Ke=4,right:Ne,bottom:Ge=23,precision:ze=0,wrapWidth:ft=1200,trackEventItems:wt,loading:At,onRemove:ht=()=>{},isCurrent:lt=!0,showProgress:ot=!1,showAlias:Ze=!1,category:It="notDisplay",hiddenClick:et=()=>{}})=>{const qe=Math.floor((ft-(Ke-1)*Ne)/Ke),vt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Ie.createElement(it.Z,{spinning:At},Ie.createElement("div",{className:Ee()(z.list,Ce)},!!(St!=null&&St.length)&&(St==null?void 0:St.map((Me,Ue)=>{var He,ue,ut,Oe,Je,Ot,ye;const{name:fe,id:dt,identifier:Zt,featured:bt,school_name:me,image_url:Te,excellent:_e,is_plan:Nt}=Me;return Ie.createElement("div",{key:dt,className:lt&&ot?z.wrapisCurrent:z.wrap,style:{width:qe,marginRight:(1+Ue)%Ke===0?0:Ne+ze,marginBottom:Ge}},Ie.createElement("a",{className:z.li,onClick:xt=>{xt.preventDefault(),xt.stopPropagation(),wt&&(0,Le.L9)([wt]),(0,Le.xg)(`/paths/${Zt}`)}},Ie.createElement("div",{className:z.img},Ie.createElement("img",{className:z.cover,src:`${Te}`}),(He=Me==null?void 0:Me.subject_tags)==null?void 0:He.map((xt,zt)=>{var Ae,$t;if(zt===0){const ae=(Ae=vt.find(te=>te.name==xt))==null?void 0:Ae.swclass;return Ie.createElement("span",{className:`sprite ${ae} ${z.sign}`,style:{left:"-4px"}})}const ct=($t=vt.find(ae=>ae.name==xt))==null?void 0:$t.ptclass;return Ie.createElement("span",{className:`sprite ${ct} ${z.sign}`,style:{left:`${48+52*(zt-1)+2*zt}px`}})}),Ie.createElement("div",{className:z.tagsDom},Ie.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Me==null?void 0:Me.excellent)&&Ie.createElement("div",{className:z.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Me==null?void 0:Me.custom_tags)==null?void 0:ue.length)>0&&(Me==null?void 0:Me.custom_tags.map((xt,zt)=>{var Ae;return Ie.createElement(ve.Z,{title:xt==null?void 0:xt.tag_name,key:zt},Ie.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Ae=Me==null?void 0:Me.custom_tags)==null?void 0:Ae.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e"},xt==null?void 0:xt.tag_name)))})))),It=="hide"&&(Me==null?void 0:Me.studying)&<&&Ie.createElement("div",{className:`${z.movebq} user-path-items`,onClick:xt=>{xt.stopPropagation(),ht(Me)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(It)&<&&Ie.createElement("div",{className:`${z.hiddenbq} user-path-items`,onClick:xt=>{xt.stopPropagation(),et(Me)}},Ie.createElement("i",{className:`iconfont ${It=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,It=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:z.name},Ie.createElement(ve.Z,{title:Ze&&(Me!=null&&Me.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${fe}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):fe},Ie.createElement("span",{className:z.e},Ze&&(Me==null?void 0:Me.excellent_alias_name)||fe))),lt&&ot&&((ut=Me==null?void 0:Me.progress)==null?void 0:ut.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(Qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Oe=Me==null?void 0:Me.progress)==null?void 0:Oe.my_score)/((Je=Me==null?void 0:Me.progress)==null?void 0:Je.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ot=Me==null?void 0:Me.progress)==null?void 0:Ot.my_score,"/",(ye=Me==null?void 0:Me.progress)==null?void 0:ye.all_score),(!lt||!ot)&&Ie.createElement(ve.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${me}`},Ie.createElement("div",{className:z.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),me)),(!lt||!ot)&&Ie.createElement("div",{className:z.tags},Ie.createElement("div",null,Ie.createElement(ve.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,Me.stages_count))),Ie.createElement(ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ie.createElement("span",null,Me.members_count)))))))})),!St.length&&Ie.createElement(Xe.Z,null)))}},70467:function(ln,Vt,ie){"use strict";ie.d(Vt,{jL:function(){return Qe},w9:function(){return fe},QD:function(){return tn},cQ:function(){return Ue.Z},op:function(){return rt},O5:function(){return dn},_b:function(){return De},t7:function(){return ze},Gi:function(){return _e},YG:function(){return me},qp:function(){return he},vr:function(){return Ct},qE:function(){return Kt},Je:function(){return At},wb:function(){return Me},cq:function(){return ct},tp:function(){return St}});var z=ie(59301),it={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Qe=({dataSource:_t=[],img:Mt,imgWidth:Dt=346,title:pt,sunTitle:en,bannerExtraContent:Yt})=>z.createElement("div",{className:it.banner},z.createElement("div",{className:it.content},z.createElement("aside",null,z.createElement("p",null,z.createElement("b",null,pt),z.createElement("span",null,en)),_t.length>0&&z.createElement("div",{className:it.btns},_t.map((Jt,vn)=>z.createElement("div",{key:vn,onClick:Jt.click},Jt.name,Jt.sign?z.createElement("span",{className:"sprite sprite-33"}):null))),Yt),Mt&&z.createElement("img",{style:{marginTop:33,marginRight:38},src:Mt,width:Dt}))),Se={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Ee=ie(92310),Le=ie.n(Ee),Xe=ie(78267),he=({dataSource:_t=[],value:Mt,onChange:Dt,onTitleChange:pt,className:en,title:Yt,titleWidth:Jt=41,style:vn={},fontColor:wn="#6A7283",showCount:Sn})=>{const[On,Mn]=(0,z.useState)(1),[jn,An]=(0,z.useState)(!1),kt=(0,z.useRef)(null),Ut=(0,z.useRef)(null);return(0,z.useEffect)(()=>{var xn;_t.length!==0&&(((xn=kt==null?void 0:kt.current)==null?void 0:xn.clientHeight)>97?Mn(1):Mn(0)),_t.length===0&&Mn(0),An(!1)},[_t]),z.createElement("div",{className:Le()(Se.row,en,"fadeIn","animated"),style:vn},z.createElement("div",{onClick:(0,Xe.throttle)(()=>pt==null?void 0:pt(),2e3),style:{width:Jt,marginTop:jn?12:4},className:`${Se.title} ${pt?"current":""}`},Yt),z.createElement("div",{className:jn?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},z.createElement("div",{className:Se.bar,ref:Ut,style:On>0?{height:On===1?97:"auto",overflow:On===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},z.createElement("div",{className:Se.tag,ref:kt},_t==null?void 0:_t.map(xn=>z.createElement("span",{onClick:()=>Dt(xn.id),key:xn.id,style:{color:wn},className:Mt===xn.id?Se.active:""},z.createElement("span",{title:xn.name,className:Se.name},xn.name),!!Sn&&z.createElement("span",{className:Se.num},xn.count))))),!!On&&z.createElement(z.Fragment,null,On===1?z.createElement("div",{onClick:()=>{var xn;Mn(2),((xn=kt==null?void 0:kt.current)==null?void 0:xn.clientHeight)>245?An(!0):An(!1)},className:Se.action},"\u5C55\u5F00",z.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):z.createElement("div",{onClick:()=>{Ut.current.scrollTop=0,Mn(1),An(!1)},className:Se.action},"\u6536\u8D77",z.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ye={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},St=({dataSource:_t=[],value:Mt,onChange:Dt,className:pt,style:en={}})=>z.createElement("div",{style:en,className:Le()(Ye.tabs,pt)},_t.map(Yt=>z.createElement("span",{onClick:()=>Dt(Yt.id),className:Mt===Yt.id?Ye.active:"",key:Yt.id},Yt.name))),Ke={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Ne=ie(37568),ze=({dataSource:_t=[],value:Mt="",onChange:Dt,onInputChange:pt=()=>{},className:en,style:Yt={},placeholder:Jt,allowClear:vn=!1})=>{var wn;const[Sn,On]=(0,z.useState)(""),[Mn,jn]=(0,z.useState)("");(0,z.useEffect)(()=>{var Ut;let xn=Mt;(Ut=JSON.stringify(Mt))!=null&&Ut.includes("{")&&(On(Mt.id),xn=Mt.value||"");try{jn(decodeURIComponent(xn||""))}catch(hn){jn(decodeURIComponent(xn||""))}},[Mt]);const An=()=>{Dt(encodeURIComponent(Mn),Sn||null)},kt=Ut=>{Ut!==Sn&&(On(Ut),Dt(encodeURIComponent(Mn),Ut))};return z.createElement("div",{className:Le()(Ke.input,en),style:Yt},!!_t.length&&z.createElement("div",{className:Ke.dropdown},z.createElement("div",{className:Ke.text},(wn=_t.find(Ut=>Ut.id===Sn))==null?void 0:wn.name,z.createElement("i",{className:"iconfont icon-zhankai4"}),z.createElement("b",{className:Ke.b1}),z.createElement("b",{className:Ke.b2})),z.createElement("div",{className:Ke.menu},_t.map((Ut,xn)=>z.createElement("div",{key:xn,onClick:()=>kt(Ut.id)},Ut.name)))),z.createElement(Ne.default,{onPressEnter:An,value:Mn,onChange:Ut=>{jn(Ut.target.value),pt(encodeURIComponent(Ut.target.value),Sn||null)},placeholder:Jt,variant:"borderless",allowClear:vn,onClear:()=>Dt("",Sn||null)}),z.createElement("i",{onClick:An,className:"iconfont icon-sousuo9 font14 current"}))},ft={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},At=({value:_t,onChange:Mt,className:Dt,total:pt,pageSize:en,style:Yt={}})=>{const Jt=_t<2,vn=_t>=Math.ceil(pt/en);return pt<=en?z.createElement(z.Fragment,null):z.createElement("div",{className:Le()(ft.quickPager,Dt),style:Yt},z.createElement("div",{onClick:()=>{Jt||Mt(_t-1,"prev")},className:Jt?ft.disabled:""},"\u4E0A\u4E00\u9875"),z.createElement("div",{onClick:()=>{vn||Mt(_t+1,"next")},className:vn?ft.disabled:""},"\u4E0B\u4E00\u9875"))},ht={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},lt=ie(29787),ot=ie(25399),Ze=ie(63139),It=ie(14185),et=ie(76406),qe=ie(90736),Me=({className:_t,dataSource:Mt=[],col:Dt=4,right:pt,bottom:en=23,precision:Yt=0,wrapWidth:Jt=1200,trackEventItems:vn,loading:wn})=>{const Sn=Math.floor((Jt-(Dt-1)*pt)/Dt);return z.createElement(lt.Z,{spinning:wn},z.createElement("div",{className:Le()(ht.list,_t)},!!Mt.length&&Mt.map((On,Mn)=>{const{name:jn,id:An,identifier:kt,power:Ut,cover_image_id:xn,pic:hn}=On;return z.createElement("div",{className:ht.wrap,key:An,style:{width:Sn,marginRight:(1+Mn)%Dt===0?0:pt+Yt,marginBottom:en}},z.createElement("a",{target:"_blank",href:`/shixuns/${kt}/challenges`,className:ht.li,onClick:Be=>{Be.preventDefault(),vn&&(0,et.L9)([vn]),Ut&&(0,et.xg)(`/shixuns/${kt}/challenges`)}},z.createElement("div",{className:ht.img},z.createElement("img",{className:ht.cover,src:`${hn}`}),On.is_jupyter&&z.createElement("span",{className:`sprite sprite-43 ${ht.sign}`}),On.is_jupyter_lab&&z.createElement("span",{className:`sprite sprite-42 ${ht.sign}`}),On.is_unity_3d&&z.createElement("span",{className:`sprite sprite-44 ${ht.sign}`})),z.createElement("div",{className:ht.name},z.createElement(ot.Z,{title:jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},z.createElement("span",{className:ht.e},jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),z.createElement("div",{className:ht.tags},z.createElement(ot.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),z.createElement("span",null,On.challenges_count))),!!On.myshixuns_count&&z.createElement(ot.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),z.createElement("span",null,On.myshixuns_count))),z.createElement(ot.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},z.createElement("span",null,z.createElement("span",null,On.level))),z.createElement("div",{className:ht.rate},z.createElement(Ze.Z,{allowHalf:!0,disabled:!0,defaultValue:On.score_info}),z.createElement("span",null,"\xA0",On.score_info?`${On.score_info}\u5206`:"5\u5206")))),!Ut&&z.createElement("div",{className:ht.lockWrap},z.createElement("img",{src:`${It.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),z.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Mt.length&&z.createElement(qe.Z,null)))},Ue=ie(54077),He={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ue=ie(62957),ut=ie(96599),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Je=ie(59301),Ot=(_t,Mt,Dt)=>new Promise((pt,en)=>{var Yt=wn=>{try{vn(Dt.next(wn))}catch(Sn){en(Sn)}},Jt=wn=>{try{vn(Dt.throw(wn))}catch(Sn){en(Sn)}},vn=wn=>wn.done?pt(wn.value):Promise.resolve(wn.value).then(Yt,Jt);vn((Dt=Dt.apply(_t,Mt)).next())}),fe=({className:_t,dataSource:Mt=[],col:Dt=4,right:pt,bottom:en=23,precision:Yt=0,wrapWidth:Jt=1200,trackEventItems:vn,loading:wn,category:Sn,hiddenClick:On,handleVery:Mn=()=>!0,isCurrent:jn})=>{const[An,kt]=ue.default.useModal(),Ut=Math.floor((Jt-(Dt-1)*pt)/Dt),xn=hn=>Ot(void 0,null,function*(){An.confirm({title:"\u7F6E\u9876",width:500,content:Je.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Je.createElement("span",{className:"c-blue"},"\u201C",hn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Je.createElement(lt.Z,{spinning:wn},kt,Je.createElement("div",{className:Le()(He.list,_t)},!!Mt.length&&Mt.map((hn,Be)=>{const{subject_identifier:Ve,id:be,identifier:Re,power:we}=hn,Fe=hn.is_public!=0&&hn.is_public;return Je.createElement("div",{className:He.wrap,key:be,style:{width:Ut,marginRight:(1+Be)%Dt===0?0:pt+Yt,marginBottom:en}},hn.homepage_show&&Je.createElement("div",{className:He.btnsTop},Je.createElement(ut.default,{color:"red"},"\u7F6E\u9876")),Je.createElement("a",{className:He.li,onClick:mt=>{mt.preventDefault(),Mn(hn==null?void 0:hn.first_category_url)&&(vn&&(0,et.L9)([vn]),(0,et.xg)(hn.first_category_url))}},Je.createElement("div",{className:He.top},Je.createElement(ot.Z,{title:hn.name},Je.createElement("div",{className:He.name},hn.name)),Je.createElement("img",{className:He.img,src:It.Z.IMG_SERVER+"/images/"+hn.avatar_url}),Je.createElement("div",{className:He.text,title:hn.creator},hn.creator),Ve&&Je.createElement("div",{className:He.btns},Je.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Je.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Fe&&Je.createElement("div",{className:He.sign},"\u516C\u5F00"),jn&&Je.createElement("div",{className:He.hidden,onClick:mt=>{mt.stopPropagation(),On(hn)}},Je.createElement("i",{className:`iconfont ${Sn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Sn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Je.createElement("div",{className:He.bottom},hn.visits>0&&Je.createElement(ot.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Je.createElement("span",null,Je.createElement("i",{className:"iconfont icon-liulanyan"}),Je.createElement("span",null,hn.visits))),hn.course_members_count>0&&Je.createElement(ot.Z,{title:"\u6210\u5458",placement:"bottom"},Je.createElement("span",null,Je.createElement("i",{className:"iconfont icon-chengyuan"}),hn.course_members_count)),hn.tasks_count>0&&Je.createElement(ot.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Je.createElement("span",null,Je.createElement("i",{className:"iconfont icon-zuoye"}),hn.tasks_count)),hn.is_end?Je.createElement("div",{style:{color:"#6B758B"}}):Je.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!hn.is_accessible&&Je.createElement("div",{className:He.lockWrap},Je.createElement("img",{src:`${It.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Je.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Mt.length&&Je.createElement(qe.Z,null)))},dt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Zt=ie(44283),me=({dataSource:_t=[],value:Mt,onChange:Dt,className:pt,style:en={},tabBarExtraContent:Yt})=>z.createElement("div",{className:Le()(dt.tabs,pt),style:en},z.createElement("div",{className:dt.tabsWrap},_t.map((Jt,vn)=>!(Jt!=null&&Jt.hide)&&z.createElement("aside",{className:dt.tab,onClick:()=>{Dt(Jt.id),Jt.link&&Zt.history.push(Jt.link)},key:vn},z.createElement("div",{className:Mt===Jt.id?dt.active:""},Jt.name),(Jt==null?void 0:Jt.resetCount)==null&&(Jt==null?void 0:Jt.total)!==void 0&&z.createElement("span",null,"\uFF08",Jt==null?void 0:Jt.total,"\uFF09"),(Jt==null?void 0:Jt.resetCount)!==void 0&&(Jt==null?void 0:Jt.total)!==void 0&&z.createElement(ot.Z,{title:(Jt==null?void 0:Jt.tip)!=null?Jt==null?void 0:Jt.tip:""},z.createElement("span",{style:{color:"#9096A3"}},"\uFF08",z.createElement("span",{style:{color:"#000"}},Jt==null?void 0:Jt.resetCount),"/",z.createElement("span",null,Jt==null?void 0:Jt.total),"\uFF09"))))),z.createElement("div",{className:dt.tabBar},Yt)),_e=({className:_t,style:Mt={},children:Dt})=>z.createElement("div",{className:Le()(_t),style:Mt},Dt),Nt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},xt=ie(75727),zt=ie(93041);const Ae=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ct=({sortValue:_t,dropValue:Mt,className:Dt,onSort:pt,onDrop:en,dataSource:Yt=Ae})=>{var Jt;return z.createElement("div",{className:Le()(Nt.orderWrap,Dt)},z.createElement(xt.Z,{dropdownRender:()=>z.createElement(zt.default,null,Yt.map((vn,wn)=>z.createElement(zt.default.Item,{key:wn,onClick:()=>en(vn.id)},vn.name)))},z.createElement("span",{className:Nt.orderTextWrap},(Jt=Yt.find(vn=>Mt===vn.id))==null?void 0:Jt.name)),z.createElement("span",{className:Nt.orderIconWrap},z.createElement("span",{className:Nt.orderAsc},z.createElement("i",{className:_t==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Nt.cursorPointer}`,onClick:()=>pt(_t==="asc"?"desc":"asc")})),z.createElement("span",{className:Nt.orderDesc},z.createElement("i",{className:_t==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer} ${Nt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Nt.cursorPointer}`,onClick:()=>pt(_t==="asc"?"desc":"asc")}))))},ae={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},te=ie(7939),ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,pe=(_t,Mt,Dt)=>Mt in _t?ee(_t,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):_t[Mt]=Dt,xe=(_t,Mt)=>{for(var Dt in Mt||(Mt={}))se.call(Mt,Dt)&&pe(_t,Dt,Mt[Dt]);if(oe)for(var Dt of oe(Mt))ne.call(Mt,Dt)&&pe(_t,Dt,Mt[Dt]);return _t},st=(_t,Mt)=>{var Dt={};for(var pt in _t)se.call(_t,pt)&&Mt.indexOf(pt)<0&&(Dt[pt]=_t[pt]);if(_t!=null&&oe)for(var pt of oe(_t))Mt.indexOf(pt)<0&&ne.call(_t,pt)&&(Dt[pt]=_t[pt]);return Dt},Pe=(_t,Mt,Dt)=>new Promise((pt,en)=>{var Yt=wn=>{try{vn(Dt.next(wn))}catch(Sn){en(Sn)}},Jt=wn=>{try{vn(Dt.throw(wn))}catch(Sn){en(Sn)}},vn=wn=>wn.done?pt(wn.value):Promise.resolve(wn.value).then(Yt,Jt);vn((Dt=Dt.apply(_t,Mt)).next())}),rt=_t=>{var Mt=_t,{className:Dt,style:pt,children:en,loading:Yt=!1,openLoading:Jt,onClick:vn=()=>{},size:wn="middle",shape:Sn="round"}=Mt,On=st(Mt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Mn,jn]=(0,z.useState)(!1);return z.createElement(te.ZP,xe({onClick:(0,Xe.throttle)(An=>Pe(void 0,null,function*(){Jt&&jn(!0);try{yield vn(An)}catch(kt){console.log("error",kt)}Jt&&jn(!1)}),2e3,{leading:!0,trailing:!1}),className:Le()(ae.btn,ae[`${wn}-${Sn}`],Dt),style:pt,size:wn,shape:Sn,loading:Mn||Yt},On),en)},yt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Kt=({className:_t,style:Mt,children:Dt=null,onClick:pt,title:en})=>z.createElement("div",{className:Le()(yt.head,_t),style:Mt},z.createElement("span",{className:"primary-hover",onClick:pt},z.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),z.createElement("b",{title:en},en),z.createElement("div",{className:yt.node},Dt)),jt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},tn=({confirmShow:_t=!0,confirmTitle:Mt,confirmClick:Dt,cancelShow:pt=!0,cancelTitle:en,cancelClick:Yt,className:Jt,style:vn,confirmLoading:wn=!1})=>z.createElement("div",{className:Le()(jt.btns,Jt),style:vn},_t&&z.createElement(te.ZP,{loading:wn,onClick:Dt,type:"primary",className:jt.confirm},Mt),pt&&z.createElement(te.ZP,{onClick:Yt,className:jt.cancel},en)),Qt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Ct=({className:_t,style:Mt={},LeftContent:Dt,children:pt,RightContent:en})=>z.createElement("div",{className:Le()(Qt.fixedBottom,_t),style:Mt},z.createElement("div",{className:Qt.wrap},z.createElement("div",{className:Qt.left},Dt),z.createElement("div",{className:Qt.center},pt),z.createElement("div",{className:Qt.right},en))),qt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},De=({className:_t,style:Mt={},dataSource:Dt=[]})=>z.createElement("div",{className:Le()(qt.crumbs,_t),style:Mt},Dt.map((pt,en)=>en<Dt.length-1?z.createElement(z.Fragment,{key:en},pt.path||pt.onClick?z.createElement("span",{className:qt.hover,onClick:pt!=null&&pt.onClick?pt.onClick:()=>Zt.history.push(pt.path)},pt.name):z.createElement("span",null,pt.name),z.createElement("span",null,"\xA0",">","\xA0")):z.createElement("span",{key:en,style:{color:"#5F6368"}},pt.name))),tt=ie(11938),Tt=Object.defineProperty,Rt=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Gt=(_t,Mt,Dt)=>Mt in _t?Tt(_t,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):_t[Mt]=Dt,an=(_t,Mt)=>{for(var Dt in Mt||(Mt={}))at.call(Mt,Dt)&&Gt(_t,Dt,Mt[Dt]);if($e)for(var Dt of $e(Mt))Et.call(Mt,Dt)&&Gt(_t,Dt,Mt[Dt]);return _t},In=(_t,Mt)=>Rt(_t,ke(Mt)),kn=(_t,Mt)=>{var Dt={};for(var pt in _t)at.call(_t,pt)&&Mt.indexOf(pt)<0&&(Dt[pt]=_t[pt]);if(_t!=null&&$e)for(var pt of $e(_t))Mt.indexOf(pt)<0&&Et.call(_t,pt)&&(Dt[pt]=_t[pt]);return Dt};const{Countdown:rn}=tt.default;var dn=_t=>{var Mt=_t,{onChange:Dt}=Mt,pt=kn(Mt,["onChange"]);const[en,Yt]=(0,z.useState)(null);(0,z.useEffect)(()=>{typeof en=="number"&&en>=0&&Dt(en)},[en]);const Jt=vn=>{const wn=Math.floor(vn/1e3);Yt(wn)};return z.createElement(rn,In(an({},pt),{onChange:Jt}))}},79006:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return it}});var z=ie(59301);function it(ve,Qe){const Se=(0,z.useRef)();(0,z.useEffect)(()=>{Se.current=ve}),(0,z.useEffect)(()=>{function Ee(){Se.current()}if(Qe!==null){let Le=setInterval(Ee,Qe);return()=>clearInterval(Le)}},[Qe])}},79350:function(ln,Vt,ie){"use strict";ie.r(Vt),ie.d(Vt,{default:function(){return Ze}});var z=ie(59301),it=ie(44283),ve=ie(28284),Qe=ie(37568),Se=ie(35883),Ee={flex_box_center:"flex_box_center___mN1SM",flex_space_between:"flex_space_between____sOaR",flex_box_vertical_center:"flex_box_vertical_center___EVXyH",flex_box_center_end:"flex_box_center_end___nkeyi",flex_box_column:"flex_box_column___Sx9kn",wrap:"wrap___PN7w0",head:"head___oRcox",btns:"btns___gs5ce",confirm:"confirm___a86Xk",cancel:"cancel___DXA9D"},Le=ie(49317),Xe=ie(70467),Ie=ie(39116),he=ie(15267),Ye=ie(90736),Ce=ie(59301),St=Object.defineProperty,Ke=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,wt=(It,et,qe)=>et in It?St(It,et,{enumerable:!0,configurable:!0,writable:!0,value:qe}):It[et]=qe,At=(It,et)=>{for(var qe in et||(et={}))ze.call(et,qe)&&wt(It,qe,et[qe]);if(Ge)for(var qe of Ge(et))ft.call(et,qe)&&wt(It,qe,et[qe]);return It},ht=(It,et)=>Ke(It,Ne(et)),lt=(It,et,qe)=>new Promise((vt,Me)=>{var Ue=ut=>{try{ue(qe.next(ut))}catch(Oe){Me(Oe)}},He=ut=>{try{ue(qe.throw(ut))}catch(Oe){Me(Oe)}},ue=ut=>ut.done?vt(ut.value):Promise.resolve(ut.value).then(Ue,He);ue((qe=qe.apply(It,et)).next())});const ot=({globalSetting:It,dispatch:et,virtualSpaces:qe})=>{const[vt]=ve.default.useForm(),[Me,Ue]=(0,z.useState)({}),[He,ue]=(0,z.useState)(!1),[ut,Oe]=(0,z.useState)(!1),[Je,Ot]=(0,z.useState)(""),{virtualSpacesDetails:ye}=qe,fe=(0,it.useParams)();(0,z.useEffect)(()=>{dt()},[window.localStorage.getItem("vtrsModuleId")]);const dt=()=>lt(void 0,null,function*(){Oe(!0);const me=yield(0,Le.ZP)(`/api/virtual_classrooms/${fe.virtual_spacesId}/show_description.json`,{method:"get",params:{virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});if((me==null?void 0:me.status)!==-1){const Te={description:(me==null?void 0:me.description)||"",desc_title:(me==null?void 0:me.desc_title)||""};Ot(me==null?void 0:me.id),Ue(Te),vt.setFieldsValue(Te)}Oe(!1)}),Zt=me=>lt(void 0,null,function*(){const Te=yield(0,Le.ZP)(`/api/virtual_classrooms/${fe.virtual_spacesId}/update_description/${Je}.json`,{method:"put",body:ht(At({},me),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});(Te==null?void 0:Te.status)!==-1&&(ue(!1),dt())}),bt=(ye==null?void 0:ye.is_creator)||(0,he.Ny)();return Ce.createElement("section",{className:Ee.wrap},!He&&Ce.createElement(z.Fragment,null,Ce.createElement("div",{className:Ee.head},Ce.createElement("b",null,Me==null?void 0:Me.desc_title),bt&&Ce.createElement("span",{onClick:()=>ue(!0)},Ce.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91")),Ce.createElement("div",null,Me!=null&&Me.description?Ce.createElement(Se.Z,{value:Me==null?void 0:Me.description}):Ce.createElement(Ye.Z,null))),He&&Ce.createElement(z.Fragment,null,Ce.createElement(ve.default,{form:vt,scrollToFirstError:!0,className:"mt30",layout:"vertical",onFinish:Zt},Ce.createElement(ve.default.Item,{name:"desc_title",label:"\u6807\u9898",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"},{max:60,message:"\u53EA\u80FD\u8F93\u516560\u4E2A\u5B57\u7B26"}]},Ce.createElement(Qe.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),Ce.createElement(ve.default.Item,{name:"description",label:"\u5185\u5BB9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"},{max:65e3,message:"\u53EA\u80FD\u8F93\u516565000\u4E2A\u5B57\u7B26"}]},Ce.createElement(Ie.Z,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u5927\u9650\u5236\u4E3A65000\u4E2A\u5B57\u7B26",watch:!0,defaultValue:Me==null?void 0:Me.description}))),Ce.createElement(Xe.QD,{confirmTitle:"\u4FDD\u5B58",confirmClick:()=>vt.submit(),cancelClick:()=>{ue(!1),vt.setFieldsValue(At({},Me))},cancelTitle:"\u53D6\u6D88",className:"mb25"})))};var Ze=(0,it.connect)(({virtualSpaces:It,globalSetting:et})=>({globalSetting:et,virtualSpaces:It}))(ot)},20047:function(ln,Vt,ie){"use strict";ie.d(Vt,{AL:function(){return ht},Iy:function(){return Ye},Qv:function(){return Ke},ez:function(){return At},jb:function(){return Ce}});var z=ie(32834),it=ie.n(z),ve=ie(11690),Qe=ie.n(ve);let Se=1;function Ee(et,qe){const vt=et.match(/^(\s+)(?:```)/);if(vt===null)return qe;const Me=vt[1];return qe.split(`
|
|
|
`).map(Ue=>{const He=Ue.match(/^\s+/);if(He===null)return Ue;const[ue]=He;return ue.length>=Me.length?Ue.slice(Me.length):Ue}).join(`
|
|
|
`)}let Le=[],Xe=["<ul>"];const Ie=new(it()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ye(){Le.length=0,Xe=["<ul>"]}const Ce={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function St(et,qe,vt,Me){if(qe>=et.length||et[qe].level<=vt)return qe;var Ue=et[qe];Me.push("<li><a href='#"+Se+Ue.anchor+"'>"+Ue.text+"</a>"),qe++;var He=[];return qe=St(et,qe,Ue.level,He),He.length>0&&(Me.push("<ul>"),He.forEach(function(ue){Me.push(ue)}),Me.push("</ul>")),Me.push("</li>"),qe=St(et,qe,vt,Me),qe}function Ke(){return St(Le,0,0,Xe),Xe.push("</ul>"),Xe.join("")}const Ne={heading(et){const qe=he.exec(et);if(Se+=1,qe)return{type:"heading",raw:qe[0],depth:qe[1].length,text:qe[2]}},fences(et){const qe=this.rules.block.fences.exec(et);if(qe){const vt=qe[0];let Me=Ee(vt,qe[3]||"");const Ue=qe[2]?qe[2].trim():qe[2];if(["latex","katex","math"].indexOf(Ue)>=0){const He=ft(),ue=Me;Me=He,wt[He]={type:"block",expression:ue}}return{type:"code",raw:vt,lang:Ue,text:Me}}}},Ge=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ze=0;const ft=()=>`__special_katext_id_${ze++}__`;let wt={};function At(){return wt}function ht(){ze=0,wt={}}function lt(et){return et=et.replace(Ge,(qe,vt)=>{const Me=ft();return wt[Me]={type:"inline",expression:vt},Me}),et}const ot=Ie.listitem;Ie.listitem=function(et){return ot(lt(et))};const Ze=Ie.paragraph;Ie.paragraph=function(et){return Ze(lt(et))};const It=Ie.tablecell;Ie.tablecell=function(et,qe){return It(lt(et),qe)},Ie.code=function(et,qe,vt){const Me=(qe||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${et}</p>`:`<pre class="prettyprint linenums"><code class="language-${qe}">${vt?et:(0,ve.escape)(et,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(vt?et:(0,ve.escape)(et,!0))+"</code></pre>"},Ie.heading=function(et,qe,vt){let Me=this.options.headerPrefix+vt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Le.push({anchor:Me,level:qe,text:et}),"<h"+qe+' id="'+Se+Me+'">'+et+"</h"+qe+">"},it().setOptions({silent:!0,gfm:!0,pedantic:!1}),it().use({tokenizer:Ne,renderer:Ie}),Vt.ZP=it()},86013:function(ln,Vt,ie){"use strict";var z=ie(59301),it=ie(19248);const ve=Qe=>{let Se;return typeof Qe=="object"&&(Qe!=null&&Qe.clearIcon)?Se=Qe:Qe&&(Se={clearIcon:z.createElement(it.Z,null)}),Se};Vt.Z=ve},38406:function(ln,Vt,ie){"use strict";var z=ie(59301),it=ie(48755),ve=ie(584);const Qe=Se=>{const{componentName:Ee}=Se,{getPrefixCls:Le}=(0,z.useContext)(it.E_),Xe=Le("empty");switch(Ee){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:`${Xe}-small`});case"Table.filter":return null;default:return z.createElement(ve.Z,null)}};Vt.Z=Qe},36207:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return st}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Qe=ie(85899),Se=ie(72190),Ee=ie(43403),Le=ie(34280),Xe=z.createContext(null),Ie=z.createContext({}),he=Xe,Ye=ie(18642),Ce=ie(60499),St=ie(77900),Ke=ie(10228),Ne=ie(26112),Ge=ie(42244),ze=ie(8654),ft=["prefixCls","className","containerRef"],wt=function(je){var rt=je.prefixCls,yt=je.className,gt=je.containerRef,Kt=(0,Ge.Z)(je,ft),jt=z.useContext(Ie),Ht=jt.panel,tn=(0,ze.x1)(Ht,gt);return z.createElement("div",(0,Ce.Z)({className:ve()("".concat(rt,"-content"),yt),role:"dialog",ref:tn},(0,Ne.Z)(je,{aria:!0}),{"aria-modal":"true"},Kt))},At=wt,ht=ie(48736);function lt(Pe){return typeof Pe=="string"&&String(Number(Pe))===Pe?((0,ht.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Pe)):Pe}function ot(Pe){warning(!("wrapperClassName"in Pe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Pe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ze={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function It(Pe,je){var rt,yt,gt,Kt=Pe.prefixCls,jt=Pe.open,Ht=Pe.placement,tn=Pe.inline,Qt=Pe.push,nn=Pe.forceRender,Ct=Pe.autoFocus,qt=Pe.keyboard,Wt=Pe.classNames,De=Pe.rootClassName,tt=Pe.rootStyle,Tt=Pe.zIndex,Rt=Pe.className,ke=Pe.id,$e=Pe.style,at=Pe.motion,Et=Pe.width,Gt=Pe.height,an=Pe.children,In=Pe.mask,kn=Pe.maskClosable,rn=Pe.maskMotion,bn=Pe.maskClassName,dn=Pe.maskStyle,_t=Pe.afterOpenChange,Mt=Pe.onClose,Dt=Pe.onMouseEnter,pt=Pe.onMouseOver,en=Pe.onMouseLeave,Yt=Pe.onClick,Jt=Pe.onKeyDown,vn=Pe.onKeyUp,wn=Pe.styles,Sn=Pe.drawerRender,On=z.useRef(),Mn=z.useRef(),jn=z.useRef();z.useImperativeHandle(je,function(){return On.current});var An=function(Bt){var Pt=Bt.keyCode,fn=Bt.shiftKey;switch(Pt){case Ke.Z.TAB:{if(Pt===Ke.Z.TAB){if(!fn&&document.activeElement===jn.current){var Bn;(Bn=Mn.current)===null||Bn===void 0||Bn.focus({preventScroll:!0})}else if(fn&&document.activeElement===Mn.current){var Dn;(Dn=jn.current)===null||Dn===void 0||Dn.focus({preventScroll:!0})}}break}case Ke.Z.ESC:{Mt&&qt&&(Bt.stopPropagation(),Mt(Bt));break}}};z.useEffect(function(){if(jt&&Ct){var Xt;(Xt=On.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}},[jt]);var kt=z.useState(!1),Ut=(0,Se.Z)(kt,2),xn=Ut[0],hn=Ut[1],Be=z.useContext(he),Ve;typeof Qt=="boolean"?Ve=Qt?{}:{distance:0}:Ve=Qt||{};var be=(rt=(yt=(gt=Ve)===null||gt===void 0?void 0:gt.distance)!==null&&yt!==void 0?yt:Be==null?void 0:Be.pushDistance)!==null&&rt!==void 0?rt:180,Re=z.useMemo(function(){return{pushDistance:be,push:function(){hn(!0)},pull:function(){hn(!1)}}},[be]);z.useEffect(function(){if(jt){var Xt;Be==null||(Xt=Be.push)===null||Xt===void 0||Xt.call(Be)}else{var Bt;Be==null||(Bt=Be.pull)===null||Bt===void 0||Bt.call(Be)}},[jt]),z.useEffect(function(){return function(){var Xt;Be==null||(Xt=Be.pull)===null||Xt===void 0||Xt.call(Be)}},[]);var we=In&&z.createElement(St.default,(0,Ce.Z)({key:"mask"},rn,{visible:jt}),function(Xt,Bt){var Pt=Xt.className,fn=Xt.style;return z.createElement("div",{className:ve()("".concat(Kt,"-mask"),Pt,Wt==null?void 0:Wt.mask,bn),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},fn),dn),wn==null?void 0:wn.mask),onClick:kn&&jt?Mt:void 0,ref:Bt})}),Fe=typeof at=="function"?at(Ht):at,mt={};if(xn&&be)switch(Ht){case"top":mt.transform="translateY(".concat(be,"px)");break;case"bottom":mt.transform="translateY(".concat(-be,"px)");break;case"left":mt.transform="translateX(".concat(be,"px)");break;default:mt.transform="translateX(".concat(-be,"px)");break}Ht==="left"||Ht==="right"?mt.width=lt(Et):mt.height=lt(Gt);var on={onMouseEnter:Dt,onMouseOver:pt,onMouseLeave:en,onClick:Yt,onKeyDown:Jt,onKeyUp:vn},un=z.createElement(St.default,(0,Ce.Z)({key:"panel"},Fe,{visible:jt,forceRender:nn,onVisibleChanged:function(Bt){_t==null||_t(Bt)},removeOnLeave:!1,leavedClassName:"".concat(Kt,"-content-wrapper-hidden")}),function(Xt,Bt){var Pt=Xt.className,fn=Xt.style,Bn=z.createElement(At,(0,Ce.Z)({id:ke,containerRef:Bt,prefixCls:Kt,className:ve()(Rt,Wt==null?void 0:Wt.content),style:(0,Qe.Z)((0,Qe.Z)({},$e),wn==null?void 0:wn.content)},(0,Ne.Z)(Pe,{aria:!0}),on),an);return z.createElement("div",(0,Ce.Z)({className:ve()("".concat(Kt,"-content-wrapper"),Wt==null?void 0:Wt.wrapper,Pt),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},mt),fn),wn==null?void 0:wn.wrapper)},(0,Ne.Z)(Pe,{data:!0})),Sn?Sn(Bn):Bn)}),gn=(0,Qe.Z)({},tt);return Tt&&(gn.zIndex=Tt),z.createElement(he.Provider,{value:Re},z.createElement("div",{className:ve()(Kt,"".concat(Kt,"-").concat(Ht),De,(0,Ye.Z)((0,Ye.Z)({},"".concat(Kt,"-open"),jt),"".concat(Kt,"-inline"),tn)),style:gn,tabIndex:-1,ref:On,onKeyDown:An},we,z.createElement("div",{tabIndex:0,ref:Mn,style:Ze,"aria-hidden":"true","data-sentinel":"start"}),un,z.createElement("div",{tabIndex:0,ref:jn,style:Ze,"aria-hidden":"true","data-sentinel":"end"})))}var et=z.forwardRef(It),qe=et,vt=function(je){var rt=je.open,yt=rt===void 0?!1:rt,gt=je.prefixCls,Kt=gt===void 0?"rc-drawer":gt,jt=je.placement,Ht=jt===void 0?"right":jt,tn=je.autoFocus,Qt=tn===void 0?!0:tn,nn=je.keyboard,Ct=nn===void 0?!0:nn,qt=je.width,Wt=qt===void 0?378:qt,De=je.mask,tt=De===void 0?!0:De,Tt=je.maskClosable,Rt=Tt===void 0?!0:Tt,ke=je.getContainer,$e=je.forceRender,at=je.afterOpenChange,Et=je.destroyOnClose,Gt=je.onMouseEnter,an=je.onMouseOver,In=je.onMouseLeave,kn=je.onClick,rn=je.onKeyDown,bn=je.onKeyUp,dn=je.panelRef,_t=z.useState(!1),Mt=(0,Se.Z)(_t,2),Dt=Mt[0],pt=Mt[1],en=z.useState(!1),Yt=(0,Se.Z)(en,2),Jt=Yt[0],vn=Yt[1];(0,Le.Z)(function(){vn(!0)},[]);var wn=Jt?yt:!1,Sn=z.useRef(),On=z.useRef();(0,Le.Z)(function(){wn&&(On.current=document.activeElement)},[wn]);var Mn=function(xn){var hn;if(pt(xn),at==null||at(xn),!xn&&On.current&&!((hn=Sn.current)!==null&&hn!==void 0&&hn.contains(On.current))){var Be;(Be=On.current)===null||Be===void 0||Be.focus({preventScroll:!0})}},jn=z.useMemo(function(){return{panel:dn}},[dn]);if(!$e&&!Dt&&!wn&&Et)return null;var An={onMouseEnter:Gt,onMouseOver:an,onMouseLeave:In,onClick:kn,onKeyDown:rn,onKeyUp:bn},kt=(0,Qe.Z)((0,Qe.Z)({},je),{},{open:wn,prefixCls:Kt,placement:Ht,autoFocus:Qt,keyboard:Ct,width:Wt,mask:tt,maskClosable:Rt,inline:ke===!1,afterOpenChange:Mn,ref:Sn},An);return z.createElement(Ie.Provider,{value:jn},z.createElement(Ee.Z,{open:wn||$e||Dt,autoDestroy:!1,getContainer:ke,autoLock:tt&&(wn||Dt)},z.createElement(qe,kt)))},Me=vt,Ue=Me,He=ie(62487),ue=ie(75030),ut=ie(86641),Oe=ie(55743),Je=ie(48755),Ot=ie(91190),ye=ie(78776),fe=ie(458),Zt=Pe=>{var je,rt;const{prefixCls:yt,title:gt,footer:Kt,extra:jt,loading:Ht,onClose:tn,headerStyle:Qt,bodyStyle:nn,footerStyle:Ct,children:qt,classNames:Wt,styles:De}=Pe,tt=(0,Je.dj)("drawer"),Tt=z.useCallback(Et=>z.createElement("button",{type:"button",onClick:tn,"aria-label":"Close",className:`${yt}-close`},Et),[tn]),[Rt,ke]=(0,ye.Z)((0,ye.w)(Pe),(0,ye.w)(tt),{closable:!0,closeIconRender:Tt}),$e=z.useMemo(()=>{var Et,Gt;return!gt&&!Rt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Et=tt.styles)===null||Et===void 0?void 0:Et.header),Qt),De==null?void 0:De.header),className:ve()(`${yt}-header`,{[`${yt}-header-close-only`]:Rt&&!gt&&!jt},(Gt=tt.classNames)===null||Gt===void 0?void 0:Gt.header,Wt==null?void 0:Wt.header)},z.createElement("div",{className:`${yt}-header-title`},ke,gt&&z.createElement("div",{className:`${yt}-title`},gt)),jt&&z.createElement("div",{className:`${yt}-extra`},jt))},[Rt,ke,jt,Qt,yt,gt]),at=z.useMemo(()=>{var Et,Gt;if(!Kt)return null;const an=`${yt}-footer`;return z.createElement("div",{className:ve()(an,(Et=tt.classNames)===null||Et===void 0?void 0:Et.footer,Wt==null?void 0:Wt.footer),style:Object.assign(Object.assign(Object.assign({},(Gt=tt.styles)===null||Gt===void 0?void 0:Gt.footer),Ct),De==null?void 0:De.footer)},Kt)},[Kt,Ct,yt]);return z.createElement(z.Fragment,null,$e,z.createElement("div",{className:ve()(`${yt}-body`,Wt==null?void 0:Wt.body,(je=tt.classNames)===null||je===void 0?void 0:je.body),style:Object.assign(Object.assign(Object.assign({},(rt=tt.styles)===null||rt===void 0?void 0:rt.body),nn),De==null?void 0:De.body)},Ht?z.createElement(fe.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${yt}-body-skeleton`}):qt),at)},bt=ie(36237),me=ie(63356),Te=ie(16931),_e=ie(51636);const Nt=Pe=>{const je="100%";return{left:`translateX(-${je})`,right:`translateX(${je})`,top:`translateY(-${je})`,bottom:`translateY(${je})`}[Pe]},xt=(Pe,je)=>({"&-enter, &-appear":Object.assign(Object.assign({},Pe),{"&-active":je}),"&-leave":Object.assign(Object.assign({},je),{"&-active":Pe})}),zt=(Pe,je)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${je}`}}},xt({opacity:Pe},{opacity:1})),Ae=(Pe,je)=>[zt(.7,je),xt({transform:Nt(Pe)},{transform:"none"})];var ct=Pe=>{const{componentCls:je,motionDurationSlow:rt}=Pe;return{[je]:{[`${je}-mask-motion`]:zt(0,rt),[`${je}-panel-motion`]:["left","right","top","bottom"].reduce((yt,gt)=>Object.assign(Object.assign({},yt),{[`&-${gt}`]:Ae(gt,rt)}),{})}}};const ae=Pe=>{const{borderRadiusSM:je,componentCls:rt,zIndexPopup:yt,colorBgMask:gt,colorBgElevated:Kt,motionDurationSlow:jt,motionDurationMid:Ht,paddingXS:tn,padding:Qt,paddingLG:nn,fontSizeLG:Ct,lineHeightLG:qt,lineWidth:Wt,lineType:De,colorSplit:tt,marginXS:Tt,colorIcon:Rt,colorIconHover:ke,colorBgTextHover:$e,colorBgTextActive:at,colorText:Et,fontWeightStrong:Gt,footerPaddingBlock:an,footerPaddingInline:In,calc:kn}=Pe,rn=`${rt}-content-wrapper`;return{[rt]:{position:"fixed",inset:0,zIndex:yt,pointerEvents:"none",color:Et,"&-pure":{position:"relative",background:Kt,display:"flex",flexDirection:"column",[`&${rt}-left`]:{boxShadow:Pe.boxShadowDrawerLeft},[`&${rt}-right`]:{boxShadow:Pe.boxShadowDrawerRight},[`&${rt}-top`]:{boxShadow:Pe.boxShadowDrawerUp},[`&${rt}-bottom`]:{boxShadow:Pe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${rt}-mask`]:{position:"absolute",inset:0,zIndex:yt,background:gt,pointerEvents:"auto"},[rn]:{position:"absolute",zIndex:yt,maxWidth:"100vw",transition:`all ${jt}`,"&-hidden":{display:"none"}},[`&-left > ${rn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Pe.boxShadowDrawerLeft},[`&-right > ${rn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Pe.boxShadowDrawerRight},[`&-top > ${rn}`]:{top:0,insetInline:0,boxShadow:Pe.boxShadowDrawerUp},[`&-bottom > ${rn}`]:{bottom:0,insetInline:0,boxShadow:Pe.boxShadowDrawerDown},[`${rt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Kt,pointerEvents:"auto"},[`${rt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,bt.unit)(Qt)} ${(0,bt.unit)(nn)}`,fontSize:Ct,lineHeight:qt,borderBottom:`${(0,bt.unit)(Wt)} ${De} ${tt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${rt}-extra`]:{flex:"none"},[`${rt}-close`]:Object.assign({display:"inline-flex",width:kn(Ct).add(tn).equal(),height:kn(Ct).add(tn).equal(),borderRadius:je,justifyContent:"center",alignItems:"center",marginInlineEnd:Tt,color:Rt,fontWeight:Gt,fontSize:Ct,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ht}`,textRendering:"auto","&:hover":{color:ke,backgroundColor:$e,textDecoration:"none"},"&:active":{backgroundColor:at}},(0,me.Qy)(Pe)),[`${rt}-title`]:{flex:1,margin:0,fontWeight:Pe.fontWeightStrong,fontSize:Ct,lineHeight:qt},[`${rt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:nn,overflow:"auto",[`${rt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${rt}-footer`]:{flexShrink:0,padding:`${(0,bt.unit)(an)} ${(0,bt.unit)(In)}`,borderTop:`${(0,bt.unit)(Wt)} ${De} ${tt}`},"&-rtl":{direction:"rtl"}}}},te=Pe=>({zIndexPopup:Pe.zIndexPopupBase,footerPaddingBlock:Pe.paddingXS,footerPaddingInline:Pe.padding});var ee=(0,Te.I$)("Drawer",Pe=>{const je=(0,_e.mergeToken)(Pe,{});return[ae(je),ct(je)]},te),oe=function(Pe,je){var rt={};for(var yt in Pe)Object.prototype.hasOwnProperty.call(Pe,yt)&&je.indexOf(yt)<0&&(rt[yt]=Pe[yt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,yt=Object.getOwnPropertySymbols(Pe);gt<yt.length;gt++)je.indexOf(yt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,yt[gt])&&(rt[yt[gt]]=Pe[yt[gt]]);return rt};const se=null,ne={distance:180},pe=Pe=>{var je;const{rootClassName:rt,width:yt,height:gt,size:Kt="default",mask:jt=!0,push:Ht=ne,open:tn,afterOpenChange:Qt,onClose:nn,prefixCls:Ct,getContainer:qt,style:Wt,className:De,visible:tt,afterVisibleChange:Tt,maskStyle:Rt,drawerStyle:ke,contentWrapperStyle:$e}=Pe,at=oe(Pe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Et,getPrefixCls:Gt,direction:an,className:In,style:kn,classNames:rn,styles:bn}=(0,Je.dj)("drawer"),dn=Gt("drawer",Ct),[_t,Mt,Dt]=ee(dn),pt=qt===void 0&&Et?()=>Et(document.body):qt,en=ve()({"no-mask":!jt,[`${dn}-rtl`]:an==="rtl"},rt,Mt,Dt),Yt=z.useMemo(()=>yt!=null?yt:Kt==="large"?736:378,[yt,Kt]),Jt=z.useMemo(()=>gt!=null?gt:Kt==="large"?736:378,[gt,Kt]),vn={motionName:(0,ut.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},wn=kt=>({motionName:(0,ut.m)(dn,`panel-motion-${kt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Sn=(0,Ot.H)(),[On,Mn]=(0,ue.Cn)("Drawer",at.zIndex),{classNames:jn={},styles:An={}}=at;return _t(z.createElement(He.Z,{form:!0,space:!0},z.createElement(Oe.Z.Provider,{value:Mn},z.createElement(Ue,Object.assign({prefixCls:dn,onClose:nn,maskMotion:vn,motion:wn},at,{classNames:{mask:ve()(jn.mask,rn.mask),content:ve()(jn.content,rn.content),wrapper:ve()(jn.wrapper,rn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},An.mask),Rt),bn.mask),content:Object.assign(Object.assign(Object.assign({},An.content),ke),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},An.wrapper),$e),bn.wrapper)},open:tn!=null?tn:tt,mask:jt,push:Ht,width:Yt,height:Jt,style:Object.assign(Object.assign({},kn),Wt),className:ve()(In,De),rootClassName:en,getContainer:pt,afterOpenChange:Qt!=null?Qt:Tt,panelRef:Sn,zIndex:On}),z.createElement(Zt,Object.assign({prefixCls:dn},at,{onClose:nn}))))))},xe=Pe=>{const{prefixCls:je,style:rt,className:yt,placement:gt="right"}=Pe,Kt=oe(Pe,["prefixCls","style","className","placement"]),{getPrefixCls:jt}=z.useContext(Je.E_),Ht=jt("drawer",je),[tn,Qt,nn]=ee(Ht),Ct=ve()(Ht,`${Ht}-pure`,`${Ht}-${gt}`,Qt,nn,yt);return tn(z.createElement("div",{className:Ct,style:rt},z.createElement(Zt,Object.assign({prefixCls:Ht},Kt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=xe;var st=pe},19563:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return bt}});var z=ie(59301),it=ie(33853),ve=ie(38819),Qe=ie(92310),Se=ie.n(Qe),Ee=ie(96478),Le=ie(6089),Xe=ie(18929),Ie=ie(2738),he=ie(75030),Ce=me=>typeof me!="object"&&typeof me!="function"||me===null,St=ie(52838),Ke=ie(45915),Ne=ie(22703),Ge=ie(32383),ze=ie(55743),ft=ie(48755),wt=ie(83397),At=ie(93041),ht=ie(78857),lt=ie(57700),ot=ie(36237),Ze=ie(63356),It=ie(46e3),et=ie(93873),qe=ie(34925),vt=ie(37645),Me=ie(36305),Ue=ie(16931),He=ie(51636),ut=me=>{const{componentCls:Te,menuCls:_e,colorError:Nt,colorTextLightSolid:xt}=me,zt=`${_e}-item`;return{[`${Te}, ${Te}-menu-submenu`]:{[`${_e} ${zt}`]:{[`&${zt}-danger:not(${zt}-disabled)`]:{color:Nt,"&:hover":{color:xt,backgroundColor:Nt}}}}}};const Oe=me=>{const{componentCls:Te,menuCls:_e,zIndexPopup:Nt,dropdownArrowDistance:xt,sizePopupArrow:zt,antCls:Ae,iconCls:$t,motionDurationMid:ct,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:pe}=me;return[{[Te]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Nt,display:"block","&::before":{position:"absolute",insetBlock:me.calc(zt).div(2).sub(xt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Ae}-btn`]:{[`& > ${$t}-down, & > ${Ae}-btn-icon > ${$t}-down`]:{fontSize:se}},[`${Te}-wrap`]:{position:"relative",[`${Ae}-btn > ${$t}-down`]:{fontSize:se},[`${$t}-down::before`]:{transition:`transform ${ct}`}},[`${Te}-wrap-open`]:{[`${$t}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ae}-slide-down-enter${Ae}-slide-down-enter-active${Te}-placement-bottomLeft,
|
|
|
&${Ae}-slide-down-appear${Ae}-slide-down-appear-active${Te}-placement-bottomLeft,
|
|
|
&${Ae}-slide-down-enter${Ae}-slide-down-enter-active${Te}-placement-bottom,
|
|
|
&${Ae}-slide-down-appear${Ae}-slide-down-appear-active${Te}-placement-bottom,
|
|
|
&${Ae}-slide-down-enter${Ae}-slide-down-enter-active${Te}-placement-bottomRight,
|
|
|
&${Ae}-slide-down-appear${Ae}-slide-down-appear-active${Te}-placement-bottomRight`]:{animationName:It.fJ},[`&${Ae}-slide-up-enter${Ae}-slide-up-enter-active${Te}-placement-topLeft,
|
|
|
&${Ae}-slide-up-appear${Ae}-slide-up-appear-active${Te}-placement-topLeft,
|
|
|
&${Ae}-slide-up-enter${Ae}-slide-up-enter-active${Te}-placement-top,
|
|
|
&${Ae}-slide-up-appear${Ae}-slide-up-appear-active${Te}-placement-top,
|
|
|
&${Ae}-slide-up-enter${Ae}-slide-up-enter-active${Te}-placement-topRight,
|
|
|
&${Ae}-slide-up-appear${Ae}-slide-up-appear-active${Te}-placement-topRight`]:{animationName:It.Qt},[`&${Ae}-slide-down-leave${Ae}-slide-down-leave-active${Te}-placement-bottomLeft,
|
|
|
&${Ae}-slide-down-leave${Ae}-slide-down-leave-active${Te}-placement-bottom,
|
|
|
&${Ae}-slide-down-leave${Ae}-slide-down-leave-active${Te}-placement-bottomRight`]:{animationName:It.Uw},[`&${Ae}-slide-up-leave${Ae}-slide-up-leave-active${Te}-placement-topLeft,
|
|
|
&${Ae}-slide-up-leave${Ae}-slide-up-leave-active${Te}-placement-top,
|
|
|
&${Ae}-slide-up-leave${Ae}-slide-up-leave-active${Te}-placement-topRight`]:{animationName:It.ly}}},(0,vt.ZP)(me,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Te} ${_e}`]:{position:"relative",margin:0},[`${_e}-submenu-popup`]:{position:"absolute",zIndex:Nt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Te}, ${Te}-menu-submenu`]:Object.assign(Object.assign({},(0,Ze.Wf)(me)),{[_e]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,Ze.Qy)(me)),{"&:empty":{padding:0,boxShadow:"none"},[`${_e}-item-group-title`]:{padding:`${(0,ot.unit)(ae)} ${(0,ot.unit)(ne)}`,color:me.colorTextDescription,transition:`all ${ct}`},[`${_e}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${_e}-item-icon`]:{minWidth:te,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${_e}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${ct}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${_e}-item-extra`]:{paddingInlineStart:me.padding,marginInlineStart:"auto",fontSize:me.fontSizeSM,color:me.colorTextDescription}},[`${_e}-item, ${_e}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ot.unit)(ae)} ${(0,ot.unit)(ne)}`,color:me.colorText,fontWeight:"normal",fontSize:te,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${ct}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,Ze.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ot.unit)(me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${Te}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${Te}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${_e}-item-group-list`]:{margin:`0 ${(0,ot.unit)(me.marginXS)}`,padding:0,listStyle:"none"},[`${_e}-submenu-title`]:{paddingInlineEnd:me.calc(ne).add(me.fontSizeSM).equal()},[`${_e}-submenu-vertical`]:{position:"relative"},[`${_e}-submenu${_e}-submenu-disabled ${Te}-menu-submenu-title`]:{[`&, ${Te}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${_e}-submenu-selected ${Te}-menu-submenu-title`]:{color:me.colorPrimary}})})},[(0,It.oN)(me,"slide-up"),(0,It.oN)(me,"slide-down"),(0,et.Fm)(me,"move-up"),(0,et.Fm)(me,"move-down"),(0,qe._y)(me,"zoom-big")]]},Je=me=>Object.assign(Object.assign({zIndexPopup:me.zIndexPopupBase+50,paddingBlock:(me.controlHeight-me.fontSize*me.lineHeight)/2},(0,vt.wZ)({contentRadius:me.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(me));var Ot=(0,Ue.I$)("Dropdown",me=>{const{marginXXS:Te,sizePopupArrow:_e,paddingXXS:Nt,componentCls:xt}=me,zt=(0,He.mergeToken)(me,{menuCls:`${xt}-menu`,dropdownArrowDistance:me.calc(_e).div(2).add(Te).equal(),dropdownEdgeChildPadding:Nt});return[Oe(zt),ut(zt)]},Je,{resetStyle:!1});const ye=null,fe=me=>{var Te;const{menu:_e,arrow:Nt,prefixCls:xt,children:zt,trigger:Ae,disabled:$t,dropdownRender:ct,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:pe,onVisibleChange:xe,mouseEnterDelay:st=.15,mouseLeaveDelay:Pe=.1,autoAdjustOverflow:je=!0,placement:rt="",overlay:yt,transitionName:gt}=me,{getPopupContainer:Kt,getPrefixCls:jt,direction:Ht,dropdown:tn}=z.useContext(ft.E_),Qt=(0,Ge.ln)("Dropdown"),nn=z.useMemo(()=>{const pt=jt();return gt!==void 0?gt:rt.includes("top")?`${pt}-slide-down`:`${pt}-slide-up`},[jt,rt,gt]),Ct=z.useMemo(()=>rt?rt.includes("Center")?rt.slice(0,rt.indexOf("Center")):rt:Ht==="rtl"?"bottomRight":"bottomLeft",[rt,Ht]),qt=jt("dropdown",xt),Wt=(0,wt.Z)(qt),[De,tt,Tt]=Ot(qt,Wt),[,Rt]=(0,lt.ZP)(),ke=z.Children.only(Ce(zt)?z.createElement("span",null,zt):zt),$e=(0,Ne.Tm)(ke,{className:Se()(`${qt}-trigger`,{[`${qt}-rtl`]:Ht==="rtl"},ke.props.className),disabled:(Te=ke.props.disabled)!==null&&Te!==void 0?Te:$t}),at=$t?[]:Ae,Et=!!(at!=null&&at.includes("contextMenu")),[Gt,an]=(0,Xe.Z)(!1,{value:se!=null?se:pe}),In=(0,Le.Z)(pt=>{ne==null||ne(pt,{source:"trigger"}),xe==null||xe(pt),an(pt)}),kn=Se()(te,ee,tt,Tt,Wt,tn==null?void 0:tn.className,{[`${qt}-rtl`]:Ht==="rtl"}),rn=(0,St.Z)({arrowPointAtCenter:typeof Nt=="object"&&Nt.pointAtCenter,autoAdjustOverflow:je,offset:Rt.marginXXS,arrowWidth:Nt?Rt.sizePopupArrow:0,borderRadius:Rt.borderRadius}),bn=z.useCallback(()=>{_e!=null&&_e.selectable&&(_e!=null&&_e.multiple)||(ne==null||ne(!1,{source:"menu"}),an(!1))},[_e==null?void 0:_e.selectable,_e==null?void 0:_e.multiple]),dn=()=>{let pt;return _e!=null&&_e.items?pt=z.createElement(At.default,Object.assign({},_e)):typeof yt=="function"?pt=yt():pt=yt,ct&&(pt=ct(pt)),pt=z.Children.only(typeof pt=="string"?z.createElement("span",null,pt):pt),z.createElement(ht.J,{prefixCls:`${qt}-menu`,rootClassName:Se()(Tt,Wt),expandIcon:z.createElement("span",{className:`${qt}-menu-submenu-arrow`},Ht==="rtl"?z.createElement(it.Z,{className:`${qt}-menu-submenu-arrow-icon`}):z.createElement(ve.Z,{className:`${qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:en=>{let{mode:Yt}=en}},pt)},[_t,Mt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Dt=z.createElement(Ee.Z,Object.assign({alignPoint:Et},(0,Ie.Z)(me,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:Pe,visible:Gt,builtinPlacements:rn,arrow:!!Nt,overlayClassName:kn,prefixCls:qt,getPopupContainer:ae||Kt,transitionName:nn,trigger:at,overlay:dn,placement:Ct,onVisibleChange:In,overlayStyle:Object.assign(Object.assign(Object.assign({},tn==null?void 0:tn.style),oe),{zIndex:_t})}),$e);return _t&&(Dt=z.createElement(ze.Z.Provider,{value:Mt},Dt)),De(Dt)},dt=(0,Ke.Z)(fe,"align",void 0,"dropdown",me=>me),Zt=me=>z.createElement(dt,Object.assign({},me),z.createElement("span",null));fe._InternalPanelDoNotUseOrYouWillBeFired=Zt;var bt=fe},75727:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Ke}});var z=ie(19563),it=ie(59301),ve=ie(18785),Qe=ie(92310),Se=ie.n(Qe),Ee=ie(7939),Le=ie(48755),Xe=ie(44104),Ie=ie(70045),he=function(Ne,Ge){var ze={};for(var ft in Ne)Object.prototype.hasOwnProperty.call(Ne,ft)&&Ge.indexOf(ft)<0&&(ze[ft]=Ne[ft]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,ft=Object.getOwnPropertySymbols(Ne);wt<ft.length;wt++)Ge.indexOf(ft[wt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ft[wt])&&(ze[ft[wt]]=Ne[ft[wt]]);return ze};const Ye=Ne=>{const{getPopupContainer:Ge,getPrefixCls:ze,direction:ft}=it.useContext(Le.E_),{prefixCls:wt,type:At="default",danger:ht,disabled:lt,loading:ot,onClick:Ze,htmlType:It,children:et,className:qe,menu:vt,arrow:Me,autoFocus:Ue,overlay:He,trigger:ue,align:ut,open:Oe,onOpenChange:Je,placement:Ot,getPopupContainer:ye,href:fe,icon:dt=it.createElement(ve.Z,null),title:Zt,buttonsRender:bt=st=>st,mouseEnterDelay:me,mouseLeaveDelay:Te,overlayClassName:_e,overlayStyle:Nt,destroyPopupOnHide:xt,dropdownRender:zt}=Ne,Ae=he(Ne,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),$t=ze("dropdown",wt),ct=`${$t}-button`,ae={menu:vt,arrow:Me,autoFocus:Ue,align:ut,disabled:lt,trigger:lt?[]:ue,onOpenChange:Je,getPopupContainer:ye||Ge,mouseEnterDelay:me,mouseLeaveDelay:Te,overlayClassName:_e,overlayStyle:Nt,destroyPopupOnHide:xt,dropdownRender:zt},{compactSize:te,compactItemClassnames:ee}=(0,Ie.ri)($t,ft),oe=Se()(ct,ee,qe);"overlay"in Ne&&(ae.overlay=He),"open"in Ne&&(ae.open=Oe),"placement"in Ne?ae.placement=Ot:ae.placement=ft==="rtl"?"bottomLeft":"bottomRight";const se=it.createElement(Ee.ZP,{type:At,danger:ht,disabled:lt,loading:ot,onClick:Ze,htmlType:It,href:fe,title:Zt},et),ne=it.createElement(Ee.ZP,{type:At,danger:ht,icon:dt}),[pe,xe]=bt([se,ne]);return it.createElement(Xe.Z.Compact,Object.assign({className:oe,size:te,block:!0},Ae),pe,it.createElement(z.Z,Object.assign({},ae),xe))};Ye.__ANT_BUTTON=!0;var Ce=Ye;const St=z.Z;St.Button=Ce;var Ke=St},584:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return At}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Qe=ie(9017),Se=ie(17835),Ee=ie(57700),Xe=()=>{const[,ht]=(0,Ee.ZP)(),[lt]=(0,Qe.Z)("Empty"),Ze=new Se.FastColor(ht.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Ze,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(lt==null?void 0:lt.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,ht]=(0,Ee.ZP)(),[lt]=(0,Qe.Z)("Empty"),{colorFill:ot,colorFillTertiary:Ze,colorFillQuaternary:It,colorBgContainer:et}=ht,{borderColor:qe,shadowColor:vt,contentColor:Me}=(0,z.useMemo)(()=>({borderColor:new Se.FastColor(ot).onBackground(et).toHexString(),shadowColor:new Se.FastColor(Ze).onBackground(et).toHexString(),contentColor:new Se.FastColor(It).onBackground(et).toHexString()}),[ot,Ze,It,et]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(lt==null?void 0:lt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:vt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:qe},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:Me}))))},Ye=ie(16931),Ce=ie(51636);const St=ht=>{const{componentCls:lt,margin:ot,marginXS:Ze,marginXL:It,fontSize:et,lineHeight:qe}=ht;return{[lt]:{marginInline:Ze,fontSize:et,lineHeight:qe,textAlign:"center",[`${lt}-image`]:{height:ht.emptyImgHeight,marginBottom:Ze,opacity:ht.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${lt}-description`]:{color:ht.colorTextDescription},[`${lt}-footer`]:{marginTop:ot},"&-normal":{marginBlock:It,color:ht.colorTextDescription,[`${lt}-description`]:{color:ht.colorTextDescription},[`${lt}-image`]:{height:ht.emptyImgHeightMD}},"&-small":{marginBlock:Ze,color:ht.colorTextDescription,[`${lt}-image`]:{height:ht.emptyImgHeightSM}}}}};var Ke=(0,Ye.I$)("Empty",ht=>{const{componentCls:lt,controlHeightLG:ot,calc:Ze}=ht,It=(0,Ce.mergeToken)(ht,{emptyImgCls:`${lt}-img`,emptyImgHeight:Ze(ot).mul(2.5).equal(),emptyImgHeightMD:ot,emptyImgHeightSM:Ze(ot).mul(.875).equal()});return[St(It)]}),Ne=ie(48755),Ge=function(ht,lt){var ot={};for(var Ze in ht)Object.prototype.hasOwnProperty.call(ht,Ze)&<.indexOf(Ze)<0&&(ot[Ze]=ht[Ze]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Ze=Object.getOwnPropertySymbols(ht);It<Ze.length;It++)lt.indexOf(Ze[It])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ze[It])&&(ot[Ze[It]]=ht[Ze[It]]);return ot};const ze=z.createElement(Xe,null),ft=z.createElement(he,null),wt=ht=>{const{className:lt,rootClassName:ot,prefixCls:Ze,image:It=ze,description:et,children:qe,imageStyle:vt,style:Me,classNames:Ue,styles:He}=ht,ue=Ge(ht,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ut,direction:Oe,className:Je,style:Ot,classNames:ye,styles:fe}=(0,Ne.dj)("empty"),dt=ut("empty",Ze),[Zt,bt,me]=Ke(dt),[Te]=(0,Qe.Z)("Empty"),_e=typeof et!="undefined"?et:Te==null?void 0:Te.description,Nt=typeof _e=="string"?_e:"empty";let xt=null;return typeof It=="string"?xt=z.createElement("img",{alt:Nt,src:It}):xt=It,Zt(z.createElement("div",Object.assign({className:ve()(bt,me,dt,Je,{[`${dt}-normal`]:It===ft,[`${dt}-rtl`]:Oe==="rtl"},lt,ot,ye.root,Ue==null?void 0:Ue.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),Ot),He==null?void 0:He.root),Me)},ue),z.createElement("div",{className:ve()(`${dt}-image`,ye.image,Ue==null?void 0:Ue.image),style:Object.assign(Object.assign(Object.assign({},vt),fe.image),He==null?void 0:He.image)},xt),_e&&z.createElement("div",{className:ve()(`${dt}-description`,ye.description,Ue==null?void 0:Ue.description),style:Object.assign(Object.assign({},fe.description),He==null?void 0:He.description)},_e),qe&&z.createElement("div",{className:ve()(`${dt}-footer`,ye.footer,Ue==null?void 0:Ue.footer),style:Object.assign(Object.assign({},fe.footer),He==null?void 0:He.footer)},qe)))};wt.PRESENTED_IMAGE_DEFAULT=ze,wt.PRESENTED_IMAGE_SIMPLE=ft;var At=wt},28284:function(ln,Vt,ie){"use strict";ie.d(Vt,{default:function(){return Ve}});var z=ie(56553),it=ie(77654),ve=ie(59301),Qe=ie(92310),Se=ie.n(Qe),Ee=ie(77900),Le=ie(86641),Xe=ie(83397);function Ie(be){const[Re,we]=ve.useState(be);return ve.useEffect(()=>{const Fe=setTimeout(()=>{we(be)},be.length?0:10);return()=>{clearTimeout(Fe)}},[be]),Re}var he=ie(36237),Ye=ie(63356),Ce=ie(34925),St=ie(34961),Ke=ie(51636),Ne=ie(16931),ze=be=>{const{componentCls:Re}=be,we=`${Re}-show-help`,Fe=`${Re}-show-help-item`;return{[we]:{transition:`opacity ${be.motionDurationFast} ${be.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Fe]:{overflow:"hidden",transition:`height ${be.motionDurationFast} ${be.motionEaseInOut},
|
|
|
opacity ${be.motionDurationFast} ${be.motionEaseInOut},
|
|
|
transform ${be.motionDurationFast} ${be.motionEaseInOut} !important`,[`&${Fe}-appear, &${Fe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Fe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ft=be=>({legend:{display:"block",width:"100%",marginBottom:be.marginLG,padding:0,color:be.colorTextDescription,fontSize:be.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(be.lineWidth)} ${be.lineType} ${be.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,he.unit)(be.controlOutlineWidth)} ${be.controlOutline}`},output:{display:"block",paddingTop:15,color:be.colorText,fontSize:be.fontSize,lineHeight:be.lineHeight}}),wt=(be,Re)=>{const{formItemCls:we}=be;return{[we]:{[`${we}-label > label`]:{height:Re},[`${we}-control-input`]:{minHeight:Re}}}},At=be=>{const{componentCls:Re}=be;return{[be.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(be)),ft(be)),{[`${Re}-text`]:{display:"inline-block",paddingInlineEnd:be.paddingSM},"&-small":Object.assign({},wt(be,be.controlHeightSM)),"&-large":Object.assign({},wt(be,be.controlHeightLG))})}},ht=be=>{const{formItemCls:Re,iconCls:we,rootPrefixCls:Fe,antCls:mt,labelRequiredMarkColor:on,labelColor:un,labelFontSize:gn,labelHeight:Xt,labelColonMarginInlineStart:Bt,labelColonMarginInlineEnd:Pt,itemMarginBottom:fn}=be;return{[Re]:Object.assign(Object.assign({},(0,Ye.Wf)(be)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${mt}-row`]:{display:"none"},"&-has-warning":{[`${Re}-split`]:{color:be.colorError}},"&-has-error":{[`${Re}-split`]:{color:be.colorWarning}},[`${Re}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:be.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Xt,color:un,fontSize:gn,[`> ${we}`]:{fontSize:be.fontSize,verticalAlign:"top"},[`&${Re}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:be.marginXXS,color:on,fontSize:be.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:be.marginXXS,color:be.colorTextDescription,[`&${Re}-required-mark-hidden`]:{display:"none"}},[`${Re}-tooltip`]:{color:be.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:be.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Bt,marginInlineEnd:Pt},[`&${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:be.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Re]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:be.colorTextDescription,fontSize:be.fontSize,lineHeight:be.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:be.controlHeightSM,transition:`color ${be.motionDurationMid} ${be.motionEaseOut}`},"&-explain":{"&-error":{color:be.colorError},"&-warning":{color:be.colorWarning}}},[`&-with-help ${Re}-explain`]:{height:"auto",opacity:1},[`${Re}-feedback-icon`]:{fontSize:be.fontSize,textAlign:"center",visibility:"visible",animationName:Ce.kr,animationDuration:be.motionDurationMid,animationTimingFunction:be.motionEaseOutBack,pointerEvents:"none","&-success":{color:be.colorSuccess},"&-error":{color:be.colorError},"&-warning":{color:be.colorWarning},"&-validating":{color:be.colorPrimary}}})}},lt=(be,Re)=>{const{formItemCls:we}=be;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"}}}}},ot=be=>{const{componentCls:Re,formItemCls:we,inlineItemMarginBottom:Fe}=be;return{[`${Re}-inline`]:{display:"flex",flexWrap:"wrap",[we]:{flex:"none",marginInlineEnd:be.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"}}}}},Ze=be=>({padding:be.verticalLabelPadding,margin:be.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),It=be=>{const{componentCls:Re,formItemCls:we,rootPrefixCls:Fe}=be;return{[`${we} ${we}-label`]:Ze(be),[`${Re}:not(${Re}-inline)`]:{[we]:{flexWrap:"wrap",[`${we}-label, ${we}-control`]:{[`&:not([class*=" ${Fe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},et=be=>{const{componentCls:Re,formItemCls:we,antCls:Fe}=be;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`]:Ze(be)}},[`@media (max-width: ${(0,he.unit)(be.screenXSMax)})`]:[It(be),{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-xs-24${we}-label`]:Ze(be)}}}],[`@media (max-width: ${(0,he.unit)(be.screenSMMax)})`]:{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-sm-24${we}-label`]:Ze(be)}}},[`@media (max-width: ${(0,he.unit)(be.screenMDMax)})`]:{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-md-24${we}-label`]:Ze(be)}}},[`@media (max-width: ${(0,he.unit)(be.screenLGMax)})`]:{[Re]:{[`${we}:not(${we}-horizontal)`]:{[`${Fe}-col-lg-24${we}-label`]:Ze(be)}}}}},qe=be=>{const{formItemCls:Re,antCls:we}=be;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`]:Ze(be),[`@media (max-width: ${(0,he.unit)(be.screenXSMax)})`]:[It(be),{[Re]:{[`${we}-col-xs-24${Re}-label`]:Ze(be)}}],[`@media (max-width: ${(0,he.unit)(be.screenSMMax)})`]:{[Re]:{[`${we}-col-sm-24${Re}-label`]:Ze(be)}},[`@media (max-width: ${(0,he.unit)(be.screenMDMax)})`]:{[Re]:{[`${we}-col-md-24${Re}-label`]:Ze(be)}},[`@media (max-width: ${(0,he.unit)(be.screenLGMax)})`]:{[Re]:{[`${we}-col-lg-24${Re}-label`]:Ze(be)}}}},vt=be=>({labelRequiredMarkColor:be.colorError,labelColor:be.colorTextHeading,labelFontSize:be.fontSize,labelHeight:be.controlHeight,labelColonMarginInlineStart:be.marginXXS/2,labelColonMarginInlineEnd:be.marginXS,itemMarginBottom:be.marginLG,verticalLabelPadding:`0 0 ${be.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(be,Re)=>(0,Ke.mergeToken)(be,{formItemCls:`${be.componentCls}-item`,rootPrefixCls:Re});var Ue=(0,Ne.I$)("Form",(be,Re)=>{let{rootPrefixCls:we}=Re;const Fe=Me(be,we);return[At(Fe),ht(Fe),ze(Fe),lt(Fe,Fe.componentCls),lt(Fe,Fe.formItemCls),ot(Fe),et(Fe),qe(Fe),(0,St.Z)(Fe),Ce.kr]},vt,{order:-1e3});const He=[];function ue(be,Re,we){let Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof be=="string"?be:`${Re}-${Fe}`,error:be,errorStatus:we}}var Oe=be=>{let{help:Re,helpStatus:we,errors:Fe=He,warnings:mt=He,className:on,fieldId:un,onVisibleChanged:gn}=be;const{prefixCls:Xt}=ve.useContext(z.Rk),Bt=`${Xt}-item-explain`,Pt=(0,Xe.Z)(Xt),[fn,Bn,Dn]=Ue(Xt,Pt),Tn=ve.useMemo(()=>(0,Le.Z)(Xt),[Xt]),Xn=Ie(Fe),Qn=Ie(mt),Jn=ve.useMemo(()=>Re!=null?[ue(Re,"help",we)]:[].concat((0,it.Z)(Xn.map((Wn,Un)=>ue(Wn,"error","error",Un))),(0,it.Z)(Qn.map((Wn,Un)=>ue(Wn,"warning","warning",Un)))),[Re,we,Xn,Qn]),Zn=ve.useMemo(()=>{const Wn={};return Jn.forEach(Un=>{let{key:ur}=Un;Wn[ur]=(Wn[ur]||0)+1}),Jn.map((Un,ur)=>Object.assign(Object.assign({},Un),{key:Wn[Un.key]>1?`${Un.key}-fallback-${ur}`:Un.key}))},[Jn]),Fn={};return un&&(Fn.id=`${un}_help`),fn(ve.createElement(Ee.default,{motionDeadline:Tn.motionDeadline,motionName:`${Xt}-show-help`,visible:!!Zn.length,onVisibleChanged:gn},Wn=>{const{className:Un,style:ur}=Wn;return ve.createElement("div",Object.assign({},Fn,{className:Se()(Bt,Un,Dn,Pt,on,Bn),style:ur}),ve.createElement(Ee.CSSMotionList,Object.assign({keys:Zn},(0,Le.Z)(Xt),{motionName:`${Xt}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:vr}=qn;return ve.createElement("div",{key:lr,className:Se()(tr,{[`${Bt}-${er}`]:er}),style:vr},ir)}))}))},Je=ie(69180),Ot=ie(48755),ye=ie(2171),fe=ie(31756),dt=ie(23069),Zt=ie(76846),bt=ie(16722);const me=["parentNode"],Te="form_item";function _e(be){return be===void 0||be===!1?[]:Array.isArray(be)?be:[be]}function Nt(be,Re){if(!be.length)return;const we=be.join("_");return Re?`${Re}_${we}`:me.includes(we)?`${Te}_${we}`:we}function xt(be,Re,we,Fe,mt,on){let un=Fe;return on!==void 0?un=on:we.validating?un="validating":be.length?un="error":Re.length?un="warning":(we.touched||mt&&we.validated)&&(un="success"),un}var zt=function(be,Re){var we={};for(var Fe in be)Object.prototype.hasOwnProperty.call(be,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=be[Fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Fe=Object.getOwnPropertySymbols(be);mt<Fe.length;mt++)Re.indexOf(Fe[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,Fe[mt])&&(we[Fe[mt]]=be[Fe[mt]]);return we};function Ae(be){return _e(be).join("_")}function $t(be,Re){const we=Re.getFieldInstance(be),Fe=(0,Zt.bn)(we);if(Fe)return Fe;const mt=Nt(_e(be),Re.__INTERNAL__.name);if(mt)return document.getElementById(mt)}function ct(be){const[Re]=(0,Je.useForm)(),we=ve.useRef({}),Fe=ve.useMemo(()=>be!=null?be:Object.assign(Object.assign({},Re),{__INTERNAL__:{itemRef:mt=>on=>{const un=Ae(mt);on?we.current[un]=on:delete we.current[un]}},scrollToField:function(mt){let on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:un}=on,gn=zt(on,["focus"]),Xt=$t(mt,Fe);Xt&&((0,bt.Z)(Xt,Object.assign({scrollMode:"if-needed",block:"nearest"},gn)),un&&Fe.focusField(mt))},focusField:mt=>{var on,un;const gn=Fe.getFieldInstance(mt);typeof(gn==null?void 0:gn.focus)=="function"?gn.focus():(un=(on=$t(mt,Fe))===null||on===void 0?void 0:on.focus)===null||un===void 0||un.call(on)},getFieldInstance:mt=>{const on=Ae(mt);return we.current[on]}}),[be,Re]);return[Fe]}var ae=ie(98350),te=function(be,Re){var we={};for(var Fe in be)Object.prototype.hasOwnProperty.call(be,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=be[Fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Fe=Object.getOwnPropertySymbols(be);mt<Fe.length;mt++)Re.indexOf(Fe[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,Fe[mt])&&(we[Fe[mt]]=be[Fe[mt]]);return we};const ee=(be,Re)=>{const we=ve.useContext(ye.Z),{getPrefixCls:Fe,direction:mt,requiredMark:on,colon:un,scrollToFirstError:gn,className:Xt,style:Bt}=(0,Ot.dj)("form"),{prefixCls:Pt,className:fn,rootClassName:Bn,size:Dn,disabled:Tn=we,form:Xn,colon:Qn,labelAlign:Jn,labelWrap:Zn,labelCol:Fn,wrapperCol:Wn,hideRequiredMark:Un,layout:ur="horizontal",scrollToFirstError:qn,requiredMark:lr,onFinishFailed:ir,name:er,style:tr,feedbackIcons:vr,variant:mr}=be,cr=te(be,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),gr=(0,fe.Z)(Dn),Cr=ve.useContext(ae.Z),or=ve.useMemo(()=>lr!==void 0?lr:Un?!1:on!==void 0?on:!0,[Un,lr,on]),dr=Qn!=null?Qn:un,Gn=Fe("form",Pt),Sr=(0,Xe.Z)(Gn),[Rr,Wr,Er]=Ue(Gn,Sr),Ar=Se()(Gn,`${Gn}-${ur}`,{[`${Gn}-hide-required-mark`]:or===!1,[`${Gn}-rtl`]:mt==="rtl",[`${Gn}-${gr}`]:gr},Er,Sr,Wr,Xt,fn,Bn),[Ir]=ct(Xn),{__INTERNAL__:Dr}=Ir;Dr.name=er;const zr=ve.useMemo(()=>({name:er,labelAlign:Jn,labelCol:Fn,labelWrap:Zn,wrapperCol:Wn,vertical:ur==="vertical",colon:dr,requiredMark:or,itemRef:Dr.itemRef,form:Ir,feedbackIcons:vr}),[er,Jn,Fn,Wn,ur,dr,or,Ir,vr]),fr=ve.useRef(null);ve.useImperativeHandle(Re,()=>{var En;return Object.assign(Object.assign({},Ir),{nativeElement:(En=fr.current)===null||En===void 0?void 0:En.nativeElement})});const Yn=(En,Cn)=>{if(En){let sn={block:"nearest"};typeof En=="object"&&(sn=Object.assign(Object.assign({},sn),En)),Ir.scrollToField(Cn,sn)}},pn=En=>{if(ir==null||ir(En),En.errorFields.length){const Cn=En.errorFields[0].name;if(qn!==void 0){Yn(qn,Cn);return}gn!==void 0&&Yn(gn,Cn)}};return Rr(ve.createElement(z.pg.Provider,{value:mr},ve.createElement(ye.n,{disabled:Tn},ve.createElement(dt.Z.Provider,{value:gr},ve.createElement(z.RV,{validateMessages:Cr},ve.createElement(z.q3.Provider,{value:zr},ve.createElement(Je.default,Object.assign({id:er},cr,{name:er,onFinishFailed:pn,form:Ir,ref:fr,style:Object.assign(Object.assign({},Bt),tr),className:Ar}))))))))};var se=ve.forwardRef(ee),ne=ie(41799),pe=ie(8654),xe=ie(22703),st=ie(32383),Pe=ie(11592);function je(be){if(typeof be=="function")return be;const Re=(0,Pe.Z)(be);return Re.length<=1?Re[0]:Re}const rt=()=>{const{status:be,errors:Re=[],warnings:we=[]}=ve.useContext(z.aM);return{status:be,errors:Re,warnings:we}};rt.Context=z.aM;var yt=rt,gt=ie(16089);function Kt(be){const[Re,we]=ve.useState(be),Fe=ve.useRef(null),mt=ve.useRef([]),on=ve.useRef(!1);ve.useEffect(()=>(on.current=!1,()=>{on.current=!0,gt.Z.cancel(Fe.current),Fe.current=null}),[]);function un(gn){on.current||(Fe.current===null&&(mt.current=[],Fe.current=(0,gt.Z)(()=>{Fe.current=null,we(Xt=>{let Bt=Xt;return mt.current.forEach(Pt=>{Bt=Pt(Bt)}),Bt})})),mt.current.push(gn))}return[Re,un]}function jt(){const{itemRef:be}=ve.useContext(z.q3),Re=ve.useRef({});function we(Fe,mt){const on=mt&&typeof mt=="object"&&(0,pe.C4)(mt),un=Fe.join("_");return(Re.current.name!==un||Re.current.originRef!==on)&&(Re.current.name=un,Re.current.originRef=on,Re.current.ref=(0,pe.sQ)(be(Fe),on)),Re.current.ref}return we}var Ht=ie(29194),tn=ie(34280),Qt=ie(2738),nn=ie(65970),Ct=ie(70425),qt=ie(5472);const Wt=be=>{const{formItemCls:Re}=be;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Re}-control`]:{display:"flex"}}}};var De=(0,Ne.bk)(["Form","item-item"],(be,Re)=>{let{rootPrefixCls:we}=Re;const Fe=Me(be,we);return[Wt(Fe)]}),tt=function(be,Re){var we={};for(var Fe in be)Object.prototype.hasOwnProperty.call(be,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=be[Fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Fe=Object.getOwnPropertySymbols(be);mt<Fe.length;mt++)Re.indexOf(Fe[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,Fe[mt])&&(we[Fe[mt]]=be[Fe[mt]]);return we};const Tt=24;var ke=be=>{const{prefixCls:Re,status:we,labelCol:Fe,wrapperCol:mt,children:on,errors:un,warnings:gn,_internalItemRender:Xt,extra:Bt,help:Pt,fieldId:fn,marginBottom:Bn,onErrorVisibleChanged:Dn,label:Tn}=be,Xn=`${Re}-item`,Qn=ve.useContext(z.q3),Jn=ve.useMemo(()=>{let cr=Object.assign({},mt||Qn.wrapperCol||{});return Tn===null&&!Fe&&!mt&&Qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,Ct.U2)(Qn.labelCol,or),Gn=typeof dr=="object"?dr:{},Sr=(0,Ct.U2)(cr,or),Rr=typeof Sr=="object"?Sr:{};"span"in Gn&&!("offset"in Rr)&&Gn.span<Tt&&(cr=(0,Ct.t8)(cr,[].concat(or,["offset"]),Gn.span))}),cr},[mt,Qn]),Zn=Se()(`${Xn}-control`,Jn.className),Fn=ve.useMemo(()=>{const{labelCol:cr,wrapperCol:gr}=Qn;return tt(Qn,["labelCol","wrapperCol"])},[Qn]),Wn=ve.useRef(null),[Un,ur]=ve.useState(0);(0,tn.Z)(()=>{Bt&&Wn.current?ur(Wn.current.clientHeight):ur(0)},[Bt]);const qn=ve.createElement("div",{className:`${Xn}-control-input`},ve.createElement("div",{className:`${Xn}-control-input-content`},on)),lr=ve.useMemo(()=>({prefixCls:Re,status:we}),[Re,we]),ir=Bn!==null||un.length||gn.length?ve.createElement(z.Rk.Provider,{value:lr},ve.createElement(Oe,{fieldId:fn,errors:un,warnings:gn,help:Pt,helpStatus:we,className:`${Xn}-explain-connected`,onVisibleChanged:Dn})):null,er={};fn&&(er.id=`${fn}_extra`);const tr=Bt?ve.createElement("div",Object.assign({},er,{className:`${Xn}-extra`,ref:Wn}),Bt):null,vr=ir||tr?ve.createElement("div",{className:`${Xn}-additional`,style:Bn?{minHeight:Bn+Un}:{}},ir,tr):null,mr=Xt&&Xt.mark==="pro_table_render"&&Xt.render?Xt.render(be,{input:qn,errorList:ir,extra:tr}):ve.createElement(ve.Fragment,null,qn,vr);return ve.createElement(z.q3.Provider,{value:Fn},ve.createElement(qt.Z,Object.assign({},Jn,{className:Zn}),mr),ve.createElement(De,{prefixCls:Re}))},$e=ie(61485),at=ie(9017),Et=ie(85981),Gt=ie(25399),an=function(be,Re){var we={};for(var Fe in be)Object.prototype.hasOwnProperty.call(be,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=be[Fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Fe=Object.getOwnPropertySymbols(be);mt<Fe.length;mt++)Re.indexOf(Fe[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,Fe[mt])&&(we[Fe[mt]]=be[Fe[mt]]);return we};function In(be){return be?typeof be=="object"&&!ve.isValidElement(be)?be:{title:be}:null}var rn=be=>{let{prefixCls:Re,label:we,htmlFor:Fe,labelCol:mt,labelAlign:on,colon:un,required:gn,requiredMark:Xt,tooltip:Bt,vertical:Pt}=be;var fn;const[Bn]=(0,at.Z)("Form"),{labelAlign:Dn,labelCol:Tn,labelWrap:Xn,colon:Qn}=ve.useContext(z.q3);if(!we)return null;const Jn=mt||Tn||{},Zn=on||Dn,Fn=`${Re}-item-label`,Wn=Se()(Fn,Zn==="left"&&`${Fn}-left`,Jn.className,{[`${Fn}-wrap`]:!!Xn});let Un=we;const ur=un===!0||Qn!==!1&&un!==!1;ur&&!Pt&&typeof we=="string"&&we.trim()&&(Un=we.replace(/[:|:]\s*$/,""));const lr=In(Bt);if(lr){const{icon:cr=ve.createElement($e.Z,null)}=lr,gr=an(lr,["icon"]),Cr=ve.createElement(Gt.Z,Object.assign({},gr),ve.cloneElement(cr,{className:`${Re}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Un=ve.createElement(ve.Fragment,null,Un,Cr)}const ir=Xt==="optional",er=typeof Xt=="function",tr=Xt===!1;er?Un=Xt(Un,{required:!!gn}):ir&&!gn&&(Un=ve.createElement(ve.Fragment,null,Un,ve.createElement("span",{className:`${Re}-item-optional`,title:""},(Bn==null?void 0:Bn.optional)||((fn=Et.Z.Form)===null||fn===void 0?void 0:fn.optional))));let vr;tr?vr="hidden":(ir||er)&&(vr="optional");const mr=Se()({[`${Re}-item-required`]:gn,[`${Re}-item-required-mark-${vr}`]:vr,[`${Re}-item-no-colon`]:!ur});return ve.createElement(qt.Z,Object.assign({},Jn,{className:Wn}),ve.createElement("label",{htmlFor:Fe,className:mr,title:typeof we=="string"?we:""},Un))},bn=ie(29679),dn=ie(19248),_t=ie(96512),Mt=ie(58617);const Dt={success:bn.Z,warning:_t.Z,error:dn.Z,validating:Mt.Z};function pt(be){let{children:Re,errors:we,warnings:Fe,hasFeedback:mt,validateStatus:on,prefixCls:un,meta:gn,noStyle:Xt}=be;const Bt=`${un}-item`,{feedbackIcons:Pt}=ve.useContext(z.q3),fn=xt(we,Fe,gn,null,!!mt,on),{isFormItemInput:Bn,status:Dn,hasFeedback:Tn,feedbackIcon:Xn}=ve.useContext(z.aM),Qn=ve.useMemo(()=>{var Jn;let Zn;if(mt){const Wn=mt!==!0&&mt.icons||Pt,Un=fn&&((Jn=Wn==null?void 0:Wn({status:fn,errors:we,warnings:Fe}))===null||Jn===void 0?void 0:Jn[fn]),ur=fn&&Dt[fn];Zn=Un!==!1&&ur?ve.createElement("span",{className:Se()(`${Bt}-feedback-icon`,`${Bt}-feedback-icon-${fn}`)},Un||ve.createElement(ur,null)):null}const Fn={status:fn||"",errors:we,warnings:Fe,hasFeedback:!!mt,feedbackIcon:Zn,isFormItemInput:!0};return Xt&&(Fn.status=(fn!=null?fn:Dn)||"",Fn.isFormItemInput=Bn,Fn.hasFeedback=!!(mt!=null?mt:Tn),Fn.feedbackIcon=mt!==void 0?Fn.feedbackIcon:Xn),Fn},[fn,mt,Xt,Bn,Dn]);return ve.createElement(z.aM.Provider,{value:Qn},Re)}var en=function(be,Re){var we={};for(var Fe in be)Object.prototype.hasOwnProperty.call(be,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=be[Fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Fe=Object.getOwnPropertySymbols(be);mt<Fe.length;mt++)Re.indexOf(Fe[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,Fe[mt])&&(we[Fe[mt]]=be[Fe[mt]]);return we};function Yt(be){const{prefixCls:Re,className:we,rootClassName:Fe,style:mt,help:on,errors:un,warnings:gn,validateStatus:Xt,meta:Bt,hasFeedback:Pt,hidden:fn,children:Bn,fieldId:Dn,required:Tn,isRequired:Xn,onSubItemMetaChange:Qn,layout:Jn}=be,Zn=en(be,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Fn=`${Re}-item`,{requiredMark:Wn,vertical:Un}=ve.useContext(z.q3),ur=Un||Jn==="vertical",qn=ve.useRef(null),lr=Ie(un),ir=Ie(gn),er=on!=null,tr=!!(er||un.length||gn.length),vr=!!qn.current&&(0,Ht.Z)(qn.current),[mr,cr]=ve.useState(null);(0,tn.Z)(()=>{if(tr&&qn.current){const Gn=getComputedStyle(qn.current);cr(parseInt(Gn.marginBottom,10))}},[tr,vr]);const gr=Gn=>{Gn||cr(null)},or=function(){let Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Sr=Gn?lr:Bt.errors,Rr=Gn?ir:Bt.warnings;return xt(Sr,Rr,Bt,"",!!Pt,Xt)}(),dr=Se()(Fn,we,Fe,{[`${Fn}-with-help`]:er||lr.length||ir.length,[`${Fn}-has-feedback`]:or&&Pt,[`${Fn}-has-success`]:or==="success",[`${Fn}-has-warning`]:or==="warning",[`${Fn}-has-error`]:or==="error",[`${Fn}-is-validating`]:or==="validating",[`${Fn}-hidden`]:fn,[`${Fn}-${Jn}`]:Jn});return ve.createElement("div",{className:dr,style:mt,ref:qn},ve.createElement(nn.Z,Object.assign({className:`${Fn}-row`},(0,Qt.Z)(Zn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ve.createElement(rn,Object.assign({htmlFor:Dn},be,{requiredMark:Wn,required:Tn!=null?Tn:Xn,prefixCls:Re,vertical:ur})),ve.createElement(ke,Object.assign({},be,Bt,{errors:lr,warnings:ir,prefixCls:Re,status:or,help:on,marginBottom:mr,onErrorVisibleChanged:gr}),ve.createElement(z.qI.Provider,{value:Qn},ve.createElement(pt,{prefixCls:Re,meta:Bt,errors:Bt.errors,warnings:Bt.warnings,hasFeedback:Pt,validateStatus:or},Bn)))),!!mr&&ve.createElement("div",{className:`${Fn}-margin-offset`,style:{marginBottom:-mr}}))}const Jt="__SPLIT__",vn=null;function wn(be,Re){const we=Object.keys(be),Fe=Object.keys(Re);return we.length===Fe.length&&we.every(mt=>{const on=be[mt],un=Re[mt];return on===un||typeof on=="function"||typeof un=="function"})}const Sn=ve.memo(be=>{let{children:Re}=be;return Re},(be,Re)=>wn(be.control,Re.control)&&be.update===Re.update&&be.childProps.length===Re.childProps.length&&be.childProps.every((we,Fe)=>we===Re.childProps[Fe]));function On(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Mn(be){const{name:Re,noStyle:we,className:Fe,dependencies:mt,prefixCls:on,shouldUpdate:un,rules:gn,children:Xt,required:Bt,label:Pt,messageVariables:fn,trigger:Bn="onChange",validateTrigger:Dn,hidden:Tn,help:Xn,layout:Qn}=be,{getPrefixCls:Jn}=ve.useContext(Ot.E_),{name:Zn}=ve.useContext(z.q3),Fn=je(Xt),Wn=typeof Fn=="function",Un=ve.useContext(z.qI),{validateTrigger:ur}=ve.useContext(Je.FieldContext),qn=Dn!==void 0?Dn:ur,lr=Re!=null,ir=Jn("form",on),er=(0,Xe.Z)(ir),[tr,vr,mr]=Ue(ir,er),cr=(0,st.ln)("Form.Item"),gr=ve.useContext(Je.ListContext),Cr=ve.useRef(null),[or,dr]=Kt({}),[Gn,Sr]=(0,ne.Z)(()=>On()),Rr=fr=>{const Yn=gr==null?void 0:gr.getKey(fr.name);if(Sr(fr.destroy?On():fr,!0),we&&Xn!==!1&&Un){let pn=fr.name;if(fr.destroy)pn=Cr.current||pn;else if(Yn!==void 0){const[En,Cn]=Yn;pn=[En].concat((0,it.Z)(Cn)),Cr.current=pn}Un(fr,pn)}},Wr=(fr,Yn)=>{dr(pn=>{const En=Object.assign({},pn),sn=[].concat((0,it.Z)(fr.name.slice(0,-1)),(0,it.Z)(Yn)).join(Jt);return fr.destroy?delete En[sn]:En[sn]=fr,En})},[Er,Ar]=ve.useMemo(()=>{const fr=(0,it.Z)(Gn.errors),Yn=(0,it.Z)(Gn.warnings);return Object.values(or).forEach(pn=>{fr.push.apply(fr,(0,it.Z)(pn.errors||[])),Yn.push.apply(Yn,(0,it.Z)(pn.warnings||[]))}),[fr,Yn]},[or,Gn.errors,Gn.warnings]),Ir=jt();function Dr(fr,Yn,pn){return we&&!Tn?ve.createElement(pt,{prefixCls:ir,hasFeedback:be.hasFeedback,validateStatus:be.validateStatus,meta:Gn,errors:Er,warnings:Ar,noStyle:!0},fr):ve.createElement(Yt,Object.assign({key:"row"},be,{className:Se()(Fe,mr,er,vr),prefixCls:ir,fieldId:Yn,isRequired:pn,errors:Er,warnings:Ar,meta:Gn,onSubItemMetaChange:Wr,layout:Qn}),fr)}if(!lr&&!Wn&&!mt)return tr(Dr(Fn));let zr={};return typeof Pt=="string"?zr.label=Pt:Re&&(zr.label=String(Re)),fn&&(zr=Object.assign(Object.assign({},zr),fn)),tr(ve.createElement(Je.Field,Object.assign({},be,{messageVariables:zr,trigger:Bn,validateTrigger:qn,onMetaChange:Rr}),(fr,Yn,pn)=>{const En=_e(Re).length&&Yn?Yn.name:[],Cn=Nt(En,Zn),sn=Bt!==void 0?Bt:!!(gn!=null&&gn.some(mn=>{if(mn&&typeof mn=="object"&&mn.required&&!mn.warningOnly)return!0;if(typeof mn=="function"){const yn=mn(pn);return(yn==null?void 0:yn.required)&&!(yn!=null&&yn.warningOnly)}return!1})),zn=Object.assign({},fr);let _n=null;if(Array.isArray(Fn)&&lr)_n=Fn;else if(!(Wn&&(!(un||mt)||lr))){if(!(mt&&!Wn&&!lr))if(ve.isValidElement(Fn)){const mn=Object.assign(Object.assign({},Fn.props),zn);if(mn.id||(mn.id=Cn),Xn||Er.length>0||Ar.length>0||be.extra){const Rn=[];(Xn||Er.length>0)&&Rn.push(`${Cn}_help`),be.extra&&Rn.push(`${Cn}_extra`),mn["aria-describedby"]=Rn.join(" ")}Er.length>0&&(mn["aria-invalid"]="true"),sn&&(mn["aria-required"]="true"),(0,pe.Yr)(Fn)&&(mn.ref=Ir(En,Fn)),new Set([].concat((0,it.Z)(_e(Bn)),(0,it.Z)(_e(qn)))).forEach(Rn=>{mn[Rn]=function(){for(var rr,kr,br,Or,Pr,Tr=arguments.length,Hr=new Array(Tr),Br=0;Br<Tr;Br++)Hr[Br]=arguments[Br];(br=zn[Rn])===null||br===void 0||(rr=br).call.apply(rr,[zn].concat(Hr)),(Pr=(Or=Fn.props)[Rn])===null||Pr===void 0||(kr=Pr).call.apply(kr,[Or].concat(Hr))}});const Nn=[mn["aria-required"],mn["aria-invalid"],mn["aria-describedby"]];_n=ve.createElement(Sn,{control:zn,update:Fn,childProps:Nn},(0,xe.Tm)(Fn,mn))}else Wn&&(un||mt)&&!lr?_n=Fn(pn):_n=Fn}return Dr(_n,Cn,sn)}))}const jn=Mn;jn.useStatus=yt;var An=jn,kt=function(be,Re){var we={};for(var Fe in be)Object.prototype.hasOwnProperty.call(be,Fe)&&Re.indexOf(Fe)<0&&(we[Fe]=be[Fe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Fe=Object.getOwnPropertySymbols(be);mt<Fe.length;mt++)Re.indexOf(Fe[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,Fe[mt])&&(we[Fe[mt]]=be[Fe[mt]]);return we},xn=be=>{var{prefixCls:Re,children:we}=be,Fe=kt(be,["prefixCls","children"]);const{getPrefixCls:mt}=ve.useContext(Ot.E_),on=mt("form",Re),un=ve.useMemo(()=>({prefixCls:on,status:"error"}),[on]);return ve.createElement(Je.List,Object.assign({},Fe),(gn,Xt,Bt)=>ve.createElement(z.Rk.Provider,{value:un},we(gn.map(Pt=>Object.assign(Object.assign({},Pt),{fieldKey:Pt.key})),Xt,{errors:Bt.errors,warnings:Bt.warnings})))};function hn(){const{form:be}=ve.useContext(z.q3);return be}const Be=se;Be.Item=An,Be.List=xn,Be.ErrorList=Oe,Be.useForm=ct,Be.useFormInstance=hn,Be.useWatch=Je.useWatch,Be.Provider=z.RV,Be.create=()=>{};var Ve=Be},4875:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Rt}});var z=ie(59301),it=ie(84105),ve=ie(87395),Qe=ie(92310),Se=ie.n(Qe),Ee=ie(60499),Le=ie(18642),Xe=ie(43749),Ie=ie(72190),he=ie(42244),Ye=ie(38705),Ce=ie(17212);function St(){return typeof BigInt=="function"}function Ke(ke){return!ke&&ke!==0&&!Number.isNaN(ke)||!String(ke).trim()}function Ne(ke){var $e=ke.trim(),at=$e.startsWith("-");at&&($e=$e.slice(1)),$e=$e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),$e.startsWith(".")&&($e="0".concat($e));var Et=$e||"0",Gt=Et.split("."),an=Gt[0]||"0",In=Gt[1]||"0";an==="0"&&In==="0"&&(at=!1);var kn=at?"-":"";return{negative:at,negativeStr:kn,trimStr:Et,integerStr:an,decimalStr:In,fullStr:"".concat(kn).concat(Et)}}function Ge(ke){var $e=String(ke);return!Number.isNaN(Number($e))&&$e.includes("e")}function ze(ke){var $e=String(ke);if(Ge(ke)){var at=Number($e.slice($e.indexOf("e-")+2)),Et=$e.match(/\.(\d+)/);return Et!=null&&Et[1]&&(at+=Et[1].length),at}return $e.includes(".")&&wt($e)?$e.length-$e.indexOf(".")-1:0}function ft(ke){var $e=String(ke);if(Ge(ke)){if(ke>Number.MAX_SAFE_INTEGER)return String(St()?BigInt(ke).toString():Number.MAX_SAFE_INTEGER);if(ke<Number.MIN_SAFE_INTEGER)return String(St()?BigInt(ke).toString():Number.MIN_SAFE_INTEGER);$e=ke.toFixed(ze($e))}return Ne($e).fullStr}function wt(ke){return typeof ke=="number"?!Number.isNaN(ke):ke?/^\s*-?\d+(\.\d+)?\s*$/.test(ke)||/^\s*-?\d+\.\s*$/.test(ke)||/^\s*-?\.\d+\s*$/.test(ke):!1}var At=function(){function ke($e){if((0,Ye.Z)(this,ke),(0,Le.Z)(this,"origin",""),(0,Le.Z)(this,"negative",void 0),(0,Le.Z)(this,"integer",void 0),(0,Le.Z)(this,"decimal",void 0),(0,Le.Z)(this,"decimalLen",void 0),(0,Le.Z)(this,"empty",void 0),(0,Le.Z)(this,"nan",void 0),Ke($e)){this.empty=!0;return}if(this.origin=String($e),$e==="-"||Number.isNaN($e)){this.nan=!0;return}var at=$e;if(Ge(at)&&(at=Number(at)),at=typeof at=="string"?at:ft(at),wt(at)){var Et=Ne(at);this.negative=Et.negative;var Gt=Et.trimStr.split(".");this.integer=BigInt(Gt[0]);var an=Gt[1]||"0";this.decimal=BigInt(an),this.decimalLen=an.length}else this.nan=!0}return(0,Ce.Z)(ke,[{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(at){var Et="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(at,"0"));return BigInt(Et)}},{key:"negate",value:function(){var at=new ke(this.toString());return at.negative=!at.negative,at}},{key:"cal",value:function(at,Et,Gt){var an=Math.max(this.getDecimalStr().length,at.getDecimalStr().length),In=this.alignDecimal(an),kn=at.alignDecimal(an),rn=Et(In,kn).toString(),bn=Gt(an),dn=Ne(rn),_t=dn.negativeStr,Mt=dn.trimStr,Dt="".concat(_t).concat(Mt.padStart(bn+1,"0"));return new ke("".concat(Dt.slice(0,-bn),".").concat(Dt.slice(-bn)))}},{key:"add",value:function(at){if(this.isInvalidate())return new ke(at);var Et=new ke(at);return Et.isInvalidate()?this:this.cal(Et,function(Gt,an){return Gt+an},function(Gt){return Gt})}},{key:"multi",value:function(at){var Et=new ke(at);return this.isInvalidate()||Et.isInvalidate()?new ke(NaN):this.cal(Et,function(Gt,an){return Gt*an},function(Gt){return Gt*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(at){return this.toString()===(at==null?void 0:at.toString())}},{key:"lessEquals",value:function(at){return this.add(at.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return at?this.isInvalidate()?"":Ne("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ke}(),ht=function(){function ke($e){if((0,Ye.Z)(this,ke),(0,Le.Z)(this,"origin",""),(0,Le.Z)(this,"number",void 0),(0,Le.Z)(this,"empty",void 0),Ke($e)){this.empty=!0;return}this.origin=String($e),this.number=Number($e)}return(0,Ce.Z)(ke,[{key:"negate",value:function(){return new ke(-this.toNumber())}},{key:"add",value:function(at){if(this.isInvalidate())return new ke(at);var Et=Number(at);if(Number.isNaN(Et))return this;var Gt=this.number+Et;if(Gt>Number.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new ke(Number.MIN_SAFE_INTEGER);var an=Math.max(ze(this.number),ze(Et));return new ke(Gt.toFixed(an))}},{key:"multi",value:function(at){var Et=Number(at);if(this.isInvalidate()||Number.isNaN(Et))return new ke(NaN);var Gt=this.number*Et;if(Gt>Number.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new ke(Number.MIN_SAFE_INTEGER);var an=Math.max(ze(this.number),ze(Et));return new ke(Gt.toFixed(an))}},{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(at){return this.toNumber()===(at==null?void 0:at.toNumber())}},{key:"lessEquals",value:function(at){return this.add(at.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return at?this.isInvalidate()?"":ft(this.number):this.origin}}]),ke}();function lt(ke){return St()?new At(ke):new ht(ke)}function ot(ke,$e,at){var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ke==="")return"";var Gt=Ne(ke),an=Gt.negativeStr,In=Gt.integerStr,kn=Gt.decimalStr,rn="".concat($e).concat(kn),bn="".concat(an).concat(In);if(at>=0){var dn=Number(kn[at]);if(dn>=5&&!Et){var _t=lt(ke).add("".concat(an,"0.").concat("0".repeat(at)).concat(10-dn));return ot(_t.toString(),$e,at,Et)}return at===0?bn:"".concat(bn).concat($e).concat(kn.padEnd(at,"0").slice(0,at))}return rn===".0"?bn:"".concat(bn).concat(rn)}var Ze=lt,It=ie(36901),et=ie(34280);function qe(ke,$e){return typeof Proxy!="undefined"&&ke?new Proxy(ke,{get:function(Et,Gt){if($e[Gt])return $e[Gt];var an=Et[Gt];return typeof an=="function"?an.bind(Et):an}}):ke}var vt=ie(8654),Me=ie(48736);function Ue(ke,$e){var at=(0,z.useRef)(null);function Et(){try{var an=ke.selectionStart,In=ke.selectionEnd,kn=ke.value,rn=kn.substring(0,an),bn=kn.substring(In);at.current={start:an,end:In,value:kn,beforeTxt:rn,afterTxt:bn}}catch(dn){}}function Gt(){if(ke&&at.current&&$e)try{var an=ke.value,In=at.current,kn=In.beforeTxt,rn=In.afterTxt,bn=In.start,dn=an.length;if(an.startsWith(kn))dn=kn.length;else if(an.endsWith(rn))dn=an.length-at.current.afterTxt.length;else{var _t=kn[bn-1],Mt=an.indexOf(_t,bn-1);Mt!==-1&&(dn=Mt+1)}ke.setSelectionRange(dn,dn)}catch(Dt){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Dt.message))}}return[Et,Gt]}var He=ie(49658),ue=function(){var $e=(0,z.useState)(!1),at=(0,Ie.Z)($e,2),Et=at[0],Gt=at[1];return(0,et.Z)(function(){Gt((0,He.Z)())},[]),Et},ut=ue,Oe=ie(16089),Je=200,Ot=600;function ye(ke){var $e=ke.prefixCls,at=ke.upNode,Et=ke.downNode,Gt=ke.upDisabled,an=ke.downDisabled,In=ke.onStep,kn=z.useRef(),rn=z.useRef([]),bn=z.useRef();bn.current=In;var dn=function(){clearTimeout(kn.current)},_t=function(wn,Sn){wn.preventDefault(),dn(),bn.current(Sn);function On(){bn.current(Sn),kn.current=setTimeout(On,Je)}kn.current=setTimeout(On,Ot)};z.useEffect(function(){return function(){dn(),rn.current.forEach(function(vn){return Oe.Z.cancel(vn)})}},[]);var Mt=ut();if(Mt)return null;var Dt="".concat($e,"-handler"),pt=Se()(Dt,"".concat(Dt,"-up"),(0,Le.Z)({},"".concat(Dt,"-up-disabled"),Gt)),en=Se()(Dt,"".concat(Dt,"-down"),(0,Le.Z)({},"".concat(Dt,"-down-disabled"),an)),Yt=function(){return rn.current.push((0,Oe.Z)(dn))},Jt={unselectable:"on",role:"button",onMouseUp:Yt,onMouseLeave:Yt};return z.createElement("div",{className:"".concat(Dt,"-wrap")},z.createElement("span",(0,Ee.Z)({},Jt,{onMouseDown:function(wn){_t(wn,!0)},"aria-label":"Increase Value","aria-disabled":Gt,className:pt}),at||z.createElement("span",{unselectable:"on",className:"".concat($e,"-handler-up-inner")})),z.createElement("span",(0,Ee.Z)({},Jt,{onMouseDown:function(wn){_t(wn,!1)},"aria-label":"Decrease Value","aria-disabled":an,className:en}),Et||z.createElement("span",{unselectable:"on",className:"".concat($e,"-handler-down-inner")})))}function fe(ke){var $e=typeof ke=="number"?ft(ke):Ne(ke).fullStr,at=$e.includes(".");return at?Ne($e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ke+"0"}var dt=ie(30292),Zt=function(){var ke=(0,z.useRef)(0),$e=function(){Oe.Z.cancel(ke.current)};return(0,z.useEffect)(function(){return $e},[]),function(at){$e(),ke.current=(0,Oe.Z)(function(){at()})}},bt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Te=function($e,at){return $e||at.isEmpty()?at.toString():at.toNumber()},_e=function($e){var at=Ze($e);return at.isInvalidate()?null:at},Nt=z.forwardRef(function(ke,$e){var at=ke.prefixCls,Et=ke.className,Gt=ke.style,an=ke.min,In=ke.max,kn=ke.step,rn=kn===void 0?1:kn,bn=ke.defaultValue,dn=ke.value,_t=ke.disabled,Mt=ke.readOnly,Dt=ke.upHandler,pt=ke.downHandler,en=ke.keyboard,Yt=ke.changeOnWheel,Jt=Yt===void 0?!1:Yt,vn=ke.controls,wn=vn===void 0?!0:vn,Sn=ke.classNames,On=ke.stringMode,Mn=ke.parser,jn=ke.formatter,An=ke.precision,kt=ke.decimalSeparator,Ut=ke.onChange,xn=ke.onInput,hn=ke.onPressEnter,Be=ke.onStep,Ve=ke.changeOnBlur,be=Ve===void 0?!0:Ve,Re=ke.domRef,we=(0,he.Z)(ke,bt),Fe="".concat(at,"-input"),mt=z.useRef(null),on=z.useState(!1),un=(0,Ie.Z)(on,2),gn=un[0],Xt=un[1],Bt=z.useRef(!1),Pt=z.useRef(!1),fn=z.useRef(!1),Bn=z.useState(function(){return Ze(dn!=null?dn:bn)}),Dn=(0,Ie.Z)(Bn,2),Tn=Dn[0],Xn=Dn[1];function Qn(Cn){dn===void 0&&Xn(Cn)}var Jn=z.useCallback(function(Cn,sn){if(!sn)return An>=0?An:Math.max(ze(Cn),ze(rn))},[An,rn]),Zn=z.useCallback(function(Cn){var sn=String(Cn);if(Mn)return Mn(sn);var zn=sn;return kt&&(zn=zn.replace(kt,".")),zn.replace(/[^\w.-]+/g,"")},[Mn,kt]),Fn=z.useRef(""),Wn=z.useCallback(function(Cn,sn){if(jn)return jn(Cn,{userTyping:sn,input:String(Fn.current)});var zn=typeof Cn=="number"?ft(Cn):Cn;if(!sn){var _n=Jn(zn,sn);if(wt(zn)&&(kt||_n>=0)){var mn=kt||".";zn=ot(zn,mn,_n)}}return zn},[jn,Jn,kt]),Un=z.useState(function(){var Cn=bn!=null?bn:dn;return Tn.isInvalidate()&&["string","number"].includes((0,Xe.Z)(Cn))?Number.isNaN(Cn)?"":Cn:Wn(Tn.toString(),!1)}),ur=(0,Ie.Z)(Un,2),qn=ur[0],lr=ur[1];Fn.current=qn;function ir(Cn,sn){lr(Wn(Cn.isInvalidate()?Cn.toString(!1):Cn.toString(!sn),sn))}var er=z.useMemo(function(){return _e(In)},[In,An]),tr=z.useMemo(function(){return _e(an)},[an,An]),vr=z.useMemo(function(){return!er||!Tn||Tn.isInvalidate()?!1:er.lessEquals(Tn)},[er,Tn]),mr=z.useMemo(function(){return!tr||!Tn||Tn.isInvalidate()?!1:Tn.lessEquals(tr)},[tr,Tn]),cr=Ue(mt.current,gn),gr=(0,Ie.Z)(cr,2),Cr=gr[0],or=gr[1],dr=function(sn){return er&&!sn.lessEquals(er)?er:tr&&!tr.lessEquals(sn)?tr:null},Gn=function(sn){return!dr(sn)},Sr=function(sn,zn){var _n=sn,mn=Gn(_n)||_n.isEmpty();if(!_n.isEmpty()&&!zn&&(_n=dr(_n)||_n,mn=!0),!Mt&&!_t&&mn){var yn=_n.toString(),Nn=Jn(yn,zn);return Nn>=0&&(_n=Ze(ot(yn,".",Nn)),Gn(_n)||(_n=Ze(ot(yn,".",Nn,!0)))),_n.equals(Tn)||(Qn(_n),Ut==null||Ut(_n.isEmpty()?null:Te(On,_n)),dn===void 0&&ir(_n,zn)),_n}return Tn},Rr=Zt(),Wr=function Cn(sn){if(Cr(),Fn.current=sn,lr(sn),!Pt.current){var zn=Zn(sn),_n=Ze(zn);_n.isNaN()||Sr(_n,!0)}xn==null||xn(sn),Rr(function(){var mn=sn;Mn||(mn=sn.replace(/。/g,".")),mn!==sn&&Cn(mn)})},Er=function(){Pt.current=!0},Ar=function(){Pt.current=!1,Wr(mt.current.value)},Ir=function(sn){Wr(sn.target.value)},Dr=function(sn){var zn;if(!(sn&&vr||!sn&&mr)){Bt.current=!1;var _n=Ze(fn.current?fe(rn):rn);sn||(_n=_n.negate());var mn=(Tn||Ze(0)).add(_n.toString()),yn=Sr(mn,!1);Be==null||Be(Te(On,yn),{offset:fn.current?fe(rn):rn,type:sn?"up":"down"}),(zn=mt.current)===null||zn===void 0||zn.focus()}},zr=function(sn){var zn=Ze(Zn(qn)),_n;zn.isNaN()?_n=Sr(Tn,sn):_n=Sr(zn,sn),dn!==void 0?ir(Tn,!1):_n.isNaN()||ir(_n,!1)},fr=function(){Bt.current=!0},Yn=function(sn){var zn=sn.key,_n=sn.shiftKey;Bt.current=!0,fn.current=_n,zn==="Enter"&&(Pt.current||(Bt.current=!1),zr(!1),hn==null||hn(sn)),en!==!1&&!Pt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(zn)&&(Dr(zn==="Up"||zn==="ArrowUp"),sn.preventDefault())},pn=function(){Bt.current=!1,fn.current=!1};z.useEffect(function(){if(Jt&&gn){var Cn=function(_n){Dr(_n.deltaY<0),_n.preventDefault()},sn=mt.current;if(sn)return sn.addEventListener("wheel",Cn,{passive:!1}),function(){return sn.removeEventListener("wheel",Cn)}}});var En=function(){be&&zr(!1),Xt(!1),Bt.current=!1};return(0,et.o)(function(){Tn.isInvalidate()||ir(Tn,!1)},[An,jn]),(0,et.o)(function(){var Cn=Ze(dn);Xn(Cn);var sn=Ze(Zn(qn));(!Cn.equals(sn)||!Bt.current||jn)&&ir(Cn,Bt.current)},[dn]),(0,et.o)(function(){jn&&or()},[qn]),z.createElement("div",{ref:Re,className:Se()(at,Et,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(at,"-focused"),gn),"".concat(at,"-disabled"),_t),"".concat(at,"-readonly"),Mt),"".concat(at,"-not-a-number"),Tn.isNaN()),"".concat(at,"-out-of-range"),!Tn.isInvalidate()&&!Gn(Tn))),style:Gt,onFocus:function(){Xt(!0)},onBlur:En,onKeyDown:Yn,onKeyUp:pn,onCompositionStart:Er,onCompositionEnd:Ar,onBeforeInput:fr},wn&&z.createElement(ye,{prefixCls:at,upNode:Dt,downNode:pt,upDisabled:vr,downDisabled:mr,onStep:Dr}),z.createElement("div",{className:"".concat(Fe,"-wrap")},z.createElement("input",(0,Ee.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":an,"aria-valuemax":In,"aria-valuenow":Tn.isInvalidate()?null:Tn.toString(),step:rn},we,{ref:(0,vt.sQ)(mt,$e),className:Fe,value:qn,onChange:Ir,disabled:_t,readOnly:Mt}))))}),xt=z.forwardRef(function(ke,$e){var at=ke.disabled,Et=ke.style,Gt=ke.prefixCls,an=Gt===void 0?"rc-input-number":Gt,In=ke.value,kn=ke.prefix,rn=ke.suffix,bn=ke.addonBefore,dn=ke.addonAfter,_t=ke.className,Mt=ke.classNames,Dt=(0,he.Z)(ke,me),pt=z.useRef(null),en=z.useRef(null),Yt=z.useRef(null),Jt=function(wn){Yt.current&&(0,dt.nH)(Yt.current,wn)};return z.useImperativeHandle($e,function(){return qe(Yt.current,{focus:Jt,nativeElement:pt.current.nativeElement||en.current})}),z.createElement(It.BaseInput,{className:_t,triggerFocus:Jt,prefixCls:an,value:In,disabled:at,style:Et,prefix:kn,suffix:rn,addonAfter:dn,addonBefore:bn,classNames:Mt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:pt},z.createElement(Nt,(0,Ee.Z)({prefixCls:an,disabled:at,ref:Yt,domRef:en,className:Mt==null?void 0:Mt.input},Dt)))}),zt=xt,Ae=zt,$t=ie(62487),ct=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),pe=ie(24971),xe=ie(70045),st=ie(36237),Pe=ie(53075),je=ie(64910),rt=ie(39082),yt=ie(63356),gt=ie(56119),Kt=ie(16931),jt=ie(51636),Ht=ie(17835);const tn=ke=>{var $e;const at=($e=ke.handleVisible)!==null&&$e!==void 0?$e:"auto",Et=ke.controlHeightSM-ke.lineWidth*2;return Object.assign(Object.assign({},(0,je.T)(ke)),{controlWidth:90,handleWidth:Et,handleFontSize:ke.fontSize/2,handleVisible:at,handleActiveBg:ke.colorFillAlter,handleBg:ke.colorBgContainer,filledHandleBg:new Ht.FastColor(ke.colorFillSecondary).onBackground(ke.colorBgContainer).toHexString(),handleHoverColor:ke.colorPrimary,handleBorderColor:ke.colorBorder,handleOpacity:at===!0?1:0,handleVisibleWidth:at===!0?Et:0})},Qt=(ke,$e)=>{let{componentCls:at,borderRadiusSM:Et,borderRadiusLG:Gt}=ke;const an=$e==="lg"?Gt:Et;return{[`&-${$e}`]:{[`${at}-handler-wrap`]:{borderStartEndRadius:an,borderEndEndRadius:an},[`${at}-handler-up`]:{borderStartEndRadius:an},[`${at}-handler-down`]:{borderEndEndRadius:an}}}},nn=ke=>{const{componentCls:$e,lineWidth:at,lineType:Et,borderRadius:Gt,inputFontSizeSM:an,inputFontSizeLG:In,controlHeightLG:kn,controlHeightSM:rn,colorError:bn,paddingInlineSM:dn,paddingBlockSM:_t,paddingBlockLG:Mt,paddingInlineLG:Dt,colorTextDescription:pt,motionDurationMid:en,handleHoverColor:Yt,handleOpacity:Jt,paddingInline:vn,paddingBlock:wn,handleBg:Sn,handleActiveBg:On,colorTextDisabled:Mn,borderRadiusSM:jn,borderRadiusLG:An,controlWidth:kt,handleBorderColor:Ut,filledHandleBg:xn,lineHeightLG:hn,calc:Be}=ke;return[{[$e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,yt.Wf)(ke)),(0,Pe.ik)(ke)),{display:"inline-block",width:kt,margin:0,padding:0,borderRadius:Gt}),(0,rt.qG)(ke,{[`${$e}-handler-wrap`]:{background:Sn,[`${$e}-handler-down`]:{borderBlockStart:`${(0,st.unit)(at)} ${Et} ${Ut}`}}})),(0,rt.H8)(ke,{[`${$e}-handler-wrap`]:{background:xn,[`${$e}-handler-down`]:{borderBlockStart:`${(0,st.unit)(at)} ${Et} ${Ut}`}},"&:focus-within":{[`${$e}-handler-wrap`]:{background:Sn}}})),(0,rt.vc)(ke,{[`${$e}-handler-wrap`]:{background:Sn,[`${$e}-handler-down`]:{borderBlockStart:`${(0,st.unit)(at)} ${Et} ${Ut}`}}})),(0,rt.Mu)(ke)),{"&-rtl":{direction:"rtl",[`${$e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:In,lineHeight:hn,borderRadius:An,[`input${$e}-input`]:{height:Be(kn).sub(Be(at).mul(2)).equal(),padding:`${(0,st.unit)(Mt)} ${(0,st.unit)(Dt)}`}},"&-sm":{padding:0,fontSize:an,borderRadius:jn,[`input${$e}-input`]:{height:Be(rn).sub(Be(at).mul(2)).equal(),padding:`${(0,st.unit)(_t)} ${(0,st.unit)(dn)}`}},"&-out-of-range":{[`${$e}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,yt.Wf)(ke)),(0,Pe.s7)(ke)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${$e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${$e}-group-addon`]:{borderRadius:An,fontSize:ke.fontSizeLG}},"&-sm":{[`${$e}-group-addon`]:{borderRadius:jn}}},(0,rt.ir)(ke)),(0,rt.S5)(ke)),{[`&:not(${$e}-compact-first-item):not(${$e}-compact-last-item)${$e}-compact-item`]:{[`${$e}, ${$e}-group-addon`]:{borderRadius:0}},[`&:not(${$e}-compact-last-item)${$e}-compact-first-item`]:{[`${$e}, ${$e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${$e}-compact-first-item)${$e}-compact-last-item`]:{[`${$e}, ${$e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${$e}-input`]:{cursor:"not-allowed"},[$e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,yt.Wf)(ke)),{width:"100%",padding:`${(0,st.unit)(wn)} ${(0,st.unit)(vn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Gt,outline:0,transition:`all ${en} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Pe.nz)(ke.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${$e}-handler-wrap, &-focused ${$e}-handler-wrap`]:{width:ke.handleWidth,opacity:1}})},{[$e]:Object.assign(Object.assign(Object.assign({[`${$e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ke.handleVisibleWidth,opacity:Jt,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Gt,borderEndEndRadius:Gt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${en}`,overflow:"hidden",[`${$e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${$e}-handler-up-inner,
|
|
|
${$e}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:ke.handleFontSize}}},[`${$e}-handler`]:{height:"50%",overflow:"hidden",color:pt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,st.unit)(at)} ${Et} ${Ut}`,transition:`all ${en} linear`,"&:active":{background:On},"&:hover":{height:"60%",[`
|
|
|
${$e}-handler-up-inner,
|
|
|
${$e}-handler-down-inner
|
|
|
`]:{color:Yt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,yt.Ro)()),{color:pt,transition:`all ${en} linear`,userSelect:"none"})},[`${$e}-handler-up`]:{borderStartEndRadius:Gt},[`${$e}-handler-down`]:{borderEndEndRadius:Gt}},Qt(ke,"lg")),Qt(ke,"sm")),{"&-disabled, &-readonly":{[`${$e}-handler-wrap`]:{display:"none"},[`${$e}-input`]:{color:"inherit"}},[`
|
|
|
${$e}-handler-up-disabled,
|
|
|
${$e}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${$e}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${$e}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Mn}})}]},Ct=ke=>{const{componentCls:$e,paddingBlock:at,paddingInline:Et,inputAffixPadding:Gt,controlWidth:an,borderRadiusLG:In,borderRadiusSM:kn,paddingInlineLG:rn,paddingInlineSM:bn,paddingBlockLG:dn,paddingBlockSM:_t,motionDurationMid:Mt}=ke;return{[`${$e}-affix-wrapper`]:Object.assign(Object.assign({[`input${$e}-input`]:{padding:`${(0,st.unit)(at)} 0`}},(0,Pe.ik)(ke)),{position:"relative",display:"inline-flex",alignItems:"center",width:an,padding:0,paddingInlineStart:Et,"&-lg":{borderRadius:In,paddingInlineStart:rn,[`input${$e}-input`]:{padding:`${(0,st.unit)(dn)} 0`}},"&-sm":{borderRadius:kn,paddingInlineStart:bn,[`input${$e}-input`]:{padding:`${(0,st.unit)(_t)} 0`}},[`&:not(${$e}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${$e}-disabled`]:{background:"transparent"},[`> div${$e}`]:{width:"100%",border:"none",outline:"none",[`&${$e}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${$e}-handler-wrap`]:{zIndex:2},[$e]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Gt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Et,marginInlineStart:Gt,transition:`margin ${Mt}`}},[`&:hover ${$e}-handler-wrap, &-focused ${$e}-handler-wrap`]:{width:ke.handleWidth,opacity:1},[`&:not(${$e}-affix-wrapper-without-controls):hover ${$e}-suffix`]:{marginInlineEnd:ke.calc(ke.handleWidth).add(Et).equal()}})}};var qt=(0,Kt.I$)("InputNumber",ke=>{const $e=(0,jt.mergeToken)(ke,(0,je.e)(ke));return[nn($e),Ct($e),(0,gt.c)($e)]},tn,{unitless:{handleOpacity:!0}}),Wt=function(ke,$e){var at={};for(var Et in ke)Object.prototype.hasOwnProperty.call(ke,Et)&&$e.indexOf(Et)<0&&(at[Et]=ke[Et]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Et=Object.getOwnPropertySymbols(ke);Gt<Et.length;Gt++)$e.indexOf(Et[Gt])<0&&Object.prototype.propertyIsEnumerable.call(ke,Et[Gt])&&(at[Et[Gt]]=ke[Et[Gt]]);return at};const De=z.forwardRef((ke,$e)=>{const{getPrefixCls:at,direction:Et}=z.useContext(ae.E_),Gt=z.useRef(null);z.useImperativeHandle($e,()=>Gt.current);const{className:an,rootClassName:In,size:kn,disabled:rn,prefixCls:bn,addonBefore:dn,addonAfter:_t,prefix:Mt,suffix:Dt,bordered:pt,readOnly:en,status:Yt,controls:Jt,variant:vn}=ke,wn=Wt(ke,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Sn=at("input-number",bn),On=(0,oe.Z)(Sn),[Mn,jn,An]=qt(Sn,On),{compactSize:kt,compactItemClassnames:Ut}=(0,xe.ri)(Sn,Et);let xn=z.createElement(ve.Z,{className:`${Sn}-handler-up-inner`}),hn=z.createElement(it.Z,{className:`${Sn}-handler-down-inner`});const Be=typeof Jt=="boolean"?Jt:void 0;typeof Jt=="object"&&(xn=typeof Jt.upIcon=="undefined"?xn:z.createElement("span",{className:`${Sn}-handler-up-inner`},Jt.upIcon),hn=typeof Jt.downIcon=="undefined"?hn:z.createElement("span",{className:`${Sn}-handler-down-inner`},Jt.downIcon));const{hasFeedback:Ve,status:be,isFormItemInput:Re,feedbackIcon:we}=z.useContext(ne.aM),Fe=(0,ct.F)(be,Yt),mt=(0,se.Z)(Dn=>{var Tn;return(Tn=kn!=null?kn:kt)!==null&&Tn!==void 0?Tn:Dn}),on=z.useContext(ee.Z),un=rn!=null?rn:on,[gn,Xt]=(0,pe.Z)("inputNumber",vn,pt),Bt=Ve&&z.createElement(z.Fragment,null,we),Pt=Se()({[`${Sn}-lg`]:mt==="large",[`${Sn}-sm`]:mt==="small",[`${Sn}-rtl`]:Et==="rtl",[`${Sn}-in-form-item`]:Re},jn),fn=`${Sn}-group`,Bn=z.createElement(Ae,Object.assign({ref:Gt,disabled:un,className:Se()(An,On,an,In,Ut),upHandler:xn,downHandler:hn,prefixCls:Sn,readOnly:en,controls:Be,prefix:Mt,suffix:Bt||Dt,addonBefore:dn&&z.createElement($t.Z,{form:!0,space:!0},dn),addonAfter:_t&&z.createElement($t.Z,{form:!0,space:!0},_t),classNames:{input:Pt,variant:Se()({[`${Sn}-${gn}`]:Xt},(0,ct.Z)(Sn,Fe,Ve)),affixWrapper:Se()({[`${Sn}-affix-wrapper-sm`]:mt==="small",[`${Sn}-affix-wrapper-lg`]:mt==="large",[`${Sn}-affix-wrapper-rtl`]:Et==="rtl",[`${Sn}-affix-wrapper-without-controls`]:Jt===!1||un},jn),wrapper:Se()({[`${fn}-rtl`]:Et==="rtl"},jn),groupWrapper:Se()({[`${Sn}-group-wrapper-sm`]:mt==="small",[`${Sn}-group-wrapper-lg`]:mt==="large",[`${Sn}-group-wrapper-rtl`]:Et==="rtl",[`${Sn}-group-wrapper-${gn}`]:Xt},(0,ct.Z)(`${Sn}-group-wrapper`,Fe,Ve),jn)}},wn));return Mn(Bn)}),tt=De,Tt=ke=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(De,Object.assign({},ke)));tt._InternalPanelDoNotUseOrYouWillBeFired=Tt;var Rt=tt},49397:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return ht}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Qe=ie(36901),Se=ie(8654),Ee=ie(62487),Le=ie(86013),Xe=ie(82855),Ie=ie(48755),he=ie(2171),Ye=ie(83397),Ce=ie(31756),St=ie(56553),Ke=ie(24971),Ne=ie(70045),Ge=ie(23826),ze=ie(53075);function ft(lt){return!!(lt.prefix||lt.suffix||lt.allowClear||lt.showCount)}var wt=function(lt,ot){var Ze={};for(var It in lt)Object.prototype.hasOwnProperty.call(lt,It)&&ot.indexOf(It)<0&&(Ze[It]=lt[It]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,It=Object.getOwnPropertySymbols(lt);et<It.length;et++)ot.indexOf(It[et])<0&&Object.prototype.propertyIsEnumerable.call(lt,It[et])&&(Ze[It[et]]=lt[It[et]]);return Ze},ht=(0,z.forwardRef)((lt,ot)=>{const{prefixCls:Ze,bordered:It=!0,status:et,size:qe,disabled:vt,onBlur:Me,onFocus:Ue,suffix:He,allowClear:ue,addonAfter:ut,addonBefore:Oe,className:Je,style:Ot,styles:ye,rootClassName:fe,onChange:dt,classNames:Zt,variant:bt}=lt,me=wt(lt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Te,direction:_e,allowClear:Nt,autoComplete:xt,className:zt,style:Ae,classNames:$t,styles:ct}=(0,Ie.dj)("input"),ae=Te("input",Ze),te=(0,z.useRef)(null),ee=(0,Ye.Z)(ae),[oe,se,ne]=(0,ze.TI)(ae,fe),[pe]=(0,ze.ZP)(ae,ee),{compactSize:xe,compactItemClassnames:st}=(0,Ne.ri)(ae,_e),Pe=(0,Ce.Z)(Rt=>{var ke;return(ke=qe!=null?qe:xe)!==null&&ke!==void 0?ke:Rt}),je=z.useContext(he.Z),rt=vt!=null?vt:je,{status:yt,hasFeedback:gt,feedbackIcon:Kt}=(0,z.useContext)(St.aM),jt=(0,Xe.F)(yt,et),Ht=ft(lt)||!!gt,tn=(0,z.useRef)(Ht),Qt=(0,Ge.Z)(te,!0),nn=Rt=>{Qt(),Me==null||Me(Rt)},Ct=Rt=>{Qt(),Ue==null||Ue(Rt)},qt=Rt=>{Qt(),dt==null||dt(Rt)},Wt=(gt||He)&&z.createElement(z.Fragment,null,He,gt&&Kt),De=(0,Le.Z)(ue!=null?ue:Nt),[tt,Tt]=(0,Ke.Z)("input",bt,It);return oe(pe(z.createElement(Qe.default,Object.assign({ref:(0,Se.sQ)(ot,te),prefixCls:ae,autoComplete:xt},me,{disabled:rt,onBlur:nn,onFocus:Ct,style:Object.assign(Object.assign({},Ae),Ot),styles:Object.assign(Object.assign({},ct),ye),suffix:Wt,allowClear:De,className:ve()(Je,fe,ne,ee,st,zt),onChange:qt,addonBefore:Oe&&z.createElement(Ee.Z,{form:!0,space:!0},Oe),addonAfter:ut&&z.createElement(Ee.Z,{form:!0,space:!0},ut),classNames:Object.assign(Object.assign(Object.assign({},Zt),$t),{input:ve()({[`${ae}-sm`]:Pe==="small",[`${ae}-lg`]:Pe==="large",[`${ae}-rtl`]:_e==="rtl"},Zt==null?void 0:Zt.input,$t.input,se),variant:ve()({[`${ae}-${tt}`]:Tt},(0,Xe.Z)(ae,jt)),affixWrapper:ve()({[`${ae}-affix-wrapper-sm`]:Pe==="small",[`${ae}-affix-wrapper-lg`]:Pe==="large",[`${ae}-affix-wrapper-rtl`]:_e==="rtl"},se),wrapper:ve()({[`${ae}-group-rtl`]:_e==="rtl"},se),groupWrapper:ve()({[`${ae}-group-wrapper-sm`]:Pe==="small",[`${ae}-group-wrapper-lg`]:Pe==="large",[`${ae}-group-wrapper-rtl`]:_e==="rtl",[`${ae}-group-wrapper-${tt}`]:Tt},(0,Xe.Z)(`${ae}-group-wrapper`,jt,gt),se)})}))))})},79809:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return ot}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Qe=ie(22711),Se=ie(86013),Ee=ie(82855),Le=ie(48755),Xe=ie(2171),Ie=ie(83397),he=ie(31756),Ye=ie(56553),Ce=ie(24971),St=ie(70045),Ke=ie(30292),Ne=ie(53075),Ge=ie(16931),ze=ie(51636),ft=ie(64910);const wt=Ze=>{const{componentCls:It,paddingLG:et}=Ze,qe=`${It}-textarea`;return{[`textarea${It}`]:{maxWidth:"100%",height:"auto",minHeight:Ze.controlHeight,lineHeight:Ze.lineHeight,verticalAlign:"bottom",transition:`all ${Ze.motionDurationSlow}`,resize:"vertical",[`&${It}-mouse-active`]:{transition:`all ${Ze.motionDurationSlow}, height 0s, width 0s`}},[`${It}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[qe]:{position:"relative","&-show-count":{[`> ${It}`]:{height:"100%"},[`${It}-data-count`]:{position:"absolute",bottom:Ze.calc(Ze.fontSize).mul(Ze.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ze.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${It},
|
|
|
&-affix-wrapper${qe}-has-feedback ${It}
|
|
|
`]:{paddingInlineEnd:et},[`&-affix-wrapper${It}-affix-wrapper`]:{padding:0,[`> textarea${It}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ze.calc(Ze.controlHeight).sub(Ze.calc(Ze.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${It}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${It}-clear-icon`]:{position:"absolute",insetInlineEnd:Ze.paddingInline,insetBlockStart:Ze.paddingXS},[`${qe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ze.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${It}-affix-wrapper-sm`]:{[`${It}-suffix`]:{[`${It}-clear-icon`]:{insetInlineEnd:Ze.paddingInlineSM}}}}}};var At=(0,Ge.I$)(["Input","TextArea"],Ze=>{const It=(0,ze.mergeToken)(Ze,(0,ft.e)(Ze));return[wt(It)]},ft.T,{resetFont:!1}),ht=function(Ze,It){var et={};for(var qe in Ze)Object.prototype.hasOwnProperty.call(Ze,qe)&&It.indexOf(qe)<0&&(et[qe]=Ze[qe]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,qe=Object.getOwnPropertySymbols(Ze);vt<qe.length;vt++)It.indexOf(qe[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,qe[vt])&&(et[qe[vt]]=Ze[qe[vt]]);return et},ot=(0,z.forwardRef)((Ze,It)=>{var et;const{prefixCls:qe,bordered:vt=!0,size:Me,disabled:Ue,status:He,allowClear:ue,classNames:ut,rootClassName:Oe,className:Je,style:Ot,styles:ye,variant:fe,showCount:dt,onMouseDown:Zt,onResize:bt}=Ze,me=ht(Ze,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Te,direction:_e,allowClear:Nt,autoComplete:xt,className:zt,style:Ae,classNames:$t,styles:ct}=(0,Le.dj)("textArea"),ae=z.useContext(Xe.Z),te=Ue!=null?Ue:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(Ye.aM),ne=(0,Ee.F)(ee,He),pe=z.useRef(null);z.useImperativeHandle(It,()=>{var Tt;return{resizableTextArea:(Tt=pe.current)===null||Tt===void 0?void 0:Tt.resizableTextArea,focus:Rt=>{var ke,$e;(0,Ke.nH)(($e=(ke=pe.current)===null||ke===void 0?void 0:ke.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,Rt)},blur:()=>{var Rt;return(Rt=pe.current)===null||Rt===void 0?void 0:Rt.blur()}}});const xe=Te("input",qe),st=(0,Ie.Z)(xe),[Pe,je,rt]=(0,Ne.TI)(xe,Oe),[yt]=At(xe,st),{compactSize:gt,compactItemClassnames:Kt}=(0,St.ri)(xe,_e),jt=(0,he.Z)(Tt=>{var Rt;return(Rt=Me!=null?Me:gt)!==null&&Rt!==void 0?Rt:Tt}),[Ht,tn]=(0,Ce.Z)("textArea",fe,vt),Qt=(0,Se.Z)(ue!=null?ue:Nt),[nn,Ct]=z.useState(!1),[qt,Wt]=z.useState(!1),De=Tt=>{Ct(!0),Zt==null||Zt(Tt);const Rt=()=>{Ct(!1),document.removeEventListener("mouseup",Rt)};document.addEventListener("mouseup",Rt)},tt=Tt=>{var Rt,ke;if(bt==null||bt(Tt),nn&&typeof getComputedStyle=="function"){const $e=(ke=(Rt=pe.current)===null||Rt===void 0?void 0:Rt.nativeElement)===null||ke===void 0?void 0:ke.querySelector("textarea");$e&&getComputedStyle($e).resize==="both"&&Wt(!0)}};return Pe(yt(z.createElement(Qe.default,Object.assign({autoComplete:xt},me,{style:Object.assign(Object.assign({},Ae),Ot),styles:Object.assign(Object.assign({},ct),ye),disabled:te,allowClear:Qt,className:ve()(rt,st,Je,Oe,Kt,zt,qt&&`${xe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ut),$t),{textarea:ve()({[`${xe}-sm`]:jt==="small",[`${xe}-lg`]:jt==="large"},je,ut==null?void 0:ut.textarea,$t.textarea,nn&&`${xe}-mouse-active`),variant:ve()({[`${xe}-${Ht}`]:tn},(0,Ee.Z)(xe,ne)),affixWrapper:ve()(`${xe}-textarea-affix-wrapper`,{[`${xe}-affix-wrapper-rtl`]:_e==="rtl",[`${xe}-affix-wrapper-sm`]:jt==="small",[`${xe}-affix-wrapper-lg`]:jt==="large",[`${xe}-textarea-show-count`]:dt||((et=Ze.count)===null||et===void 0?void 0:et.show)},je)}),prefixCls:xe,suffix:oe&&z.createElement("span",{className:`${xe}-textarea-suffix`},se),showCount:dt,ref:pe,onResize:tt,onMouseDown:De}))))})},23826:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return it}});var z=ie(59301);function it(ve,Qe){const Se=(0,z.useRef)([]),Ee=()=>{Se.current.push(setTimeout(()=>{var Le,Xe,Ie,he;!((Le=ve.current)===null||Le===void 0)&&Le.input&&((Xe=ve.current)===null||Xe===void 0?void 0:Xe.input.getAttribute("type"))==="password"&&(!((Ie=ve.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((he=ve.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Qe&&Ee(),()=>Se.current.forEach(Le=>{Le&&clearTimeout(Le)})),[]),Ee}},37568:function(ln,Vt,ie){"use strict";ie.d(Vt,{default:function(){return $t}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Qe=ie(48755),Se=ie(56553),Ee=ie(53075),Xe=ct=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Qe.E_),{prefixCls:ee,className:oe}=ct,se=ae("input-group",ee),ne=ae("input"),[pe,xe,st]=(0,Ee.ZP)(ne),Pe=ve()(se,st,{[`${se}-lg`]:ct.size==="large",[`${se}-sm`]:ct.size==="small",[`${se}-compact`]:ct.compact,[`${se}-rtl`]:te==="rtl"},xe,oe),je=(0,z.useContext)(Se.aM),rt=(0,z.useMemo)(()=>Object.assign(Object.assign({},je),{isFormItemInput:!1}),[je]);return pe(z.createElement("span",{className:Pe,style:ct.style,onMouseEnter:ct.onMouseEnter,onMouseLeave:ct.onMouseLeave,onFocus:ct.onFocus,onBlur:ct.onBlur},z.createElement(Se.aM.Provider,{value:rt},ct.children)))},Ie=ie(49397),he=ie(77654),Ye=ie(6089),Ce=ie(26112),St=ie(82855),Ke=ie(31756),Ne=ie(16931),Ge=ie(51636),ze=ie(64910);const ft=ct=>{const{componentCls:ae,paddingXS:te}=ct;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:ct.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:ct.calc(ct.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:ct.paddingXS}}}};var wt=(0,Ne.I$)(["Input","OTP"],ct=>{const ae=(0,Ge.mergeToken)(ct,(0,ze.e)(ct));return[ft(ae)]},ze.T),At=ie(16089),ht=function(ct,ae){var te={};for(var ee in ct)Object.prototype.hasOwnProperty.call(ct,ee)&&ae.indexOf(ee)<0&&(te[ee]=ct[ee]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ct);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ct,ee[oe])&&(te[ee[oe]]=ct[ee[oe]]);return te},ot=z.forwardRef((ct,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=ct,pe=ht(ct,["value","onChange","onActiveChange","index","mask"]),xe=te&&typeof ne=="string"?ne:te,st=gt=>{ee(se,gt.target.value)},Pe=z.useRef(null);z.useImperativeHandle(ae,()=>Pe.current);const je=()=>{(0,At.Z)(()=>{var gt;const Kt=(gt=Pe.current)===null||gt===void 0?void 0:gt.input;document.activeElement===Kt&&Kt&&Kt.select()})},rt=gt=>{const{key:Kt,ctrlKey:jt,metaKey:Ht}=gt;Kt==="ArrowLeft"?oe(se-1):Kt==="ArrowRight"?oe(se+1):Kt==="z"&&(jt||Ht)&>.preventDefault(),je()},yt=gt=>{gt.key==="Backspace"&&!te&&oe(se-1),je()};return z.createElement(Ie.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Pe,value:xe,onInput:st,onFocus:je,onKeyDown:rt,onKeyUp:yt,onMouseDown:je,onMouseUp:je}))}),Ze=function(ct,ae){var te={};for(var ee in ct)Object.prototype.hasOwnProperty.call(ct,ee)&&ae.indexOf(ee)<0&&(te[ee]=ct[ee]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ct);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ct,ee[oe])&&(te[ee[oe]]=ct[ee[oe]]);return te};function It(ct){return(ct||"").split("")}const et=ct=>{const{index:ae,prefixCls:te,separator:ee}=ct,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var vt=z.forwardRef((ct,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:pe,formatter:xe,separator:st,variant:Pe,disabled:je,status:rt,autoFocus:yt,mask:gt,type:Kt,onInput:jt,inputMode:Ht}=ct,tn=Ze(ct,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Qt,direction:nn}=z.useContext(Qe.E_),Ct=Qt("otp",te),qt=(0,Ce.Z)(tn,{aria:!0,data:!0,attr:!0}),[Wt,De,tt]=wt(Ct),Tt=(0,Ke.Z)(Mt=>oe!=null?oe:Mt),Rt=z.useContext(Se.aM),ke=(0,St.F)(Rt.status,rt),$e=z.useMemo(()=>Object.assign(Object.assign({},Rt),{status:ke,hasFeedback:!1,feedbackIcon:null}),[Rt,ke]),at=z.useRef(null),Et=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var Mt;(Mt=Et.current[0])===null||Mt===void 0||Mt.focus()},blur:()=>{var Mt;for(let Dt=0;Dt<ee;Dt+=1)(Mt=Et.current[Dt])===null||Mt===void 0||Mt.blur()},nativeElement:at.current}));const Gt=Mt=>xe?xe(Mt):Mt,[an,In]=z.useState(()=>It(Gt(se||"")));z.useEffect(()=>{ne!==void 0&&In(It(ne))},[ne]);const kn=(0,Ye.Z)(Mt=>{In(Mt),jt&&jt(Mt),pe&&Mt.length===ee&&Mt.every(Dt=>Dt)&&Mt.some((Dt,pt)=>an[pt]!==Dt)&&pe(Mt.join(""))}),rn=(0,Ye.Z)((Mt,Dt)=>{let pt=(0,he.Z)(an);for(let Yt=0;Yt<Mt;Yt+=1)pt[Yt]||(pt[Yt]="");Dt.length<=1?pt[Mt]=Dt:pt=pt.slice(0,Mt).concat(It(Dt)),pt=pt.slice(0,ee);for(let Yt=pt.length-1;Yt>=0&&!pt[Yt];Yt-=1)pt.pop();const en=Gt(pt.map(Yt=>Yt||" ").join(""));return pt=It(en).map((Yt,Jt)=>Yt===" "&&!pt[Jt]?pt[Jt]:Yt),pt}),bn=(Mt,Dt)=>{var pt;const en=rn(Mt,Dt),Yt=Math.min(Mt+Dt.length,ee-1);Yt!==Mt&&en[Mt]!==void 0&&((pt=Et.current[Yt])===null||pt===void 0||pt.focus()),kn(en)},dn=Mt=>{var Dt;(Dt=Et.current[Mt])===null||Dt===void 0||Dt.focus()},_t={variant:Pe,disabled:je,status:ke,mask:gt,type:Kt,inputMode:Ht};return Wt(z.createElement("div",Object.assign({},qt,{ref:at,className:ve()(Ct,{[`${Ct}-sm`]:Tt==="small",[`${Ct}-lg`]:Tt==="large",[`${Ct}-rtl`]:nn==="rtl"},tt,De)}),z.createElement(Se.aM.Provider,{value:$e},Array.from({length:ee}).map((Mt,Dt)=>{const pt=`otp-${Dt}`,en=an[Dt]||"";return z.createElement(z.Fragment,{key:pt},z.createElement(ot,Object.assign({ref:Yt=>{Et.current[Dt]=Yt},index:Dt,size:Tt,htmlSize:1,className:`${Ct}-input`,onChange:bn,value:en,onActiveChange:dn,autoFocus:Dt===0&&yt},_t)),Dt<ee-1&&z.createElement(et,{separator:st,index:Dt,prefixCls:Ct}))}))))}),Me=ie(73331),Ue=ie(15277),He=ie(2738),ue=ie(8654),ut=ie(2171),Oe=ie(23826),Je=function(ct,ae){var te={};for(var ee in ct)Object.prototype.hasOwnProperty.call(ct,ee)&&ae.indexOf(ee)<0&&(te[ee]=ct[ee]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ct);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ct,ee[oe])&&(te[ee[oe]]=ct[ee[oe]]);return te};const Ot=ct=>ct?z.createElement(Ue.Z,null):z.createElement(Me.Z,null),ye={click:"onClick",hover:"onMouseOver"};var dt=z.forwardRef((ct,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Ot}=ct,ne=z.useContext(ut.Z),pe=te!=null?te:ne,xe=typeof oe=="object"&&oe.visible!==void 0,[st,Pe]=(0,z.useState)(()=>xe?oe.visible:!1),je=(0,z.useRef)(null);z.useEffect(()=>{xe&&Pe(oe.visible)},[xe,oe]);const rt=(0,Oe.Z)(je),yt=()=>{var Tt;if(pe)return;st&&rt();const Rt=!st;Pe(Rt),typeof oe=="object"&&((Tt=oe.onVisibleChange)===null||Tt===void 0||Tt.call(oe,Rt))},gt=Tt=>{const Rt=ye[ee]||"",ke=se(st),$e={[Rt]:yt,className:`${Tt}-icon`,key:"passwordIcon",onMouseDown:at=>{at.preventDefault()},onMouseUp:at=>{at.preventDefault()}};return z.cloneElement(z.isValidElement(ke)?ke:z.createElement("span",null,ke),$e)},{className:Kt,prefixCls:jt,inputPrefixCls:Ht,size:tn}=ct,Qt=Je(ct,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:nn}=z.useContext(Qe.E_),Ct=nn("input",Ht),qt=nn("input-password",jt),Wt=oe&>(qt),De=ve()(qt,Kt,{[`${qt}-${tn}`]:!!tn}),tt=Object.assign(Object.assign({},(0,He.Z)(Qt,["suffix","iconRender","visibilityToggle"])),{type:st?"text":"password",className:De,prefixCls:Ct,suffix:Wt});return tn&&(tt.size=tn),z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(ae,je)},tt))}),Zt=ie(47472),bt=ie(22703),me=ie(7939),Te=ie(70045),_e=function(ct,ae){var te={};for(var ee in ct)Object.prototype.hasOwnProperty.call(ct,ee)&&ae.indexOf(ee)<0&&(te[ee]=ct[ee]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ct);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ct,ee[oe])&&(te[ee[oe]]=ct[ee[oe]]);return te},xt=z.forwardRef((ct,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:pe=!1,addonAfter:xe,loading:st,disabled:Pe,onSearch:je,onChange:rt,onCompositionStart:yt,onCompositionEnd:gt}=ct,Kt=_e(ct,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:jt,direction:Ht}=z.useContext(Qe.E_),tn=z.useRef(!1),Qt=jt("input-search",te),nn=jt("input",ee),{compactSize:Ct}=(0,Te.ri)(Qt,Ht),qt=(0,Ke.Z)(bn=>{var dn;return(dn=se!=null?se:Ct)!==null&&dn!==void 0?dn:bn}),Wt=z.useRef(null),De=bn=>{bn!=null&&bn.target&&bn.type==="click"&&je&&je(bn.target.value,bn,{source:"clear"}),rt==null||rt(bn)},tt=bn=>{var dn;document.activeElement===((dn=Wt.current)===null||dn===void 0?void 0:dn.input)&&bn.preventDefault()},Tt=bn=>{var dn,_t;je&&je((_t=(dn=Wt.current)===null||dn===void 0?void 0:dn.input)===null||_t===void 0?void 0:_t.value,bn,{source:"input"})},Rt=bn=>{tn.current||st||Tt(bn)},ke=typeof pe=="boolean"?z.createElement(Zt.Z,null):null,$e=`${Qt}-button`;let at;const Et=pe||{},Gt=Et.type&&Et.type.__ANT_BUTTON===!0;Gt||Et.type==="button"?at=(0,bt.Tm)(Et,Object.assign({onMouseDown:tt,onClick:bn=>{var dn,_t;(_t=(dn=Et==null?void 0:Et.props)===null||dn===void 0?void 0:dn.onClick)===null||_t===void 0||_t.call(dn,bn),Tt(bn)},key:"enterButton"},Gt?{className:$e,size:qt}:{})):at=z.createElement(me.ZP,{className:$e,type:pe?"primary":void 0,size:qt,disabled:Pe,key:"enterButton",onMouseDown:tt,onClick:Tt,loading:st,icon:ke},pe),xe&&(at=[at,(0,bt.Tm)(xe,{key:"addonAfter"})]);const an=ve()(Qt,{[`${Qt}-rtl`]:Ht==="rtl",[`${Qt}-${qt}`]:!!qt,[`${Qt}-with-button`]:!!pe},oe),In=Object.assign(Object.assign({},Kt),{className:an,prefixCls:nn,type:"search"}),kn=bn=>{tn.current=!0,yt==null||yt(bn)},rn=bn=>{tn.current=!1,gt==null||gt(bn)};return z.createElement(Ie.Z,Object.assign({ref:(0,ue.sQ)(Wt,ae),onPressEnter:Rt},In,{size:qt,onCompositionStart:kn,onCompositionEnd:rn,addonAfter:at,suffix:ne,onChange:De,disabled:Pe}))}),zt=ie(79809);const Ae=Ie.Z;Ae.Group=Xe,Ae.Search=xt,Ae.TextArea=zt.Z,Ae.Password=dt,Ae.OTP=vt;var $t=Ae},24303:function(ln,Vt,ie){"use strict";ie.d(Vt,{D:function(){return Ze},Z:function(){return qe}});var z=ie(59301),it=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"},Qe=ve,Se=ie(7657),Ee=function(Me,Ue){return z.createElement(Se.Z,(0,it.Z)({},Me,{ref:Ue,icon:Qe}))},Le=z.forwardRef(Ee),Xe=Le,Ie=ie(33853),he=ie(38819),Ye=ie(92310),Ce=ie.n(Ye),St=ie(2738),Ke=ie(48755),Ne=ie(6989),Ge=ie(36237),ze=ie(48923),ft=ie(16931);const wt=vt=>{const{componentCls:Me,siderBg:Ue,motionDurationMid:He,motionDurationSlow:ue,antCls:ut,triggerHeight:Oe,triggerColor:Je,triggerBg:Ot,headerHeight:ye,zeroTriggerWidth:fe,zeroTriggerHeight:dt,borderRadiusLG:Zt,lightSiderBg:bt,lightTriggerColor:me,lightTriggerBg:Te,bodyBg:_e}=vt;return{[Me]:{position:"relative",minWidth:0,background:Ue,transition:`all ${He}, background 0s`,"&-has-trigger":{paddingBottom:Oe},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${ut}-menu${ut}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Oe,color:Je,lineHeight:(0,Ge.unit)(Oe),textAlign:"center",background:Ot,cursor:"pointer",transition:`all ${He}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:ye,insetInlineEnd:vt.calc(fe).mul(-1).equal(),zIndex:1,width:fe,height:dt,color:Je,fontSize:vt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ue,borderRadius:`0 ${(0,Ge.unit)(Zt)} ${(0,Ge.unit)(Zt)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:vt.calc(fe).mul(-1).equal(),borderRadius:`${(0,Ge.unit)(Zt)} 0 0 ${(0,Ge.unit)(Zt)}`}},"&-light":{background:bt,[`${Me}-trigger`]:{color:me,background:Te},[`${Me}-zero-width-trigger`]:{color:me,background:Te,border:`1px solid ${_e}`,borderInlineStart:0}}}}};var At=(0,ft.I$)(["Layout","Sider"],vt=>[wt(vt)],ze.eh,{deprecatedTokens:ze.jn}),ht=function(vt,Me){var Ue={};for(var He in vt)Object.prototype.hasOwnProperty.call(vt,He)&&Me.indexOf(He)<0&&(Ue[He]=vt[He]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,He=Object.getOwnPropertySymbols(vt);ue<He.length;ue++)Me.indexOf(He[ue])<0&&Object.prototype.propertyIsEnumerable.call(vt,He[ue])&&(Ue[He[ue]]=vt[He[ue]]);return Ue};const lt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ot=vt=>!Number.isNaN(Number.parseFloat(vt))&&isFinite(vt),Ze=z.createContext({}),It=(()=>{let vt=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return vt+=1,`${Me}${vt}`}})();var qe=z.forwardRef((vt,Me)=>{const{prefixCls:Ue,className:He,trigger:ue,children:ut,defaultCollapsed:Oe=!1,theme:Je="dark",style:Ot={},collapsible:ye=!1,reverseArrow:fe=!1,width:dt=200,collapsedWidth:Zt=80,zeroWidthTriggerStyle:bt,breakpoint:me,onCollapse:Te,onBreakpoint:_e}=vt,Nt=ht(vt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xt}=(0,z.useContext)(Ne.V),[zt,Ae]=(0,z.useState)("collapsed"in vt?vt.collapsed:Oe),[$t,ct]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in vt&&Ae(vt.collapsed)},[vt.collapsed]);const ae=(qt,Wt)=>{"collapsed"in vt||Ae(qt),Te==null||Te(qt,Wt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(Ke.E_),oe=te("layout-sider",Ue),[se,ne,pe]=At(oe),xe=(0,z.useRef)(null);xe.current=qt=>{ct(qt.matches),_e==null||_e(qt.matches),zt!==qt.matches&&ae(qt.matches,"responsive")},(0,z.useEffect)(()=>{function qt(De){return xe.current(De)}let Wt;if(typeof window!="undefined"){const{matchMedia:De}=window;if(De&&me&&me in lt){Wt=De(`screen and (max-width: ${lt[me]})`);try{Wt.addEventListener("change",qt)}catch(tt){Wt.addListener(qt)}qt(Wt)}}return()=>{try{Wt==null||Wt.removeEventListener("change",qt)}catch(De){Wt==null||Wt.removeListener(qt)}}},[me]),(0,z.useEffect)(()=>{const qt=It("ant-sider-");return xt.addSider(qt),()=>xt.removeSider(qt)},[]);const st=()=>{ae(!zt,"clickTrigger")},Pe=(0,St.Z)(Nt,["collapsed"]),je=zt?Zt:dt,rt=ot(je)?`${je}px`:String(je),yt=parseFloat(String(Zt||0))===0?z.createElement("span",{onClick:st,className:Ce()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${fe?"right":"left"}`),style:bt},ue||z.createElement(Xe,null)):null,gt=ee==="rtl"==!fe,Ht={expanded:gt?z.createElement(he.Z,null):z.createElement(Ie.Z,null),collapsed:gt?z.createElement(Ie.Z,null):z.createElement(he.Z,null)}[zt?"collapsed":"expanded"],tn=ue!==null?yt||z.createElement("div",{className:`${oe}-trigger`,onClick:st,style:{width:rt}},ue||Ht):null,Qt=Object.assign(Object.assign({},Ot),{flex:`0 0 ${rt}`,maxWidth:rt,minWidth:rt,width:rt}),nn=Ce()(oe,`${oe}-${Je}`,{[`${oe}-collapsed`]:!!zt,[`${oe}-has-trigger`]:ye&&ue!==null&&!yt,[`${oe}-below`]:!!$t,[`${oe}-zero-width`]:parseFloat(rt)===0},He,ne,pe),Ct=z.useMemo(()=>({siderCollapsed:zt}),[zt]);return se(z.createElement(Ze.Provider,{value:Ct},z.createElement("aside",Object.assign({className:nn},Pe,{style:Qt,ref:Me}),z.createElement("div",{className:`${oe}-children`},ut),ye||$t&&yt?tn:null)))})},6989:function(ln,Vt,ie){"use strict";ie.d(Vt,{V:function(){return it}});var z=ie(59301);const it=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(ln,Vt,ie){"use strict";ie.d(Vt,{eh:function(){return Qe},jn:function(){return Se}});var z=ie(36237),it=ie(16931);const ve=Ee=>{const{antCls:Le,componentCls:Xe,colorText:Ie,footerBg:he,headerHeight:Ye,headerPadding:Ce,headerColor:St,footerPadding:Ke,fontSize:Ne,bodyBg:Ge,headerBg:ze}=Ee;return{[Xe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ge,"&, *":{boxSizing:"border-box"},[`&${Xe}-has-sider`]:{flexDirection:"row",[`> ${Xe}, > ${Xe}-content`]:{width:0}},[`${Xe}-header, &${Xe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Xe}-header`]:{height:Ye,padding:Ce,color:St,lineHeight:(0,z.unit)(Ye),background:ze,[`${Le}-menu`]:{lineHeight:"inherit"}},[`${Xe}-footer`]:{padding:Ke,color:Ie,fontSize:Ne,background:he},[`${Xe}-content`]:{flex:"auto",color:Ie,minHeight:0}}},Qe=Ee=>{const{colorBgLayout:Le,controlHeight:Xe,controlHeightLG:Ie,colorText:he,controlHeightSM:Ye,marginXXS:Ce,colorTextLightSolid:St,colorBgContainer:Ke}=Ee,Ne=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:Le,colorBgTrigger:"#002140",bodyBg:Le,headerBg:"#001529",headerHeight:Xe*2,headerPadding:`0 ${Ne}px`,headerColor:he,footerPadding:`${Ye}px ${Ne}px`,footerBg:Le,siderBg:"#001529",triggerHeight:Ie+Ce*2,triggerBg:"#002140",triggerColor:St,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:he}},Se=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Vt.ZP=(0,it.I$)("Layout",Ee=>[ve(Ee)],Qe,{deprecatedTokens:Se})},78857:function(ln,Vt,ie){"use strict";ie.d(Vt,{J:function(){return Ee}});var z=ie(59301),it=ie(8654),ve=ie(62487),Qe=function(Le,Xe){var Ie={};for(var he in Le)Object.prototype.hasOwnProperty.call(Le,he)&&Xe.indexOf(he)<0&&(Ie[he]=Le[he]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,he=Object.getOwnPropertySymbols(Le);Ye<he.length;Ye++)Xe.indexOf(he[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Le,he[Ye])&&(Ie[he[Ye]]=Le[he[Ye]]);return Ie};const Se=z.createContext(null),Ee=z.forwardRef((Le,Xe)=>{const{children:Ie}=Le,he=Qe(Le,["children"]),Ye=z.useContext(Se),Ce=z.useMemo(()=>Object.assign(Object.assign({},Ye),he),[Ye,he.prefixCls,he.mode,he.selectable,he.rootClassName]),St=(0,it.t4)(Ie),Ke=(0,it.x1)(Xe,St?(0,it.C4)(Ie):null);return z.createElement(Se.Provider,{value:Ce},z.createElement(ve.Z,{space:!0},St?z.cloneElement(Ie,{ref:Ke}):Ie))});Vt.Z=Se},93041:function(ln,Vt,ie){"use strict";ie.d(Vt,{default:function(){return se}});var z=ie(59301),it=ie(28321),ve=ie(24303),Qe=ie(18785),Se=ie(92310),Ee=ie.n(Se),Le=ie(6089),Xe=ie(2738),Ie=ie(86641),he=ie(22703),Ye=ie(48755),Ce=ie(83397),Ke=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=function(ne,pe){var xe={};for(var st in ne)Object.prototype.hasOwnProperty.call(ne,st)&&pe.indexOf(st)<0&&(xe[st]=ne[st]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,st=Object.getOwnPropertySymbols(ne);Pe<st.length;Pe++)pe.indexOf(st[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,st[Pe])&&(xe[st[Pe]]=ne[st[Pe]]);return xe},ze=ne=>{const{prefixCls:pe,className:xe,dashed:st}=ne,Pe=Ne(ne,["prefixCls","className","dashed"]),{getPrefixCls:je}=z.useContext(Ye.E_),rt=je("menu",pe),yt=Ee()({[`${rt}-item-divider-dashed`]:!!st},xe);return z.createElement(it.iz,Object.assign({className:yt},Pe))},ft=ie(11592),wt=ie(25399),ht=ne=>{var pe;const{className:xe,children:st,icon:Pe,title:je,danger:rt,extra:yt}=ne,{prefixCls:gt,firstLevel:Kt,direction:jt,disableMenuItemTitleTooltip:Ht,inlineCollapsed:tn}=z.useContext(Ke),Qt=tt=>{const Tt=st==null?void 0:st[0],Rt=z.createElement("span",{className:Ee()(`${gt}-title-content`,{[`${gt}-title-content-with-extra`]:!!yt||yt===0})},st);return(!Pe||z.isValidElement(st)&&st.type==="span")&&st&&tt&&Kt&&typeof Tt=="string"?z.createElement("div",{className:`${gt}-inline-collapsed-noicon`},Tt.charAt(0)):Rt},{siderCollapsed:nn}=z.useContext(ve.D);let Ct=je;typeof je=="undefined"?Ct=Kt?st:"":je===!1&&(Ct="");const qt={title:Ct};!nn&&!tn&&(qt.title=null,qt.open=!1);const Wt=(0,ft.Z)(st).length;let De=z.createElement(it.ck,Object.assign({},(0,Xe.Z)(ne,["title","icon","danger"]),{className:Ee()({[`${gt}-item-danger`]:rt,[`${gt}-item-only-child`]:(Pe?Wt+1:Wt)===1},xe),title:typeof je=="string"?je:void 0}),(0,he.Tm)(Pe,{className:Ee()(z.isValidElement(Pe)?(pe=Pe.props)===null||pe===void 0?void 0:pe.className:"",`${gt}-item-icon`)}),Qt(tn));return Ht||(De=z.createElement(wt.Z,Object.assign({},qt,{placement:jt==="rtl"?"left":"right",classNames:{root:`${gt}-inline-collapsed-tooltip`}}),De)),De},lt=ie(78857),ot=ie(36237),Ze=ie(17835),It=ie(63356),et=ie(34961),qe=ie(46e3),vt=ie(34925),Me=ie(16931),Ue=ie(51636),ue=ne=>{const{componentCls:pe,motionDurationSlow:xe,horizontalLineHeight:st,colorSplit:Pe,lineWidth:je,lineType:rt,itemPaddingInline:yt}=ne;return{[`${pe}-horizontal`]:{lineHeight:st,border:0,borderBottom:`${(0,ot.unit)(je)} ${rt} ${Pe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${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"}}}},Oe=ne=>{let{componentCls:pe,menuArrowOffset:xe,calc:st}=ne;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,ot.unit)(st(xe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ot.unit)(xe)})`}}}}};const Je=ne=>Object.assign({},(0,It.oN)(ne));var ye=(ne,pe)=>{const{componentCls:xe,itemColor:st,itemSelectedColor:Pe,subMenuItemSelectedColor:je,groupTitleColor:rt,itemBg:yt,subMenuItemBg:gt,itemSelectedBg:Kt,activeBarHeight:jt,activeBarWidth:Ht,activeBarBorderWidth:tn,motionDurationSlow:Qt,motionEaseInOut:nn,motionEaseOut:Ct,itemPaddingInline:qt,motionDurationMid:Wt,itemHoverColor:De,lineType:tt,colorSplit:Tt,itemDisabledColor:Rt,dangerItemColor:ke,dangerItemHoverColor:$e,dangerItemSelectedColor:at,dangerItemActiveBg:Et,dangerItemSelectedBg:Gt,popupBg:an,itemHoverBg:In,itemActiveBg:kn,menuSubMenuBg:rn,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:_t,horizontalItemHoverBg:Mt}=ne;return{[`${xe}-${pe}, ${xe}-${pe} > ${xe}`]:{color:st,background:yt,[`&${xe}-root:focus-visible`]:Object.assign({},Je(ne)),[`${xe}-item`]:{"&-group-title, &-extra":{color:rt}},[`${xe}-submenu-selected > ${xe}-submenu-title`]:{color:je},[`${xe}-item, ${xe}-submenu-title`]:{color:st,[`&:not(${xe}-item-disabled):focus-visible`]:Object.assign({},Je(ne))},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{color:`${Rt} !important`},[`${xe}-item:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{[`&:hover, > ${xe}-submenu-title:hover`]:{color:De}},[`&:not(${xe}-horizontal)`]:{[`${xe}-item:not(${xe}-item-selected)`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:kn}},[`${xe}-submenu-title`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:kn}}},[`${xe}-item-danger`]:{color:ke,[`&${xe}-item:hover`]:{[`&:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{color:$e}},[`&${xe}-item:active`]:{background:Et}},[`${xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${xe}-item-selected`]:{color:Pe,[`&${xe}-item-danger`]:{color:at},"a, a:hover":{color:"inherit"}},[`& ${xe}-item-selected`]:{backgroundColor:Kt,[`&${xe}-item-danger`]:{backgroundColor:Gt}},[`&${xe}-submenu > ${xe}`]:{backgroundColor:rn},[`&${xe}-popup > ${xe}`]:{backgroundColor:an},[`&${xe}-submenu-popup > ${xe}`]:{backgroundColor:an},[`&${xe}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${xe}-item, > ${xe}-submenu`]:{top:tn,marginTop:ne.calc(tn).mul(-1).equal(),marginBottom:0,borderRadius:_t,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${(0,ot.unit)(jt)} solid transparent`,transition:`border-color ${Qt} ${nn}`,content:'""'},"&:hover, &-active, &-open":{background:Mt,"&::after":{borderBottomWidth:jt,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:dn,"&:hover":{backgroundColor:dn},"&::after":{borderBottomWidth:jt,borderBottomColor:bn}}}}),[`&${xe}-root`]:{[`&${xe}-inline, &${xe}-vertical`]:{borderInlineEnd:`${(0,ot.unit)(tn)} ${tt} ${Tt}`}},[`&${xe}-inline`]:{[`${xe}-sub${xe}-inline`]:{background:gt},[`${xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ot.unit)(Ht)} solid ${Pe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Wt} ${Ct}`,`opacity ${Wt} ${Ct}`].join(","),content:'""'},[`&${xe}-item-danger`]:{"&::after":{borderInlineEndColor:at}}},[`${xe}-selected, ${xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Wt} ${nn}`,`opacity ${Wt} ${nn}`].join(",")}}}}}};const fe=ne=>{const{componentCls:pe,itemHeight:xe,itemMarginInline:st,padding:Pe,menuArrowSize:je,marginXS:rt,itemMarginBlock:yt,itemWidth:gt,itemPaddingInline:Kt}=ne,jt=ne.calc(je).add(Pe).add(rt).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:xe,lineHeight:(0,ot.unit)(xe),paddingInline:Kt,overflow:"hidden",textOverflow:"ellipsis",marginInline:st,marginBlock:yt,width:gt},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:xe,lineHeight:(0,ot.unit)(xe)},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:jt}}};var Zt=ne=>{const{componentCls:pe,iconCls:xe,itemHeight:st,colorTextLightSolid:Pe,dropdownWidth:je,controlHeightLG:rt,motionEaseOut:yt,paddingXL:gt,itemMarginInline:Kt,fontSizeLG:jt,motionDurationFast:Ht,motionDurationSlow:tn,paddingXS:Qt,boxShadowSecondary:nn,collapsedWidth:Ct,collapsedIconSize:qt}=ne,Wt={height:st,lineHeight:(0,ot.unit)(st),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},fe(ne))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},fe(ne)),{boxShadow:nn})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:je,maxHeight:`calc(100vh - ${(0,ot.unit)(ne.calc(rt).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 ${tn}`,`background ${tn}`,`padding ${Ht} ${yt}`].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`]:Wt,[`& ${pe}-item-group-title`]:{paddingInlineStart:gt}},[`${pe}-item`]:Wt}},{[`${pe}-inline-collapsed`]:{width:Ct,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:jt,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,ot.unit)(ne.calc(qt).div(2).equal())} - ${(0,ot.unit)(Kt)})`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${xe}`]:{margin:0,fontSize:qt,lineHeight:(0,ot.unit)(st),"+ 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:Pe}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},It.vS),{paddingInline:Qt})}}]};const bt=ne=>{const{componentCls:pe,motionDurationSlow:xe,motionDurationMid:st,motionEaseInOut:Pe,motionEaseOut:je,iconCls:rt,iconSize:yt,iconMarginInlineEnd:gt}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${xe}`,`background ${xe}`,`padding calc(${xe} + 0.1s) ${Pe}`].join(","),[`${pe}-item-icon, ${rt}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${st} ${je}`,`margin ${xe} ${Pe}`,`color ${xe}`].join(","),"+ span":{marginInlineStart:gt,opacity:1,transition:[`opacity ${xe} ${Pe}`,`margin ${xe}`,`color ${xe}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,It.Ro)()),[`&${pe}-item-only-child`]:{[`> ${rt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},me=ne=>{const{componentCls:pe,motionDurationSlow:xe,motionEaseInOut:st,borderRadius:Pe,menuArrowSize:je,menuArrowOffset:rt}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${xe} ${st}, opacity ${xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(je).mul(.6).equal(),height:ne.calc(je).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Pe,transition:[`background ${xe} ${st}`,`transform ${xe} ${st}`,`top ${xe} ${st}`,`color ${xe} ${st}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ot.unit)(ne.calc(rt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ot.unit)(rt)})`}}}}},Te=ne=>{const{antCls:pe,componentCls:xe,fontSize:st,motionDurationSlow:Pe,motionDurationMid:je,motionEaseInOut:rt,paddingXS:yt,padding:gt,colorSplit:Kt,lineWidth:jt,zIndexPopup:Ht,borderRadiusLG:tn,subMenuItemBorderRadius:Qt,menuArrowSize:nn,menuArrowOffset:Ct,lineType:qt,groupTitleLineHeight:Wt,groupTitleFontSize:De}=ne;return[{"":{[xe]:Object.assign(Object.assign({},(0,It.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,It.Wf)(ne)),(0,It.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:st,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Pe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${xe}-item`]:{flex:"none"}},[`${xe}-item, ${xe}-submenu, ${xe}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${xe}-item-group-title`]:{padding:`${(0,ot.unit)(yt)} ${(0,ot.unit)(gt)}`,fontSize:De,lineHeight:Wt,transition:`all ${Pe}`},[`&-horizontal ${xe}-submenu`]:{transition:[`border-color ${Pe} ${rt}`,`background ${Pe} ${rt}`].join(",")},[`${xe}-submenu, ${xe}-submenu-inline`]:{transition:[`border-color ${Pe} ${rt}`,`background ${Pe} ${rt}`,`padding ${je} ${rt}`].join(",")},[`${xe}-submenu ${xe}-sub`]:{cursor:"initial",transition:[`background ${Pe} ${rt}`,`padding ${Pe} ${rt}`].join(",")},[`${xe}-title-content`]:{transition:`color ${Pe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${xe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Kt,borderStyle:qt,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),bt(ne)),{[`${xe}-item-group`]:{[`${xe}-item-group-list`]:{margin:0,padding:0,[`${xe}-item, ${xe}-submenu-title`]:{paddingInline:`${(0,ot.unit)(ne.calc(st).mul(2).equal())} ${(0,ot.unit)(gt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:tn,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:tn},bt(ne)),me(ne)),{[`${xe}-item, ${xe}-submenu > ${xe}-submenu-title`]:{borderRadius:Qt},[`${xe}-submenu-title::after`]:{transition:`transform ${Pe} ${rt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),me(ne)),{[`&-inline-collapsed ${xe}-submenu-arrow,
|
|
|
&-inline ${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ot.unit)(Ct)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ot.unit)(ne.calc(Ct).mul(-1).equal())})`}},[`${xe}-submenu-open${xe}-submenu-inline > ${xe}-submenu-title > ${xe}-submenu-arrow`]:{transform:`translateY(${(0,ot.unit)(ne.calc(nn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ot.unit)(ne.calc(Ct).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ot.unit)(Ct)})`}}})},{[`${pe}-layout-header`]:{[xe]:{lineHeight:"inherit"}}}]},_e=ne=>{var pe,xe,st;const{colorPrimary:Pe,colorError:je,colorTextDisabled:rt,colorErrorBg:yt,colorText:gt,colorTextDescription:Kt,colorBgContainer:jt,colorFillAlter:Ht,colorFillContent:tn,lineWidth:Qt,lineWidthBold:nn,controlItemBgActive:Ct,colorBgTextHover:qt,controlHeightLG:Wt,lineHeight:De,colorBgElevated:tt,marginXXS:Tt,padding:Rt,fontSize:ke,controlHeightSM:$e,fontSizeLG:at,colorTextLightSolid:Et,colorErrorHover:Gt}=ne,an=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,In=(xe=ne.activeBarBorderWidth)!==null&&xe!==void 0?xe:Qt,kn=(st=ne.itemMarginInline)!==null&&st!==void 0?st:ne.marginXXS,rn=new Ze.FastColor(Et).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:gt,itemColor:gt,colorItemTextHover:gt,itemHoverColor:gt,colorItemTextHoverHorizontal:Pe,horizontalItemHoverColor:Pe,colorGroupTitle:Kt,groupTitleColor:Kt,colorItemTextSelected:Pe,itemSelectedColor:Pe,subMenuItemSelectedColor:Pe,colorItemTextSelectedHorizontal:Pe,horizontalItemSelectedColor:Pe,colorItemBg:jt,itemBg:jt,colorItemBgHover:qt,itemHoverBg:qt,colorItemBgActive:tn,itemActiveBg:Ct,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:Ct,itemSelectedBg:Ct,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:an,colorActiveBarHeight:nn,activeBarHeight:nn,colorActiveBarBorderSize:Qt,activeBarBorderWidth:In,colorItemTextDisabled:rt,itemDisabledColor:rt,colorDangerItemText:je,dangerItemColor:je,colorDangerItemTextHover:je,dangerItemHoverColor:je,colorDangerItemTextSelected:je,dangerItemSelectedColor:je,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:kn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wt,groupTitleLineHeight:De,collapsedWidth:Wt*2,popupBg:tt,itemMarginBlock:Tt,itemPaddingInline:Rt,horizontalLineHeight:`${Wt*1.15}px`,iconSize:ke,iconMarginInlineEnd:$e-ke,collapsedIconSize:at,groupTitleFontSize:ke,darkItemDisabledColor:new Ze.FastColor(Et).setA(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:je,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Et,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:je,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:Et,darkDangerItemHoverColor:Gt,darkDangerItemSelectedColor:Et,darkDangerItemActiveBg:je,itemWidth:an?`calc(100% + ${In}px)`:`calc(100% - ${kn*2}px)`}};var Nt=function(ne){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",Pe=>{const{colorBgElevated:je,controlHeightLG:rt,fontSize:yt,darkItemColor:gt,darkDangerItemColor:Kt,darkItemBg:jt,darkSubMenuItemBg:Ht,darkItemSelectedColor:tn,darkItemSelectedBg:Qt,darkDangerItemSelectedBg:nn,darkItemHoverBg:Ct,darkGroupTitleColor:qt,darkItemHoverColor:Wt,darkItemDisabledColor:De,darkDangerItemHoverColor:tt,darkDangerItemSelectedColor:Tt,darkDangerItemActiveBg:Rt,popupBg:ke,darkPopupBg:$e}=Pe,at=Pe.calc(yt).div(7).mul(5).equal(),Et=(0,Ue.mergeToken)(Pe,{menuArrowSize:at,menuHorizontalHeight:Pe.calc(rt).mul(1.15).equal(),menuArrowOffset:Pe.calc(at).mul(.25).equal(),menuSubMenuBg:je,calc:Pe.calc,popupBg:ke}),Gt=(0,Ue.mergeToken)(Et,{itemColor:gt,itemHoverColor:Wt,groupTitleColor:qt,itemSelectedColor:tn,subMenuItemSelectedColor:tn,itemBg:jt,popupBg:$e,subMenuItemBg:Ht,itemActiveBg:"transparent",itemSelectedBg:Qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ct,itemDisabledColor:De,dangerItemColor:Kt,dangerItemHoverColor:tt,dangerItemSelectedColor:Tt,dangerItemActiveBg:Rt,dangerItemSelectedBg:nn,menuSubMenuBg:Ht,horizontalItemSelectedColor:tn,horizontalItemSelectedBg:Qt});return[Te(Et),ue(Et),Zt(Et),ye(Et,"light"),ye(Gt,"dark"),Oe(Et),(0,et.Z)(Et),(0,qe.oN)(Et,"slide-up"),(0,qe.oN)(Et,"slide-down"),(0,vt._y)(Et,"zoom-big")]},_e,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:xe,unitless:{groupTitleLineHeight:!0}})(ne,pe)},xt=ie(75030),Ae=ne=>{var pe;const{popupClassName:xe,icon:st,title:Pe,theme:je}=ne,rt=z.useContext(Ke),{prefixCls:yt,inlineCollapsed:gt,theme:Kt}=rt,jt=(0,it.Xl)();let Ht;if(!st)Ht=gt&&!jt.length&&Pe&&typeof Pe=="string"?z.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Pe.charAt(0)):z.createElement("span",{className:`${yt}-title-content`},Pe);else{const nn=z.isValidElement(Pe)&&Pe.type==="span";Ht=z.createElement(z.Fragment,null,(0,he.Tm)(st,{className:Ee()(z.isValidElement(st)?(pe=st.props)===null||pe===void 0?void 0:pe.className:"",`${yt}-item-icon`)}),nn?Pe:z.createElement("span",{className:`${yt}-title-content`},Pe))}const tn=z.useMemo(()=>Object.assign(Object.assign({},rt),{firstLevel:!1}),[rt]),[Qt]=(0,xt.Cn)("Menu");return z.createElement(Ke.Provider,{value:tn},z.createElement(it.Wd,Object.assign({},(0,Xe.Z)(ne,["icon"]),{title:Ht,popupClassName:Ee()(yt,xe,`${yt}-${je||Kt}`),popupStyle:Object.assign({zIndex:Qt},ne.popupStyle)})))},$t=function(ne,pe){var xe={};for(var st in ne)Object.prototype.hasOwnProperty.call(ne,st)&&pe.indexOf(st)<0&&(xe[st]=ne[st]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,st=Object.getOwnPropertySymbols(ne);Pe<st.length;Pe++)pe.indexOf(st[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,st[Pe])&&(xe[st[Pe]]=ne[st[Pe]]);return xe};function ct(ne){return ne===null||ne===!1}const ae={item:ht,submenu:Ae,divider:ze};var ee=(0,z.forwardRef)((ne,pe)=>{var xe;const st=z.useContext(lt.Z),Pe=st||{},{getPrefixCls:je,getPopupContainer:rt,direction:yt,menu:gt}=z.useContext(Ye.E_),Kt=je(),{prefixCls:jt,className:Ht,style:tn,theme:Qt="light",expandIcon:nn,_internalDisableMenuItemTitleTooltip:Ct,inlineCollapsed:qt,siderCollapsed:Wt,rootClassName:De,mode:tt,selectable:Tt,onClick:Rt,overflowedIndicatorPopupClassName:ke}=ne,$e=$t(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),at=(0,Xe.Z)($e,["collapsedWidth"]);(xe=Pe.validator)===null||xe===void 0||xe.call(Pe,{mode:tt});const Et=(0,Le.Z)(function(){var Yt;Rt==null||Rt.apply(void 0,arguments),(Yt=Pe.onClick)===null||Yt===void 0||Yt.call(Pe)}),Gt=Pe.mode||tt,an=Tt!=null?Tt:Pe.selectable,In=qt!=null?qt:Wt,kn={horizontal:{motionName:`${Kt}-slide-up`},inline:(0,Ie.Z)(Kt),other:{motionName:`${Kt}-zoom-big`}},rn=je("menu",jt||Pe.prefixCls),bn=(0,Ce.Z)(rn),[dn,_t,Mt]=Nt(rn,bn,!st),Dt=Ee()(`${rn}-${Qt}`,gt==null?void 0:gt.className,Ht),pt=z.useMemo(()=>{var Yt,Jt;if(typeof nn=="function"||ct(nn))return nn||null;if(typeof Pe.expandIcon=="function"||ct(Pe.expandIcon))return Pe.expandIcon||null;if(typeof(gt==null?void 0:gt.expandIcon)=="function"||ct(gt==null?void 0:gt.expandIcon))return(gt==null?void 0:gt.expandIcon)||null;const vn=(Yt=nn!=null?nn:Pe==null?void 0:Pe.expandIcon)!==null&&Yt!==void 0?Yt:gt==null?void 0:gt.expandIcon;return(0,he.Tm)(vn,{className:Ee()(`${rn}-submenu-expand-icon`,z.isValidElement(vn)?(Jt=vn.props)===null||Jt===void 0?void 0:Jt.className:void 0)})},[nn,Pe==null?void 0:Pe.expandIcon,gt==null?void 0:gt.expandIcon,rn]),en=z.useMemo(()=>({prefixCls:rn,inlineCollapsed:In||!1,direction:yt,firstLevel:!0,theme:Qt,mode:Gt,disableMenuItemTitleTooltip:Ct}),[rn,In,yt,Ct,Qt]);return dn(z.createElement(lt.Z.Provider,{value:null},z.createElement(Ke.Provider,{value:en},z.createElement(it.ZP,Object.assign({getPopupContainer:rt,overflowedIndicator:z.createElement(Qe.Z,null),overflowedIndicatorPopupClassName:Ee()(rn,`${rn}-${Qt}`,ke),mode:Gt,selectable:an,onClick:Et},at,{inlineCollapsed:In,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),tn),className:Dt,prefixCls:rn,direction:yt,defaultMotions:kn,expandIcon:pt,ref:pe,rootClassName:Ee()(De,_t,Pe.rootClassName,Mt,bn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,pe)=>{const xe=(0,z.useRef)(null),st=z.useContext(ve.D);return(0,z.useImperativeHandle)(pe,()=>({menu:xe.current,focus:Pe=>{var je;(je=xe.current)===null||je===void 0||je.focus(Pe)}})),z.createElement(ee,Object.assign({ref:xe},ne,st))});oe.Item=ht,oe.SubMenu=Ae,oe.Divider=ze,oe.ItemGroup=it.BW;var se=oe},89787:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Wt}});var z=ie(59301),it=ie(17835),ve=ie(29679),Qe=ie(40001),Se=ie(19248),Ee=ie(99267),Le=ie(92310),Xe=ie.n(Le),Ie=ie(2738),he=ie(48755),Ye=ie(60499),Ce=ie(85899),St=ie(42244),Ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ne=function(){var tt=(0,z.useRef)([]),Tt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var Rt=Date.now(),ke=!1;tt.current.forEach(function($e){if($e){ke=!0;var at=$e.style;at.transitionDuration=".3s, .3s, .3s, .06s",Tt.current&&Rt-Tt.current<100&&(at.transitionDuration="0s, 0s")}}),ke&&(Tt.current=Date.now())}),tt.current},Ge=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ze=function(tt){var Tt=(0,Ce.Z)((0,Ce.Z)({},Ke),tt),Rt=Tt.className,ke=Tt.percent,$e=Tt.prefixCls,at=Tt.strokeColor,Et=Tt.strokeLinecap,Gt=Tt.strokeWidth,an=Tt.style,In=Tt.trailColor,kn=Tt.trailWidth,rn=Tt.transition,bn=(0,St.Z)(Tt,Ge);delete bn.gapPosition;var dn=Array.isArray(ke)?ke:[ke],_t=Array.isArray(at)?at:[at],Mt=Ne(),Dt=Gt/2,pt=100-Gt/2,en="M ".concat(Et==="round"?Dt:0,",").concat(Dt,`
|
|
|
L `).concat(Et==="round"?pt:100,",").concat(Dt),Yt="0 0 100 ".concat(Gt),Jt=0;return z.createElement("svg",(0,Ye.Z)({className:Xe()("".concat($e,"-line"),Rt),viewBox:Yt,preserveAspectRatio:"none",style:an},bn),z.createElement("path",{className:"".concat($e,"-line-trail"),d:en,strokeLinecap:Et,stroke:In,strokeWidth:kn||Gt,fillOpacity:"0"}),dn.map(function(vn,wn){var Sn=1;switch(Et){case"round":Sn=1-Gt/100;break;case"square":Sn=1-Gt/2/100;break;default:Sn=1;break}var On={strokeDasharray:"".concat(vn*Sn,"px, 100px"),strokeDashoffset:"-".concat(Jt,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Mn=_t[wn]||_t[_t.length-1];return Jt+=vn,z.createElement("path",{key:wn,className:"".concat($e,"-line-path"),d:en,strokeLinecap:Et,stroke:Mn,strokeWidth:Gt,fillOpacity:"0",ref:function(An){Mt[wn]=An},style:On})}))},ft=ze,wt=ie(43749),At=ie(72190),ht=ie(47273),lt=0,ot=(0,ht.Z)();function Ze(){var De;return ot?(De=lt,lt+=1):De="TEST_OR_SSR",De}var It=function(De){var tt=z.useState(),Tt=(0,At.Z)(tt,2),Rt=Tt[0],ke=Tt[1];return z.useEffect(function(){ke("rc_progress_".concat(Ze()))},[]),De||Rt},et=function(tt){var Tt=tt.bg,Rt=tt.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:Tt}},Rt)};function qe(De,tt){return Object.keys(De).map(function(Tt){var Rt=parseFloat(Tt),ke="".concat(Math.floor(Rt*tt),"%");return"".concat(De[Tt]," ").concat(ke)})}var vt=z.forwardRef(function(De,tt){var Tt=De.prefixCls,Rt=De.color,ke=De.gradientId,$e=De.radius,at=De.style,Et=De.ptg,Gt=De.strokeLinecap,an=De.strokeWidth,In=De.size,kn=De.gapDegree,rn=Rt&&(0,wt.Z)(Rt)==="object",bn=rn?"#FFF":void 0,dn=In/2,_t=z.createElement("circle",{className:"".concat(Tt,"-circle-path"),r:$e,cx:dn,cy:dn,stroke:bn,strokeLinecap:Gt,strokeWidth:an,opacity:Et===0?0:1,style:at,ref:tt});if(!rn)return _t;var Mt="".concat(ke,"-conic"),Dt=kn?"".concat(180+kn/2,"deg"):"0deg",pt=qe(Rt,(360-kn)/360),en=qe(Rt,1),Yt="conic-gradient(from ".concat(Dt,", ").concat(pt.join(", "),")"),Jt="linear-gradient(to ".concat(kn?"bottom":"top",", ").concat(en.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:Mt},_t),z.createElement("foreignObject",{x:0,y:0,width:In,height:In,mask:"url(#".concat(Mt,")")},z.createElement(et,{bg:Jt},z.createElement(et,{bg:Yt}))))}),Me=vt,Ue=100,He=function(tt,Tt,Rt,ke,$e,at,Et,Gt,an,In){var kn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=Rt/100*360*((360-at)/360),bn=at===0?0:{bottom:0,top:180,left:90,right:-90}[Et],dn=(100-ke)/100*Tt;an==="round"&&ke!==100&&(dn+=In/2,dn>=Tt&&(dn=Tt-.01));var _t=Ue/2;return{stroke:typeof Gt=="string"?Gt:void 0,strokeDasharray:"".concat(Tt,"px ").concat(tt),strokeDashoffset:dn+kn,transform:"rotate(".concat($e+rn+bn,"deg)"),transformOrigin:"".concat(_t,"px ").concat(_t,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ut(De){var tt=De!=null?De:[];return Array.isArray(tt)?tt:[tt]}var Oe=function(tt){var Tt=(0,Ce.Z)((0,Ce.Z)({},Ke),tt),Rt=Tt.id,ke=Tt.prefixCls,$e=Tt.steps,at=Tt.strokeWidth,Et=Tt.trailWidth,Gt=Tt.gapDegree,an=Gt===void 0?0:Gt,In=Tt.gapPosition,kn=Tt.trailColor,rn=Tt.strokeLinecap,bn=Tt.style,dn=Tt.className,_t=Tt.strokeColor,Mt=Tt.percent,Dt=(0,St.Z)(Tt,ue),pt=Ue/2,en=It(Rt),Yt="".concat(en,"-gradient"),Jt=pt-at/2,vn=Math.PI*2*Jt,wn=an>0?90+an/2:-90,Sn=vn*((360-an)/360),On=(0,wt.Z)($e)==="object"?$e:{count:$e,gap:2},Mn=On.count,jn=On.gap,An=ut(Mt),kt=ut(_t),Ut=kt.find(function(we){return we&&(0,wt.Z)(we)==="object"}),xn=Ut&&(0,wt.Z)(Ut)==="object",hn=xn?"butt":rn,Be=He(vn,Sn,0,100,wn,an,In,kn,hn,at),Ve=Ne(),be=function(){var Fe=0;return An.map(function(mt,on){var un=kt[on]||kt[kt.length-1],gn=He(vn,Sn,Fe,mt,wn,an,In,un,hn,at);return Fe+=mt,z.createElement(Me,{key:on,color:un,ptg:mt,radius:Jt,prefixCls:ke,gradientId:Yt,style:gn,strokeLinecap:hn,strokeWidth:at,gapDegree:an,ref:function(Bt){Ve[on]=Bt},size:Ue})}).reverse()},Re=function(){var Fe=Math.round(Mn*(An[0]/100)),mt=100/Mn,on=0;return new Array(Mn).fill(null).map(function(un,gn){var Xt=gn<=Fe-1?kt[0]:kn,Bt=Xt&&(0,wt.Z)(Xt)==="object"?"url(#".concat(Yt,")"):void 0,Pt=He(vn,Sn,on,mt,wn,an,In,Xt,"butt",at,jn);return on+=(Sn-Pt.strokeDashoffset+jn)*100/Sn,z.createElement("circle",{key:gn,className:"".concat(ke,"-circle-path"),r:Jt,cx:pt,cy:pt,stroke:Bt,strokeWidth:at,opacity:1,style:Pt,ref:function(Bn){Ve[gn]=Bn}})})};return z.createElement("svg",(0,Ye.Z)({className:Xe()("".concat(ke,"-circle"),dn),viewBox:"0 0 ".concat(Ue," ").concat(Ue),style:bn,id:Rt,role:"presentation"},Dt),!Mn&&z.createElement("circle",{className:"".concat(ke,"-circle-trail"),r:Jt,cx:pt,cy:pt,stroke:kn,strokeLinecap:hn,strokeWidth:Et||at,style:Be}),Mn?Re():be())},Je=Oe,Ot={Line:ft,Circle:Je},ye=ie(25399),fe=ie(68361);function dt(De){return!De||De<0?0:De>100?100:De}function Zt(De){let{success:tt,successPercent:Tt}=De,Rt=Tt;return tt&&"progress"in tt&&(Rt=tt.progress),tt&&"percent"in tt&&(Rt=tt.percent),Rt}const bt=De=>{let{percent:tt,success:Tt,successPercent:Rt}=De;const ke=dt(Zt({success:Tt,successPercent:Rt}));return[ke,dt(dt(tt)-ke)]},me=De=>{let{success:tt={},strokeColor:Tt}=De;const{strokeColor:Rt}=tt;return[Rt||fe.presetPrimaryColors.green,Tt||null]},Te=(De,tt,Tt)=>{var Rt,ke,$e,at;let Et=-1,Gt=-1;if(tt==="step"){const an=Tt.steps,In=Tt.strokeWidth;typeof De=="string"||typeof De=="undefined"?(Et=De==="small"?2:14,Gt=In!=null?In:8):typeof De=="number"?[Et,Gt]=[De,De]:[Et=14,Gt=8]=Array.isArray(De)?De:[De.width,De.height],Et*=an}else if(tt==="line"){const an=Tt==null?void 0:Tt.strokeWidth;typeof De=="string"||typeof De=="undefined"?Gt=an||(De==="small"?6:8):typeof De=="number"?[Et,Gt]=[De,De]:[Et=-1,Gt=8]=Array.isArray(De)?De:[De.width,De.height]}else(tt==="circle"||tt==="dashboard")&&(typeof De=="string"||typeof De=="undefined"?[Et,Gt]=De==="small"?[60,60]:[120,120]:typeof De=="number"?[Et,Gt]=[De,De]:Array.isArray(De)&&(Et=(ke=(Rt=De[0])!==null&&Rt!==void 0?Rt:De[1])!==null&&ke!==void 0?ke:120,Gt=(at=($e=De[0])!==null&&$e!==void 0?$e:De[1])!==null&&at!==void 0?at:120));return[Et,Gt]},_e=3,Nt=De=>_e/De*100;var zt=De=>{const{prefixCls:tt,trailColor:Tt=null,strokeLinecap:Rt="round",gapPosition:ke,gapDegree:$e,width:at=120,type:Et,children:Gt,success:an,size:In=at,steps:kn}=De,[rn,bn]=Te(In,"circle");let{strokeWidth:dn}=De;dn===void 0&&(dn=Math.max(Nt(rn),6));const _t={width:rn,height:bn,fontSize:rn*.15+6},Mt=z.useMemo(()=>{if($e||$e===0)return $e;if(Et==="dashboard")return 75},[$e,Et]),Dt=bt(De),pt=ke||Et==="dashboard"&&"bottom"||void 0,en=Object.prototype.toString.call(De.strokeColor)==="[object Object]",Yt=me({success:an,strokeColor:De.strokeColor}),Jt=Xe()(`${tt}-inner`,{[`${tt}-circle-gradient`]:en}),vn=z.createElement(Je,{steps:kn,percent:kn?Dt[1]:Dt,strokeWidth:dn,trailWidth:dn,strokeColor:kn?Yt[1]:Yt,strokeLinecap:Rt,trailColor:Tt,prefixCls:tt,gapDegree:Mt,gapPosition:pt}),wn=rn<=20,Sn=z.createElement("div",{className:Jt,style:_t},vn,!wn&&Gt);return wn?z.createElement(ye.Z,{title:Gt},Sn):Sn},Ae=ie(36237),$t=ie(63356),ct=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=De=>{const tt=De?"100%":"-100%";return new Ae.Keyframes(`antProgress${De?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${tt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${tt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=De=>{const{componentCls:tt,iconCls:Tt}=De;return{[tt]:Object.assign(Object.assign({},(0,$t.Wf)(De)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:De.fontSize},[`${tt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${tt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:De.remainingColor,borderRadius:De.lineBorderRadius},[`${tt}-inner:not(${tt}-circle-gradient)`]:{[`${tt}-circle-path`]:{stroke:De.defaultColor}},[`${tt}-success-bg, ${tt}-bg`]:{position:"relative",background:De.defaultColor,borderRadius:De.lineBorderRadius,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOutCirc}`},[`${tt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${tt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:De.marginXXS}},[`${tt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${tt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${tt}-text-inner`]:{color:De.colorWhite,[`&${tt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${tt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:De.colorSuccess},[`${tt}-text`]:{display:"inline-block",marginInlineStart:De.marginXS,color:De.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Tt]:{fontSize:De.fontSize},[`&${tt}-text-outer`]:{width:"max-content"},[`&${tt}-text-outer${tt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:De.marginXS}},[`${tt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Ae.unit)(De.paddingXXS)}`,[`&${tt}-text-start`]:{justifyContent:"start"},[`&${tt}-text-end`]:{justifyContent:"end"}},[`&${tt}-status-active`]:{[`${tt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:De.colorBgContainer,borderRadius:De.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:De.progressActiveMotionDuration,animationTimingFunction:De.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${tt}-rtl${tt}-status-active`]:{[`${tt}-bg::before`]:{animationName:oe(!0)}},[`&${tt}-status-exception`]:{[`${tt}-bg`]:{backgroundColor:De.colorError},[`${tt}-text`]:{color:De.colorError}},[`&${tt}-status-exception ${tt}-inner:not(${tt}-circle-gradient)`]:{[`${tt}-circle-path`]:{stroke:De.colorError}},[`&${tt}-status-success`]:{[`${tt}-bg`]:{backgroundColor:De.colorSuccess},[`${tt}-text`]:{color:De.colorSuccess}},[`&${tt}-status-success ${tt}-inner:not(${tt}-circle-gradient)`]:{[`${tt}-circle-path`]:{stroke:De.colorSuccess}}})}},ne=De=>{const{componentCls:tt,iconCls:Tt}=De;return{[tt]:{[`${tt}-circle-trail`]:{stroke:De.remainingColor},[`&${tt}-circle ${tt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${tt}-circle ${tt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:De.circleTextColor,fontSize:De.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Tt]:{fontSize:De.circleIconFontSize}},[`${tt}-circle&-status-exception`]:{[`${tt}-text`]:{color:De.colorError}},[`${tt}-circle&-status-success`]:{[`${tt}-text`]:{color:De.colorSuccess}}},[`${tt}-inline-circle`]:{lineHeight:1,[`${tt}-inner`]:{verticalAlign:"bottom"}}}},pe=De=>{const{componentCls:tt}=De;return{[tt]:{[`${tt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:De.progressStepMinWidth,marginInlineEnd:De.progressStepMarginInlineEnd,backgroundColor:De.remainingColor,transition:`all ${De.motionDurationSlow}`,"&-active":{backgroundColor:De.defaultColor}}}}}},xe=De=>{const{componentCls:tt,iconCls:Tt}=De;return{[tt]:{[`${tt}-small&-line, ${tt}-small&-line ${tt}-text ${Tt}`]:{fontSize:De.fontSizeSM}}}},st=De=>({circleTextColor:De.colorText,defaultColor:De.colorInfo,remainingColor:De.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${De.fontSize/De.fontSizeSM}em`});var Pe=(0,ct.I$)("Progress",De=>{const tt=De.calc(De.marginXXS).div(2).equal(),Tt=(0,ae.mergeToken)(De,{progressStepMarginInlineEnd:tt,progressStepMinWidth:tt,progressActiveMotionDuration:"2.4s"});return[se(Tt),ne(Tt),pe(Tt),xe(Tt)]},st),je=function(De,tt){var Tt={};for(var Rt in De)Object.prototype.hasOwnProperty.call(De,Rt)&&tt.indexOf(Rt)<0&&(Tt[Rt]=De[Rt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Rt=Object.getOwnPropertySymbols(De);ke<Rt.length;ke++)tt.indexOf(Rt[ke])<0&&Object.prototype.propertyIsEnumerable.call(De,Rt[ke])&&(Tt[Rt[ke]]=De[Rt[ke]]);return Tt};const rt=De=>{let tt=[];return Object.keys(De).forEach(Tt=>{const Rt=parseFloat(Tt.replace(/%/g,""));Number.isNaN(Rt)||tt.push({key:Rt,value:De[Tt]})}),tt=tt.sort((Tt,Rt)=>Tt.key-Rt.key),tt.map(Tt=>{let{key:Rt,value:ke}=Tt;return`${ke} ${Rt}%`}).join(", ")},yt=(De,tt)=>{const{from:Tt=fe.presetPrimaryColors.blue,to:Rt=fe.presetPrimaryColors.blue,direction:ke=tt==="rtl"?"to left":"to right"}=De,$e=je(De,["from","to","direction"]);if(Object.keys($e).length!==0){const Et=rt($e),Gt=`linear-gradient(${ke}, ${Et})`;return{background:Gt,[te]:Gt}}const at=`linear-gradient(${ke}, ${Tt}, ${Rt})`;return{background:at,[te]:at}};var Kt=De=>{const{prefixCls:tt,direction:Tt,percent:Rt,size:ke,strokeWidth:$e,strokeColor:at,strokeLinecap:Et="round",children:Gt,trailColor:an=null,percentPosition:In,success:kn}=De,{align:rn,type:bn}=In,dn=at&&typeof at!="string"?yt(at,Tt):{[te]:at,background:at},_t=Et==="square"||Et==="butt"?0:void 0,Mt=ke!=null?ke:[-1,$e||(ke==="small"?6:8)],[Dt,pt]=Te(Mt,"line",{strokeWidth:$e}),en={backgroundColor:an||void 0,borderRadius:_t},Yt=Object.assign(Object.assign({width:`${dt(Rt)}%`,height:pt,borderRadius:_t},dn),{[ee]:dt(Rt)/100}),Jt=Zt(De),vn={width:`${dt(Jt)}%`,height:pt,borderRadius:_t,backgroundColor:kn==null?void 0:kn.strokeColor},wn={width:Dt<0?"100%":Dt},Sn=z.createElement("div",{className:`${tt}-inner`,style:en},z.createElement("div",{className:Xe()(`${tt}-bg`,`${tt}-bg-${bn}`),style:Yt},bn==="inner"&&Gt),Jt!==void 0&&z.createElement("div",{className:`${tt}-success-bg`,style:vn})),On=bn==="outer"&&rn==="start",Mn=bn==="outer"&&rn==="end";return bn==="outer"&&rn==="center"?z.createElement("div",{className:`${tt}-layout-bottom`},Sn,Gt):z.createElement("div",{className:`${tt}-outer`,style:wn},On&&Gt,Sn,Mn&&Gt)},Ht=De=>{const{size:tt,steps:Tt,rounding:Rt=Math.round,percent:ke=0,strokeWidth:$e=8,strokeColor:at,trailColor:Et=null,prefixCls:Gt,children:an}=De,In=Rt(Tt*(ke/100)),kn=tt==="small"?2:14,rn=tt!=null?tt:[kn,$e],[bn,dn]=Te(rn,"step",{steps:Tt,strokeWidth:$e}),_t=bn/Tt,Mt=Array.from({length:Tt});for(let Dt=0;Dt<Tt;Dt++){const pt=Array.isArray(at)?at[Dt]:at;Mt[Dt]=z.createElement("div",{key:Dt,className:Xe()(`${Gt}-steps-item`,{[`${Gt}-steps-item-active`]:Dt<=In-1}),style:{backgroundColor:Dt<=In-1?pt:Et,width:_t,height:dn}})}return z.createElement("div",{className:`${Gt}-steps-outer`},Mt,an)},tn=function(De,tt){var Tt={};for(var Rt in De)Object.prototype.hasOwnProperty.call(De,Rt)&&tt.indexOf(Rt)<0&&(Tt[Rt]=De[Rt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Rt=Object.getOwnPropertySymbols(De);ke<Rt.length;ke++)tt.indexOf(Rt[ke])<0&&Object.prototype.propertyIsEnumerable.call(De,Rt[ke])&&(Tt[Rt[ke]]=De[Rt[ke]]);return Tt};const Qt=null,nn=["normal","exception","active","success"];var qt=z.forwardRef((De,tt)=>{const{prefixCls:Tt,className:Rt,rootClassName:ke,steps:$e,strokeColor:at,percent:Et=0,size:Gt="default",showInfo:an=!0,type:In="line",status:kn,format:rn,style:bn,percentPosition:dn={}}=De,_t=tn(De,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Mt="end",type:Dt="outer"}=dn,pt=Array.isArray(at)?at[0]:at,en=typeof at=="string"||Array.isArray(at)?at:void 0,Yt=z.useMemo(()=>{if(pt){const be=typeof pt=="string"?pt:Object.values(pt)[0];return new it.FastColor(be).isLight()}return!1},[at]),Jt=z.useMemo(()=>{var be,Re;const we=Zt(De);return parseInt(we!==void 0?(be=we!=null?we:0)===null||be===void 0?void 0:be.toString():(Re=Et!=null?Et:0)===null||Re===void 0?void 0:Re.toString(),10)},[Et,De.success,De.successPercent]),vn=z.useMemo(()=>!nn.includes(kn)&&Jt>=100?"success":kn||"normal",[kn,Jt]),{getPrefixCls:wn,direction:Sn,progress:On}=z.useContext(he.E_),Mn=wn("progress",Tt),[jn,An,kt]=Pe(Mn),Ut=In==="line",xn=Ut&&!$e,hn=z.useMemo(()=>{if(!an)return null;const be=Zt(De);let Re;const we=rn||(mt=>`${mt}%`),Fe=Ut&&Yt&&Dt==="inner";return Dt==="inner"||rn||vn!=="exception"&&vn!=="success"?Re=we(dt(Et),dt(be)):vn==="exception"?Re=Ut?z.createElement(Se.Z,null):z.createElement(Ee.Z,null):vn==="success"&&(Re=Ut?z.createElement(ve.Z,null):z.createElement(Qe.Z,null)),z.createElement("span",{className:Xe()(`${Mn}-text`,{[`${Mn}-text-bright`]:Fe,[`${Mn}-text-${Mt}`]:xn,[`${Mn}-text-${Dt}`]:xn}),title:typeof Re=="string"?Re:void 0},Re)},[an,Et,Jt,vn,In,Mn,rn]);let Be;In==="line"?Be=$e?z.createElement(Ht,Object.assign({},De,{strokeColor:en,prefixCls:Mn,steps:typeof $e=="object"?$e.count:$e}),hn):z.createElement(Kt,Object.assign({},De,{strokeColor:pt,prefixCls:Mn,direction:Sn,percentPosition:{align:Mt,type:Dt}}),hn):(In==="circle"||In==="dashboard")&&(Be=z.createElement(zt,Object.assign({},De,{strokeColor:pt,prefixCls:Mn,progressStatus:vn}),hn));const Ve=Xe()(Mn,`${Mn}-status-${vn}`,{[`${Mn}-${In==="dashboard"&&"circle"||In}`]:In!=="line",[`${Mn}-inline-circle`]:In==="circle"&&Te(Gt,"circle")[0]<=20,[`${Mn}-line`]:xn,[`${Mn}-line-align-${Mt}`]:xn,[`${Mn}-line-position-${Dt}`]:xn,[`${Mn}-steps`]:$e,[`${Mn}-show-info`]:an,[`${Mn}-${Gt}`]:typeof Gt=="string",[`${Mn}-rtl`]:Sn==="rtl"},On==null?void 0:On.className,Rt,ke,An,kt);return jn(z.createElement("div",Object.assign({ref:tt,style:Object.assign(Object.assign({},On==null?void 0:On.style),bn),className:Ve,role:"progressbar","aria-valuenow":Jt,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)(_t,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Be))}),Wt=qt},63139:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return bt}});var z=ie(59301),it=ie(60499),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Qe=ve,Se=ie(7657),Ee=function(Te,_e){return z.createElement(Se.Z,(0,it.Z)({},Te,{ref:_e,icon:Qe}))},Le=z.forwardRef(Ee),Xe=Le,Ie=ie(92310),he=ie.n(Ie),Ye=ie(18642),Ce=ie(72190),St=ie(42244),Ke=ie(18929),Ne=ie(10228),Ge=ie(26112);function ze(me,Te){var _e=me.disabled,Nt=me.prefixCls,xt=me.character,zt=me.characterRender,Ae=me.index,$t=me.count,ct=me.value,ae=me.allowHalf,te=me.focused,ee=me.onHover,oe=me.onClick,se=function(yt){ee(yt,Ae)},ne=function(yt){oe(yt,Ae)},pe=function(yt){yt.keyCode===Ne.Z.ENTER&&oe(yt,Ae)},xe=Ae+1,st=new Set([Nt]);ct===0&&Ae===0&&te?st.add("".concat(Nt,"-focused")):ae&&ct+.5>=xe&&ct<xe?(st.add("".concat(Nt,"-half")),st.add("".concat(Nt,"-active")),te&&st.add("".concat(Nt,"-focused"))):(xe<=ct?st.add("".concat(Nt,"-full")):st.add("".concat(Nt,"-zero")),xe===ct&&te&&st.add("".concat(Nt,"-focused")));var Pe=typeof xt=="function"?xt(me):xt,je=z.createElement("li",{className:he()(Array.from(st)),ref:Te},z.createElement("div",{onClick:_e?null:ne,onKeyDown:_e?null:pe,onMouseMove:_e?null:se,role:"radio","aria-checked":ct>Ae?"true":"false","aria-posinset":Ae+1,"aria-setsize":$t,tabIndex:_e?-1:0},z.createElement("div",{className:"".concat(Nt,"-first")},Pe),z.createElement("div",{className:"".concat(Nt,"-second")},Pe)));return zt&&(je=zt(je,me)),je}var ft=z.forwardRef(ze);function wt(){var me=z.useRef({});function Te(Nt){return me.current[Nt]}function _e(Nt){return function(xt){me.current[Nt]=xt}}return[Te,_e]}function At(me){var Te=me.pageXOffset,_e="scrollLeft";if(typeof Te!="number"){var Nt=me.document;Te=Nt.documentElement[_e],typeof Te!="number"&&(Te=Nt.body[_e])}return Te}function ht(me){var Te,_e,Nt=me.ownerDocument,xt=Nt.body,zt=Nt&&Nt.documentElement,Ae=me.getBoundingClientRect();return Te=Ae.left,_e=Ae.top,Te-=zt.clientLeft||xt.clientLeft||0,_e-=zt.clientTop||xt.clientTop||0,{left:Te,top:_e}}function lt(me){var Te=ht(me),_e=me.ownerDocument,Nt=_e.defaultView||_e.parentWindow;return Te.left+=At(Nt),Te.left}var ot=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ze(me,Te){var _e=me.prefixCls,Nt=_e===void 0?"rc-rate":_e,xt=me.className,zt=me.defaultValue,Ae=me.value,$t=me.count,ct=$t===void 0?5:$t,ae=me.allowHalf,te=ae===void 0?!1:ae,ee=me.allowClear,oe=ee===void 0?!0:ee,se=me.keyboard,ne=se===void 0?!0:se,pe=me.character,xe=pe===void 0?"\u2605":pe,st=me.characterRender,Pe=me.disabled,je=me.direction,rt=je===void 0?"ltr":je,yt=me.tabIndex,gt=yt===void 0?0:yt,Kt=me.autoFocus,jt=me.onHoverChange,Ht=me.onChange,tn=me.onFocus,Qt=me.onBlur,nn=me.onKeyDown,Ct=me.onMouseLeave,qt=(0,St.Z)(me,ot),Wt=wt(),De=(0,Ce.Z)(Wt,2),tt=De[0],Tt=De[1],Rt=z.useRef(null),ke=function(){if(!Pe){var hn;(hn=Rt.current)===null||hn===void 0||hn.focus()}};z.useImperativeHandle(Te,function(){return{focus:ke,blur:function(){if(!Pe){var hn;(hn=Rt.current)===null||hn===void 0||hn.blur()}}}});var $e=(0,Ke.Z)(zt||0,{value:Ae}),at=(0,Ce.Z)($e,2),Et=at[0],Gt=at[1],an=(0,Ke.Z)(null),In=(0,Ce.Z)(an,2),kn=In[0],rn=In[1],bn=function(hn,Be){var Ve=rt==="rtl",be=hn+1;if(te){var Re=tt(hn),we=lt(Re),Fe=Re.clientWidth;(Ve&&Be-we>Fe/2||!Ve&&Be-we<Fe/2)&&(be-=.5)}return be},dn=function(hn){Gt(hn),Ht==null||Ht(hn)},_t=z.useState(!1),Mt=(0,Ce.Z)(_t,2),Dt=Mt[0],pt=Mt[1],en=function(){pt(!0),tn==null||tn()},Yt=function(){pt(!1),Qt==null||Qt()},Jt=z.useState(null),vn=(0,Ce.Z)(Jt,2),wn=vn[0],Sn=vn[1],On=function(hn,Be){var Ve=bn(Be,hn.pageX);Ve!==kn&&(Sn(Ve),rn(null)),jt==null||jt(Ve)},Mn=function(hn){Pe||(Sn(null),rn(null),jt==null||jt(void 0)),hn&&(Ct==null||Ct(hn))},jn=function(hn,Be){var Ve=bn(Be,hn.pageX),be=!1;oe&&(be=Ve===Et),Mn(),dn(be?0:Ve),rn(be?Ve:null)},An=function(hn){var Be=hn.keyCode,Ve=rt==="rtl",be=te?.5:1;ne&&(Be===Ne.Z.RIGHT&&Et<ct&&!Ve?(dn(Et+be),hn.preventDefault()):Be===Ne.Z.LEFT&&Et>0&&!Ve||Be===Ne.Z.RIGHT&&Et>0&&Ve?(dn(Et-be),hn.preventDefault()):Be===Ne.Z.LEFT&&Et<ct&&Ve&&(dn(Et+be),hn.preventDefault())),nn==null||nn(hn)};z.useEffect(function(){Kt&&!Pe&&ke()},[]);var kt=new Array(ct).fill(0).map(function(xn,hn){return z.createElement(ft,{ref:Tt(hn),index:hn,count:ct,disabled:Pe,prefixCls:"".concat(Nt,"-star"),allowHalf:te,value:wn===null?Et:wn,onClick:jn,onHover:On,key:xn||hn,character:xe,characterRender:st,focused:Dt})}),Ut=he()(Nt,xt,(0,Ye.Z)((0,Ye.Z)({},"".concat(Nt,"-disabled"),Pe),"".concat(Nt,"-rtl"),rt==="rtl"));return z.createElement("ul",(0,it.Z)({className:Ut,onMouseLeave:Mn,tabIndex:Pe?-1:gt,onFocus:Pe?null:en,onBlur:Pe?null:Yt,onKeyDown:Pe?null:An,ref:Rt},(0,Ge.Z)(qt,{aria:!0,data:!0,attr:!0})),kt)}var It=z.forwardRef(Ze),et=It,qe=ie(48755),vt=ie(25399),Me=ie(36237),Ue=ie(63356),He=ie(16931),ue=ie(51636);const ut=me=>{const{componentCls:Te}=me;return{[`${Te}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:me.marginXS},"> div":{transition:`all ${me.motionDurationMid}, outline 0s`,"&:hover":{transform:me.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Me.unit)(me.lineWidth)} dashed ${me.starColor}`,transform:me.starHoverScale}},"&-first, &-second":{color:me.starBg,transition:`all ${me.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Te}-star-first, &-half ${Te}-star-second`]:{opacity:1},[`&-half ${Te}-star-first, &-full ${Te}-star-second`]:{color:"inherit"}}}},Oe=me=>({[`&-rtl${me.componentCls}`]:{direction:"rtl"}}),Je=me=>{const{componentCls:Te}=me;return{[Te]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(me)),{display:"inline-block",margin:0,padding:0,color:me.starColor,fontSize:me.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Te} ${Te}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ut(me)),Oe(me))}},Ot=me=>({starColor:me.yellow6,starSize:me.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:me.colorFillContent});var ye=(0,He.I$)("Rate",me=>{const Te=(0,ue.mergeToken)(me,{});return[Je(Te)]},Ot),fe=ie(2171),dt=function(me,Te){var _e={};for(var Nt in me)Object.prototype.hasOwnProperty.call(me,Nt)&&Te.indexOf(Nt)<0&&(_e[Nt]=me[Nt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Nt=Object.getOwnPropertySymbols(me);xt<Nt.length;xt++)Te.indexOf(Nt[xt])<0&&Object.prototype.propertyIsEnumerable.call(me,Nt[xt])&&(_e[Nt[xt]]=me[Nt[xt]]);return _e},bt=z.forwardRef((me,Te)=>{const{prefixCls:_e,className:Nt,rootClassName:xt,style:zt,tooltips:Ae,character:$t=z.createElement(Xe,null),disabled:ct}=me,ae=dt(me,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(yt,gt)=>{let{index:Kt}=gt;return Ae?z.createElement(vt.Z,{title:Ae[Kt]},yt):yt},{getPrefixCls:ee,direction:oe,rate:se}=z.useContext(qe.E_),ne=ee("rate",_e),[pe,xe,st]=ye(ne),Pe=Object.assign(Object.assign({},se==null?void 0:se.style),zt),je=z.useContext(fe.Z),rt=ct!=null?ct:je;return pe(z.createElement(et,Object.assign({ref:Te,character:$t,characterRender:te,disabled:rt},ae,{className:he()(Nt,xt,xe,st,se==null?void 0:se.className),style:Pe,prefixCls:ne,direction:oe})))})},82326:function(ln,Vt,ie){"use strict";var z=ie(59301),it=ie(92310),ve=ie.n(it),Qe=ie(37463),Se=ie(2738),Ee=ie(75030),Le=ie(86641),Xe=ie(45915),Ie=ie(82855),he=ie(48755),Ye=ie(38406),Ce=ie(2171),St=ie(83397),Ke=ie(31756),Ne=ie(56553),Ge=ie(24971),ze=ie(70045),ft=ie(57700),wt=ie(1722),At=ie(90376),ht=ie(68525),lt=ie(90005),ot=function(vt,Me){var Ue={};for(var He in vt)Object.prototype.hasOwnProperty.call(vt,He)&&Me.indexOf(He)<0&&(Ue[He]=vt[He]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,He=Object.getOwnPropertySymbols(vt);ue<He.length;ue++)Me.indexOf(He[ue])<0&&Object.prototype.propertyIsEnumerable.call(vt,He[ue])&&(Ue[He[ue]]=vt[He[ue]]);return Ue};const Ze="SECRET_COMBOBOX_MODE_DO_NOT_USE",It=(vt,Me)=>{var Ue;const{prefixCls:He,bordered:ue,className:ut,rootClassName:Oe,getPopupContainer:Je,popupClassName:Ot,dropdownClassName:ye,listHeight:fe=256,placement:dt,listItemHeight:Zt,size:bt,disabled:me,notFoundContent:Te,status:_e,builtinPlacements:Nt,dropdownMatchSelectWidth:xt,popupMatchSelectWidth:zt,direction:Ae,style:$t,allowClear:ct,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=vt,pe=ot(vt,["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:st,renderEmpty:Pe,direction:je,virtual:rt,popupMatchSelectWidth:yt,popupOverflow:gt}=z.useContext(he.E_),Kt=(0,he.dj)("select"),[,jt]=(0,ft.ZP)(),Ht=Zt!=null?Zt:jt==null?void 0:jt.controlHeight,tn=st("select",He),Qt=st(),nn=Ae!=null?Ae:je,{compactSize:Ct,compactItemClassnames:qt}=(0,ze.ri)(tn,nn),[Wt,De]=(0,Ge.Z)("select",ae,ue),tt=(0,St.Z)(tn),[Tt,Rt,ke]=(0,At.Z)(tn,tt),$e=z.useMemo(()=>{const{mode:An}=vt;if(An!=="combobox")return An===Ze?"combobox":An},[vt.mode]),at=$e==="multiple"||$e==="tags",Et=(0,lt.Z)(vt.suffixIcon,vt.showArrow),Gt=(Ue=zt!=null?zt:xt)!==null&&Ue!==void 0?Ue:yt,{status:an,hasFeedback:In,isFormItemInput:kn,feedbackIcon:rn}=z.useContext(Ne.aM),bn=(0,Ie.F)(an,_e);let dn;Te!==void 0?dn=Te:$e==="combobox"?dn=null:dn=(Pe==null?void 0:Pe("Select"))||z.createElement(Ye.Z,{componentName:"Select"});const{suffixIcon:_t,itemIcon:Mt,removeIcon:Dt,clearIcon:pt}=(0,ht.Z)(Object.assign(Object.assign({},pe),{multiple:at,hasFeedback:In,feedbackIcon:rn,showSuffixIcon:Et,prefixCls:tn,componentName:"Select"})),en=ct===!0?{clearIcon:pt}:ct,Yt=(0,Se.Z)(pe,["suffixIcon","itemIcon"]),Jt=ve()(Ot||ye,{[`${tn}-dropdown-${nn}`]:nn==="rtl"},Oe,ke,tt,Rt),vn=(0,Ke.Z)(An=>{var kt;return(kt=bt!=null?bt:Ct)!==null&&kt!==void 0?kt:An}),wn=z.useContext(Ce.Z),Sn=me!=null?me:wn,On=ve()({[`${tn}-lg`]:vn==="large",[`${tn}-sm`]:vn==="small",[`${tn}-rtl`]:nn==="rtl",[`${tn}-${Wt}`]:De,[`${tn}-in-form-item`]:kn},(0,Ie.Z)(tn,bn,In),qt,Kt.className,ut,Oe,ke,tt,Rt),Mn=z.useMemo(()=>dt!==void 0?dt:nn==="rtl"?"bottomRight":"bottomLeft",[dt,nn]),[jn]=(0,Ee.Cn)("SelectLike",te==null?void 0:te.zIndex);return Tt(z.createElement(Qe.ZP,Object.assign({ref:Me,virtual:rt,showSearch:Kt.showSearch},Yt,{style:Object.assign(Object.assign({},Kt.style),$t),dropdownMatchSelectWidth:Gt,transitionName:(0,Le.m)(Qt,"slide-up",ee),builtinPlacements:(0,wt.Z)(Nt,gt),listHeight:fe,listItemHeight:Ht,mode:$e,prefixCls:tn,placement:Mn,direction:nn,prefix:ne,suffixIcon:_t,menuItemSelectedIcon:Mt,removeIcon:Dt,allowClear:en,notFoundContent:dn,className:On,getPopupContainer:Je||xe,dropdownClassName:Jt,disabled:Sn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:jn}),maxCount:at?se:void 0,tagRender:at?oe:void 0})))},et=z.forwardRef(It),qe=(0,Xe.Z)(et,"dropdownAlign");et.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ze,et.Option=Qe.Wx,et.OptGroup=Qe.Xo,et._InternalPanelDoNotUseOrYouWillBeFired=qe,Vt.default=et},1722:function(ln,Vt){"use strict";const ie=it=>{const Qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:it==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Qe),{points:["br","tr"],offset:[0,-4]})}};function z(it,ve){return it||ie(ve)}Vt.Z=z},90376:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return He}});var z=ie(63356),it=ie(56119),ve=ie(16931),Qe=ie(51636),Se=ie(46e3),Ee=ie(93873);const Le=ue=>{const{optionHeight:ut,optionFontSize:Oe,optionLineHeight:Je,optionPadding:Ot}=ue;return{position:"relative",display:"block",minHeight:ut,padding:Ot,color:ue.colorText,fontWeight:"normal",fontSize:Oe,lineHeight:Je,boxSizing:"border-box"}};var Ie=ue=>{const{antCls:ut,componentCls:Oe}=ue,Je=`${Oe}-item`,Ot=`&${ut}-slide-up-enter${ut}-slide-up-enter-active`,ye=`&${ut}-slide-up-appear${ut}-slide-up-appear-active`,fe=`&${ut}-slide-up-leave${ut}-slide-up-leave-active`,dt=`${Oe}-dropdown-placement-`,Zt=`${Je}-option-selected`;return[{[`${Oe}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[`
|
|
|
${Ot}${dt}bottomLeft,
|
|
|
${ye}${dt}bottomLeft
|
|
|
`]:{animationName:Se.fJ},[`
|
|
|
${Ot}${dt}topLeft,
|
|
|
${ye}${dt}topLeft,
|
|
|
${Ot}${dt}topRight,
|
|
|
${ye}${dt}topRight
|
|
|
`]:{animationName:Se.Qt},[`${fe}${dt}bottomLeft`]:{animationName:Se.Uw},[`
|
|
|
${fe}${dt}topLeft,
|
|
|
${fe}${dt}topRight
|
|
|
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[Je]:Object.assign(Object.assign({},Le(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Je}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${Je}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${Je}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${Je}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Le(ue)),{color:ue.colorTextDisabled})}),[`${Zt}:has(+ ${Zt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Zt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Se.oN)(ue,"slide-up"),(0,Se.oN)(ue,"slide-down"),(0,Ee.Fm)(ue,"move-up"),(0,Ee.Fm)(ue,"move-down")]},he=ie(26743),Ye=ie(36237);function Ce(ue,ut){const{componentCls:Oe,inputPaddingHorizontalBase:Je,borderRadius:Ot}=ue,ye=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),fe=ut?`${Oe}-${ut}`:"";return{[`${Oe}-single${fe}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${Oe}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(ue,!0)),{display:"flex",borderRadius:Ot,flex:"1 1 auto",[`${Oe}-selection-wrap:after`]:{lineHeight:(0,Ye.unit)(ye)},[`${Oe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Oe}-selection-item,
|
|
|
${Oe}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,Ye.unit)(ye),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Oe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Oe}-selection-item:empty:after`,`${Oe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Oe}-show-arrow ${Oe}-selection-item,
|
|
|
&${Oe}-show-arrow ${Oe}-selection-search,
|
|
|
&${Oe}-show-arrow ${Oe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${Oe}-open ${Oe}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${Oe}-customize-input)`]:{[`${Oe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ye.unit)(Je)}`,[`${Oe}-selection-search-input`]:{height:ye,fontSize:ue.fontSize},"&:after":{lineHeight:(0,Ye.unit)(ye)}}},[`&${Oe}-customize-input`]:{[`${Oe}-selector`]:{"&:after":{display:"none"},[`${Oe}-selection-search`]:{position:"static",width:"100%"},[`${Oe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ye.unit)(Je)}`,"&:after":{display:"none"}}}}}}}function St(ue){const{componentCls:ut}=ue,Oe=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Ce(ue),Ce((0,Qe.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${ut}-single${ut}-sm`]:{[`&:not(${ut}-customize-input)`]:{[`${ut}-selector`]:{padding:`0 ${(0,Ye.unit)(Oe)}`},[`&${ut}-show-arrow ${ut}-selection-search`]:{insetInlineEnd:ue.calc(Oe).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[`
|
|
|
&${ut}-show-arrow ${ut}-selection-item,
|
|
|
&${ut}-show-arrow ${ut}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Ce((0,Qe.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const Ke=ue=>{const{fontSize:ut,lineHeight:Oe,lineWidth:Je,controlHeight:Ot,controlHeightSM:ye,controlHeightLG:fe,paddingXXS:dt,controlPaddingHorizontal:Zt,zIndexPopupBase:bt,colorText:me,fontWeightStrong:Te,controlItemBgActive:_e,controlItemBgHover:Nt,colorBgContainer:xt,colorFillSecondary:zt,colorBgContainerDisabled:Ae,colorTextDisabled:$t,colorPrimaryHover:ct,colorPrimary:ae,controlOutline:te}=ue,ee=dt*2,oe=Je*2,se=Math.min(Ot-ee,Ot-oe),ne=Math.min(ye-ee,ye-oe),pe=Math.min(fe-ee,fe-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(dt/2),zIndexPopup:bt+50,optionSelectedColor:me,optionSelectedFontWeight:Te,optionSelectedBg:_e,optionActiveBg:Nt,optionPadding:`${(Ot-ut*Oe)/2}px ${Zt}px`,optionFontSize:ut,optionLineHeight:Oe,optionHeight:Ot,selectorBg:xt,clearBg:xt,singleItemHeightLG:fe,multipleItemBg:zt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:Ae,multipleItemColorDisabled:$t,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:ct,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:dt}},Ne=(ue,ut)=>{const{componentCls:Oe,antCls:Je,controlOutlineWidth:Ot}=ue;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{border:`${(0,Ye.unit)(ue.lineWidth)} ${ue.lineType} ${ut.borderColor}`,background:ue.selectorBg},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{borderColor:ut.hoverBorderHover},[`${Oe}-focused& ${Oe}-selector`]:{borderColor:ut.activeBorderColor,boxShadow:`0 0 0 ${(0,Ye.unit)(Ot)} ${ut.activeOutlineColor}`,outline:0},[`${Oe}-prefix`]:{color:ut.color}}}},Ge=(ue,ut)=>({[`&${ue.componentCls}-status-${ut.status}`]:Object.assign({},Ne(ue,ut))}),ze=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ge(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ge(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Ye.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),ft=(ue,ut)=>{const{componentCls:Oe,antCls:Je}=ue;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{background:ut.bg,border:`${(0,Ye.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:ut.color},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{background:ut.hoverBg},[`${Oe}-focused& ${Oe}-selector`]:{background:ue.selectorBg,borderColor:ut.activeBorderColor,outline:0}}}},wt=(ue,ut)=>({[`&${ue.componentCls}-status-${ut.status}`]:Object.assign({},ft(ue,ut))}),At=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ft(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),wt(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),wt(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,Ye.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),ht=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,Ye.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Ye.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),lt=(ue,ut)=>{const{componentCls:Oe,antCls:Je}=ue;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{borderWidth:`0 0 ${(0,Ye.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:ut.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{borderColor:ut.hoverBorderHover},[`${Oe}-focused& ${Oe}-selector`]:{borderColor:ut.activeBorderColor,outline:0},[`${Oe}-prefix`]:{color:ut.color}}}},ot=(ue,ut)=>({[`&${ue.componentCls}-status-${ut.status}`]:Object.assign({},lt(ue,ut))}),Ze=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},lt(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),ot(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),ot(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Ye.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var et=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ze(ue)),At(ue)),ht(ue)),Ze(ue))});const qe=ue=>{const{componentCls:ut}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${ut}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ut}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},vt=ue=>{const{componentCls:ut}=ue;return{[`${ut}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Me=ue=>{const{antCls:ut,componentCls:Oe,inputPaddingHorizontalBase:Je,iconCls:Ot}=ue;return{[Oe]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Oe}-customize-input) ${Oe}-selector`]:Object.assign(Object.assign({},qe(ue)),vt(ue)),[`${Oe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${ut}-typography`]:{display:"inline"}}),[`${Oe}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${Oe}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Je,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[Ot]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Oe}-suffix)`]:{pointerEvents:"auto"}},[`${Oe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Oe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Oe}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${Oe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Je,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${Oe}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${Oe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Oe}-has-feedback`]:{[`${Oe}-clear`]:{insetInlineEnd:ue.calc(Je).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},Ue=ue=>{const{componentCls:ut}=ue;return[{[ut]:{[`&${ut}-in-form-item`]:{width:"100%"}}},Me(ue),St(ue),(0,he.ZP)(ue),Ie(ue),{[`${ut}-rtl`]:{direction:"rtl"}},(0,it.c)(ue,{borderElCls:`${ut}-selector`,focusElCls:`${ut}-focused`})]};var He=(0,ve.I$)("Select",(ue,ut)=>{let{rootPrefixCls:Oe}=ut;const Je=(0,Qe.mergeToken)(ue,{rootPrefixCls:Oe,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[Ue(Je),et(Je)]},Ke,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(ln,Vt,ie){"use strict";ie.d(Vt,{_z:function(){return Ee},gp:function(){return Qe}});var z=ie(36237),it=ie(63356),ve=ie(51636);const Qe=he=>{const{multipleSelectItemHeight:Ye,paddingXXS:Ce,lineWidth:St,INTERNAL_FIXED_ITEM_MARGIN:Ke}=he,Ne=he.max(he.calc(Ce).sub(St).equal(),0),Ge=he.max(he.calc(Ne).sub(Ke).equal(),0);return{basePadding:Ne,containerPadding:Ge,itemHeight:(0,z.unit)(Ye),itemLineHeight:(0,z.unit)(he.calc(Ye).sub(he.calc(he.lineWidth).mul(2)).equal())}},Se=he=>{const{multipleSelectItemHeight:Ye,selectHeight:Ce,lineWidth:St}=he;return he.calc(Ce).sub(Ye).div(2).sub(St).equal()},Ee=he=>{const{componentCls:Ye,iconCls:Ce,borderRadiusSM:St,motionDurationSlow:Ke,paddingXS:Ne,multipleItemColorDisabled:Ge,multipleItemBorderColorDisabled:ze,colorIcon:ft,colorIconHover:wt,INTERNAL_FIXED_ITEM_MARGIN:At}=he;return{[`${Ye}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Ye}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:At,borderRadius:St,cursor:"default",transition:`font-size ${Ke}, line-height ${Ke}, height ${Ke}`,marginInlineEnd:he.calc(At).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:he.calc(Ne).div(2).equal(),[`${Ye}-disabled&`]:{color:Ge,borderColor:ze,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Ne).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,it.Ro)()),{display:"inline-flex",alignItems:"center",color:ft,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ce}`]:{verticalAlign:"-0.2em"},"&:hover":{color:wt}})}}}},Le=(he,Ye)=>{const{componentCls:Ce,INTERNAL_FIXED_ITEM_MARGIN:St}=he,Ke=`${Ce}-selection-overflow`,Ne=he.multipleSelectItemHeight,Ge=Se(he),ze=Ye?`${Ce}-${Ye}`:"",ft=Qe(he);return{[`${Ce}-multiple${ze}`]:Object.assign(Object.assign({},Ee(he)),{[`${Ce}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ft.basePadding,paddingBlock:ft.containerPadding,borderRadius:he.borderRadius,[`${Ce}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(St)} 0`,lineHeight:(0,z.unit)(Ne),visibility:"hidden",content:'"\\a0"'}},[`${Ce}-selection-item`]:{height:ft.itemHeight,lineHeight:(0,z.unit)(ft.itemLineHeight)},[`${Ce}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Ne),marginBlock:St}},[`${Ce}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ft.basePadding).equal()},[`${Ke}-item + ${Ke}-item,
|
|
|
${Ce}-prefix + ${Ce}-selection-wrap
|
|
|
`]:{[`${Ce}-selection-search`]:{marginInlineStart:0},[`${Ce}-selection-placeholder`]:{insetInlineStart:0}},[`${Ke}-item-suffix`]:{minHeight:ft.itemHeight,marginBlock:St},[`${Ce}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ge).equal(),"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:he.fontFamily,lineHeight:(0,z.unit)(Ne),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ce}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ft.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Xe(he,Ye){const{componentCls:Ce}=he,St=Ye?`${Ce}-${Ye}`:"",Ke={[`${Ce}-multiple${St}`]:{fontSize:he.fontSize,[`${Ce}-selector`]:{[`${Ce}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Ce}-show-arrow ${Ce}-selector,
|
|
|
&${Ce}-allow-clear ${Ce}-selector
|
|
|
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Le(he,Ye),Ke]}const Ie=he=>{const{componentCls:Ye}=he,Ce=(0,ve.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),St=(0,ve.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[Xe(he),Xe(Ce,"sm"),{[`${Ye}-multiple${Ye}-sm`]:{[`${Ye}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Ye}-selection-search`]:{marginInlineStart:2}}},Xe(St,"lg")]};Vt.ZP=Ie},68525:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});var z=ie(59301),it=ie(40001),ve=ie(19248),Qe=ie(99267),Se=ie(84105),Ee=ie(58617),Le=ie(47472);function Xe(Ie){let{suffixIcon:he,clearIcon:Ye,menuItemSelectedIcon:Ce,removeIcon:St,loading:Ke,multiple:Ne,hasFeedback:Ge,prefixCls:ze,showSuffixIcon:ft,feedbackIcon:wt,showArrow:At,componentName:ht}=Ie;const lt=Ye!=null?Ye:z.createElement(ve.Z,null),ot=qe=>he===null&&!Ge&&!At?null:z.createElement(z.Fragment,null,ft!==!1&&qe,Ge&&wt);let Ze=null;if(he!==void 0)Ze=ot(he);else if(Ke)Ze=ot(z.createElement(Ee.Z,{spin:!0}));else{const qe=`${ze}-suffix`;Ze=vt=>{let{open:Me,showSearch:Ue}=vt;return ot(Me&&Ue?z.createElement(Le.Z,{className:qe}):z.createElement(Se.Z,{className:qe}))}}let It=null;Ce!==void 0?It=Ce:Ne?It=z.createElement(it.Z,null):It=null;let et=null;return St!==void 0?et=St:et=z.createElement(Qe.Z,null),{clearIcon:lt,suffixIcon:Ze,itemIcon:It,removeIcon:et}}},90005:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return z}});function z(it,ve){return ve!==void 0?ve:it!==null}},11938:function(ln,Vt,ie){"use strict";ie.d(Vt,{default:function(){return vt}});var z=ie(59301),it=ie(40192),ve=ie(22703),Qe=ie(92310),Se=ie.n(Qe),Ee=ie(26112),Le=ie(48755),Xe=ie(458),he=Me=>{const{value:Ue,formatter:He,precision:ue,decimalSeparator:ut,groupSeparator:Oe="",prefixCls:Je}=Me;let Ot;if(typeof He=="function")Ot=He(Ue);else{const ye=String(Ue),fe=ye.match(/^(-?)(\d*)(\.(\d+))?$/);if(!fe||ye==="-")Ot=ye;else{const dt=fe[1];let Zt=fe[2]||"0",bt=fe[4]||"";Zt=Zt.replace(/\B(?=(\d{3})+(?!\d))/g,Oe),typeof ue=="number"&&(bt=bt.padEnd(ue,"0").slice(0,ue>0?ue:0)),bt&&(bt=`${ut}${bt}`),Ot=[z.createElement("span",{key:"int",className:`${Je}-content-value-int`},dt,Zt),bt&&z.createElement("span",{key:"decimal",className:`${Je}-content-value-decimal`},bt)]}}return z.createElement("span",{className:`${Je}-content-value`},Ot)},Ye=ie(63356),Ce=ie(16931),St=ie(51636);const Ke=Me=>{const{componentCls:Ue,marginXXS:He,padding:ue,colorTextDescription:ut,titleFontSize:Oe,colorTextHeading:Je,contentFontSize:Ot,fontFamily:ye}=Me;return{[Ue]:Object.assign(Object.assign({},(0,Ye.Wf)(Me)),{[`${Ue}-title`]:{marginBottom:He,color:ut,fontSize:Oe},[`${Ue}-skeleton`]:{paddingTop:ue},[`${Ue}-content`]:{color:Je,fontSize:Ot,fontFamily:ye,[`${Ue}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ue}-content-prefix, ${Ue}-content-suffix`]:{display:"inline-block"},[`${Ue}-content-prefix`]:{marginInlineEnd:He},[`${Ue}-content-suffix`]:{marginInlineStart:He}}})}},Ne=Me=>{const{fontSizeHeading3:Ue,fontSize:He}=Me;return{titleFontSize:He,contentFontSize:Ue}};var Ge=(0,Ce.I$)("Statistic",Me=>{const Ue=(0,St.mergeToken)(Me,{});return[Ke(Ue)]},Ne),ze=function(Me,Ue){var He={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&Ue.indexOf(ue)<0&&(He[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,ue=Object.getOwnPropertySymbols(Me);ut<ue.length;ut++)Ue.indexOf(ue[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,ue[ut])&&(He[ue[ut]]=Me[ue[ut]]);return He},wt=Me=>{const{prefixCls:Ue,className:He,rootClassName:ue,style:ut,valueStyle:Oe,value:Je=0,title:Ot,valueRender:ye,prefix:fe,suffix:dt,loading:Zt=!1,formatter:bt,precision:me,decimalSeparator:Te=".",groupSeparator:_e=",",onMouseEnter:Nt,onMouseLeave:xt}=Me,zt=ze(Me,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Ae,direction:$t,className:ct,style:ae}=(0,Le.dj)("statistic"),te=Ae("statistic",Ue),[ee,oe,se]=Ge(te),ne=z.createElement(he,{decimalSeparator:Te,groupSeparator:_e,prefixCls:te,formatter:bt,precision:me,value:Je}),pe=Se()(te,{[`${te}-rtl`]:$t==="rtl"},ct,He,ue,oe,se),xe=(0,Ee.Z)(zt,{aria:!0,data:!0});return ee(z.createElement("div",Object.assign({},xe,{className:pe,style:Object.assign(Object.assign({},ae),ut),onMouseEnter:Nt,onMouseLeave:xt}),Ot&&z.createElement("div",{className:`${te}-title`},Ot),z.createElement(Xe.Z,{paragraph:!1,loading:Zt,className:`${te}-skeleton`},z.createElement("div",{style:Oe,className:`${te}-content`},fe&&z.createElement("span",{className:`${te}-content-prefix`},fe),ye?ye(ne):ne,dt&&z.createElement("span",{className:`${te}-content-suffix`},dt)))))};const At=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ht(Me,Ue){let He=Me;const ue=/\[[^\]]*]/g,ut=(Ue.match(ue)||[]).map(ye=>ye.slice(1,-1)),Oe=Ue.replace(ue,"[]"),Je=At.reduce((ye,fe)=>{let[dt,Zt]=fe;if(ye.includes(dt)){const bt=Math.floor(He/Zt);return He-=bt*Zt,ye.replace(new RegExp(`${dt}+`,"g"),me=>{const Te=me.length;return bt.toString().padStart(Te,"0")})}return ye},Oe);let Ot=0;return Je.replace(ue,()=>{const ye=ut[Ot];return Ot+=1,ye})}function lt(Me,Ue){const{format:He=""}=Ue,ue=new Date(Me).getTime(),ut=Date.now(),Oe=Math.max(ue-ut,0);return ht(Oe,He)}var ot=function(Me,Ue){var He={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&Ue.indexOf(ue)<0&&(He[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,ue=Object.getOwnPropertySymbols(Me);ut<ue.length;ut++)Ue.indexOf(ue[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,ue[ut])&&(He[ue[ut]]=Me[ue[ut]]);return He};const Ze=1e3/30;function It(Me){return new Date(Me).getTime()}const et=Me=>{const{value:Ue,format:He="HH:mm:ss",onChange:ue,onFinish:ut}=Me,Oe=ot(Me,["value","format","onChange","onFinish"]),Je=(0,it.Z)(),Ot=z.useRef(null),ye=()=>{ut==null||ut(),Ot.current&&(clearInterval(Ot.current),Ot.current=null)},fe=()=>{const bt=It(Ue);bt>=Date.now()&&(Ot.current=setInterval(()=>{Je(),ue==null||ue(bt-Date.now()),bt<Date.now()&&ye()},Ze))};z.useEffect(()=>(fe(),()=>{Ot.current&&(clearInterval(Ot.current),Ot.current=null)}),[Ue]);const dt=(bt,me)=>lt(bt,Object.assign(Object.assign({},me),{format:He})),Zt=bt=>(0,ve.Tm)(bt,{title:void 0});return z.createElement(wt,Object.assign({},Oe,{value:Ue,valueRender:Zt,formatter:dt}))};var qe=z.memo(et);wt.Countdown=qe;var vt=wt},58755:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return ut}});var z=ie(59301),it=ie(58617),ve=ie(92310),Qe=ie.n(ve),Se=ie(60499),Ee=ie(18642),Le=ie(72190),Xe=ie(42244),Ie=ie(18929),he=ie(10228),Ye=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ce=z.forwardRef(function(Oe,Je){var Ot,ye=Oe.prefixCls,fe=ye===void 0?"rc-switch":ye,dt=Oe.className,Zt=Oe.checked,bt=Oe.defaultChecked,me=Oe.disabled,Te=Oe.loadingIcon,_e=Oe.checkedChildren,Nt=Oe.unCheckedChildren,xt=Oe.onClick,zt=Oe.onChange,Ae=Oe.onKeyDown,$t=(0,Xe.Z)(Oe,Ye),ct=(0,Ie.Z)(!1,{value:Zt,defaultValue:bt}),ae=(0,Le.Z)(ct,2),te=ae[0],ee=ae[1];function oe(xe,st){var Pe=te;return me||(Pe=xe,ee(Pe),zt==null||zt(Pe,st)),Pe}function se(xe){xe.which===he.Z.LEFT?oe(!1,xe):xe.which===he.Z.RIGHT&&oe(!0,xe),Ae==null||Ae(xe)}function ne(xe){var st=oe(!te,xe);xt==null||xt(st,xe)}var pe=Qe()(fe,dt,(Ot={},(0,Ee.Z)(Ot,"".concat(fe,"-checked"),te),(0,Ee.Z)(Ot,"".concat(fe,"-disabled"),me),Ot));return z.createElement("button",(0,Se.Z)({},$t,{type:"button",role:"switch","aria-checked":te,disabled:me,className:pe,ref:Je,onKeyDown:se,onClick:ne}),Te,z.createElement("span",{className:"".concat(fe,"-inner")},z.createElement("span",{className:"".concat(fe,"-inner-checked")},_e),z.createElement("span",{className:"".concat(fe,"-inner-unchecked")},Nt)))});Ce.displayName="Switch";var St=Ce,Ke=ie(12919),Ne=ie(48755),Ge=ie(2171),ze=ie(31756),ft=ie(36237),wt=ie(17835),At=ie(63356),ht=ie(16931),lt=ie(51636);const ot=Oe=>{const{componentCls:Je,trackHeightSM:Ot,trackPadding:ye,trackMinWidthSM:fe,innerMinMarginSM:dt,innerMaxMarginSM:Zt,handleSizeSM:bt,calc:me}=Oe,Te=`${Je}-inner`,_e=(0,ft.unit)(me(bt).add(me(ye).mul(2)).equal()),Nt=(0,ft.unit)(me(Zt).mul(2).equal());return{[Je]:{[`&${Je}-small`]:{minWidth:fe,height:Ot,lineHeight:(0,ft.unit)(Ot),[`${Je}-inner`]:{paddingInlineStart:Zt,paddingInlineEnd:dt,[`${Te}-checked, ${Te}-unchecked`]:{minHeight:Ot},[`${Te}-checked`]:{marginInlineStart:`calc(-100% + ${_e} - ${Nt})`,marginInlineEnd:`calc(100% - ${_e} + ${Nt})`},[`${Te}-unchecked`]:{marginTop:me(Ot).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Je}-handle`]:{width:bt,height:bt},[`${Je}-loading-icon`]:{top:me(me(bt).sub(Oe.switchLoadingIconSize)).div(2).equal(),fontSize:Oe.switchLoadingIconSize},[`&${Je}-checked`]:{[`${Je}-inner`]:{paddingInlineStart:dt,paddingInlineEnd:Zt,[`${Te}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Te}-unchecked`]:{marginInlineStart:`calc(100% - ${_e} + ${Nt})`,marginInlineEnd:`calc(-100% + ${_e} - ${Nt})`}},[`${Je}-handle`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(me(bt).add(ye).equal())})`}},[`&:not(${Je}-disabled):active`]:{[`&:not(${Je}-checked) ${Te}`]:{[`${Te}-unchecked`]:{marginInlineStart:me(Oe.marginXXS).div(2).equal(),marginInlineEnd:me(Oe.marginXXS).mul(-1).div(2).equal()}},[`&${Je}-checked ${Te}`]:{[`${Te}-checked`]:{marginInlineStart:me(Oe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:me(Oe.marginXXS).div(2).equal()}}}}}}},Ze=Oe=>{const{componentCls:Je,handleSize:Ot,calc:ye}=Oe;return{[Je]:{[`${Je}-loading-icon${Oe.iconCls}`]:{position:"relative",top:ye(ye(Ot).sub(Oe.fontSize)).div(2).equal(),color:Oe.switchLoadingIconColor,verticalAlign:"top"},[`&${Je}-checked ${Je}-loading-icon`]:{color:Oe.switchColor}}}},It=Oe=>{const{componentCls:Je,trackPadding:Ot,handleBg:ye,handleShadow:fe,handleSize:dt,calc:Zt}=Oe,bt=`${Je}-handle`;return{[Je]:{[bt]:{position:"absolute",top:Ot,insetInlineStart:Ot,width:dt,height:dt,transition:`all ${Oe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ye,borderRadius:Zt(dt).div(2).equal(),boxShadow:fe,transition:`all ${Oe.switchDuration} ease-in-out`,content:'""'}},[`&${Je}-checked ${bt}`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(Zt(dt).add(Ot).equal())})`},[`&:not(${Je}-disabled):active`]:{[`${bt}::before`]:{insetInlineEnd:Oe.switchHandleActiveInset,insetInlineStart:0},[`&${Je}-checked ${bt}::before`]:{insetInlineEnd:0,insetInlineStart:Oe.switchHandleActiveInset}}}}},et=Oe=>{const{componentCls:Je,trackHeight:Ot,trackPadding:ye,innerMinMargin:fe,innerMaxMargin:dt,handleSize:Zt,calc:bt}=Oe,me=`${Je}-inner`,Te=(0,ft.unit)(bt(Zt).add(bt(ye).mul(2)).equal()),_e=(0,ft.unit)(bt(dt).mul(2).equal());return{[Je]:{[me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:dt,paddingInlineEnd:fe,transition:`padding-inline-start ${Oe.switchDuration} ease-in-out, padding-inline-end ${Oe.switchDuration} ease-in-out`,[`${me}-checked, ${me}-unchecked`]:{display:"block",color:Oe.colorTextLightSolid,fontSize:Oe.fontSizeSM,transition:`margin-inline-start ${Oe.switchDuration} ease-in-out, margin-inline-end ${Oe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ot},[`${me}-checked`]:{marginInlineStart:`calc(-100% + ${Te} - ${_e})`,marginInlineEnd:`calc(100% - ${Te} + ${_e})`},[`${me}-unchecked`]:{marginTop:bt(Ot).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Je}-checked ${me}`]:{paddingInlineStart:fe,paddingInlineEnd:dt,[`${me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${me}-unchecked`]:{marginInlineStart:`calc(100% - ${Te} + ${_e})`,marginInlineEnd:`calc(-100% + ${Te} - ${_e})`}},[`&:not(${Je}-disabled):active`]:{[`&:not(${Je}-checked) ${me}`]:{[`${me}-unchecked`]:{marginInlineStart:bt(ye).mul(2).equal(),marginInlineEnd:bt(ye).mul(-1).mul(2).equal()}},[`&${Je}-checked ${me}`]:{[`${me}-checked`]:{marginInlineStart:bt(ye).mul(-1).mul(2).equal(),marginInlineEnd:bt(ye).mul(2).equal()}}}}}},qe=Oe=>{const{componentCls:Je,trackHeight:Ot,trackMinWidth:ye}=Oe;return{[Je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(Oe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ye,height:Ot,lineHeight:(0,ft.unit)(Ot),verticalAlign:"middle",background:Oe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Je}-disabled)`]:{background:Oe.colorTextTertiary}}),(0,At.Qy)(Oe)),{[`&${Je}-checked`]:{background:Oe.switchColor,[`&:hover:not(${Je}-disabled)`]:{background:Oe.colorPrimaryHover}},[`&${Je}-loading, &${Je}-disabled`]:{cursor:"not-allowed",opacity:Oe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Je}-rtl`]:{direction:"rtl"}})}},vt=Oe=>{const{fontSize:Je,lineHeight:Ot,controlHeight:ye,colorWhite:fe}=Oe,dt=Je*Ot,Zt=ye/2,bt=2,me=dt-bt*2,Te=Zt-bt*2;return{trackHeight:dt,trackHeightSM:Zt,trackMinWidth:me*2+bt*4,trackMinWidthSM:Te*2+bt*2,trackPadding:bt,handleBg:fe,handleSize:me,handleSizeSM:Te,handleShadow:`0 2px 4px 0 ${new wt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:me/2,innerMaxMargin:me+bt+bt*2,innerMinMarginSM:Te/2,innerMaxMarginSM:Te+bt+bt*2}};var Me=(0,ht.I$)("Switch",Oe=>{const Je=(0,lt.mergeToken)(Oe,{switchDuration:Oe.motionDurationMid,switchColor:Oe.colorPrimary,switchDisabledOpacity:Oe.opacityLoading,switchLoadingIconSize:Oe.calc(Oe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Oe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[qe(Je),et(Je),It(Je),Ze(Je),ot(Je)]},vt),Ue=function(Oe,Je){var Ot={};for(var ye in Oe)Object.prototype.hasOwnProperty.call(Oe,ye)&&Je.indexOf(ye)<0&&(Ot[ye]=Oe[ye]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,ye=Object.getOwnPropertySymbols(Oe);fe<ye.length;fe++)Je.indexOf(ye[fe])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ye[fe])&&(Ot[ye[fe]]=Oe[ye[fe]]);return Ot};const ue=z.forwardRef((Oe,Je)=>{const{prefixCls:Ot,size:ye,disabled:fe,loading:dt,className:Zt,rootClassName:bt,style:me,checked:Te,value:_e,defaultChecked:Nt,defaultValue:xt,onChange:zt}=Oe,Ae=Ue(Oe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[$t,ct]=(0,Ie.Z)(!1,{value:Te!=null?Te:_e,defaultValue:Nt!=null?Nt:xt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Ne.E_),oe=z.useContext(Ge.Z),se=(fe!=null?fe:oe)||dt,ne=ae("switch",Ot),pe=z.createElement("div",{className:`${ne}-handle`},dt&&z.createElement(it.Z,{className:`${ne}-loading-icon`})),[xe,st,Pe]=Me(ne),je=(0,ze.Z)(ye),rt=Qe()(ee==null?void 0:ee.className,{[`${ne}-small`]:je==="small",[`${ne}-loading`]:dt,[`${ne}-rtl`]:te==="rtl"},Zt,bt,st,Pe),yt=Object.assign(Object.assign({},ee==null?void 0:ee.style),me),gt=function(){ct(arguments.length<=0?void 0:arguments[0]),zt==null||zt.apply(void 0,arguments)};return xe(z.createElement(Ke.Z,{component:"Switch"},z.createElement(St,Object.assign({},Ae,{checked:$t,onChange:gt,prefixCls:ne,className:rt,style:yt,disabled:se,ref:Je,loadingIcon:pe}))))});ue.__ANT_SWITCH=!0;var ut=ue},96599:function(ln,Vt,ie){"use strict";ie.d(Vt,{default:function(){return He}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Qe=ie(2738),Se=ie(29509),Ee=ie(78776),Le=ie(22703),Xe=ie(12919),Ie=ie(48755),he=ie(36237),Ye=ie(17835),Ce=ie(63356),St=ie(51636),Ke=ie(16931);const Ne=ue=>{const{paddingXXS:ut,lineWidth:Oe,tagPaddingHorizontal:Je,componentCls:Ot,calc:ye}=ue,fe=ye(Je).sub(Oe).equal(),dt=ye(ut).sub(Oe).equal();return{[Ot]:Object.assign(Object.assign({},(0,Ce.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:fe,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,he.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ot}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Ot}-close-icon`]:{marginInlineStart:dt,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Ot}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ot}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:fe}}),[`${Ot}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ge=ue=>{const{lineWidth:ut,fontSizeIcon:Oe,calc:Je}=ue,Ot=ue.fontSizeSM;return(0,St.mergeToken)(ue,{tagFontSize:Ot,tagLineHeight:(0,he.unit)(Je(ue.lineHeightSM).mul(Ot).equal()),tagIconSize:Je(Oe).sub(Je(ut).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},ze=ue=>({defaultBg:new Ye.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var ft=(0,Ke.I$)("Tag",ue=>{const ut=Ge(ue);return Ne(ut)},ze),wt=function(ue,ut){var Oe={};for(var Je in ue)Object.prototype.hasOwnProperty.call(ue,Je)&&ut.indexOf(Je)<0&&(Oe[Je]=ue[Je]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Je=Object.getOwnPropertySymbols(ue);Ot<Je.length;Ot++)ut.indexOf(Je[Ot])<0&&Object.prototype.propertyIsEnumerable.call(ue,Je[Ot])&&(Oe[Je[Ot]]=ue[Je[Ot]]);return Oe},ht=z.forwardRef((ue,ut)=>{const{prefixCls:Oe,style:Je,className:Ot,checked:ye,onChange:fe,onClick:dt}=ue,Zt=wt(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:bt,tag:me}=z.useContext(Ie.E_),Te=$t=>{fe==null||fe(!ye),dt==null||dt($t)},_e=bt("tag",Oe),[Nt,xt,zt]=ft(_e),Ae=ve()(_e,`${_e}-checkable`,{[`${_e}-checkable-checked`]:ye},me==null?void 0:me.className,Ot,xt,zt);return Nt(z.createElement("span",Object.assign({},Zt,{ref:ut,style:Object.assign(Object.assign({},Je),me==null?void 0:me.style),className:Ae,onClick:Te})))}),lt=ie(93427);const ot=ue=>(0,lt.Z)(ue,(ut,Oe)=>{let{textColor:Je,lightBorderColor:Ot,lightColor:ye,darkColor:fe}=Oe;return{[`${ue.componentCls}${ue.componentCls}-${ut}`]:{color:Je,background:ye,borderColor:Ot,"&-inverse":{color:ue.colorTextLightSolid,background:fe,borderColor:fe},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ze=(0,Ke.bk)(["Tag","preset"],ue=>{const ut=Ge(ue);return ot(ut)},ze);function It(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const et=(ue,ut,Oe)=>{const Je=It(Oe);return{[`${ue.componentCls}${ue.componentCls}-${ut}`]:{color:ue[`color${Oe}`],background:ue[`color${Je}Bg`],borderColor:ue[`color${Je}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var qe=(0,Ke.bk)(["Tag","status"],ue=>{const ut=Ge(ue);return[et(ut,"success","Success"),et(ut,"processing","Info"),et(ut,"error","Error"),et(ut,"warning","Warning")]},ze),vt=function(ue,ut){var Oe={};for(var Je in ue)Object.prototype.hasOwnProperty.call(ue,Je)&&ut.indexOf(Je)<0&&(Oe[Je]=ue[Je]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Je=Object.getOwnPropertySymbols(ue);Ot<Je.length;Ot++)ut.indexOf(Je[Ot])<0&&Object.prototype.propertyIsEnumerable.call(ue,Je[Ot])&&(Oe[Je[Ot]]=ue[Je[Ot]]);return Oe};const Ue=z.forwardRef((ue,ut)=>{const{prefixCls:Oe,className:Je,rootClassName:Ot,style:ye,children:fe,icon:dt,color:Zt,onClose:bt,bordered:me=!0,visible:Te}=ue,_e=vt(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Nt,direction:xt,tag:zt}=z.useContext(Ie.E_),[Ae,$t]=z.useState(!0),ct=(0,Qe.Z)(_e,["closeIcon","closable"]);z.useEffect(()=>{Te!==void 0&&$t(Te)},[Te]);const ae=(0,Se.o2)(Zt),te=(0,Se.yT)(Zt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Zt&&!ee?Zt:void 0},zt==null?void 0:zt.style),ye),se=Nt("tag",Oe),[ne,pe,xe]=ft(se),st=ve()(se,zt==null?void 0:zt.className,{[`${se}-${Zt}`]:ee,[`${se}-has-color`]:Zt&&!ee,[`${se}-hidden`]:!Ae,[`${se}-rtl`]:xt==="rtl",[`${se}-borderless`]:!me},Je,Ot,pe,xe),Pe=jt=>{jt.stopPropagation(),bt==null||bt(jt),!jt.defaultPrevented&&$t(!1)},[,je]=(0,Ee.Z)((0,Ee.w)(ue),(0,Ee.w)(zt),{closable:!1,closeIconRender:jt=>{const Ht=z.createElement("span",{className:`${se}-close-icon`,onClick:Pe},jt);return(0,Le.wm)(jt,Ht,tn=>({onClick:Qt=>{var nn;(nn=tn==null?void 0:tn.onClick)===null||nn===void 0||nn.call(tn,Qt),Pe(Qt)},className:ve()(tn==null?void 0:tn.className,`${se}-close-icon`)}))}}),rt=typeof _e.onClick=="function"||fe&&fe.type==="a",yt=dt||null,gt=yt?z.createElement(z.Fragment,null,yt,fe&&z.createElement("span",null,fe)):fe,Kt=z.createElement("span",Object.assign({},ct,{ref:ut,className:st,style:oe}),gt,je,ae&&z.createElement(Ze,{key:"preset",prefixCls:se}),te&&z.createElement(qe,{key:"status",prefixCls:se}));return ne(rt?z.createElement(Xe.Z,{component:"Tag"},Kt):Kt)});Ue.CheckableTag=ht;var He=Ue},99498:function(ln,Vt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Xe,Ie,he){var Ye=he&&he!=z.Init;if(Ie&&!Ye)Xe.on("blur",Se),Xe.on("change",Ee),Xe.on("swapDoc",Ee),z.on(Xe.getInputField(),"compositionupdate",Xe.state.placeholderCompose=function(){Qe(Xe)}),Ee(Xe);else if(!Ie&&Ye){Xe.off("blur",Se),Xe.off("change",Ee),Xe.off("swapDoc",Ee),z.off(Xe.getInputField(),"compositionupdate",Xe.state.placeholderCompose),it(Xe);var Ce=Xe.getWrapperElement();Ce.className=Ce.className.replace(" CodeMirror-empty","")}Ie&&!Xe.hasFocus()&&Se(Xe)});function it(Xe){Xe.state.placeholder&&(Xe.state.placeholder.parentNode.removeChild(Xe.state.placeholder),Xe.state.placeholder=null)}function ve(Xe){it(Xe);var Ie=Xe.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=Xe.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var he=Xe.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ie.appendChild(he),Xe.display.lineSpace.insertBefore(Ie,Xe.display.lineSpace.firstChild)}function Qe(Xe){setTimeout(function(){var Ie=!1,he=Xe.getInputField();he.nodeName=="TEXTAREA"?Ie=!he.value:Xe.lineCount()==1&&(Ie=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ie?ve(Xe):it(Xe)},20)}function Se(Xe){Le(Xe)&&ve(Xe)}function Ee(Xe){var Ie=Xe.getWrapperElement(),he=Le(Xe);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ve(Xe):it(Xe)}function Le(Xe){return Xe.lineCount()===1&&Xe.getLine(0)===""}})},25717:function(ln,Vt,ie){(function(z){z(ie(89780))})(function(z){var it={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Ne,Ge,ze){ze&&ze!=z.Init&&(Ne.removeKeyMap(Se),Ne.state.closeBrackets=null),Ge&&(Ee(Qe(Ge,"pairs")),Ne.state.closeBrackets=Ge,Ne.addKeyMap(Se))});function Qe(Ne,Ge){return Ge=="pairs"&&typeof Ne=="string"?Ne:typeof Ne=="object"&&Ne[Ge]!=null?Ne[Ge]:it[Ge]}var Se={Backspace:Ie,Enter:he};function Ee(Ne){for(var Ge=0;Ge<Ne.length;Ge++){var ze=Ne.charAt(Ge),ft="'"+ze+"'";Se[ft]||(Se[ft]=Le(ze))}}Ee(it.pairs+"`");function Le(Ne){return function(Ge){return Ce(Ge,Ne)}}function Xe(Ne){var Ge=Ne.state.closeBrackets;if(!Ge||Ge.override)return Ge;var ze=Ne.getModeAt(Ne.getCursor());return ze.closeBrackets||Ge}function Ie(Ne){var Ge=Xe(Ne);if(!Ge||Ne.getOption("disableInput"))return z.Pass;for(var ze=Qe(Ge,"pairs"),ft=Ne.listSelections(),wt=0;wt<ft.length;wt++){if(!ft[wt].empty())return z.Pass;var At=St(Ne,ft[wt].head);if(!At||ze.indexOf(At)%2!=0)return z.Pass}for(var wt=ft.length-1;wt>=0;wt--){var ht=ft[wt].head;Ne.replaceRange("",ve(ht.line,ht.ch-1),ve(ht.line,ht.ch+1),"+delete")}}function he(Ne){var Ge=Xe(Ne),ze=Ge&&Qe(Ge,"explode");if(!ze||Ne.getOption("disableInput"))return z.Pass;for(var ft=Ne.listSelections(),wt=0;wt<ft.length;wt++){if(!ft[wt].empty())return z.Pass;var At=St(Ne,ft[wt].head);if(!At||ze.indexOf(At)%2!=0)return z.Pass}Ne.operation(function(){var ht=Ne.lineSeparator()||`
|
|
|
`;Ne.replaceSelection(ht+ht,null),Ne.execCommand("goCharLeft"),ft=Ne.listSelections();for(var lt=0;lt<ft.length;lt++){var ot=ft[lt].head.line;Ne.indentLine(ot,null,!0),Ne.indentLine(ot+1,null,!0)}})}function Ye(Ne){var Ge=z.cmpPos(Ne.anchor,Ne.head)>0;return{anchor:new ve(Ne.anchor.line,Ne.anchor.ch+(Ge?-1:1)),head:new ve(Ne.head.line,Ne.head.ch+(Ge?1:-1))}}function Ce(Ne,Ge){var ze=Xe(Ne);if(!ze||Ne.getOption("disableInput"))return z.Pass;var ft=Qe(ze,"pairs"),wt=ft.indexOf(Ge);if(wt==-1)return z.Pass;for(var At=Qe(ze,"closeBefore"),ht=Qe(ze,"triples"),lt=ft.charAt(wt+1)==Ge,ot=Ne.listSelections(),Ze=wt%2==0,It,et=0;et<ot.length;et++){var qe=ot[et],vt=qe.head,Me,Ue=Ne.getRange(vt,ve(vt.line,vt.ch+1));if(Ze&&!qe.empty())Me="surround";else if((lt||!Ze)&&Ue==Ge)lt&&Ke(Ne,vt)?Me="both":ht.indexOf(Ge)>=0&&Ne.getRange(vt,ve(vt.line,vt.ch+3))==Ge+Ge+Ge?Me="skipThree":Me="skip";else if(lt&&vt.ch>1&&ht.indexOf(Ge)>=0&&Ne.getRange(ve(vt.line,vt.ch-2),vt)==Ge+Ge){if(vt.ch>2&&/\bstring/.test(Ne.getTokenTypeAt(ve(vt.line,vt.ch-2))))return z.Pass;Me="addFour"}else if(lt){var He=vt.ch==0?" ":Ne.getRange(ve(vt.line,vt.ch-1),vt);if(!z.isWordChar(Ue)&&He!=Ge&&!z.isWordChar(He))Me="both";else return z.Pass}else if(Ze&&(Ue.length===0||/\s/.test(Ue)||At.indexOf(Ue)>-1))Me="both";else return z.Pass;if(!It)It=Me;else if(It!=Me)return z.Pass}var ue=wt%2?ft.charAt(wt-1):Ge,ut=wt%2?Ge:ft.charAt(wt+1);Ne.operation(function(){if(It=="skip")Ne.execCommand("goCharRight");else if(It=="skipThree")for(var Oe=0;Oe<3;Oe++)Ne.execCommand("goCharRight");else if(It=="surround"){for(var Je=Ne.getSelections(),Oe=0;Oe<Je.length;Oe++)Je[Oe]=ue+Je[Oe]+ut;Ne.replaceSelections(Je,"around"),Je=Ne.listSelections().slice();for(var Oe=0;Oe<Je.length;Oe++)Je[Oe]=Ye(Je[Oe]);Ne.setSelections(Je)}else It=="both"?(Ne.replaceSelection(ue+ut,null),Ne.triggerElectric(ue+ut),Ne.execCommand("goCharLeft")):It=="addFour"&&(Ne.replaceSelection(ue+ue+ue+ue,"before"),Ne.execCommand("goCharRight"))})}function St(Ne,Ge){var ze=Ne.getRange(ve(Ge.line,Ge.ch-1),ve(Ge.line,Ge.ch+1));return ze.length==2?ze:null}function Ke(Ne,Ge){var ze=Ne.getTokenAt(ve(Ge.line,Ge.ch+1));return/\bstring/.test(ze.type)&&ze.start==Ge.ch&&(Ge.ch==0||!/\bstring/.test(Ne.getTokenTypeAt(Ge)))}})},6313:function(ln,Vt,ie){(function(z){z(ie(89780),ie(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(Ie,he,Ye){if(Ye!=z.Init&&Ye&&Ie.removeKeyMap("autoCloseTags"),!!he){var Ce={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Ce["'/'"]=function(St){return Ee(St)}),(typeof he!="object"||he.whenOpening!==!1)&&(Ce["'>'"]=function(St){return Qe(St)}),Ie.addKeyMap(Ce)}});var it=["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 Qe(Ie){if(Ie.getOption("disableInput"))return z.Pass;for(var he=Ie.listSelections(),Ye=[],Ce=Ie.getOption("autoCloseTags"),St=0;St<he.length;St++){if(!he[St].empty())return z.Pass;var Ke=he[St].head,Ne=Ie.getTokenAt(Ke),Ge=z.innerMode(Ie.getMode(),Ne.state),ze=Ge.state,ft=Ge.mode.xmlCurrentTag&&Ge.mode.xmlCurrentTag(ze),wt=ft&&ft.name;if(!wt)return z.Pass;var At=Ge.mode.configuration=="html",ht=typeof Ce=="object"&&Ce.dontCloseTags||At&&it,lt=typeof Ce=="object"&&Ce.indentTags||At&&ve;Ne.end>Ke.ch&&(wt=wt.slice(0,wt.length-Ne.end+Ke.ch));var ot=wt.toLowerCase();if(!wt||Ne.type=="string"&&(Ne.end!=Ke.ch||!/[\"\']/.test(Ne.string.charAt(Ne.string.length-1))||Ne.string.length==1)||Ne.type=="tag"&&ft.close||Ne.string.indexOf("/")==Ke.ch-Ne.start-1||ht&&Le(ht,ot)>-1||Xe(Ie,Ge.mode.xmlCurrentContext&&Ge.mode.xmlCurrentContext(ze)||[],wt,Ke,!0))return z.Pass;var Ze=typeof Ce=="object"&&Ce.emptyTags;if(Ze&&Le(Ze,wt)>-1){Ye[St]={text:"/>",newPos:z.Pos(Ke.line,Ke.ch+2)};continue}var It=lt&&Le(lt,ot)>-1;Ye[St]={indent:It,text:">"+(It?`
|
|
|
|
|
|
`:"")+"</"+wt+">",newPos:It?z.Pos(Ke.line+1,0):z.Pos(Ke.line,Ke.ch+1)}}for(var et=typeof Ce=="object"&&Ce.dontIndentOnAutoClose,St=he.length-1;St>=0;St--){var qe=Ye[St];Ie.replaceRange(qe.text,he[St].head,he[St].anchor,"+insert");var vt=Ie.listSelections().slice(0);vt[St]={head:qe.newPos,anchor:qe.newPos},Ie.setSelections(vt),!et&&qe.indent&&(Ie.indentLine(qe.newPos.line,null,!0),Ie.indentLine(qe.newPos.line+1,null,!0))}}function Se(Ie,he){for(var Ye=Ie.listSelections(),Ce=[],St=he?"/":"</",Ke=Ie.getOption("autoCloseTags"),Ne=typeof Ke=="object"&&Ke.dontIndentOnSlash,Ge=0;Ge<Ye.length;Ge++){if(!Ye[Ge].empty())return z.Pass;var ze=Ye[Ge].head,ft=Ie.getTokenAt(ze),wt=z.innerMode(Ie.getMode(),ft.state),At=wt.state;if(he&&(ft.type=="string"||ft.string.charAt(0)!="<"||ft.start!=ze.ch-1))return z.Pass;var ht,lt=wt.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(lt&&wt.mode.name=="javascript")ht=St+"script";else if(lt&&wt.mode.name=="css")ht=St+"style";else{var ot=wt.mode.xmlCurrentContext&&wt.mode.xmlCurrentContext(At);if(!ot||ot.length&&Xe(Ie,ot,ot[ot.length-1],ze))return z.Pass;ht=St+ot[ot.length-1]}Ie.getLine(ze.line).charAt(ft.end)!=">"&&(ht+=">"),Ce[Ge]=ht}if(Ie.replaceSelections(Ce),Ye=Ie.listSelections(),!Ne)for(var Ge=0;Ge<Ye.length;Ge++)(Ge==Ye.length-1||Ye[Ge].head.line<Ye[Ge+1].head.line)&&Ie.indentLine(Ye[Ge].head.line)}function Ee(Ie){return Ie.getOption("disableInput")?z.Pass:Se(Ie,!0)}z.commands.closeTag=function(Ie){return Se(Ie)};function Le(Ie,he){if(Ie.indexOf)return Ie.indexOf(he);for(var Ye=0,Ce=Ie.length;Ye<Ce;++Ye)if(Ie[Ye]==he)return Ye;return-1}function Xe(Ie,he,Ye,Ce,St){if(!z.scanForClosingTag)return!1;var Ke=Math.min(Ie.lastLine()+1,Ce.line+500),Ne=z.scanForClosingTag(Ie,Ce,null,Ke);if(!Ne||Ne.tag!=Ye)return!1;for(var Ge=St?1:0,ze=he.length-1;ze>=0&&he[ze]==Ye;ze--)++Ge;Ce=Ne.to;for(var ze=1;ze<Ge;ze++){var ft=z.scanForClosingTag(Ie,Ce,null,Ke);if(!ft||ft.tag!=Ye)return!1;Ce=ft.to}return!0}})},32855:function(ln,Vt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var it=z.Pos;function ve(ze,ft){return ze.line-ft.line||ze.ch-ft.ch}var Qe="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Se=Qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+Qe+"]["+Se+"]*)","g");function Le(ze,ft,wt,At){this.line=ft,this.ch=wt,this.cm=ze,this.text=ze.getLine(ft),this.min=At?Math.max(At.from,ze.firstLine()):ze.firstLine(),this.max=At?Math.min(At.to-1,ze.lastLine()):ze.lastLine()}function Xe(ze,ft){var wt=ze.cm.getTokenTypeAt(it(ze.line,ft));return wt&&/\btag\b/.test(wt)}function Ie(ze){if(!(ze.line>=ze.max))return ze.ch=0,ze.text=ze.cm.getLine(++ze.line),!0}function he(ze){if(!(ze.line<=ze.min))return ze.text=ze.cm.getLine(--ze.line),ze.ch=ze.text.length,!0}function Ye(ze){for(;;){var ft=ze.text.indexOf(">",ze.ch);if(ft==-1){if(Ie(ze))continue;return}if(!Xe(ze,ft+1)){ze.ch=ft+1;continue}var wt=ze.text.lastIndexOf("/",ft),At=wt>-1&&!/\S/.test(ze.text.slice(wt+1,ft));return ze.ch=ft+1,At?"selfClose":"regular"}}function Ce(ze){for(;;){var ft=ze.ch?ze.text.lastIndexOf("<",ze.ch-1):-1;if(ft==-1){if(he(ze))continue;return}if(!Xe(ze,ft+1)){ze.ch=ft;continue}Ee.lastIndex=ft,ze.ch=ft;var wt=Ee.exec(ze.text);if(wt&&wt.index==ft)return wt}}function St(ze){for(;;){Ee.lastIndex=ze.ch;var ft=Ee.exec(ze.text);if(!ft){if(Ie(ze))continue;return}if(!Xe(ze,ft.index+1)){ze.ch=ft.index+1;continue}return ze.ch=ft.index+ft[0].length,ft}}function Ke(ze){for(;;){var ft=ze.ch?ze.text.lastIndexOf(">",ze.ch-1):-1;if(ft==-1){if(he(ze))continue;return}if(!Xe(ze,ft+1)){ze.ch=ft;continue}var wt=ze.text.lastIndexOf("/",ft),At=wt>-1&&!/\S/.test(ze.text.slice(wt+1,ft));return ze.ch=ft+1,At?"selfClose":"regular"}}function Ne(ze,ft){for(var wt=[];;){var At=St(ze),ht,lt=ze.line,ot=ze.ch-(At?At[0].length:0);if(!At||!(ht=Ye(ze)))return;if(ht!="selfClose")if(At[1]){for(var Ze=wt.length-1;Ze>=0;--Ze)if(wt[Ze]==At[2]){wt.length=Ze;break}if(Ze<0&&(!ft||ft==At[2]))return{tag:At[2],from:it(lt,ot),to:it(ze.line,ze.ch)}}else wt.push(At[2])}}function Ge(ze,ft){for(var wt=[];;){var At=Ke(ze);if(!At)return;if(At=="selfClose"){Ce(ze);continue}var ht=ze.line,lt=ze.ch,ot=Ce(ze);if(!ot)return;if(ot[1])wt.push(ot[2]);else{for(var Ze=wt.length-1;Ze>=0;--Ze)if(wt[Ze]==ot[2]){wt.length=Ze;break}if(Ze<0&&(!ft||ft==ot[2]))return{tag:ot[2],from:it(ze.line,ze.ch),to:it(ht,lt)}}}}z.registerHelper("fold","xml",function(ze,ft){for(var wt=new Le(ze,ft.line,0);;){var At=St(wt);if(!At||wt.line!=ft.line)return;var ht=Ye(wt);if(!ht)return;if(!At[1]&&ht!="selfClose"){var lt=it(wt.line,wt.ch),ot=Ne(wt,At[2]);return ot&&ve(ot.from,lt)>0?{from:lt,to:ot.from}:null}}}),z.findMatchingTag=function(ze,ft,wt){var At=new Le(ze,ft.line,ft.ch,wt);if(!(At.text.indexOf(">")==-1&&At.text.indexOf("<")==-1)){var ht=Ye(At),lt=ht&&it(At.line,At.ch),ot=ht&&Ce(At);if(!(!ht||!ot||ve(At,ft)>0)){var Ze={from:it(At.line,At.ch),to:lt,tag:ot[2]};return ht=="selfClose"?{open:Ze,close:null,at:"open"}:ot[1]?{open:Ge(At,ot[2]),close:Ze,at:"close"}:(At=new Le(ze,lt.line,lt.ch,wt),{open:Ze,close:Ne(At,ot[2]),at:"open"})}}},z.findEnclosingTag=function(ze,ft,wt,At){for(var ht=new Le(ze,ft.line,ft.ch,wt);;){var lt=Ge(ht,At);if(!lt)break;var ot=new Le(ze,ft.line,ft.ch,wt),Ze=Ne(ot,lt.tag);if(Ze)return{open:lt,close:Ze}}},z.scanForClosingTag=function(ze,ft,wt,At){var ht=new Le(ze,ft.line,ft.ch,At?{from:0,to:At}:null);return Ne(ht,wt)}})},89780:function(ln){(function(Vt,ie){ln.exports=ie()})(this,function(){"use strict";var Vt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Vt),it=/MSIE \d/.test(Vt),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vt),Qe=/Edge\/(\d+)/.exec(Vt),Se=it||ve||Qe,Ee=Se&&(it?document.documentMode||6:+(Qe||ve)[1]),Le=!Qe&&/WebKit\//.test(Vt),Xe=Le&&/Qt\/\d+\.\d+/.test(Vt),Ie=!Qe&&/Chrome\//.test(Vt),he=/Opera\//.test(Vt),Ye=/Apple Computer/.test(navigator.vendor),Ce=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Vt),St=/PhantomJS/.test(Vt),Ke=!Qe&&/AppleWebKit/.test(Vt)&&/Mobile\/\w+/.test(Vt),Ne=/Android/.test(Vt),Ge=Ke||Ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Vt),ze=Ke||/Mac/.test(ie),ft=/\bCrOS\b/.test(Vt),wt=/win/i.test(ie),At=he&&Vt.match(/Version\/(\d*\.\d*)/);At&&(At=Number(At[1])),At&&At>=15&&(he=!1,Le=!0);var ht=ze&&(Xe||he&&(At==null||At<12.11)),lt=z||Se&&Ee>=9;function ot(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ze=function(a,y){var x=a.className,b=ot(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 It(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function et(a,y){return It(a).appendChild(y)}function qe(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var re=0;re<y.length;++re)E.appendChild(y[re]);return E}function vt(a,y,x,b){var E=qe(a,y,x,b);return E.setAttribute("role","presentation"),E}var Me;document.createRange?Me=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Me=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 Ue(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function He(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function ue(a,y){var x=a.className;ot(y).test(x)||(a.className+=(x?" ":"")+y)}function ut(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!ot(x[b]).test(y)&&(y+=" "+x[b]);return y}var Oe=function(a){a.select()};Ke?Oe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Se&&(Oe=function(a){try{a.select()}catch(y){}});function Je(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Ot(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 ye(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var re=b||0,le=E||0;;){var ce=a.indexOf(" ",re);if(ce<0||ce>=y)return le+(y-re);le+=ce-re,le+=x-le%x,re=ce+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=Je(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 dt(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Zt=50,bt={toString:function(){return"CodeMirror.Pass"}},me={scroll:!1},Te={origin:"*mouse"},_e={origin:"+move"};function Nt(a,y,x){for(var b=0,E=0;;){var re=a.indexOf(" ",b);re==-1&&(re=a.length);var le=re-b;if(re==a.length||E+le>=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var xt=[""];function zt(a){for(;xt.length<=a;)xt.push(Ae(xt)+" ");return xt[a]}function Ae(a){return a[a.length-1]}function $t(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function ct(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function ae(){}function te(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&Ot(y,x),x}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var pe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xe(a){return a.charCodeAt(0)>=768&&pe.test(a)}function st(a,y,x){for(;(x<0?y>0:y<a.length)&&xe(a.charAt(y));)y+=x;return y}function Pe(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,re=b<0?Math.ceil(E):Math.floor(E);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function je(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;re<a.length;++re){var le=a[re];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),E=!0)}E||b(y,x,"ltr")}var rt=null;function yt(a,y,x){var b;rt=null;for(var E=0;E<a.length;++E){var re=a[E];if(re.from<y&&re.to>y)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:rt=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:rt=E)}return b!=null?b:rt}var gt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ge){return ge<=247?a.charAt(ge):1424<=ge&&ge<=1524?"R":1536<=ge&&ge<=1785?y.charAt(ge-1536):1774<=ge&&ge<=2220?"r":8192<=ge&&ge<=8203?"w":ge==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function de(ge,We,nt){this.level=ge,this.from=We,this.to=nt}return function(ge,We){var nt=We=="ltr"?"L":"R";if(ge.length==0||We=="ltr"&&!b.test(ge))return!1;for(var Ft=ge.length,Lt=[],cn=0;cn<Ft;++cn)Lt.push(x(ge.charCodeAt(cn)));for(var Pn=0,Ln=nt;Pn<Ft;++Pn){var Hn=Lt[Pn];Hn=="m"?Lt[Pn]=Ln:Ln=Hn}for(var Vn=0,$n=nt;Vn<Ft;++Vn){var Kn=Lt[Vn];Kn=="1"&&$n=="r"?Lt[Vn]="n":re.test(Kn)&&($n=Kn,Kn=="r"&&(Lt[Vn]="R"))}for(var sr=1,nr=Lt[0];sr<Ft-1;++sr){var wr=Lt[sr];wr=="+"&&nr=="1"&&Lt[sr+1]=="1"?Lt[sr]="1":wr==","&&nr==Lt[sr+1]&&(nr=="1"||nr=="n")&&(Lt[sr]=nr),nr=wr}for(var _r=0;_r<Ft;++_r){var li=Lt[_r];if(li==",")Lt[_r]="N";else if(li=="%"){var Ur=void 0;for(Ur=_r+1;Ur<Ft&&Lt[Ur]=="%";++Ur);for(var Bi=_r&&Lt[_r-1]=="!"||Ur<Ft&&Lt[Ur]=="1"?"1":"N",Ei=_r;Ei<Ur;++Ei)Lt[Ei]=Bi;_r=Ur-1}}for(var qr=0,Ii=nt;qr<Ft;++qr){var di=Lt[qr];Ii=="L"&&di=="1"?Lt[qr]="L":re.test(di)&&(Ii=di)}for(var ii=0;ii<Ft;++ii)if(E.test(Lt[ii])){var ei=void 0;for(ei=ii+1;ei<Ft&&E.test(Lt[ei]);++ei);for(var Kr=(ii?Lt[ii-1]:nt)=="L",ki=(ei<Ft?Lt[ei]:nt)=="L",Vo=Kr==ki?Kr?"L":"R":nt,bo=ii;bo<ei;++bo)Lt[bo]=Vo;ii=ei-1}for(var pi=[],eo,si=0;si<Ft;)if(le.test(Lt[si])){var bl=si;for(++si;si<Ft&&le.test(Lt[si]);++si);pi.push(new de(0,bl,si))}else{var oo=si,Mo=pi.length,Oo=We=="rtl"?1:0;for(++si;si<Ft&&Lt[si]!="L";++si);for(var bi=oo;bi<si;)if(ce.test(Lt[bi])){oo<bi&&(pi.splice(Mo,0,new de(1,oo,bi)),Mo+=Oo);var Go=bi;for(++bi;bi<si&&ce.test(Lt[bi]);++bi);pi.splice(Mo,0,new de(2,Go,bi)),Mo+=Oo,oo=bi}else++bi;oo<si&&pi.splice(Mo,0,new de(1,oo,si))}return We=="ltr"&&(pi[0].level==1&&(eo=ge.match(/^\s+/))&&(pi[0].from=eo[0].length,pi.unshift(new de(0,0,eo[0].length))),Ae(pi).level==1&&(eo=ge.match(/\s+$/))&&(Ae(pi).to-=eo[0].length,pi.push(new de(0,Ft-eo[0].length,Ft)))),We=="rtl"?pi.reverse():pi}}();function Kt(a,y){var x=a.order;return x==null&&(x=a.order=gt(a.text,y)),x}var jt=[],Ht=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]||jt).concat(x)}};function tn(a,y){return a._handlers&&a._handlers[y]||jt}function Qt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,E=b&&b[y];if(E){var re=dt(E,x);re>-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function nn(a,y){var x=tn(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 Ct(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),nn(a,x||y.type,a,y),Rt(y)||y.codemirrorIgnore}function qt(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)dt(x,y[b])==-1&&x.push(y[b])}function Wt(a,y){return tn(a,y).length>0}function De(a){a.prototype.on=function(y,x){Ht(this,y,x)},a.prototype.off=function(y,x){Qt(this,y,x)}}function tt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Tt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Rt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function ke(a){tt(a),Tt(a)}function $e(a){return a.target||a.srcElement}function at(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),ze&&a.ctrlKey&&y==1&&(y=3),y}var Et=function(){if(Se&&Ee<9)return!1;var a=qe("div");return"draggable"in a||"dragDrop"in a}(),Gt;function an(a){if(Gt==null){var y=qe("span","\u200B");et(a,qe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Gt=y.offsetWidth<=1&&y.offsetHeight>2&&!(Se&&Ee<8))}var x=Gt?qe("span","\u200B"):qe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var In;function kn(a){if(In!=null)return In;var y=et(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return It(a),!x||x.left==x.right?!1:In=b.right-x.right<3}var rn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
|
|
|
`,y);E==-1&&(E=a.length);var re=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},bn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},dn=function(){var a=qe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),_t=null;function Mt(a){if(_t!=null)return _t;var y=et(a,qe("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return _t=Math.abs(x.left-b.left)>1}var Dt={},pt={};function en(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Dt[a]=y}function Yt(a,y){pt[a]=y}function Jt(a){if(typeof a=="string"&&pt.hasOwnProperty(a))a=pt[a];else if(a&&typeof a.name=="string"&&pt.hasOwnProperty(a.name)){var y=pt[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Jt("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Jt("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function vn(a,y){y=Jt(y);var x=Dt[y.name];if(!x)return vn(a,"text/plain");var b=x(a,y);if(wn.hasOwnProperty(y.name)){var E=wn[y.name];for(var re in E)E.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=E[re])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var wn={};function Sn(a,y){var x=wn.hasOwnProperty(a)?wn[a]:wn[a]={};Ot(y,x)}function On(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 Mn(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 jn(a,y,x){return a.startState?a.startState(y,x):!0}var An=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};An.prototype.eol=function(){return this.pos>=this.string.length},An.prototype.sol=function(){return this.pos==this.lineStart},An.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},An.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},An.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},An.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},An.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},An.prototype.skipToEnd=function(){this.pos=this.string.length},An.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},An.prototype.backUp=function(a){this.pos-=a},An.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},An.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},An.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var re=this.string.slice(this.pos).match(a);return re&&re.index>0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},An.prototype.current=function(){return this.string.slice(this.start,this.pos)},An.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},An.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},An.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function kt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],re=E.chunkSize();if(y<re){x=E;break}y-=re}return x.lines[y]}function Ut(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(re){var le=re.text;E==x.line&&(le=le.slice(0,x.ch)),E==y.line&&(le=le.slice(y.ch)),b.push(le),++E}),b}function xn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function hn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Be(a){if(a.parent==null)return null;for(var y=a.parent,x=dt(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 Ve(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],re=E.height;if(y<re){a=E;continue e}y-=re,x+=E.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var ce=a.lines[le],de=ce.height;if(y<de)break;y-=de}return x+le}function be(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 mt(a,y){return a.sticky==y.sticky&&Fe(a,y)==0}function on(a){return we(a.line,a.ch)}function un(a,y){return Fe(a,y)<0?y:a}function gn(a,y){return Fe(a,y)<0?a:y}function Xt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Bt(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,kt(a,x).text.length):Pt(y,kt(a,y.line).text.length)}function Pt(a,y){var x=a.ch;return x==null||x>y?we(a.line,y):x<0?we(a.line,0):a}function fn(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Bt(a,y[b]);return x}var Bn=function(a,y){this.state=a,this.lookAhead=y},Dn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};Dn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Dn.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}},Dn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dn.fromSaved=function(a,y,x){return y instanceof Bn?new Dn(a,On(a.mode,y.state),x,y.lookAhead):new Dn(a,On(a.mode,y),x)},Dn.prototype.save=function(a){var y=a!==!1?On(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Bn(y,this.maxLookAhead):y};function Tn(a,y,x,b){var E=[a.state.modeGen],re={};qn(a,y.text,a.doc.mode,x,function(ge,We){return E.push(ge,We)},re,b);for(var le=x.state,ce=function(ge){x.baseTokens=E;var We=a.state.overlays[ge],nt=1,Ft=0;x.state=!0,qn(a,y.text,We.mode,x,function(Lt,cn){for(var Pn=nt;Ft<Lt;){var Ln=E[nt];Ln>Lt&&E.splice(nt,1,Lt,E[nt+1],Ln),nt+=2,Ft=Math.min(Lt,Ln)}if(cn)if(We.opaque)E.splice(Pn,nt-Pn,Lt,"overlay "+cn),nt=Pn+2;else for(;Pn<nt;Pn+=2){var Hn=E[Pn+1];E[Pn+1]=(Hn?Hn+" ":"")+"overlay "+cn}},re),x.state=le,x.baseTokens=null,x.baseTokenPos=1},de=0;de<a.state.overlays.length;++de)ce(de);return{styles:E,classes:re.bgClass||re.textClass?re:null}}function Xn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Qn(a,Be(y)),E=y.text.length>a.options.maxHighlightLength&&On(a.doc.mode,b.state),re=Tn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=re.styles,re.classes?y.styleClasses=re.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Qn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new Dn(b,!0,y);var re=lr(a,y,x),le=re>b.first&&kt(b,re-1).stateAfter,ce=le?Dn.fromSaved(b,le,re):new Dn(b,jn(b.mode),re);return b.iter(re,y,function(de){Jn(a,de.text,ce);var ge=ce.line;de.stateAfter=ge==y-1||ge%5==0||ge>=E.viewFrom&&ge<E.viewTo?ce.save():null,ce.nextLine()}),x&&(b.modeFrontier=ce.line),ce}function Jn(a,y,x,b){var E=a.doc.mode,re=new An(y,a.options.tabSize,x);for(re.start=re.pos=b||0,y==""&&Zn(E,x.state);!re.eol();)Fn(E,re,x.state),re.start=re.pos}function Zn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=Mn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Fn(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=Mn(a,x).mode);var re=a.token(y,x);if(y.pos>y.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var Wn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Un(a,y,x,b){var E=a.doc,re=E.mode,le;y=Bt(E,y);var ce=kt(E,y.line),de=Qn(a,y.line,x),ge=new An(ce.text,a.options.tabSize,de),We;for(b&&(We=[]);(b||ge.pos<y.ch)&&!ge.eol();)ge.start=ge.pos,le=Fn(re,ge,de.state),b&&We.push(new Wn(ge,le,On(E.mode,de.state)));return b?We:new Wn(ge,le,de.state)}function ur(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function qn(a,y,x,b,E,re,le){var ce=x.flattenSpans;ce==null&&(ce=a.options.flattenSpans);var de=0,ge=null,We=new An(y,a.options.tabSize,b),nt,Ft=a.options.addModeClass&&[null];for(y==""&&ur(Zn(x,b.state),re);!We.eol();){if(We.pos>a.options.maxHighlightLength?(ce=!1,le&&Jn(a,y,b,We.pos),We.pos=y.length,nt=null):nt=ur(Fn(x,We,b.state,Ft),re),Ft){var Lt=Ft[0].name;Lt&&(nt="m-"+(nt?Lt+" "+nt:Lt))}if(!ce||ge!=nt){for(;de<We.start;)de=Math.min(We.start,de+5e3),E(de,ge);ge=nt}We.start=We.pos}for(;de<We.pos;){var cn=Math.min(We.pos,de+5e3);E(cn,ge),de=cn}}function lr(a,y,x){for(var b,E,re=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ce=y;ce>le;--ce){if(ce<=re.first)return re.first;var de=kt(re,ce-1),ge=de.stateAfter;if(ge&&(!x||ce+(ge instanceof Bn?ge.lookAhead:0)<=re.modeFrontier))return ce;var We=ye(de.text,null,a.options.tabSize);(E==null||b>We)&&(E=ce-1,b=We)}return E}function ir(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var E=kt(a,b).stateAfter;if(E&&(!(E instanceof Bn)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var er=!1,tr=!1;function vr(){er=!0}function mr(){tr=!0}function cr(a,y,x){this.marker=a,this.from=y,this.to=x}function gr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function Cr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function or(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function dr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ce=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||!re.marker.insertLeft)){var de=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);(b||(b=[])).push(new cr(le,re.from,de?null:re.to))}}return b}function Gn(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ce=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var de=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);(b||(b=[])).push(new cr(le,de?null:re.from-y,re.to==null?null:re.to-y))}}return b}function Sr(a,y){if(y.full)return null;var x=be(a,y.from.line)&&kt(a,y.from.line).markedSpans,b=be(a,y.to.line)&&kt(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,re=y.to.ch,le=Fe(y.from,y.to)==0,ce=dr(x,E,le),de=Gn(b,re,le),ge=y.text.length==1,We=Ae(y.text).length+(ge?E:0);if(ce)for(var nt=0;nt<ce.length;++nt){var Ft=ce[nt];if(Ft.to==null){var Lt=gr(de,Ft.marker);Lt?ge&&(Ft.to=Lt.to==null?null:Lt.to+We):Ft.to=E}}if(de)for(var cn=0;cn<de.length;++cn){var Pn=de[cn];if(Pn.to!=null&&(Pn.to+=We),Pn.from==null){var Ln=gr(ce,Pn.marker);Ln||(Pn.from=We,ge&&(ce||(ce=[])).push(Pn))}else Pn.from+=We,ge&&(ce||(ce=[])).push(Pn)}ce&&(ce=Rr(ce)),de&&de!=ce&&(de=Rr(de));var Hn=[ce];if(!ge){var Vn=y.text.length-2,$n;if(Vn>0&&ce)for(var Kn=0;Kn<ce.length;++Kn)ce[Kn].to==null&&($n||($n=[])).push(new cr(ce[Kn].marker,null,null));for(var sr=0;sr<Vn;++sr)Hn.push($n);Hn.push(de)}return Hn}function Rr(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Wr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Lt){if(Lt.markedSpans)for(var cn=0;cn<Lt.markedSpans.length;++cn){var Pn=Lt.markedSpans[cn].marker;Pn.readOnly&&(!b||dt(b,Pn)==-1)&&(b||(b=[])).push(Pn)}}),!b)return null;for(var E=[{from:y,to:x}],re=0;re<b.length;++re)for(var le=b[re],ce=le.find(0),de=0;de<E.length;++de){var ge=E[de];if(!(Fe(ge.to,ce.from)<0||Fe(ge.from,ce.to)>0)){var We=[de,1],nt=Fe(ge.from,ce.from),Ft=Fe(ge.to,ce.to);(nt<0||!le.inclusiveLeft&&!nt)&&We.push({from:ge.from,to:ce.from}),(Ft>0||!le.inclusiveRight&&!Ft)&&We.push({from:ce.to,to:ge.to}),E.splice.apply(E,We),de+=We.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Ar(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function Ir(a){return a.inclusiveLeft?-1:0}function Dr(a){return a.inclusiveRight?1:0}function zr(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),re=Fe(b.from,E.from)||Ir(a)-Ir(y);if(re)return-re;var le=Fe(b.to,E.to)||Dr(a)-Dr(y);return le||y.id-a.id}function fr(a,y){var x=tr&&a.markedSpans,b;if(x)for(var E=void 0,re=0;re<x.length;++re)E=x[re],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||zr(b,E.marker)<0)&&(b=E.marker);return b}function Yn(a){return fr(a,!0)}function pn(a){return fr(a,!1)}function En(a,y){var x=tr&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var re=x[E];re.marker.collapsed&&(re.from==null||re.from<y)&&(re.to==null||re.to>y)&&(!b||zr(b,re.marker)<0)&&(b=re.marker)}return b}function Cn(a,y,x,b,E){var re=kt(a,y),le=tr&&re.markedSpans;if(le)for(var ce=0;ce<le.length;++ce){var de=le[ce];if(de.marker.collapsed){var ge=de.marker.find(0),We=Fe(ge.from,x)||Ir(de.marker)-Ir(E),nt=Fe(ge.to,b)||Dr(de.marker)-Dr(E);if(!(We>=0&&nt<=0||We<=0&&nt>=0)&&(We<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Fe(ge.to,x)>=0:Fe(ge.to,x)>0)||We>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Fe(ge.from,b)<=0:Fe(ge.from,b)<0)))return!0}}}function sn(a){for(var y;y=Yn(a);)a=y.find(-1,!0).line;return a}function zn(a){for(var y;y=pn(a);)a=y.find(1,!0).line;return a}function _n(a){for(var y,x;y=pn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function mn(a,y){var x=kt(a,y),b=sn(x);return x==b?y:Be(b)}function yn(a,y){if(y>a.lastLine())return y;var x=kt(a,y),b;if(!Nn(a,x))return y;for(;b=pn(x);)x=b.find(1,!0).line;return Be(x)+1}function Nn(a,y){var x=tr&&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&&Rn(a,y,b))return!0}}}function Rn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Rn(a,b.line,gr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,re=0;re<y.markedSpans.length;++re)if(E=y.markedSpans[re],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&Rn(a,y,E))return!0}function rr(a){a=sn(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var E=x.lines[b];if(E==a)break;y+=E.height}for(var re=x.parent;re;x=re,re=x.parent)for(var le=0;le<re.children.length;++le){var ce=re.children[le];if(ce==x)break;y+=ce.height}return y}function 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=pn(b);){var re=x.find(0,!0);y-=b.text.length-re.from.ch,b=re.to.line,y+=b.text.length-re.to.ch}return y}function br(a){var y=a.display,x=a.doc;y.maxLine=kt(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 Or=function(a,y,x){this.text=a,Ar(this,y),this.height=x?x(this):1};Or.prototype.lineNo=function(){return Be(this)},De(Or);function Pr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Ar(a,x);var E=b?b(a):1;E!=a.height&&hn(a,E)}function Tr(a){a.parent=null,Er(a)}var Hr={},Br={};function Zr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Br:Hr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=vt("span",null,null,Le?"padding-right: .1px":null),b={pre:vt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Fi,kn(a.display.measure)&&(le=Kt(re,a.doc.direction))&&(b.addToken=mi(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Be(re);Lr(re,b,Xn(a,re,ce)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=ut(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=ut(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(an(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(Le){var de=b.content.lastChild;(/\bcm-tab\b/.test(de.className)||de.querySelector&&de.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return nn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=ut(b.pre.className,b.textClass||"")),b}function Pi(a){var y=qe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Fi(a,y,x,b,E,re,le){if(y){var ce=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,ge=!1,We;if(!de.test(y))a.col+=y.length,We=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,We),Se&&Ee<9&&(ge=!0),a.pos+=y.length;else{We=document.createDocumentFragment();for(var nt=0;;){de.lastIndex=nt;var Ft=de.exec(y),Lt=Ft?Ft.index-nt:y.length-nt;if(Lt){var cn=document.createTextNode(ce.slice(nt,nt+Lt));Se&&Ee<9?We.appendChild(qe("span",[cn])):We.appendChild(cn),a.map.push(a.pos,a.pos+Lt,cn),a.col+=Lt,a.pos+=Lt}if(!Ft)break;nt+=Lt+1;var Pn=void 0;if(Ft[0]==" "){var Ln=a.cm.options.tabSize,Hn=Ln-a.col%Ln;Pn=We.appendChild(qe("span",zt(Hn),"cm-tab")),Pn.setAttribute("role","presentation"),Pn.setAttribute("cm-text"," "),a.col+=Hn}else Ft[0]=="\r"||Ft[0]==`
|
|
|
`?(Pn=We.appendChild(qe("span",Ft[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Pn.setAttribute("cm-text",Ft[0]),a.col+=1):(Pn=a.cm.options.specialCharPlaceholder(Ft[0]),Pn.setAttribute("cm-text",Ft[0]),Se&&Ee<9?We.appendChild(qe("span",[Pn])):We.appendChild(Pn),a.col+=1);a.map.push(a.pos,a.pos+1,Pn),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||ge||re||le){var Vn=x||"";b&&(Vn+=b),E&&(Vn+=E);var $n=qe("span",[We],Vn,re);if(le)for(var Kn in le)le.hasOwnProperty(Kn)&&Kn!="style"&&Kn!="class"&&$n.setAttribute(Kn,le[Kn]);return a.content.appendChild($n)}a.content.appendChild(We)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var re=a.charAt(E);re==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(re="\xA0"),b+=re,x=re==" "}return b}function mi(a,y){return function(x,b,E,re,le,ce,de){E=E?E+" cm-force-border":"cm-force-border";for(var ge=x.pos,We=ge+b.length;;){for(var nt=void 0,Ft=0;Ft<y.length&&(nt=y[Ft],!(nt.to>ge&&nt.from<=ge));Ft++);if(nt.to>=We)return a(x,b,E,re,le,ce,de);a(x,b.slice(0,nt.to-ge),E,re,null,ce,de),re=null,b=b.slice(nt.to-ge),ge=nt.to}}}function Xi(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 Lr(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,E.slice(re,re=x[le]),Zr(x[le+1],y.cm.options));return}for(var ce=E.length,de=0,ge=1,We="",nt,Ft,Lt=0,cn,Pn,Ln,Hn,Vn;;){if(Lt==de){cn=Pn=Ln=Ft="",Vn=null,Hn=null,Lt=1/0;for(var $n=[],Kn=void 0,sr=0;sr<b.length;++sr){var nr=b[sr],wr=nr.marker;if(wr.type=="bookmark"&&nr.from==de&&wr.widgetNode)$n.push(wr);else if(nr.from<=de&&(nr.to==null||nr.to>de||wr.collapsed&&nr.to==de&&nr.from==de)){if(nr.to!=null&&nr.to!=de&&Lt>nr.to&&(Lt=nr.to,Pn=""),wr.className&&(cn+=" "+wr.className),wr.css&&(Ft=(Ft?Ft+";":"")+wr.css),wr.startStyle&&nr.from==de&&(Ln+=" "+wr.startStyle),wr.endStyle&&nr.to==Lt&&(Kn||(Kn=[])).push(wr.endStyle,nr.to),wr.title&&((Vn||(Vn={})).title=wr.title),wr.attributes)for(var _r in wr.attributes)(Vn||(Vn={}))[_r]=wr.attributes[_r];wr.collapsed&&(!Hn||zr(Hn.marker,wr)<0)&&(Hn=nr)}else nr.from>de&&Lt>nr.from&&(Lt=nr.from)}if(Kn)for(var li=0;li<Kn.length;li+=2)Kn[li+1]==Lt&&(Pn+=" "+Kn[li]);if(!Hn||Hn.from==de)for(var Ur=0;Ur<$n.length;++Ur)Xi(y,0,$n[Ur]);if(Hn&&(Hn.from||0)==de){if(Xi(y,(Hn.to==null?ce+1:Hn.to)-de,Hn.marker,Hn.from==null),Hn.to==null)return;Hn.to==de&&(Hn=!1)}}if(de>=ce)break;for(var Bi=Math.min(ce,Lt);;){if(We){var Ei=de+We.length;if(!Hn){var qr=Ei>Bi?We.slice(0,Bi-de):We;y.addToken(y,qr,nt?nt+cn:cn,Ln,de+qr.length==Lt?Pn:"",Ft,Vn)}if(Ei>=Bi){We=We.slice(Bi-de),de=Bi;break}de=Ei,Ln=""}We=E.slice(re,re=x[ge++]),nt=Zr(x[ge++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=_n(y),this.size=this.rest?Be(Ae(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Nn(a,y)}function ni(a,y,x){for(var b=[],E,re=y;re<x;re=E){var le=new to(a.doc,kt(a.doc,re),re);E=re+le.size,b.push(le)}return b}var Li=null;function ao(a){Li?Li.ops.push(a):a.ownsGroup=Li={ops:[a],delayedCallbacks:[]}}function Yi(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var 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 gi(a,y){var x=a.ownsGroup;if(x)try{Yi(x)}finally{Li=null,y(x)}}var Ai=null;function Vr(a,y){var x=tn(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;Li?E=Li.delayedCallbacks:Ai?E=Ai:(E=Ai=[],setTimeout(zi,0));for(var re=function(ce){E.push(function(){return x[ce].apply(null,b)})},le=0;le<x.length;++le)re(le)}}function zi(){var a=Ai;Ai=null;for(var y=0;y<a.length;++y)a[y]()}function lo(a,y,x,b){for(var E=0;E<y.changes.length;E++){var re=y.changes[E];re=="text"?so(a,y):re=="gutter"?yr(a,y,x,b):re=="class"?ar(a,y):re=="widget"&&hr(a,y,b)}y.changes=null}function ji(a){return a.node==a.text&&(a.node=qe("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Se&&Ee<8&&(a.node.style.zIndex=2)),a.node}function Jr(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=ji(y);y.background=b.insertBefore(qe("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function xo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):ti(a,y)}function so(a,y){var x=y.text.className,b=xo(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,ar(a,y)):x&&(y.text.className=x)}function ar(a,y){Jr(a,y),y.line.wrapClass?ji(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function yr(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var E=ji(y);y.gutterBackground=qe("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var re=y.line.gutterMarkers;if(a.options.lineNumbers||re){var le=ji(y),ce=y.gutter=qe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ce),le.insertBefore(ce,y.text),y.line.gutterClass&&(ce.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(y.lineNumber=ce.appendChild(qe("div",Re(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),re)for(var de=0;de<a.display.gutterSpecs.length;++de){var ge=a.display.gutterSpecs[de].className,We=re.hasOwnProperty(ge)&&re[ge];We&&ce.appendChild(qe("div",[We],"CodeMirror-gutter-elt","left: "+b.gutterLeft[ge]+"px; width: "+b.gutterWidth[ge]+"px"))}}}function hr(a,y,x){y.alignable&&(y.alignable=null);for(var b=ot("CodeMirror-linewidget"),E=y.node.firstChild,re=void 0;E;E=re)re=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);Nr(a,y,x)}function pr(a,y,x,b){var E=xo(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),ar(a,y),yr(a,y,x,b),Nr(a,y,b),y.node}function Nr(a,y,x){if(jr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)jr(a,y.rest[b],y,x,!1)}function jr(a,y,x,b,E){if(y.widgets)for(var re=ji(x),le=0,ce=y.widgets;le<ce.length;++le){var de=ce[le],ge=qe("div",[de.node],"CodeMirror-linewidget"+(de.className?" "+de.className:""));de.handleMouseEvents||ge.setAttribute("cm-ignore-events","true"),_i(de,ge,x,b),a.display.input.setUneditable(ge),E&&de.above?re.insertBefore(ge,x.gutter||x.text):re.appendChild(ge),Vr(de,"redraw")}}function _i(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 vi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Ue(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),et(y.display.measure,qe("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=$e(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function Xr(a){return a.lineSpace.offsetTop}function Hi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Qi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=et(a.measure,qe("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 Mi(a){return Zt-a.display.nativeBarWidth}function Ji(a){return a.display.scroller.clientWidth-Mi(a)-a.display.barWidth}function no(a){return a.display.scroller.clientHeight-Mi(a)-a.display.barHeight}function Zi(a,y,x){var b=a.options.lineWrapping,E=b&&Ji(a);if(!y.measure.heights||b&&y.measure.width!=E){var re=y.measure.heights=[];if(b){y.measure.width=E;for(var le=y.text.firstChild.getClientRects(),ce=0;ce<le.length-1;ce++){var de=le[ce],ge=le[ce+1];Math.abs(de.bottom-ge.bottom)>2&&re.push((de.bottom+ge.top)/2-x.top)}}re.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(Be(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Za(a,y){y=sn(y);var x=Be(y),b=a.display.externalMeasured=new to(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,et(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return $i(a,uo(a,y),x,b)}function qi(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[wo(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function uo(a,y){var x=Be(y),b=qi(a,x);b&&!b.text?b=null:b&&b.changes&&(lo(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=Za(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 $i(a,y,x,b,E){y.before&&(x=-1);var re=x+(b||""),le;return y.cache.hasOwnProperty(re)?le=y.cache[re]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Zi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[re]=le)),{left:le.left,right:le.right,top:E?le.rtop:le.top,bottom:E?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,E,re,le,ce,de,ge=0;ge<a.length;ge+=3)if(ce=a[ge],de=a[ge+1],y<ce?(E=0,re=1,le="left"):y<de?(E=y-ce,re=E+1):(ge==a.length-3||y==de&&a[ge+3]>y)&&(re=de-ce,E=re-1,y>=de&&(le="right")),E!=null){if(b=a[ge+2],ce==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;ge&&a[ge-2]==a[ge-3]&&a[ge-1].insertLeft;)b=a[(ge-=3)+2],le="left";if(x=="right"&&E==de-ce)for(;ge<a.length-3&&a[ge+3]==a[ge+4]&&!a[ge+5].insertLeft;)b=a[(ge+=3)+2],le="right";break}return{node:b,start:E,end:re,collapse:le,coverStart:ce,coverEnd:de}}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),re=E.node,le=E.start,ce=E.end,de=E.collapse,ge;if(re.nodeType==3){for(var We=0;We<4;We++){for(;le&&xe(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce<E.coverEnd&&xe(y.line.text.charAt(E.coverStart+ce));)++ce;if(Se&&Ee<9&&le==0&&ce==E.coverEnd-E.coverStart?ge=re.parentNode.getBoundingClientRect():ge=Va(Me(re,le,ce).getClientRects(),b),ge.left||ge.right||le==0)break;ce=le,le=le-1,de="right"}Se&&Ee<11&&(ge=Ga(a.display.measure,ge))}else{le>0&&(de=b="right");var nt;a.options.lineWrapping&&(nt=re.getClientRects()).length>1?ge=nt[b=="right"?nt.length-1:0]:ge=re.getBoundingClientRect()}if(Se&&Ee<9&&!le&&(!ge||!ge.left&&!ge.right)){var Ft=re.parentNode.getClientRects()[0];Ft?ge={left:Ft.left,right:Ft.left+Gi(a.display),top:Ft.top,bottom:Ft.bottom}:ge=ba}for(var Lt=ge.top-y.rect.top,cn=ge.bottom-y.rect.top,Pn=(Lt+cn)/2,Ln=y.view.measure.heights,Hn=0;Hn<Ln.length-1&&!(Pn<Ln[Hn]);Hn++);var Vn=Hn?Ln[Hn-1]:0,$n=Ln[Hn],Kn={left:(de=="right"?ge.right:ge.left)-y.rect.left,right:(de=="left"?ge.left:ge.right)-y.rect.left,top:Vn,bottom:$n};return!ge.left&&!ge.right&&(Kn.bogus=!0),a.options.singleCursorHeightPerLine||(Kn.rtop=Lt,Kn.rbottom=cn),Kn}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Mt(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,It(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Uo(a.display.view[y])}function Co(a){Ko(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return Ie&&Ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Ie&&Ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=vi(a.widgets[x]));return y}function To(a,y,x,b,E){if(!E){var re=Yo(y);x.top+=re,x.bottom+=re}if(b=="line")return x;b||(b="local");var le=rr(y);if(b=="local"?le+=Xr(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ce=a.display.lineSpace.getBoundingClientRect();le+=ce.top+(b=="window"?0:Sa());var de=ce.left+(b=="window"?0:Xo());x.left+=de,x.right+=de}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=Sa();else if(x=="local"||!x){var re=a.display.sizer.getBoundingClientRect();b+=re.left,E+=re.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:E-le.top}}function Bo(a,y,x,b,E){return b||(b=kt(a.doc,y.line)),To(a,b,ya(a,b,y.ch,E),x)}function Ci(a,y,x,b,E,re){b=b||kt(a.doc,y.line),E||(E=uo(a,b));function le(cn,Pn){var Ln=$i(a,E,cn,Pn?"right":"left",re);return Pn?Ln.left=Ln.right:Ln.right=Ln.left,To(a,b,Ln,x)}var ce=Kt(b,a.doc.direction),de=y.ch,ge=y.sticky;if(de>=b.text.length?(de=b.text.length,ge="before"):de<=0&&(de=0,ge="after"),!ce)return le(ge=="before"?de-1:de,ge=="before");function We(cn,Pn,Ln){var Hn=ce[Pn],Vn=Hn.level==1;return le(Ln?cn-1:cn,Vn!=Ln)}var nt=yt(ce,de,ge),Ft=rt,Lt=We(de,nt,ge=="before");return Ft!=null&&(Lt.other=We(de,Ft,ge!="before")),Lt}function Mr(a,y){var x=0;y=Bt(a.doc,y),a.options.lineWrapping||(x=Gi(a.display)*y.ch);var b=kt(a.doc,y.line),E=rr(b)+Xr(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function xr(a,y,x,b,E){var re=we(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function ci(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return xr(b.first,0,null,-1,-1);var E=Ve(b,x),re=b.first+b.size-1;if(E>re)return xr(b.first+b.size-1,kt(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=kt(b,E);;){var ce=Vi(a,le,E,y,x),de=En(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!de)return ce;var ge=de.find(1);if(ge.line==E)return ge;le=kt(b,E=ge.line)}}function fi(a,y,x,b){b-=Yo(y);var E=y.text.length,re=Pe(function(le){return $i(a,x,le-1).bottom<=b},E,0);return E=Pe(function(le){return $i(a,x,le).top>b},re,E),{begin:re,end:E}}function Yr(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,$i(a,x,b),"line").top;return fi(a,y,x,E)}function ri(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Vi(a,y,x,b,E){E-=rr(y);var re=uo(a,y),le=Yo(y),ce=0,de=y.text.length,ge=!0,We=Kt(y,a.doc.direction);if(We){var nt=(a.options.lineWrapping?ro:Wi)(a,y,x,re,We,b,E);ge=nt.level!=1,ce=ge?nt.from:nt.to-1,de=ge?nt.to:nt.from-1}var Ft=null,Lt=null,cn=Pe(function(sr){var nr=$i(a,re,sr);return nr.top+=le,nr.bottom+=le,ri(nr,b,E,!1)?(nr.top<=E&&nr.left<=b&&(Ft=sr,Lt=nr),!0):!1},ce,de),Pn,Ln,Hn=!1;if(Lt){var Vn=b-Lt.left<Lt.right-b,$n=Vn==ge;cn=Ft+($n?0:1),Ln=$n?"after":"before",Pn=Vn?Lt.left:Lt.right}else{!ge&&(cn==de||cn==ce)&&cn++,Ln=cn==0?"after":cn==y.text.length?"before":$i(a,re,cn-(ge?1:0)).bottom+le<=E==ge?"after":"before";var Kn=Ci(a,we(x,cn,Ln),"line",y,re);Pn=Kn.left,Hn=E<Kn.top?-1:E>=Kn.bottom?1:0}return cn=st(y.text,cn,1),xr(x,cn,Ln,Hn,b-Pn)}function Wi(a,y,x,b,E,re,le){var ce=Pe(function(nt){var Ft=E[nt],Lt=Ft.level!=1;return ri(Ci(a,we(x,Lt?Ft.to:Ft.from,Lt?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ce];if(ce>0){var ge=de.level!=1,We=Ci(a,we(x,ge?de.from:de.to,ge?"after":"before"),"line",y,b);ri(We,re,le,!0)&&We.top>le&&(de=E[ce-1])}return de}function ro(a,y,x,b,E,re,le){var ce=fi(a,y,b,le),de=ce.begin,ge=ce.end;/\s/.test(y.text.charAt(ge-1))&&ge--;for(var We=null,nt=null,Ft=0;Ft<E.length;Ft++){var Lt=E[Ft];if(!(Lt.from>=ge||Lt.to<=de)){var cn=Lt.level!=1,Pn=$i(a,b,cn?Math.min(ge,Lt.to)-1:Math.max(de,Lt.from)).right,Ln=Pn<re?re-Pn+1e9:Pn-re;(!We||nt>Ln)&&(We=Lt,nt=Ln)}}return We||(We=E[E.length-1]),We.from<de&&(We={from:de,to:We.to,level:We.level}),We.to>ge&&(We={from:We.from,to:ge,level:We.level}),We}var Oi;function Di(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Oi==null){Oi=qe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Oi.appendChild(document.createTextNode("x")),Oi.appendChild(qe("br"));Oi.appendChild(document.createTextNode("x"))}et(a.measure,Oi);var x=Oi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),It(a.measure),x||1}function Gi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=qe("span","xxxxxxxxxx"),x=qe("pre",[y],"CodeMirror-line-like");et(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=re.offsetLeft+re.clientLeft+E,b[ce]=re.clientWidth}return{fixedPos: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=Di(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Gi(a.display)-3);return function(E){if(Nn(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le<E.widgets.length;le++)E.widgets[le].height&&(re+=E.widgets[le].height);return x?re+(Math.ceil(E.text.length/b)||1)*y:re+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var E=x(b);E!=b.height&&hn(b,E)})}function So(a,y,x,b){var E=a.display;if(!x&&$e(y).getAttribute("cm-not-content")=="true")return null;var re,le,ce=E.lineSpace.getBoundingClientRect();try{re=y.clientX-ce.left,le=y.clientY-ce.top}catch(nt){return null}var de=ci(a,re,le),ge;if(b&&de.xRel>0&&(ge=kt(a.doc,de.line).text).length==de.ch){var We=ye(ge,ge.length,a.options.tabSize)-ge.length;de=we(de.line,Math.max(0,Math.round((re-Qi(a.display).left)/Gi(a.display))-We))}return de}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Si(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var E=a.display;if(b&&x<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)tr&&mn(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)tr&&yn(a.doc,x+b)>E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ce=Ea(a,y,y,-1),de=Ea(a,x,x+b,1);ce&&de?(E.view=E.view.slice(0,ce.index).concat(ni(a,ce.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var ge=E.externalMeasured;ge&&(x<ge.lineN?ge.lineN+=b:y<ge.lineN+ge.size&&(E.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var re=b.view[wo(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);dt(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=wo(a,y),re,le=a.display.view;if(!tr||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,de=0;de<E;de++)ce+=le[de].size;if(ce!=y){if(b>0){if(E==le.length-1)return null;re=ce+le[E].size-y,E++}else re=ce-y;y+=re,x+=re}for(;mn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function Hs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=ni(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=ni(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(ni(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),re=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var ce=x.sel.ranges[le];if(!(ce.from().line>=a.display.viewTo||ce.to().line<a.display.viewFrom)){var de=ce.empty();(de||a.options.showCursorWhenSelecting)&&El(a,ce.head,E),de||$s(a,ce,re)}}return b}function El(a,y,x){var b=Ci(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(qe("div","\xA0","CodeMirror-cursor"));if(E.style.left=b.left+"px",E.style.top=b.top+"px",E.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var re=x.appendChild(qe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));re.style.display="",re.style.left=b.other.left+"px",re.style.top=b.other.top+"px",re.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function $s(a,y,x){var b=a.display,E=a.doc,re=document.createDocumentFragment(),le=Qi(a.display),ce=le.left,de=Math.max(b.sizerWidth,Ji(a)-b.sizer.offsetLeft)-le.right,ge=E.direction=="ltr";function We($n,Kn,sr,nr){Kn<0&&(Kn=0),Kn=Math.round(Kn),nr=Math.round(nr),re.appendChild(qe("div",null,"CodeMirror-selected","position: absolute; left: "+$n+`px;
|
|
|
top: `+Kn+"px; width: "+(sr==null?de-$n:sr)+`px;
|
|
|
height: `+(nr-Kn)+"px"))}function nt($n,Kn,sr){var nr=kt(E,$n),wr=nr.text.length,_r,li;function Ur(qr,Ii){return Bo(a,we($n,qr),"div",nr,Ii)}function Bi(qr,Ii,di){var ii=Yr(a,nr,null,qr),ei=Ii=="ltr"==(di=="after")?"left":"right",Kr=di=="after"?ii.begin:ii.end-(/\s/.test(nr.text.charAt(ii.end-1))?2:1);return Ur(Kr,ei)[ei]}var Ei=Kt(nr,E.direction);return je(Ei,Kn||0,sr==null?wr:sr,function(qr,Ii,di,ii){var ei=di=="ltr",Kr=Ur(qr,ei?"left":"right"),ki=Ur(Ii-1,ei?"right":"left"),Vo=Kn==null&&qr==0,bo=sr==null&&Ii==wr,pi=ii==0,eo=!Ei||ii==Ei.length-1;if(ki.top-Kr.top<=3){var si=(ge?Vo:bo)&&pi,bl=(ge?bo:Vo)&&eo,oo=si?ce:(ei?Kr:ki).left,Mo=bl?de:(ei?ki:Kr).right;We(oo,Kr.top,Mo-oo,Kr.bottom)}else{var Oo,bi,Go,xl;ei?(Oo=ge&&Vo&&pi?ce:Kr.left,bi=ge?de:Bi(qr,di,"before"),Go=ge?ce:Bi(Ii,di,"after"),xl=ge&&bo&&eo?de:ki.right):(Oo=ge?Bi(qr,di,"before"):ce,bi=!ge&&Vo&&pi?de:Kr.right,Go=!ge&&bo&&eo?ce:ki.left,xl=ge?Bi(Ii,di,"after"):de),We(Oo,Kr.top,bi-Oo,Kr.bottom),Kr.bottom<ki.top&&We(ce,Kr.bottom,null,ki.top),We(Go,ki.top,xl-Go,ki.bottom)}(!_r||Ia(Kr,_r)<0)&&(_r=Kr),Ia(ki,_r)<0&&(_r=ki),(!li||Ia(Kr,li)<0)&&(li=Kr),Ia(ki,li)<0&&(li=ki)}),{start:_r,end:li}}var Ft=y.from(),Lt=y.to();if(Ft.line==Lt.line)nt(Ft.line,Ft.ch,Lt.ch);else{var cn=kt(E,Ft.line),Pn=kt(E,Lt.line),Ln=sn(cn)==sn(Pn),Hn=nt(Ft.line,Ft.ch,Ln?cn.text.length+1:null).end,Vn=nt(Lt.line,Ln?0:null,Lt.ch).start;Ln&&(Hn.top<Vn.top-2?(We(Hn.right,Hn.top,null,Hn.bottom),We(ce,Vn.top,Vn.left,Vn.bottom)):We(Hn.right,Hn.top,Vn.left-Hn.right,Hn.bottom)),Hn.bottom<Vn.top&&We(ce,Hn.bottom,null,Vn.top)}x.appendChild(re)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Lo(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function kl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Lo(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(nn(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Le&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Lo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(nn(a,"blur",a,y),a.state.focused=!1,Ze(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ka(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],re=a.options.lineWrapping,le=void 0,ce=0;if(!E.hidden){if(Se&&Ee<8){var de=E.node.offsetTop+E.node.offsetHeight;le=de-x,x=de}else{var ge=E.node.getBoundingClientRect();le=ge.bottom-ge.top,!re&&E.text.firstChild&&(ce=E.text.firstChild.getBoundingClientRect().right-ge.left-1)}var We=E.line.height-le;if((We>.005||We<-.005)&&(hn(E.line,le),Pl(E.line),E.rest))for(var nt=0;nt<E.rest.length;nt++)Pl(E.rest[nt]);if(ce>a.display.sizerWidth){var Ft=Math.ceil(ce/Gi(a.display));Ft>a.display.maxLineLength&&(a.display.maxLineLength=Ft,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Pl(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 Pa(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-Xr(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,re=Ve(y,b),le=Ve(y,E);if(x&&x.ensure){var ce=x.ensure.from.line,de=x.ensure.to.line;ce<re?(re=ce,le=Ve(y,rr(kt(y,ce))+a.wrapper.clientHeight)):Math.min(de,y.lastLine())>=le&&(re=Ve(y,rr(kt(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function Ws(a,y){if(!Ct(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&&!St){var re=qe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-x.viewOffset-Xr(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+Mi(a)+x.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function js(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 re=0;re<5;re++){var le=!1,ce=Ci(a,y),de=!x||x==y?ce:Ci(a,x);E={left:Math.min(ce.left,de.left),top:Math.min(ce.top,de.top)-b,right:Math.max(ce.left,de.left),bottom:Math.max(ce.bottom,de.bottom)+b};var ge=Qa(a,E),We=a.doc.scrollTop,nt=a.doc.scrollLeft;if(ge.scrollTop!=null&&(qo(a,ge.scrollTop),Math.abs(a.doc.scrollTop-We)>1&&(le=!0)),ge.scrollLeft!=null&&(Eo(a,ge.scrollLeft),Math.abs(a.doc.scrollLeft-nt)>1&&(le=!0)),!le)break}return E}function _s(a,y){var x=Qa(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=Di(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=no(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ce=a.doc.height+Hi(x),de=y.top<b,ge=y.bottom>ce-b;if(y.top<E)le.scrollTop=de?0:y.top;else if(y.bottom>E+re){var We=Math.min(y.top,(ge?ce:y.bottom)-re);We!=E&&(le.scrollTop=We)}var nt=a.options.fixedGutter?0:x.gutters.offsetWidth,Ft=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-nt,Lt=Ji(a)-x.gutters.offsetWidth,cn=y.right-y.left>Lt;return cn&&(y.right=y.left+Lt),y.left<10?le.scrollLeft=0:y.left<Ft?le.scrollLeft=Math.max(0,y.left+nt-(cn?0:10)):y.right>Lt+Ft-3&&(le.scrollLeft=y.right+(cn?0:10)-Lt),le}function Ja(a,y){y!=null&&(Ma(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Ma(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&Ma(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Zs(a,y){Ma(a),a.curOp.scrollToPos=y}function Ma(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Mr(a,y.from),b=Mr(a,y.to);Ml(a,x,b,y.margin)}}function Ml(a,y,x,b){var E=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Jo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ol(a,y,!0),z&&el(a),na(a,100))}function Ol(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Al(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Hi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Mi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=qe("div",[qe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=qe("div",[qe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Ht(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Ht(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=ze&&!Ce?"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(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;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&&ka(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 Tl={native:Io,null:ta};function Bl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ze(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Ht(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function ko(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vs},ao(a.curOp)}function Po(a){var y=a.curOp;y&&gi(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Gs(x)})}function Gs(a){for(var y=a.ops,x=0;x<y.length;x++)Us(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var re=0;re<y.length;re++)Ys(y[re]);for(var le=0;le<y.length;le++)Qs(y[le])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&br(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Oa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&ka(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+Mi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Ji(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==He();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&No(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Qs(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Ll(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=js(y,Bt(b,a.scrollToPos.from),Bt(b,a.scrollToPos.to),a.scrollToPos.margin);Ws(y,E)}var re=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(re)for(var ce=0;ce<re.length;++ce)re[ce].lines.length||nn(re[ce],"hide");if(le)for(var de=0;de<le.length;++de)le[de].lines.length&&nn(le[de],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&nn(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Ti(a,y){if(a.curOp)return y();ko(a);try{return y()}finally{Po(a)}}function oi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);ko(a);try{return y.apply(a,arguments)}finally{Po(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);ko(this);try{return a.apply(this,arguments)}finally{Po(this)}}}function ai(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);ko(y);try{return a.apply(this,arguments)}finally{Po(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Je(Js,a))}function Js(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Qn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ce=re.text.length>a.options.maxHighlightLength?On(y.mode,b.state):null,de=Tn(a,re,b,!0);ce&&(b.state=ce),re.styles=de.styles;var ge=re.styleClasses,We=de.classes;We?re.styleClasses=We:ge&&(re.styleClasses=null);for(var nt=!le||le.length!=re.styles.length||ge!=We&&(!ge||!We||ge.bgClass!=We.bgClass||ge.textClass!=We.textClass),Ft=0;!nt&&Ft<le.length;++Ft)nt=le[Ft]!=re.styles[Ft];nt&&E.push(b.line),re.stateAfter=b.save(),b.nextLine()}else re.text.length<=a.options.maxHighlightLength&&Jn(a,re.text,b),re.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Ti(a,function(){for(var re=0;re<E.length;re++)fo(a,E[re],"text")})}}var Oa=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Pa(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=Ji(a),this.force=x,this.dims=co(a),this.events=[]};Oa.prototype.signal=function(a,y){Wt(a,y)&&this.events.push(arguments)},Oa.prototype.finish=function(){for(var a=0;a<this.events.length;a++)nn.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=Mi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Mi(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=He();if(!y||!Ue(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Ue(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==He())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ue(document.body,a.anchorNode)&&Ue(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function qa(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return ho(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<re&&re-x.viewFrom<20&&(re=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),tr&&(re=mn(a.doc,re),le=yn(a.doc,le));var ce=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hs(a,re,le),x.viewOffset=rr(kt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=Sl(a);if(!ce&&de==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ge=eu(a);return de>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),de>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ge),It(x.cursorDiv),It(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Ll(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==Ji(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Hi(a.display)-no(a),x.top)}),y.visible=Pa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Pa(a.display,a.doc,x));if(!qa(a,y))break;ka(a);var E=ea(a);Qo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Oa(a,y);if(qa(a,x)){ka(a),Ll(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ce(cn){var Pn=cn.nextSibling;return Le&&ze&&a.display.currentWheelTarget==cn?cn.style.display="none":cn.parentNode.removeChild(cn),Pn}for(var de=b.view,ge=b.viewFrom,We=0;We<de.length;We++){var nt=de[We];if(!nt.hidden)if(!nt.node||nt.node.parentNode!=re){var Ft=pr(a,nt,ge,x);re.insertBefore(Ft,le)}else{for(;le!=nt.node;)le=ce(le);var Lt=E&&y!=null&&y<=ge&&nt.lineNumber;nt.changes&&(dt(nt.changes,"gutter")>-1&&(Lt=!1),lo(a,nt,ge,x)),Lt&&(It(nt.lineNumber),nt.lineNumber.appendChild(document.createTextNode(Re(a.options,ge)))),le=nt.node.nextSibling}ge+=nt.size}for(;le;)le=ce(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Mi(a)+"px"}function Al(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,re=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=re),x[le].gutterBackground&&(x[le].gutterBackground.style.left=re));var ce=x[le].alignable;if(ce)for(var de=0;de<ce.length;de++)ce[de].style.left=re}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Re(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(qe("div",[qe("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),re=E.firstChild.offsetWidth,le=E.offsetWidth-re;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(re,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var re=a[E],le=null;if(typeof re!="string"&&(le=re.style,re=re.className),re=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:re,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;It(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],re=E.className,le=E.style,ce=y.appendChild(qe("div",null,"CodeMirror-gutter "+re));le&&(ce.style.cssText=le),re=="CodeMirror-linenumbers"&&(a.lineGutter=ce,ce.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),Si(a),Al(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=qe("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=qe("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=vt("div",null,"CodeMirror-code"),E.selectionDiv=qe("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=qe("div",null,"CodeMirror-cursors"),E.measure=qe("div",null,"CodeMirror-measure"),E.lineMeasure=qe("div",null,"CodeMirror-measure"),E.lineSpace=vt("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var re=vt("div",[E.lineSpace],"CodeMirror-lines");E.mover=qe("div",[re],null,"position: relative"),E.sizer=qe("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=qe("div",null,null,"position: absolute; height: "+Zt+"px; width: 1px;"),E.gutters=qe("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=qe("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=qe("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),Se&&Ee<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Le&&!(z&&Ge)&&(E.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(E.wrapper):a(E.wrapper)),E.viewFrom=E.viewTo=y.first,E.reportedViewFrom=E.reportedViewTo=y.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=rl(b.gutters,b.lineNumbers),Rl(E),x.init(E)}var Da=0,Ni=null;Se?Ni=-.53:z?Ni=15:Ie?Ni=-.7:Ye&&(Ni=-1/3);function Fl(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=Fl(a);return y.x*=Ni,y.y*=Ni,y}function zl(a,y){var x=Fl(y),b=x.x,E=x.y,re=a.display,le=re.scroller,ce=le.scrollWidth>le.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ce||E&&de){if(E&&ze&&Le){e:for(var ge=y.target,We=re.view;ge!=le;ge=ge.parentNode)for(var nt=0;nt<We.length;nt++)if(We[nt].node==ge){a.display.currentWheelTarget=ge;break e}}if(b&&!z&&!he&&Ni!=null){E&&de&&qo(a,Math.max(0,le.scrollTop+E*Ni)),Eo(a,Math.max(0,le.scrollLeft+b*Ni)),(!E||E&&de)&&tt(y),re.wheelStartX=null;return}if(E&&Ni!=null){var Ft=E*Ni,Lt=a.doc.scrollTop,cn=Lt+re.wrapper.clientHeight;Ft<0?Lt=Math.max(0,Lt+Ft-50):cn=Math.min(a.doc.height,cn+Ft+50),el(a,{top:Lt,bottom:cn})}Da<20&&(re.wheelStartX==null?(re.wheelStartX=le.scrollLeft,re.wheelStartY=le.scrollTop,re.wheelDX=b,re.wheelDY=E,setTimeout(function(){if(re.wheelStartX!=null){var Pn=le.scrollLeft-re.wheelStartX,Ln=le.scrollTop-re.wheelStartY,Hn=Ln&&re.wheelDY&&Ln/re.wheelDY||Pn&&re.wheelDX&&Pn/re.wheelDX;re.wheelStartX=re.wheelStartY=null,Hn&&(Ni=(Ni*Da+Hn)/(Da+1),++Da)}},200)):(re.wheelDX+=b,re.wheelDY+=E))}}var Ri=function(a,y){this.ranges=a,this.primIndex=y};Ri.prototype.primary=function(){return this.ranges[this.primIndex]},Ri.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],b=a.ranges[y];if(!mt(x.anchor,b.anchor)||!mt(x.head,b.head))return!1}return!0},Ri.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Fr(on(this.ranges[y].anchor),on(this.ranges[y].head));return new Ri(a,this.primIndex)},Ri.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ri.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Fe(y,b.from())>=0&&Fe(a,b.to())<=0)return x}return-1};var Fr=function(a,y){this.anchor=a,this.head=y};Fr.prototype.from=function(){return gn(this.anchor,this.head)},Fr.prototype.to=function(){return un(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ui(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Ft,Lt){return Fe(Ft.from(),Lt.from())}),x=dt(y,E);for(var re=1;re<y.length;re++){var le=y[re],ce=y[re-1],de=Fe(ce.to(),le.from());if(b&&!le.empty()?de>0:de>=0){var ge=gn(ce.from(),le.from()),We=un(ce.to(),le.to()),nt=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Fr(nt?We:ge,nt?ge:We))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?we(a.from.line+a.text.length-1,Ae(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 mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),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 Fr(Hl(E.anchor,y),Hl(E.head,y)))}return Ui(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),re=E,le=0;le<y.length;le++){var ce=y[le],de=$l(ce.from,E,re),ge=$l(mo(ce),E,re);if(E=ce.to,re=ge,x=="around"){var We=a.sel.ranges[le],nt=Fe(We.head,We.anchor)<0;b[le]=new Fr(nt?ge:de,nt?de:ge)}else b[le]=new Fr(de,de)}return new Ri(b,a.sel.primIndex)}function ol(a){a.doc.mode=vn(a.options,a.doc.modeOption),ia(a)}function ia(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,na(a,100),a.state.modeGen++,a.curOp&&Si(a)}function Wl(a,y){return y.from.ch==0&&y.to.ch==0&&Ae(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function E(Vn){return x?x[Vn]:null}function re(Vn,$n,Kn){Pr(Vn,$n,Kn,b),Vr(Vn,"change",Vn,y)}function le(Vn,$n){for(var Kn=[],sr=Vn;sr<$n;++sr)Kn.push(new Or(ge[sr],E(sr),b));return Kn}var ce=y.from,de=y.to,ge=y.text,We=kt(a,ce.line),nt=kt(a,de.line),Ft=Ae(ge),Lt=E(ge.length-1),cn=de.line-ce.line;if(y.full)a.insert(0,le(0,ge.length)),a.remove(ge.length,a.size-ge.length);else if(Wl(a,y)){var Pn=le(0,ge.length-1);re(nt,nt.text,Lt),cn&&a.remove(ce.line,cn),Pn.length&&a.insert(ce.line,Pn)}else if(We==nt)if(ge.length==1)re(We,We.text.slice(0,ce.ch)+Ft+We.text.slice(de.ch),Lt);else{var Ln=le(1,ge.length-1);Ln.push(new Or(Ft+We.text.slice(de.ch),Lt,b)),re(We,We.text.slice(0,ce.ch)+ge[0],E(0)),a.insert(ce.line+1,Ln)}else if(ge.length==1)re(We,We.text.slice(0,ce.ch)+ge[0]+nt.text.slice(de.ch),E(0)),a.remove(ce.line+1,cn);else{re(We,We.text.slice(0,ce.ch)+ge[0],E(0)),re(nt,Ft+nt.text.slice(de.ch),Lt);var Hn=le(1,ge.length-1);cn>1&&a.remove(ce.line+1,cn-1),a.insert(ce.line+1,Hn)}Vr(a,"change",a,y)}function go(a,y,x){function b(E,re,le){if(E.linked)for(var ce=0;ce<E.linked.length;++ce){var de=E.linked[ce];if(de.doc!=re){var ge=le&&de.sharedHist;x&&!ge||(y(de.doc,ge),b(de.doc,E,ge))}}}b(a,null,!0)}function jl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),_l(a),a.options.lineWrapping||br(a),a.options.mode=y.modeOption,Si(a)}function _l(a){(a.doc.direction=="rtl"?ue:Ze)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Ti(a,function(){_l(a),Si(a)})}function Ta(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function ll(a,y){var x={from:on(y.from),to:mo(y),text:Ut(a,y.from,y.to)};return Gl(a,x,y.from.line,y.to.line+1),go(a,function(b){return Gl(b,x,y.from.line,y.to.line+1)},!0),x}function Zl(a){for(;a.length;){var y=Ae(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Zl(a.done),Ae(a.done);if(a.done.length&&!Ae(a.done).ranges)return Ae(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Ae(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=Ae(le.changes),Fe(y.from,y.to)==0&&Fe(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var de=Ae(E.done);for((!de||!de.ranges)&&Ba(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||nn(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,re=b&&b.origin;x==E.lastSelOp||re&&E.lastSelOrigin==re&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==re||su(a,re,Ae(E.done),y))?E.done[E.done.length-1]=y:Ba(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&Zl(E.undone)}function Ba(a,y){var x=Ae(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var E=y["spans_"+a.id],re=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],E=0;E<y.text.length;++E)b.push(cu(x[E]));return b}function Ul(a,y){var x=du(a,y),b=Sr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var re=x[E],le=b[E];if(re&&le)e:for(var ce=0;ce<le.length;++ce){for(var de=le[ce],ge=0;ge<re.length;++ge)if(re[ge].marker==de.marker)continue e;re.push(de)}else le&&(x[E]=le)}return x}function Ro(a,y,x){for(var b=[],E=0;E<a.length;++E){var re=a[E];if(re.ranges){b.push(x?Ri.prototype.deepCopy.call(re):re);continue}var le=re.changes,ce=[];b.push({changes:ce});for(var de=0;de<le.length;++de){var ge=le[de],We=void 0;if(ce.push({from:ge.from,to:ge.to,text:ge.text}),y)for(var nt in ge)(We=nt.match(/^spans_(\d+)$/))&&dt(y,Number(We[1]))>-1&&(Ae(ce)[nt]=ge[nt],delete ge[nt])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=Fe(y,E)<0;re!=Fe(x,E)<0?(E=y,y=x):re!=Fe(y,x)<0&&(y=x)}return new Fr(E,y)}else return new Fr(x||y,y)}function La(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ri([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re<a.sel.ranges.length;re++)b[re]=sl(a.sel.ranges[re],y[re],null,E);var le=Ui(a.cm,b,a.sel.primIndex);hi(a,le,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,hi(a,Ui(a.cm,E,a.sel.primIndex),b)}function Xl(a,y,x,b){hi(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var re=0;re<E.length;re++)this.ranges[re]=new Fr(Bt(a,E[re].anchor),Bt(a,E[re].head))},origin:x&&x.origin};return nn(a,"beforeSelectionChange",a,b),a.cm&&nn(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ui(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,E=Ae(b);E&&E.ranges?(b[b.length-1]=y,Aa(a,y,x)):hi(a,y,x)}function hi(a,y,x){Aa(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Aa(a,y,x){(Wt(a,"beforeSelectionChange")||a.cm&&Wt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Fe(y.primary().head,a.sel.primary().head)<0?-1:1);Ql(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Ao(a.cm)}function Ql(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,qt(a.cm)),Vr(a,"cursorActivity",a))}function Jl(a){Ql(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var E,re=0;re<y.ranges.length;re++){var le=y.ranges[re],ce=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[re],de=Na(a,le.anchor,ce&&ce.anchor,x,b),ge=Na(a,le.head,ce&&ce.head,x,b);(E||de!=le.anchor||ge!=le.head)&&(E||(E=y.ranges.slice(0,re)),E[re]=new Fr(de,ge))}return E?Ui(a.cm,E,y.primIndex):y}function Fo(a,y,x,b,E){var re=kt(a,y.line);if(re.markedSpans)for(var le=0;le<re.markedSpans.length;++le){var ce=re.markedSpans[le],de=ce.marker,ge="selectLeft"in de?!de.selectLeft:de.inclusiveLeft,We="selectRight"in de?!de.selectRight:de.inclusiveRight;if((ce.from==null||(ge?ce.from<=y.ch:ce.from<y.ch))&&(ce.to==null||(We?ce.to>=y.ch:ce.to>y.ch))){if(E&&(nn(de,"beforeCursorEnter"),de.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var nt=de.find(b<0?1:-1),Ft=void 0;if((b<0?We:ge)&&(nt=es(a,nt,-b,nt&&nt.line==y.line?re:null)),nt&&nt.line==y.line&&(Ft=Fe(nt,x))&&(b<0?Ft<0:Ft>0))return Fo(a,nt,y,b,E)}var Lt=de.find(b<0?-1:1);return(b<0?ge:We)&&(Lt=es(a,Lt,b,Lt.line==y.line?re:null)),Lt?Fo(a,Lt,y,b,E):null}}return y}function Na(a,y,x,b,E){var re=b||1,le=Fo(a,y,x,re,E)||!E&&Fo(a,y,x,re,!0)||Fo(a,y,x,-re,E)||!E&&Fo(a,y,x,-re,!0);return le||(a.cantEdit=!0,we(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Bt(a,we(y.line-1)):null:x>0&&y.ch==(b||kt(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()),me)}function ns(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(E,re,le,ce){E&&(b.from=Bt(a,E)),re&&(b.to=Bt(a,re)),le&&(b.text=le),ce!==void 0&&(b.origin=ce)}),nn(a,"beforeChange",a,b),a.cm&&nn(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function zo(a,y,x){if(a.cm){if(!a.cm.curOp)return oi(a.cm,zo)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=er&&!x&&Wr(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,Sr(a,y));var b=[];go(a,function(E,re){!re&&dt(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,Sr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ce=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,ge=0;ge<ce.length&&(re=ce[ge],!(x?re.ranges&&!re.equals(a.sel):!re.ranges));ge++);if(ge!=ce.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(re=ce.pop(),re.ranges){if(Ba(re,de),x&&!re.equals(a.sel)){hi(a,re,{clearRedo:!1});return}le=re}else if(b){ce.push(re);return}else break;var We=[];Ba(le,de),de.push({changes:We,generation:E.generation}),E.generation=re.generation||++E.maxGeneration;for(var nt=Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"),Ft=function(Pn){var Ln=re.changes[Pn];if(Ln.origin=y,nt&&!ns(a,Ln,!1))return ce.length=0,{};We.push(ll(a,Ln));var Hn=Pn?il(a,Ln):Ae(ce);oa(a,Ln,Hn,Ul(a,Ln)),!Pn&&a.cm&&a.cm.scrollIntoView({from:Ln.from,to:mo(Ln)});var Vn=[];go(a,function($n,Kn){!Kn&&dt(Vn,$n.history)==-1&&(ls($n.history,Ln),Vn.push($n.history)),oa($n,Ln,null,Ul($n,Ln))})},Lt=re.changes.length-1;Lt>=0;--Lt){var cn=Ft(Lt);if(cn)return cn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri($t(a.sel.ranges,function(E){return new Fr(we(E.anchor.line+y,E.anchor.ch),we(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Si(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)fo(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return oi(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){is(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var 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:[Ae(y.text)],origin:y.origin}}var re=a.lastLine();y.to.line>re&&(y={from:y.from,to:we(re,kt(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Ut(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,me),a.cantEdit&&Na(a,we(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ce=!1,de=re.line;a.options.lineWrapping||(de=Be(sn(kt(b,re.line))),b.iter(de,le.line+1,function(Lt){if(Lt==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&qt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(de,re.line+y.text.length,function(Lt){var cn=kr(Lt);cn>E.maxLineLength&&(E.maxLine=Lt,E.maxLineLength=cn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),ir(b,re.line),na(a,400);var ge=y.text.length-(le.line-re.line)-1;y.full?Si(a):re.line==le.line&&y.text.length==1&&!Wl(a.doc,y)?fo(a,re.line,"text"):Si(a,re.line,le.line+1,ge);var We=Wt(a,"changes"),nt=Wt(a,"change");if(nt||We){var Ft={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};nt&&Vr(a,"change",a,Ft),We&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ft)}a.display.selForContextMenu=null}function Ho(a,y,x,b,E){var re;b||(b=x),Fe(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),zo(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var E=0;E<a.length;++E){var re=a[E],le=!0;if(re.ranges){re.copied||(re=a[E]=re.deepCopy(),re.copied=!0);for(var ce=0;ce<re.ranges.length;ce++)os(re.ranges[ce].anchor,y,x,b),os(re.ranges[ce].head,y,x,b);continue}for(var de=0;de<re.changes.length;++de){var ge=re.changes[de];if(x<ge.from.line)ge.from=we(ge.from.line+b,ge.from.ch),ge.to=we(ge.to.line+b,ge.to.ch);else if(y<=ge.to.line){le=!1;break}}le||(a.splice(0,E+1),E=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;as(a.done,x,b,E),as(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,re=y;return typeof y=="number"?re=kt(a,Xt(a,y)):E=Be(y),E==null?null:(b(re,E)&&a.cm&&fo(a.cm,E,x),re)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,Tr(E),Vr(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function sa(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var E=a[b];y+=E.chunkSize(),x+=E.height,E.parent=this}this.size=y,this.height=x,this.parent=null}sa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],E=b.chunkSize();if(a<E){var re=Math.min(y,E-a),le=b.height;if(b.removeInner(a,re),this.height-=le-b.height,E==re&&(this.children.splice(x--,1),b.parent=null),(y-=re)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var ce=[];this.collapse(ce),this.children=[new la(ce)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var E=this.children[b],re=E.chunkSize();if(a<=re){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var le=E.lines.length%25+25,ce=le;ce<E.lines.length;){var de=new la(E.lines.slice(ce,ce+=25));E.height-=de.height,this.children.splice(++b,0,de),de.parent=this}E.lines=E.lines.slice(0,le),this.maybeSpill()}break}a-=re}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=dt(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],re=E.chunkSize();if(a<re){var le=Math.min(y,re-a);if(E.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=re}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=Be(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var re=vi(this);hn(x,Math.max(0,x.height-re)),a&&(Ti(a,function(){ss(a,x,-re),fo(a,b,"widget")}),Vr(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var E=vi(this)-y;E&&(Nn(this.doc,b)||hn(b,b.height+E),x&&Ti(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),Vr(x,"lineWidgetChanged",x,a,Be(b))}))},De(ua);function ss(a,y,x){rr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Ja(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),re=a.cm;return re&&E.noHScroll&&(re.display.alignWidgets=!0),aa(a,y,"widget",function(le){var ce=le.widgets||(le.widgets=[]);if(E.insertAt==null?ce.push(E):ce.splice(Math.min(ce.length-1,Math.max(0,E.insertAt)),0,E),E.line=le,re&&!Nn(a,le)){var de=rr(le)<a.scrollTop;hn(le,le.height+vi(E)),de&&Ja(re,E.height),re.curOp.forceUpdate=!0}return!0}),re&&Vr(re,"lineWidgetAdded",re,E,typeof y=="number"?y:Be(y)),E}var us=0,vo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};vo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&ko(a),Wt(this,"clear")){var x=this.find();x&&Vr(this,"clear",x.from,x.to)}for(var b=null,E=null,re=0;re<this.lines.length;++re){var le=this.lines[re],ce=gr(le.markedSpans,this);a&&!this.collapsed?fo(a,Be(le),"text"):a&&(ce.to!=null&&(E=Be(le)),ce.from!=null&&(b=Be(le))),le.markedSpans=Cr(le.markedSpans,ce),ce.from==null&&this.collapsed&&!Nn(this.doc,le)&&a&&hn(le,Di(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var de=0;de<this.lines.length;++de){var ge=sn(this.lines[de]),We=kr(ge);We>a.display.maxLineLength&&(a.display.maxLine=ge,a.display.maxLineLength=We,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Si(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Vr(a,"markerCleared",a,this,b,E),y&&Po(a),this.parent&&this.parent.clear()}},vo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E<this.lines.length;++E){var re=this.lines[E],le=gr(re.markedSpans,this);if(le.from!=null&&(x=we(y?re:Be(re),le.from),a==-1))return x;if(le.to!=null&&(b=we(y?re:Be(re),le.to),a==1))return b}return x&&{from:x,to:b}},vo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Ti(b,function(){var E=y.line,re=Be(y.line),le=qi(b,re);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Nn(x.doc,E)&&x.height!=null){var ce=x.height;x.height=null;var de=vi(x)-ce;de&&hn(E,E.height+de)}Vr(b,"markerChanged",b,a)})},vo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||dt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},vo.prototype.detachLine=function(a){if(this.lines.splice(dt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},De(vo);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 oi(a.cm,$o)(a,y,x,b,E);var re=new vo(a,E),le=Fe(y,x);if(b&&Ot(b,re,!1),le>0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=vt("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(Cn(a,y.line,y,x,re)||y.line!=x.line&&Cn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}re.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,de=a.cm,ge;if(a.iter(ce,x.line+1,function(nt){de&&re.collapsed&&!de.options.lineWrapping&&sn(nt)==de.display.maxLine&&(ge=!0),re.collapsed&&ce!=y.line&&hn(nt,0),or(nt,new cr(re,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),re.collapsed&&a.iter(y.line,x.line+1,function(nt){Nn(a,nt)&&hn(nt,0)}),re.clearOnEnter&&Ht(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(vr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),de){if(ge&&(de.curOp.updateMaxLine=!0),re.collapsed)Si(de,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var We=y.line;We<=x.line;We++)fo(de,We,"text");re.atomic&&Jl(de.doc),Vr(de,"markerAdded",de,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Vr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},De(ca);function mu(a,y,x,b,E){b=Ot(b),b.shared=!1;var re=[$o(a,y,x,b,E)],le=re[0],ce=b.widgetNode;return go(a,function(de){ce&&(b.widgetNode=ce.cloneNode(!0)),re.push($o(de,Bt(de,y),Bt(de,x),b,E));for(var ge=0;ge<de.linked.length;++ge)if(de.linked[ge].isParent)return;le=Ae(re)}),new ca(re,le)}function cs(a){return a.findMarks(we(a.first,0),a.clipPos(we(a.lastLine())),function(y){return y.parent})}function gu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),re=a.clipPos(E.from),le=a.clipPos(E.to);if(Fe(re,le)){var ce=$o(a,re,le,b.primary,b.primary.type);b.markers.push(ce),ce.parent=b}}}function vu(a){for(var y=function(b){var E=a[b],re=[E.primary.doc];go(E.primary.doc,function(de){return re.push(de)});for(var le=0;le<E.markers.length;le++){var ce=E.markers[le];dt(re,ce.doc)==-1&&(ce.parent=null,E.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,wi=function(a,y,x,b,E){if(!(this instanceof wi))return new wi(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new Or("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var re=we(x,0);this.sel=po(re),this.history=new Ta(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:re,to:re,text:a}),hi(this,po(re),me)};wi.prototype=te(sa.prototype,{constructor:wi,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=xn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:ai(function(a){var y=we(this.first,0),x=this.first+this.size-1;zo(this,{from:y,to:we(x,kt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Jo(this.cm,0,0),hi(this,po(y),me)}),replaceRange:function(a,y,x,b){y=Bt(this,y),x=x?Bt(this,x):y,Ho(this,a,y,x,b)},getRange:function(a,y,x){var b=Ut(this,Bt(this,a),Bt(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(be(this,a))return kt(this,a)},getLineNumber:function(a){return Be(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=kt(this,a)),sn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Bt(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ai(function(a,y,x){Xl(this,Bt(this,typeof a=="number"?we(a,y||0):a),null,x)}),setSelection:ai(function(a,y,x){Xl(this,Bt(this,a),Bt(this,y||a),x)}),extendSelection:ai(function(a,y,x){La(this,Bt(this,a),y&&Bt(this,y),x)}),extendSelections:ai(function(a,y){Kl(this,fn(this,a),y)}),extendSelectionsBy:ai(function(a,y){var x=$t(this.sel.ranges,a);Kl(this,fn(this,x),y)}),setSelections:ai(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Fr(Bt(this,a[E].anchor),Bt(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),hi(this,Ui(this.cm,b,y),x)}}),addSelection:ai(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Fr(Bt(this,a),Bt(this,y||a))),hi(this,Ui(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=Ut(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=Ut(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:ai(function(a,y,x){for(var b=[],E=this.sel,re=0;re<E.ranges.length;re++){var le=E.ranges[re];b[re]={from:le.from(),to:le.to(),text:this.splitLines(a[re]),origin:x}}for(var ce=y&&y!="end"&&ou(this,b,y),de=b.length-1;de>=0;de--)zo(this,b[de]);ce?Yl(this,ce):this.cm&&Ao(this.cm)}),undo:ai(function(){Ra(this,"undo")}),redo:ai(function(){Ra(this,"redo")}),undoSelection:ai(function(){Ra(this,"undo",!0)}),redoSelection:ai(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var 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 Ta(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 Ta(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(a.undone.slice(0),null,!0)},setGutterMarker:ai(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&ne(E)&&(b.gutterMarkers=null),!0})}),clearGutter:ai(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,ne(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!be(this,a)||(y=a,a=kt(this,a),!a))return null}else if(y=Be(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[E])b[E]=x;else{if(ot(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",re=b[E];if(re)if(x==null)b[E]=null;else{var le=re.match(ot(x));if(!le)return!1;var ce=le.index+le[0].length;b[E]=re.slice(0,le.index)+(!le.index||ce==re.length?"":" ")+re.slice(ce)||null}else return!1;return!0})}),addLineWidget:ai(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return $o(this,Bt(this,a),Bt(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=Bt(this,a),$o(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Bt(this,a);var y=[],x=kt(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=Bt(this,a),y=Bt(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ce=0;ce<le.length;ce++){var de=le[ce];!(de.to!=null&&E==a.line&&a.ch>=de.to||de.from==null&&E!=a.line||de.from!=null&&E==y.line&&de.from>=y.ch)&&(!x||x(de.marker))&&b.push(de.marker.parent||de.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(E){var re=E.text.length+b;if(re>a)return y=a,!0;a-=re,++x}),Bt(this,we(x,y))},indexFromPos:function(a){a=Bt(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new wi(xn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new wi(xn(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Gr&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),vu(cs(this));break}}if(a.history==this.history){var b=[a.id];go(a,function(E){return b.push(E.id)},!0),a.history=new Ta(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):rn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ai(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&au(this.cm))})}),wi.prototype.eachLine=wi.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(Ct(y,a)||ui(y.display,a))){tt(a),Se&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,re=Array(E),le=0,ce=function(){++le==E&&oi(y,function(){x=Bt(y.doc,x);var Lt={from:x,to:x,text:y.doc.splitLines(re.filter(function(cn){return cn!=null}).join(y.doc.lineSeparator())),origin:"paste"};zo(y.doc,Lt),Yl(y.doc,po(Bt(y.doc,x),Bt(y.doc,mo(Lt))))})()},de=function(Lt,cn){if(y.options.allowDropFileTypes&&dt(y.options.allowDropFileTypes,Lt.type)==-1){ce();return}var Pn=new FileReader;Pn.onerror=function(){return ce()},Pn.onload=function(){var Ln=Pn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ln)){ce();return}re[cn]=Ln,ce()},Pn.readAsText(Lt)},ge=0;ge<b.length;ge++)de(b[ge],ge);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 We=a.dataTransfer.getData("Text");if(We){var nt;if(y.state.draggingText&&!y.state.draggingText.copy&&(nt=y.listSelections()),Aa(y.doc,po(x,x)),nt)for(var Ft=0;Ft<nt.length;++Ft)Ho(y.doc,"",nt[Ft].anchor,nt[Ft].head,"drag");y.replaceSelection(We,"around","paste"),y.display.input.focus()}}catch(Lt){}}}}function xu(a,y){if(Se&&(!a.state.draggingText||+new Date-ds<100)){ke(y);return}if(!(Ct(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Ye)){var x=qe("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",he&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),he&&x.parentNode.removeChild(x)}}function Cu(a,y){var x=So(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=qe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),et(a.display.dragCursor,b)}}function fs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var E=y[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var re=0;re<x.length;re++)a(x[re])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;Ht(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Ht(window,"blur",function(){return hs(Lo)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var yo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},da=0;da<10;da++)yo[da+48]=yo[da+96]=String(da);for(var Fa=65;Fa<=90;Fa++)yo[Fa]=String.fromCharCode(Fa);for(var fa=1;fa<=12;fa++)yo[fa+111]=yo[fa+63235]="F"+fa;var io={};io.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},io.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},io.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},io.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},io.default=ze?io.macDefault:io.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,re,le=0;le<y.length-1;le++){var ce=y[le];if(/^(cmd|meta|m)$/i.test(ce))re=!0;else if(/^a(lt)?$/i.test(ce))x=!0;else if(/^(c|ctrl|control)$/i.test(ce))b=!0;else if(/^s(hift)?$/i.test(ce))E=!0;else throw new Error("Unrecognized modifier name: "+ce)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),re&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function ku(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=$t(x.split(" "),Iu),re=0;re<E.length;re++){var le=void 0,ce=void 0;re==E.length-1?(ce=E.join(" "),le=b):(ce=E.slice(0,re+1).join(" "),le="...");var de=y[ce];if(!de)y[ce]=le;else if(de!=le)throw new Error("Inconsistent bindings for "+ce)}delete a[x]}for(var ge in y)a[ge]=y[ge];return a}function Wo(a,y,x,b){y=za(y);var E=y.call?y.call(a,b):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&x(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Wo(a,y.fallthrough,x,b);for(var re=0;re<y.fallthrough.length;re++){var le=Wo(a,y.fallthrough[re],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function gs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(ht?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(ht?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vs(a,y){if(he&&a.keyCode==34&&a.char)return!1;var x=yo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),gs(x,a,y))}function za(a){return typeof a=="string"?io[a]:a}function jo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var re=y(x[E]);b.length&&Fe(re.from,Ae(b).to)<=0;){var le=b.pop();if(Fe(le.from,re.from)<0){re.from=le.from;break}}b.push(re)}Ti(a,function(){for(var ce=b.length-1;ce>=0;ce--)Ho(a.doc,"",b[ce].from,b[ce].to,"+delete");Ao(a)})}function cl(a,y,x){var b=st(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 re=Kt(x,y.doc.direction);if(re){var le=E<0?Ae(re):re[0],ce=E<0==(le.level==1),de=ce?"after":"before",ge;if(le.level>0||y.doc.direction=="rtl"){var We=uo(y,x);ge=E<0?x.text.length-1:0;var nt=$i(y,We,ge).top;ge=Pe(function(Ft){return $i(y,We,Ft).top==nt},E<0==(le.level==1)?le.from:le.to-1,ge),de=="before"&&(ge=cl(x,ge,1))}else ge=E<0?le.to:le.from;return new we(b,ge,de)}}return new we(b,E<0?x.text.length:0,E<0?"before":"after")}function Pu(a,y,x,b){var E=Kt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var re=yt(E,x.ch,x.sticky),le=E[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var ce=function(Hn,Vn){return cl(y,Hn instanceof we?Hn.ch:Hn,Vn)},de,ge=function(Hn){return a.options.lineWrapping?(de=de||uo(a,y),Yr(a,y,de,Hn)):{begin:0,end:y.text.length}},We=ge(x.sticky=="before"?ce(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var nt=le.level==1==b<0,Ft=ce(x,nt?1:-1);if(Ft!=null&&(nt?Ft<=le.to&&Ft<=We.end:Ft>=le.from&&Ft>=We.begin)){var Lt=nt?"before":"after";return new we(x.line,Ft,Lt)}}var cn=function(Hn,Vn,$n){for(var Kn=function(_r,li){return li?new we(x.line,ce(_r,1),"before"):new we(x.line,_r,"after")};Hn>=0&&Hn<E.length;Hn+=Vn){var sr=E[Hn],nr=Vn>0==(sr.level!=1),wr=nr?$n.begin:ce($n.end,-1);if(sr.from<=wr&&wr<sr.to||(wr=nr?sr.from:ce(sr.to,-1),$n.begin<=wr&&wr<$n.end))return Kn(wr,nr)}},Pn=cn(re+b,b,We);if(Pn)return Pn;var Ln=b>0?We.end:ce(We.begin,-1);return Ln!=null&&!(b>0&&Ln==y.text.length)&&(Pn=cn(b>0?0:E.length-1,b,ge(Ln)),Pn)?Pn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),me)},killLine:function(a){return jo(a,function(y){if(y.empty()){var x=kt(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 jo(a,function(y){return{from:we(y.from().line,0),to:Bt(a.doc,we(y.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(y){return{from:we(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return jo(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 jo(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 Mu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},_e)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},_e)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bs(a,y.head):b},_e)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var re=x[E].from(),le=ye(a.getLine(re.line),re.ch,b);y.push(zt(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Ti(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,re=kt(a.doc,E.line).text;if(re){if(E.ch==re.length&&(E=new we(E.line,E.ch-1)),E.ch>0)E=new we(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),we(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=kt(a.doc,E.line-1).text;le&&(E=new we(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),we(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Fr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Ti(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);Ao(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=kt(a.doc,y),b=sn(x);return b!=x&&(y=Be(b)),fl(!0,a,b,y,1)}function Mu(a,y){var x=kt(a.doc,y),b=zn(x);return b!=x&&(y=Be(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=kt(a.doc,x.line),E=Kt(b,a.doc.direction);if(!E||E[0].level==0){var re=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=re&&y.ch;return we(x.line,le?0:re,x.sticky)}return x}function Ha(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),E=y(a)!=bt}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"&&Vr(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(tt(x),Xa(a)),!!E}function Cs(a,y){var x=vs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return Ha(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return Ha(a,b)}):pa(a,x,y,function(b){return Ha(a,b)}):!1}function Tu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return Ha(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=He(),!Ct(y,a))){Se&&Ee<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);he&&(hl=b?x:null,!b&&x==88&&!dn&&(ze?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),z&&!ze&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Bu(y)}}function Bu(a){var y=a.display.lineDiv;ue(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ze(y,"CodeMirror-crosshair"),Qt(document,"keyup",x),Qt(document,"mouseover",x))}Ht(document,"keyup",x),Ht(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),Ct(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||Ct(y,a)||a.ctrlKey&&!a.altKey||ze&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,tt(a);return}if(!(he&&(!a.which||a.which<10)&&Cs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Tu(y,a,E)||y.display.input.onKeyPress(a))}}}var Lu=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+Lu>a&&Fe(y,this.pos)==0&&x==this.button};var ma,ga;function Au(a,y){var x=+new Date;return ga&&ga.compare(x,a,y)?(ma=ga=null,"triple"):ma&&ma.compare(x,a,y)?(ga=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),ga=null,"single")}function Is(a){var y=this,x=y.display;if(!(Ct(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Le||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=at(a),re=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,re,a))&&(E==1?b?Fu(y,b,re,a):$e(a)==x.scroller&&tt(a):E==2?(b&&La(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(lt?y.display.input.onContextMenu(a):kl(y)))}}}function Nu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,gs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce=le(a,x)!=bt}finally{a.state.suppressEdits=!1}return ce})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=ft?x.shiftKey&&x.metaKey:x.altKey;E.unit=re?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=ze?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ze?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){Se?setTimeout(Je(Il,a),0):a.curOp.focus=He();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&Et&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(Fe((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(Fe(le.to(),y)>0||y.xRel<0)?zu(a,b,y,E):Hu(a,b,y,E)}function zu(a,y,x,b){var E=a.display,re=!1,le=oi(a,function(ge){Le&&(E.scroller.draggable=!1),a.state.draggingText=!1,Qt(E.wrapper.ownerDocument,"mouseup",le),Qt(E.wrapper.ownerDocument,"mousemove",ce),Qt(E.scroller,"dragstart",de),Qt(E.scroller,"drop",le),re||(tt(ge),b.addNew||La(a.doc,x,null,null,b.extend),Le&&!Ye||Se&&Ee==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(ge){re=re||Math.abs(y.clientX-ge.clientX)+Math.abs(y.clientY-ge.clientY)>=10},de=function(){return re=!0};Le&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Ht(E.wrapper.ownerDocument,"mouseup",le),Ht(E.wrapper.ownerDocument,"mousemove",ce),Ht(E.scroller,"dragstart",de),Ht(E.scroller,"drop",le),kl(a),setTimeout(function(){return E.input.focus()},20)}function ks(a,y,x){if(x=="char")return new Fr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Fr(we(y.line,0),Bt(a.doc,we(y.line+1,0)));var b=x(a,y);return new Fr(b.from,b.to)}function Hu(a,y,x,b){var E=a.display,re=a.doc;tt(y);var le,ce,de=re.sel,ge=de.ranges;if(b.addNew&&!b.extend?(ce=re.sel.contains(x),ce>-1?le=ge[ce]:le=new Fr(x,x)):(le=re.sel.primary(),ce=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Fr(x,x)),x=So(a,y,!0,!0),ce=-1;else{var We=ks(a,x,b.unit);b.extend?le=sl(le,We.anchor,We.head,b.extend):le=We}b.addNew?ce==-1?(ce=ge.length,hi(re,Ui(a,ge.concat([le]),ce),{scroll:!1,origin:"*mouse"})):ge.length>1&&ge[ce].empty()&&b.unit=="char"&&!b.extend?(hi(re,Ui(a,ge.slice(0,ce).concat(ge.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),de=re.sel):ul(re,ce,le,Te):(ce=0,hi(re,new Ri([le],0),Te),de=re.sel);var nt=x;function Ft($n){if(Fe(nt,$n)!=0)if(nt=$n,b.unit=="rectangle"){for(var Kn=[],sr=a.options.tabSize,nr=ye(kt(re,x.line).text,x.ch,sr),wr=ye(kt(re,$n.line).text,$n.ch,sr),_r=Math.min(nr,wr),li=Math.max(nr,wr),Ur=Math.min(x.line,$n.line),Bi=Math.min(a.lastLine(),Math.max(x.line,$n.line));Ur<=Bi;Ur++){var Ei=kt(re,Ur).text,qr=Nt(Ei,_r,sr);_r==li?Kn.push(new Fr(we(Ur,qr),we(Ur,qr))):Ei.length>qr&&Kn.push(new Fr(we(Ur,qr),we(Ur,Nt(Ei,li,sr))))}Kn.length||Kn.push(new Fr(x,x)),hi(re,Ui(a,de.ranges.slice(0,ce).concat(Kn),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView($n)}else{var Ii=le,di=ks(a,$n,b.unit),ii=Ii.anchor,ei;Fe(di.anchor,ii)>0?(ei=di.head,ii=gn(Ii.from(),di.anchor)):(ei=di.anchor,ii=un(Ii.to(),di.head));var Kr=de.ranges.slice(0);Kr[ce]=$u(a,new Fr(Bt(re,ii),ei)),hi(re,Ui(a,Kr,ce),Te)}}var Lt=E.wrapper.getBoundingClientRect(),cn=0;function Pn($n){var Kn=++cn,sr=So(a,$n,!0,b.unit=="rectangle");if(sr)if(Fe(sr,nt)!=0){a.curOp.focus=He(),Ft(sr);var nr=Pa(E,re);(sr.line>=nr.to||sr.line<nr.from)&&setTimeout(oi(a,function(){cn==Kn&&Pn($n)}),150)}else{var wr=$n.clientY<Lt.top?-20:$n.clientY>Lt.bottom?20:0;wr&&setTimeout(oi(a,function(){cn==Kn&&(E.scroller.scrollTop+=wr,Pn($n))}),50)}}function Ln($n){a.state.selectingText=!1,cn=1/0,$n&&(tt($n),E.input.focus()),Qt(E.wrapper.ownerDocument,"mousemove",Hn),Qt(E.wrapper.ownerDocument,"mouseup",Vn),re.history.lastSelOrigin=null}var Hn=oi(a,function($n){$n.buttons===0||!at($n)?Ln($n):Pn($n)}),Vn=oi(a,Ln);a.state.selectingText=Vn,Ht(E.wrapper.ownerDocument,"mousemove",Hn),Ht(E.wrapper.ownerDocument,"mouseup",Vn)}function $u(a,y){var x=y.anchor,b=y.head,E=kt(a.doc,x.line);if(Fe(x,b)==0&&x.sticky==b.sticky)return y;var re=Kt(E);if(!re)return y;var le=yt(re,x.ch,x.sticky),ce=re[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var de=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(de==0||de==re.length)return y;var ge;if(b.line!=x.line)ge=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var We=yt(re,b.ch,b.sticky),nt=We-le||(b.ch-x.ch)*(ce.level==1?-1:1);We==de-1||We==de?ge=nt<0:ge=nt>0}var Ft=re[de+(ge?-1:0)],Lt=ge==(Ft.level==1),cn=Lt?Ft.from:Ft.to,Pn=Lt?"after":"before";return x.ch==cn&&x.sticky==Pn?y:new Fr(new we(x.line,cn,Pn),b)}function Ps(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(Ft){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&tt(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(re>ce.bottom||!Wt(a,x))return Rt(y);re-=ce.top-le.viewOffset;for(var de=0;de<a.display.gutterSpecs.length;++de){var ge=le.gutters.childNodes[de];if(ge&&ge.getBoundingClientRect().right>=E){var We=Ve(a.doc,re),nt=a.display.gutterSpecs[de];return nn(a,x,a,We,nt.className,y),Rt(y)}}}function ml(a,y){return Ps(a,y,"gutterClick",!0)}function Ms(a,y){ui(a.display,y)||Wu(a,y)||Ct(a,y,"contextmenu")||lt||a.display.input.onContextMenu(y)}function Wu(a,y){return Wt(a,"gutterContextMenu")?Ps(a,y,"gutterContextMenu",!1):!1}function Os(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var _o={toString:function(){return"CodeMirror.Init"}},Ds={},$a={};function ju(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ce,de,ge){ge!=_o&&re(ce,de,ge)}:re)}a.defineOption=x,a.Init=_o,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Si(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var re=[],le=b.doc.first;b.doc.iter(function(de){for(var ge=0;;){var We=de.text.indexOf(E,ge);if(We==-1)break;ge=We+E.length,re.push(we(le,We))}le++});for(var ce=re.length-1;ce>=0;ce--)Ho(b.doc,E,re[ce],we(re[ce].line,re[ce].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=_o&&b.refresh()}),x("specialCharPlaceholder",Pi,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ge?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!wt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Os(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=za(E),ce=re!=_o&&za(re);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Zu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Bl(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Lo(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,_u),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function _u(a,y,x){var b=x&&x!=_o;if(!y!=!b){var E=a.display.dragFunctions,re=y?Ht:Qt;re(a.display.scroller,"dragstart",E.start),re(a.display.scroller,"dragenter",E.enter),re(a.display.scroller,"dragover",E.over),re(a.display.scroller,"dragleave",E.leave),re(a.display.scroller,"drop",E.drop)}}function Zu(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ze(a.display.wrapper,"CodeMirror-wrap"),br(a)),Ka(a),Si(a),Co(a),setTimeout(function(){return No(a)},100)}function Gr(a,y){var x=this;if(!(this instanceof Gr))return new Gr(a,y);this.options=y=y?Ot(y):{},Ot(Ds,y,!1);var b=y.value;typeof b=="string"?b=new wi(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Gr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Os(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new fe,keySeq:null,specialChars:null},y.autofocus&&!Ge&&re.input.focus(),Se&&Ee<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),ko(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!Ge||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Lo(this);for(var le in $a)$a.hasOwnProperty(le)&&$a[le](this,y[le],_o);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce<gl.length;++ce)gl[ce](this);Po(this),Le&&y.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}Gr.defaults=Ds,Gr.optionHandlers=$a;function Vu(a){var y=a.display;Ht(y.scroller,"mousedown",oi(a,Is)),Se&&Ee<11?Ht(y.scroller,"dblclick",oi(a,function(de){if(!Ct(a,de)){var ge=So(a,de);if(!(!ge||ml(a,de)||ui(a.display,de))){tt(de);var We=a.findWordAt(ge);La(a.doc,We.anchor,We.head)}}})):Ht(y.scroller,"dblclick",function(de){return Ct(a,de)||tt(de)}),Ht(y.scroller,"contextmenu",function(de){return Ms(a,de)}),Ht(y.input.getField(),"contextmenu",function(de){y.scroller.contains(de.target)||Ms(a,de)});var x,b={end:0};function E(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function re(de){if(de.touches.length!=1)return!1;var ge=de.touches[0];return ge.radiusX<=1&&ge.radiusY<=1}function le(de,ge){if(ge.left==null)return!0;var We=ge.left-de.left,nt=ge.top-de.top;return We*We+nt*nt>20*20}Ht(y.scroller,"touchstart",function(de){if(!Ct(a,de)&&!re(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var ge=+new Date;y.activeTouch={start:ge,moved:!1,prev:ge-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),Ht(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ht(y.scroller,"touchend",function(de){var ge=y.activeTouch;if(ge&&!ui(y,de)&&ge.left!=null&&!ge.moved&&new Date-ge.start<300){var We=a.coordsChar(y.activeTouch,"page"),nt;!ge.prev||le(ge,ge.prev)?nt=new Fr(We,We):!ge.prev.prev||le(ge,ge.prev.prev)?nt=a.findWordAt(We):nt=new Fr(we(We.line,0),Bt(a.doc,we(We.line+1,0))),a.setSelection(nt.anchor,nt.head),a.focus(),tt(de)}E()}),Ht(y.scroller,"touchcancel",E),Ht(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),nn(a,"scroll",a))}),Ht(y.scroller,"mousewheel",function(de){return zl(a,de)}),Ht(y.scroller,"DOMMouseScroll",function(de){return zl(a,de)}),Ht(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){Ct(a,de)||ke(de)},over:function(de){Ct(a,de)||(Cu(a,de),ke(de))},start:function(de){return xu(a,de)},drop:oi(a,bu),leave:function(de){Ct(a,de)||fs(a)}};var ce=y.input.getField();Ht(ce,"keyup",function(de){return ws.call(a,de)}),Ht(ce,"keydown",oi(a,Ss)),Ht(ce,"keypress",oi(a,Es)),Ht(ce,"focus",function(de){return Ya(a,de)}),Ht(ce,"blur",function(de){return Lo(a,de)})}var gl=[];Gr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=Qn(a,y).state:x="prev");var le=a.options.tabSize,ce=kt(E,y),de=ye(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ge=ce.text.match(/^\s*/)[0],We;if(!b&&!/\S/.test(ce.text))We=0,x="not";else if(x=="smart"&&(We=E.mode.indent(re,ce.text.slice(ge.length),ce.text),We==bt||We>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?We=ye(kt(E,y-1).text,null,le):We=0:x=="add"?We=de+a.options.indentUnit:x=="subtract"?We=de-a.options.indentUnit:typeof x=="number"&&(We=de+x),We=Math.max(0,We);var nt="",Ft=0;if(a.options.indentWithTabs)for(var Lt=Math.floor(We/le);Lt;--Lt)Ft+=le,nt+=" ";if(Ft<We&&(nt+=zt(We-Ft)),nt!=ge)return Ho(E,nt,we(y,0),we(y,ge.length),"+input"),ce.stateAfter=null,!0;for(var cn=0;cn<E.sel.ranges.length;cn++){var Pn=E.sel.ranges[cn];if(Pn.head.line==y&&Pn.head.ch<ge.length){var Ln=we(y,ge.length);ul(E,cn,new Fr(Ln,Ln));break}}}var Ki=null;function Wa(a){Ki=a}function vl(a,y,x,b,E){var re=a.doc;a.display.shift=!1,b||(b=re.sel);var le=+new Date-200,ce=E=="paste"||a.state.pasteIncoming>le,de=rn(y),ge=null;if(ce&&b.ranges.length>1)if(Ki&&Ki.text.join(`
|
|
|
`)==y){if(b.ranges.length%Ki.text.length==0){ge=[];for(var We=0;We<Ki.text.length;We++)ge.push(re.splitLines(Ki.text[We]))}}else de.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(ge=$t(de,function(Hn){return[Hn]}));for(var nt=a.curOp.updateInput,Ft=b.ranges.length-1;Ft>=0;Ft--){var Lt=b.ranges[Ft],cn=Lt.from(),Pn=Lt.to();Lt.empty()&&(x&&x>0?cn=we(cn.line,cn.ch-x):a.state.overwrite&&!ce?Pn=we(Pn.line,Math.min(kt(re,Pn.line).text.length,Pn.ch+Ae(de).length)):ce&&Ki&&Ki.lineWise&&Ki.text.join(`
|
|
|
`)==de.join(`
|
|
|
`)&&(cn=Pn=we(cn.line,0)));var Ln={from:cn,to:Pn,text:ge?ge[Ft%ge.length]:de,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};zo(a.doc,Ln),Vr(a,"inputRead",a,Ln)}y&&!ce&&Bs(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=nt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ts(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ti(y,function(){return vl(y,x,0,null,"paste")}),!0}function Bs(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ce=0;ce<re.electricChars.length;ce++)if(y.indexOf(re.electricChars.charAt(ce))>-1){le=va(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(kt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Vr(a,"electricInput",a,E.head.line)}}}function Ls(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,re={anchor:we(E,0),head:we(E+1,0)};x.push(re),y.push(a.getRange(re.anchor,re.head))}return{text:y,ranges:x}}function As(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ns(){var a=qe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=qe("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Le?a.style.width="1000px":a.setAttribute("wrap","off"),Ke&&(a.style.border="1px solid black"),As(a),y}function Gu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,E){var re=this.options,le=re[b];re[b]==E&&b!="mode"||(re[b]=E,y.hasOwnProperty(b)&&oi(this,y[b])(this,E,le),nn(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"](za(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,re=0;re<E.length;++re)if(E[re]==b||E[re].name==b)return E.splice(re,1),!0},addOverlay:yi(function(b,E){var re=b.token?b:a.getMode(this.options,b);if(re.startState)throw new Error("Overlays may not be stateful.");ct(this.state.overlays,{mode:re,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(le){return le.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(b){for(var E=this.state.overlays,re=0;re<E.length;++re){var le=E[re].modeSpec;if(le==b||typeof b=="string"&&le.name==b){E.splice(re,1),this.state.modeGen++,Si(this);return}}}),indentLine:yi(function(b,E,re){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),be(this.doc,b)&&va(this,b,E,re)}),indentSelection:yi(function(b){for(var E=this.doc.sel.ranges,re=-1,le=0;le<E.length;le++){var ce=E[le];if(ce.empty())ce.head.line>re&&(va(this,ce.head.line,b,!0),re=ce.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ce.from(),ge=ce.to(),We=Math.max(re,de.line);re=Math.min(this.lastLine(),ge.line-(ge.ch?0:1))+1;for(var nt=We;nt<re;++nt)va(this,nt,b);var Ft=this.doc.sel.ranges;de.ch==0&&E.length==Ft.length&&Ft[le].from().ch>0&&ul(this.doc,le,new Fr(de,Ft[le].to()),me)}}}),getTokenAt:function(b,E){return Un(this,b,E)},getLineTokens:function(b,E){return Un(this,we(b),E,!0)},getTokenTypeAt:function(b){b=Bt(this.doc,b);var E=Xn(this,kt(this.doc,b.line)),re=0,le=(E.length-1)/2,ce=b.ch,de;if(ce==0)de=E[2];else for(;;){var ge=re+le>>1;if((ge?E[ge*2-1]:0)>=ce)le=ge;else if(E[ge*2+1]<ce)re=ge+1;else{de=E[ge*2+2];break}}var We=de?de.indexOf("overlay "):-1;return We<0?de:We==0?null:de.slice(0,We-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var re=[];if(!x.hasOwnProperty(E))return re;var le=x[E],ce=this.getModeAt(b);if(typeof ce[E]=="string")le[ce[E]]&&re.push(le[ce[E]]);else if(ce[E])for(var de=0;de<ce[E].length;de++){var ge=le[ce[E][de]];ge&&re.push(ge)}else ce.helperType&&le[ce.helperType]?re.push(le[ce.helperType]):le[ce.name]&&re.push(le[ce.name]);for(var We=0;We<le._global.length;We++){var nt=le._global[We];nt.pred(ce,this)&&dt(re,nt.val)==-1&&re.push(nt.val)}return re},getStateAfter:function(b,E){var re=this.doc;return b=Xt(re,b==null?re.first+re.size-1:b),Qn(this,b+1,E).state},cursorCoords:function(b,E){var re,le=this.doc.sel.primary();return b==null?re=le.head:typeof b=="object"?re=Bt(this.doc,b):re=b?le.from():le.to(),Ci(this,re,E||"page")},charCoords:function(b,E){return Bo(this,Bt(this.doc,b),E||"page")},coordsChar:function(b,E){return b=wa(this,b,E||"page"),ci(this,b.left,b.top)},lineAtHeight:function(b,E){return b=wa(this,{top:b,left:0},E||"page").top,Ve(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,re){var le=!1,ce;if(typeof b=="number"){var de=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>de&&(b=de,le=!0),ce=kt(this.doc,b)}else ce=b;return To(this,ce,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-rr(ce):0)},defaultTextHeight:function(){return Di(this.display)},defaultCharWidth:function(){return Gi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ce){var de=this.display;b=Ci(this,Bt(this.doc,b));var ge=b.bottom,We=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")ge=b.top;else if(le=="above"||le=="near"){var nt=Math.max(de.wrapper.clientHeight,this.doc.height),Ft=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>nt)&&b.top>E.offsetHeight?ge=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=nt&&(ge=b.bottom),We+E.offsetWidth>Ft&&(We=Ft-E.offsetWidth)}E.style.top=ge+"px",E.style.left=E.style.right="",ce=="right"?(We=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?We=0:ce=="middle"&&(We=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=We+"px"),re&&_s(this,{left:We,top:ge,right:We+E.offsetWidth,bottom:ge+E.offsetHeight})},triggerOnKeyDown:yi(Ss),triggerOnKeyPress:yi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:yi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Bs(this,b)}),findPosH:function(b,E,re,le){var ce=1;E<0&&(ce=-1,E=-E);for(var de=Bt(this.doc,b),ge=0;ge<E&&(de=yl(this.doc,de,ce,re,le),!de.hitSide);++ge);return de},moveH:yi(function(b,E){var re=this;this.extendSelectionsBy(function(le){return re.display.shift||re.doc.extend||le.empty()?yl(re.doc,le.head,b,E,re.options.rtlMoveVisually):b<0?le.from():le.to()},_e)}),deleteH:yi(function(b,E){var re=this.doc.sel,le=this.doc;re.somethingSelected()?le.replaceSelection("",null,"+delete"):jo(this,function(ce){var de=yl(le,ce.head,b,E,!1);return b<0?{from:de,to:ce.head}:{from:ce.head,to:de}})}),findPosV:function(b,E,re,le){var ce=1,de=le;E<0&&(ce=-1,E=-E);for(var ge=Bt(this.doc,b),We=0;We<E;++We){var nt=Ci(this,ge,"div");if(de==null?de=nt.left:nt.left=de,ge=Rs(this,nt,ce,re),ge.hitSide)break}return ge},moveV:yi(function(b,E){var re=this,le=this.doc,ce=[],de=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(We){if(de)return b<0?We.from():We.to();var nt=Ci(re,We.head,"div");We.goalColumn!=null&&(nt.left=We.goalColumn),ce.push(nt.left);var Ft=Rs(re,nt,b,E);return E=="page"&&We==le.sel.primary()&&Ja(re,Bo(re,Ft,"div").top-nt.top),Ft},_e),ce.length)for(var ge=0;ge<le.sel.ranges.length;ge++)le.sel.ranges[ge].goalColumn=ce[ge]}),findWordAt:function(b){var E=this.doc,re=kt(E,b.line).text,le=b.ch,ce=b.ch;if(re){var de=this.getHelper(b,"wordChars");(b.sticky=="before"||ce==re.length)&&le?--le:++ce;for(var ge=re.charAt(le),We=se(ge,de)?function(nt){return se(nt,de)}:/\s/.test(ge)?function(nt){return/\s/.test(nt)}:function(nt){return!/\s/.test(nt)&&!se(nt)};le>0&&We(re.charAt(le-1));)--le;for(;ce<re.length&&We(re.charAt(ce));)++ce}return new Fr(we(b.line,le),we(b.line,ce))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):Ze(this.display.cursorDiv,"CodeMirror-overwrite"),nn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==He()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yi(function(b,E){Jo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Mi(this)-this.display.barHeight,width:b.scrollWidth-Mi(this)-this.display.barWidth,clientHeight:no(this),clientWidth:Ji(this)}},scrollIntoView:yi(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?Zs(this,b):Ml(this,b.from,b.to,b.margin)}),setSize:yi(function(b,E){var re=this,le=function(de){return typeof de=="number"||/^\d+$/.test(String(de))?de+"px":de};b!=null&&(this.display.wrapper.style.width=le(b)),E!=null&&(this.display.wrapper.style.height=le(E)),this.options.lineWrapping&&Ko(this);var ce=this.display.viewFrom;this.doc.iter(ce,this.display.viewTo,function(de){if(de.widgets){for(var ge=0;ge<de.widgets.length;ge++)if(de.widgets[ge].noHScroll){fo(re,ce,"widget");break}}++ce}),this.curOp.forceUpdate=!0,nn(this,"refresh",this)}),operation:function(b){return Ti(this,b)},startOperation:function(){return ko(this)},endOperation:function(){return Po(this)},refresh:yi(function(){var b=this.display.cachedTextHeight;Si(this),this.curOp.forceUpdate=!0,Co(this),Jo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Di(this.display))>.5||this.options.lineWrapping)&&Ka(this),nn(this,"refresh",this)}),swapDoc:yi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),jl(this,b),Co(this),this.display.input.reset(),Jo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Vr(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}},De(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ce=kt(a,y.line),de=E&&a.direction=="rtl"?-x:x;function ge(){var Vn=y.line+de;return Vn<a.first||Vn>=a.first+a.size?!1:(y=new we(Vn,y.ch,y.sticky),ce=kt(a,Vn))}function We(Vn){var $n;if(b=="codepoint"){var Kn=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Kn)?$n=null:$n=new we(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(Kn>=55296&&Kn<56320?2:1))),-x)}else E?$n=Pu(a.cm,ce,y,x):$n=dl(ce,y,x);if($n==null)if(!Vn&&ge())y=fl(E,a.cm,ce,y.line,de);else return!1;else y=$n;return!0}if(b=="char"||b=="codepoint")We();else if(b=="column")We(!0);else if(b=="word"||b=="group")for(var nt=null,Ft=b=="group",Lt=a.cm&&a.cm.getHelper(y,"wordChars"),cn=!0;!(x<0&&!We(!cn));cn=!1){var Pn=ce.text.charAt(y.ch)||`
|
|
|
`,Ln=se(Pn,Lt)?"w":Ft&&Pn==`
|
|
|
`?"n":!Ft||/\s/.test(Pn)?null:"p";if(Ft&&!cn&&!Ln&&(Ln="s"),nt&&nt!=Ln){x<0&&(x=1,We(),y.sticky="after");break}if(Ln&&(nt=Ln),x>0&&!We(!cn))break}var Hn=Na(a,y,re,le,!0);return mt(re,Hn)&&(Hn.hitSide=!0),Hn}function Rs(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ce-.5*Di(a.display),3);le=(x>0?y.bottom:y.top)+x*de}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ge;ge=ci(a,re,le),!!ge.outside;){if(x<0?le<=0:le>=E.height){ge.hitSide=!0;break}le+=x*5}return ge}var $r=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};$r.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;As(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ce){for(var de=ce.target;de;de=de.parentNode){if(de==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(de.className))break}return!1}Ht(E,"paste",function(ce){!re(ce)||Ct(b,ce)||Ts(ce,b)||Ee<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),Ht(E,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),Ht(E,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),Ht(E,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ht(E,"touchstart",function(){return x.forceCompositionEnd()}),Ht(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!re(ce)||Ct(b,ce))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Ls(b);Wa({lineWise:!0,text:de.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,me),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var ge=Ki.text.join(`
|
|
|
`);if(ce.clipboardData.setData("Text",ge),ce.clipboardData.getData("Text")==ge){ce.preventDefault();return}}var We=Ns(),nt=We.firstChild;b.display.lineSpace.insertBefore(We,b.display.lineSpace.firstChild),nt.value=Ki.text.join(`
|
|
|
`);var Ft=document.activeElement;Oe(nt),setTimeout(function(){b.display.lineSpace.removeChild(We),Ft.focus(),Ft==E&&x.showPrimarySelection()},50)}}Ht(E,"copy",le),Ht(E,"cut",le)},$r.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},$r.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},$r.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},$r.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$r.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var re=ja(y,a.anchorNode,a.anchorOffset),le=ja(y,a.focusNode,a.focusOffset);if(!(re&&!re.bad&&le&&!le.bad&&Fe(gn(re,le),b)==0&&Fe(un(re,le),E)==0)){var ce=y.display.view,de=b.line>=y.display.viewFrom&&Fs(y,b)||{node:ce[0].measure.map[2],offset:0},ge=E.line<y.display.viewTo&&Fs(y,E);if(!ge){var We=ce[ce.length-1].measure,nt=We.maps?We.maps[We.maps.length-1]:We.map;ge={node:nt[nt.length-1],offset:nt[nt.length-2]-nt[nt.length-3]}}if(!de||!ge){a.removeAllRanges();return}var Ft=a.rangeCount&&a.getRangeAt(0),Lt;try{Lt=Me(de.node,de.offset,ge.offset,ge.node)}catch(cn){}Lt&&(!z&&y.state.focused?(a.collapse(de.node,de.offset),Lt.collapsed||(a.removeAllRanges(),a.addRange(Lt))):(a.removeAllRanges(),a.addRange(Lt)),Ft&&a.anchorNode==null?a.addRange(Ft):z&&this.startGracePeriod()),this.rememberSelection()}},$r.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},$r.prototype.showMultipleSelections=function(a){et(this.cm.display.cursorDiv,a.cursors),et(this.cm.display.selectionDiv,a.selection)},$r.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},$r.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Ue(this.div,y)},$r.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},$r.prototype.blur=function(){this.div.blur()},$r.prototype.getField=function(){return this.div},$r.prototype.supportsTouch=function(){return!0},$r.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Ti(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},$r.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},$r.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Ne&&Ie&&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=ja(y,a.anchorNode,a.anchorOffset),b=ja(y,a.focusNode,a.focusOffset);x&&b&&Ti(y,function(){hi(y.doc,po(x,b),me),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},$r.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=we(b.line-1,kt(a.doc,b.line-1).length)),E.ch==kt(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 re,le,ce;b.line==y.viewFrom||(re=wo(a,b.line))==0?(le=Be(y.view[0].line),ce=y.view[0].node):(le=Be(y.view[re].line),ce=y.view[re-1].node.nextSibling);var de=wo(a,E.line),ge,We;if(de==y.view.length-1?(ge=y.viewTo-1,We=y.lineDiv.lastChild):(ge=Be(y.view[de+1].line)-1,We=y.view[de+1].node.previousSibling),!ce)return!1;for(var nt=a.doc.splitLines(Ku(a,ce,We,le,ge)),Ft=Ut(a.doc,we(le,0),we(ge,kt(a.doc,ge).text.length));nt.length>1&&Ft.length>1;)if(Ae(nt)==Ae(Ft))nt.pop(),Ft.pop(),ge--;else if(nt[0]==Ft[0])nt.shift(),Ft.shift(),le++;else break;for(var Lt=0,cn=0,Pn=nt[0],Ln=Ft[0],Hn=Math.min(Pn.length,Ln.length);Lt<Hn&&Pn.charCodeAt(Lt)==Ln.charCodeAt(Lt);)++Lt;for(var Vn=Ae(nt),$n=Ae(Ft),Kn=Math.min(Vn.length-(nt.length==1?Lt:0),$n.length-(Ft.length==1?Lt:0));cn<Kn&&Vn.charCodeAt(Vn.length-cn-1)==$n.charCodeAt($n.length-cn-1);)++cn;if(nt.length==1&&Ft.length==1&&le==b.line)for(;Lt&&Lt>b.ch&&Vn.charCodeAt(Vn.length-cn-1)==$n.charCodeAt($n.length-cn-1);)Lt--,cn++;nt[nt.length-1]=Vn.slice(0,Vn.length-cn).replace(/^\u200b+/,""),nt[0]=nt[0].slice(Lt).replace(/\u200b+$/,"");var sr=we(le,Lt),nr=we(ge,Ft.length?Ae(Ft).length-cn:0);if(nt.length>1||nt[0]||Fe(sr,nr))return Ho(a.doc,nt,sr,nr,"+input"),!0},$r.prototype.ensurePolled=function(){this.forceCompositionEnd()},$r.prototype.reset=function(){this.forceCompositionEnd()},$r.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$r.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},$r.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ti(this.cm,function(){return Si(a.cm)})},$r.prototype.setUneditable=function(a){a.contentEditable="false"},$r.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||oi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},$r.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},$r.prototype.onContextMenu=function(){},$r.prototype.resetPosition=function(){},$r.prototype.needsContentAttribute=!0;function Fs(a,y){var x=qi(a,y.line);if(!x||x.hidden)return null;var b=kt(a.doc,y.line),E=Do(x,b,y.line),re=Kt(b,a.doc.direction),le="left";if(re){var ce=yt(re,y.ch);le=ce%2?"right":"left"}var de=xa(E.map,y.ch,le);return de.offset=de.collapse=="right"?de.end:de.start,de}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Zo(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var re="",le=!1,ce=a.doc.lineSeparator(),de=!1;function ge(Lt){return function(cn){return cn.id==Lt}}function We(){le&&(re+=ce,de&&(re+=ce),le=de=!1)}function nt(Lt){Lt&&(We(),re+=Lt)}function Ft(Lt){if(Lt.nodeType==1){var cn=Lt.getAttribute("cm-text");if(cn){nt(cn);return}var Pn=Lt.getAttribute("cm-marker"),Ln;if(Pn){var Hn=a.findMarks(we(b,0),we(E+1,0),ge(+Pn));Hn.length&&(Ln=Hn[0].find(0))&&nt(Ut(a.doc,Ln.from,Ln.to).join(ce));return}if(Lt.getAttribute("contenteditable")=="false")return;var Vn=/^(pre|div|p|li|table|br)$/i.test(Lt.nodeName);if(!/^br$/i.test(Lt.nodeName)&&Lt.textContent.length==0)return;Vn&&We();for(var $n=0;$n<Lt.childNodes.length;$n++)Ft(Lt.childNodes[$n]);/^(pre|p)$/i.test(Lt.nodeName)&&(de=!0),Vn&&(le=!0)}else Lt.nodeType==3&&nt(Lt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ft(y),y!=x;)y=y.nextSibling,de=!1;return re}function ja(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Zo(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 re=a.display.view[E];if(re.node==b)return Xu(re,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!Ue(b,y))return Zo(we(Be(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var re=a.rest?Ae(a.rest):a.line;return Zo(we(Be(re),re.text.length),E)}var le=y.nodeType==3?y:null,ce=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ce.parentNode!=b;)ce=ce.parentNode;var de=a.measure,ge=de.maps;function We(Ln,Hn,Vn){for(var $n=-1;$n<(ge?ge.length:0);$n++)for(var Kn=$n<0?de.map:ge[$n],sr=0;sr<Kn.length;sr+=3){var nr=Kn[sr+2];if(nr==Ln||nr==Hn){var wr=Be($n<0?a.line:a.rest[$n]),_r=Kn[sr]+Vn;return(Vn<0||nr!=Ln)&&(_r=Kn[sr+(Vn?1:0)]),we(wr,_r)}}}var nt=We(le,ce,x);if(nt)return Zo(nt,E);for(var Ft=ce.nextSibling,Lt=le?le.nodeValue.length-x:0;Ft;Ft=Ft.nextSibling){if(nt=We(Ft,Ft.firstChild,0),nt)return Zo(we(nt.line,nt.ch-Lt),E);Lt+=Ft.textContent.length}for(var cn=ce.previousSibling,Pn=x;cn;cn=cn.previousSibling){if(nt=We(cn,cn.firstChild,-1),nt)return Zo(we(nt.line,nt.ch+Pn),E);Pn+=cn.textContent.length}}var Qr=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null};Qr.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),Ke&&(E.style.width="0px"),Ht(E,"input",function(){Se&&Ee>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Ht(E,"paste",function(le){Ct(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!Ct(b,le)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=Ls(b);Wa({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,me):(x.prevInput="",E.value=ce.text.join(`
|
|
|
`),Oe(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Ht(E,"cut",re),Ht(E,"copy",re),Ht(a.scroller,"paste",function(le){if(!(ui(a,le)||Ct(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ce=new Event("paste");ce.clipboardData=le.clipboardData,E.dispatchEvent(ce)}}),Ht(a.lineSpace,"selectstart",function(le){ui(a,le)||tt(le)}),Ht(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Ht(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Qr.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Qr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Qr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=Ci(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},Qr.prototype.showSelection=function(a){var y=this.cm,x=y.display;et(x.cursorDiv,a.cursors),et(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Qr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Oe(this.textarea),Se&&Ee>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Se&&Ee>=9&&(this.hasSelection=null))}},Qr.prototype.getField=function(){return this.textarea},Qr.prototype.supportsTouch=function(){return!1},Qr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ge||He()!=this.textarea))try{this.textarea.focus()}catch(a){}},Qr.prototype.blur=function(){this.textarea.blur()},Qr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qr.prototype.receivedFocus=function(){this.slowPoll()},Qr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Qr.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Qr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||bn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(Se&&Ee>=9&&this.hasSelection===E||ze&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,E.length);le<ce&&b.charCodeAt(le)==E.charCodeAt(le);)++le;return Ti(y,function(){vl(y,E.slice(le),b.length-le,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
|
|
|
`)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qr.prototype.onKeyPress=function(){Se&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},Qr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=So(x,a),le=b.scroller.scrollTop;if(!re||he)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(re)==-1&&oi(x,hi)(x.doc,po(re),me);var de=E.style.cssText,ge=y.wrapper.style.cssText,We=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-We.top-5)+"px; left: "+(a.clientX-We.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nt;Le&&(nt=window.scrollY),b.input.focus(),Le&&window.scrollTo(null,nt),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Lt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ft(){if(E.selectionStart!=null){var Pn=x.somethingSelected(),Ln="\u200B"+(Pn?E.value:"");E.value="\u21DA",E.value=Ln,y.prevInput=Pn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Ln.length,b.selForContextMenu=x.doc.sel}}function Lt(){if(y.contextMenuPending==Lt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ge,E.style.cssText=de,Se&&Ee<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!Se||Se&&Ee<9)&&Ft();var Pn=0,Ln=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):Pn++<10?b.detectingSelectAll=setTimeout(Ln,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Ln,200)}}if(Se&&Ee>=9&&Ft(),lt){ke(a);var cn=function(){Qt(window,"mouseup",cn),setTimeout(Lt,20)};Ht(window,"mouseup",cn)}else setTimeout(Lt,50)},Qr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Qr.prototype.setUneditable=function(){},Qr.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Ot(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=He();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var E;if(a.form&&(Ht(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;E=re.submit;try{var le=re.submit=function(){b(),re.submit=E,re.submit(),re.submit=le}}catch(de){}}y.finishInit=function(de){de.save=b,de.getTextArea=function(){return a},de.toTextArea=function(){de.toTextArea=isNaN,b(),a.parentNode.removeChild(de.getWrapperElement()),a.style.display="",a.form&&(Qt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=Gr(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ce}function Qu(a){a.off=Qt,a.on=Ht,a.wheelEventPixels=iu,a.Doc=wi,a.splitLines=rn,a.countColumn=ye,a.findColumn=Nt,a.isWordChar=oe,a.Pass=bt,a.signal=nn,a.Line=Or,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=we,a.cmpPos=Fe,a.modes=Dt,a.mimeModes=pt,a.resolveMode=Jt,a.getMode=vn,a.modeExtensions=wn,a.extendMode=Sn,a.copyState=On,a.startState=jn,a.innerMode=Mn,a.commands=ha,a.keyMap=io,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=ku,a.StringStream=An,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=tt,a.e_stopPropagation=Tt,a.e_stop=ke,a.addClass=ue,a.contains=Ue,a.rmClass=Ze,a.keyNames=yo}ju(Gr),Gu(Gr);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var _a in wi.prototype)wi.prototype.hasOwnProperty(_a)&&dt(Ju,_a)<0&&(Gr.prototype[_a]=function(a){return function(){return a.apply(this.doc,arguments)}}(wi.prototype[_a]));return De(wi),Gr.inputStyles={textarea:Qr,contenteditable:$r},Gr.defineMode=function(a){!Gr.defaults.mode&&a!="null"&&(Gr.defaults.mode=a),en.apply(this,arguments)},Gr.defineMIME=Yt,Gr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Gr.defineMIME("text/plain","null"),Gr.defineExtension=function(a,y){Gr.prototype[a]=y},Gr.defineDocExtension=function(a,y){wi.prototype[a]=y},Gr.fromTextArea=Yu,Qu(Gr),Gr.version="5.58.2",Gr})},25419:function(ln,Vt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(it,ve){var Qe=z.getMode(it,"text/html"),Se=Qe.name=="null";function Ee(ye){if(z.findModeByName){var fe=z.findModeByName(ye);fe&&(ye=fe.mime||fe.mimes[0])}var dt=z.getMode(it,ye);return dt.name=="null"?null:dt}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 Le={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 Xe in Le)Le.hasOwnProperty(Xe)&&ve.tokenTypeOverrides[Xe]&&(Le[Xe]=ve.tokenTypeOverrides[Xe]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ye=/^\[(x| )\](?=\s)/i,Ce=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,St=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ke=/^[^#!\[\]*_\\<>` "'(~:]+/,Ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ge=/^\s*\[[^\]]+?\]:.*$/,ze=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,ft=" ";function wt(ye,fe,dt){return fe.f=fe.inline=dt,dt(ye,fe)}function At(ye,fe,dt){return fe.f=fe.block=dt,dt(ye,fe)}function ht(ye){return!ye||!/\S/.test(ye.string)}function lt(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Ze){var fe=Se;if(!fe){var dt=z.innerMode(Qe,ye.htmlState);fe=dt.mode.name=="xml"&&dt.state.tagStart===null&&!dt.state.context&&dt.state.tokenize.isInText}fe&&(ye.f=vt,ye.block=ot,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function ot(ye,fe){var dt=ye.column()===fe.indentation,Zt=ht(fe.prevLine.stream),bt=fe.indentedCode,me=fe.prevLine.hr,Te=fe.list!==!1,_e=(fe.listStack[fe.listStack.length-1]||0)+3;fe.indentedCode=!1;var Nt=fe.indentation;if(fe.indentationDiff===null&&(fe.indentationDiff=fe.indentation,Te)){for(fe.list=null;Nt<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=Nt-fe.listStack[fe.listStack.length-1])}var xt=!Zt&&!me&&!fe.prevLine.header&&(!Te||!bt)&&!fe.prevLine.fencedCodeEnd,zt=(fe.list===!1||me||Zt)&&fe.indentation<=_e&&ye.match(Ie),Ae=null;if(fe.indentationDiff>=4&&(bt||fe.prevLine.fencedCodeEnd||fe.prevLine.header||Zt))return ye.skipToEnd(),fe.indentedCode=!0,Le.code;if(ye.eatSpace())return null;if(dt&&fe.indentation<=_e&&(Ae=ye.match(Ce))&&Ae[1].length<=6)return fe.quote=0,fe.header=Ae[1].length,fe.thisLine.header=!0,ve.highlightFormatting&&(fe.formatting="header"),fe.f=fe.inline,et(fe);if(fe.indentation<=_e&&ye.eat(">"))return fe.quote=dt?1:fe.quote+1,ve.highlightFormatting&&(fe.formatting="quote"),ye.eatSpace(),et(fe);if(!zt&&!fe.setext&&dt&&fe.indentation<=_e&&(Ae=ye.match(he))){var $t=Ae[1]?"ol":"ul";return fe.indentation=Nt+ye.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&&ye.match(Ye,!1)&&(fe.taskList=!0),fe.f=fe.inline,ve.highlightFormatting&&(fe.formatting=["list","list-"+$t]),et(fe)}else{if(dt&&fe.indentation<=_e&&(Ae=ye.match(Ne,!0)))return fe.quote=0,fe.fencedEndRE=new RegExp(Ae[1]+"+ *$"),fe.localMode=ve.fencedCodeBlockHighlighting&&Ee(Ae[2]||ve.fencedCodeBlockDefaultMode),fe.localMode&&(fe.localState=z.startState(fe.localMode)),fe.f=fe.block=It,ve.highlightFormatting&&(fe.formatting="code-block"),fe.code=-1,et(fe);if(fe.setext||(!xt||!Te)&&!fe.quote&&fe.list===!1&&!fe.code&&!zt&&!Ge.test(ye.string)&&(Ae=ye.lookAhead(1))&&(Ae=Ae.match(St)))return fe.setext?(fe.header=fe.setext,fe.setext=0,ye.skipToEnd(),ve.highlightFormatting&&(fe.formatting="header")):(fe.header=Ae[0].charAt(0)=="="?1:2,fe.setext=fe.header),fe.thisLine.header=!0,fe.f=fe.inline,et(fe);if(zt)return ye.skipToEnd(),fe.hr=!0,fe.thisLine.hr=!0,Le.hr;if(ye.peek()==="[")return wt(ye,fe,ut)}return wt(ye,fe,fe.inline)}function Ze(ye,fe){var dt=Qe.token(ye,fe.htmlState);if(!Se){var Zt=z.innerMode(Qe,fe.htmlState);(Zt.mode.name=="xml"&&Zt.state.tagStart===null&&!Zt.state.context&&Zt.state.tokenize.isInText||fe.md_inside&&ye.current().indexOf(">")>-1)&&(fe.f=vt,fe.block=ot,fe.htmlState=null)}return dt}function It(ye,fe){var dt=fe.listStack[fe.listStack.length-1]||0,Zt=fe.indentation<dt,bt=dt+3;if(fe.fencedEndRE&&fe.indentation<=bt&&(Zt||ye.match(fe.fencedEndRE))){ve.highlightFormatting&&(fe.formatting="code-block");var me;return Zt||(me=et(fe)),fe.localMode=fe.localState=null,fe.block=ot,fe.f=vt,fe.fencedEndRE=null,fe.code=0,fe.thisLine.fencedCodeEnd=!0,Zt?At(ye,fe,fe.block):me}else return fe.localMode?fe.localMode.token(ye,fe.localState):(ye.skipToEnd(),Le.code)}function et(ye){var fe=[];if(ye.formatting){fe.push(Le.formatting),typeof ye.formatting=="string"&&(ye.formatting=[ye.formatting]);for(var dt=0;dt<ye.formatting.length;dt++)fe.push(Le.formatting+"-"+ye.formatting[dt]),ye.formatting[dt]==="header"&&fe.push(Le.formatting+"-"+ye.formatting[dt]+"-"+ye.header),ye.formatting[dt]==="quote"&&(!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=ye.quote?fe.push(Le.formatting+"-"+ye.formatting[dt]+"-"+ye.quote):fe.push("error"))}if(ye.taskOpen)return fe.push("meta"),fe.length?fe.join(" "):null;if(ye.taskClosed)return fe.push("property"),fe.length?fe.join(" "):null;if(ye.linkHref?fe.push(Le.linkHref,"url"):(ye.strong&&fe.push(Le.strong),ye.em&&fe.push(Le.em),ye.strikethrough&&fe.push(Le.strikethrough),ye.emoji&&fe.push(Le.emoji),ye.linkText&&fe.push(Le.linkText),ye.code&&fe.push(Le.code),ye.image&&fe.push(Le.image),ye.imageAltText&&fe.push(Le.imageAltText,"link"),ye.imageMarker&&fe.push(Le.imageMarker)),ye.header&&fe.push(Le.header,Le.header+"-"+ye.header),ye.quote&&(fe.push(Le.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=ye.quote?fe.push(Le.quote+"-"+ye.quote):fe.push(Le.quote+"-"+ve.maxBlockquoteDepth)),ye.list!==!1){var Zt=(ye.listStack.length-1)%3;Zt?Zt===1?fe.push(Le.list2):fe.push(Le.list3):fe.push(Le.list1)}return ye.trailingSpaceNewLine?fe.push("trailing-space-new-line"):ye.trailingSpace&&fe.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),fe.length?fe.join(" "):null}function qe(ye,fe){if(ye.match(Ke,!0))return et(fe)}function vt(ye,fe){var dt=fe.text(ye,fe);if(typeof dt!="undefined")return dt;if(fe.list)return fe.list=null,et(fe);if(fe.taskList){var Zt=ye.match(Ye,!0)[1]===" ";return Zt?fe.taskOpen=!0:fe.taskClosed=!0,ve.highlightFormatting&&(fe.formatting="task"),fe.taskList=!1,et(fe)}if(fe.taskOpen=!1,fe.taskClosed=!1,fe.header&&ye.match(/^#+$/,!0))return ve.highlightFormatting&&(fe.formatting="header"),et(fe);var bt=ye.next();if(fe.linkTitle){fe.linkTitle=!1;var me=bt;bt==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Te="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(ye.match(new RegExp(Te),!0))return Le.linkHref}if(bt==="`"){var _e=fe.formatting;ve.highlightFormatting&&(fe.formatting="code"),ye.eatWhile("`");var Nt=ye.current().length;if(fe.code==0&&(!fe.quote||Nt==1))return fe.code=Nt,et(fe);if(Nt==fe.code){var xt=et(fe);return fe.code=0,xt}else return fe.formatting=_e,et(fe)}else if(fe.code)return et(fe);if(bt==="\\"&&(ye.next(),ve.highlightFormatting)){var zt=et(fe),Ae=Le.formatting+"-escape";return zt?zt+" "+Ae:Ae}if(bt==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return fe.imageMarker=!0,fe.image=!0,ve.highlightFormatting&&(fe.formatting="image"),et(fe);if(bt==="["&&fe.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return fe.imageMarker=!1,fe.imageAltText=!0,ve.highlightFormatting&&(fe.formatting="image"),et(fe);if(bt==="]"&&fe.imageAltText){ve.highlightFormatting&&(fe.formatting="image");var zt=et(fe);return fe.imageAltText=!1,fe.image=!1,fe.inline=fe.f=Ue,zt}if(bt==="["&&!fe.image)return fe.linkText&&ye.match(/^.*?\]/)||(fe.linkText=!0,ve.highlightFormatting&&(fe.formatting="link")),et(fe);if(bt==="]"&&fe.linkText){ve.highlightFormatting&&(fe.formatting="link");var zt=et(fe);return fe.linkText=!1,fe.inline=fe.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?Ue:vt,zt}if(bt==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Me,ve.highlightFormatting&&(fe.formatting="link");var zt=et(fe);return zt?zt+=" ":zt="",zt+Le.linkInline}if(bt==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Me,ve.highlightFormatting&&(fe.formatting="link");var zt=et(fe);return zt?zt+=" ":zt="",zt+Le.linkEmail}if(ve.xml&&bt==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $t=ye.string.indexOf(">",ye.pos);if($t!=-1){var ct=ye.string.substring(ye.start,$t);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ct)&&(fe.md_inside=!0)}return ye.backUp(1),fe.htmlState=z.startState(Qe),At(ye,fe,Ze)}if(ve.xml&&bt==="<"&&ye.match(/^\/\w*?>/))return fe.md_inside=!1,"tag";if(bt==="*"||bt==="_"){for(var ae=1,te=ye.pos==1?" ":ye.string.charAt(ye.pos-2);ae<3&&ye.eat(bt);)ae++;var ee=ye.peek()||" ",oe=!/\s/.test(ee)&&(!ze.test(ee)||/\s/.test(te)||ze.test(te)),se=!/\s/.test(te)&&(!ze.test(te)||/\s/.test(ee)||ze.test(ee)),ne=null,pe=null;if(ae%2&&(!fe.em&&oe&&(bt==="*"||!se||ze.test(te))?ne=!0:fe.em==bt&&se&&(bt==="*"||!oe||ze.test(ee))&&(ne=!1)),ae>1&&(!fe.strong&&oe&&(bt==="*"||!se||ze.test(te))?pe=!0:fe.strong==bt&&se&&(bt==="*"||!oe||ze.test(ee))&&(pe=!1)),pe!=null||ne!=null){ve.highlightFormatting&&(fe.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(fe.em=bt),pe===!0&&(fe.strong=bt);var xt=et(fe);return ne===!1&&(fe.em=!1),pe===!1&&(fe.strong=!1),xt}}else if(bt===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return et(fe);ye.backUp(1)}if(ve.strikethrough){if(bt==="~"&&ye.eatWhile(bt)){if(fe.strikethrough){ve.highlightFormatting&&(fe.formatting="strikethrough");var xt=et(fe);return fe.strikethrough=!1,xt}else if(ye.match(/^[^\s]/,!1))return fe.strikethrough=!0,ve.highlightFormatting&&(fe.formatting="strikethrough"),et(fe)}else if(bt===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return et(fe);ye.backUp(2)}}if(ve.emoji&&bt===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){fe.emoji=!0,ve.highlightFormatting&&(fe.formatting="emoji");var xe=et(fe);return fe.emoji=!1,xe}return bt===" "&&(ye.match(/^ +$/,!1)?fe.trailingSpace++:fe.trailingSpace&&(fe.trailingSpaceNewLine=!0)),et(fe)}function Me(ye,fe){var dt=ye.next();if(dt===">"){fe.f=fe.inline=vt,ve.highlightFormatting&&(fe.formatting="link");var Zt=et(fe);return Zt?Zt+=" ":Zt="",Zt+Le.linkInline}return ye.match(/^[^>]+/,!0),Le.linkInline}function Ue(ye,fe){if(ye.eatSpace())return null;var dt=ye.next();return dt==="("||dt==="["?(fe.f=fe.inline=ue(dt==="("?")":"]"),ve.highlightFormatting&&(fe.formatting="link-string"),fe.linkHref=!0,et(fe)):"error"}var He={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(ye){return function(fe,dt){var Zt=fe.next();if(Zt===ye){dt.f=dt.inline=vt,ve.highlightFormatting&&(dt.formatting="link-string");var bt=et(dt);return dt.linkHref=!1,bt}return fe.match(He[ye]),dt.linkHref=!0,et(dt)}}function ut(ye,fe){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(fe.f=Oe,ye.next(),ve.highlightFormatting&&(fe.formatting="link"),fe.linkText=!0,et(fe)):wt(ye,fe,vt)}function Oe(ye,fe){if(ye.match(/^\]:/,!0)){fe.f=fe.inline=Je,ve.highlightFormatting&&(fe.formatting="link");var dt=et(fe);return fe.linkText=!1,dt}return ye.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function Je(ye,fe){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?fe.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),fe.f=fe.inline=vt,Le.linkHref+" url")}var Ot={startState:function(){return{f:ot,prevLine:{stream:null},thisLine:{stream:null},block:ot,htmlState:null,indentation:0,inline:vt,text:qe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&z.copyState(Qe,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?z.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,fe){if(fe.formatting=!1,ye!=fe.thisLine.stream){if(fe.header=0,fe.hr=!1,ye.match(/^\s*$/,!0))return lt(fe),null;if(fe.prevLine=fe.thisLine,fe.thisLine={stream:ye},fe.taskList=!1,fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,!fe.localState&&(fe.f=fe.block,fe.f!=Ze)){var dt=ye.match(/^\s*/,!0)[0].replace(/\t/g,ft).length;if(fe.indentation=dt,fe.indentationDiff=null,dt>0)return null}}return fe.f(ye,fe)},innerMode:function(ye){return ye.block==Ze?{state:ye.htmlState,mode:Qe}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:Ot}},indent:function(ye,fe,dt){return ye.block==Ze&&Qe.indent?Qe.indent(ye.htmlState,fe,dt):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,fe,dt):z.Pass},blankLine:lt,getType:et,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ot},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(ln,Vt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var it=0;it<z.modeInfo.length;it++){var ve=z.modeInfo[it];ve.mimes&&(ve.mime=ve.mimes[0])}z.findModeByMIME=function(Qe){Qe=Qe.toLowerCase();for(var Se=0;Se<z.modeInfo.length;Se++){var Ee=z.modeInfo[Se];if(Ee.mime==Qe)return Ee;if(Ee.mimes){for(var Le=0;Le<Ee.mimes.length;Le++)if(Ee.mimes[Le]==Qe)return Ee}}if(/\+xml$/.test(Qe))return z.findModeByMIME("application/xml");if(/\+json$/.test(Qe))return z.findModeByMIME("application/json")},z.findModeByExtension=function(Qe){Qe=Qe.toLowerCase();for(var Se=0;Se<z.modeInfo.length;Se++){var Ee=z.modeInfo[Se];if(Ee.ext){for(var Le=0;Le<Ee.ext.length;Le++)if(Ee.ext[Le]==Qe)return Ee}}},z.findModeByFileName=function(Qe){for(var Se=0;Se<z.modeInfo.length;Se++){var Ee=z.modeInfo[Se];if(Ee.file&&Ee.file.test(Qe))return Ee}var Le=Qe.lastIndexOf("."),Xe=Le>-1&&Qe.substring(Le+1,Qe.length);if(Xe)return z.findModeByExtension(Xe)},z.findModeByName=function(Qe){Qe=Qe.toLowerCase();for(var Se=0;Se<z.modeInfo.length;Se++){var Ee=z.modeInfo[Se];if(Ee.name.toLowerCase()==Qe)return Ee;if(Ee.alias){for(var Le=0;Le<Ee.alias.length;Le++)if(Ee.alias[Le].toLowerCase()==Qe)return Ee}}}})},67549:function(ln,Vt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.defineMode("stex",function(it,ve){"use strict";function Qe(Ke,Ne){Ke.cmdState.push(Ne)}function Se(Ke){return Ke.cmdState.length>0?Ke.cmdState[Ke.cmdState.length-1]:null}function Ee(Ke){var Ne=Ke.cmdState.pop();Ne&&Ne.closeBracket()}function Le(Ke){for(var Ne=Ke.cmdState,Ge=Ne.length-1;Ge>=0;Ge--){var ze=Ne[Ge];if(ze.name!="DEFAULT")return ze}return{styleIdentifier:function(){return null}}}function Xe(Ke,Ne,Ge){return function(){this.name=Ke,this.bracketNo=0,this.style=Ne,this.styles=Ge,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=Xe("importmodule","tag",["string","builtin"]),Ie.documentclass=Xe("documentclass","tag",["","atom"]),Ie.usepackage=Xe("usepackage","tag",["atom"]),Ie.begin=Xe("begin","tag",["atom"]),Ie.end=Xe("end","tag",["atom"]),Ie.label=Xe("label","tag",["atom"]),Ie.ref=Xe("ref","tag",["atom"]),Ie.eqref=Xe("eqref","tag",["atom"]),Ie.cite=Xe("cite","tag",["atom"]),Ie.bibitem=Xe("bibitem","tag",["atom"]),Ie.Bibitem=Xe("Bibitem","tag",["atom"]),Ie.RBibitem=Xe("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Ke,Ne){Ke.f=Ne}function Ye(Ke,Ne){var Ge;if(Ke.match(/^\\[a-zA-Z@]+/)){var ze=Ke.current().slice(1);return Ge=Ie.hasOwnProperty(ze)?Ie[ze]:Ie.DEFAULT,Ge=new Ge,Qe(Ne,Ge),he(Ne,St),Ge.style}if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/\\]/))return"tag";if(Ke.match("\\["))return he(Ne,function(wt,At){return Ce(wt,At,"\\]")}),"keyword";if(Ke.match("\\("))return he(Ne,function(wt,At){return Ce(wt,At,"\\)")}),"keyword";if(Ke.match("$$"))return he(Ne,function(wt,At){return Ce(wt,At,"$$")}),"keyword";if(Ke.match("$"))return he(Ne,function(wt,At){return Ce(wt,At,"$")}),"keyword";var ft=Ke.next();if(ft=="%")return Ke.skipToEnd(),"comment";if(ft=="}"||ft=="]"){if(Ge=Se(Ne),Ge)Ge.closeBracket(ft),he(Ne,St);else return"error";return"bracket"}else return ft=="{"||ft=="["?(Ge=Ie.DEFAULT,Ge=new Ge,Qe(Ne,Ge),"bracket"):/\d/.test(ft)?(Ke.eatWhile(/[\w.%]/),"atom"):(Ke.eatWhile(/[\w\-_]/),Ge=Le(Ne),Ge.name=="begin"&&(Ge.argument=Ke.current()),Ge.styleIdentifier())}function Ce(Ke,Ne,Ge){if(Ke.eatSpace())return null;if(Ge&&Ke.match(Ge))return he(Ne,Ye),"keyword";if(Ke.match(/^\\[a-zA-Z@]+/))return"tag";if(Ke.match(/^[a-zA-Z]+/))return"variable-2";if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/]/)||Ke.match(/^[\^_&]/))return"tag";if(Ke.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ke.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ze=Ke.next();return ze=="{"||ze=="}"||ze=="["||ze=="]"||ze=="("||ze==")"?"bracket":ze=="%"?(Ke.skipToEnd(),"comment"):"error"}function St(Ke,Ne){var Ge=Ke.peek(),ze;return Ge=="{"||Ge=="["?(ze=Se(Ne),ze.openBracket(Ge),Ke.eat(Ge),he(Ne,Ye),"bracket"):/[ \t\r]/.test(Ge)?(Ke.eat(Ge),null):(he(Ne,Ye),Ee(Ne),Ye(Ke,Ne))}return{startState:function(){var Ke=ve.inMathMode?function(Ne,Ge){return Ce(Ne,Ge)}:Ye;return{cmdState:[],f:Ke}},copyState:function(Ke){return{cmdState:Ke.cmdState.slice(),f:Ke.f}},token:function(Ke,Ne){return Ne.f(Ke,Ne)},blankLine:function(Ke){Ke.f=Ye,Ke.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(ln,Vt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var it={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Qe,Se){var Ee=Qe.indentUnit,Le={},Xe=Se.htmlMode?it:ve;for(var Ie in Xe)Le[Ie]=Xe[Ie];for(var Ie in Se)Le[Ie]=Se[Ie];var he,Ye;function Ce(Me,Ue){function He(Oe){return Ue.tokenize=Oe,Oe(Me,Ue)}var ue=Me.next();if(ue=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?He(Ne("atom","]]>")):null:Me.match("--")?He(Ne("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),He(Ge(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),Ue.tokenize=Ne("meta","?>"),"meta"):(he=Me.eat("/")?"closeTag":"openTag",Ue.tokenize=St,"tag bracket");if(ue=="&"){var ut;return Me.eat("#")?Me.eat("x")?ut=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):ut=Me.eatWhile(/[\d]/)&&Me.eat(";"):ut=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),ut?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Ce.isInText=!0;function St(Me,Ue){var He=Me.next();if(He==">"||He=="/"&&Me.eat(">"))return Ue.tokenize=Ce,he=He==">"?"endTag":"selfcloseTag","tag bracket";if(He=="=")return he="equals",null;if(He=="<"){Ue.tokenize=Ce,Ue.state=At,Ue.tagName=Ue.tagStart=null;var ue=Ue.tokenize(Me,Ue);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(He)?(Ue.tokenize=Ke(He),Ue.stringStartCol=Me.column(),Ue.tokenize(Me,Ue)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ke(Me){var Ue=function(He,ue){for(;!He.eol();)if(He.next()==Me){ue.tokenize=St;break}return"string"};return Ue.isInAttribute=!0,Ue}function Ne(Me,Ue){return function(He,ue){for(;!He.eol();){if(He.match(Ue)){ue.tokenize=Ce;break}He.next()}return Me}}function Ge(Me){return function(Ue,He){for(var ue;(ue=Ue.next())!=null;){if(ue=="<")return He.tokenize=Ge(Me+1),He.tokenize(Ue,He);if(ue==">")if(Me==1){He.tokenize=Ce;break}else return He.tokenize=Ge(Me-1),He.tokenize(Ue,He)}return"meta"}}function ze(Me,Ue,He){this.prev=Me.context,this.tagName=Ue,this.indent=Me.indented,this.startOfLine=He,(Le.doNotIndent.hasOwnProperty(Ue)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function ft(Me){Me.context&&(Me.context=Me.context.prev)}function wt(Me,Ue){for(var He;;){if(!Me.context||(He=Me.context.tagName,!Le.contextGrabbers.hasOwnProperty(He)||!Le.contextGrabbers[He].hasOwnProperty(Ue)))return;ft(Me)}}function At(Me,Ue,He){return Me=="openTag"?(He.tagStart=Ue.column(),ht):Me=="closeTag"?lt:At}function ht(Me,Ue,He){return Me=="word"?(He.tagName=Ue.current(),Ye="tag",It):Le.allowMissingTagName&&Me=="endTag"?(Ye="tag bracket",It(Me,Ue,He)):(Ye="error",ht)}function lt(Me,Ue,He){if(Me=="word"){var ue=Ue.current();return He.context&&He.context.tagName!=ue&&Le.implicitlyClosed.hasOwnProperty(He.context.tagName)&&ft(He),He.context&&He.context.tagName==ue||Le.matchClosing===!1?(Ye="tag",ot):(Ye="tag error",Ze)}else return Le.allowMissingTagName&&Me=="endTag"?(Ye="tag bracket",ot(Me,Ue,He)):(Ye="error",Ze)}function ot(Me,Ue,He){return Me!="endTag"?(Ye="error",ot):(ft(He),At)}function Ze(Me,Ue,He){return Ye="error",ot(Me,Ue,He)}function It(Me,Ue,He){if(Me=="word")return Ye="attribute",et;if(Me=="endTag"||Me=="selfcloseTag"){var ue=He.tagName,ut=He.tagStart;return He.tagName=He.tagStart=null,Me=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(ue)?wt(He,ue):(wt(He,ue),He.context=new ze(He,ue,ut==He.indented)),At}return Ye="error",It}function et(Me,Ue,He){return Me=="equals"?qe:(Le.allowMissing||(Ye="error"),It(Me,Ue,He))}function qe(Me,Ue,He){return Me=="string"?vt:Me=="word"&&Le.allowUnquoted?(Ye="string",It):(Ye="error",It(Me,Ue,He))}function vt(Me,Ue,He){return Me=="string"?vt:It(Me,Ue,He)}return{startState:function(Me){var Ue={tokenize:Ce,state:At,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(Ue.baseIndent=Me),Ue},token:function(Me,Ue){if(!Ue.tagName&&Me.sol()&&(Ue.indented=Me.indentation()),Me.eatSpace())return null;he=null;var He=Ue.tokenize(Me,Ue);return(He||he)&&He!="comment"&&(Ye=null,Ue.state=Ue.state(he||He,Me,Ue),Ye&&(He=Ye=="error"?He+" error":Ye)),He},indent:function(Me,Ue,He){var ue=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+Ee;if(ue&&ue.noIndent)return z.Pass;if(Me.tokenize!=St&&Me.tokenize!=Ce)return He?He.match(/^(\s*)/)[0].length:0;if(Me.tagName)return Le.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Ee*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/<!\[CDATA\[/.test(Ue))return 0;var ut=Ue&&/^<(\/)?([\w_:\.-]*)/.exec(Ue);if(ut&&ut[1])for(;ue;)if(ue.tagName==ut[2]){ue=ue.prev;break}else if(Le.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(ut)for(;ue;){var Oe=Le.contextGrabbers[ue.tagName];if(Oe&&Oe.hasOwnProperty(ut[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+Ee:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==qe&&(Me.state=It)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var Ue=[],He=Me.context;He;He=He.prev)He.tagName&&Ue.push(He.tagName);return Ue.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(ln,Vt,ie){"use strict";ie.d(Vt,{hP:function(){return ct}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function it(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ve(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function pe(Pe){try{st(oe.next(Pe))}catch(je){ne(je)}}function xe(Pe){try{st(oe.throw(Pe))}catch(je){ne(je)}}function st(Pe){var je;Pe.done?se(Pe.value):(je=Pe.value,je instanceof ee?je:new ee(function(rt){rt(je)})).then(pe,xe)}st((oe=oe.apply(ae,te||[])).next())})}function Qe(ae,te){var ee,oe,se,ne,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function xe(st){return function(Pe){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(ae,pe)}catch(rt){je=[6,rt],oe=0}finally{ee=se=0}if(5&je[0])throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}([st,Pe])}}}function Se(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),se=0;for(te=0;te<ee;te++)for(var ne=arguments[te],pe=0,xe=ne.length;pe<xe;pe++,se++)oe[se]=ne[pe];return oe}var Ee=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(te,ee){for(var oe=0,se=ee;oe<se.length;oe++){var ne=se[oe],pe=ne[0],xe=ne[1];te.setAttribute(pe,xe)}},ae.createRect=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",te.toString()),se.setAttribute("height",ee.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(te,ee,oe,se,ne){var pe=document.createElementNS("http://www.w3.org/2000/svg","line");return pe.setAttribute("x1",te.toString()),pe.setAttribute("y1",ee.toString()),pe.setAttribute("x2",oe.toString()),pe.setAttribute("y2",se.toString()),ne&&ae.setAttributes(pe,ne),pe},ae.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&ae.setAttributes(oe,ee),oe},ae.createCircle=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(te/2).toString()),oe.setAttribute("cy",(te/2).toString()),oe.setAttribute("r",te.toString()),ee&&ae.setAttributes(oe,ee),oe},ae.createEllipse=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(te/2).toString()),se.setAttribute("cy",(ee/2).toString()),se.setAttribute("rx",(te/2).toString()),se.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(se,oe),se},ae.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(ee,te),ee},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,ee,oe,se,ne,pe,xe){var st=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(st,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",pe.toString()]]),st.appendChild(xe),st},ae.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&ae.setAttributes(ee,te),ee},ae.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&ae.setAttributes(oe,ee),oe},ae.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(ee,te),ee},ae.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},ae.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&ae.setAttributes(oe,ee),oe},ae}(),Le=function(){function ae(){}return ae.addKey=function(te){ae.key=te},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),Xe=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var se=this;return new Promise(function(ne){var pe=oe!==void 0?oe:document.createElement("canvas");te===null&&(se.markersOnly=!0,se.naturalSize=!1);var xe=document.createElementNS("http://www.w3.org/2000/svg","svg");xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),xe.setAttribute("width",ee.width.baseVal.valueAsString),xe.setAttribute("height",ee.height.baseVal.valueAsString),xe.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),xe.innerHTML=ee.innerHTML,se.naturalSize===!0?(xe.width.baseVal.value=te.naturalWidth,xe.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(xe.width.baseVal.value=se.width,xe.height.baseVal.value=se.height),pe.width=xe.width.baseVal.value,pe.height=xe.height.baseVal.value;var st=xe.outerHTML,Pe=pe.getContext("2d");se.markersOnly!==!0&&Pe.drawImage(te,0,0,pe.width,pe.height);var je=window.URL,rt=new Image(pe.width,pe.height);rt.setAttribute("crossOrigin","anonymous");var yt=new Blob([st],{type:"image/svg+xml"}),gt=je.createObjectURL(yt);rt.onload=function(){Pe.drawImage(rt,0,0),je.revokeObjectURL(gt);var Kt=pe.toDataURL(se.imageType,se.imageQuality);ne(Kt)},rt.src=gt})},ae}(),Ie=function(){},he=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},ae.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new Ye("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ye("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Ye("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ce("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ce("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),Ye=function(ae,te){this.selector=ae,this.style=te},Ce=function(ae,te){this.localName=ae,this.style=te},St=function(){function ae(te,ee,oe,se,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=se,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(te){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var pe=document.createElement("div");pe.className=""+ee.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",ne.typeName),pe.innerHTML=ne.icon,pe.addEventListener("click",function(){ee.markerToolbarButtonClicked(pe,ne)}),ee.buttons.push(pe),ee.markerButtons.push(pe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee<this.markerButtons.length;ee++)ee<te||ee===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(te,ee,oe){var se=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=ee,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){se.actionToolbarButtonClicked(ne,oe)}),oe){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ce("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 Ce("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ce("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ce("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 Ce("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ce("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 Ce("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ce("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Ye("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Ye("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ae.prototype.markerToolbarButtonClicked=function(te,ee){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),Ke=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Ce("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 Ce("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ce("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ce("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ce("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 Ce("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ce("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 Ce("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ce("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Ye("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Ye("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var pe;ne.uiStyleSettings=se.uiStyleSettings;var xe=document.createElement("div");xe.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),xe.innerHTML=ne.icon,xe.title=ne.title,xe.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(xe),se.buttonRow.appendChild(xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,pe){var xe,st;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((xe=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&xe!==void 0?xe:ee.toolboxActiveButtonStyleColorsClass.name):""+((st=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&st!==void 0?st:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Ne=function(ae,te){this.title=ae,this.icon=te},Ge=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return pe.colors=[],pe.addTransparent=!1,pe.colorBoxes=[],pe.colors=oe,pe.currentColor=se,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=ee.getColorBox(se);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=ne-2+"px",pe.style.height=ne-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(ne+2)/2+"px",pe.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(ee,pe)});var xe=document.createElement("div");return xe.style.display="inline-block",xe.style.width=ne-2+"px",xe.style.height=ne-2+"px",xe.style.backgroundColor=ee,xe.style.borderRadius=ne/2+"px",ee==="transparent"&&(xe.style.fill=this.uiStyleSettings.toolboxAccentColor,xe.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),pe.appendChild(xe),pe},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Ne),ze=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),ft=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),wt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),At=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),ht=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Ee.createTransform()),ne.setupControlBox(),ne}return it(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Ee.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,pe=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),pe>=0?(this.top=ne,this.height=pe):(this.top=ne+pe,this.height=-pe),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Ee.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=Ee.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var ee=Ee.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Ee.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=Ee.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new ft,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new wt;return ee.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,xe=this.height+this.CB_DISTANCE-ee/2,st=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,st,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,st,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,xe),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,xe),this.positionGrip(this.controlGrips.bottomRight.visual,st,xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:At.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:At.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(At.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(At.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(ze),lt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ee.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(ht),ot=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return pe.widths=[],pe.widthBoxes=[],pe.widths=oe,pe.currentWidth=se,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",ne.appendChild(pe);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.display="flex",xe.style.alignItems="center";var st=document.createElement("hr");st.style.minWidth="20px",st.style.border="0px",st.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,st.style.flexGrow="2",xe.appendChild(st),ne.appendChild(xe),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Ne),Ze=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return pe.styles=[],pe.styleBoxes=[],pe.styles=oe,pe.currentStyle=se,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var xe=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
|
|
|
</svg>`;pe.innerHTML=xe,ne.appendChild(pe),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Ne),It=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(lt),et=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"},qe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ee.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 wt;return ee.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(ze),vt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(qe),Me=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M17 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 it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var xe=document.createElement("div");xe.style.whiteSpace="nowrap",xe.style.overflow="hidden",xe.style.textOverflow="ellipsis",xe.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(xe),ne.appendChild(pe),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Ne),Ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ge("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(Ee.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:se,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*ee,y:se.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Ee.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&&Ee.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',te}(ht),He=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ge("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var ee=Ee.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],ne=oe[1],pe=oe[2],xe=oe[3],st=!1,Pe=0;Pe<this.canvasElement.height;Pe++)for(var je=0;je<this.canvasElement.width;je++)ee.data[Pe*this.canvasElement.width*4+4*je+3]>0&&(st=!0,Pe<ne&&(ne=Pe),je<se&&(se=je),Pe>xe&&(xe=Pe),je>pe&&(pe=je));if(st){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(xe-ne)/this.pixelRatio;var rt=document.createElement("canvas");rt.width=pe-se,rt.height=xe-ne,rt.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,pe-se,xe-ne),0,0),this.drawingImgUrl=rt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',te}(ht),ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(xe){var st="both";switch(xe){case 0:st="both";break;case 1:st="start";break;case 2:st="end";break;case 3:st="none"}var Pe=document.createElement("div");if(Pe.style.display="flex",Pe.style.flexGrow="2",Pe.style.alignItems="center",Pe.style.justifyContent="space-between",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.borderColor=st===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){ee.setCurrentType(st,Pe)}),oe.appendChild(Pe),st==="both"||st==="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="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,je.style.marginLeft="5px",Pe.appendChild(je)}var rt=document.createElement("div");rt.style.display="flex",rt.style.alignItems="center",rt.style.minHeight="20px",rt.style.flexGrow="2";var yt=document.createElement("hr");if(yt.style.minWidth="20px",yt.style.border="0px",yt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),yt.style.flexGrow="2",rt.appendChild(yt),Pe.appendChild(rt),st==="both"||st==="end"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,gt.style.marginRight="5px",Pe.appendChild(gt)}ne.typeBoxes.push(Pe)},ne=this,pe=0;pe<4;pe++)se(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Ne),ut=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ue("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+se/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(vt),Oe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ge("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return it(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(lt),Je=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return pe.opacities=[],pe.opacityBoxes=[],pe.opacities=oe,pe.currentOpacity=se,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=100*se+"%",ne.appendChild(pe),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Ne),Ot=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Ge("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Je("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return it(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',te}(Oe),ye='<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>',dt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ge("Text color",se.defaultColorSet,ne.color,ye),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ge("Fill color",se.defaultColorSet,ne.bgColor,fe),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new wt,ne.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",ee]]),Ee.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){Ee.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ee=this.tipGrip.visual.transform.baseVal.getItem(0);ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ee,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.tipPosition={x:this.tipPosition.x*ee,y:this.tipPosition.y*oe},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',te}(Ue),Zt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Ge("Line color",Se(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ge("Fill color",Se(se.defaultColorSet,["transparent"]),ne.fillColor,fe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new Je("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ee.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(ht),bt=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return it(te,ae),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ee.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()]]),Ee.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',te}(vt),me=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return it(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(Zt),Te=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),_e=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',te}(qe),Nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ge("Line color",Se(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ge("Fill color",Se(se.defaultColorSet,["transparent"]),ne.fillColor,fe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ge("Text color",se.defaultColorSet,ne.textColor,ye),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ee.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ee.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=Ee.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ee.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')"]]),Ee.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&&Ee.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&&Ee.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ee.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Ee.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',te}(ht),xt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),zt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return it(te,ae),te}(xt),Ae=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,ee,se)||this;return ne.marker=oe,ne}return it(te,ae),te}(xt),$t=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),ct=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new et,this._isOpen=!1,this.undoRedoManager=new Te,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 $t,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[It,He,ut,Ue,me,Zt,Ot,dt,bt,Oe,vt,_e,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[It,He,ut,Ue,Zt,Ot,dt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[It,He,ut,Ue,Ot]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new xt(te))})},ae.prototype.render=function(){return ve(this,void 0,void 0,function(){var te;return Qe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Xe).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var ne=new xt(ee,!0);se(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new xt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,se=ee/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ee),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,se=this;this._currentMarker&&this._currentMarker instanceof Ue?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==se._currentMarker&&ne.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=Ee.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new St(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 Ke(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Ae(te,te._currentMarker,!0);se(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new Ae(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var xe=new Ae(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(st){return st(new Ae(te,xe))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new xt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new xt(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new xt(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new xt(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return ve(this,void 0,void 0,function(){var te,ee,oe=this;return Qe(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return te=se.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new zt(oe,te,ee))}),this.close(!0),[2]}})})},ae.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return ee.markers.push(oe.getState())}),ee},ae.prototype.restoreState=function(te){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(oe){var se=ee._availableMarkerTypes.find(function(pe){return pe.typeName===oe.typeName});if(se!==void 0){var ne=ee.addNewMarker(se);ne.restoreState(oe),ee.markers.push(ne)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new xt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Ee.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(te){var ee,oe=this;(ee=typeof te=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new Ae(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof He&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(He):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new Ae(ee,ee._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new Ae(ee,te))})},ae.prototype.setCurrentMarker=function(te){var ee=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new Ae(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 Ae(ee,ee._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Le.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new xt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new xt(te))}))},ae.instanceCounter=0,ae}()},6551:function(ln,Vt,ie){"use strict";ie.d(Vt,{ZP:function(){return Le}});var z=ie(72190),it=ie(59301),ve=ie(47273),Qe=0,Se=(0,ve.Z)();function Ee(){var Xe;return Se?(Xe=Qe,Qe+=1):Xe="TEST_OR_SSR",Xe}function Le(Xe){var Ie=it.useState(),he=(0,z.Z)(Ie,2),Ye=he[0],Ce=he[1];return it.useEffect(function(){Ce("rc_select_".concat(Ee()))},[]),Xe||Ye}},37463:function(ln,Vt,ie){"use strict";ie.d(Vt,{Ac:function(){return Ct},Xo:function(){return Wt},Wx:function(){return tt},ZP:function(){return hn},lk:function(){return At}});var z=ie(60499),it=ie(77654),ve=ie(18642),Qe=ie(85899),Se=ie(72190),Ee=ie(42244),Le=ie(43749),Xe=ie(18929),Ie=ie(48736),he=ie(59301),Ye=ie(92310),Ce=ie.n(Ye),St=ie(34280),Ke=ie(49658),Ne=ie(8654),Ge=function(Ve){var be=Ve.className,Re=Ve.customizeIcon,we=Ve.customizeIconProps,Fe=Ve.children,mt=Ve.onMouseDown,on=Ve.onClick,un=typeof Re=="function"?Re(we):Re;return he.createElement("span",{className:be,onMouseDown:function(Xt){Xt.preventDefault(),mt==null||mt(Xt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},un!==void 0?un:he.createElement("span",{className:Ce()(be.split(/\s+/).map(function(gn){return"".concat(gn,"-icon")}))},Fe))},ze=Ge,ft=function(Ve,be,Re,we,Fe){var mt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,on=arguments.length>6?arguments[6]:void 0,un=arguments.length>7?arguments[7]:void 0,gn=he.useMemo(function(){if((0,Le.Z)(we)==="object")return we.clearIcon;if(Fe)return Fe},[we,Fe]),Xt=he.useMemo(function(){return!!(!mt&&we&&(Re.length||on)&&!(un==="combobox"&&on===""))},[we,mt,Re.length,on,un]);return{allowClear:Xt,clearIcon:he.createElement(ze,{className:"".concat(Ve,"-clear"),onMouseDown:be,customizeIcon:gn},"\xD7")}},wt=he.createContext(null);function At(){return he.useContext(wt)}function ht(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ve=he.useState(!1),be=(0,Se.Z)(Ve,2),Re=be[0],we=be[1],Fe=he.useRef(null),mt=function(){window.clearTimeout(Fe.current)};he.useEffect(function(){return mt},[]);var on=function(gn,Xt){mt(),Fe.current=window.setTimeout(function(){we(gn),Xt&&Xt()},Be)};return[Re,on,mt]}function lt(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ve=he.useRef(null),be=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(be.current)}},[]);function Re(we){(we||Ve.current===null)&&(Ve.current=we),window.clearTimeout(be.current),be.current=window.setTimeout(function(){Ve.current=null},Be)}return[function(){return Ve.current},Re]}function ot(Be,Ve,be,Re){var we=he.useRef(null);we.current={open:Ve,triggerOpen:be,customizedTrigger:Re},he.useEffect(function(){function Fe(mt){var on;if(!((on=we.current)!==null&&on!==void 0&&on.customizedTrigger)){var un=mt.target;un.shadowRoot&&mt.composed&&(un=mt.composedPath()[0]||un),we.current.open&&Be().filter(function(gn){return gn}).every(function(gn){return!gn.contains(un)&&gn!==un})&&we.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Fe),function(){return window.removeEventListener("mousedown",Fe)}},[])}var Ze=ie(10228);function It(Be){return Be&&![Ze.Z.ESC,Ze.Z.SHIFT,Ze.Z.BACKSPACE,Ze.Z.TAB,Ze.Z.WIN_KEY,Ze.Z.ALT,Ze.Z.META,Ze.Z.WIN_KEY_RIGHT,Ze.Z.CTRL,Ze.Z.SEMICOLON,Ze.Z.EQUALS,Ze.Z.CAPS_LOCK,Ze.Z.CONTEXT_MENU,Ze.Z.F1,Ze.Z.F2,Ze.Z.F3,Ze.Z.F4,Ze.Z.F5,Ze.Z.F6,Ze.Z.F7,Ze.Z.F8,Ze.Z.F9,Ze.Z.F10,Ze.Z.F11,Ze.Z.F12].includes(Be)}var et=ie(26112),qe=ie(83836);function vt(Be,Ve,be){var Re=(0,Qe.Z)((0,Qe.Z)({},Be),be?Ve:{});return Object.keys(Ve).forEach(function(we){var Fe=Ve[we];typeof Fe=="function"&&(Re[we]=function(){for(var mt,on=arguments.length,un=new Array(on),gn=0;gn<on;gn++)un[gn]=arguments[gn];return Fe.apply(void 0,un),(mt=Be[we])===null||mt===void 0?void 0:mt.call.apply(mt,[Be].concat(un))})}),Re}var Me=vt,Ue=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],He=function(Ve,be){var Re=Ve.prefixCls,we=Ve.id,Fe=Ve.inputElement,mt=Ve.autoFocus,on=Ve.autoComplete,un=Ve.editable,gn=Ve.activeDescendantId,Xt=Ve.value,Bt=Ve.open,Pt=Ve.attrs,fn=(0,Ee.Z)(Ve,Ue),Bn=Fe||he.createElement("input",null),Dn=Bn,Tn=Dn.ref,Xn=Dn.props;return(0,Ie.Kp)(!("maxLength"in Bn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Bn=he.cloneElement(Bn,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({type:"search"},Me(fn,Xn,!0)),{},{id:we,ref:(0,Ne.sQ)(be,Tn),autoComplete:on||"off",autoFocus:mt,className:Ce()("".concat(Re,"-selection-search-input"),Xn==null?void 0:Xn.className),role:"combobox","aria-expanded":Bt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(we,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(we,"_list"),"aria-activedescendant":Bt?gn:void 0},Pt),{},{value:un?Xt:"",readOnly:!un,unselectable:un?null:"on",style:(0,Qe.Z)((0,Qe.Z)({},Xn.style),{},{opacity:un?null:0})})),Bn},ue=he.forwardRef(He),ut=ue;function Oe(Be){return Array.isArray(Be)?Be:Be!==void 0?[Be]:[]}var Je=typeof window!="undefined"&&window.document&&window.document.documentElement,Ot=Je;function ye(Be){return Be!=null}function fe(Be){return!Be&&Be!==0}function dt(Be){return["string","number"].includes((0,Le.Z)(Be))}function Zt(Be){var Ve=void 0;return Be&&(dt(Be.title)?Ve=Be.title.toString():dt(Be.label)&&(Ve=Be.label.toString())),Ve}function bt(Be,Ve){Ot?he.useLayoutEffect(Be,Ve):he.useEffect(Be,Ve)}function me(Be){var Ve;return(Ve=Be.key)!==null&&Ve!==void 0?Ve:Be.value}var Te=function(Ve){Ve.preventDefault(),Ve.stopPropagation()},_e=function(Ve){var be=Ve.id,Re=Ve.prefixCls,we=Ve.values,Fe=Ve.open,mt=Ve.searchValue,on=Ve.autoClearSearchValue,un=Ve.inputRef,gn=Ve.placeholder,Xt=Ve.disabled,Bt=Ve.mode,Pt=Ve.showSearch,fn=Ve.autoFocus,Bn=Ve.autoComplete,Dn=Ve.activeDescendantId,Tn=Ve.tabIndex,Xn=Ve.removeIcon,Qn=Ve.maxTagCount,Jn=Ve.maxTagTextLength,Zn=Ve.maxTagPlaceholder,Fn=Zn===void 0?function(Cn){return"+ ".concat(Cn.length," ...")}:Zn,Wn=Ve.tagRender,Un=Ve.onToggleOpen,ur=Ve.onRemove,qn=Ve.onInputChange,lr=Ve.onInputPaste,ir=Ve.onInputKeyDown,er=Ve.onInputMouseDown,tr=Ve.onInputCompositionStart,vr=Ve.onInputCompositionEnd,mr=Ve.onInputBlur,cr=he.useRef(null),gr=(0,he.useState)(0),Cr=(0,Se.Z)(gr,2),or=Cr[0],dr=Cr[1],Gn=(0,he.useState)(!1),Sr=(0,Se.Z)(Gn,2),Rr=Sr[0],Wr=Sr[1],Er="".concat(Re,"-selection"),Ar=Fe||Bt==="multiple"&&on===!1||Bt==="tags"?mt:"",Ir=Bt==="tags"||Bt==="multiple"&&on===!1||Pt&&(Fe||Rr);bt(function(){dr(cr.current.scrollWidth)},[Ar]);var Dr=function(sn,zn,_n,mn,yn){return he.createElement("span",{title:Zt(sn),className:Ce()("".concat(Er,"-item"),(0,ve.Z)({},"".concat(Er,"-item-disabled"),_n))},he.createElement("span",{className:"".concat(Er,"-item-content")},zn),mn&&he.createElement(ze,{className:"".concat(Er,"-item-remove"),onMouseDown:Te,onClick:yn,customizeIcon:Xn},"\xD7"))},zr=function(sn,zn,_n,mn,yn,Nn){var Rn=function(kr){Te(kr),Un(!Fe)};return he.createElement("span",{onMouseDown:Rn},Wn({label:zn,value:sn,disabled:_n,closable:mn,onClose:yn,isMaxTag:!!Nn}))},fr=function(sn){var zn=sn.disabled,_n=sn.label,mn=sn.value,yn=!Xt&&!zn,Nn=_n;if(typeof Jn=="number"&&(typeof _n=="string"||typeof _n=="number")){var Rn=String(Nn);Rn.length>Jn&&(Nn="".concat(Rn.slice(0,Jn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(sn)};return typeof Wn=="function"?zr(mn,Nn,zn,yn,rr):Dr(sn,Nn,zn,yn,rr)},Yn=function(sn){if(!we.length)return null;var zn=typeof Fn=="function"?Fn(sn):Fn;return typeof Wn=="function"?zr(void 0,zn,!1,!1,void 0,!0):Dr({title:zn},zn,!1)},pn=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){Wr(!0)},onBlur:function(){Wr(!1)}},he.createElement(ut,{ref:un,open:Fe,prefixCls:Re,id:be,inputElement:null,disabled:Xt,autoFocus:fn,autoComplete:Bn,editable:Ir,activeDescendantId:Dn,value:Ar,onKeyDown:ir,onMouseDown:er,onChange:qn,onPaste:lr,onCompositionStart:tr,onCompositionEnd:vr,onBlur:mr,tabIndex:Tn,attrs:(0,et.Z)(Ve,!0)}),he.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),En=he.createElement(qe.Z,{prefixCls:"".concat(Er,"-overflow"),data:we,renderItem:fr,renderRest:Yn,suffix:pn,itemKey:me,maxCount:Qn});return he.createElement("span",{className:"".concat(Er,"-wrap")},En,!we.length&&!Ar&&he.createElement("span",{className:"".concat(Er,"-placeholder")},gn))},Nt=_e,xt=function(Ve){var be=Ve.inputElement,Re=Ve.prefixCls,we=Ve.id,Fe=Ve.inputRef,mt=Ve.disabled,on=Ve.autoFocus,un=Ve.autoComplete,gn=Ve.activeDescendantId,Xt=Ve.mode,Bt=Ve.open,Pt=Ve.values,fn=Ve.placeholder,Bn=Ve.tabIndex,Dn=Ve.showSearch,Tn=Ve.searchValue,Xn=Ve.activeValue,Qn=Ve.maxLength,Jn=Ve.onInputKeyDown,Zn=Ve.onInputMouseDown,Fn=Ve.onInputChange,Wn=Ve.onInputPaste,Un=Ve.onInputCompositionStart,ur=Ve.onInputCompositionEnd,qn=Ve.onInputBlur,lr=Ve.title,ir=he.useState(!1),er=(0,Se.Z)(ir,2),tr=er[0],vr=er[1],mr=Xt==="combobox",cr=mr||Dn,gr=Pt[0],Cr=Tn||"";mr&&Xn&&!tr&&(Cr=Xn),he.useEffect(function(){mr&&vr(!1)},[mr,Xn]);var or=Xt!=="combobox"&&!Bt&&!Dn?!1:!!Cr,dr=lr===void 0?Zt(gr):lr,Gn=he.useMemo(function(){return gr?null:he.createElement("span",{className:"".concat(Re,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},fn)},[gr,or,fn,Re]);return he.createElement("span",{className:"".concat(Re,"-selection-wrap")},he.createElement("span",{className:"".concat(Re,"-selection-search")},he.createElement(ut,{ref:Fe,prefixCls:Re,id:we,open:Bt,inputElement:be,disabled:mt,autoFocus:on,autoComplete:un,editable:cr,activeDescendantId:gn,value:Cr,onKeyDown:Jn,onMouseDown:Zn,onChange:function(Rr){vr(!0),Fn(Rr)},onPaste:Wn,onCompositionStart:Un,onCompositionEnd:ur,onBlur:qn,tabIndex:Bn,attrs:(0,et.Z)(Ve,!0),maxLength:mr?Qn:void 0})),!mr&&gr?he.createElement("span",{className:"".concat(Re,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},gr.label):null,Gn)},zt=xt,Ae=function(Ve,be){var Re=(0,he.useRef)(null),we=(0,he.useRef)(!1),Fe=Ve.prefixCls,mt=Ve.open,on=Ve.mode,un=Ve.showSearch,gn=Ve.tokenWithEnter,Xt=Ve.disabled,Bt=Ve.prefix,Pt=Ve.autoClearSearchValue,fn=Ve.onSearch,Bn=Ve.onSearchSubmit,Dn=Ve.onToggleOpen,Tn=Ve.onInputKeyDown,Xn=Ve.onInputBlur,Qn=Ve.domRef;he.useImperativeHandle(be,function(){return{focus:function(dr){Re.current.focus(dr)},blur:function(){Re.current.blur()}}});var Jn=lt(0),Zn=(0,Se.Z)(Jn,2),Fn=Zn[0],Wn=Zn[1],Un=function(dr){var Gn=dr.which,Sr=Re.current instanceof HTMLTextAreaElement;!Sr&&mt&&(Gn===Ze.Z.UP||Gn===Ze.Z.DOWN)&&dr.preventDefault(),Tn&&Tn(dr),Gn===Ze.Z.ENTER&&on==="tags"&&!we.current&&!mt&&(Bn==null||Bn(dr.target.value)),!(Sr&&!mt&&~[Ze.Z.UP,Ze.Z.DOWN,Ze.Z.LEFT,Ze.Z.RIGHT].indexOf(Gn))&&It(Gn)&&Dn(!0)},ur=function(){Wn(!0)},qn=(0,he.useRef)(null),lr=function(dr){fn(dr,!0,we.current)!==!1&&Dn(!0)},ir=function(){we.current=!0},er=function(dr){we.current=!1,on!=="combobox"&&lr(dr.target.value)},tr=function(dr){var Gn=dr.target.value;if(gn&&qn.current&&/[\r\n]/.test(qn.current)){var Sr=qn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Gn=Gn.replace(Sr,qn.current)}qn.current=null,lr(Gn)},vr=function(dr){var Gn=dr.clipboardData,Sr=Gn==null?void 0:Gn.getData("text");qn.current=Sr||""},mr=function(dr){var Gn=dr.target;if(Gn!==Re.current){var Sr=document.body.style.msTouchAction!==void 0;Sr?setTimeout(function(){Re.current.focus()}):Re.current.focus()}},cr=function(dr){var Gn=Fn();dr.target!==Re.current&&!Gn&&!(on==="combobox"&&Xt)&&dr.preventDefault(),(on!=="combobox"&&(!un||!Gn)||!mt)&&(mt&&Pt!==!1&&fn("",!0,!1),Dn())},gr={inputRef:Re,onInputKeyDown:Un,onInputMouseDown:ur,onInputChange:tr,onInputPaste:vr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Xn},Cr=on==="multiple"||on==="tags"?he.createElement(Nt,(0,z.Z)({},Ve,gr)):he.createElement(zt,(0,z.Z)({},Ve,gr));return he.createElement("div",{ref:Qn,className:"".concat(Fe,"-selector"),onClick:mr,onMouseDown:cr},Bt&&he.createElement("div",{className:"".concat(Fe,"-prefix")},Bt),Cr)},$t=he.forwardRef(Ae),ct=$t,ae=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(Ve){var be=Ve===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"}}},oe=function(Ve,be){var Re=Ve.prefixCls,we=Ve.disabled,Fe=Ve.visible,mt=Ve.children,on=Ve.popupElement,un=Ve.animation,gn=Ve.transitionName,Xt=Ve.dropdownStyle,Bt=Ve.dropdownClassName,Pt=Ve.direction,fn=Pt===void 0?"ltr":Pt,Bn=Ve.placement,Dn=Ve.builtinPlacements,Tn=Ve.dropdownMatchSelectWidth,Xn=Ve.dropdownRender,Qn=Ve.dropdownAlign,Jn=Ve.getPopupContainer,Zn=Ve.empty,Fn=Ve.getTriggerDOMNode,Wn=Ve.onPopupVisibleChange,Un=Ve.onPopupMouseEnter,ur=(0,Ee.Z)(Ve,te),qn="".concat(Re,"-dropdown"),lr=on;Xn&&(lr=Xn(on));var ir=he.useMemo(function(){return Dn||ee(Tn)},[Dn,Tn]),er=un?"".concat(qn,"-").concat(un):gn,tr=typeof Tn=="number",vr=he.useMemo(function(){return tr?null:Tn===!1?"minWidth":"width"},[Tn,tr]),mr=Xt;tr&&(mr=(0,Qe.Z)((0,Qe.Z)({},mr),{},{width:Tn}));var cr=he.useRef(null);return he.useImperativeHandle(be,function(){return{getPopupElement:function(){var Cr;return(Cr=cr.current)===null||Cr===void 0?void 0:Cr.popupElement}}}),he.createElement(ae.Z,(0,z.Z)({},ur,{showAction:Wn?["click"]:[],hideAction:Wn?["click"]:[],popupPlacement:Bn||(fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:he.createElement("div",{onMouseEnter:Un},lr),ref:cr,stretch:vr,popupAlign:Qn,popupVisible:Fe,getPopupContainer:Jn,popupClassName:Ce()(Bt,(0,ve.Z)({},"".concat(qn,"-empty"),Zn)),popupStyle:mr,getTriggerDOMNode:Fn,onPopupVisibleChange:Wn}),mt)},se=he.forwardRef(oe),ne=se,pe=ie(48745);function xe(Be,Ve){var be=Be.key,Re;return"value"in Be&&(Re=Be.value),be!=null?be:Re!==void 0?Re:"rc-index-key-".concat(Ve)}function st(Be){return typeof Be!="undefined"&&!Number.isNaN(Be)}function Pe(Be,Ve){var be=Be||{},Re=be.label,we=be.value,Fe=be.options,mt=be.groupLabel,on=Re||(Ve?"children":"label");return{label:on,value:we||"value",options:Fe||"options",groupLabel:mt||on}}function je(Be){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=Ve.fieldNames,Re=Ve.childrenAsData,we=[],Fe=Pe(be,!1),mt=Fe.label,on=Fe.value,un=Fe.options,gn=Fe.groupLabel;function Xt(Bt,Pt){Array.isArray(Bt)&&Bt.forEach(function(fn){if(Pt||!(un in fn)){var Bn=fn[on];we.push({key:xe(fn,we.length),groupOption:Pt,data:fn,label:fn[mt],value:Bn})}else{var Dn=fn[gn];Dn===void 0&&Re&&(Dn=fn.label),we.push({key:xe(fn,we.length),group:!0,data:fn,label:Dn}),Xt(fn[un],!0)}})}return Xt(Be,!1),we}function rt(Be){var Ve=(0,Qe.Z)({},Be);return"props"in Ve||Object.defineProperty(Ve,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ve}}),Ve}var yt=function(Ve,be,Re){if(!be||!be.length)return null;var we=!1,Fe=function on(un,gn){var Xt=(0,pe.Z)(gn),Bt=Xt[0],Pt=Xt.slice(1);if(!Bt)return[un];var fn=un.split(Bt);return we=we||fn.length>1,fn.reduce(function(Bn,Dn){return[].concat((0,it.Z)(Bn),(0,it.Z)(on(Dn,Pt)))},[]).filter(Boolean)},mt=Fe(Ve,be);return we?typeof Re!="undefined"?mt.slice(0,Re):mt:null},gt=he.createContext(null),Kt=gt;function jt(Be){var Ve=Be.visible,be=Be.values;if(!Ve)return null;var Re=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(be.slice(0,Re).map(function(we){var Fe=we.label,mt=we.value;return["number","string"].includes((0,Le.Z)(Fe))?Fe:mt}).join(", ")),be.length>Re?", ...":null)}var Ht=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],tn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Qt=function(Ve){return Ve==="tags"||Ve==="multiple"},nn=he.forwardRef(function(Be,Ve){var be,Re=Be.id,we=Be.prefixCls,Fe=Be.className,mt=Be.showSearch,on=Be.tagRender,un=Be.direction,gn=Be.omitDomProps,Xt=Be.displayValues,Bt=Be.onDisplayValuesChange,Pt=Be.emptyOptions,fn=Be.notFoundContent,Bn=fn===void 0?"Not Found":fn,Dn=Be.onClear,Tn=Be.mode,Xn=Be.disabled,Qn=Be.loading,Jn=Be.getInputElement,Zn=Be.getRawInputElement,Fn=Be.open,Wn=Be.defaultOpen,Un=Be.onDropdownVisibleChange,ur=Be.activeValue,qn=Be.onActiveValueChange,lr=Be.activeDescendantId,ir=Be.searchValue,er=Be.autoClearSearchValue,tr=Be.onSearch,vr=Be.onSearchSplit,mr=Be.tokenSeparators,cr=Be.allowClear,gr=Be.prefix,Cr=Be.suffixIcon,or=Be.clearIcon,dr=Be.OptionList,Gn=Be.animation,Sr=Be.transitionName,Rr=Be.dropdownStyle,Wr=Be.dropdownClassName,Er=Be.dropdownMatchSelectWidth,Ar=Be.dropdownRender,Ir=Be.dropdownAlign,Dr=Be.placement,zr=Be.builtinPlacements,fr=Be.getPopupContainer,Yn=Be.showAction,pn=Yn===void 0?[]:Yn,En=Be.onFocus,Cn=Be.onBlur,sn=Be.onKeyUp,zn=Be.onKeyDown,_n=Be.onMouseDown,mn=(0,Ee.Z)(Be,Ht),yn=Qt(Tn),Nn=(mt!==void 0?mt:yn)||Tn==="combobox",Rn=(0,Qe.Z)({},mn);tn.forEach(function(Mr){delete Rn[Mr]}),gn==null||gn.forEach(function(Mr){delete Rn[Mr]});var rr=he.useState(!1),kr=(0,Se.Z)(rr,2),br=kr[0],Or=kr[1];he.useEffect(function(){Or((0,Ke.Z)())},[]);var Pr=he.useRef(null),Tr=he.useRef(null),Hr=he.useRef(null),Br=he.useRef(null),Zr=he.useRef(null),ti=he.useRef(!1),Pi=ht(),Fi=(0,Se.Z)(Pi,3),xi=Fi[0],mi=Fi[1],Xi=Fi[2];he.useImperativeHandle(Ve,function(){var Mr,xr;return{focus:(Mr=Br.current)===null||Mr===void 0?void 0:Mr.focus,blur:(xr=Br.current)===null||xr===void 0?void 0:xr.blur,scrollTo:function(fi){var Yr;return(Yr=Zr.current)===null||Yr===void 0?void 0:Yr.scrollTo(fi)},nativeElement:Pr.current||Tr.current}});var Lr=he.useMemo(function(){var Mr;if(Tn!=="combobox")return ir;var xr=(Mr=Xt[0])===null||Mr===void 0?void 0:Mr.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,Tn,Xt]),to=Tn==="combobox"&&typeof Jn=="function"&&Jn()||null,ni=typeof Zn=="function"&&Zn(),Li=(0,Ne.x1)(Tr,ni==null||(be=ni.props)===null||be===void 0?void 0:be.ref),ao=he.useState(!1),Yi=(0,Se.Z)(ao,2),gi=Yi[0],Ai=Yi[1];(0,St.Z)(function(){Ai(!0)},[]);var Vr=(0,Xe.Z)(!1,{defaultValue:Wn,value:Fn}),zi=(0,Se.Z)(Vr,2),lo=zi[0],ji=zi[1],Jr=gi?lo:!1,xo=!Bn&&Pt;(Xn||xo&&Jr&&Tn==="combobox")&&(Jr=!1);var so=xo?!1:Jr,ar=he.useCallback(function(Mr){var xr=Mr!==void 0?Mr:!Jr;Xn||(ji(xr),Jr!==xr&&(Un==null||Un(xr)))},[Xn,Jr,ji,Un]),yr=he.useMemo(function(){return(mr||[]).some(function(Mr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Mr)})},[mr]),hr=he.useContext(Kt)||{},pr=hr.maxCount,Nr=hr.rawValues,jr=function(xr,ci,fi){if(!(yn&&st(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Yr=!0,ri=xr;qn==null||qn(null);var Vi=yt(xr,mr,st(pr)?pr-Nr.size:void 0),Wi=fi?null:Vi;return Tn!=="combobox"&&Wi&&(ri="",vr==null||vr(Wi),ar(!1),Yr=!1),tr&&Lr!==ri&&tr(ri,{source:ci?"typing":"effect"}),Yr}},_i=function(xr){!xr||!xr.trim()||tr(xr,{source:"submit"})};he.useEffect(function(){!Jr&&!yn&&Tn!=="combobox"&&jr("",!1,!1)},[Jr]),he.useEffect(function(){lo&&Xn&&ji(!1),Xn&&!ti.current&&mi(!1)},[Xn]);var vi=lt(),ui=(0,Se.Z)(vi,2),Xr=ui[0],Hi=ui[1],Qi=he.useRef(!1),Mi=function(xr){var ci=Xr(),fi=xr.key,Yr=fi==="Enter";if(Yr&&(Tn!=="combobox"&&xr.preventDefault(),Jr||ar(!0)),Hi(!!Lr),fi==="Backspace"&&!ci&&yn&&!Lr&&Xt.length){for(var ri=(0,it.Z)(Xt),Vi=null,Wi=ri.length-1;Wi>=0;Wi-=1){var ro=ri[Wi];if(!ro.disabled){ri.splice(Wi,1),Vi=ro;break}}Vi&&Bt(ri,{type:"remove",values:[Vi]})}for(var Oi=arguments.length,Di=new Array(Oi>1?Oi-1:0),Gi=1;Gi<Oi;Gi++)Di[Gi-1]=arguments[Gi];if(Jr&&(!Yr||!Qi.current)){var co;Yr&&(Qi.current=!0),(co=Zr.current)===null||co===void 0||co.onKeyDown.apply(co,[xr].concat(Di))}zn==null||zn.apply(void 0,[xr].concat(Di))},Ji=function(xr){for(var ci=arguments.length,fi=new Array(ci>1?ci-1:0),Yr=1;Yr<ci;Yr++)fi[Yr-1]=arguments[Yr];if(Jr){var ri;(ri=Zr.current)===null||ri===void 0||ri.onKeyUp.apply(ri,[xr].concat(fi))}xr.key==="Enter"&&(Qi.current=!1),sn==null||sn.apply(void 0,[xr].concat(fi))},no=function(xr){var ci=Xt.filter(function(fi){return fi!==xr});Bt(ci,{type:"remove",values:[xr]})},Zi=function(){Qi.current=!1},Do=he.useRef(!1),Za=function(){mi(!0),Xn||(En&&!Do.current&&En.apply(void 0,arguments),pn.includes("focus")&&ar(!0)),Do.current=!0},ya=function(){ti.current=!0,mi(!1,function(){Do.current=!1,ti.current=!1,ar(!1)}),!Xn&&(Lr&&(Tn==="tags"?tr(Lr,{source:"submit"}):Tn==="multiple"&&tr("",{source:"blur"})),Cn&&Cn.apply(void 0,arguments))},qi=[];he.useEffect(function(){return function(){qi.forEach(function(Mr){return clearTimeout(Mr)}),qi.splice(0,qi.length)}},[]);var uo=function(xr){var ci,fi=xr.target,Yr=(ci=Hr.current)===null||ci===void 0?void 0:ci.getPopupElement();if(Yr&&Yr.contains(fi)){var ri=setTimeout(function(){var Oi=qi.indexOf(ri);if(Oi!==-1&&qi.splice(Oi,1),Xi(),!br&&!Yr.contains(document.activeElement)){var Di;(Di=Br.current)===null||Di===void 0||Di.focus()}});qi.push(ri)}for(var Vi=arguments.length,Wi=new Array(Vi>1?Vi-1:0),ro=1;ro<Vi;ro++)Wi[ro-1]=arguments[ro];_n==null||_n.apply(void 0,[xr].concat(Wi))},$i=he.useState({}),ba=(0,Se.Z)($i,2),xa=ba[1];function Va(){xa({})}var Ca;ni&&(Ca=function(xr){ar(xr)}),ot(function(){var Mr;return[Pr.current,(Mr=Hr.current)===null||Mr===void 0?void 0:Mr.getPopupElement()]},so,ar,!!ni);var Ga=he.useMemo(function(){return(0,Qe.Z)((0,Qe.Z)({},Be),{},{notFoundContent:Bn,open:Jr,triggerOpen:so,id:Re,showSearch:Nn,multiple:yn,toggleOpen:ar})},[Be,Bn,so,Jr,Re,Nn,yn,ar]),Uo=!!Cr||Qn,Ko;Uo&&(Ko=he.createElement(ze,{className:Ce()("".concat(we,"-arrow"),(0,ve.Z)({},"".concat(we,"-arrow-loading"),Qn)),customizeIcon:Cr,customizeIconProps:{loading:Qn,searchValue:Lr,open:Jr,focused:xi,showSearch:Nn}}));var Co=function(){var xr;Dn==null||Dn(),(xr=Br.current)===null||xr===void 0||xr.focus(),Bt([],{type:"clear",values:Xt}),jr("",!1,!1)},Xo=ft(we,Co,Xt,cr,or,Xn,Lr,Tn),Sa=Xo.allowClear,Yo=Xo.clearIcon,To=he.createElement(dr,{ref:Zr}),wa=Ce()(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"),xi),"".concat(we,"-multiple"),yn),"".concat(we,"-single"),!yn),"".concat(we,"-allow-clear"),cr),"".concat(we,"-show-arrow"),Uo),"".concat(we,"-disabled"),Xn),"".concat(we,"-loading"),Qn),"".concat(we,"-open"),Jr),"".concat(we,"-customize-input"),to),"".concat(we,"-show-search"),Nn)),Bo=he.createElement(ne,{ref:Hr,disabled:Xn,prefixCls:we,visible:so,popupElement:To,animation:Gn,transitionName:Sr,dropdownStyle:Rr,dropdownClassName:Wr,direction:un,dropdownMatchSelectWidth:Er,dropdownRender:Ar,dropdownAlign:Ir,placement:Dr,builtinPlacements:zr,getPopupContainer:fr,empty:Pt,getTriggerDOMNode:function(xr){return Tr.current||xr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},ni?he.cloneElement(ni,{ref:Li}):he.createElement(ct,(0,z.Z)({},Be,{domRef:Tr,prefixCls:we,inputElement:to,ref:Br,id:Re,prefix:gr,showSearch:Nn,autoClearSearchValue:er,mode:Tn,activeDescendantId:lr,tagRender:on,values:Xt,open:Jr,onToggleOpen:ar,activeValue:ur,searchValue:Lr,onSearch:jr,onSearchSubmit:_i,onRemove:no,tokenWithEnter:yr,onInputBlur:Zi}))),Ci;return ni?Ci=Bo:Ci=he.createElement("div",(0,z.Z)({className:wa},Rn,{ref:Pr,onMouseDown:uo,onKeyDown:Mi,onKeyUp:Ji,onFocus:Za,onBlur:ya}),he.createElement(jt,{visible:xi&&!Jr,values:Xt}),Bo,Ko,Sa&&Yo),he.createElement(wt.Provider,{value:Ga},Ci)}),Ct=nn,qt=function(){return null};qt.isSelectOptGroup=!0;var Wt=qt,De=function(){return null};De.isSelectOption=!0;var tt=De,Tt=ie(80547),Rt=ie(2738),ke=ie(48911);function $e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var at=["disabled","title","children","style","className"];function Et(Be){return typeof Be=="string"||typeof Be=="number"}var Gt=function(Ve,be){var Re=At(),we=Re.prefixCls,Fe=Re.id,mt=Re.open,on=Re.multiple,un=Re.mode,gn=Re.searchValue,Xt=Re.toggleOpen,Bt=Re.notFoundContent,Pt=Re.onPopupScroll,fn=he.useContext(Kt),Bn=fn.maxCount,Dn=fn.flattenOptions,Tn=fn.onActiveValue,Xn=fn.defaultActiveFirstOption,Qn=fn.onSelect,Jn=fn.menuItemSelectedIcon,Zn=fn.rawValues,Fn=fn.fieldNames,Wn=fn.virtual,Un=fn.direction,ur=fn.listHeight,qn=fn.listItemHeight,lr=fn.optionRender,ir="".concat(we,"-item"),er=(0,Tt.Z)(function(){return Dn},[mt,Dn],function(Yn,pn){return pn[0]&&Yn[1]!==pn[1]}),tr=he.useRef(null),vr=he.useMemo(function(){return on&&st(Bn)&&(Zn==null?void 0:Zn.size)>=Bn},[on,Bn,Zn==null?void 0:Zn.size]),mr=function(pn){pn.preventDefault()},cr=function(pn){var En;(En=tr.current)===null||En===void 0||En.scrollTo(typeof pn=="number"?{index:pn}:pn)},gr=he.useCallback(function(Yn){return un==="combobox"?!1:Zn.has(Yn)},[un,(0,it.Z)(Zn).toString(),Zn.size]),Cr=function(pn){for(var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Cn=er.length,sn=0;sn<Cn;sn+=1){var zn=(pn+sn*En+Cn)%Cn,_n=er[zn]||{},mn=_n.group,yn=_n.data;if(!mn&&!(yn!=null&&yn.disabled)&&(gr(yn.value)||!vr))return zn}return-1},or=he.useState(function(){return Cr(0)}),dr=(0,Se.Z)(or,2),Gn=dr[0],Sr=dr[1],Rr=function(pn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sr(pn);var Cn={source:En?"keyboard":"mouse"},sn=er[pn];if(!sn){Tn(null,-1,Cn);return}Tn(sn.value,pn,Cn)};(0,he.useEffect)(function(){Rr(Xn!==!1?Cr(0):-1)},[er.length,gn]);var Wr=he.useCallback(function(Yn){return un==="combobox"?String(Yn).toLowerCase()===gn.toLowerCase():Zn.has(Yn)},[un,gn,(0,it.Z)(Zn).toString(),Zn.size]);(0,he.useEffect)(function(){var Yn=setTimeout(function(){if(!on&&mt&&Zn.size===1){var En=Array.from(Zn)[0],Cn=er.findIndex(function(sn){var zn=sn.data;return gn?String(zn.value).startsWith(gn):zn.value===En});Cn!==-1&&(Rr(Cn),cr(Cn))}});if(mt){var pn;(pn=tr.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[mt,gn]);var Er=function(pn){pn!==void 0&&Qn(pn,{selected:!Zn.has(pn)}),on||Xt(!1)};if(he.useImperativeHandle(be,function(){return{onKeyDown:function(pn){var En=pn.which,Cn=pn.ctrlKey;switch(En){case Ze.Z.N:case Ze.Z.P:case Ze.Z.UP:case Ze.Z.DOWN:{var sn=0;if(En===Ze.Z.UP?sn=-1:En===Ze.Z.DOWN?sn=1:$e()&&Cn&&(En===Ze.Z.N?sn=1:En===Ze.Z.P&&(sn=-1)),sn!==0){var zn=Cr(Gn+sn,sn);cr(zn),Rr(zn,!0)}break}case Ze.Z.TAB:case Ze.Z.ENTER:{var _n,mn=er[Gn];mn&&!(mn!=null&&(_n=mn.data)!==null&&_n!==void 0&&_n.disabled)&&!vr?Er(mn.value):Er(void 0),mt&&pn.preventDefault();break}case Ze.Z.ESC:Xt(!1),mt&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){cr(pn)}}}),er.length===0)return he.createElement("div",{role:"listbox",id:"".concat(Fe,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},Bt);var Ar=Object.keys(Fn).map(function(Yn){return Fn[Yn]}),Ir=function(pn){return pn.label};function Dr(Yn,pn){var En=Yn.group;return{role:En?"presentation":"option",id:"".concat(Fe,"_list_").concat(pn)}}var zr=function(pn){var En=er[pn];if(!En)return null;var Cn=En.data||{},sn=Cn.value,zn=En.group,_n=(0,et.Z)(Cn,!0),mn=Ir(En);return En?he.createElement("div",(0,z.Z)({"aria-label":typeof mn=="string"&&!zn?mn:null},_n,{key:pn},Dr(En,pn),{"aria-selected":Wr(sn)}),sn):null},fr={role:"listbox",id:"".concat(Fe,"_list")};return he.createElement(he.Fragment,null,Wn&&he.createElement("div",(0,z.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),zr(Gn-1),zr(Gn),zr(Gn+1)),he.createElement(ke.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:Pt,virtual:Wn,direction:Un,innerProps:Wn?null:fr},function(Yn,pn){var En=Yn.group,Cn=Yn.groupOption,sn=Yn.data,zn=Yn.label,_n=Yn.value,mn=sn.key;if(En){var yn,Nn=(yn=sn.title)!==null&&yn!==void 0?yn:Et(zn)?zn.toString():void 0;return he.createElement("div",{className:Ce()(ir,"".concat(ir,"-group"),sn.className),title:Nn},zn!==void 0?zn:mn)}var Rn=sn.disabled,rr=sn.title,kr=sn.children,br=sn.style,Or=sn.className,Pr=(0,Ee.Z)(sn,at),Tr=(0,Rt.Z)(Pr,Ar),Hr=gr(_n),Br=Rn||!Hr&&vr,Zr="".concat(ir,"-option"),ti=Ce()(ir,Zr,Or,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Zr,"-grouped"),Cn),"".concat(Zr,"-active"),Gn===pn&&!Br),"".concat(Zr,"-disabled"),Br),"".concat(Zr,"-selected"),Hr)),Pi=Ir(Yn),Fi=!Jn||typeof Jn=="function"||Hr,xi=typeof Pi=="number"?Pi:Pi||_n,mi=Et(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),he.createElement("div",(0,z.Z)({},(0,et.Z)(Tr),Wn?{}:Dr(Yn,pn),{"aria-selected":Wr(_n),className:ti,title:mi,onMouseMove:function(){Gn===pn||Br||Rr(pn)},onClick:function(){Br||Er(_n)},style:br}),he.createElement("div",{className:"".concat(Zr,"-content")},typeof lr=="function"?lr(Yn,{index:pn}):xi),he.isValidElement(Jn)||Hr,Fi&&he.createElement(ze,{className:"".concat(ir,"-option-state"),customizeIcon:Jn,customizeIconProps:{value:_n,disabled:Br,isSelected:Hr}},Hr?"\u2713":null))}))},an=he.forwardRef(Gt),In=an,kn=function(Be,Ve){var be=he.useRef({values:new Map,options:new Map}),Re=he.useMemo(function(){var Fe=be.current,mt=Fe.values,on=Fe.options,un=Be.map(function(Bt){if(Bt.label===void 0){var Pt;return(0,Qe.Z)((0,Qe.Z)({},Bt),{},{label:(Pt=mt.get(Bt.value))===null||Pt===void 0?void 0:Pt.label})}return Bt}),gn=new Map,Xt=new Map;return un.forEach(function(Bt){gn.set(Bt.value,Bt),Xt.set(Bt.value,Ve.get(Bt.value)||on.get(Bt.value))}),be.current.values=gn,be.current.options=Xt,un},[Be,Ve]),we=he.useCallback(function(Fe){return Ve.get(Fe)||be.current.options.get(Fe)},[Ve]);return[Re,we]};function rn(Be,Ve){return Oe(Be).join("").toUpperCase().includes(Ve)}var bn=function(Be,Ve,be,Re,we){return he.useMemo(function(){if(!be||Re===!1)return Be;var Fe=Ve.options,mt=Ve.label,on=Ve.value,un=[],gn=typeof Re=="function",Xt=be.toUpperCase(),Bt=gn?Re:function(fn,Bn){return we?rn(Bn[we],Xt):Bn[Fe]?rn(Bn[mt!=="children"?mt:"label"],Xt):rn(Bn[on],Xt)},Pt=gn?function(fn){return rt(fn)}:function(fn){return fn};return Be.forEach(function(fn){if(fn[Fe]){var Bn=Bt(be,Pt(fn));if(Bn)un.push(fn);else{var Dn=fn[Fe].filter(function(Tn){return Bt(be,Pt(Tn))});Dn.length&&un.push((0,Qe.Z)((0,Qe.Z)({},fn),{},(0,ve.Z)({},Fe,Dn)))}return}Bt(be,Pt(fn))&&un.push(fn)}),un},[Be,Re,we,be,Ve])},dn=ie(6551),_t=ie(11592),Mt=["children","value"],Dt=["children"];function pt(Be){var Ve=Be,be=Ve.key,Re=Ve.props,we=Re.children,Fe=Re.value,mt=(0,Ee.Z)(Re,Mt);return(0,Qe.Z)({key:be,value:Fe!==void 0?Fe:be,children:we},mt)}function en(Be){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,_t.Z)(Be).map(function(be,Re){if(!he.isValidElement(be)||!be.type)return null;var we=be,Fe=we.type.isSelectOptGroup,mt=we.key,on=we.props,un=on.children,gn=(0,Ee.Z)(on,Dt);return Ve||!Fe?pt(be):(0,Qe.Z)((0,Qe.Z)({key:"__RC_SELECT_GRP__".concat(mt===null?Re:mt,"__"),label:mt},gn),{},{options:en(un)})}).filter(function(be){return be})}var Yt=function(Ve,be,Re,we,Fe){return he.useMemo(function(){var mt=Ve,on=!Ve;on&&(mt=en(be));var un=new Map,gn=new Map,Xt=function(fn,Bn,Dn){Dn&&typeof Dn=="string"&&fn.set(Bn[Dn],Bn)},Bt=function Pt(fn){for(var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dn=0;Dn<fn.length;Dn+=1){var Tn=fn[Dn];!Tn[Re.options]||Bn?(un.set(Tn[Re.value],Tn),Xt(gn,Tn,Re.label),Xt(gn,Tn,we),Xt(gn,Tn,Fe)):Pt(Tn[Re.options],!0)}};return Bt(mt),{options:mt,valueOptions:un,labelOptions:gn}},[Ve,be,Re,we,Fe])},Jt=Yt;function vn(Be){var Ve=he.useRef();Ve.current=Be;var be=he.useCallback(function(){return Ve.current.apply(Ve,arguments)},[]);return be}function wn(Be){var Ve=Be.mode,be=Be.options,Re=Be.children,we=Be.backfill,Fe=Be.allowClear,mt=Be.placeholder,on=Be.getInputElement,un=Be.showSearch,gn=Be.onSearch,Xt=Be.defaultOpen,Bt=Be.autoFocus,Pt=Be.labelInValue,fn=Be.value,Bn=Be.inputValue,Dn=Be.optionLabelProp,Tn=isMultiple(Ve),Xn=un!==void 0?un:Tn||Ve==="combobox",Qn=be||convertChildrenToData(Re);if(warning(Ve!=="tags"||Qn.every(function(Wn){return!Wn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ve==="tags"||Ve==="combobox"){var Jn=Qn.some(function(Wn){return Wn.options?Wn.options.some(function(Un){return typeof("value"in Un?Un.value:Un.key)=="number"}):typeof("value"in Wn?Wn.value:Wn.key)=="number"});warning(!Jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ve!=="combobox"||!Dn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ve==="combobox"||!we,"`backfill` only works with `combobox` mode."),warning(Ve==="combobox"||!on,"`getInputElement` only work with `combobox` mode."),noteOnce(Ve!=="combobox"||!on||!Fe||!mt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),gn&&!Xn&&Ve!=="combobox"&&Ve!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Xt||Bt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fn!=null){var Zn=toArray(fn);warning(!Pt||Zn.every(function(Wn){return _typeof(Wn)==="object"&&("key"in Wn||"value"in Wn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Tn||Array.isArray(fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Re){var Fn=null;toNodeArray(Re).some(function(Wn){if(!React.isValidElement(Wn)||!Wn.type)return!1;var Un=Wn,ur=Un.type;if(ur.isSelectOption)return!1;if(ur.isSelectOptGroup){var qn=toNodeArray(Wn.props.children).every(function(lr){return!React.isValidElement(lr)||!Wn.type||lr.type.isSelectOption?!0:(Fn=lr.type,!1)});return!qn}return Fn=ur,!0}),Fn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Fn.displayName||Fn.name||Fn,"`.")),warning(Bn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Sn(Be,Ve){if(Be){var be=function Re(we){for(var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mt=0;mt<we.length;mt++){var on=we[mt];if(on[Ve==null?void 0:Ve.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Fe&&Array.isArray(on[Ve==null?void 0:Ve.options])&&Re(on[Ve==null?void 0:Ve.options],!0))break}};be(Be)}}var On=null,Mn=["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"],jn=["inputValue"];function An(Be){return!Be||(0,Le.Z)(Be)!=="object"}var kt=he.forwardRef(function(Be,Ve){var be=Be.id,Re=Be.mode,we=Be.prefixCls,Fe=we===void 0?"rc-select":we,mt=Be.backfill,on=Be.fieldNames,un=Be.inputValue,gn=Be.searchValue,Xt=Be.onSearch,Bt=Be.autoClearSearchValue,Pt=Bt===void 0?!0:Bt,fn=Be.onSelect,Bn=Be.onDeselect,Dn=Be.dropdownMatchSelectWidth,Tn=Dn===void 0?!0:Dn,Xn=Be.filterOption,Qn=Be.filterSort,Jn=Be.optionFilterProp,Zn=Be.optionLabelProp,Fn=Be.options,Wn=Be.optionRender,Un=Be.children,ur=Be.defaultActiveFirstOption,qn=Be.menuItemSelectedIcon,lr=Be.virtual,ir=Be.direction,er=Be.listHeight,tr=er===void 0?200:er,vr=Be.listItemHeight,mr=vr===void 0?20:vr,cr=Be.labelRender,gr=Be.value,Cr=Be.defaultValue,or=Be.labelInValue,dr=Be.onChange,Gn=Be.maxCount,Sr=(0,Ee.Z)(Be,Mn),Rr=(0,dn.ZP)(be),Wr=Qt(Re),Er=!!(!Fn&&Un),Ar=he.useMemo(function(){return Xn===void 0&&Re==="combobox"?!1:Xn},[Xn,Re]),Ir=he.useMemo(function(){return Pe(on,Er)},[JSON.stringify(on),Er]),Dr=(0,Xe.Z)("",{value:gn!==void 0?gn:un,postState:function(yr){return yr||""}}),zr=(0,Se.Z)(Dr,2),fr=zr[0],Yn=zr[1],pn=Jt(Fn,Un,Ir,Jn,Zn),En=pn.valueOptions,Cn=pn.labelOptions,sn=pn.options,zn=he.useCallback(function(ar){var yr=Oe(ar);return yr.map(function(hr){var pr,Nr,jr,_i,vi;if(An(hr))pr=hr;else{var ui;jr=hr.key,Nr=hr.label,pr=(ui=hr.value)!==null&&ui!==void 0?ui:jr}var Xr=En.get(pr);if(Xr){var Hi;if(Nr===void 0&&(Nr=Xr==null?void 0:Xr[Zn||Ir.label]),jr===void 0&&(jr=(Hi=Xr==null?void 0:Xr.key)!==null&&Hi!==void 0?Hi:pr),_i=Xr==null?void 0:Xr.disabled,vi=Xr==null?void 0:Xr.title,0)var Qi}return{label:Nr,value:pr,key:jr,disabled:_i,title:vi}})},[Ir,Zn,En]),_n=(0,Xe.Z)(Cr,{value:gr}),mn=(0,Se.Z)(_n,2),yn=mn[0],Nn=mn[1],Rn=he.useMemo(function(){var ar,yr=Wr&&yn===null?[]:yn,hr=zn(yr);return Re==="combobox"&&fe((ar=hr[0])===null||ar===void 0?void 0:ar.value)?[]:hr},[yn,zn,Re,Wr]),rr=kn(Rn,En),kr=(0,Se.Z)(rr,2),br=kr[0],Or=kr[1],Pr=he.useMemo(function(){if(!Re&&br.length===1){var ar=br[0];if(ar.value===null&&(ar.label===null||ar.label===void 0))return[]}return br.map(function(yr){var hr;return(0,Qe.Z)((0,Qe.Z)({},yr),{},{label:(hr=typeof cr=="function"?cr(yr):yr.label)!==null&&hr!==void 0?hr:yr.value})})},[Re,br,cr]),Tr=he.useMemo(function(){return new Set(br.map(function(ar){return ar.value}))},[br]);he.useEffect(function(){if(Re==="combobox"){var ar,yr=(ar=br[0])===null||ar===void 0?void 0:ar.value;Yn(ye(yr)?String(yr):"")}},[br]);var Hr=vn(function(ar,yr){var hr=yr!=null?yr:ar;return(0,ve.Z)((0,ve.Z)({},Ir.value,ar),Ir.label,hr)}),Br=he.useMemo(function(){if(Re!=="tags")return sn;var ar=(0,it.Z)(sn),yr=function(pr){return En.has(pr)};return(0,it.Z)(br).sort(function(hr,pr){return hr.value<pr.value?-1:1}).forEach(function(hr){var pr=hr.value;yr(pr)||ar.push(Hr(pr,hr.label))}),ar},[Hr,sn,En,br,Re]),Zr=bn(Br,Ir,fr,Ar,Jn),ti=he.useMemo(function(){return Re!=="tags"||!fr||Zr.some(function(ar){return ar[Jn||"value"]===fr})||Zr.some(function(ar){return ar[Ir.value]===fr})?Zr:[Hr(fr)].concat((0,it.Z)(Zr))},[Hr,Jn,Re,Zr,fr,Ir]),Pi=function ar(yr){var hr=(0,it.Z)(yr).sort(function(pr,Nr){return Qn(pr,Nr,{searchValue:fr})});return hr.map(function(pr){return Array.isArray(pr.options)?(0,Qe.Z)((0,Qe.Z)({},pr),{},{options:pr.options.length>0?ar(pr.options):pr.options}):pr})},Fi=he.useMemo(function(){return Qn?Pi(ti):ti},[ti,Qn,fr]),xi=he.useMemo(function(){return je(Fi,{fieldNames:Ir,childrenAsData:Er})},[Fi,Ir,Er]),mi=function(yr){var hr=zn(yr);if(Nn(hr),dr&&(hr.length!==br.length||hr.some(function(jr,_i){var vi;return((vi=br[_i])===null||vi===void 0?void 0:vi.value)!==(jr==null?void 0:jr.value)}))){var pr=or?hr:hr.map(function(jr){return jr.value}),Nr=hr.map(function(jr){return rt(Or(jr.value))});dr(Wr?pr:pr[0],Wr?Nr:Nr[0])}},Xi=he.useState(null),Lr=(0,Se.Z)(Xi,2),to=Lr[0],ni=Lr[1],Li=he.useState(0),ao=(0,Se.Z)(Li,2),Yi=ao[0],gi=ao[1],Ai=ur!==void 0?ur:Re!=="combobox",Vr=he.useCallback(function(ar,yr){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=hr.source,Nr=pr===void 0?"keyboard":pr;gi(yr),mt&&Re==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[mt,Re]),zi=function(yr,hr,pr){var Nr=function(){var no,Zi=Or(yr);return[or?{label:Zi==null?void 0:Zi[Ir.label],value:yr,key:(no=Zi==null?void 0:Zi.key)!==null&&no!==void 0?no:yr}:yr,rt(Zi)]};if(hr&&fn){var jr=Nr(),_i=(0,Se.Z)(jr,2),vi=_i[0],ui=_i[1];fn(vi,ui)}else if(!hr&&Bn&&pr!=="clear"){var Xr=Nr(),Hi=(0,Se.Z)(Xr,2),Qi=Hi[0],Mi=Hi[1];Bn(Qi,Mi)}},lo=vn(function(ar,yr){var hr,pr=Wr?yr.selected:!0;pr?hr=Wr?[].concat((0,it.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),zi(ar,pr),Re==="combobox"?ni(""):(!Qt||Pt)&&(Yn(""),ni(""))}),ji=function(yr,hr){mi(yr);var pr=hr.type,Nr=hr.values;(pr==="remove"||pr==="clear")&&Nr.forEach(function(jr){zi(jr.value,!1,pr)})},Jr=function(yr,hr){if(Yn(yr),ni(null),hr.source==="submit"){var pr=(yr||"").trim();if(pr){var Nr=Array.from(new Set([].concat((0,it.Z)(Tr),[pr])));mi(Nr),zi(pr,!0),Yn("")}return}hr.source!=="blur"&&(Re==="combobox"&&mi(yr),Xt==null||Xt(yr))},xo=function(yr){var hr=yr;Re!=="tags"&&(hr=yr.map(function(Nr){var jr=Cn.get(Nr);return jr==null?void 0:jr.value}).filter(function(Nr){return Nr!==void 0}));var pr=Array.from(new Set([].concat((0,it.Z)(Tr),(0,it.Z)(hr))));mi(pr),pr.forEach(function(Nr){zi(Nr,!0)})},so=he.useMemo(function(){var ar=lr!==!1&&Tn!==!1;return(0,Qe.Z)((0,Qe.Z)({},pn),{},{flattenOptions:xi,onActiveValue:Vr,defaultActiveFirstOption:Ai,onSelect:lo,menuItemSelectedIcon:qn,rawValues:Tr,fieldNames:Ir,virtual:ar,direction:ir,listHeight:tr,listItemHeight:mr,childrenAsData:Er,maxCount:Gn,optionRender:Wn})},[Gn,pn,xi,Vr,Ai,lo,qn,Tr,Ir,lr,Tn,ir,tr,mr,Er,Wn]);return he.createElement(Kt.Provider,{value:so},he.createElement(Ct,(0,z.Z)({},Sr,{id:Rr,prefixCls:Fe,ref:Ve,omitDomProps:jn,mode:Re,displayValues:Pr,onDisplayValuesChange:ji,direction:ir,searchValue:fr,onSearch:Jr,autoClearSearchValue:Pt,onSearchSplit:xo,dropdownMatchSelectWidth:Tn,OptionList:In,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),Ut=kt;Ut.Option=tt,Ut.OptGroup=Wt;var xn=Ut,hn=xn},22711:function(ln,Vt,ie){"use strict";ie.r(Vt),ie.d(Vt,{ResizableTextArea:function(){return Me},default:function(){return ut}});var z=ie(60499),it=ie(18642),ve=ie(85899),Qe=ie(77654),Se=ie(72190),Ee=ie(42244),Le=ie(92310),Xe=ie.n(Le),Ie=ie(36901),he=ie(66003),Ye=ie(30292),Ce=ie(18929),St=ie(59301),Ke=ie(43749),Ne=ie(29301),Ge=ie(34280),ze=ie(16089),ft=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,wt=["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"],At={},ht;function lt(Oe){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot=Oe.getAttribute("id")||Oe.getAttribute("data-reactid")||Oe.getAttribute("name");if(Je&&At[Ot])return At[Ot];var ye=window.getComputedStyle(Oe),fe=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),dt=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),Zt=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),bt=wt.map(function(Te){return"".concat(Te,":").concat(ye.getPropertyValue(Te))}).join(";"),me={sizingStyle:bt,paddingSize:dt,borderSize:Zt,boxSizing:fe};return Je&&Ot&&(At[Ot]=me),me}function ot(Oe){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ht||(ht=document.createElement("textarea"),ht.setAttribute("tab-index","-1"),ht.setAttribute("aria-hidden","true"),ht.setAttribute("name","hiddenTextarea"),document.body.appendChild(ht)),Oe.getAttribute("wrap")?ht.setAttribute("wrap",Oe.getAttribute("wrap")):ht.removeAttribute("wrap");var fe=lt(Oe,Je),dt=fe.paddingSize,Zt=fe.borderSize,bt=fe.boxSizing,me=fe.sizingStyle;ht.setAttribute("style","".concat(me,";").concat(ft)),ht.value=Oe.value||Oe.placeholder||"";var Te=void 0,_e=void 0,Nt,xt=ht.scrollHeight;if(bt==="border-box"?xt+=Zt:bt==="content-box"&&(xt-=dt),Ot!==null||ye!==null){ht.value=" ";var zt=ht.scrollHeight-dt;Ot!==null&&(Te=zt*Ot,bt==="border-box"&&(Te=Te+dt+Zt),xt=Math.max(Te,xt)),ye!==null&&(_e=zt*ye,bt==="border-box"&&(_e=_e+dt+Zt),Nt=xt>_e?"":"hidden",xt=Math.min(_e,xt))}var Ae={height:xt,overflowY:Nt,resize:"none"};return Te&&(Ae.minHeight=Te),_e&&(Ae.maxHeight=_e),Ae}var Ze=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],It=0,et=1,qe=2,vt=St.forwardRef(function(Oe,Je){var Ot=Oe,ye=Ot.prefixCls,fe=Ot.defaultValue,dt=Ot.value,Zt=Ot.autoSize,bt=Ot.onResize,me=Ot.className,Te=Ot.style,_e=Ot.disabled,Nt=Ot.onChange,xt=Ot.onInternalAutoSize,zt=(0,Ee.Z)(Ot,Ze),Ae=(0,Ce.Z)(fe,{value:dt,postState:function(tt){return tt!=null?tt:""}}),$t=(0,Se.Z)(Ae,2),ct=$t[0],ae=$t[1],te=function(tt){ae(tt.target.value),Nt==null||Nt(tt)},ee=St.useRef();St.useImperativeHandle(Je,function(){return{textArea:ee.current}});var oe=St.useMemo(function(){return Zt&&(0,Ke.Z)(Zt)==="object"?[Zt.minRows,Zt.maxRows]:[]},[Zt]),se=(0,Se.Z)(oe,2),ne=se[0],pe=se[1],xe=!!Zt,st=function(){try{if(document.activeElement===ee.current){var tt=ee.current,Tt=tt.selectionStart,Rt=tt.selectionEnd,ke=tt.scrollTop;ee.current.setSelectionRange(Tt,Rt),ee.current.scrollTop=ke}}catch($e){}},Pe=St.useState(qe),je=(0,Se.Z)(Pe,2),rt=je[0],yt=je[1],gt=St.useState(),Kt=(0,Se.Z)(gt,2),jt=Kt[0],Ht=Kt[1],tn=function(){yt(It)};(0,Ge.Z)(function(){xe&&tn()},[dt,ne,pe,xe]),(0,Ge.Z)(function(){if(rt===It)yt(et);else if(rt===et){var De=ot(ee.current,!1,ne,pe);yt(qe),Ht(De)}else st()},[rt]);var Qt=St.useRef(),nn=function(){ze.Z.cancel(Qt.current)},Ct=function(tt){rt===qe&&(bt==null||bt(tt),Zt&&(nn(),Qt.current=(0,ze.Z)(function(){tn()})))};St.useEffect(function(){return nn},[]);var qt=xe?jt:null,Wt=(0,ve.Z)((0,ve.Z)({},Te),qt);return(rt===It||rt===et)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),St.createElement(Ne.Z,{onResize:Ct,disabled:!(Zt||bt)},St.createElement("textarea",(0,z.Z)({},zt,{ref:ee,style:Wt,className:Xe()(ye,me,(0,it.Z)({},"".concat(ye,"-disabled"),_e)),disabled:_e,value:ct,onChange:te})))}),Me=vt,Ue=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],He=St.forwardRef(function(Oe,Je){var Ot,ye=Oe.defaultValue,fe=Oe.value,dt=Oe.onFocus,Zt=Oe.onBlur,bt=Oe.onChange,me=Oe.allowClear,Te=Oe.maxLength,_e=Oe.onCompositionStart,Nt=Oe.onCompositionEnd,xt=Oe.suffix,zt=Oe.prefixCls,Ae=zt===void 0?"rc-textarea":zt,$t=Oe.showCount,ct=Oe.count,ae=Oe.className,te=Oe.style,ee=Oe.disabled,oe=Oe.hidden,se=Oe.classNames,ne=Oe.styles,pe=Oe.onResize,xe=Oe.onClear,st=Oe.onPressEnter,Pe=Oe.readOnly,je=Oe.autoSize,rt=Oe.onKeyDown,yt=(0,Ee.Z)(Oe,Ue),gt=(0,Ce.Z)(ye,{value:fe,defaultValue:ye}),Kt=(0,Se.Z)(gt,2),jt=Kt[0],Ht=Kt[1],tn=jt==null?"":String(jt),Qt=St.useState(!1),nn=(0,Se.Z)(Qt,2),Ct=nn[0],qt=nn[1],Wt=St.useRef(!1),De=St.useState(null),tt=(0,Se.Z)(De,2),Tt=tt[0],Rt=tt[1],ke=(0,St.useRef)(null),$e=(0,St.useRef)(null),at=function(){var Ut;return(Ut=$e.current)===null||Ut===void 0?void 0:Ut.textArea},Et=function(){at().focus()};(0,St.useImperativeHandle)(Je,function(){var kt;return{resizableTextArea:$e.current,focus:Et,blur:function(){at().blur()},nativeElement:((kt=ke.current)===null||kt===void 0?void 0:kt.nativeElement)||at()}}),(0,St.useEffect)(function(){qt(function(kt){return!ee&&kt})},[ee]);var Gt=St.useState(null),an=(0,Se.Z)(Gt,2),In=an[0],kn=an[1];St.useEffect(function(){if(In){var kt;(kt=at()).setSelectionRange.apply(kt,(0,Qe.Z)(In))}},[In]);var rn=(0,he.Z)(ct,$t),bn=(Ot=rn.max)!==null&&Ot!==void 0?Ot:Te,dn=Number(bn)>0,_t=rn.strategy(tn),Mt=!!bn&&_t>bn,Dt=function(Ut,xn){var hn=xn;!Wt.current&&rn.exceedFormatter&&rn.max&&rn.strategy(xn)>rn.max&&(hn=rn.exceedFormatter(xn,{max:rn.max}),xn!==hn&&kn([at().selectionStart||0,at().selectionEnd||0])),Ht(hn),(0,Ye.rJ)(Ut.currentTarget,Ut,bt,hn)},pt=function(Ut){Wt.current=!0,_e==null||_e(Ut)},en=function(Ut){Wt.current=!1,Dt(Ut,Ut.currentTarget.value),Nt==null||Nt(Ut)},Yt=function(Ut){Dt(Ut,Ut.target.value)},Jt=function(Ut){Ut.key==="Enter"&&st&&st(Ut),rt==null||rt(Ut)},vn=function(Ut){qt(!0),dt==null||dt(Ut)},wn=function(Ut){qt(!1),Zt==null||Zt(Ut)},Sn=function(Ut){Ht(""),Et(),(0,Ye.rJ)(at(),Ut,bt)},On=xt,Mn;rn.show&&(rn.showFormatter?Mn=rn.showFormatter({value:tn,count:_t,maxLength:bn}):Mn="".concat(_t).concat(dn?" / ".concat(bn):""),On=St.createElement(St.Fragment,null,On,St.createElement("span",{className:Xe()("".concat(Ae,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Mn)));var jn=function(Ut){var xn;pe==null||pe(Ut),(xn=at())!==null&&xn!==void 0&&xn.style.height&&Rt(!0)},An=!je&&!$t&&!me;return St.createElement(Ie.BaseInput,{ref:ke,value:tn,allowClear:me,handleReset:Sn,suffix:On,prefixCls:Ae,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:Xe()(se==null?void 0:se.affixWrapper,(0,it.Z)((0,it.Z)({},"".concat(Ae,"-show-count"),$t),"".concat(Ae,"-textarea-allow-clear"),me))}),disabled:ee,focused:Ct,className:Xe()(ae,Mt&&"".concat(Ae,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},te),Tt&&!An?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Mn=="string"?Mn:void 0}},hidden:oe,readOnly:Pe,onClear:xe},St.createElement(Me,(0,z.Z)({},yt,{autoSize:je,maxLength:Te,onKeyDown:Jt,onChange:Yt,onFocus:vn,onBlur:wn,onCompositionStart:pt,onCompositionEnd:en,className:Xe()(se==null?void 0:se.textarea),style:(0,ve.Z)((0,ve.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Ae,onResize:jn,ref:$e,readOnly:Pe})))}),ue=He,ut=ue},48911:function(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return ct}});var z=ie(60499),it=ie(43749),ve=ie(85899),Qe=ie(18642),Se=ie(72190),Ee=ie(42244),Le=ie(92310),Xe=ie.n(Le),Ie=ie(29301),he=ie(70425),Ye=ie(34280),Ce=ie(59301),St=ie(4676),Ke=Ce.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,pe=ae.prefixCls,xe=ae.onInnerResize,st=ae.innerProps,Pe=ae.rtl,je=ae.extra,rt={},yt={display:"flex",flexDirection:"column"};return oe!==void 0&&(rt={height:ee,position:"relative",overflow:"hidden"},yt=(0,ve.Z)((0,ve.Z)({},yt),{},(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({transform:"translateY(".concat(oe,"px)")},Pe?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Ce.createElement("div",{style:rt},Ce.createElement(Ie.Z,{onResize:function(Kt){var jt=Kt.offsetHeight;jt&&xe&&xe()}},Ce.createElement("div",(0,z.Z)({style:yt,className:Xe()((0,Qe.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},st),ne,je)))});Ke.displayName="Filler";var Ne=Ke;function Ge(ae){var te=ae.children,ee=ae.setRef,oe=Ce.useCallback(function(se){ee(se)},[]);return Ce.cloneElement(te,{ref:oe})}function ze(ae,te,ee,oe,se,ne,pe,xe){var st=xe.getKey;return ae.slice(te,ee+1).map(function(Pe,je){var rt=te+je,yt=pe(Pe,rt,{style:{width:oe},offsetX:se}),gt=st(Pe);return Ce.createElement(Ge,{key:gt,setRef:function(jt){return ne(Pe,jt)}},yt)})}function ft(ae,te,ee,oe){var se=ee-ae,ne=te-ee,pe=Math.min(se,ne)*2;if(oe<=pe){var xe=Math.floor(oe/2);return oe%2?ee+xe+1:ee-xe}return se>ne?ee-(oe-ne):ee+(oe-se)}function wt(ae,te,ee){var oe=ae.length,se=te.length,ne,pe;if(oe===0&&se===0)return null;oe<se?(ne=ae,pe=te):(ne=te,pe=ae);var xe={__EMPTY_ITEM__:!0};function st(Kt){return Kt!==void 0?ee(Kt):xe}for(var Pe=null,je=Math.abs(oe-se)!==1,rt=0;rt<pe.length;rt+=1){var yt=st(ne[rt]),gt=st(pe[rt]);if(yt!==gt){Pe=rt,je=je||yt!==st(pe[rt+1]);break}}return Pe===null?null:{index:Pe,multiple:je}}function At(ae,te,ee){var oe=Ce.useState(ae),se=(0,Se.Z)(oe,2),ne=se[0],pe=se[1],xe=Ce.useState(null),st=(0,Se.Z)(xe,2),Pe=st[0],je=st[1];return Ce.useEffect(function(){var rt=wt(ne||[],ae||[],te);(rt==null?void 0:rt.index)!==void 0&&(ee==null||ee(rt.index),je(ae[rt.index])),pe(ae)},[ae]),[Pe]}var ht=ie(16089),lt=(typeof navigator=="undefined"?"undefined":(0,it.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ot=lt,Ze=function(ae,te,ee,oe){var se=(0,Ce.useRef)(!1),ne=(0,Ce.useRef)(null);function pe(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var xe=(0,Ce.useRef)({top:ae,bottom:te,left:ee,right:oe});return xe.current.top=ae,xe.current.bottom=te,xe.current.left=ee,xe.current.right=oe,function(st,Pe){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=st?Pe<0&&xe.current.left||Pe>0&&xe.current.right:Pe<0&&xe.current.top||Pe>0&&xe.current.bottom;return je&&rt?(clearTimeout(ne.current),se.current=!1):(!rt||se.current)&&pe(),!se.current&&rt}};function It(ae,te,ee,oe,se,ne,pe){var xe=(0,Ce.useRef)(0),st=(0,Ce.useRef)(null),Pe=(0,Ce.useRef)(null),je=(0,Ce.useRef)(!1),rt=Ze(te,ee,oe,se);function yt(Qt,nn){if(ht.Z.cancel(st.current),!rt(!1,nn)){var Ct=Qt;if(!Ct._virtualHandled)Ct._virtualHandled=!0;else return;xe.current+=nn,Pe.current=nn,ot||Ct.preventDefault(),st.current=(0,ht.Z)(function(){var qt=je.current?10:1;pe(xe.current*qt,!1),xe.current=0})}}function gt(Qt,nn){pe(nn,!0),ot||Qt.preventDefault()}var Kt=(0,Ce.useRef)(null),jt=(0,Ce.useRef)(null);function Ht(Qt){if(ae){ht.Z.cancel(jt.current),jt.current=(0,ht.Z)(function(){Kt.current=null},2);var nn=Qt.deltaX,Ct=Qt.deltaY,qt=Qt.shiftKey,Wt=nn,De=Ct;(Kt.current==="sx"||!Kt.current&&qt&&Ct&&!nn)&&(Wt=Ct,De=0,Kt.current="sx");var tt=Math.abs(Wt),Tt=Math.abs(De);Kt.current===null&&(Kt.current=ne&&tt>Tt?"x":"y"),Kt.current==="y"?yt(Qt,De):gt(Qt,Wt)}}function tn(Qt){ae&&(je.current=Qt.detail===Pe.current)}return[Ht,tn]}function et(ae,te,ee,oe){var se=Ce.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Se.Z)(se,2),pe=ne[0],xe=ne[1],st=function(je){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:je,yt=pe.get(je),gt=pe.get(rt);if(yt===void 0||gt===void 0)for(var Kt=ae.length,jt=xe.length;jt<Kt;jt+=1){var Ht,tn=ae[jt],Qt=te(tn);pe.set(Qt,jt);var nn=(Ht=ee.get(Qt))!==null&&Ht!==void 0?Ht:oe;if(xe[jt]=(xe[jt-1]||0)+nn,Qt===je&&(yt=jt),Qt===rt&&(gt=jt),yt!==void 0&>!==void 0)break}return{top:xe[yt-1]||0,bottom:xe[gt]}};return st}var qe=ie(38705),vt=ie(17212),Me=function(){function ae(){(0,qe.Z)(this,ae),(0,Qe.Z)(this,"maps",void 0),(0,Qe.Z)(this,"id",0),(0,Qe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,vt.Z)(ae,[{key:"set",value:function(ee,oe){this.diffRecords.set(ee,this.maps[ee]),this.maps[ee]=oe,this.id+=1}},{key:"get",value:function(ee){return this.maps[ee]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),Ue=Me;function He(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function ue(ae,te,ee){var oe=Ce.useState(0),se=(0,Se.Z)(oe,2),ne=se[0],pe=se[1],xe=(0,Ce.useRef)(new Map),st=(0,Ce.useRef)(new Ue),Pe=(0,Ce.useRef)(0);function je(){Pe.current+=1}function rt(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;je();var Kt=function(){var tn=!1;xe.current.forEach(function(Qt,nn){if(Qt&&Qt.offsetParent){var Ct=Qt.offsetHeight,qt=getComputedStyle(Qt),Wt=qt.marginTop,De=qt.marginBottom,tt=He(Wt),Tt=He(De),Rt=Ct+tt+Tt;st.current.get(nn)!==Rt&&(st.current.set(nn,Rt),tn=!0)}}),tn&&pe(function(Qt){return Qt+1})};if(gt)Kt();else{Pe.current+=1;var jt=Pe.current;Promise.resolve().then(function(){jt===Pe.current&&Kt()})}}function yt(gt,Kt){var jt=ae(gt),Ht=xe.current.get(jt);Kt?(xe.current.set(jt,Kt),rt()):xe.current.delete(jt),!Ht!=!Kt&&(Kt?te==null||te(gt):ee==null||ee(gt))}return(0,Ce.useEffect)(function(){return je},[]),[yt,rt,st.current,ne]}var ut=14/15;function Oe(ae,te,ee){var oe=(0,Ce.useRef)(!1),se=(0,Ce.useRef)(0),ne=(0,Ce.useRef)(0),pe=(0,Ce.useRef)(null),xe=(0,Ce.useRef)(null),st,Pe=function(gt){if(oe.current){var Kt=Math.ceil(gt.touches[0].pageX),jt=Math.ceil(gt.touches[0].pageY),Ht=se.current-Kt,tn=ne.current-jt,Qt=Math.abs(Ht)>Math.abs(tn);Qt?se.current=Kt:ne.current=jt;var nn=ee(Qt,Qt?Ht:tn,!1,gt);nn&>.preventDefault(),clearInterval(xe.current),nn&&(xe.current=setInterval(function(){Qt?Ht*=ut:tn*=ut;var Ct=Math.floor(Qt?Ht:tn);(!ee(Qt,Ct,!0)||Math.abs(Ct)<=.1)&&clearInterval(xe.current)},16))}},je=function(){oe.current=!1,st()},rt=function(gt){st(),gt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(gt.touches[0].pageX),ne.current=Math.ceil(gt.touches[0].pageY),pe.current=gt.target,pe.current.addEventListener("touchmove",Pe,{passive:!1}),pe.current.addEventListener("touchend",je,{passive:!0}))};st=function(){pe.current&&(pe.current.removeEventListener("touchmove",Pe),pe.current.removeEventListener("touchend",je))},(0,Ye.Z)(function(){return ae&&te.current.addEventListener("touchstart",rt,{passive:!0}),function(){var yt;(yt=te.current)===null||yt===void 0||yt.removeEventListener("touchstart",rt),st(),clearInterval(xe.current)}},[ae])}function Je(ae){return Math.floor(Math.pow(ae,.5))}function Ot(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ye(ae,te,ee){Ce.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,pe,xe=function(){ht.Z.cancel(ne)},st=function yt(){xe(),ne=(0,ht.Z)(function(){ee(pe),yt()})},Pe=function(){se=!1,xe()},je=function(gt){if(!(gt.target.draggable||gt.button!==0)){var Kt=gt;Kt._virtualHandled||(Kt._virtualHandled=!0,se=!0)}},rt=function(gt){if(se){var Kt=Ot(gt,!1),jt=oe.getBoundingClientRect(),Ht=jt.top,tn=jt.bottom;if(Kt<=Ht){var Qt=Ht-Kt;pe=-Je(Qt),st()}else if(Kt>=tn){var nn=Kt-tn;pe=Je(nn),st()}else xe()}};return oe.addEventListener("mousedown",je),oe.ownerDocument.addEventListener("mouseup",Pe),oe.ownerDocument.addEventListener("mousemove",rt),oe.ownerDocument.addEventListener("dragend",Pe),function(){oe.removeEventListener("mousedown",je),oe.ownerDocument.removeEventListener("mouseup",Pe),oe.ownerDocument.removeEventListener("mousemove",rt),oe.ownerDocument.removeEventListener("dragend",Pe),xe()}}},[ae])}var fe=10;function dt(ae,te,ee,oe,se,ne,pe,xe){var st=Ce.useRef(),Pe=Ce.useState(null),je=(0,Se.Z)(Pe,2),rt=je[0],yt=je[1];return(0,Ye.Z)(function(){if(rt&&rt.times<fe){if(!ae.current){yt(function(rn){return(0,ve.Z)({},rn)});return}ne();var gt=rt.targetAlign,Kt=rt.originAlign,jt=rt.index,Ht=rt.offset,tn=ae.current.clientHeight,Qt=!1,nn=gt,Ct=null;if(tn){for(var qt=gt||Kt,Wt=0,De=0,tt=0,Tt=Math.min(te.length-1,jt),Rt=0;Rt<=Tt;Rt+=1){var ke=se(te[Rt]);De=Wt;var $e=ee.get(ke);tt=De+($e===void 0?oe:$e),Wt=tt}for(var at=qt==="top"?Ht:tn-Ht,Et=Tt;Et>=0;Et-=1){var Gt=se(te[Et]),an=ee.get(Gt);if(an===void 0){Qt=!0;break}if(at-=an,at<=0)break}switch(qt){case"top":Ct=De-Ht;break;case"bottom":Ct=tt-tn+Ht;break;default:{var In=ae.current.scrollTop,kn=In+tn;De<In?nn="top":tt>kn&&(nn="bottom")}}Ct!==null&&pe(Ct),Ct!==rt.lastTop&&(Qt=!0)}Qt&&yt((0,ve.Z)((0,ve.Z)({},rt),{},{times:rt.times+1,targetAlign:nn,lastTop:Ct}))}},[rt,ae.current]),function(gt){if(gt==null){xe();return}if(ht.Z.cancel(st.current),typeof gt=="number")pe(gt);else if(gt&&(0,it.Z)(gt)==="object"){var Kt,jt=gt.align;"index"in gt?Kt=gt.index:Kt=te.findIndex(function(Qt){return se(Qt)===gt.key});var Ht=gt.offset,tn=Ht===void 0?0:Ht;yt({times:0,index:Kt,offset:tn,originAlign:jt})}}}var Zt=Ce.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,xe=ae.onStopMove,st=ae.onScroll,Pe=ae.horizontal,je=ae.spinSize,rt=ae.containerSize,yt=ae.style,gt=ae.thumbStyle,Kt=ae.showScrollBar,jt=Ce.useState(!1),Ht=(0,Se.Z)(jt,2),tn=Ht[0],Qt=Ht[1],nn=Ce.useState(null),Ct=(0,Se.Z)(nn,2),qt=Ct[0],Wt=Ct[1],De=Ce.useState(null),tt=(0,Se.Z)(De,2),Tt=tt[0],Rt=tt[1],ke=!oe,$e=Ce.useRef(),at=Ce.useRef(),Et=Ce.useState(Kt),Gt=(0,Se.Z)(Et,2),an=Gt[0],In=Gt[1],kn=Ce.useRef(),rn=function(){Kt===!0||Kt===!1||(clearTimeout(kn.current),In(!0),kn.current=setTimeout(function(){In(!1)},3e3))},bn=ne-rt||0,dn=rt-je||0,_t=Ce.useMemo(function(){if(se===0||bn===0)return 0;var Sn=se/bn;return Sn*dn},[se,bn,dn]),Mt=function(On){On.stopPropagation(),On.preventDefault()},Dt=Ce.useRef({top:_t,dragging:tn,pageY:qt,startTop:Tt});Dt.current={top:_t,dragging:tn,pageY:qt,startTop:Tt};var pt=function(On){Qt(!0),Wt(Ot(On,Pe)),Rt(Dt.current.top),pe(),On.stopPropagation(),On.preventDefault()};Ce.useEffect(function(){var Sn=function(An){An.preventDefault()},On=$e.current,Mn=at.current;return On.addEventListener("touchstart",Sn,{passive:!1}),Mn.addEventListener("touchstart",pt,{passive:!1}),function(){On.removeEventListener("touchstart",Sn),Mn.removeEventListener("touchstart",pt)}},[]);var en=Ce.useRef();en.current=bn;var Yt=Ce.useRef();Yt.current=dn,Ce.useEffect(function(){if(tn){var Sn,On=function(An){var kt=Dt.current,Ut=kt.dragging,xn=kt.pageY,hn=kt.startTop;ht.Z.cancel(Sn);var Be=$e.current.getBoundingClientRect(),Ve=rt/(Pe?Be.width:Be.height);if(Ut){var be=(Ot(An,Pe)-xn)*Ve,Re=hn;!ke&&Pe?Re-=be:Re+=be;var we=en.current,Fe=Yt.current,mt=Fe?Re/Fe:0,on=Math.ceil(mt*we);on=Math.max(on,0),on=Math.min(on,we),Sn=(0,ht.Z)(function(){st(on,Pe)})}},Mn=function(){Qt(!1),xe()};return window.addEventListener("mousemove",On,{passive:!0}),window.addEventListener("touchmove",On,{passive:!0}),window.addEventListener("mouseup",Mn,{passive:!0}),window.addEventListener("touchend",Mn,{passive:!0}),function(){window.removeEventListener("mousemove",On),window.removeEventListener("touchmove",On),window.removeEventListener("mouseup",Mn),window.removeEventListener("touchend",Mn),ht.Z.cancel(Sn)}}},[tn]),Ce.useEffect(function(){return rn(),function(){clearTimeout(kn.current)}},[se]),Ce.useImperativeHandle(te,function(){return{delayHidden:rn}});var Jt="".concat(ee,"-scrollbar"),vn={position:"absolute",visibility:an?null:"hidden"},wn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Pe?(Object.assign(vn,{height:8,left:0,right:0,bottom:0}),Object.assign(wn,(0,Qe.Z)({height:"100%",width:je},ke?"left":"right",_t))):(Object.assign(vn,(0,Qe.Z)({width:8,top:0,bottom:0},ke?"right":"left",0)),Object.assign(wn,{width:"100%",height:je,top:_t})),Ce.createElement("div",{ref:$e,className:Xe()(Jt,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(Jt,"-horizontal"),Pe),"".concat(Jt,"-vertical"),!Pe),"".concat(Jt,"-visible"),an)),style:(0,ve.Z)((0,ve.Z)({},vn),yt),onMouseDown:Mt,onMouseMove:rn},Ce.createElement("div",{ref:at,className:Xe()("".concat(Jt,"-thumb"),(0,Qe.Z)({},"".concat(Jt,"-thumb-moving"),tn)),style:(0,ve.Z)((0,ve.Z)({},wn),gt),onMouseDown:pt}))}),bt=Zt,me=20;function Te(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,me),Math.floor(ee)}var _e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nt=[],xt={overflowY:"auto",overflowAnchor:"none"};function zt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,pe=ae.itemHeight,xe=ae.fullHeight,st=xe===void 0?!0:xe,Pe=ae.style,je=ae.data,rt=ae.children,yt=ae.itemKey,gt=ae.virtual,Kt=ae.direction,jt=ae.scrollWidth,Ht=ae.component,tn=Ht===void 0?"div":Ht,Qt=ae.onScroll,nn=ae.onVirtualScroll,Ct=ae.onVisibleChange,qt=ae.innerProps,Wt=ae.extraRender,De=ae.styles,tt=ae.showScrollBar,Tt=tt===void 0?"optional":tt,Rt=(0,Ee.Z)(ae,_e),ke=Ce.useCallback(function(pn){return typeof yt=="function"?yt(pn):pn==null?void 0:pn[yt]},[yt]),$e=ue(ke,null,null),at=(0,Se.Z)($e,4),Et=at[0],Gt=at[1],an=at[2],In=at[3],kn=!!(gt!==!1&&ne&&pe),rn=Ce.useMemo(function(){return Object.values(an.maps).reduce(function(pn,En){return pn+En},0)},[an.id,an.maps]),bn=kn&&je&&(Math.max(pe*je.length,rn)>ne||!!jt),dn=Kt==="rtl",_t=Xe()(oe,(0,Qe.Z)({},"".concat(oe,"-rtl"),dn),se),Mt=je||Nt,Dt=(0,Ce.useRef)(),pt=(0,Ce.useRef)(),en=(0,Ce.useRef)(),Yt=(0,Ce.useState)(0),Jt=(0,Se.Z)(Yt,2),vn=Jt[0],wn=Jt[1],Sn=(0,Ce.useState)(0),On=(0,Se.Z)(Sn,2),Mn=On[0],jn=On[1],An=(0,Ce.useState)(!1),kt=(0,Se.Z)(An,2),Ut=kt[0],xn=kt[1],hn=function(){xn(!0)},Be=function(){xn(!1)},Ve={getKey:ke};function be(pn){wn(function(En){var Cn;typeof pn=="function"?Cn=pn(En):Cn=pn;var sn=ur(Cn);return Dt.current.scrollTop=sn,sn})}var Re=(0,Ce.useRef)({start:0,end:Mt.length}),we=(0,Ce.useRef)(),Fe=At(Mt,ke),mt=(0,Se.Z)(Fe,1),on=mt[0];we.current=on;var un=Ce.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:Mt.length-1,offset:void 0};if(!bn){var pn;return{scrollHeight:((pn=pt.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:Mt.length-1,offset:void 0}}for(var En=0,Cn,sn,zn,_n=Mt.length,mn=0;mn<_n;mn+=1){var yn=Mt[mn],Nn=ke(yn),Rn=an.get(Nn),rr=En+(Rn===void 0?pe:Rn);rr>=vn&&Cn===void 0&&(Cn=mn,sn=En),rr>vn+ne&&zn===void 0&&(zn=mn),En=rr}return Cn===void 0&&(Cn=0,sn=0,zn=Math.ceil(ne/pe)),zn===void 0&&(zn=Mt.length-1),zn=Math.min(zn+1,Mt.length-1),{scrollHeight:En,start:Cn,end:zn,offset:sn}},[bn,kn,vn,Mt,In,ne]),gn=un.scrollHeight,Xt=un.start,Bt=un.end,Pt=un.offset;Re.current.start=Xt,Re.current.end=Bt,Ce.useLayoutEffect(function(){var pn=an.getRecord();if(pn.size===1){var En=Array.from(pn.keys())[0],Cn=pn.get(En),sn=Mt[Xt];if(sn&&Cn===void 0){var zn=ke(sn);if(zn===En){var _n=an.get(En),mn=_n-pe;be(function(yn){return yn+mn})}}}an.resetRecord()},[gn]);var fn=Ce.useState({width:0,height:ne}),Bn=(0,Se.Z)(fn,2),Dn=Bn[0],Tn=Bn[1],Xn=function(En){Tn({width:En.offsetWidth,height:En.offsetHeight})},Qn=(0,Ce.useRef)(),Jn=(0,Ce.useRef)(),Zn=Ce.useMemo(function(){return Te(Dn.width,jt)},[Dn.width,jt]),Fn=Ce.useMemo(function(){return Te(Dn.height,gn)},[Dn.height,gn]),Wn=gn-ne,Un=(0,Ce.useRef)(Wn);Un.current=Wn;function ur(pn){var En=pn;return Number.isNaN(Un.current)||(En=Math.min(En,Un.current)),En=Math.max(En,0),En}var qn=vn<=0,lr=vn>=Wn,ir=Mn<=0,er=Mn>=jt,tr=Ze(qn,lr,ir,er),vr=function(){return{x:dn?-Mn:Mn,y:vn}},mr=(0,Ce.useRef)(vr()),cr=(0,he.zX)(function(pn){if(nn){var En=(0,ve.Z)((0,ve.Z)({},vr()),pn);(mr.current.x!==En.x||mr.current.y!==En.y)&&(nn(En),mr.current=En)}});function gr(pn,En){var Cn=pn;En?((0,St.flushSync)(function(){jn(Cn)}),cr()):be(Cn)}function Cr(pn){var En=pn.currentTarget.scrollTop;En!==vn&&be(En),Qt==null||Qt(pn),cr()}var or=function(En){var Cn=En,sn=jt?jt-Dn.width:0;return Cn=Math.max(Cn,0),Cn=Math.min(Cn,sn),Cn},dr=(0,he.zX)(function(pn,En){En?((0,St.flushSync)(function(){jn(function(Cn){var sn=Cn+(dn?-pn:pn);return or(sn)})}),cr()):be(function(Cn){var sn=Cn+pn;return sn})}),Gn=It(kn,qn,lr,ir,er,!!jt,dr),Sr=(0,Se.Z)(Gn,2),Rr=Sr[0],Wr=Sr[1];Oe(kn,Dt,function(pn,En,Cn,sn){var zn=sn;return tr(pn,En,Cn)?!1:!zn||!zn._virtualHandled?(zn&&(zn._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:pn?En:0,deltaY:pn?0:En}),!0):!1}),ye(bn,Dt,function(pn){be(function(En){return En+pn})}),(0,Ye.Z)(function(){function pn(Cn){var sn=qn&&Cn.detail<0,zn=lr&&Cn.detail>0;kn&&!sn&&!zn&&Cn.preventDefault()}var En=Dt.current;return En.addEventListener("wheel",Rr,{passive:!1}),En.addEventListener("DOMMouseScroll",Wr,{passive:!0}),En.addEventListener("MozMousePixelScroll",pn,{passive:!1}),function(){En.removeEventListener("wheel",Rr),En.removeEventListener("DOMMouseScroll",Wr),En.removeEventListener("MozMousePixelScroll",pn)}},[kn,qn,lr]),(0,Ye.Z)(function(){if(jt){var pn=or(Mn);jn(pn),cr({x:pn})}},[Dn.width,jt]);var Er=function(){var En,Cn;(En=Qn.current)===null||En===void 0||En.delayHidden(),(Cn=Jn.current)===null||Cn===void 0||Cn.delayHidden()},Ar=dt(Dt,Mt,an,pe,ke,function(){return Gt(!0)},be,Er);Ce.useImperativeHandle(te,function(){return{nativeElement:en.current,getScrollInfo:vr,scrollTo:function(En){function Cn(sn){return sn&&(0,it.Z)(sn)==="object"&&("left"in sn||"top"in sn)}Cn(En)?(En.left!==void 0&&jn(or(En.left)),Ar(En.top)):Ar(En)}}}),(0,Ye.Z)(function(){if(Ct){var pn=Mt.slice(Xt,Bt+1);Ct(pn,Mt)}},[Xt,Bt,Mt]);var Ir=et(Mt,ke,an,pe),Dr=Wt==null?void 0:Wt({start:Xt,end:Bt,virtual:bn,offsetX:Mn,offsetY:Pt,rtl:dn,getSize:Ir}),zr=ze(Mt,Xt,Bt,jt,Mn,Et,rt,Ve),fr=null;ne&&(fr=(0,ve.Z)((0,Qe.Z)({},st?"height":"maxHeight",ne),xt),kn&&(fr.overflowY="hidden",jt&&(fr.overflowX="hidden"),Ut&&(fr.pointerEvents="none")));var Yn={};return dn&&(Yn.dir="rtl"),Ce.createElement("div",(0,z.Z)({ref:en,style:(0,ve.Z)((0,ve.Z)({},Pe),{},{position:"relative"}),className:_t},Yn,Rt),Ce.createElement(Ie.Z,{onResize:Xn},Ce.createElement(tn,{className:"".concat(oe,"-holder"),style:fr,ref:Dt,onScroll:Cr,onMouseEnter:Er},Ce.createElement(Ne,{prefixCls:oe,height:gn,offsetX:Mn,offsetY:Pt,scrollWidth:jt,onInnerResize:Gt,ref:pt,innerProps:qt,rtl:dn,extra:Dr},zr))),bn&&gn>ne&&Ce.createElement(bt,{ref:Qn,prefixCls:oe,scrollOffset:vn,scrollRange:gn,rtl:dn,onScroll:gr,onStartMove:hn,onStopMove:Be,spinSize:Fn,containerSize:Dn.height,style:De==null?void 0:De.verticalScrollBar,thumbStyle:De==null?void 0:De.verticalScrollBarThumb,showScrollBar:Tt}),bn&&jt>Dn.width&&Ce.createElement(bt,{ref:Jn,prefixCls:oe,scrollOffset:Mn,scrollRange:jt,rtl:dn,onScroll:gr,onStartMove:hn,onStopMove:Be,spinSize:Zn,containerSize:Dn.width,horizontal:!0,style:De==null?void 0:De.horizontalScrollBar,thumbStyle:De==null?void 0:De.horizontalScrollBarThumb,showScrollBar:Tt}))}var Ae=Ce.forwardRef(zt);Ae.displayName="List";var $t=Ae,ct=$t},4977:function(ln){"use strict";ln.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(ln,Vt,ie){"use strict";ie.d(Vt,{Z:function(){return Xe}});const z=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,it=(Ie,he)=>(!he||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",ve=(Ie,he)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const Ye=getComputedStyle(Ie,null);return it(Ye.overflowY,he)||it(Ye.overflowX,he)||(Ce=>{const St=(Ke=>{if(!Ke.ownerDocument||!Ke.ownerDocument.defaultView)return null;try{return Ke.ownerDocument.defaultView.frameElement}catch(Ne){return null}})(Ce);return!!St&&(St.clientHeight<Ce.scrollHeight||St.clientWidth<Ce.scrollWidth)})(Ie)}return!1},Qe=(Ie,he,Ye,Ce,St,Ke,Ne,Ge)=>Ke<Ie&&Ne>he||Ke>Ie&&Ne<he?0:Ke<=Ie&&Ge<=Ye||Ne>=he&&Ge>=Ye?Ke-Ie-Ce:Ne>he&&Ge<Ye||Ke<Ie&&Ge>Ye?Ne-he+St:0,Se=Ie=>{const he=Ie.parentElement;return he==null?Ie.getRootNode().host||null:he},Ee=(Ie,he)=>{var Ye,Ce,St,Ke;if(typeof document=="undefined")return[];const{scrollMode:Ne,block:Ge,inline:ze,boundary:ft,skipOverflowHiddenElements:wt}=he,At=typeof ft=="function"?ft:bt=>bt!==ft;if(!z(Ie))throw new TypeError("Invalid target");const ht=document.scrollingElement||document.documentElement,lt=[];let ot=Ie;for(;z(ot)&&At(ot);){if(ot=Se(ot),ot===ht){lt.push(ot);break}ot!=null&&ot===document.body&&ve(ot)&&!ve(document.documentElement)||ot!=null&&ve(ot,wt)&<.push(ot)}const Ze=(Ce=(Ye=window.visualViewport)==null?void 0:Ye.width)!=null?Ce:innerWidth,It=(Ke=(St=window.visualViewport)==null?void 0:St.height)!=null?Ke:innerHeight,{scrollX:et,scrollY:qe}=window,{height:vt,width:Me,top:Ue,right:He,bottom:ue,left:ut}=Ie.getBoundingClientRect(),{top:Oe,right:Je,bottom:Ot,left:ye}=(bt=>{const me=window.getComputedStyle(bt);return{top:parseFloat(me.scrollMarginTop)||0,right:parseFloat(me.scrollMarginRight)||0,bottom:parseFloat(me.scrollMarginBottom)||0,left:parseFloat(me.scrollMarginLeft)||0}})(Ie);let fe=Ge==="start"||Ge==="nearest"?Ue-Oe:Ge==="end"?ue+Ot:Ue+vt/2-Oe+Ot,dt=ze==="center"?ut+Me/2-ye+Je:ze==="end"?He+Je:ut-ye;const Zt=[];for(let bt=0;bt<lt.length;bt++){const me=lt[bt],{height:Te,width:_e,top:Nt,right:xt,bottom:zt,left:Ae}=me.getBoundingClientRect();if(Ne==="if-needed"&&Ue>=0&&ut>=0&&ue<=It&&He<=Ze&&(me===ht&&!ve(me)||Ue>=Nt&&ue<=zt&&ut>=Ae&&He<=xt))return Zt;const $t=getComputedStyle(me),ct=parseInt($t.borderLeftWidth,10),ae=parseInt($t.borderTopWidth,10),te=parseInt($t.borderRightWidth,10),ee=parseInt($t.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in me?me.offsetWidth-me.clientWidth-ct-te:0,pe="offsetHeight"in me?me.offsetHeight-me.clientHeight-ae-ee:0,xe="offsetWidth"in me?me.offsetWidth===0?0:_e/me.offsetWidth:0,st="offsetHeight"in me?me.offsetHeight===0?0:Te/me.offsetHeight:0;if(ht===me)oe=Ge==="start"?fe:Ge==="end"?fe-It:Ge==="nearest"?Qe(qe,qe+It,It,ae,ee,qe+fe,qe+fe+vt,vt):fe-It/2,se=ze==="start"?dt:ze==="center"?dt-Ze/2:ze==="end"?dt-Ze:Qe(et,et+Ze,Ze,ct,te,et+dt,et+dt+Me,Me),oe=Math.max(0,oe+qe),se=Math.max(0,se+et);else{oe=Ge==="start"?fe-Nt-ae:Ge==="end"?fe-zt+ee+pe:Ge==="nearest"?Qe(Nt,zt,Te,ae,ee+pe,fe,fe+vt,vt):fe-(Nt+Te/2)+pe/2,se=ze==="start"?dt-Ae-ct:ze==="center"?dt-(Ae+_e/2)+ne/2:ze==="end"?dt-xt+te+ne:Qe(Ae,xt,_e,ct,te+ne,dt,dt+Me,Me);const{scrollLeft:Pe,scrollTop:je}=me;oe=st===0?0:Math.max(0,Math.min(je+oe/st,me.scrollHeight-Te/st+pe)),se=xe===0?0:Math.max(0,Math.min(Pe+se/xe,me.scrollWidth-_e/xe+ne)),fe+=je-oe,dt+=Pe-se}Zt.push({el:me,top:oe,left:se})}return Zt},Le=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function Xe(Ie,he){if(!Ie.isConnected||!(St=>{let Ke=St;for(;Ke&&Ke.parentNode;){if(Ke.parentNode===document)return!0;Ke=Ke.parentNode instanceof ShadowRoot?Ke.parentNode.host:Ke.parentNode}return!1})(Ie))return;const Ye=(St=>{const Ke=window.getComputedStyle(St);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(Ie);if((St=>typeof St=="object"&&typeof St.behavior=="function")(he))return he.behavior(Ee(Ie,he));const Ce=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:St,top:Ke,left:Ne}of Ee(Ie,Le(he))){const Ge=Ke-Ye.top+Ye.bottom,ze=Ne-Ye.left+Ye.right;St.scroll({top:Ge,left:ze,behavior:Ce})}}}}]);
|