|
|
(self.webpackChunk=self.webpackChunk||[]).push([[9677],{40001:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});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"},Je=ve,Ce=ie(7657),Ee=function(he,Qe){return it.createElement(Ce.Z,(0,z.Z)({},he,{ref:Qe,icon:Je}))},Be=it.forwardRef(Ee),Ye=Be},73331:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});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"},Je=ve,Ce=ie(7657),Ee=function(he,Qe){return it.createElement(Ce.Z,(0,z.Z)({},he,{ref:Qe,icon:Je}))},Be=it.forwardRef(Ee),Ye=Be},15277:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});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"},Je=ve,Ce=ie(7657),Ee=function(he,Qe){return it.createElement(Ce.Z,(0,z.Z)({},he,{ref:Qe,icon:Je}))},Be=it.forwardRef(Ee),Ye=Be},33853:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});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"},Je=ve,Ce=ie(7657),Ee=function(he,Qe){return it.createElement(Ce.Z,(0,z.Z)({},he,{ref:Qe,icon:Je}))},Be=it.forwardRef(Ee),Ye=Be},61485:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});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"},Je=ve,Ce=ie(7657),Ee=function(he,Qe){return it.createElement(Ce.Z,(0,z.Z)({},he,{ref:Qe,icon:Je}))},Be=it.forwardRef(Ee),Ye=Be},47472:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});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"},Je=ve,Ce=ie(7657),Ee=function(he,Qe){return it.createElement(Ce.Z,(0,z.Z)({},he,{ref:Qe,icon:Je}))},Be=it.forwardRef(Ee),Ye=Be},87395:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});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"},Je=ve,Ce=ie(7657),Ee=function(he,Qe){return it.createElement(Ce.Z,(0,z.Z)({},he,{ref:Qe,icon:Je}))},Be=it.forwardRef(Ee),Ye=Be},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(ln,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ln={},Zt="5.0",ie={},z=null,it=!1,ve=!1,Je=null,Ce=!1,Ee=null,Be=null,Ye=0;Ye<arguments.length;Ye++){var we=arguments[Ye];if(we!==null)switch(typeof we){case"number":Zt=we.toFixed(1);break;case"string":we.match(new RegExp("^[0-9]\\.[0-9]+$"))?Zt=we:Je=we;break;case"object":typeof we.is3D!="undefined"?z=we:ie=we;break;case"boolean":it=we,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)),Je!==null&&ie.id===void 0&&(ie.id=Je);var he="",Qe="",Ie=!1,St=null,Ue=null,Ne=null,Ve=!1,ze=null,ht=null,wt=null,Ot=null,dt=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var qe=function(me){return parseFloat(me)>4?parseFloat(me):5};ln.setHTML5Codebase=function(me,Le){Be=me,ft(me,Le)},ln.setJavaCodebase=ln.setJavaCodebaseVersion=ln.isCompiledInstalled=ln.setPreCompiledScriptPath=ln.setPreCompiledResourcePath=function(){},ln.setHTML5CodebaseVersion=function(me,Le){var Ze=parseFloat(me);if(Ze!==NaN&&Ze<5){console.log("The GeoGebra HTML5 codebase version "+Ze+" is deprecated. Using version latest instead.");return}Ee=me,fe(me,Le)},ln.getHTML5CodebaseVersion=function(){return Ue},ln.getParameters=function(){return ie},ln.setFontsCSSURL=function(me){Ot=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 Le="auto",Ze=ie.id,Nt,bt=!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)$/)?Le=Ae:Ze=arguments[zt]):typeof Ae=="boolean"?bt=Ae:Ae instanceof HTMLElement&&(Nt=Ae)}$t();function $t(){if(!Ce){setTimeout($t,200);return}Le=Dt(Le);var ct=Nt||document.getElementById(Ze);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)&&Le==="html5"&&(delete ie.width,delete ie.height),St=Le,Le==="screenshot")je(ct,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!at()||me())&&We()),ae?(St="screenshot",ut(ct,ie,bt,Le)):Ke(ct,ie,bt)}}};function at(){try{return window.self!==window.top}catch(me){return!0}}function We(){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 Pt=function(me){var Le=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){Ze();return}ie.fileName=ct.url,nt(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()},Ze=function(){ie.onError&&ie.onError(),Gt("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",bt="/materials/"+ie.material_id+"?scope=basic";tt("https://"+Nt+"/api/proxy.php?path="+encodeURIComponent(bt),Le,Ze)};function nt(me){var Le=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ze){me[Ze]=!!me[Ze]}),Le.forEach(function(Ze){ie[Ze]===void 0&&me[Ze]!==void 0&&(ie[Ze]=me[Ze])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function tt(me,Le,Ze){var Nt=new XMLHttpRequest;Nt.open("GET",me),Nt.onload=function(){Le(Nt.responseText)},Nt.onerror=Ze,Nt.send()}ln.isHTML5Installed=function(){return!0},ln.getLoadedAppletType=function(){return St},ln.setPreviewImage=function(me,Le,Ze){ze=me,ht=Le,wt=Ze},ln.removeExistingApplet=function(me,Le){var Ze;typeof me=="string"&&(me=document.getElementById(me)),St=null;var Nt=null;for(Ze=0;Ze<me.childNodes.length;Ze++){var bt=me.childNodes[Ze],zt=bt.className;zt==="applet_screenshot"?Le?(bt.style.display="block",St="screenshot"):bt.style.display="none":zt!=="applet_scaler prerender"&&(me.removeChild(bt),Nt=zt&&zt.indexOf("appletParameters")!=-1?bt.id:null,Ze--)}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(qe(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 pt=function(me,Le,Ze){var Nt=document.createElement("param");Nt.setAttribute("name",Le),Nt.setAttribute("value",Ze),me.appendChild(Nt)},Me=function(me){return me&&me!=="false"},Ke=function(me,Le,Ze){qe(Ue)<=4.2&&(Ze=!0);var Nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ue||ggbHTML5LoadedCodebaseIsWebSimple&&!Ve)&&(Nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bt=document.createElement("div");bt.classList.add("appletParameters","notranslate");var zt=Le.width,Ae=Le.height;if(Le.disableAutoScale=Le.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Le.disableAutoScale,Le.width!==void 0)if(qe(Ue)<=4.4)Me(Le.showToolBar)&&(Le.height-=7),Me(Le.showAlgebraInput)&&(Le.height-=37),Le.width<605&&Me(Le.showToolBar)&&(Le.width=605,zt=605);else{var $t=100;(Me(Le.showToolBar)||Me(Le.showMenuBar))&&(Le.hasOwnProperty("customToolBar")&&(Le.customToolbar=Le.customToolBar),$t=Me(Le.showMenuBar)?245:155),zt<$t&&(Le.width=$t,zt=$t)}bt.style.border="none",bt.style.display="inline-block";for(var ct in Le)Le.hasOwnProperty(ct)&&ct!=="appletOnLoad"&&bt.setAttribute("data-param-"+ct,Le[ct]);Ot&&bt.setAttribute("data-param-fontscssurl",Ot),ln.resize=function(){GGBAppletUtils.responsiveResize(me,Le)},window.addEventListener("resize",function(yt){ln.resize()});var ae=typeof Le.appletOnLoad=="function"?Le.appletOnLoad:function(){};if(!Ze&&Le.width!==void 0){Le.hasOwnProperty("showSplash")||bt.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=Xe(zt,Ae,Le.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%"),qe(Ue)>=5?(Le.appletOnLoad=function(yt){var vt=me.querySelector(".ggb_preview");vt&&vt.parentNode.removeChild(vt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(yt)},ee||te.appendChild(oe)):bt.appendChild(oe),te.appendChild(bt),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(bt),me.appendChild(se),Le.appletOnLoad=function(yt){ln.resize(),ae(yt)}}function ne(yt,vt){vt&&typeof vt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(yt,vt.appletOnLoad):renderGGBElement(yt),Gt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",vt)}function pe(yt,vt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:yt,params:vt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Kt){ne(Kt.article,Kt.params)}),html5AppletsToProcess=null)},qe(Ue)<5&&(yt.className+=" geogebraweb")):ne(yt,vt)}if(Nt){scriptLoadStarted=!0;for(var be=0;be<bt.childNodes.length;be++){var st=bt.childNodes[be].tagName;st==="TABLE"&&(bt.removeChild(bt.childNodes[be]),be--)}if(ggbHTML5LoadedScript!==null){var Pe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pe!=null&&Pe.parentNode.removeChild(Pe)}var _e=document.createElement("script"),ot=function(){pe(bt,Le)};_e.src=Qe+Ne,ggbHTML5LoadedCodebaseIsWebSimple=Ve,ggbHTML5LoadedCodebaseVersion=Ue,ggbHTML5LoadedScript=_e.src,Gt("GeoGebra HTML5 codebase loaded: '"+Qe+"'.",Le),!Be&&(!Ee||Ee=="5.0")?(Ve?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ot()):Qe.requirejs?__webpack_require__.e(4510).then(function(){var yt=[__webpack_require__(4510)];ot.apply(null,yt)}.bind(this)).catch(__webpack_require__.oe):(_e.onload=ot,me.appendChild(_e))}else pe(bt,Le);Le.height=Ae,Le.width=zt},je=function(me,Le,Ze){var Nt=Xe(Le.width,Le.height,Le.borderColor,Ze),bt=document.createElement("div");bt.style.position="relative",bt.style.display="block",bt.style.width=Le.width+"px",bt.style.height=Le.height+"px",bt.className="applet_screenshot applet_scaler"+(Ze?" applet_screenshot_play":""),bt.appendChild(Nt);var zt=GGBAppletUtils.getScale(Le,me,Ze);Ze?(me.appendChild(Oe()),window.GGBT_wsf_view||(me.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),me.appendChild(bt),zt!==1&&!isNaN(zt)&&(GGBAppletUtils.scaleElement(bt,zt),bt.style.width=Le.width+"px",bt.style.height=Le.height+"px",bt.parentNode.style.width=Le.width*zt+"px",bt.parentNode.style.height=Le.height*zt+"px"),ln.resize=function(){ue(me,Nt,bt,Ze)},window.addEventListener("resize",function(Ae){ln.resize()}),ln.resize()};function ue(me,Le,Ze,Nt){if(me.contains(Le)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(me)}var bt=GGBAppletUtils.getScale(ie,me,Nt);Ze.parentNode!==null&&(!isNaN(bt)&&bt!==1?(GGBAppletUtils.scaleElement(Ze,bt),Ze.parentNode.style.width=ie.width*bt+"px",Ze.parentNode.style.height=ie.height*bt+"px"):(GGBAppletUtils.scaleElement(Ze,1),Ze.parentNode.style.width=ie.width+"px",Ze.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(me),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ln.onExitFullscreen=function(me,Le){Le.appendChild(me)};var ut=function(me,Le,Ze,Nt){je(me,Le,!0);for(var bt=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,Le.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"))):Ke(ct,Le,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else St=Nt,Ke(me,Le,!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",bt,!1),zt[Ae].addEventListener("ontouchstart",bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(me),We()&&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 Le='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ze=document.createElement("style");Ze.styleSheet?Ze.styleSheet.cssText=Le:Ze.appendChild(document.createTextNode(Le)),document.getElementsByTagName("head")[0].appendChild(Ze)}return me},Xe=function(me,Le,Ze,Nt){var bt=document.createElement("div");bt.className="ggb_preview",bt.style.position="absolute",bt.style.zIndex="90",bt.style.width=me-2+"px",bt.style.height=Le-2+"px",bt.style.top="0px",bt.style.left="0px",bt.style.overflow="hidden",bt.style.backgroundColor="white";var zt="lightgrey";Ze!==void 0&&(Ze==="none"?zt="transparent":zt=Ze),bt.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,ht!==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",ht),$t.setAttribute("width",ct),$t.setAttribute("height",ae);var te=(me-ct)/2,ee=(Le-ae)/2;$t.style.left=te+"px",$t.style.top=ee+"px",bt.appendChild($t)}}return bt.appendChild(Ae),bt},Dt=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},xe=["web","webSimple","web3d","tablet","tablet3d","phone"],fe=function(me,Le){if(Ue=me,Le){ft(Ue,!0);return}var Ze=!it;if(Ze){var Nt=qe(Ue);!isNaN(Nt)&&Nt<4.4&&(Ze=!1)}var bt,zt;window.location.protocol.substr(0,4)==="http"?bt=window.location.protocol:bt="http:";var Ae=Ue.indexOf("//");Ae>0?zt=Ue:Ae===0?zt=bt+Ue:zt="https://www.geogebra.org/apps/5.2.814.0/";for(var $t in xe)if(Ue.slice(xe[$t].length*-1)===xe[$t]||Ue.slice((xe[$t].length+1)*-1)===xe[$t]+"/"){ft(zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ze&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(ie.showToolBar)&&!Me(ie.showMenuBar)&&!Me(ie.showAlgebraInput)&&!Me(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?zt+="webSimple/":zt+="web3d/",ft(zt,!1)},ft=function(me,Le){if(me.requirejs){Qe=me;return}me.slice(-1)!=="/"&&(me+="/"),Qe=me,Le===null&&(Le=me.indexOf("http")===-1),Ie=Le,Ne="web.nocache.js",Ve=!1;var Ze=Qe.split("/");Ze.length>1&&(!Le&&Ze[Ze.length-2]==="webSimple"?(Ne="webSimple.nocache.js",Ve=!0):xe.indexOf(Ze[Ze.length-2])>=0&&(Ne=Ze[Ze.length-2]+".nocache.js")),Ze=me.split("/"),Ue=Ze[Ze.length-3],Ue.substr(0,4)==="test"?Ue=Ue.substr(4,1)+"."+Ue.substr(5,1):(Ue.substr(0,3)==="war"||Ue.substr(0,4)==="beta")&&(Ue="5.0");var Nt=parseFloat(Ue);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",Le))},Gt=function(me,Le){window.console&&window.console.log&&(!Le||typeof Le.showLogging=="undefined"||Le.showLogging&&Le.showLogging!=="false")&&console.log(me)};ie.material_id!==void 0?Pt(Ct):Ct();function Ct(){var me=Zt;Ee!==null?me=Ee:parseFloat(me)<5&&(me="5.0"),fe(me,!1),Be!==null&&ft(Be,Ie),Ce=!0}return ln},GGBAppletUtils=function(){"use strict";function ln(){return window.GGBT_wsf_edit!==void 0}function Zt(Ce,Ee){Ee!=1?(Ce.style.transformOrigin="0% 0% 0px",Ce.style.webkitTransformOrigin="0% 0% 0px",Ce.style.transform="scale("+Ee+","+Ee+")",Ce.style.webkitTransform="scale("+Ee+","+Ee+")",Ce.style.maxWidth="initial",Ce.querySelector(".ggb_preview")!==null&&(Ce.querySelector(".ggb_preview").style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ce.style.transform="none",Ce.style.webkitTransform="none")}function ie(Ce,Ee,Be,Ye,we,he){var Qe=null;if(he!=null&&he!="")for(var Ie=Ce.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+he+" ")>-1){Qe=Ie;break}else Ie=Ie.parentNode;var St=0,Ue=0,Ne=0,Ve=0,ze=0,ht=0,wt=0;if(Qe)St=Qe.offsetWidth,Ue=Math.max(Ye?Qe.offsetWidth:0,Qe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(St=Math.min(window.innerWidth,document.documentElement.clientWidth),Ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=St):(St=window.innerWidth,Ue=window.innerHeight,Ne=window.innerWidth),Ce){var Ot=Ce.getBoundingClientRect();Ot.left>0&&Ot.left<=St&&(we===void 0||!we)&&(document.dir==="rtl"?(ze=St-Ot.width-Ot.left,ht=Ne<=480?10:30):(ht=Ot.left,ze=Ne<=480?10:30),Ve=ht+ze)}if(Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var dt=Ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve=40,wt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ve=0,wt=40)}}return Ce&&((Be===void 0||!Be)&&Ee>0&&Ee+Ve<St?St=Ee:St-=Ve,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Be===void 0||!Be)&&(Ue-=wt)),{width:St,height:Ue}}function z(Ce,Ee,Be,Ye,we){if(Ce.isScreenshoGenerator)return 1;var he=Ye!==void 0&&Ye,Qe=Ce.noScaleMargin!=null&&Ce.noScaleMargin,Ie=function(dt){return dt&&dt!=="false"},St=Ie(Ce.autoHeight),Ue=ie(Ee,Ce.width,Be,St,he&&window.GGBT_wsf_view||Qe,we),Ne=parseInt(Ue.width),Ve=Ce.width,ze=Ce.height;if(Ve===void 0){var ht=Ee.querySelector(".appletParameters");ht&&(Ve=ht.offsetWidth,ze=ht.offsetHeight)}var wt=Ne/Ve,Ot=he?1:Ue.height/ze;return Be!==void 0&&!Be&&(wt=Math.min(1,wt),Ot=Math.min(1,Ot)),Math.min(wt,Ot)}function it(Ce,Ee,Be){var Ye=1,we,he=!1;if(Ce.hasOwnProperty("allowUpscale")&&(he=Ce.allowUpscale),Ce.hasOwnProperty("scale")&&(Ye=parseFloat(Ce.scale),(isNaN(Ye)||Ye===null||Ye===0)&&(Ye=1),Ye>1&&(he=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Ce.hasOwnProperty("disableAutoScale")&&Ce.disableAutoScale))we=z(Ce,Ee,he,Be,Ce.scaleContainerClass);else return Ye;return he&&(!Ce.hasOwnProperty("scale")||Ye===1)?we:Math.min(Ye,we)}function ve(Ce){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),Be=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=Ce.getBoundingClientRect(),we=(Ee-Ye.width)/2,he=(Be-Ye.height)/2;he<0&&(he=0),Ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?Ce.style.left="40px":Ce.style.left=we+"px",Ce.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?Ce.style.top="40px":Ce.style.top=he+"px",Ce.style.left=we+"px")}function Je(Ce,Ee){var Be=Ce.querySelector(".appletParameters");if(Be){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==Be.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}if(Be.parentElement&&/fullscreen/.test(Be.parentElement.className))return;var Ye=it(Ee,Ce);ln()&&Be.setAttribute("data-param-scale",Ye);for(var we=null,he=0;he<Ce.childNodes.length;he++)if(Ce.childNodes[he].className!==void 0&&Ce.childNodes[he].className.match(/^applet_scaler/)){we=Ce.childNodes[he];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var Qe=Ee.id!==void 0?Ee.id:"ggbApplet",Ie=window[Qe];(Ie==null||!Ie.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(Ye)&&Ye!==1?(we.parentNode.style.width=Ee.width*Ye+"px",we.parentNode.style.height=Ee.height*Ye+"px",Zt(we,Ye)):(Zt(we,1),we.parentNode.style.width=Ee.width+"px",we.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ve(Ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Be).parents(".content-added-content"))}}return{responsiveResize:Je,isFlexibleWorksheetEditor:ln,positionCenter:ve,getScale:it,scaleElement:Zt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ln=n.location.search;return ln.indexOf(J)!=-1||ln.indexOf(K)!=-1}function q(ln,Zt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ln){var Zt=s[L].bindings;s[L].bindings=function(){for(var ie=Zt?Zt():{},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 Zt=document.compatMode==U?V:W;t.write(Zt+X),t.close()}}}function w(ln){function Zt(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 Je(){if(!ve){if(!it())return;ve=!0,z(),o.removeEventListener&&o.removeEventListener(Z,Je,!1),Ce&&clearInterval(Ce)}}o.addEventListener&&o.addEventListener(Z,Je,!1);var Ce=setInterval(function(){Je()},$)}function ie(z){var it=u(),ve=it.body,Je=it.createElement(_);Je.language=ab,Je.crossOrigin=W,Je.src=z,webModule.__errFn&&(Je.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ve.appendChild(Je)}Zt(function(){ie(ln)})}webModule.__startLoadingFragment=function(ln){return C(ln)},webModule.__installRunAsyncCode=function(ln){var Zt=u(),ie=Zt.body,z=Zt.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 Zt=c[ln];return Zt==null?null:Zt},r=d,webModule.__errFn=e}function B(){function ln(Ce){var Ee=Ce.lastIndexOf(rb);Ee==-1&&(Ee=Ce.length);var Be=Ce.indexOf(sb);Be==-1&&(Be=Ce.length);var Ye=Ce.lastIndexOf(tb,Math.min(Be,Ee));return Ye>=O?Ce.substring(O,Ye+P):W}function Zt(Ce){if(!Ce.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=Ce+vb,Ce=ln(Ee.src)}return Ce}function ie(){var Ce=__gwt_getMetaProperty(wb);return Ce!=null?Ce:W}function z(){for(var Ce=o.getElementsByTagName(_),Ee=O;Ee<Ce.length;++Ee)if(Ce[Ee].src.indexOf(xb)!=-1)return ln(Ce[Ee].src);return W}function it(){var Ce=o.getElementsByTagName(yb);return Ce.length>O?Ce[Ce.length-P].href:W}function ve(){var Ce=o.location;return Ce.href==Ce.protocol+zb+Ce.host+Ce.pathname+Ce.search+Ce.hash}var Je=ie();return Je==W&&(Je=z()),Je==W&&(Je=it()),Je==W&&ve()&&(Je=ln(o.location.href)),Je=Zt(Je),Je}function C(ln){return ln.match(/^\//)||ln.match(/^[a-zA-Z]+:\/\//)?ln:webModule.__moduleBase+ln}function D(){var ln=[],Zt=O,ie=[],z=[];function it(Ce){var Ee=z[Ce](),Be=ie[Ce];if(Ee in Be)return Ee;var Ye=[];for(var we in Be)Ye[Be[we]]=we;throw r&&r(Ce,Ye,Ee),null}if(__gwt_isKnownPropertyValue=function(Ce,Ee){return Ee in ie[Ce]},webModule.__getPropMap=function(){var Ce={};for(var Ee in ie)ie.hasOwnProperty(Ee)&&(Ce[Ee]=it(Ee));return Ce},webModule.__computePropValue=it,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var Je=ve.indexOf(Db);Je!=-1&&(Zt=parseInt(ve.substring(Je+P),$),ve=ve.substring(O,Je))}catch(Ce){}return webModule.__softPermutationId=Zt,C(ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(ln,Zt,ie){"use strict";ie.d(Zt,{Ax:function(){return Je},Ds:function(){return Ce},KI:function(){return Be},SI:function(){return ve},f1:function(){return it}});var z=ie(14185);function it(Ye){let we=!0;if(Ye.length>0){for(let he=0;he<Ye.length;he++)if(Ye[he].compile_success==0||!Ye[he].compile_success){we=!1;break}}else we=!1;return we}function ve(Ye,we=""){let he=[];for(let Qe=0;Qe<Ye.length;Qe++){let Ie=Ye[Qe],St=we?`${we}/${Ie.name}`:`${Ie.name}`;he.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:St})}return he}function Je(Ye,we,he){for(let Qe=0;Qe<Ye.length;Qe++){let Ie=Ye[Qe];if(Ie.key===we){Ie.children=he;break}Ie.children&&Je(Ie.children,we,he)}return Ye}function Ce(Ye,we,he){let Qe;return function(){let Ie=this,St=arguments,Ue=function(){Qe=null,he||Ye.apply(Ie,St)},Ne=he&&!Qe;clearTimeout(Qe),Qe=setTimeout(Ue,we),Ne&&Ye.apply(Ie,St)}}const Ee=!0,Be=z.Z.API_SERVER},40254:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Qe}});var z=ie(59301),it={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ve=ie(92310),Je=ie.n(ve),Ce=ie(29787),Ee=ie(2859),Be=ie(49317),Ye=ie(76406),we=(Ie,St,Ue)=>new Promise((Ne,Ve)=>{var ze=Ot=>{try{wt(Ue.next(Ot))}catch(dt){Ve(dt)}},ht=Ot=>{try{wt(Ue.throw(Ot))}catch(dt){Ve(dt)}},wt=Ot=>Ot.done?Ne(Ot.value):Promise.resolve(Ot.value).then(ze,ht);wt((Ue=Ue.apply(Ie,St)).next())}),Qe=({data:Ie,className:St,fullWidth:Ue,style:Ne={},onClose:Ve,onOk:ze,showFullTools:ht,noAssociationId:wt})=>{const Ot=(0,z.useRef)(null),dt=(0,z.useRef)(null),qe=(0,z.useRef)(null),at=(0,z.useRef)(null),[We,Pt]=(0,z.useState)(!1),[nt,tt]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(qe.current||(qe.current=document.createElement("style"),document.head.appendChild(qe.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),qe.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&pt()):(document.body.removeAttribute("data-custom"),qe.current&&(document.head.removeChild(qe.current),qe.current=null)),()=>{document.body.removeAttribute("data-custom"),qe.current&&(document.head.removeChild(qe.current),qe.current=null)}),[Ie==null?void 0:Ie.visible]);const pt=()=>we(void 0,null,function*(){Pt(!0),tt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Ye.ZJ)(Ie==null?void 0:Ie.src);Ot.current.src="",Ot.current.src=ue,Ot.current.onload=function(){je()},Pt(!1),tt("")}),Me=ue=>we(void 0,null,function*(){Pt(!0),tt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ut=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:ue.dataUrl}});ut!=null&&ut.id&&!wt?(yield(0,Be.ZP)(`/api/attachments/${Ie.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),Pt(!1),tt("")}),Ke=()=>{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 Xe=document.querySelector(Oe.name);Xe&&Xe.setAttribute("title",Oe.title)})},je=()=>{dt.current=new Ee.hP(Ot.current),dt.current.targetRoot=at.current,dt.current.addEventListener("render",Me),dt.current.addEventListener("beforeclose",Ve),ht&&(dt.current.availableMarkerTypes=dt.current.ALL_MARKER_TYPES,dt.current.uiStyleSettings.redoButtonVisible=!0,dt.current.uiStyleSettings.notesButtonVisible=!0,dt.current.uiStyleSettings.zoomButtonVisible=!0,dt.current.uiStyleSettings.zoomOutButtonVisible=!0,dt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=dt.current.uiStyleSettings,dt.current.show(),Ie!=null&&Ie.snapshotData&&dt.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ke()},300)};return z.createElement(z.Fragment,null,(Ie==null?void 0:Ie.visible)&&z.createElement(Ce.Z,{spinning:We,tip:nt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:at,className:Je()(it.imageDimensions,St,Ue?it.fullWidth:""),style:Ne},z.createElement("img",{className:it.img,ref:Ot}))))}},9057:function(ln,Zt,ie){"use strict";var z=ie(59301),it=ie(77019),ve=ie(5269),Je=ie(31691),Ce=ie(7939),Ee=ie(35883),Be=ie(74501),Ye=ie(48136),we=ie(59301);const he=(0,z.forwardRef)(({callback:Qe,showSaveButton:Ie,value:St=""},Ue)=>{const Ne=(0,z.useRef)(),Ve=[{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}`}]}]}],ht=dt=>{Ne.current.setValue(Ne.current.getValue()+" "+dt.value+" ")},wt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(it.Z,{className:Be.Z.lists,gutter:[10,10]},Ve.map((dt,qe)=>we.createElement(ve.Z,{flex:"110px",className:Be.Z.item},we.createElement("div",null,we.createElement(Ee.Z,{value:`$$${dt.value}$$`}),dt.name),we.createElement("div",{className:Be.Z.children},dt.children.map((at,We)=>we.createElement("div",{key:We},we.createElement("h1",null,at.name),we.createElement(it.Z,{gutter:[10,10]},at.data.map((Pt,nt)=>we.createElement(ve.Z,{key:nt,onClick:()=>ht(Pt),className:Be.Z.diamond},we.createElement(Ee.Z,{value:"`$$"+Pt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(it.Z,{className:Be.Z.lists,gutter:[10,10]},ze.map((dt,qe)=>we.createElement(ve.Z,{flex:"110px",className:Be.Z.item},we.createElement("div",null,we.createElement(Ee.Z,{value:"`$$"+dt.value+"$$`"}),dt.name),we.createElement("div",{className:Be.Z.children},dt.children.map((at,We)=>we.createElement("div",{key:We},at.name&&we.createElement("h1",null,at.name),we.createElement(it.Z,{gutter:[10,10]},at.data.map((Pt,nt)=>we.createElement(ve.Z,{key:nt,onClick:()=>ht(Pt),className:Be.Z.diamond},we.createElement(Ee.Z,{value:"`$$"+Pt.value+"$$`"}))))))))))}],Ot=()=>{var dt=document.createElement("div");dt.innerHTML=Ne.current.getValue();var qe=dt.innerText;return Qe&&Qe(qe),qe};return(0,z.useImperativeHandle)(Ue,()=>({getData:Ot})),we.createElement("div",{className:Be.Z.mathWrap},we.createElement(Je.default,{defaultActiveKey:"1",items:wt}),we.createElement("math-field",{locale:"zh_cn",className:Be.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ne,style:{width:800,marginTop:30,fontSize:18}},St||""),Ie&&we.createElement("div",{className:Be.Z.button},we.createElement(Ce.ZP,{size:"large",onClick:Ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=he},90736:function(ln,Zt,ie){"use strict";var z=ie(59301),it=ie(4977),ve=ie(7939),Je=Object.defineProperty,Ce=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,he=(Ue,Ne,Ve)=>Ne in Ue?Je(Ue,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ue[Ne]=Ve,Qe=(Ue,Ne)=>{for(var Ve in Ne||(Ne={}))Ye.call(Ne,Ve)&&he(Ue,Ve,Ne[Ve]);if(Be)for(var Ve of Be(Ne))we.call(Ne,Ve)&&he(Ue,Ve,Ne[Ve]);return Ue},Ie=(Ue,Ne)=>Ce(Ue,Ee(Ne));const St=({img:Ue,buttonProps:Ne={},styles:Ve={},customText:ze,ButtonText:ht,ButtonClick:wt,Buttonclass:Ot,ButtonTwo:dt,imgStyles:qe,loading:at=!1,className:We=""})=>z.createElement("section",{className:`tc animated fadeIn ${We}`,style:Qe({color:"#999",margin:"100px auto",visibility:at?"hidden":"visible"},Ve)},z.createElement("img",{src:Ue||it,style:Ie(Qe({},qe),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},ze||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ht&&z.createElement(ve.ZP,Qe({className:Ot,onClick:wt},Ne),ht),dt&&dt);Zt.Z=St},86974:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ot}});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),Je=ie(70557),Ce=ie(34728),Ee=ie(25399),Be=ie(76406),Ye=ie(84849),we=ie(90736),he=ie(14185),Qe=ie(52078),Ie=ie(59301),St=Object.defineProperty,Ue=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,ze=(dt,qe,at)=>qe in dt?St(dt,qe,{enumerable:!0,configurable:!0,writable:!0,value:at}):dt[qe]=at,ht=(dt,qe)=>{for(var at in qe||(qe={}))Ne.call(qe,at)&&ze(dt,at,qe[at]);if(Ue)for(var at of Ue(qe))Ve.call(qe,at)&&ze(dt,at,qe[at]);return dt},wt=(dt,qe,at)=>new Promise((We,Pt)=>{var nt=Me=>{try{pt(at.next(Me))}catch(Ke){Pt(Ke)}},tt=Me=>{try{pt(at.throw(Me))}catch(Ke){Pt(Ke)}},pt=Me=>Me.done?We(Me.value):Promise.resolve(Me.value).then(nt,tt);pt((at=at.apply(dt,qe)).next())}),Ot=({editOffice:dt="view",data:qe,issaver:at,onSaver:We,theme:Pt,type:nt,filename:tt,monacoEditor:pt,className:Me,style:Ke,close:je,onClose:ue,hasMask:ut,disabledDownload:Oe,onImgDimensions:Xe,showNodata:Dt,recordInfo:xe})=>{const[fe,ft]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Gt,Ct]=(0,z.useState)(""),[me,Le]=(0,z.useState)(),Ze=window.ENV==="build"?"/react/build":"",Nt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,zt=10*(1024*1024),Ae=(0,z.useRef)();qe!=null&&qe.startsWith("/api")&&nt!=="txt"&&(qe=he.Z.API_SERVER+qe);const $t=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();tt&&pt&&(pt.filename=tt),(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(be=>{let st=be.split("=");st[0]==="_educoder_session"&&Ct(st[1])})},[]),(0,z.useEffect)(()=>{nt==="office"&&(qe.indexOf("bigfilescdn.")>-1||qe.indexOf("bigfiles1")>-1?Le({url:qe,fileType:$t(qe),model:qe.indexOf("model=edit")?"edit":"view"}):qe.indexOf("coze")>-1?Le({url:qe,fileType:"doc",model:"view"}):ae())},[nt,qe]);function ct(se){return wt(this,null,function*(){se.data.type==="pdfdata"&&(We(se.data.data),window.removeEventListener("message",ct,!1)),console.log("mess---:",se.data)})}const ae=()=>wt(void 0,null,function*(){console.log("data:",qe);let se=qe;qe.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const pe=yield(0,Ye.gJ)({attachment_id:ne});pe.url=Nt+pe.url,Le(pe)}),te=()=>{if(qe.startsWith("http")||qe.startsWith("blob:")){ee();return}(0,Be.Sv)(tt||"educoder",qe,tt)},ee=()=>{xe&&(0,Qe.fc)({id:xe==null?void 0:xe.id,watch_type:1,course_id:xe==null?void 0:xe.course_id}),(0,Be.Nd)(tt||"educoder",decodeURIComponent(qe))};(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 Ie.createElement("div",{style:ht({},Ke||{}),className:`${ut&&it.bgBlack} ${nt?it.wrp:"hide"}`},!!nt&&je&&Ie.createElement("div",{id:"closePop",className:it.close,ref:Ae},!!Xe&&Ie.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ae.current},Ie.createElement("span",{onClick:()=>{ue(),Xe()}},Ie.createElement("i",{className:"icon-yulanpizhu"}))),!Oe&&window.parent===window&&Ie.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ae.current},Ie.createElement("span",{onClick:ee},Ie.createElement("i",{className:"icon-quxiaozhiding"}))),at&&Ie.createElement(Ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ae.current},Ie.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",ct,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ie.createElement("i",{className:"icon-baocun"}))),Ie.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ae.current},Ie.createElement("span",{className:"",onClick:()=>{ue()}},Ie.createElement("i",{className:"icon-guanbi1"})))),Ie.createElement("div",{className:`${it[Me]} ${Me} ${it.monaco} ${nt==="txt"?"show":"hide"}`},nt==="txt"&&Ie.createElement(Ie.Fragment,null,Ie.createElement(Ce.ZP,ht({},pt)))),nt==="audio"&&Ie.createElement("audio",{controls:!0,src:`${(qe==null?void 0:qe.indexOf("http://"))>-1||(qe==null?void 0:qe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${qe}`,autoPlay:!0}),nt==="video"&&Ie.createElement(Ie.Fragment,null,(qe==null?void 0:qe.indexOf("http"))>-1?Ie.createElement("video",{controls:!0,src:`${qe}`,autoPlay:!0}):Ie.createElement("video",{controls:!0,src:`data:video/mp4;base64,${qe}`,autoPlay:!0})),nt==="office"&&me&&Ie.createElement("iframe",{src:`${Ze}/office.html?key=${me.key}&url=${btoa(me.url)}&callbackUrl=${Nt+(me.callbackUrl||"")}&fileType=${me.fileType}&title=${me.title||""}&model=${dt}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Oe}`}),nt==="html"&&Ie.createElement("iframe",{src:qe+"&disposition=inline"}),nt==="pdf"&&Ie.createElement("iframe",{id:"pdfiframe",src:`${Ze}/js/pdf/index.html?filename=${tt||"educoder.pdf"}&url=${encodeURIComponent(qe)}&disabledDownload=${!!Oe}&model=${dt}`}),nt==="image"&&Ie.createElement("img",{src:`${(qe==null?void 0:qe.indexOf("http://"))>-1||(qe==null?void 0:qe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${qe}`}),(nt==="other"||nt==="download")&&Ie.createElement(Ie.Fragment,null,Dt?Ie.createElement(we.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ie.createElement(ve.ZP,{icon:Ie.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Oe},"\u4E0B\u8F7D")}):Ie.createElement(ve.ZP,{type:"primary",size:"middle",onClick:te,disabled:Oe},Ie.createElement(Je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),nt==="flowChart"&&Ie.createElement("div",{className:"embed"},Ie.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${qe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(ln,Zt,ie){"use strict";ie.d(Zt,{z:function(){return pt},Z:function(){return Me}});var z=ie(59301),it=ie(46214),ve=ie(20047),Je=ie(64018),Ce=ie(16471),Ee=ie(14185),Be=ie(76406),Ye=ie(15342),we=ie(44104),he=ie(7939),Qe=ie(1012),Ie=ie(86974),St=ie(59301),Ne=({html:Ke})=>{const je=(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=je.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=Ke,Oe.appendChild(ue.current);const Xe=document.createElement("style");return Xe.textContent=ut,Oe.appendChild(Xe),()=>{Oe.innerHTML=""}},[]),(0,z.useEffect)(()=>{ue.current&&(ue.current.innerHTML=Ke)},[Ke]),St.createElement("div",{ref:je})};function Ve(Ke){const je=["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(${je.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),ut=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Ke.replace(ue,"").replace(ut,"").trim()}var ze={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ht=Object.defineProperty,wt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,qe=(Ke,je,ue)=>je in Ke?ht(Ke,je,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Ke[je]=ue,at=(Ke,je)=>{for(var ue in je||(je={}))Ot.call(je,ue)&&qe(Ke,ue,je[ue]);if(wt)for(var ue of wt(je))dt.call(je,ue)&&qe(Ke,ue,je[ue]);return Ke};const We="@\u2581\u2581@",Pt="@\u2581@",nt=/<pre[^>]*>/g;function tt(Ke){let je=document.createElement("div");return je.innerHTML=Ke,je.childNodes.length===0?"":je.childNodes[0].nodeValue}const pt=(Ke,je)=>{Ke=Ke||"";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,Xe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return je?Ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Dt,xe,fe,ft,Gt,Ct,me)=>{const Le=xe||ft||Ct,Ze=fe||Gt||me||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Le+Ze+"&t="+(0,Be.Jn)(Le,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ke=Ke.replace(Xe,(Dt,xe,fe,ft,Gt,Ct,me)=>{const Le=xe||ft||Ct,Ze=fe||Gt||me||"?";return Ee.Z.API_SERVER+"/attachments/download/"+Le+Ze+"&t="+(0,Be.Jn)(Le,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replace(ue,(Dt,xe,fe,ft,Gt,Ct,me)=>{const Le=xe||ft||Ct,Ze=fe||Gt||me||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Le+Ze+"&t="+(0,Be.Jn)(Le,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replace(ut,(Dt,xe,fe,ft,Gt)=>{const Ct=xe||ft,me=fe||Gt||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+Ct+me+Ct+me+"&t="+(0,Be.Jn)(Ct,Date.now())}).replace(Oe,(Dt,xe,fe,ft,Gt)=>{const Ct=xe||ft,me=fe||Gt||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+Ct+me+Ct+me+"&t="+(0,Be.Jn)(Ct,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Ke)};var Me=({value:Ke="",edit:je=!1,className:ue,showTextOnly:ut,showLines:Oe,style:Xe={},stylesPrev:Dt={},highlightKeywords:xe,showProgramFill:fe,isProgramFill:ft,disabledFill:Gt=!1,programFillValue:Ct,openEditor:me=()=>{},onFillChange:Le=bt=>{},onFillBlur:Ze=()=>{},onFillFocus:Nt=()=>{}})=>{let bt=Ve(String(Ke||""));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,Qe.Z)()),ne={},pe=xt=>/<style[\s\S]*?>/i.test(xt||""),be=(xt,qt,Wt)=>{const De=document.createElement(xt===Pt?"input":"textarea");De.style.width="100%",De.style.height=xt===Pt?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=qt;const et=Object.keys(ne).length;return ne[et]=De,`<span class="edu-program-fill-wrap ${xt===Pt?"":"show"}" style="width:${xt===Pt?"600px":"100%"}" title=${Wt||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function st(xt){return xt=xt.replace(/!\[.*?\]\(.*?\)/g,""),xt=xt.replace(/\[.*?\]\(.*?\)/g,""),xt=xt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),xt=xt.replace(/<embed.*?>/g,""),xt=xt.replace(/<img.*?>/g,""),xt=xt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),xt=xt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),xt=xt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),xt=xt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),xt}const Pe=xt=>!ut&&pe(bt)?xt:xt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(qt,Wt){let De=Wt.replace(/(\n|\r)/g,"").split("}"),et=[];return De.map(Bt=>{Bt!=""&&et.push(`.${se.current} ${Bt}`)}),`<style>${et.join("}")}</style>`}),_e=(0,z.useMemo)(()=>{(0,ve.Iy)();try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,et=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Bt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Rt=/\(\/attachments\/download\//g;bt=bt.replace(Rt,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(De,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(et,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(Bt,'"'+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 bt=bt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(et,Bt,Rt){var ke;return++De,be(et,De,(ke=Ct==null?void 0:Ct[De])==null?void 0:ke.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Pe(bt||"")}</pre>`}let xt=Pe(bt);xt=(0,ve.ZP)(xt);const qt=(0,ve.ez)();bt.match(/\[TOC\]/)&&(xt=xt.replace("<p>[TOC]</p>",(0,ve.Qv)()),(0,ve.Iy)()),xt=xt.replace(/(__special_katext_id_\d+__)/g,(De,et)=>{const{type:Bt,expression:Rt}=qt[et];return(0,Ye.renderToString)(tt(Rt)||"",{displayMode:Bt==="block",throwOnError:!1,output:"html"})}),xt=xt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ve.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=xt,ut)return Wt.innerText;if(xe){const De=xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Kt(Wt,De),Wt.innerHTML}return setTimeout(()=>tn(),500),Wt.innerHTML},[bt,xe]);(0,z.useEffect)(()=>{jt.current&&jt.current.querySelectorAll(["input","textarea"]).forEach(qt=>{qt.oninput=ot,qt.onblur=yt,qt.onfocus=vt})},[ee]),(0,z.useEffect)(()=>{var xt,qt,Wt,De,et;if(Ct!=null&&Ct.length)try{const Bt=jt.current.querySelectorAll(".edu-program-fill-score"),Rt=jt.current.querySelectorAll('[name="edu-program-fill"]');for(const[ke,He]of Rt.entries())He.value=((xt=Ct==null?void 0:Ct[ke])==null?void 0:xt.value)||"",((qt=Ct==null?void 0:Ct[ke])==null?void 0:qt.type)==="warning"?He.className="program-fill-warning":((Wt=Ct==null?void 0:Ct[ke])==null?void 0:Wt.type)==="success"?He.className="program-fill-success":He.className="";for(const[ke,He]of Bt.entries())He.innerHTML=(De=Ct==null?void 0:Ct[ke])!=null&&De.score?`${(et=Ct==null?void 0:Ct[ke])==null?void 0:et.score}\u5206`:"";oe(Ct)}catch(Bt){console.log(Bt,"error")}},[Ct]);const ot=xt=>{ee[xt.target.dataset.id]=ee[xt.target.dataset.id]||{},ee[xt.target.dataset.id].value=xt.target.value,oe([...ee]),Le(ee,xt.target.dataset.id)},yt=xt=>{ee[xt.target.dataset.id]=ee[xt.target.dataset.id]||{},ee[xt.target.dataset.id].value=xt.target.value,oe([...ee]),Ze(ee,xt.target.dataset.id)},vt=xt=>{ee[xt.target.dataset.id]=ee[xt.target.dataset.id]||{},ee[xt.target.dataset.id].value=xt.target.value,oe([...ee]),Nt(ee,xt.target.dataset.id)};function Kt(xt,qt){return xt.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 et=document.createElement("span");et.innerHTML=Wt.textContent.replace(new RegExp(qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Wt.replaceWith(et)}})}const jt=(0,z.useRef)();ve.jb.WebkitLineClamp=Oe,Oe&&(Xe=at(at({},Xe),ve.jb));function Ht(xt){let qt=xt.target;if(qt.tagName.toUpperCase()==="A"){let Wt=qt.getAttribute("href");if(Wt.indexOf("office")>-1)xt.preventDefault(),ct(Wt),te("office");else if(Wt.indexOf("application/pdf")>-1)xt.preventDefault(),ct(Wt),te("pdf");else if(Wt.indexOf("text/html")>-1)xt.preventDefault(),ct(Wt),te("html");else if(Wt.startsWith("#")){xt.preventDefault();let De=document.getElementById(Wt.replace("#",""));De&&De.scrollIntoView(!0)}}}const tn=()=>{var xt;const qt=(xt=jt.current)==null?void 0:xt.querySelectorAll("video");qt==null||qt.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(Ce.ZP.isSupported()){var De=new Ce.ZP;De.loadSource(Wt.src),De.attachMedia(Wt)}}})};(0,z.useEffect)(()=>{if(jt.current&&_e&&_e.match(nt)&&window.PR.prettyPrint(),jt.current)return jt.current.addEventListener("click",Ht),()=>{var xt;(xt=jt.current)==null||xt.removeEventListener("click",Ht),(0,ve.AL)(),(0,ve.Iy)()}},[_e,jt.current,Ht]);const Qt=xt=>{xt.target.nodeName==="IMG"&&xt.target.className.indexOf("draw-flowchart")>-1?(zt.current.style.zIndex=1,zt.current.style.display="flex",zt.current.style.width=xt.target.clientWidth+"px",zt.current.style.height=xt.target.clientHeight+"px",zt.current.style.top=xt.target.offsetTop+"px",zt.current.style.left=xt.target.offsetLeft+"px",xt.target.id&&(Ae.current=xt.target.id)):zt.current.style.display="none"},nn=()=>{zt.current.style.display="none"};return(0,z.useEffect)(()=>{var xt;const qt=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(xt=jt.current)==null||xt.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} `},_e),!ut&&!pe(_e)&&z.createElement("div",{ref:jt,style:at({},Xe),onMouseOver:Qt,className:`${ue||""} ${Gt?"disabled-fill":""} markdown-body ${ze.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:_e}}),!ut&&pe(_e)&&z.createElement(Ne,{html:_e}),z.createElement("div",{ref:zt,className:`${ze.button} ${je?"":ze.previewFlowChart}`},z.createElement(we.Z,null,z.createElement(he.ZP,{onClick:()=>{je?me(Ae.current):(ct(Ae.current),te("flowChart"))}},je?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Ie.Z,{close:!0,data:$t,type:$t!=null&&$t.length?ae:"",style:at({},Dt),onClose:()=>ct("")}))}},28267:function(ln,Zt,ie){"use strict";ie.d(Zt,{h:function(){return dt}});var z=ie(59301),it=ie(82326),ve=ie(28284),Je=ie(7939),Ce=ie(89780),Ee=ie.n(Ce),Be=ie(88319),Ye=ie(94896),we=Object.defineProperty,he=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ne=(qe,at,We)=>at in qe?we(qe,at,{enumerable:!0,configurable:!0,writable:!0,value:We}):qe[at]=We,Ve=(qe,at)=>{for(var We in at||(at={}))St.call(at,We)&&Ne(qe,We,at[We]);if(Ie)for(var We of Ie(at))Ue.call(at,We)&&Ne(qe,We,at[We]);return qe},ze=(qe,at)=>he(qe,Qe(at));const ht=it.default.Option,wt={labelCol:{span:4},wrapperCol:{span:20}},Ot={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Zt.Z=({callback:qe,onCancel:at})=>{const[We,Pt]=(0,z.useState)("python");function nt(pt){Pt(Ot[pt][1])}function tt(pt){qe(pt)}return z.createElement(ve.default,ze(Ve({},wt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:tt,style:{width:500}}),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(it.default,{getPopupContainer:pt=>pt.parentNode,onChange:nt},Object.keys(Ot).map(pt=>z.createElement(ht,{key:pt,value:pt},Ot[pt][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(dt,{mode:We})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Je.ZP,{type:"ghost",onClick:at},"\u53D6\u6D88")))};function dt({value:qe,onChange:at,mode:We,options:Pt={}}){const nt=(0,z.useRef)(),[tt,pt]=(0,z.useState)();return(0,z.useEffect)(()=>{if(tt){let Me=function(Ke){const je=Ke.getValue();at&&at(je)};return tt.on("change",Me),()=>{tt.off("change",Me)}}},[tt,at]),(0,z.useEffect)(()=>{tt&&tt.setOption("mode",We)},[tt,We]),(0,z.useEffect)(()=>{tt&&(qe!==tt.getValue()||qe==="")&&setTimeout(()=>{tt.setValue(qe||"")},300)},[tt,qe]),(0,z.useEffect)(()=>{if(nt.current&&!tt){const Me=Ee().fromTextArea(nt.current,Ve({mode:We,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pt));pt(Me)}},[nt.current,tt]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:nt}))}},39116:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Tt}});var z=ie(59301),it=ie(44283),ve=ie(89780),Je=ie.n(ve),Ce=ie(76374),Ee=ie(88319),Be=ie(6313),Ye=ie(25717),we=ie(99498),he=ie(25419),Qe=ie(67549),Ie=ie(35883),St=({value:mt="",className:en,showTextOnly:Yt,showLines:Jt,style:vn={}})=>{const wn=(0,z.useMemo)(()=>"",[mt]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:wn}}))},Ue=Object.defineProperty,Ne=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Ot=(mt,en,Yt)=>en in mt?Ue(mt,en,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):mt[en]=Yt,dt=(mt,en)=>{for(var Yt in en||(en={}))ht.call(en,Yt)&&Ot(mt,Yt,en[Yt]);if(ze)for(var Yt of ze(en))wt.call(en,Yt)&&Ot(mt,Yt,en[Yt]);return mt},qe=(mt,en)=>Ne(mt,Ve(en));let at=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function We({onActionCallback:mt,title:en,icon:Yt,actionName:Jt,className:vn="",children:wn}){function Sn(){mt(Jt)}return z.createElement("a",{title:en,className:vn,onClick:Sn},z.createElement("i",{className:`${Yt}`}),wn)}var Pt=({watch:mt,showNullButton:en,showNullProgramButton:Yt,onActionCallback:Jt,fullScreen:vn,insertTemp:wn,hidetoolBar:Sn,extraUse:On})=>{const Mn=[...at,{title:`${mt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${mt?"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(We,qe(dt({},jn),{onActionCallback:Jt})):z.createElement("span",{className:"v-line"}))),en?z.createElement("li",null,z.createElement(We,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback: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(We,{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(We,{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(We,{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(We,{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})))},nt=ie(88487),tt=ie(28284),pt=ie(37568),Me=ie(7939),Ke=Object.defineProperty,je=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Dt=(mt,en,Yt)=>en in mt?Ke(mt,en,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):mt[en]=Yt,xe=(mt,en)=>{for(var Yt in en||(en={}))Oe.call(en,Yt)&&Dt(mt,Yt,en[Yt]);if(ut)for(var Yt of ut(en))Xe.call(en,Yt)&&Dt(mt,Yt,en[Yt]);return mt},fe=(mt,en)=>je(mt,ue(en));const ft={labelCol:{span:4},wrapperCol:{span:20}};var Gt=({callback:mt,onCancel:en})=>{function Yt(Jt){mt(Jt)}return z.createElement(tt.default,fe(xe({},ft),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Yt,style:{width:500}}),z.createElement(tt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(pt.default,null)),z.createElement(tt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(pt.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")))},Ct=ie(28267),me=ie(53332),Le=ie(62957),Ze=ie(77019),Nt=ie(40254),bt=ie(59301),zt=({callback:mt,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 bt.createElement(Le.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bt.createElement(Ze.Z,{style:{height:"100vh"}},bt.createElement(Nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:vn,visible:!0,title:String(Date.now())},onOk:wn=>{mt({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:mt,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),[It,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:It,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(Ze.Z,{align:"middle"},te.createElement($t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement($t.Z,{onClick:()=>{Ut(It==="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 be=ne.ZP.Group,st={margin:"0 8px"};var Pe=({callback:mt,onCancel:en})=>{function Yt(Jt){mt(Jt)}return z.createElement(tt.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(tt.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(tt.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(tt.default.Item,{name:"align"},z.createElement(be,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")))},_e=ie(58755),ot=ie(84915),yt=ie.n(ot),Kt=(0,z.forwardRef)(({use3d:mt,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 It=()=>{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(mt)},[mt]),(0,z.useImperativeHandle)(wn,()=>({getImgData:It})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),z.createElement(Ze.Z,{align:"middle"},z.createElement($t.Z,{flex:1},z.createElement(_e.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:It,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",xt="add-flowchart",qt="code-block",Wt="add-table",De="------------",et={default:De,left:`:${De}`,center:`:${De}:`,right:`${De}:`};var Bt=ie(79006),Rt=ie(76406);function ke(){}let He=0;const lt=1e4,Et="\u2581",Vt="@\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(mt){return/^\d+$/.test(mt)?`${mt}px`:mt}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 Tt=({defaultValue:mt="",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:It=!1,showNullButton:Ut=!1,showNullProgramButton:xn=!1,hidetoolBar:hn=!1,fullScreen:Te=!1,onBlur:Ge,onCMBeforeChange:ye,onFullScreen:Re,className:Se="",disablePaste:Fe=!1,disabled:gt=!1,disabledFill:on=!1,placeholder:un="",values:gn="",extraUse:Xt,onAddBlank:Lt})=>{const[kt,fn]=(0,z.useState)(null),[Bn,Dn]=(0,z.useState)(mt),[Tn,Xn]=(0,z.useState)(Sn),[Qn,Jn]=(0,z.useState)(Te),[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),kt==null||kt.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=Je().fromTextArea(cr.current,{mode:Mn,lineNumbers:!vn,lineWrapping:!0,value:mt,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),gt&&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 Ce.Z(Nn=>{for(let Rn of Nn)(Rn.target.offsetHeight>0||Rn.target.offsetWidth>0)&&(Rr(),kt.setSize("100%","100%"),kt.refresh())});return yn.observe(cr.current.parentElement),yn}if(kt){const yn=mn();return()=>{var Nn,Rn;(Nn=cr.current)!=null&&Nn.parentElement&&yn.unobserve((Rn=cr.current)==null?void 0:Rn.parentElement)}}},[kt,Rr]),(0,z.useEffect)(()=>{if(kt){let mn=[];for(const[yn,Nn]of Object.entries(_t)){let Rn={[yn]:()=>{Er(Nn)}};mn.push(Rn),kt.addKeyMap(Rn)}return()=>{for(let yn of mn)kt.removeKeyMap(yn)}}},[kt]),(0,z.useEffect)(()=>{Te!==Qn&&Jn(Te)},[Te]),(0,Bt.Z)(()=>{if(!It&&Wn>0){let mn=new Date().getTime(),yn=window.sessionStorage.getItem(jn);mn>=Wn+lt&&(!yn||yn!==Bn)&&(window.sessionStorage.setItem(jn,Bn),ir(!0))}},lt),(0,z.useEffect)(()=>{Xn(Sn)},[kt,Sn]),(0,z.useEffect)(()=>{kt&&wn&&kt.focus()},[kt,wn]),(0,z.useEffect)(()=>{if(Tn&&kt){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=kt.getScrollerElement();return yn.addEventListener("scroll",mn),()=>{yn.removeEventListener("scroll",mn)}}},[kt,Tn]),(0,z.useEffect)(()=>{if(kt&&ye){let mn=function(yn,Nn){ye(yn,Nn)};return kt.on("beforeChange",mn),()=>{kt.off("beforeChange",mn)}}},[kt,ye]),(0,z.useEffect)(()=>{if(kt&&Ge){let mn=function(){Ge(kt.getValue())};return kt.on("blur",mn),()=>{kt.off("blur",mn)}}},[kt,Ge]);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(Vt.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(kt){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 kt.on("change",mn),()=>{kt.off("change",mn)}}},[kt,en]),(0,z.useEffect)(()=>{if(kt)if(mt==null)kt.setValue(""),Dn("");else{const mn=window.scrollY||window.pageYOffset;mt!==kt.getValue()&&(kt.setValue(mt),Dn(mt),kt.setCursor(gt?1:kt.lineCount(),0),window.scrollTo(0,mn))}},[kt,mt]);const Er=(0,z.useCallback)(mn=>{const yn=kt.getCursor(),Nn=kt.getSelection();let Rn=Nn.split(`
|
|
|
`);switch(mn){case"bold":return kt.replaceSelection("**"+Nn+"**"),Nn===""&&kt.setCursor(yn.line,yn.ch+2),kt.focus();case"italic":return kt.replaceSelection("*"+Nn+"*"),Nn===""&&kt.setCursor(yn.line,yn.ch+1),kt.focus();case"code":return kt.replaceSelection("`"+Nn+"`"),Nn===""&&kt.setCursor(yn.line,yn.ch+1),kt.focus();case"inline-latex":return(0,Rt.Ye)(Sr)?void 0:(Fn("inline-latex"),kt.focus());case"latex":return kt.replaceSelection("```latex\n"+Nn+"\n```"),kt.setCursor(yn.line+1,Nn.length+1),kt.focus();case"line-break":return kt.replaceSelection(`<br/>
|
|
|
`),kt.focus();case"list-ul":return Nn===""?kt.replaceSelection("- "+Nn):kt.replaceSelection(Rn.map(rr=>rr===""?"":`- ${rr}`).join(`
|
|
|
`)),kt.focus();case"list-ol":return Nn===""?kt.replaceSelection("1. "+Nn):kt.replaceSelection(Rn.map((rr,kr)=>rr===""?"":`${kr+1}. ${rr}`).join(`
|
|
|
`)),kt.focus();case"add-null-ch":Lt==null||Lt();return;case"add-signal":return Nn===""&&kt.setCursor(yn.line,yn.ch),kt.replaceSelection(an),kt.focus();case"add-multiple":return Nn===""&&kt.setCursor(yn.line,yn.ch),kt.replaceSelection(Vt),kt.focus();case"inster-template-1":return Nn===""&&kt.setCursor(yn.line,yn.ch),kt.replaceSelection(In),kt.focus();case"eraser":return kt.setValue(""),kt.focus();case"trigger-watch":return Xn(!Tn),kt.focus();case"trigger-full-screen":return Jn(!Qn),kt.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}},[kt,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 kt.replaceSelection(`[${Fi}](${xi})`),kt.focus();case qt:const{language:mi,content:Xi}=mn;return kt.replaceSelection(["```"+mi,Xi,"```"].join(`
|
|
|
`)),kt.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?kt.replaceSelection(``):(gi==null?void 0:gi.status)===401&&(document.location.href="/user/login")}),kt.focus();case"inline-latex":return(0,Rt.Ye)(Sr)?void 0:(kt.replaceSelection("`$$"+mn+"$$`"),kt.focus());case xt:return Hr?(kt.getValue().indexOf(Pr)===-1?kt.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(),kt.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?kt.replaceSelection(`<p style="text-align:${Lr.align||"initial"}"><img width="${Lr.width?Lr.width+"%":"initial"}" src="${Pr}" alt="${Tr||""}" /></p>`):kt.replaceSelection(`<img width="100%" src="${Pr}" alt="${Tr||""}" />`):((br=Lr==null?void 0:Lr.type)==null?void 0:br.indexOf("video"))>-1?kt.replaceSelection(`<video width="100%" controls src="${Pr}"></video>`):((Or=Lr==null?void 0:Lr.type)==null?void 0:Or.indexOf("pdf"))>-1?kt.replaceSelection(`<a href="${Pr}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):kn.includes(to)?kt.replaceSelection(`<a href="${Pr}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):kt.replaceSelection(`[${Lr.name}](${Pr})`),kt.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(et[ao]),Ai.push(" ");gi===1&&(Yi+=`| ${Vr.join(" | ")} |
|
|
|
`),Yi+=`| ${Ai.join(Li===1?"":" | ")} |
|
|
|
`}return kt.replaceSelection(Yi+`
|
|
|
`),kt.focus();default:throw new Error}},[kt,Zn]),Ir=(0,z.useMemo)(()=>{switch(Zn){case Ht:return z.createElement(Gt,{callback:Ar,onCancel:Dr});case qt:return z.createElement(Ct.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)}}},[kt,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),kt.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 ${Se} ${Tn?"on-preview":""} ${vn?"mini":""} ${Qn?"full-screen":""}`,style:Yn},z.createElement(Pt,{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(Ie.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(nt.Z,null,Mt[Zn]&&Zn!==nn&&Zn!==Qt?z.createElement(Le.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,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return at},I:function(){return Pt}});var z=ie(28284),it=ie(6767),ve=ie(37568),Je=ie(44104),Ce=ie(4875),Ee=ie(47889),Be=ie(7939),Ye=ie(23216),we=ie(59301),he=ie(59301),Qe=Object.defineProperty,Ie=Object.defineProperties,St=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,ze=(nt,tt,pt)=>tt in nt?Qe(nt,tt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):nt[tt]=pt,ht=(nt,tt)=>{for(var pt in tt||(tt={}))Ne.call(tt,pt)&&ze(nt,pt,tt[pt]);if(Ue)for(var pt of Ue(tt))Ve.call(tt,pt)&&ze(nt,pt,tt[pt]);return nt},wt=(nt,tt)=>Ie(nt,St(tt));const{useForm:Ot}=z.default,dt={width:280,marginRight:10},qe={labelCol:{span:5},wrapperCol:{span:19}};var at=({callback:nt,onCancel:tt})=>{const[pt]=Ot();let Me=(0,we.useRef)();function Ke(ut){Me.current.width=pt.getFieldValue("width"),Me.current.align=pt.getFieldValue("align"),nt(ut,Me.current)}function je(ut,Oe){if(ut.status===-1){it.ZP.error(ut.message);return}pt.setFieldsValue({src:`/api/attachments/${ut.id}`,type:Oe.type})}function ue(ut){let Oe=ut.target.files[0];Me.current=Oe,Pt(Oe,je)}return he.createElement(z.default,wt(ht({form:pt},qe),{className:"upload-image-panel",onFinish:Ke,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:dt})),he.createElement(We,{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(Je.Z,null,he.createElement(z.default.Item,{name:"width",style:{margin:0}},he.createElement(Ce.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(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Be.ZP,{type:"default",onClick:tt},"\u53D6\u6D88"))))};function We({onFileChange:nt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:nt}))}function Pt(nt,tt){if(!nt)throw new String("\u6CA1\u6709\u6587\u4EF6");let pt=new FormData;pt.append("editormd-image-file",nt),pt.append("file_param_name","editormd-image-file"),pt.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(Ke){tt(JSON.parse(Ke.target.responseText),nt)},!1),Me.addEventListener("error",function(Ke){console.error(Ke)},!1),Me.open("POST",`${Ye.KI}/api/attachments.json`),Me.send(pt)}},88487:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return ve}});var z=ie(59301),it=ie(4676);class ve extends z.Component{constructor(Ce){super(Ce);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,it.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(ln,Zt,ie){"use strict";ie.d(Zt,{SV:function(){return zt},ZP:function(){return bt}});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"]},Je={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"]},Ce={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(`
|
|
|
`)}]},Be={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 Ye=ie(53184),we=ie.n(Ye),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 Qe={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"]}},Ie=(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:[...Ie(Ae,te,ee,se),...ct.map(be=>({label:be,kind:Ae.languages.CompletionItemKind.Keyword,documentation:be,insertText:be,insertTextRules:Ae.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(be=>({label:be.label,kind:Ae.languages.CompletionItemKind.Snippet,documentation:be.content,insertText:ne.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:Ae.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Ue=Ae=>{Qe.languages.forEach($t=>{Ae.languages.registerDocumentFormattingEditProvider($t,{provideDocumentFormattingEdits(ct){return he(this,null,function*(){const ae=we()(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",Je.keywords,Je.quickKey),St(Ae,"cpp",Ce.keywords,Ce.quickKey),St(Ae,"c",ve.keywords,[]),St(Ae,"python",Ee.keywords,Ee.quickKey),St(Ae,"scala",Be.keywords,Be.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 Ve=Object.defineProperty,ze=(Ae,$t,ct)=>$t in Ae?Ve(Ae,$t,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ae[$t]=ct,ht=(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)}};ht(wt,"ID","editor.widget.placeholderHint");var dt=wt,qe=ie(96236),at=ie(6767),We=ie(25399),Pt=ie(78267),nt=ie(33156),tt=ie(56102),pt=Object.defineProperty,Me=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Oe=(Ae,$t,ct)=>$t in Ae?pt(Ae,$t,{enumerable:!0,configurable:!0,writable:!0,value:ct}):Ae[$t]=ct,Xe=(Ae,$t)=>{for(var ct in $t||($t={}))ue.call($t,ct)&&Oe(Ae,ct,$t[ct]);if(je)for(var ct of je($t))ut.call($t,ct)&&Oe(Ae,ct,$t[ct]);return Ae},Dt=(Ae,$t)=>Me(Ae,Ke($t)),xe=(Ae,$t)=>{var ct={};for(var ae in Ae)ue.call(Ae,ae)&&$t.indexOf(ae)<0&&(ct[ae]=Ae[ae]);if(Ae!=null&&je)for(var ae of je(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 ft(Ae){return/^\d+$/.test(Ae)?`${Ae}px`:Ae}function Gt(){}let Ct=!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 Le(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 Ze=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 bt=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:be,isCopy:st=!1,onSave:Pe,autoHeight:_e=!1,forbidCopy:ot=!1,forbidCopyTips:yt,onChange:vt=Gt,editorDidMount:Kt=Gt,onFocus:jt=Gt,onBreakPoint:Ht=Gt,breakPointValue:tn=[],filename:Qt="educoder.txt",errorLine:nn,errorContent:xt="",highlightLine:qt,openBreakPoint:Wt=!1,placeholder:De="",showMiniMap:et=!0}=$t,Bt=xe($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)({}),He=(0,z.useRef)(),lt=(0,z.useRef)(),Et=(0,z.useRef)([]),Vt=(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 It;return Rt.current&&(It=new it.Z(Ut=>{for(let xn of Ut)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&ke.current.instance.layout()}),It.observe(Rt.current)),It}function _t(){at.ZP.warning({content:decodeURIComponent(yt||Ne),key:"monaco-editor-tip"})}const Mt=()=>{let It=ke.current.instance;if(te!=null&&It&&rn){const Ut=It.getModel();Ut&&te!==Ut.getValue()&&(Ct=!0,Ut.setValue(te),It.layout(),Ct=!1)}};(0,z.useEffect)(()=>{const It=nt.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=>{vt(Ut)},It},[]),(0,z.useEffect)(()=>{var It;let Ut=ke.current.instance;lt.current&&clearTimeout(lt.current),lt.current=setTimeout(()=>{Mt()},500),te&&(te!=null&&te.length)&&((It=Ut==null?void 0:Ut.updateOptions)==null||It.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=xt,xn.addZone({afterLineNumber:nn||11,heightInLines:3,domNode:hn})});var It={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(It),Ut.revealPositionInCenter({lineNumber:20,column:1})}},[nn,ke.current,rn]);const Tt=(It="",Ut)=>{if(!It||It.trim()==="")return!0;const hn=ke.current.instance.getModel().getLineTokens(Ut);let Te=!1;for(let Ge=0;Ge<2;Ge++)hn.getStandardTokenType(Ge)===1&&(Te=!0);return Te};(0,z.useEffect)(()=>{var It;const Ut=(It=ke.current)==null?void 0:It.instance;if(Ut&&rn&&ot){const xn=Ut.onDidBlurEditorWidget(()=>{kn.current=!1}),hn=Ut.onDidFocusEditorText(()=>{kn.current=!0});return()=>{xn.dispose(),hn.dispose()}}},[ke.current,rn,ot]),(0,z.useEffect)(()=>{var It;if((It=ke.current)!=null&&It.instance&&rn&&Wt){let Ut=ke.current.instance,xn=Ut.getModel();if(!xn)return;(()=>{var Xt;let Lt=[],kt=[];const fn=xn.getAllDecorations();for(let Dn of fn)Dn.options.className==="highlighted-line"&&(Lt.push((Xt=Dn==null?void 0:Dn.range)==null?void 0:Xt.startLineNumber),kt.push(Dn==null?void 0:Dn.id));if(qt===Lt[0])return;xn.deltaDecorations(kt,[]);const Bn=xn.getLineCount();qt&&qt<=Bn&&(Ut.deltaDecorations([],[{range:new Ze.Range(qt,1,qt,xn.getLineMaxColumn(qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Ut.revealLineInCenter(qt))})();const Te=(Xt=!1)=>{var Lt;let kt=[],fn=[];const Bn=xn.getAllDecorations();for(let Dn of Bn)Dn.options.linesDecorationsClassName==="breakpoints-select"&&(kt.push((Lt=Dn==null?void 0:Dn.range)==null?void 0:Lt.startLineNumber),fn.push(Dn==null?void 0:Dn.id));if(Xt)return{lines:kt,ids:fn};Ht(kt)},Ge=Xt=>fe(void 0,null,function*(){let Lt={range:new Ze.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xn.deltaDecorations([],[Lt]),Te()}),ye=Xt=>fe(void 0,null,function*(){let Lt=[];const kt=Ut.getLineDecorations(Xt);for(let fn of kt)fn.options.linesDecorationsClassName==="breakpoints-select"&&Lt.push(fn.id);yield xn.deltaDecorations(Lt,[]),Te()}),Re=Xt=>{let Lt=Ut.getLineDecorations(Xt);for(let kt of Lt)if(kt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Pt.isEqual)(tn,Te(!0).lines)){xn.deltaDecorations(Te(!0).ids,[]);const Xt=tn.map(Lt=>({range:new Ze.Range(Lt,1,Lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xn.deltaDecorations([],Xt)}const Se=Ut.onDidChangeModelContent(Xt=>{let Lt=Ut.getPosition();if(Lt){let kt=Lt.lineNumber;clearTimeout(In.current),In.current=setTimeout(()=>{Tt(xn.getLineContent(kt),kt)?ye(kt):Re(kt)?(ye(kt),Ge(kt)):Te()},100)}}),Fe=Ut.onMouseDown(Xt=>{var Lt,kt,fn;if(Xt.target.detail&&((fn=(kt=(Lt=Xt.target)==null?void 0:Lt.element)==null?void 0:kt.className)!=null&&fn.includes("line-numbers"))){let Bn=Xt.target.position.lineNumber;if(Tt(xn.getLineContent(Bn),Bn))return;Re(Bn)?ye(Bn):Ge(Bn)}}),gt=Xt=>{let Lt={range:new Ze.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Et.current=Ut.deltaDecorations(Et.current,[Lt])},on=()=>{Et.current=Ut.deltaDecorations(Et.current,[])},un=Ut.onMouseMove(Xt=>{var Lt,kt,fn;if(on(),Xt.target.detail&&((fn=(kt=(Lt=Xt.target)==null?void 0:Lt.element)==null?void 0:kt.className)!=null&&fn.includes("line-numbers"))){let Bn=Xt.target.position.lineNumber;if(Tt(xn.getLineContent(Bn),Bn))return;gt(Bn)}}),gn=Ut.onMouseLeave(()=>{on()});return()=>{Se.dispose(),Fe.dispose(),un.dispose(),gn.dispose()}}},[ke.current,rn,tn,qt,Wt,ee]),(0,z.useEffect)(()=>{var It;(It=ke.current)!=null&&It.instance&&Wt&&ke.current.instance.setPosition({lineNumber:0,column:0})},[qt]);function mt(){let It=ke.current.instance;if(It){const Ut=It.getSelection(),xn=ke.current.pastePos||{},hn=new Ze.Range(xn.startLineNumber||Ut.endLineNumber,xn.startColumn||Ut.endColumn,xn.endLineNumber||Ut.endLineNumber,xn.endColumn||Ut.endColumn);setTimeout(()=>{It.executeEdits("",[{range:hn,text:""}])},300)}}function en(It){(window.navigator.platform.match("Mac")?It.metaKey:It.ctrlKey)&&It.keyCode==83&&(It.preventDefault(),Pe())}const Yt=()=>{if(_e&&ke.current.instance){const It=ke.current.instance.getContentHeight();jn(It<ae?ae:It)}else jn(ae)};function Jt(It){var Ut=document.createEvent("MouseEvents");Ut.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),It.dispatchEvent(Ut)}const vn=It=>{if(!kn.current)return;const{keyCode:Ut,ctrlKey:xn,metaKey:hn,target:Te,type:Ge}=It;return(Ge==="paste"||(Ut===67||Ut===86)&&(hn||xn))&&Te.nodeName==="TEXTAREA"&&(_t(),It.preventDefault()),!1};function wn(It,Ut){var xn=window.URL||window.webkitURL||window,hn=new Blob([Ut]),Te=document.createElementNS("http://www.w3.org/1999/xhtml","a");Te.href=xn.createObjectURL(hn),Te.download=It,Jt(Te)}(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(It=>{try{Ze=It,ke.current.instance=Ze.editor.create(Rt.current,{value:te,language:Le(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:et||!1}},ne);const Ut=ke.current.instance;let Te=[...qe.BH._menuItems].find(Se=>Se[0]._debugName=="EditorContext")[1],Ge=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ye=(Se,Fe)=>{var gt,on;let un=Se._first;do Fe.includes((on=(gt=un.element)==null?void 0:gt.command)==null?void 0:on.id)&&Se._remove(un);while(un=un.next)};if(Kt(Ut,Ze),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(Se=>{Vt.current?clearTimeout(an.current):(Yt(),vt(Ut.getValue(),Se)),an.current=setTimeout(()=>{Vt.current=!1},500)}),window.Monaco||Ue(Ze,Le(ee)),ot&&(ye(Te,Ge),Rt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",vn),window.removeEventListener("paste",vn),window.addEventListener("keydown",vn),window.addEventListener("paste",vn)),window.Monaco=Ze,be&&Ut.onDidBlurEditorWidget(()=>{be(Ut.getValue())}),jt&&Ut.onDidFocusEditorText(()=>{ot&&Nt(),jt(Ut.getValue())}),ot){Nt();try{Ut.onDidPaste(Se=>{const Fe=Ut.getSelection(),gt=ke.current.pastePos||{},on=new Ze.Range(gt.startLineNumber||Fe.endLineNumber,gt.startColumn||Fe.endColumn,gt.endLineNumber||Fe.endLineNumber,gt.endColumn||Fe.endColumn);Ut.executeEdits("",[{range:Se.range,text:""}])})}catch(Se){}}let Re=dn();return De&&typeof De=="string"&&new dt(De,Ut,Ze),bn(!0),()=>{const Se=ke.current.instance;Se.dispose();const Fe=Se.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 It=ke.current.instance;if(It&&rn){let Ut=Le(ee);Ze.editor.setModelLanguage(It.getModel(),Ut)}},[ee,rn]),(0,z.useEffect)(()=>{ke.current.instance&&rn&&Ze.editor.setTheme(pe)},[pe,rn]),(0,z.useEffect)(()=>{let It=ke.current.instance;He.current=se,It&&rn&&(It.updateOptions(Xe({},se)),setTimeout(()=>{It.getModel().updateOptions(Xe({},se))},200))},[JSON.stringify(se),rn]),(0,z.useEffect)(()=>{let It=ke.current.instance;It&&rn&&It.layout()},[ct,ae,rn]);const[Sn,On]=(0,z.useState)(ft(ct)),[Mn,jn]=(0,z.useState)(ft(ae)),An=Dt(Xe({},oe),{width:Sn,height:Mn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:Rt,style:An,onFocus:()=>{ot&&Nt()}},st&&z.createElement(tt.CopyToClipboard,{text:te,onCopy:()=>at.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function 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(_e){let ot;return oe.current&&(ot=new it.Z(yt=>{for(let vt of yt)(vt.target.offsetHeight>0||vt.target.offsetWidth>0)&&_e.layout()}),ot.observe(oe.current)),ot}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(_e=>{Ze=_e;const ot=Ze.editor.createDiffEditor(oe.current,Dt(Xe({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(ot);let yt=pe(ot);return()=>{ot.dispose();const vt=ot.getModel();vt&&vt.dispose(),yt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:Ze.editor.createModel(ct,te),modified:Ze.editor.createModel(ae,te)})},[ct,ae,te,se]);const be=ft(Ae),st=ft($t),Pe={width:be,height:st};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Pe})}},54077:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Qe}});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),Je=ie(89787),Ce=ie(92310),Ee=ie.n(Ce),Be=ie(76406),Ye=ie(90736),we=ie(59301),Qe=({className:Ie,dataSource:St=[],col:Ue=4,right:Ne,bottom:Ve=23,precision:ze=0,wrapWidth:ht=1200,trackEventItems:wt,loading:Ot,onRemove:dt=()=>{},isCurrent:qe=!0,showProgress:at=!1,showAlias:We=!1,category:Pt="notDisplay",hiddenClick:nt=()=>{}})=>{const tt=Math.floor((ht-(Ue-1)*Ne)/Ue),pt=[{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 we.createElement(it.Z,{spinning:Ot},we.createElement("div",{className:Ee()(z.list,Ie)},!!(St!=null&&St.length)&&(St==null?void 0:St.map((Me,Ke)=>{var je,ue,ut,Oe,Xe,Dt,xe;const{name:fe,id:ft,identifier:Gt,featured:Ct,school_name:me,image_url:Le,excellent:Ze,is_plan:Nt}=Me;return we.createElement("div",{key:ft,className:qe&&at?z.wrapisCurrent:z.wrap,style:{width:tt,marginRight:(1+Ke)%Ue===0?0:Ne+ze,marginBottom:Ve}},we.createElement("a",{className:z.li,onClick:bt=>{bt.preventDefault(),bt.stopPropagation(),wt&&(0,Be.L9)([wt]),(0,Be.xg)(`/paths/${Gt}`)}},we.createElement("div",{className:z.img},we.createElement("img",{className:z.cover,src:`${Le}`}),(je=Me==null?void 0:Me.subject_tags)==null?void 0:je.map((bt,zt)=>{var Ae,$t;if(zt===0){const ae=(Ae=pt.find(te=>te.name==bt))==null?void 0:Ae.swclass;return we.createElement("span",{className:`sprite ${ae} ${z.sign}`,style:{left:"-4px"}})}const ct=($t=pt.find(ae=>ae.name==bt))==null?void 0:$t.ptclass;return we.createElement("span",{className:`sprite ${ct} ${z.sign}`,style:{left:`${48+52*(zt-1)+2*zt}px`}})}),we.createElement("div",{className:z.tagsDom},we.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Me==null?void 0:Me.excellent)&&we.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((bt,zt)=>{var Ae;return we.createElement(ve.Z,{title:bt==null?void 0:bt.tag_name,key:zt},we.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"}},we.createElement("span",{className:"multi-llipsis1e"},bt==null?void 0:bt.tag_name)))})))),Pt=="hide"&&(Me==null?void 0:Me.studying)&&qe&&we.createElement("div",{className:`${z.movebq} user-path-items`,onClick:bt=>{bt.stopPropagation(),dt(Me)}},we.createElement("i",{className:"iconfont icon-yichu1 font12"}),we.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(Pt)&&qe&&we.createElement("div",{className:`${z.hiddenbq} user-path-items`,onClick:bt=>{bt.stopPropagation(),nt(Me)}},we.createElement("i",{className:`iconfont ${Pt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),we.createElement("span",null,Pt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),we.createElement("div",{className:z.name},we.createElement(ve.Z,{title:We&&(Me!=null&&Me.excellent_alias_name)?we.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${fe}`,we.createElement("br",null),we.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):fe},we.createElement("span",{className:z.e},We&&(Me==null?void 0:Me.excellent_alias_name)||fe))),qe&&at&&((ut=Me==null?void 0:Me.progress)==null?void 0:ut.all_score)!=0&&we.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},we.createElement(Je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Oe=Me==null?void 0:Me.progress)==null?void 0:Oe.my_score)/((Xe=Me==null?void 0:Me.progress)==null?void 0:Xe.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Dt=Me==null?void 0:Me.progress)==null?void 0:Dt.my_score,"/",(xe=Me==null?void 0:Me.progress)==null?void 0:xe.all_score),(!qe||!at)&&we.createElement(ve.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${me}`},we.createElement("div",{className:z.unit},we.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),me)),(!qe||!at)&&we.createElement("div",{className:z.tags},we.createElement("div",null,we.createElement(ve.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),we.createElement("span",null,Me.stages_count))),we.createElement(ve.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),we.createElement("span",null,Me.members_count)))))))})),!St.length&&we.createElement(Ye.Z,null)))}},70467:function(ln,Zt,ie){"use strict";ie.d(Zt,{jL:function(){return Je},w9:function(){return fe},QD:function(){return tn},cQ:function(){return Ke.Z},op:function(){return ot},O5:function(){return dn},_b:function(){return De},t7:function(){return ze},Gi:function(){return Ze},YG:function(){return me},qp:function(){return he},vr:function(){return xt},qE:function(){return Kt},Je:function(){return Ot},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"},Je=({dataSource:_t=[],img:Mt,imgWidth:Tt=346,title:mt,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,mt),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:Tt}))),Ce={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),Be=ie.n(Ee),Ye=ie(78267),he=({dataSource:_t=[],value:Mt,onChange:Tt,onTitleChange:mt,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),It=(0,z.useRef)(null),Ut=(0,z.useRef)(null);return(0,z.useEffect)(()=>{var xn;_t.length!==0&&(((xn=It==null?void 0:It.current)==null?void 0:xn.clientHeight)>97?Mn(1):Mn(0)),_t.length===0&&Mn(0),An(!1)},[_t]),z.createElement("div",{className:Be()(Ce.row,en,"fadeIn","animated"),style:vn},z.createElement("div",{onClick:(0,Ye.throttle)(()=>mt==null?void 0:mt(),2e3),style:{width:Jt,marginTop:jn?12:4},className:`${Ce.title} ${mt?"current":""}`},Yt),z.createElement("div",{className:jn?`${Ce.tagsWrap} ${Ce.tagsBorderWrap}`:Ce.tagsWrap},z.createElement("div",{className:Ce.bar,ref:Ut,style:On>0?{height:On===1?97:"auto",overflow:On===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},z.createElement("div",{className:Ce.tag,ref:It},_t==null?void 0:_t.map(xn=>z.createElement("span",{onClick:()=>Tt(xn.id),key:xn.id,style:{color:wn},className:Mt===xn.id?Ce.active:""},z.createElement("span",{title:xn.name,className:Ce.name},xn.name),!!Sn&&z.createElement("span",{className:Ce.num},xn.count))))),!!On&&z.createElement(z.Fragment,null,On===1?z.createElement("div",{onClick:()=>{var xn;Mn(2),((xn=It==null?void 0:It.current)==null?void 0:xn.clientHeight)>245?An(!0):An(!1)},className:Ce.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:Ce.action},"\u6536\u8D77",z.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Qe={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:Tt,className:mt,style:en={}})=>z.createElement("div",{style:en,className:Be()(Qe.tabs,mt)},_t.map(Yt=>z.createElement("span",{onClick:()=>Tt(Yt.id),className:Mt===Yt.id?Qe.active:"",key:Yt.id},Yt.name))),Ue={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:Tt,onInputChange:mt=()=>{},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=()=>{Tt(encodeURIComponent(Mn),Sn||null)},It=Ut=>{Ut!==Sn&&(On(Ut),Tt(encodeURIComponent(Mn),Ut))};return z.createElement("div",{className:Be()(Ue.input,en),style:Yt},!!_t.length&&z.createElement("div",{className:Ue.dropdown},z.createElement("div",{className:Ue.text},(wn=_t.find(Ut=>Ut.id===Sn))==null?void 0:wn.name,z.createElement("i",{className:"iconfont icon-zhankai4"}),z.createElement("b",{className:Ue.b1}),z.createElement("b",{className:Ue.b2})),z.createElement("div",{className:Ue.menu},_t.map((Ut,xn)=>z.createElement("div",{key:xn,onClick:()=>It(Ut.id)},Ut.name)))),z.createElement(Ne.default,{onPressEnter:An,value:Mn,onChange:Ut=>{jn(Ut.target.value),mt(encodeURIComponent(Ut.target.value),Sn||null)},placeholder:Jt,variant:"borderless",allowClear:vn,onClear:()=>Tt("",Sn||null)}),z.createElement("i",{onClick:An,className:"iconfont icon-sousuo9 font14 current"}))},ht={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"},Ot=({value:_t,onChange:Mt,className:Tt,total:mt,pageSize:en,style:Yt={}})=>{const Jt=_t<2,vn=_t>=Math.ceil(mt/en);return mt<=en?z.createElement(z.Fragment,null):z.createElement("div",{className:Be()(ht.quickPager,Tt),style:Yt},z.createElement("div",{onClick:()=>{Jt||Mt(_t-1,"prev")},className:Jt?ht.disabled:""},"\u4E0A\u4E00\u9875"),z.createElement("div",{onClick:()=>{vn||Mt(_t+1,"next")},className:vn?ht.disabled:""},"\u4E0B\u4E00\u9875"))},dt={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"},qe=ie(29787),at=ie(25399),We=ie(63139),Pt=ie(14185),nt=ie(76406),tt=ie(90736),Me=({className:_t,dataSource:Mt=[],col:Tt=4,right:mt,bottom:en=23,precision:Yt=0,wrapWidth:Jt=1200,trackEventItems:vn,loading:wn})=>{const Sn=Math.floor((Jt-(Tt-1)*mt)/Tt);return z.createElement(qe.Z,{spinning:wn},z.createElement("div",{className:Be()(dt.list,_t)},!!Mt.length&&Mt.map((On,Mn)=>{const{name:jn,id:An,identifier:It,power:Ut,cover_image_id:xn,pic:hn}=On;return z.createElement("div",{className:dt.wrap,key:An,style:{width:Sn,marginRight:(1+Mn)%Tt===0?0:mt+Yt,marginBottom:en}},z.createElement("a",{target:"_blank",href:`/shixuns/${It}/challenges`,className:dt.li,onClick:Te=>{Te.preventDefault(),vn&&(0,nt.L9)([vn]),Ut&&(0,nt.xg)(`/shixuns/${It}/challenges`)}},z.createElement("div",{className:dt.img},z.createElement("img",{className:dt.cover,src:`${hn}`}),On.is_jupyter&&z.createElement("span",{className:`sprite sprite-43 ${dt.sign}`}),On.is_jupyter_lab&&z.createElement("span",{className:`sprite sprite-42 ${dt.sign}`}),On.is_unity_3d&&z.createElement("span",{className:`sprite sprite-44 ${dt.sign}`})),z.createElement("div",{className:dt.name},z.createElement(at.Z,{title:jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},z.createElement("span",{className:dt.e},jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),z.createElement("div",{className:dt.tags},z.createElement(at.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(at.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(at.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},z.createElement("span",null,z.createElement("span",null,On.level))),z.createElement("div",{className:dt.rate},z.createElement(We.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:dt.lockWrap},z.createElement("img",{src:`${Pt.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(tt.Z,null)))},Ke=ie(54077),je={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",Xe=ie(59301),Dt=(_t,Mt,Tt)=>new Promise((mt,en)=>{var Yt=wn=>{try{vn(Tt.next(wn))}catch(Sn){en(Sn)}},Jt=wn=>{try{vn(Tt.throw(wn))}catch(Sn){en(Sn)}},vn=wn=>wn.done?mt(wn.value):Promise.resolve(wn.value).then(Yt,Jt);vn((Tt=Tt.apply(_t,Mt)).next())}),fe=({className:_t,dataSource:Mt=[],col:Tt=4,right:mt,bottom:en=23,precision:Yt=0,wrapWidth:Jt=1200,trackEventItems:vn,loading:wn,category:Sn,hiddenClick:On,handleVery:Mn=()=>!0,isCurrent:jn})=>{const[An,It]=ue.default.useModal(),Ut=Math.floor((Jt-(Tt-1)*mt)/Tt),xn=hn=>Dt(void 0,null,function*(){An.confirm({title:"\u7F6E\u9876",width:500,content:Xe.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Xe.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 Xe.createElement(qe.Z,{spinning:wn},It,Xe.createElement("div",{className:Be()(je.list,_t)},!!Mt.length&&Mt.map((hn,Te)=>{const{subject_identifier:Ge,id:ye,identifier:Re,power:Se}=hn,Fe=hn.is_public!=0&&hn.is_public;return Xe.createElement("div",{className:je.wrap,key:ye,style:{width:Ut,marginRight:(1+Te)%Tt===0?0:mt+Yt,marginBottom:en}},hn.homepage_show&&Xe.createElement("div",{className:je.btnsTop},Xe.createElement(ut.default,{color:"red"},"\u7F6E\u9876")),Xe.createElement("a",{className:je.li,onClick:gt=>{gt.preventDefault(),Mn(hn==null?void 0:hn.first_category_url)&&(vn&&(0,nt.L9)([vn]),(0,nt.xg)(hn.first_category_url))}},Xe.createElement("div",{className:je.top},Xe.createElement(at.Z,{title:hn.name},Xe.createElement("div",{className:je.name},hn.name)),Xe.createElement("img",{className:je.img,src:Pt.Z.IMG_SERVER+"/images/"+hn.avatar_url}),Xe.createElement("div",{className:je.text,title:hn.creator},hn.creator),Ge&&Xe.createElement("div",{className:je.btns},Xe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Xe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Fe&&Xe.createElement("div",{className:je.sign},"\u516C\u5F00"),jn&&Xe.createElement("div",{className:je.hidden,onClick:gt=>{gt.stopPropagation(),On(hn)}},Xe.createElement("i",{className:`iconfont ${Sn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Sn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Xe.createElement("div",{className:je.bottom},hn.visits>0&&Xe.createElement(at.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Xe.createElement("span",null,Xe.createElement("i",{className:"iconfont icon-liulanyan"}),Xe.createElement("span",null,hn.visits))),hn.course_members_count>0&&Xe.createElement(at.Z,{title:"\u6210\u5458",placement:"bottom"},Xe.createElement("span",null,Xe.createElement("i",{className:"iconfont icon-chengyuan"}),hn.course_members_count)),hn.tasks_count>0&&Xe.createElement(at.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Xe.createElement("span",null,Xe.createElement("i",{className:"iconfont icon-zuoye"}),hn.tasks_count)),hn.is_end?Xe.createElement("div",{style:{color:"#6B758B"}}):Xe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!hn.is_accessible&&Xe.createElement("div",{className:je.lockWrap},Xe.createElement("img",{src:`${Pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Xe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Mt.length&&Xe.createElement(tt.Z,null)))},ft={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"},Gt=ie(44283),me=({dataSource:_t=[],value:Mt,onChange:Tt,className:mt,style:en={},tabBarExtraContent:Yt})=>z.createElement("div",{className:Be()(ft.tabs,mt),style:en},z.createElement("div",{className:ft.tabsWrap},_t.map((Jt,vn)=>!(Jt!=null&&Jt.hide)&&z.createElement("aside",{className:ft.tab,onClick:()=>{Tt(Jt.id),Jt.link&&Gt.history.push(Jt.link)},key:vn},z.createElement("div",{className:Mt===Jt.id?ft.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(at.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:ft.tabBar},Yt)),Ze=({className:_t,style:Mt={},children:Tt})=>z.createElement("div",{className:Be()(_t),style:Mt},Tt),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"},bt=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:Tt,onSort:mt,onDrop:en,dataSource:Yt=Ae})=>{var Jt;return z.createElement("div",{className:Be()(Nt.orderWrap,Tt)},z.createElement(bt.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:()=>mt(_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:()=>mt(_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,Tt)=>Mt in _t?ee(_t,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):_t[Mt]=Tt,be=(_t,Mt)=>{for(var Tt in Mt||(Mt={}))se.call(Mt,Tt)&&pe(_t,Tt,Mt[Tt]);if(oe)for(var Tt of oe(Mt))ne.call(Mt,Tt)&&pe(_t,Tt,Mt[Tt]);return _t},st=(_t,Mt)=>{var Tt={};for(var mt in _t)se.call(_t,mt)&&Mt.indexOf(mt)<0&&(Tt[mt]=_t[mt]);if(_t!=null&&oe)for(var mt of oe(_t))Mt.indexOf(mt)<0&&ne.call(_t,mt)&&(Tt[mt]=_t[mt]);return Tt},Pe=(_t,Mt,Tt)=>new Promise((mt,en)=>{var Yt=wn=>{try{vn(Tt.next(wn))}catch(Sn){en(Sn)}},Jt=wn=>{try{vn(Tt.throw(wn))}catch(Sn){en(Sn)}},vn=wn=>wn.done?mt(wn.value):Promise.resolve(wn.value).then(Yt,Jt);vn((Tt=Tt.apply(_t,Mt)).next())}),ot=_t=>{var Mt=_t,{className:Tt,style:mt,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,be({onClick:(0,Ye.throttle)(An=>Pe(void 0,null,function*(){Jt&&jn(!0);try{yield vn(An)}catch(It){console.log("error",It)}Jt&&jn(!1)}),2e3,{leading:!0,trailing:!1}),className:Be()(ae.btn,ae[`${wn}-${Sn}`],Tt),style:mt,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:Tt=null,onClick:mt,title:en})=>z.createElement("div",{className:Be()(yt.head,_t),style:Mt},z.createElement("span",{className:"primary-hover",onClick:mt},z.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),z.createElement("b",{title:en},en),z.createElement("div",{className:yt.node},Tt)),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:Tt,cancelShow:mt=!0,cancelTitle:en,cancelClick:Yt,className:Jt,style:vn,confirmLoading:wn=!1})=>z.createElement("div",{className:Be()(jt.btns,Jt),style:vn},_t&&z.createElement(te.ZP,{loading:wn,onClick:Tt,type:"primary",className:jt.confirm},Mt),mt&&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"},xt=({className:_t,style:Mt={},LeftContent:Tt,children:mt,RightContent:en})=>z.createElement("div",{className:Be()(Qt.fixedBottom,_t),style:Mt},z.createElement("div",{className:Qt.wrap},z.createElement("div",{className:Qt.left},Tt),z.createElement("div",{className:Qt.center},mt),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:Tt=[]})=>z.createElement("div",{className:Be()(qt.crumbs,_t),style:Mt},Tt.map((mt,en)=>en<Tt.length-1?z.createElement(z.Fragment,{key:en},mt.path||mt.onClick?z.createElement("span",{className:qt.hover,onClick:mt!=null&&mt.onClick?mt.onClick:()=>Gt.history.push(mt.path)},mt.name):z.createElement("span",null,mt.name),z.createElement("span",null,"\xA0",">","\xA0")):z.createElement("span",{key:en,style:{color:"#5F6368"}},mt.name))),et=ie(11938),Bt=Object.defineProperty,Rt=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Vt=(_t,Mt,Tt)=>Mt in _t?Bt(_t,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):_t[Mt]=Tt,an=(_t,Mt)=>{for(var Tt in Mt||(Mt={}))lt.call(Mt,Tt)&&Vt(_t,Tt,Mt[Tt]);if(He)for(var Tt of He(Mt))Et.call(Mt,Tt)&&Vt(_t,Tt,Mt[Tt]);return _t},In=(_t,Mt)=>Rt(_t,ke(Mt)),kn=(_t,Mt)=>{var Tt={};for(var mt in _t)lt.call(_t,mt)&&Mt.indexOf(mt)<0&&(Tt[mt]=_t[mt]);if(_t!=null&&He)for(var mt of He(_t))Mt.indexOf(mt)<0&&Et.call(_t,mt)&&(Tt[mt]=_t[mt]);return Tt};const{Countdown:rn}=et.default;var dn=_t=>{var Mt=_t,{onChange:Tt}=Mt,mt=kn(Mt,["onChange"]);const[en,Yt]=(0,z.useState)(null);(0,z.useEffect)(()=>{typeof en=="number"&&en>=0&&Tt(en)},[en]);const Jt=vn=>{const wn=Math.floor(vn/1e3);Yt(wn)};return z.createElement(rn,In(an({},mt),{onChange:Jt}))}},79006:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return it}});var z=ie(59301);function it(ve,Je){const Ce=(0,z.useRef)();(0,z.useEffect)(()=>{Ce.current=ve}),(0,z.useEffect)(()=>{function Ee(){Ce.current()}if(Je!==null){let Be=setInterval(Ee,Je);return()=>clearInterval(Be)}},[Je])}},79550:function(ln,Zt,ie){"use strict";ie.r(Zt),ie.d(Zt,{default:function(){return wt}});var z=ie(59301),it=ie(28284),ve=ie(6767),Je=ie(37568),Ce=ie(49317),Ee={flex_box_center:"flex_box_center___D20iG",flex_space_between:"flex_space_between___RQ9jJ",flex_box_vertical_center:"flex_box_vertical_center___BkOZq",flex_box_center_end:"flex_box_center_end___QQYvD",flex_box_column:"flex_box_column___Gh184",wrap:"wrap___e1xGn",btns:"btns___Byhhs",confirm:"confirm___nBLNr",cancel:"cancel___rDLNy"},Be=ie(39116),Ye=ie(70467),we=ie(76406),he=ie(44283),Qe=Object.defineProperty,Ie=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Ne=(Ot,dt,qe)=>dt in Ot?Qe(Ot,dt,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ot[dt]=qe,Ve=(Ot,dt)=>{for(var qe in dt||(dt={}))St.call(dt,qe)&&Ne(Ot,qe,dt[qe]);if(Ie)for(var qe of Ie(dt))Ue.call(dt,qe)&&Ne(Ot,qe,dt[qe]);return Ot},ze=(Ot,dt,qe)=>new Promise((at,We)=>{var Pt=pt=>{try{tt(qe.next(pt))}catch(Me){We(Me)}},nt=pt=>{try{tt(qe.throw(pt))}catch(Me){We(Me)}},tt=pt=>pt.done?at(pt.value):Promise.resolve(pt.value).then(Pt,nt);tt((qe=qe.apply(Ot,dt)).next())}),wt=({})=>{const[Ot,dt]=(0,z.useState)(!1),[qe,at]=(0,z.useState)({}),[We]=it.default.useForm(),Pt=(0,he.useParams)(),{id:nt,virtual_spacesId:tt}=Pt,[pt,Me]=(0,z.useState)(!1);(0,z.useEffect)(()=>{nt?(Me(!0),Ke()):je()},[nt]);const Ke=()=>ze(void 0,null,function*(){const ut=yield(0,Ce.ZP)(`/api/virtual_classrooms/${Pt.virtual_spacesId}/informs/${nt}/edit.json`,{method:"get"});(ut==null?void 0:ut.status)!==-1&&(We.setFieldsValue(Ve({},ut)),at(Ve({},ut)))}),je=()=>ze(void 0,null,function*(){(yield(0,Ce.ZP)(`/api/virtual_classrooms/${tt}/settings_auth.json`,{method:"get"})).status===0&&Me(!0)}),ue=ut=>ze(void 0,null,function*(){dt(!0);let Oe=`/api/virtual_classrooms/${Pt.virtual_spacesId}/informs.json`;nt&&(Oe=`/api/virtual_classrooms/${Pt.virtual_spacesId}/informs/${nt}.json`);const Xe=yield(0,Ce.ZP)(Oe,{method:nt?"put":"post",body:Ve({},ut)});(Xe==null?void 0:Xe.status)!==-1&&(Xe==null?void 0:Xe.status)!==403&&(ve.ZP.success("\u64CD\u4F5C\u6210\u529F"),he.history.push(`/${we.AS}/${tt}/announcement?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)),dt(!1)});return pt?z.createElement("div",{className:Ee.wrap},z.createElement(Ye.qE,{title:nt?"\u7F16\u8F91\u516C\u544A":"\u53D1\u5E03\u65B0\u516C\u544A",onClick:()=>he.history.push(`/${we.AS}/${tt}/announcement?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}),z.createElement(it.default,{className:"mt20",form:We,layout:"vertical",onFinish:ue},z.createElement(it.default.Item,{label:"\u516C\u544A\u6807\u9898",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u544A\u6807\u9898"}]},z.createElement(Je.default,{style:{height:46},placeholder:"\u53EF\u8F93\u5165\u516C\u544A\u6807\u9898\uFF0C\u6700\u591A60\u4E2A\u5B57",maxLength:60})),z.createElement(it.default.Item,{label:"\u516C\u544A\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u544A\u5185\u5BB9"},{max:65e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u523665000\u4E2A\u5B57\u7B26"}]},z.createElement(Be.Z,{placeholder:"\u53EF\u8F93\u5165\u516C\u544A\u5185\u5BB9\uFF0C\u6700\u591A65000\u4E2A\u5B57\u7B26",defaultValue:qe.description||""}))),z.createElement(Ye.QD,{confirmTitle:nt?"\u4FDD\u5B58":"\u786E\u8BA4\u53D1\u5E03",confirmLoading:Ot,confirmClick:()=>We.submit(),cancelClick:()=>{he.history.push(`/${we.AS}/${tt}/announcement?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},cancelTitle:"\u53D6\u6D88",className:"mb25"})):z.createElement(z.Fragment,null)}},20047:function(ln,Zt,ie){"use strict";ie.d(Zt,{AL:function(){return dt},Iy:function(){return Qe},Qv:function(){return Ue},ez:function(){return Ot},jb:function(){return Ie}});var z=ie(32834),it=ie.n(z),ve=ie(11690),Je=ie.n(ve);let Ce=1;function Ee(nt,tt){const pt=nt.match(/^(\s+)(?:```)/);if(pt===null)return tt;const Me=pt[1];return tt.split(`
|
|
|
`).map(Ke=>{const je=Ke.match(/^\s+/);if(je===null)return Ke;const[ue]=je;return ue.length>=Me.length?Ke.slice(Me.length):Ke}).join(`
|
|
|
`)}let Be=[],Ye=["<ul>"];const we=new(it()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Qe(){Be.length=0,Ye=["<ul>"]}const Ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function St(nt,tt,pt,Me){if(tt>=nt.length||nt[tt].level<=pt)return tt;var Ke=nt[tt];Me.push("<li><a href='#"+Ce+Ke.anchor+"'>"+Ke.text+"</a>"),tt++;var je=[];return tt=St(nt,tt,Ke.level,je),je.length>0&&(Me.push("<ul>"),je.forEach(function(ue){Me.push(ue)}),Me.push("</ul>")),Me.push("</li>"),tt=St(nt,tt,pt,Me),tt}function Ue(){return St(Be,0,0,Ye),Ye.push("</ul>"),Ye.join("")}const Ne={heading(nt){const tt=he.exec(nt);if(Ce+=1,tt)return{type:"heading",raw:tt[0],depth:tt[1].length,text:tt[2]}},fences(nt){const tt=this.rules.block.fences.exec(nt);if(tt){const pt=tt[0];let Me=Ee(pt,tt[3]||"");const Ke=tt[2]?tt[2].trim():tt[2];if(["latex","katex","math"].indexOf(Ke)>=0){const je=ht(),ue=Me;Me=je,wt[je]={type:"block",expression:ue}}return{type:"code",raw:pt,lang:Ke,text:Me}}}},Ve=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ze=0;const ht=()=>`__special_katext_id_${ze++}__`;let wt={};function Ot(){return wt}function dt(){ze=0,wt={}}function qe(nt){return nt=nt.replace(Ve,(tt,pt)=>{const Me=ht();return wt[Me]={type:"inline",expression:pt},Me}),nt}const at=we.listitem;we.listitem=function(nt){return at(qe(nt))};const We=we.paragraph;we.paragraph=function(nt){return We(qe(nt))};const Pt=we.tablecell;we.tablecell=function(nt,tt){return Pt(qe(nt),tt)},we.code=function(nt,tt,pt){const Me=(tt||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${nt}</p>`:`<pre class="prettyprint linenums"><code class="language-${tt}">${pt?nt:(0,ve.escape)(nt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(pt?nt:(0,ve.escape)(nt,!0))+"</code></pre>"},we.heading=function(nt,tt,pt){let Me=this.options.headerPrefix+pt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Be.push({anchor:Me,level:tt,text:nt}),"<h"+tt+' id="'+Ce+Me+'">'+nt+"</h"+tt+">"},it().setOptions({silent:!0,gfm:!0,pedantic:!1}),it().use({tokenizer:Ne,renderer:we}),Zt.ZP=it()},86013:function(ln,Zt,ie){"use strict";var z=ie(59301),it=ie(19248);const ve=Je=>{let Ce;return typeof Je=="object"&&(Je!=null&&Je.clearIcon)?Ce=Je:Je&&(Ce={clearIcon:z.createElement(it.Z,null)}),Ce};Zt.Z=ve},38406:function(ln,Zt,ie){"use strict";var z=ie(59301),it=ie(48755),ve=ie(584);const Je=Ce=>{const{componentName:Ee}=Ce,{getPrefixCls:Be}=(0,z.useContext)(it.E_),Ye=Be("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:`${Ye}-small`});case"Table.filter":return null;default:return z.createElement(ve.Z,null)}};Zt.Z=Je},36207:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return st}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Je=ie(85899),Ce=ie(72190),Ee=ie(43403),Be=ie(34280),Ye=z.createContext(null),we=z.createContext({}),he=Ye,Qe=ie(18642),Ie=ie(60499),St=ie(77900),Ue=ie(10228),Ne=ie(26112),Ve=ie(42244),ze=ie(8654),ht=["prefixCls","className","containerRef"],wt=function(_e){var ot=_e.prefixCls,yt=_e.className,vt=_e.containerRef,Kt=(0,Ve.Z)(_e,ht),jt=z.useContext(we),Ht=jt.panel,tn=(0,ze.x1)(Ht,vt);return z.createElement("div",(0,Ie.Z)({className:ve()("".concat(ot,"-content"),yt),role:"dialog",ref:tn},(0,Ne.Z)(_e,{aria:!0}),{"aria-modal":"true"},Kt))},Ot=wt,dt=ie(48736);function qe(Pe){return typeof Pe=="string"&&String(Number(Pe))===Pe?((0,dt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Pe)):Pe}function at(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 We={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Pt(Pe,_e){var ot,yt,vt,Kt=Pe.prefixCls,jt=Pe.open,Ht=Pe.placement,tn=Pe.inline,Qt=Pe.push,nn=Pe.forceRender,xt=Pe.autoFocus,qt=Pe.keyboard,Wt=Pe.classNames,De=Pe.rootClassName,et=Pe.rootStyle,Bt=Pe.zIndex,Rt=Pe.className,ke=Pe.id,He=Pe.style,lt=Pe.motion,Et=Pe.width,Vt=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,Tt=Pe.onMouseEnter,mt=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(_e,function(){return On.current});var An=function(Lt){var kt=Lt.keyCode,fn=Lt.shiftKey;switch(kt){case Ue.Z.TAB:{if(kt===Ue.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 Ue.Z.ESC:{Mt&&qt&&(Lt.stopPropagation(),Mt(Lt));break}}};z.useEffect(function(){if(jt&&xt){var Xt;(Xt=On.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}},[jt]);var It=z.useState(!1),Ut=(0,Ce.Z)(It,2),xn=Ut[0],hn=Ut[1],Te=z.useContext(he),Ge;typeof Qt=="boolean"?Ge=Qt?{}:{distance:0}:Ge=Qt||{};var ye=(ot=(yt=(vt=Ge)===null||vt===void 0?void 0:vt.distance)!==null&&yt!==void 0?yt:Te==null?void 0:Te.pushDistance)!==null&&ot!==void 0?ot:180,Re=z.useMemo(function(){return{pushDistance:ye,push:function(){hn(!0)},pull:function(){hn(!1)}}},[ye]);z.useEffect(function(){if(jt){var Xt;Te==null||(Xt=Te.push)===null||Xt===void 0||Xt.call(Te)}else{var Lt;Te==null||(Lt=Te.pull)===null||Lt===void 0||Lt.call(Te)}},[jt]),z.useEffect(function(){return function(){var Xt;Te==null||(Xt=Te.pull)===null||Xt===void 0||Xt.call(Te)}},[]);var Se=In&&z.createElement(St.default,(0,Ie.Z)({key:"mask"},rn,{visible:jt}),function(Xt,Lt){var kt=Xt.className,fn=Xt.style;return z.createElement("div",{className:ve()("".concat(Kt,"-mask"),kt,Wt==null?void 0:Wt.mask,bn),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},fn),dn),wn==null?void 0:wn.mask),onClick:kn&&jt?Mt:void 0,ref:Lt})}),Fe=typeof lt=="function"?lt(Ht):lt,gt={};if(xn&&ye)switch(Ht){case"top":gt.transform="translateY(".concat(ye,"px)");break;case"bottom":gt.transform="translateY(".concat(-ye,"px)");break;case"left":gt.transform="translateX(".concat(ye,"px)");break;default:gt.transform="translateX(".concat(-ye,"px)");break}Ht==="left"||Ht==="right"?gt.width=qe(Et):gt.height=qe(Vt);var on={onMouseEnter:Tt,onMouseOver:mt,onMouseLeave:en,onClick:Yt,onKeyDown:Jt,onKeyUp:vn},un=z.createElement(St.default,(0,Ie.Z)({key:"panel"},Fe,{visible:jt,forceRender:nn,onVisibleChanged:function(Lt){_t==null||_t(Lt)},removeOnLeave:!1,leavedClassName:"".concat(Kt,"-content-wrapper-hidden")}),function(Xt,Lt){var kt=Xt.className,fn=Xt.style,Bn=z.createElement(Ot,(0,Ie.Z)({id:ke,containerRef:Lt,prefixCls:Kt,className:ve()(Rt,Wt==null?void 0:Wt.content),style:(0,Je.Z)((0,Je.Z)({},He),wn==null?void 0:wn.content)},(0,Ne.Z)(Pe,{aria:!0}),on),an);return z.createElement("div",(0,Ie.Z)({className:ve()("".concat(Kt,"-content-wrapper"),Wt==null?void 0:Wt.wrapper,kt),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},gt),fn),wn==null?void 0:wn.wrapper)},(0,Ne.Z)(Pe,{data:!0})),Sn?Sn(Bn):Bn)}),gn=(0,Je.Z)({},et);return Bt&&(gn.zIndex=Bt),z.createElement(he.Provider,{value:Re},z.createElement("div",{className:ve()(Kt,"".concat(Kt,"-").concat(Ht),De,(0,Qe.Z)((0,Qe.Z)({},"".concat(Kt,"-open"),jt),"".concat(Kt,"-inline"),tn)),style:gn,tabIndex:-1,ref:On,onKeyDown:An},Se,z.createElement("div",{tabIndex:0,ref:Mn,style:We,"aria-hidden":"true","data-sentinel":"start"}),un,z.createElement("div",{tabIndex:0,ref:jn,style:We,"aria-hidden":"true","data-sentinel":"end"})))}var nt=z.forwardRef(Pt),tt=nt,pt=function(_e){var ot=_e.open,yt=ot===void 0?!1:ot,vt=_e.prefixCls,Kt=vt===void 0?"rc-drawer":vt,jt=_e.placement,Ht=jt===void 0?"right":jt,tn=_e.autoFocus,Qt=tn===void 0?!0:tn,nn=_e.keyboard,xt=nn===void 0?!0:nn,qt=_e.width,Wt=qt===void 0?378:qt,De=_e.mask,et=De===void 0?!0:De,Bt=_e.maskClosable,Rt=Bt===void 0?!0:Bt,ke=_e.getContainer,He=_e.forceRender,lt=_e.afterOpenChange,Et=_e.destroyOnClose,Vt=_e.onMouseEnter,an=_e.onMouseOver,In=_e.onMouseLeave,kn=_e.onClick,rn=_e.onKeyDown,bn=_e.onKeyUp,dn=_e.panelRef,_t=z.useState(!1),Mt=(0,Ce.Z)(_t,2),Tt=Mt[0],mt=Mt[1],en=z.useState(!1),Yt=(0,Ce.Z)(en,2),Jt=Yt[0],vn=Yt[1];(0,Be.Z)(function(){vn(!0)},[]);var wn=Jt?yt:!1,Sn=z.useRef(),On=z.useRef();(0,Be.Z)(function(){wn&&(On.current=document.activeElement)},[wn]);var Mn=function(xn){var hn;if(mt(xn),lt==null||lt(xn),!xn&&On.current&&!((hn=Sn.current)!==null&&hn!==void 0&&hn.contains(On.current))){var Te;(Te=On.current)===null||Te===void 0||Te.focus({preventScroll:!0})}},jn=z.useMemo(function(){return{panel:dn}},[dn]);if(!He&&!Tt&&!wn&&Et)return null;var An={onMouseEnter:Vt,onMouseOver:an,onMouseLeave:In,onClick:kn,onKeyDown:rn,onKeyUp:bn},It=(0,Je.Z)((0,Je.Z)({},_e),{},{open:wn,prefixCls:Kt,placement:Ht,autoFocus:Qt,keyboard:xt,width:Wt,mask:et,maskClosable:Rt,inline:ke===!1,afterOpenChange:Mn,ref:Sn},An);return z.createElement(we.Provider,{value:jn},z.createElement(Ee.Z,{open:wn||He||Tt,autoDestroy:!1,getContainer:ke,autoLock:et&&(wn||Tt)},z.createElement(tt,It)))},Me=pt,Ke=Me,je=ie(62487),ue=ie(75030),ut=ie(86641),Oe=ie(55743),Xe=ie(48755),Dt=ie(91190),xe=ie(78776),fe=ie(458),Gt=Pe=>{var _e,ot;const{prefixCls:yt,title:vt,footer:Kt,extra:jt,loading:Ht,onClose:tn,headerStyle:Qt,bodyStyle:nn,footerStyle:xt,children:qt,classNames:Wt,styles:De}=Pe,et=(0,Xe.dj)("drawer"),Bt=z.useCallback(Et=>z.createElement("button",{type:"button",onClick:tn,"aria-label":"Close",className:`${yt}-close`},Et),[tn]),[Rt,ke]=(0,xe.Z)((0,xe.w)(Pe),(0,xe.w)(et),{closable:!0,closeIconRender:Bt}),He=z.useMemo(()=>{var Et,Vt;return!vt&&!Rt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Et=et.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&&!vt&&!jt},(Vt=et.classNames)===null||Vt===void 0?void 0:Vt.header,Wt==null?void 0:Wt.header)},z.createElement("div",{className:`${yt}-header-title`},ke,vt&&z.createElement("div",{className:`${yt}-title`},vt)),jt&&z.createElement("div",{className:`${yt}-extra`},jt))},[Rt,ke,jt,Qt,yt,vt]),lt=z.useMemo(()=>{var Et,Vt;if(!Kt)return null;const an=`${yt}-footer`;return z.createElement("div",{className:ve()(an,(Et=et.classNames)===null||Et===void 0?void 0:Et.footer,Wt==null?void 0:Wt.footer),style:Object.assign(Object.assign(Object.assign({},(Vt=et.styles)===null||Vt===void 0?void 0:Vt.footer),xt),De==null?void 0:De.footer)},Kt)},[Kt,xt,yt]);return z.createElement(z.Fragment,null,He,z.createElement("div",{className:ve()(`${yt}-body`,Wt==null?void 0:Wt.body,(_e=et.classNames)===null||_e===void 0?void 0:_e.body),style:Object.assign(Object.assign(Object.assign({},(ot=et.styles)===null||ot===void 0?void 0:ot.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),lt)},Ct=ie(36237),me=ie(63356),Le=ie(16931),Ze=ie(51636);const Nt=Pe=>{const _e="100%";return{left:`translateX(-${_e})`,right:`translateX(${_e})`,top:`translateY(-${_e})`,bottom:`translateY(${_e})`}[Pe]},bt=(Pe,_e)=>({"&-enter, &-appear":Object.assign(Object.assign({},Pe),{"&-active":_e}),"&-leave":Object.assign(Object.assign({},_e),{"&-active":Pe})}),zt=(Pe,_e)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${_e}`}}},bt({opacity:Pe},{opacity:1})),Ae=(Pe,_e)=>[zt(.7,_e),bt({transform:Nt(Pe)},{transform:"none"})];var ct=Pe=>{const{componentCls:_e,motionDurationSlow:ot}=Pe;return{[_e]:{[`${_e}-mask-motion`]:zt(0,ot),[`${_e}-panel-motion`]:["left","right","top","bottom"].reduce((yt,vt)=>Object.assign(Object.assign({},yt),{[`&-${vt}`]:Ae(vt,ot)}),{})}}};const ae=Pe=>{const{borderRadiusSM:_e,componentCls:ot,zIndexPopup:yt,colorBgMask:vt,colorBgElevated:Kt,motionDurationSlow:jt,motionDurationMid:Ht,paddingXS:tn,padding:Qt,paddingLG:nn,fontSizeLG:xt,lineHeightLG:qt,lineWidth:Wt,lineType:De,colorSplit:et,marginXS:Bt,colorIcon:Rt,colorIconHover:ke,colorBgTextHover:He,colorBgTextActive:lt,colorText:Et,fontWeightStrong:Vt,footerPaddingBlock:an,footerPaddingInline:In,calc:kn}=Pe,rn=`${ot}-content-wrapper`;return{[ot]:{position:"fixed",inset:0,zIndex:yt,pointerEvents:"none",color:Et,"&-pure":{position:"relative",background:Kt,display:"flex",flexDirection:"column",[`&${ot}-left`]:{boxShadow:Pe.boxShadowDrawerLeft},[`&${ot}-right`]:{boxShadow:Pe.boxShadowDrawerRight},[`&${ot}-top`]:{boxShadow:Pe.boxShadowDrawerUp},[`&${ot}-bottom`]:{boxShadow:Pe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ot}-mask`]:{position:"absolute",inset:0,zIndex:yt,background:vt,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},[`${ot}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Kt,pointerEvents:"auto"},[`${ot}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Ct.unit)(Qt)} ${(0,Ct.unit)(nn)}`,fontSize:xt,lineHeight:qt,borderBottom:`${(0,Ct.unit)(Wt)} ${De} ${et}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ot}-extra`]:{flex:"none"},[`${ot}-close`]:Object.assign({display:"inline-flex",width:kn(xt).add(tn).equal(),height:kn(xt).add(tn).equal(),borderRadius:_e,justifyContent:"center",alignItems:"center",marginInlineEnd:Bt,color:Rt,fontWeight:Vt,fontSize:xt,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:He,textDecoration:"none"},"&:active":{backgroundColor:lt}},(0,me.Qy)(Pe)),[`${ot}-title`]:{flex:1,margin:0,fontWeight:Pe.fontWeightStrong,fontSize:xt,lineHeight:qt},[`${ot}-body`]:{flex:1,minWidth:0,minHeight:0,padding:nn,overflow:"auto",[`${ot}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ot}-footer`]:{flexShrink:0,padding:`${(0,Ct.unit)(an)} ${(0,Ct.unit)(In)}`,borderTop:`${(0,Ct.unit)(Wt)} ${De} ${et}`},"&-rtl":{direction:"rtl"}}}},te=Pe=>({zIndexPopup:Pe.zIndexPopupBase,footerPaddingBlock:Pe.paddingXS,footerPaddingInline:Pe.padding});var ee=(0,Le.I$)("Drawer",Pe=>{const _e=(0,Ze.mergeToken)(Pe,{});return[ae(_e),ct(_e)]},te),oe=function(Pe,_e){var ot={};for(var yt in Pe)Object.prototype.hasOwnProperty.call(Pe,yt)&&_e.indexOf(yt)<0&&(ot[yt]=Pe[yt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,yt=Object.getOwnPropertySymbols(Pe);vt<yt.length;vt++)_e.indexOf(yt[vt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,yt[vt])&&(ot[yt[vt]]=Pe[yt[vt]]);return ot};const se=null,ne={distance:180},pe=Pe=>{var _e;const{rootClassName:ot,width:yt,height:vt,size:Kt="default",mask:jt=!0,push:Ht=ne,open:tn,afterOpenChange:Qt,onClose:nn,prefixCls:xt,getContainer:qt,style:Wt,className:De,visible:et,afterVisibleChange:Bt,maskStyle:Rt,drawerStyle:ke,contentWrapperStyle:He}=Pe,lt=oe(Pe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Et,getPrefixCls:Vt,direction:an,className:In,style:kn,classNames:rn,styles:bn}=(0,Xe.dj)("drawer"),dn=Vt("drawer",xt),[_t,Mt,Tt]=ee(dn),mt=qt===void 0&&Et?()=>Et(document.body):qt,en=ve()({"no-mask":!jt,[`${dn}-rtl`]:an==="rtl"},ot,Mt,Tt),Yt=z.useMemo(()=>yt!=null?yt:Kt==="large"?736:378,[yt,Kt]),Jt=z.useMemo(()=>vt!=null?vt:Kt==="large"?736:378,[vt,Kt]),vn={motionName:(0,ut.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},wn=It=>({motionName:(0,ut.m)(dn,`panel-motion-${It}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Sn=(0,Dt.H)(),[On,Mn]=(0,ue.Cn)("Drawer",lt.zIndex),{classNames:jn={},styles:An={}}=lt;return _t(z.createElement(je.Z,{form:!0,space:!0},z.createElement(Oe.Z.Provider,{value:Mn},z.createElement(Ke,Object.assign({prefixCls:dn,onClose:nn,maskMotion:vn,motion:wn},lt,{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),He),bn.wrapper)},open:tn!=null?tn:et,mask:jt,push:Ht,width:Yt,height:Jt,style:Object.assign(Object.assign({},kn),Wt),className:ve()(In,De),rootClassName:en,getContainer:mt,afterOpenChange:Qt!=null?Qt:Bt,panelRef:Sn,zIndex:On}),z.createElement(Gt,Object.assign({prefixCls:dn},lt,{onClose:nn}))))))},be=Pe=>{const{prefixCls:_e,style:ot,className:yt,placement:vt="right"}=Pe,Kt=oe(Pe,["prefixCls","style","className","placement"]),{getPrefixCls:jt}=z.useContext(Xe.E_),Ht=jt("drawer",_e),[tn,Qt,nn]=ee(Ht),xt=ve()(Ht,`${Ht}-pure`,`${Ht}-${vt}`,Qt,nn,yt);return tn(z.createElement("div",{className:xt,style:ot},z.createElement(Gt,Object.assign({prefixCls:Ht},Kt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=be;var st=pe},19563:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ct}});var z=ie(59301),it=ie(33853),ve=ie(38819),Je=ie(92310),Ce=ie.n(Je),Ee=ie(96478),Be=ie(6089),Ye=ie(18929),we=ie(2738),he=ie(75030),Ie=me=>typeof me!="object"&&typeof me!="function"||me===null,St=ie(52838),Ue=ie(45915),Ne=ie(22703),Ve=ie(32383),ze=ie(55743),ht=ie(48755),wt=ie(83397),Ot=ie(93041),dt=ie(78857),qe=ie(57700),at=ie(36237),We=ie(63356),Pt=ie(46e3),nt=ie(93873),tt=ie(34925),pt=ie(37645),Me=ie(36305),Ke=ie(16931),je=ie(51636),ut=me=>{const{componentCls:Le,menuCls:Ze,colorError:Nt,colorTextLightSolid:bt}=me,zt=`${Ze}-item`;return{[`${Le}, ${Le}-menu-submenu`]:{[`${Ze} ${zt}`]:{[`&${zt}-danger:not(${zt}-disabled)`]:{color:Nt,"&:hover":{color:bt,backgroundColor:Nt}}}}}};const Oe=me=>{const{componentCls:Le,menuCls:Ze,zIndexPopup:Nt,dropdownArrowDistance:bt,sizePopupArrow:zt,antCls:Ae,iconCls:$t,motionDurationMid:ct,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:pe}=me;return[{[Le]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Nt,display:"block","&::before":{position:"absolute",insetBlock:me.calc(zt).div(2).sub(bt).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}},[`${Le}-wrap`]:{position:"relative",[`${Ae}-btn > ${$t}-down`]:{fontSize:se},[`${$t}-down::before`]:{transition:`transform ${ct}`}},[`${Le}-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${Le}-placement-bottomLeft,
|
|
|
&${Ae}-slide-down-appear${Ae}-slide-down-appear-active${Le}-placement-bottomLeft,
|
|
|
&${Ae}-slide-down-enter${Ae}-slide-down-enter-active${Le}-placement-bottom,
|
|
|
&${Ae}-slide-down-appear${Ae}-slide-down-appear-active${Le}-placement-bottom,
|
|
|
&${Ae}-slide-down-enter${Ae}-slide-down-enter-active${Le}-placement-bottomRight,
|
|
|
&${Ae}-slide-down-appear${Ae}-slide-down-appear-active${Le}-placement-bottomRight`]:{animationName:Pt.fJ},[`&${Ae}-slide-up-enter${Ae}-slide-up-enter-active${Le}-placement-topLeft,
|
|
|
&${Ae}-slide-up-appear${Ae}-slide-up-appear-active${Le}-placement-topLeft,
|
|
|
&${Ae}-slide-up-enter${Ae}-slide-up-enter-active${Le}-placement-top,
|
|
|
&${Ae}-slide-up-appear${Ae}-slide-up-appear-active${Le}-placement-top,
|
|
|
&${Ae}-slide-up-enter${Ae}-slide-up-enter-active${Le}-placement-topRight,
|
|
|
&${Ae}-slide-up-appear${Ae}-slide-up-appear-active${Le}-placement-topRight`]:{animationName:Pt.Qt},[`&${Ae}-slide-down-leave${Ae}-slide-down-leave-active${Le}-placement-bottomLeft,
|
|
|
&${Ae}-slide-down-leave${Ae}-slide-down-leave-active${Le}-placement-bottom,
|
|
|
&${Ae}-slide-down-leave${Ae}-slide-down-leave-active${Le}-placement-bottomRight`]:{animationName:Pt.Uw},[`&${Ae}-slide-up-leave${Ae}-slide-up-leave-active${Le}-placement-topLeft,
|
|
|
&${Ae}-slide-up-leave${Ae}-slide-up-leave-active${Le}-placement-top,
|
|
|
&${Ae}-slide-up-leave${Ae}-slide-up-leave-active${Le}-placement-topRight`]:{animationName:Pt.ly}}},(0,pt.ZP)(me,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Le} ${Ze}`]:{position:"relative",margin:0},[`${Ze}-submenu-popup`]:{position:"absolute",zIndex:Nt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Le}, ${Le}-menu-submenu`]:Object.assign(Object.assign({},(0,We.Wf)(me)),{[Ze]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,We.Qy)(me)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ze}-item-group-title`]:{padding:`${(0,at.unit)(ae)} ${(0,at.unit)(ne)}`,color:me.colorTextDescription,transition:`all ${ct}`},[`${Ze}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ze}-item-icon`]:{minWidth:te,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${Ze}-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:'""'}},[`${Ze}-item-extra`]:{paddingInlineStart:me.padding,marginInlineStart:"auto",fontSize:me.fontSizeSM,color:me.colorTextDescription}},[`${Ze}-item, ${Ze}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,at.unit)(ae)} ${(0,at.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,We.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,at.unit)(me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${Le}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${Le}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Ze}-item-group-list`]:{margin:`0 ${(0,at.unit)(me.marginXS)}`,padding:0,listStyle:"none"},[`${Ze}-submenu-title`]:{paddingInlineEnd:me.calc(ne).add(me.fontSizeSM).equal()},[`${Ze}-submenu-vertical`]:{position:"relative"},[`${Ze}-submenu${Ze}-submenu-disabled ${Le}-menu-submenu-title`]:{[`&, ${Le}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${Ze}-submenu-selected ${Le}-menu-submenu-title`]:{color:me.colorPrimary}})})},[(0,Pt.oN)(me,"slide-up"),(0,Pt.oN)(me,"slide-down"),(0,nt.Fm)(me,"move-up"),(0,nt.Fm)(me,"move-down"),(0,tt._y)(me,"zoom-big")]]},Xe=me=>Object.assign(Object.assign({zIndexPopup:me.zIndexPopupBase+50,paddingBlock:(me.controlHeight-me.fontSize*me.lineHeight)/2},(0,pt.wZ)({contentRadius:me.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(me));var Dt=(0,Ke.I$)("Dropdown",me=>{const{marginXXS:Le,sizePopupArrow:Ze,paddingXXS:Nt,componentCls:bt}=me,zt=(0,je.mergeToken)(me,{menuCls:`${bt}-menu`,dropdownArrowDistance:me.calc(Ze).div(2).add(Le).equal(),dropdownEdgeChildPadding:Nt});return[Oe(zt),ut(zt)]},Xe,{resetStyle:!1});const xe=null,fe=me=>{var Le;const{menu:Ze,arrow:Nt,prefixCls:bt,children:zt,trigger:Ae,disabled:$t,dropdownRender:ct,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:pe,onVisibleChange:be,mouseEnterDelay:st=.15,mouseLeaveDelay:Pe=.1,autoAdjustOverflow:_e=!0,placement:ot="",overlay:yt,transitionName:vt}=me,{getPopupContainer:Kt,getPrefixCls:jt,direction:Ht,dropdown:tn}=z.useContext(ht.E_),Qt=(0,Ve.ln)("Dropdown"),nn=z.useMemo(()=>{const mt=jt();return vt!==void 0?vt:ot.includes("top")?`${mt}-slide-down`:`${mt}-slide-up`},[jt,ot,vt]),xt=z.useMemo(()=>ot?ot.includes("Center")?ot.slice(0,ot.indexOf("Center")):ot:Ht==="rtl"?"bottomRight":"bottomLeft",[ot,Ht]),qt=jt("dropdown",bt),Wt=(0,wt.Z)(qt),[De,et,Bt]=Dt(qt,Wt),[,Rt]=(0,qe.ZP)(),ke=z.Children.only(Ie(zt)?z.createElement("span",null,zt):zt),He=(0,Ne.Tm)(ke,{className:Ce()(`${qt}-trigger`,{[`${qt}-rtl`]:Ht==="rtl"},ke.props.className),disabled:(Le=ke.props.disabled)!==null&&Le!==void 0?Le:$t}),lt=$t?[]:Ae,Et=!!(lt!=null&<.includes("contextMenu")),[Vt,an]=(0,Ye.Z)(!1,{value:se!=null?se:pe}),In=(0,Be.Z)(mt=>{ne==null||ne(mt,{source:"trigger"}),be==null||be(mt),an(mt)}),kn=Ce()(te,ee,et,Bt,Wt,tn==null?void 0:tn.className,{[`${qt}-rtl`]:Ht==="rtl"}),rn=(0,St.Z)({arrowPointAtCenter:typeof Nt=="object"&&Nt.pointAtCenter,autoAdjustOverflow:_e,offset:Rt.marginXXS,arrowWidth:Nt?Rt.sizePopupArrow:0,borderRadius:Rt.borderRadius}),bn=z.useCallback(()=>{Ze!=null&&Ze.selectable&&(Ze!=null&&Ze.multiple)||(ne==null||ne(!1,{source:"menu"}),an(!1))},[Ze==null?void 0:Ze.selectable,Ze==null?void 0:Ze.multiple]),dn=()=>{let mt;return Ze!=null&&Ze.items?mt=z.createElement(Ot.default,Object.assign({},Ze)):typeof yt=="function"?mt=yt():mt=yt,ct&&(mt=ct(mt)),mt=z.Children.only(typeof mt=="string"?z.createElement("span",null,mt):mt),z.createElement(dt.J,{prefixCls:`${qt}-menu`,rootClassName:Ce()(Bt,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}},mt)},[_t,Mt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Tt=z.createElement(Ee.Z,Object.assign({alignPoint:Et},(0,we.Z)(me,["rootClassName"]),{mouseEnterDelay:st,mouseLeaveDelay:Pe,visible:Vt,builtinPlacements:rn,arrow:!!Nt,overlayClassName:kn,prefixCls:qt,getPopupContainer:ae||Kt,transitionName:nn,trigger:lt,overlay:dn,placement:xt,onVisibleChange:In,overlayStyle:Object.assign(Object.assign(Object.assign({},tn==null?void 0:tn.style),oe),{zIndex:_t})}),He);return _t&&(Tt=z.createElement(ze.Z.Provider,{value:Mt},Tt)),De(Tt)},ft=(0,Ue.Z)(fe,"align",void 0,"dropdown",me=>me),Gt=me=>z.createElement(ft,Object.assign({},me),z.createElement("span",null));fe._InternalPanelDoNotUseOrYouWillBeFired=Gt;var Ct=fe},75727:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ue}});var z=ie(19563),it=ie(59301),ve=ie(18785),Je=ie(92310),Ce=ie.n(Je),Ee=ie(7939),Be=ie(48755),Ye=ie(44104),we=ie(70045),he=function(Ne,Ve){var ze={};for(var ht in Ne)Object.prototype.hasOwnProperty.call(Ne,ht)&&Ve.indexOf(ht)<0&&(ze[ht]=Ne[ht]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,ht=Object.getOwnPropertySymbols(Ne);wt<ht.length;wt++)Ve.indexOf(ht[wt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ht[wt])&&(ze[ht[wt]]=Ne[ht[wt]]);return ze};const Qe=Ne=>{const{getPopupContainer:Ve,getPrefixCls:ze,direction:ht}=it.useContext(Be.E_),{prefixCls:wt,type:Ot="default",danger:dt,disabled:qe,loading:at,onClick:We,htmlType:Pt,children:nt,className:tt,menu:pt,arrow:Me,autoFocus:Ke,overlay:je,trigger:ue,align:ut,open:Oe,onOpenChange:Xe,placement:Dt,getPopupContainer:xe,href:fe,icon:ft=it.createElement(ve.Z,null),title:Gt,buttonsRender:Ct=st=>st,mouseEnterDelay:me,mouseLeaveDelay:Le,overlayClassName:Ze,overlayStyle:Nt,destroyPopupOnHide:bt,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:pt,arrow:Me,autoFocus:Ke,align:ut,disabled:qe,trigger:qe?[]:ue,onOpenChange:Xe,getPopupContainer:xe||Ve,mouseEnterDelay:me,mouseLeaveDelay:Le,overlayClassName:Ze,overlayStyle:Nt,destroyPopupOnHide:bt,dropdownRender:zt},{compactSize:te,compactItemClassnames:ee}=(0,we.ri)($t,ht),oe=Ce()(ct,ee,tt);"overlay"in Ne&&(ae.overlay=je),"open"in Ne&&(ae.open=Oe),"placement"in Ne?ae.placement=Dt:ae.placement=ht==="rtl"?"bottomLeft":"bottomRight";const se=it.createElement(Ee.ZP,{type:Ot,danger:dt,disabled:qe,loading:at,onClick:We,htmlType:Pt,href:fe,title:Gt},nt),ne=it.createElement(Ee.ZP,{type:Ot,danger:dt,icon:ft}),[pe,be]=Ct([se,ne]);return it.createElement(Ye.Z.Compact,Object.assign({className:oe,size:te,block:!0},Ae),pe,it.createElement(z.Z,Object.assign({},ae),be))};Qe.__ANT_BUTTON=!0;var Ie=Qe;const St=z.Z;St.Button=Ie;var Ue=St},584:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ot}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Je=ie(9017),Ce=ie(17835),Ee=ie(57700),Ye=()=>{const[,dt]=(0,Ee.ZP)(),[qe]=(0,Je.Z)("Empty"),We=new Ce.FastColor(dt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:We,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(qe==null?void 0:qe.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,dt]=(0,Ee.ZP)(),[qe]=(0,Je.Z)("Empty"),{colorFill:at,colorFillTertiary:We,colorFillQuaternary:Pt,colorBgContainer:nt}=dt,{borderColor:tt,shadowColor:pt,contentColor:Me}=(0,z.useMemo)(()=>({borderColor:new Ce.FastColor(at).onBackground(nt).toHexString(),shadowColor:new Ce.FastColor(We).onBackground(nt).toHexString(),contentColor:new Ce.FastColor(Pt).onBackground(nt).toHexString()}),[at,We,Pt,nt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(qe==null?void 0:qe.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:pt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:tt},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}))))},Qe=ie(16931),Ie=ie(51636);const St=dt=>{const{componentCls:qe,margin:at,marginXS:We,marginXL:Pt,fontSize:nt,lineHeight:tt}=dt;return{[qe]:{marginInline:We,fontSize:nt,lineHeight:tt,textAlign:"center",[`${qe}-image`]:{height:dt.emptyImgHeight,marginBottom:We,opacity:dt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${qe}-description`]:{color:dt.colorTextDescription},[`${qe}-footer`]:{marginTop:at},"&-normal":{marginBlock:Pt,color:dt.colorTextDescription,[`${qe}-description`]:{color:dt.colorTextDescription},[`${qe}-image`]:{height:dt.emptyImgHeightMD}},"&-small":{marginBlock:We,color:dt.colorTextDescription,[`${qe}-image`]:{height:dt.emptyImgHeightSM}}}}};var Ue=(0,Qe.I$)("Empty",dt=>{const{componentCls:qe,controlHeightLG:at,calc:We}=dt,Pt=(0,Ie.mergeToken)(dt,{emptyImgCls:`${qe}-img`,emptyImgHeight:We(at).mul(2.5).equal(),emptyImgHeightMD:at,emptyImgHeightSM:We(at).mul(.875).equal()});return[St(Pt)]}),Ne=ie(48755),Ve=function(dt,qe){var at={};for(var We in dt)Object.prototype.hasOwnProperty.call(dt,We)&&qe.indexOf(We)<0&&(at[We]=dt[We]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,We=Object.getOwnPropertySymbols(dt);Pt<We.length;Pt++)qe.indexOf(We[Pt])<0&&Object.prototype.propertyIsEnumerable.call(dt,We[Pt])&&(at[We[Pt]]=dt[We[Pt]]);return at};const ze=z.createElement(Ye,null),ht=z.createElement(he,null),wt=dt=>{const{className:qe,rootClassName:at,prefixCls:We,image:Pt=ze,description:nt,children:tt,imageStyle:pt,style:Me,classNames:Ke,styles:je}=dt,ue=Ve(dt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ut,direction:Oe,className:Xe,style:Dt,classNames:xe,styles:fe}=(0,Ne.dj)("empty"),ft=ut("empty",We),[Gt,Ct,me]=Ue(ft),[Le]=(0,Je.Z)("Empty"),Ze=typeof nt!="undefined"?nt:Le==null?void 0:Le.description,Nt=typeof Ze=="string"?Ze:"empty";let bt=null;return typeof Pt=="string"?bt=z.createElement("img",{alt:Nt,src:Pt}):bt=Pt,Gt(z.createElement("div",Object.assign({className:ve()(Ct,me,ft,Xe,{[`${ft}-normal`]:Pt===ht,[`${ft}-rtl`]:Oe==="rtl"},qe,at,xe.root,Ke==null?void 0:Ke.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),Dt),je==null?void 0:je.root),Me)},ue),z.createElement("div",{className:ve()(`${ft}-image`,xe.image,Ke==null?void 0:Ke.image),style:Object.assign(Object.assign(Object.assign({},pt),fe.image),je==null?void 0:je.image)},bt),Ze&&z.createElement("div",{className:ve()(`${ft}-description`,xe.description,Ke==null?void 0:Ke.description),style:Object.assign(Object.assign({},fe.description),je==null?void 0:je.description)},Ze),tt&&z.createElement("div",{className:ve()(`${ft}-footer`,xe.footer,Ke==null?void 0:Ke.footer),style:Object.assign(Object.assign({},fe.footer),je==null?void 0:je.footer)},tt)))};wt.PRESENTED_IMAGE_DEFAULT=ze,wt.PRESENTED_IMAGE_SIMPLE=ht;var Ot=wt},28284:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return Ge}});var z=ie(56553),it=ie(77654),ve=ie(59301),Je=ie(92310),Ce=ie.n(Je),Ee=ie(77900),Be=ie(86641),Ye=ie(83397);function we(ye){const[Re,Se]=ve.useState(ye);return ve.useEffect(()=>{const Fe=setTimeout(()=>{Se(ye)},ye.length?0:10);return()=>{clearTimeout(Fe)}},[ye]),Re}var he=ie(36237),Qe=ie(63356),Ie=ie(34925),St=ie(34961),Ue=ie(51636),Ne=ie(16931),ze=ye=>{const{componentCls:Re}=ye,Se=`${Re}-show-help`,Fe=`${Re}-show-help-item`;return{[Se]:{transition:`opacity ${ye.motionDurationFast} ${ye.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Fe]:{overflow:"hidden",transition:`height ${ye.motionDurationFast} ${ye.motionEaseInOut},
|
|
|
opacity ${ye.motionDurationFast} ${ye.motionEaseInOut},
|
|
|
transform ${ye.motionDurationFast} ${ye.motionEaseInOut} !important`,[`&${Fe}-appear, &${Fe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Fe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ht=ye=>({legend:{display:"block",width:"100%",marginBottom:ye.marginLG,padding:0,color:ye.colorTextDescription,fontSize:ye.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(ye.lineWidth)} ${ye.lineType} ${ye.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,he.unit)(ye.controlOutlineWidth)} ${ye.controlOutline}`},output:{display:"block",paddingTop:15,color:ye.colorText,fontSize:ye.fontSize,lineHeight:ye.lineHeight}}),wt=(ye,Re)=>{const{formItemCls:Se}=ye;return{[Se]:{[`${Se}-label > label`]:{height:Re},[`${Se}-control-input`]:{minHeight:Re}}}},Ot=ye=>{const{componentCls:Re}=ye;return{[ye.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(ye)),ht(ye)),{[`${Re}-text`]:{display:"inline-block",paddingInlineEnd:ye.paddingSM},"&-small":Object.assign({},wt(ye,ye.controlHeightSM)),"&-large":Object.assign({},wt(ye,ye.controlHeightLG))})}},dt=ye=>{const{formItemCls:Re,iconCls:Se,rootPrefixCls:Fe,antCls:gt,labelRequiredMarkColor:on,labelColor:un,labelFontSize:gn,labelHeight:Xt,labelColonMarginInlineStart:Lt,labelColonMarginInlineEnd:kt,itemMarginBottom:fn}=ye;return{[Re]:Object.assign(Object.assign({},(0,Qe.Wf)(ye)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${gt}-row`]:{display:"none"},"&-has-warning":{[`${Re}-split`]:{color:ye.colorError}},"&-has-error":{[`${Re}-split`]:{color:ye.colorWarning}},[`${Re}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ye.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Xt,color:un,fontSize:gn,[`> ${Se}`]:{fontSize:ye.fontSize,verticalAlign:"top"},[`&${Re}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ye.marginXXS,color:on,fontSize:ye.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:ye.marginXXS,color:ye.colorTextDescription,[`&${Re}-required-mark-hidden`]:{display:"none"}},[`${Re}-tooltip`]:{color:ye.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ye.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Lt,marginInlineEnd:kt},[`&${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:ye.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Re]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ye.colorTextDescription,fontSize:ye.fontSize,lineHeight:ye.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ye.controlHeightSM,transition:`color ${ye.motionDurationMid} ${ye.motionEaseOut}`},"&-explain":{"&-error":{color:ye.colorError},"&-warning":{color:ye.colorWarning}}},[`&-with-help ${Re}-explain`]:{height:"auto",opacity:1},[`${Re}-feedback-icon`]:{fontSize:ye.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:ye.motionDurationMid,animationTimingFunction:ye.motionEaseOutBack,pointerEvents:"none","&-success":{color:ye.colorSuccess},"&-error":{color:ye.colorError},"&-warning":{color:ye.colorWarning},"&-validating":{color:ye.colorPrimary}}})}},qe=(ye,Re)=>{const{formItemCls:Se}=ye;return{[`${Re}-horizontal`]:{[`${Se}-label`]:{flexGrow:0},[`${Se}-control`]:{flex:"1 1 0",minWidth:0},[`${Se}-label[class$='-24'], ${Se}-label[class*='-24 ']`]:{[`& + ${Se}-control`]:{minWidth:"unset"}}}}},at=ye=>{const{componentCls:Re,formItemCls:Se,inlineItemMarginBottom:Fe}=ye;return{[`${Re}-inline`]:{display:"flex",flexWrap:"wrap",[Se]:{flex:"none",marginInlineEnd:ye.margin,marginBottom:Fe,"&-row":{flexWrap:"nowrap"},[`> ${Se}-label,
|
|
|
> ${Se}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Se}-label`]:{flex:"none"},[`${Re}-text`]:{display:"inline-block"},[`${Se}-has-feedback`]:{display:"inline-block"}}}}},We=ye=>({padding:ye.verticalLabelPadding,margin:ye.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pt=ye=>{const{componentCls:Re,formItemCls:Se,rootPrefixCls:Fe}=ye;return{[`${Se} ${Se}-label`]:We(ye),[`${Re}:not(${Re}-inline)`]:{[Se]:{flexWrap:"wrap",[`${Se}-label, ${Se}-control`]:{[`&:not([class*=" ${Fe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},nt=ye=>{const{componentCls:Re,formItemCls:Se,antCls:Fe}=ye;return{[`${Re}-vertical`]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Se}-row`]:{flexDirection:"column"},[`${Se}-label > label`]:{height:"auto"},[`${Se}-control`]:{width:"100%"},[`${Se}-label,
|
|
|
${Fe}-col-24${Se}-label,
|
|
|
${Fe}-col-xl-24${Se}-label`]:We(ye)}},[`@media (max-width: ${(0,he.unit)(ye.screenXSMax)})`]:[Pt(ye),{[Re]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-xs-24${Se}-label`]:We(ye)}}}],[`@media (max-width: ${(0,he.unit)(ye.screenSMMax)})`]:{[Re]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-sm-24${Se}-label`]:We(ye)}}},[`@media (max-width: ${(0,he.unit)(ye.screenMDMax)})`]:{[Re]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-md-24${Se}-label`]:We(ye)}}},[`@media (max-width: ${(0,he.unit)(ye.screenLGMax)})`]:{[Re]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-lg-24${Se}-label`]:We(ye)}}}}},tt=ye=>{const{formItemCls:Re,antCls:Se}=ye;return{[`${Re}-vertical`]:{[`${Re}-row`]:{flexDirection:"column"},[`${Re}-label > label`]:{height:"auto"},[`${Re}-control`]:{width:"100%"}},[`${Re}-vertical ${Re}-label,
|
|
|
${Se}-col-24${Re}-label,
|
|
|
${Se}-col-xl-24${Re}-label`]:We(ye),[`@media (max-width: ${(0,he.unit)(ye.screenXSMax)})`]:[Pt(ye),{[Re]:{[`${Se}-col-xs-24${Re}-label`]:We(ye)}}],[`@media (max-width: ${(0,he.unit)(ye.screenSMMax)})`]:{[Re]:{[`${Se}-col-sm-24${Re}-label`]:We(ye)}},[`@media (max-width: ${(0,he.unit)(ye.screenMDMax)})`]:{[Re]:{[`${Se}-col-md-24${Re}-label`]:We(ye)}},[`@media (max-width: ${(0,he.unit)(ye.screenLGMax)})`]:{[Re]:{[`${Se}-col-lg-24${Re}-label`]:We(ye)}}}},pt=ye=>({labelRequiredMarkColor:ye.colorError,labelColor:ye.colorTextHeading,labelFontSize:ye.fontSize,labelHeight:ye.controlHeight,labelColonMarginInlineStart:ye.marginXXS/2,labelColonMarginInlineEnd:ye.marginXS,itemMarginBottom:ye.marginLG,verticalLabelPadding:`0 0 ${ye.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(ye,Re)=>(0,Ue.mergeToken)(ye,{formItemCls:`${ye.componentCls}-item`,rootPrefixCls:Re});var Ke=(0,Ne.I$)("Form",(ye,Re)=>{let{rootPrefixCls:Se}=Re;const Fe=Me(ye,Se);return[Ot(Fe),dt(Fe),ze(Fe),qe(Fe,Fe.componentCls),qe(Fe,Fe.formItemCls),at(Fe),nt(Fe),tt(Fe),(0,St.Z)(Fe),Ie.kr]},pt,{order:-1e3});const je=[];function ue(ye,Re,Se){let Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ye=="string"?ye:`${Re}-${Fe}`,error:ye,errorStatus:Se}}var Oe=ye=>{let{help:Re,helpStatus:Se,errors:Fe=je,warnings:gt=je,className:on,fieldId:un,onVisibleChanged:gn}=ye;const{prefixCls:Xt}=ve.useContext(z.Rk),Lt=`${Xt}-item-explain`,kt=(0,Ye.Z)(Xt),[fn,Bn,Dn]=Ke(Xt,kt),Tn=ve.useMemo(()=>(0,Be.Z)(Xt),[Xt]),Xn=we(Fe),Qn=we(gt),Jn=ve.useMemo(()=>Re!=null?[ue(Re,"help",Se)]:[].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,Se,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:Ce()(Lt,Un,Dn,kt,on,Bn),style:ur}),ve.createElement(Ee.CSSMotionList,Object.assign({keys:Zn},(0,Be.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:Ce()(tr,{[`${Lt}-${er}`]:er}),style:vr},ir)}))}))},Xe=ie(69180),Dt=ie(48755),xe=ie(2171),fe=ie(31756),ft=ie(23069),Gt=ie(76846),Ct=ie(16722);const me=["parentNode"],Le="form_item";function Ze(ye){return ye===void 0||ye===!1?[]:Array.isArray(ye)?ye:[ye]}function Nt(ye,Re){if(!ye.length)return;const Se=ye.join("_");return Re?`${Re}_${Se}`:me.includes(Se)?`${Le}_${Se}`:Se}function bt(ye,Re,Se,Fe,gt,on){let un=Fe;return on!==void 0?un=on:Se.validating?un="validating":ye.length?un="error":Re.length?un="warning":(Se.touched||gt&&Se.validated)&&(un="success"),un}var zt=function(ye,Re){var Se={};for(var Fe in ye)Object.prototype.hasOwnProperty.call(ye,Fe)&&Re.indexOf(Fe)<0&&(Se[Fe]=ye[Fe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Fe=Object.getOwnPropertySymbols(ye);gt<Fe.length;gt++)Re.indexOf(Fe[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Fe[gt])&&(Se[Fe[gt]]=ye[Fe[gt]]);return Se};function Ae(ye){return Ze(ye).join("_")}function $t(ye,Re){const Se=Re.getFieldInstance(ye),Fe=(0,Gt.bn)(Se);if(Fe)return Fe;const gt=Nt(Ze(ye),Re.__INTERNAL__.name);if(gt)return document.getElementById(gt)}function ct(ye){const[Re]=(0,Xe.useForm)(),Se=ve.useRef({}),Fe=ve.useMemo(()=>ye!=null?ye:Object.assign(Object.assign({},Re),{__INTERNAL__:{itemRef:gt=>on=>{const un=Ae(gt);on?Se.current[un]=on:delete Se.current[un]}},scrollToField:function(gt){let on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:un}=on,gn=zt(on,["focus"]),Xt=$t(gt,Fe);Xt&&((0,Ct.Z)(Xt,Object.assign({scrollMode:"if-needed",block:"nearest"},gn)),un&&Fe.focusField(gt))},focusField:gt=>{var on,un;const gn=Fe.getFieldInstance(gt);typeof(gn==null?void 0:gn.focus)=="function"?gn.focus():(un=(on=$t(gt,Fe))===null||on===void 0?void 0:on.focus)===null||un===void 0||un.call(on)},getFieldInstance:gt=>{const on=Ae(gt);return Se.current[on]}}),[ye,Re]);return[Fe]}var ae=ie(98350),te=function(ye,Re){var Se={};for(var Fe in ye)Object.prototype.hasOwnProperty.call(ye,Fe)&&Re.indexOf(Fe)<0&&(Se[Fe]=ye[Fe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Fe=Object.getOwnPropertySymbols(ye);gt<Fe.length;gt++)Re.indexOf(Fe[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Fe[gt])&&(Se[Fe[gt]]=ye[Fe[gt]]);return Se};const ee=(ye,Re)=>{const Se=ve.useContext(xe.Z),{getPrefixCls:Fe,direction:gt,requiredMark:on,colon:un,scrollToFirstError:gn,className:Xt,style:Lt}=(0,Dt.dj)("form"),{prefixCls:kt,className:fn,rootClassName:Bn,size:Dn,disabled:Tn=Se,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}=ye,cr=te(ye,["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",kt),Sr=(0,Ye.Z)(Gn),[Rr,Wr,Er]=Ke(Gn,Sr),Ar=Ce()(Gn,`${Gn}-${ur}`,{[`${Gn}-hide-required-mark`]:or===!1,[`${Gn}-rtl`]:gt==="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(xe.n,{disabled:Tn},ve.createElement(ft.Z.Provider,{value:gr},ve.createElement(z.RV,{validateMessages:Cr},ve.createElement(z.q3.Provider,{value:zr},ve.createElement(Xe.default,Object.assign({id:er},cr,{name:er,onFinishFailed:pn,form:Ir,ref:fr,style:Object.assign(Object.assign({},Lt),tr),className:Ar}))))))))};var se=ve.forwardRef(ee),ne=ie(41799),pe=ie(8654),be=ie(22703),st=ie(32383),Pe=ie(11592);function _e(ye){if(typeof ye=="function")return ye;const Re=(0,Pe.Z)(ye);return Re.length<=1?Re[0]:Re}const ot=()=>{const{status:ye,errors:Re=[],warnings:Se=[]}=ve.useContext(z.aM);return{status:ye,errors:Re,warnings:Se}};ot.Context=z.aM;var yt=ot,vt=ie(16089);function Kt(ye){const[Re,Se]=ve.useState(ye),Fe=ve.useRef(null),gt=ve.useRef([]),on=ve.useRef(!1);ve.useEffect(()=>(on.current=!1,()=>{on.current=!0,vt.Z.cancel(Fe.current),Fe.current=null}),[]);function un(gn){on.current||(Fe.current===null&&(gt.current=[],Fe.current=(0,vt.Z)(()=>{Fe.current=null,Se(Xt=>{let Lt=Xt;return gt.current.forEach(kt=>{Lt=kt(Lt)}),Lt})})),gt.current.push(gn))}return[Re,un]}function jt(){const{itemRef:ye}=ve.useContext(z.q3),Re=ve.useRef({});function Se(Fe,gt){const on=gt&&typeof gt=="object"&&(0,pe.C4)(gt),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)(ye(Fe),on)),Re.current.ref}return Se}var Ht=ie(29194),tn=ie(34280),Qt=ie(2738),nn=ie(65970),xt=ie(70425),qt=ie(5472);const Wt=ye=>{const{formItemCls:Re}=ye;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Re}-control`]:{display:"flex"}}}};var De=(0,Ne.bk)(["Form","item-item"],(ye,Re)=>{let{rootPrefixCls:Se}=Re;const Fe=Me(ye,Se);return[Wt(Fe)]}),et=function(ye,Re){var Se={};for(var Fe in ye)Object.prototype.hasOwnProperty.call(ye,Fe)&&Re.indexOf(Fe)<0&&(Se[Fe]=ye[Fe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Fe=Object.getOwnPropertySymbols(ye);gt<Fe.length;gt++)Re.indexOf(Fe[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Fe[gt])&&(Se[Fe[gt]]=ye[Fe[gt]]);return Se};const Bt=24;var ke=ye=>{const{prefixCls:Re,status:Se,labelCol:Fe,wrapperCol:gt,children:on,errors:un,warnings:gn,_internalItemRender:Xt,extra:Lt,help:kt,fieldId:fn,marginBottom:Bn,onErrorVisibleChanged:Dn,label:Tn}=ye,Xn=`${Re}-item`,Qn=ve.useContext(z.q3),Jn=ve.useMemo(()=>{let cr=Object.assign({},gt||Qn.wrapperCol||{});return Tn===null&&!Fe&&!gt&&Qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,xt.U2)(Qn.labelCol,or),Gn=typeof dr=="object"?dr:{},Sr=(0,xt.U2)(cr,or),Rr=typeof Sr=="object"?Sr:{};"span"in Gn&&!("offset"in Rr)&&Gn.span<Bt&&(cr=(0,xt.t8)(cr,[].concat(or,["offset"]),Gn.span))}),cr},[gt,Qn]),Zn=Ce()(`${Xn}-control`,Jn.className),Fn=ve.useMemo(()=>{const{labelCol:cr,wrapperCol:gr}=Qn;return et(Qn,["labelCol","wrapperCol"])},[Qn]),Wn=ve.useRef(null),[Un,ur]=ve.useState(0);(0,tn.Z)(()=>{Lt&&Wn.current?ur(Wn.current.clientHeight):ur(0)},[Lt]);const qn=ve.createElement("div",{className:`${Xn}-control-input`},ve.createElement("div",{className:`${Xn}-control-input-content`},on)),lr=ve.useMemo(()=>({prefixCls:Re,status:Se}),[Re,Se]),ir=Bn!==null||un.length||gn.length?ve.createElement(z.Rk.Provider,{value:lr},ve.createElement(Oe,{fieldId:fn,errors:un,warnings:gn,help:kt,helpStatus:Se,className:`${Xn}-explain-connected`,onVisibleChanged:Dn})):null,er={};fn&&(er.id=`${fn}_extra`);const tr=Lt?ve.createElement("div",Object.assign({},er,{className:`${Xn}-extra`,ref:Wn}),Lt):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(ye,{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}))},He=ie(61485),lt=ie(9017),Et=ie(85981),Vt=ie(25399),an=function(ye,Re){var Se={};for(var Fe in ye)Object.prototype.hasOwnProperty.call(ye,Fe)&&Re.indexOf(Fe)<0&&(Se[Fe]=ye[Fe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Fe=Object.getOwnPropertySymbols(ye);gt<Fe.length;gt++)Re.indexOf(Fe[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Fe[gt])&&(Se[Fe[gt]]=ye[Fe[gt]]);return Se};function In(ye){return ye?typeof ye=="object"&&!ve.isValidElement(ye)?ye:{title:ye}:null}var rn=ye=>{let{prefixCls:Re,label:Se,htmlFor:Fe,labelCol:gt,labelAlign:on,colon:un,required:gn,requiredMark:Xt,tooltip:Lt,vertical:kt}=ye;var fn;const[Bn]=(0,lt.Z)("Form"),{labelAlign:Dn,labelCol:Tn,labelWrap:Xn,colon:Qn}=ve.useContext(z.q3);if(!Se)return null;const Jn=gt||Tn||{},Zn=on||Dn,Fn=`${Re}-item-label`,Wn=Ce()(Fn,Zn==="left"&&`${Fn}-left`,Jn.className,{[`${Fn}-wrap`]:!!Xn});let Un=Se;const ur=un===!0||Qn!==!1&&un!==!1;ur&&!kt&&typeof Se=="string"&&Se.trim()&&(Un=Se.replace(/[:|:]\s*$/,""));const lr=In(Lt);if(lr){const{icon:cr=ve.createElement(He.Z,null)}=lr,gr=an(lr,["icon"]),Cr=ve.createElement(Vt.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=Ce()({[`${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 Se=="string"?Se:""},Un))},bn=ie(29679),dn=ie(19248),_t=ie(96512),Mt=ie(58617);const Tt={success:bn.Z,warning:_t.Z,error:dn.Z,validating:Mt.Z};function mt(ye){let{children:Re,errors:Se,warnings:Fe,hasFeedback:gt,validateStatus:on,prefixCls:un,meta:gn,noStyle:Xt}=ye;const Lt=`${un}-item`,{feedbackIcons:kt}=ve.useContext(z.q3),fn=bt(Se,Fe,gn,null,!!gt,on),{isFormItemInput:Bn,status:Dn,hasFeedback:Tn,feedbackIcon:Xn}=ve.useContext(z.aM),Qn=ve.useMemo(()=>{var Jn;let Zn;if(gt){const Wn=gt!==!0&>.icons||kt,Un=fn&&((Jn=Wn==null?void 0:Wn({status:fn,errors:Se,warnings:Fe}))===null||Jn===void 0?void 0:Jn[fn]),ur=fn&&Tt[fn];Zn=Un!==!1&&ur?ve.createElement("span",{className:Ce()(`${Lt}-feedback-icon`,`${Lt}-feedback-icon-${fn}`)},Un||ve.createElement(ur,null)):null}const Fn={status:fn||"",errors:Se,warnings:Fe,hasFeedback:!!gt,feedbackIcon:Zn,isFormItemInput:!0};return Xt&&(Fn.status=(fn!=null?fn:Dn)||"",Fn.isFormItemInput=Bn,Fn.hasFeedback=!!(gt!=null?gt:Tn),Fn.feedbackIcon=gt!==void 0?Fn.feedbackIcon:Xn),Fn},[fn,gt,Xt,Bn,Dn]);return ve.createElement(z.aM.Provider,{value:Qn},Re)}var en=function(ye,Re){var Se={};for(var Fe in ye)Object.prototype.hasOwnProperty.call(ye,Fe)&&Re.indexOf(Fe)<0&&(Se[Fe]=ye[Fe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Fe=Object.getOwnPropertySymbols(ye);gt<Fe.length;gt++)Re.indexOf(Fe[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Fe[gt])&&(Se[Fe[gt]]=ye[Fe[gt]]);return Se};function Yt(ye){const{prefixCls:Re,className:Se,rootClassName:Fe,style:gt,help:on,errors:un,warnings:gn,validateStatus:Xt,meta:Lt,hasFeedback:kt,hidden:fn,children:Bn,fieldId:Dn,required:Tn,isRequired:Xn,onSubItemMetaChange:Qn,layout:Jn}=ye,Zn=en(ye,["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=we(un),ir=we(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:Lt.errors,Rr=Gn?ir:Lt.warnings;return bt(Sr,Rr,Lt,"",!!kt,Xt)}(),dr=Ce()(Fn,Se,Fe,{[`${Fn}-with-help`]:er||lr.length||ir.length,[`${Fn}-has-feedback`]:or&&kt,[`${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:gt,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},ye,{requiredMark:Wn,required:Tn!=null?Tn:Xn,prefixCls:Re,vertical:ur})),ve.createElement(ke,Object.assign({},ye,Lt,{errors:lr,warnings:ir,prefixCls:Re,status:or,help:on,marginBottom:mr,onErrorVisibleChanged:gr}),ve.createElement(z.qI.Provider,{value:Qn},ve.createElement(mt,{prefixCls:Re,meta:Lt,errors:Lt.errors,warnings:Lt.warnings,hasFeedback:kt,validateStatus:or},Bn)))),!!mr&&ve.createElement("div",{className:`${Fn}-margin-offset`,style:{marginBottom:-mr}}))}const Jt="__SPLIT__",vn=null;function wn(ye,Re){const Se=Object.keys(ye),Fe=Object.keys(Re);return Se.length===Fe.length&&Se.every(gt=>{const on=ye[gt],un=Re[gt];return on===un||typeof on=="function"||typeof un=="function"})}const Sn=ve.memo(ye=>{let{children:Re}=ye;return Re},(ye,Re)=>wn(ye.control,Re.control)&&ye.update===Re.update&&ye.childProps.length===Re.childProps.length&&ye.childProps.every((Se,Fe)=>Se===Re.childProps[Fe]));function On(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Mn(ye){const{name:Re,noStyle:Se,className:Fe,dependencies:gt,prefixCls:on,shouldUpdate:un,rules:gn,children:Xt,required:Lt,label:kt,messageVariables:fn,trigger:Bn="onChange",validateTrigger:Dn,hidden:Tn,help:Xn,layout:Qn}=ye,{getPrefixCls:Jn}=ve.useContext(Dt.E_),{name:Zn}=ve.useContext(z.q3),Fn=_e(Xt),Wn=typeof Fn=="function",Un=ve.useContext(z.qI),{validateTrigger:ur}=ve.useContext(Xe.FieldContext),qn=Dn!==void 0?Dn:ur,lr=Re!=null,ir=Jn("form",on),er=(0,Ye.Z)(ir),[tr,vr,mr]=Ke(ir,er),cr=(0,st.ln)("Form.Item"),gr=ve.useContext(Xe.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),Se&&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 Se&&!Tn?ve.createElement(mt,{prefixCls:ir,hasFeedback:ye.hasFeedback,validateStatus:ye.validateStatus,meta:Gn,errors:Er,warnings:Ar,noStyle:!0},fr):ve.createElement(Yt,Object.assign({key:"row"},ye,{className:Ce()(Fe,mr,er,vr),prefixCls:ir,fieldId:Yn,isRequired:pn,errors:Er,warnings:Ar,meta:Gn,onSubItemMetaChange:Wr,layout:Qn}),fr)}if(!lr&&!Wn&&!gt)return tr(Dr(Fn));let zr={};return typeof kt=="string"?zr.label=kt:Re&&(zr.label=String(Re)),fn&&(zr=Object.assign(Object.assign({},zr),fn)),tr(ve.createElement(Xe.Field,Object.assign({},ye,{messageVariables:zr,trigger:Bn,validateTrigger:qn,onMetaChange:Rr}),(fr,Yn,pn)=>{const En=Ze(Re).length&&Yn?Yn.name:[],Cn=Nt(En,Zn),sn=Lt!==void 0?Lt:!!(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||gt)||lr))){if(!(gt&&!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||ye.extra){const Rn=[];(Xn||Er.length>0)&&Rn.push(`${Cn}_help`),ye.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)(Ze(Bn)),(0,it.Z)(Ze(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,be.Tm)(Fn,mn))}else Wn&&(un||gt)&&!lr?_n=Fn(pn):_n=Fn}return Dr(_n,Cn,sn)}))}const jn=Mn;jn.useStatus=yt;var An=jn,It=function(ye,Re){var Se={};for(var Fe in ye)Object.prototype.hasOwnProperty.call(ye,Fe)&&Re.indexOf(Fe)<0&&(Se[Fe]=ye[Fe]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Fe=Object.getOwnPropertySymbols(ye);gt<Fe.length;gt++)Re.indexOf(Fe[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Fe[gt])&&(Se[Fe[gt]]=ye[Fe[gt]]);return Se},xn=ye=>{var{prefixCls:Re,children:Se}=ye,Fe=It(ye,["prefixCls","children"]);const{getPrefixCls:gt}=ve.useContext(Dt.E_),on=gt("form",Re),un=ve.useMemo(()=>({prefixCls:on,status:"error"}),[on]);return ve.createElement(Xe.List,Object.assign({},Fe),(gn,Xt,Lt)=>ve.createElement(z.Rk.Provider,{value:un},Se(gn.map(kt=>Object.assign(Object.assign({},kt),{fieldKey:kt.key})),Xt,{errors:Lt.errors,warnings:Lt.warnings})))};function hn(){const{form:ye}=ve.useContext(z.q3);return ye}const Te=se;Te.Item=An,Te.List=xn,Te.ErrorList=Oe,Te.useForm=ct,Te.useFormInstance=hn,Te.useWatch=Xe.useWatch,Te.Provider=z.RV,Te.create=()=>{};var Ge=Te},4875:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Rt}});var z=ie(59301),it=ie(84105),ve=ie(87395),Je=ie(92310),Ce=ie.n(Je),Ee=ie(60499),Be=ie(18642),Ye=ie(43749),we=ie(72190),he=ie(42244),Qe=ie(38705),Ie=ie(17212);function St(){return typeof BigInt=="function"}function Ue(ke){return!ke&&ke!==0&&!Number.isNaN(ke)||!String(ke).trim()}function Ne(ke){var He=ke.trim(),lt=He.startsWith("-");lt&&(He=He.slice(1)),He=He.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),He.startsWith(".")&&(He="0".concat(He));var Et=He||"0",Vt=Et.split("."),an=Vt[0]||"0",In=Vt[1]||"0";an==="0"&&In==="0"&&(lt=!1);var kn=lt?"-":"";return{negative:lt,negativeStr:kn,trimStr:Et,integerStr:an,decimalStr:In,fullStr:"".concat(kn).concat(Et)}}function Ve(ke){var He=String(ke);return!Number.isNaN(Number(He))&&He.includes("e")}function ze(ke){var He=String(ke);if(Ve(ke)){var lt=Number(He.slice(He.indexOf("e-")+2)),Et=He.match(/\.(\d+)/);return Et!=null&&Et[1]&&(lt+=Et[1].length),lt}return He.includes(".")&&wt(He)?He.length-He.indexOf(".")-1:0}function ht(ke){var He=String(ke);if(Ve(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);He=ke.toFixed(ze(He))}return Ne(He).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 Ot=function(){function ke(He){if((0,Qe.Z)(this,ke),(0,Be.Z)(this,"origin",""),(0,Be.Z)(this,"negative",void 0),(0,Be.Z)(this,"integer",void 0),(0,Be.Z)(this,"decimal",void 0),(0,Be.Z)(this,"decimalLen",void 0),(0,Be.Z)(this,"empty",void 0),(0,Be.Z)(this,"nan",void 0),Ue(He)){this.empty=!0;return}if(this.origin=String(He),He==="-"||Number.isNaN(He)){this.nan=!0;return}var lt=He;if(Ve(lt)&&(lt=Number(lt)),lt=typeof lt=="string"?lt:ht(lt),wt(lt)){var Et=Ne(lt);this.negative=Et.negative;var Vt=Et.trimStr.split(".");this.integer=BigInt(Vt[0]);var an=Vt[1]||"0";this.decimal=BigInt(an),this.decimalLen=an.length}else this.nan=!0}return(0,Ie.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(lt){var Et="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(lt,"0"));return BigInt(Et)}},{key:"negate",value:function(){var lt=new ke(this.toString());return lt.negative=!lt.negative,lt}},{key:"cal",value:function(lt,Et,Vt){var an=Math.max(this.getDecimalStr().length,lt.getDecimalStr().length),In=this.alignDecimal(an),kn=lt.alignDecimal(an),rn=Et(In,kn).toString(),bn=Vt(an),dn=Ne(rn),_t=dn.negativeStr,Mt=dn.trimStr,Tt="".concat(_t).concat(Mt.padStart(bn+1,"0"));return new ke("".concat(Tt.slice(0,-bn),".").concat(Tt.slice(-bn)))}},{key:"add",value:function(lt){if(this.isInvalidate())return new ke(lt);var Et=new ke(lt);return Et.isInvalidate()?this:this.cal(Et,function(Vt,an){return Vt+an},function(Vt){return Vt})}},{key:"multi",value:function(lt){var Et=new ke(lt);return this.isInvalidate()||Et.isInvalidate()?new ke(NaN):this.cal(Et,function(Vt,an){return Vt*an},function(Vt){return Vt*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(lt){return this.toString()===(lt==null?void 0:lt.toString())}},{key:"lessEquals",value:function(lt){return this.add(lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return lt?this.isInvalidate()?"":Ne("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ke}(),dt=function(){function ke(He){if((0,Qe.Z)(this,ke),(0,Be.Z)(this,"origin",""),(0,Be.Z)(this,"number",void 0),(0,Be.Z)(this,"empty",void 0),Ue(He)){this.empty=!0;return}this.origin=String(He),this.number=Number(He)}return(0,Ie.Z)(ke,[{key:"negate",value:function(){return new ke(-this.toNumber())}},{key:"add",value:function(lt){if(this.isInvalidate())return new ke(lt);var Et=Number(lt);if(Number.isNaN(Et))return this;var Vt=this.number+Et;if(Vt>Number.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(Vt<Number.MIN_SAFE_INTEGER)return new ke(Number.MIN_SAFE_INTEGER);var an=Math.max(ze(this.number),ze(Et));return new ke(Vt.toFixed(an))}},{key:"multi",value:function(lt){var Et=Number(lt);if(this.isInvalidate()||Number.isNaN(Et))return new ke(NaN);var Vt=this.number*Et;if(Vt>Number.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(Vt<Number.MIN_SAFE_INTEGER)return new ke(Number.MIN_SAFE_INTEGER);var an=Math.max(ze(this.number),ze(Et));return new ke(Vt.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(lt){return this.toNumber()===(lt==null?void 0:lt.toNumber())}},{key:"lessEquals",value:function(lt){return this.add(lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return lt?this.isInvalidate()?"":ht(this.number):this.origin}}]),ke}();function qe(ke){return St()?new Ot(ke):new dt(ke)}function at(ke,He,lt){var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ke==="")return"";var Vt=Ne(ke),an=Vt.negativeStr,In=Vt.integerStr,kn=Vt.decimalStr,rn="".concat(He).concat(kn),bn="".concat(an).concat(In);if(lt>=0){var dn=Number(kn[lt]);if(dn>=5&&!Et){var _t=qe(ke).add("".concat(an,"0.").concat("0".repeat(lt)).concat(10-dn));return at(_t.toString(),He,lt,Et)}return lt===0?bn:"".concat(bn).concat(He).concat(kn.padEnd(lt,"0").slice(0,lt))}return rn===".0"?bn:"".concat(bn).concat(rn)}var We=qe,Pt=ie(36901),nt=ie(34280);function tt(ke,He){return typeof Proxy!="undefined"&&ke?new Proxy(ke,{get:function(Et,Vt){if(He[Vt])return He[Vt];var an=Et[Vt];return typeof an=="function"?an.bind(Et):an}}):ke}var pt=ie(8654),Me=ie(48736);function Ke(ke,He){var lt=(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);lt.current={start:an,end:In,value:kn,beforeTxt:rn,afterTxt:bn}}catch(dn){}}function Vt(){if(ke&<.current&&He)try{var an=ke.value,In=lt.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-lt.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(Tt){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Tt.message))}}return[Et,Vt]}var je=ie(49658),ue=function(){var He=(0,z.useState)(!1),lt=(0,we.Z)(He,2),Et=lt[0],Vt=lt[1];return(0,nt.Z)(function(){Vt((0,je.Z)())},[]),Et},ut=ue,Oe=ie(16089),Xe=200,Dt=600;function xe(ke){var He=ke.prefixCls,lt=ke.upNode,Et=ke.downNode,Vt=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,Xe)}kn.current=setTimeout(On,Dt)};z.useEffect(function(){return function(){dn(),rn.current.forEach(function(vn){return Oe.Z.cancel(vn)})}},[]);var Mt=ut();if(Mt)return null;var Tt="".concat(He,"-handler"),mt=Ce()(Tt,"".concat(Tt,"-up"),(0,Be.Z)({},"".concat(Tt,"-up-disabled"),Vt)),en=Ce()(Tt,"".concat(Tt,"-down"),(0,Be.Z)({},"".concat(Tt,"-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(Tt,"-wrap")},z.createElement("span",(0,Ee.Z)({},Jt,{onMouseDown:function(wn){_t(wn,!0)},"aria-label":"Increase Value","aria-disabled":Vt,className:mt}),lt||z.createElement("span",{unselectable:"on",className:"".concat(He,"-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(He,"-handler-down-inner")})))}function fe(ke){var He=typeof ke=="number"?ht(ke):Ne(ke).fullStr,lt=He.includes(".");return lt?Ne(He.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ke+"0"}var ft=ie(30292),Gt=function(){var ke=(0,z.useRef)(0),He=function(){Oe.Z.cancel(ke.current)};return(0,z.useEffect)(function(){return He},[]),function(lt){He(),ke.current=(0,Oe.Z)(function(){lt()})}},Ct=["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"],Le=function(He,lt){return He||lt.isEmpty()?lt.toString():lt.toNumber()},Ze=function(He){var lt=We(He);return lt.isInvalidate()?null:lt},Nt=z.forwardRef(function(ke,He){var lt=ke.prefixCls,Et=ke.className,Vt=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,Tt=ke.upHandler,mt=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,It=ke.decimalSeparator,Ut=ke.onChange,xn=ke.onInput,hn=ke.onPressEnter,Te=ke.onStep,Ge=ke.changeOnBlur,ye=Ge===void 0?!0:Ge,Re=ke.domRef,Se=(0,he.Z)(ke,Ct),Fe="".concat(lt,"-input"),gt=z.useRef(null),on=z.useState(!1),un=(0,we.Z)(on,2),gn=un[0],Xt=un[1],Lt=z.useRef(!1),kt=z.useRef(!1),fn=z.useRef(!1),Bn=z.useState(function(){return We(dn!=null?dn:bn)}),Dn=(0,we.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 It&&(zn=zn.replace(It,".")),zn.replace(/[^\w.-]+/g,"")},[Mn,It]),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"?ht(Cn):Cn;if(!sn){var _n=Jn(zn,sn);if(wt(zn)&&(It||_n>=0)){var mn=It||".";zn=at(zn,mn,_n)}}return zn},[jn,Jn,It]),Un=z.useState(function(){var Cn=bn!=null?bn:dn;return Tn.isInvalidate()&&["string","number"].includes((0,Ye.Z)(Cn))?Number.isNaN(Cn)?"":Cn:Wn(Tn.toString(),!1)}),ur=(0,we.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 Ze(In)},[In,An]),tr=z.useMemo(function(){return Ze(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=Ke(gt.current,gn),gr=(0,we.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=We(at(yn,".",Nn)),Gn(_n)||(_n=We(at(yn,".",Nn,!0)))),_n.equals(Tn)||(Qn(_n),Ut==null||Ut(_n.isEmpty()?null:Le(On,_n)),dn===void 0&&ir(_n,zn)),_n}return Tn},Rr=Gt(),Wr=function Cn(sn){if(Cr(),Fn.current=sn,lr(sn),!kt.current){var zn=Zn(sn),_n=We(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(){kt.current=!0},Ar=function(){kt.current=!1,Wr(gt.current.value)},Ir=function(sn){Wr(sn.target.value)},Dr=function(sn){var zn;if(!(sn&&vr||!sn&&mr)){Lt.current=!1;var _n=We(fn.current?fe(rn):rn);sn||(_n=_n.negate());var mn=(Tn||We(0)).add(_n.toString()),yn=Sr(mn,!1);Te==null||Te(Le(On,yn),{offset:fn.current?fe(rn):rn,type:sn?"up":"down"}),(zn=gt.current)===null||zn===void 0||zn.focus()}},zr=function(sn){var zn=We(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(){Lt.current=!0},Yn=function(sn){var zn=sn.key,_n=sn.shiftKey;Lt.current=!0,fn.current=_n,zn==="Enter"&&(kt.current||(Lt.current=!1),zr(!1),hn==null||hn(sn)),en!==!1&&!kt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(zn)&&(Dr(zn==="Up"||zn==="ArrowUp"),sn.preventDefault())},pn=function(){Lt.current=!1,fn.current=!1};z.useEffect(function(){if(Jt&&gn){var Cn=function(_n){Dr(_n.deltaY<0),_n.preventDefault()},sn=gt.current;if(sn)return sn.addEventListener("wheel",Cn,{passive:!1}),function(){return sn.removeEventListener("wheel",Cn)}}});var En=function(){ye&&zr(!1),Xt(!1),Lt.current=!1};return(0,nt.o)(function(){Tn.isInvalidate()||ir(Tn,!1)},[An,jn]),(0,nt.o)(function(){var Cn=We(dn);Xn(Cn);var sn=We(Zn(qn));(!Cn.equals(sn)||!Lt.current||jn)&&ir(Cn,Lt.current)},[dn]),(0,nt.o)(function(){jn&&or()},[qn]),z.createElement("div",{ref:Re,className:Ce()(lt,Et,(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},"".concat(lt,"-focused"),gn),"".concat(lt,"-disabled"),_t),"".concat(lt,"-readonly"),Mt),"".concat(lt,"-not-a-number"),Tn.isNaN()),"".concat(lt,"-out-of-range"),!Tn.isInvalidate()&&!Gn(Tn))),style:Vt,onFocus:function(){Xt(!0)},onBlur:En,onKeyDown:Yn,onKeyUp:pn,onCompositionStart:Er,onCompositionEnd:Ar,onBeforeInput:fr},wn&&z.createElement(xe,{prefixCls:lt,upNode:Tt,downNode:mt,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},Se,{ref:(0,pt.sQ)(gt,He),className:Fe,value:qn,onChange:Ir,disabled:_t,readOnly:Mt}))))}),bt=z.forwardRef(function(ke,He){var lt=ke.disabled,Et=ke.style,Vt=ke.prefixCls,an=Vt===void 0?"rc-input-number":Vt,In=ke.value,kn=ke.prefix,rn=ke.suffix,bn=ke.addonBefore,dn=ke.addonAfter,_t=ke.className,Mt=ke.classNames,Tt=(0,he.Z)(ke,me),mt=z.useRef(null),en=z.useRef(null),Yt=z.useRef(null),Jt=function(wn){Yt.current&&(0,ft.nH)(Yt.current,wn)};return z.useImperativeHandle(He,function(){return tt(Yt.current,{focus:Jt,nativeElement:mt.current.nativeElement||en.current})}),z.createElement(Pt.BaseInput,{className:_t,triggerFocus:Jt,prefixCls:an,value:In,disabled:lt,style:Et,prefix:kn,suffix:rn,addonAfter:dn,addonBefore:bn,classNames:Mt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:mt},z.createElement(Nt,(0,Ee.Z)({prefixCls:an,disabled:lt,ref:Yt,domRef:en,className:Mt==null?void 0:Mt.input},Tt)))}),zt=bt,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),be=ie(70045),st=ie(36237),Pe=ie(53075),_e=ie(64910),ot=ie(39082),yt=ie(63356),vt=ie(56119),Kt=ie(16931),jt=ie(51636),Ht=ie(17835);const tn=ke=>{var He;const lt=(He=ke.handleVisible)!==null&&He!==void 0?He:"auto",Et=ke.controlHeightSM-ke.lineWidth*2;return Object.assign(Object.assign({},(0,_e.T)(ke)),{controlWidth:90,handleWidth:Et,handleFontSize:ke.fontSize/2,handleVisible:lt,handleActiveBg:ke.colorFillAlter,handleBg:ke.colorBgContainer,filledHandleBg:new Ht.FastColor(ke.colorFillSecondary).onBackground(ke.colorBgContainer).toHexString(),handleHoverColor:ke.colorPrimary,handleBorderColor:ke.colorBorder,handleOpacity:lt===!0?1:0,handleVisibleWidth:lt===!0?Et:0})},Qt=(ke,He)=>{let{componentCls:lt,borderRadiusSM:Et,borderRadiusLG:Vt}=ke;const an=He==="lg"?Vt:Et;return{[`&-${He}`]:{[`${lt}-handler-wrap`]:{borderStartEndRadius:an,borderEndEndRadius:an},[`${lt}-handler-up`]:{borderStartEndRadius:an},[`${lt}-handler-down`]:{borderEndEndRadius:an}}}},nn=ke=>{const{componentCls:He,lineWidth:lt,lineType:Et,borderRadius:Vt,inputFontSizeSM:an,inputFontSizeLG:In,controlHeightLG:kn,controlHeightSM:rn,colorError:bn,paddingInlineSM:dn,paddingBlockSM:_t,paddingBlockLG:Mt,paddingInlineLG:Tt,colorTextDescription:mt,motionDurationMid:en,handleHoverColor:Yt,handleOpacity:Jt,paddingInline:vn,paddingBlock:wn,handleBg:Sn,handleActiveBg:On,colorTextDisabled:Mn,borderRadiusSM:jn,borderRadiusLG:An,controlWidth:It,handleBorderColor:Ut,filledHandleBg:xn,lineHeightLG:hn,calc:Te}=ke;return[{[He]: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:It,margin:0,padding:0,borderRadius:Vt}),(0,ot.qG)(ke,{[`${He}-handler-wrap`]:{background:Sn,[`${He}-handler-down`]:{borderBlockStart:`${(0,st.unit)(lt)} ${Et} ${Ut}`}}})),(0,ot.H8)(ke,{[`${He}-handler-wrap`]:{background:xn,[`${He}-handler-down`]:{borderBlockStart:`${(0,st.unit)(lt)} ${Et} ${Ut}`}},"&:focus-within":{[`${He}-handler-wrap`]:{background:Sn}}})),(0,ot.vc)(ke,{[`${He}-handler-wrap`]:{background:Sn,[`${He}-handler-down`]:{borderBlockStart:`${(0,st.unit)(lt)} ${Et} ${Ut}`}}})),(0,ot.Mu)(ke)),{"&-rtl":{direction:"rtl",[`${He}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:In,lineHeight:hn,borderRadius:An,[`input${He}-input`]:{height:Te(kn).sub(Te(lt).mul(2)).equal(),padding:`${(0,st.unit)(Mt)} ${(0,st.unit)(Tt)}`}},"&-sm":{padding:0,fontSize:an,borderRadius:jn,[`input${He}-input`]:{height:Te(rn).sub(Te(lt).mul(2)).equal(),padding:`${(0,st.unit)(_t)} ${(0,st.unit)(dn)}`}},"&-out-of-range":{[`${He}-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",[`${He}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${He}-group-addon`]:{borderRadius:An,fontSize:ke.fontSizeLG}},"&-sm":{[`${He}-group-addon`]:{borderRadius:jn}}},(0,ot.ir)(ke)),(0,ot.S5)(ke)),{[`&:not(${He}-compact-first-item):not(${He}-compact-last-item)${He}-compact-item`]:{[`${He}, ${He}-group-addon`]:{borderRadius:0}},[`&:not(${He}-compact-last-item)${He}-compact-first-item`]:{[`${He}, ${He}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${He}-compact-first-item)${He}-compact-last-item`]:{[`${He}, ${He}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${He}-input`]:{cursor:"not-allowed"},[He]:{"&-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:Vt,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 ${He}-handler-wrap, &-focused ${He}-handler-wrap`]:{width:ke.handleWidth,opacity:1}})},{[He]:Object.assign(Object.assign(Object.assign({[`${He}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ke.handleVisibleWidth,opacity:Jt,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Vt,borderEndEndRadius:Vt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${en}`,overflow:"hidden",[`${He}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${He}-handler-up-inner,
|
|
|
${He}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:ke.handleFontSize}}},[`${He}-handler`]:{height:"50%",overflow:"hidden",color:mt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,st.unit)(lt)} ${Et} ${Ut}`,transition:`all ${en} linear`,"&:active":{background:On},"&:hover":{height:"60%",[`
|
|
|
${He}-handler-up-inner,
|
|
|
${He}-handler-down-inner
|
|
|
`]:{color:Yt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,yt.Ro)()),{color:mt,transition:`all ${en} linear`,userSelect:"none"})},[`${He}-handler-up`]:{borderStartEndRadius:Vt},[`${He}-handler-down`]:{borderEndEndRadius:Vt}},Qt(ke,"lg")),Qt(ke,"sm")),{"&-disabled, &-readonly":{[`${He}-handler-wrap`]:{display:"none"},[`${He}-input`]:{color:"inherit"}},[`
|
|
|
${He}-handler-up-disabled,
|
|
|
${He}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${He}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${He}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Mn}})}]},xt=ke=>{const{componentCls:He,paddingBlock:lt,paddingInline:Et,inputAffixPadding:Vt,controlWidth:an,borderRadiusLG:In,borderRadiusSM:kn,paddingInlineLG:rn,paddingInlineSM:bn,paddingBlockLG:dn,paddingBlockSM:_t,motionDurationMid:Mt}=ke;return{[`${He}-affix-wrapper`]:Object.assign(Object.assign({[`input${He}-input`]:{padding:`${(0,st.unit)(lt)} 0`}},(0,Pe.ik)(ke)),{position:"relative",display:"inline-flex",alignItems:"center",width:an,padding:0,paddingInlineStart:Et,"&-lg":{borderRadius:In,paddingInlineStart:rn,[`input${He}-input`]:{padding:`${(0,st.unit)(dn)} 0`}},"&-sm":{borderRadius:kn,paddingInlineStart:bn,[`input${He}-input`]:{padding:`${(0,st.unit)(_t)} 0`}},[`&:not(${He}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${He}-disabled`]:{background:"transparent"},[`> div${He}`]:{width:"100%",border:"none",outline:"none",[`&${He}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${He}-handler-wrap`]:{zIndex:2},[He]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Vt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Et,marginInlineStart:Vt,transition:`margin ${Mt}`}},[`&:hover ${He}-handler-wrap, &-focused ${He}-handler-wrap`]:{width:ke.handleWidth,opacity:1},[`&:not(${He}-affix-wrapper-without-controls):hover ${He}-suffix`]:{marginInlineEnd:ke.calc(ke.handleWidth).add(Et).equal()}})}};var qt=(0,Kt.I$)("InputNumber",ke=>{const He=(0,jt.mergeToken)(ke,(0,_e.e)(ke));return[nn(He),xt(He),(0,vt.c)(He)]},tn,{unitless:{handleOpacity:!0}}),Wt=function(ke,He){var lt={};for(var Et in ke)Object.prototype.hasOwnProperty.call(ke,Et)&&He.indexOf(Et)<0&&(lt[Et]=ke[Et]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Et=Object.getOwnPropertySymbols(ke);Vt<Et.length;Vt++)He.indexOf(Et[Vt])<0&&Object.prototype.propertyIsEnumerable.call(ke,Et[Vt])&&(lt[Et[Vt]]=ke[Et[Vt]]);return lt};const De=z.forwardRef((ke,He)=>{const{getPrefixCls:lt,direction:Et}=z.useContext(ae.E_),Vt=z.useRef(null);z.useImperativeHandle(He,()=>Vt.current);const{className:an,rootClassName:In,size:kn,disabled:rn,prefixCls:bn,addonBefore:dn,addonAfter:_t,prefix:Mt,suffix:Tt,bordered:mt,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=lt("input-number",bn),On=(0,oe.Z)(Sn),[Mn,jn,An]=qt(Sn,On),{compactSize:It,compactItemClassnames:Ut}=(0,be.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 Te=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:Ge,status:ye,isFormItemInput:Re,feedbackIcon:Se}=z.useContext(ne.aM),Fe=(0,ct.F)(ye,Yt),gt=(0,se.Z)(Dn=>{var Tn;return(Tn=kn!=null?kn:It)!==null&&Tn!==void 0?Tn:Dn}),on=z.useContext(ee.Z),un=rn!=null?rn:on,[gn,Xt]=(0,pe.Z)("inputNumber",vn,mt),Lt=Ge&&z.createElement(z.Fragment,null,Se),kt=Ce()({[`${Sn}-lg`]:gt==="large",[`${Sn}-sm`]:gt==="small",[`${Sn}-rtl`]:Et==="rtl",[`${Sn}-in-form-item`]:Re},jn),fn=`${Sn}-group`,Bn=z.createElement(Ae,Object.assign({ref:Vt,disabled:un,className:Ce()(An,On,an,In,Ut),upHandler:xn,downHandler:hn,prefixCls:Sn,readOnly:en,controls:Te,prefix:Mt,suffix:Lt||Tt,addonBefore:dn&&z.createElement($t.Z,{form:!0,space:!0},dn),addonAfter:_t&&z.createElement($t.Z,{form:!0,space:!0},_t),classNames:{input:kt,variant:Ce()({[`${Sn}-${gn}`]:Xt},(0,ct.Z)(Sn,Fe,Ge)),affixWrapper:Ce()({[`${Sn}-affix-wrapper-sm`]:gt==="small",[`${Sn}-affix-wrapper-lg`]:gt==="large",[`${Sn}-affix-wrapper-rtl`]:Et==="rtl",[`${Sn}-affix-wrapper-without-controls`]:Jt===!1||un},jn),wrapper:Ce()({[`${fn}-rtl`]:Et==="rtl"},jn),groupWrapper:Ce()({[`${Sn}-group-wrapper-sm`]:gt==="small",[`${Sn}-group-wrapper-lg`]:gt==="large",[`${Sn}-group-wrapper-rtl`]:Et==="rtl",[`${Sn}-group-wrapper-${gn}`]:Xt},(0,ct.Z)(`${Sn}-group-wrapper`,Fe,Ge),jn)}},wn));return Mn(Bn)}),et=De,Bt=ke=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(De,Object.assign({},ke)));et._InternalPanelDoNotUseOrYouWillBeFired=Bt;var Rt=et},49397:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return dt}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Je=ie(36901),Ce=ie(8654),Ee=ie(62487),Be=ie(86013),Ye=ie(82855),we=ie(48755),he=ie(2171),Qe=ie(83397),Ie=ie(31756),St=ie(56553),Ue=ie(24971),Ne=ie(70045),Ve=ie(23826),ze=ie(53075);function ht(qe){return!!(qe.prefix||qe.suffix||qe.allowClear||qe.showCount)}var wt=function(qe,at){var We={};for(var Pt in qe)Object.prototype.hasOwnProperty.call(qe,Pt)&&at.indexOf(Pt)<0&&(We[Pt]=qe[Pt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Pt=Object.getOwnPropertySymbols(qe);nt<Pt.length;nt++)at.indexOf(Pt[nt])<0&&Object.prototype.propertyIsEnumerable.call(qe,Pt[nt])&&(We[Pt[nt]]=qe[Pt[nt]]);return We},dt=(0,z.forwardRef)((qe,at)=>{const{prefixCls:We,bordered:Pt=!0,status:nt,size:tt,disabled:pt,onBlur:Me,onFocus:Ke,suffix:je,allowClear:ue,addonAfter:ut,addonBefore:Oe,className:Xe,style:Dt,styles:xe,rootClassName:fe,onChange:ft,classNames:Gt,variant:Ct}=qe,me=wt(qe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Le,direction:Ze,allowClear:Nt,autoComplete:bt,className:zt,style:Ae,classNames:$t,styles:ct}=(0,we.dj)("input"),ae=Le("input",We),te=(0,z.useRef)(null),ee=(0,Qe.Z)(ae),[oe,se,ne]=(0,ze.TI)(ae,fe),[pe]=(0,ze.ZP)(ae,ee),{compactSize:be,compactItemClassnames:st}=(0,Ne.ri)(ae,Ze),Pe=(0,Ie.Z)(Rt=>{var ke;return(ke=tt!=null?tt:be)!==null&&ke!==void 0?ke:Rt}),_e=z.useContext(he.Z),ot=pt!=null?pt:_e,{status:yt,hasFeedback:vt,feedbackIcon:Kt}=(0,z.useContext)(St.aM),jt=(0,Ye.F)(yt,nt),Ht=ht(qe)||!!vt,tn=(0,z.useRef)(Ht),Qt=(0,Ve.Z)(te,!0),nn=Rt=>{Qt(),Me==null||Me(Rt)},xt=Rt=>{Qt(),Ke==null||Ke(Rt)},qt=Rt=>{Qt(),ft==null||ft(Rt)},Wt=(vt||je)&&z.createElement(z.Fragment,null,je,vt&&Kt),De=(0,Be.Z)(ue!=null?ue:Nt),[et,Bt]=(0,Ue.Z)("input",Ct,Pt);return oe(pe(z.createElement(Je.default,Object.assign({ref:(0,Ce.sQ)(at,te),prefixCls:ae,autoComplete:bt},me,{disabled:ot,onBlur:nn,onFocus:xt,style:Object.assign(Object.assign({},Ae),Dt),styles:Object.assign(Object.assign({},ct),xe),suffix:Wt,allowClear:De,className:ve()(Xe,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({},Gt),$t),{input:ve()({[`${ae}-sm`]:Pe==="small",[`${ae}-lg`]:Pe==="large",[`${ae}-rtl`]:Ze==="rtl"},Gt==null?void 0:Gt.input,$t.input,se),variant:ve()({[`${ae}-${et}`]:Bt},(0,Ye.Z)(ae,jt)),affixWrapper:ve()({[`${ae}-affix-wrapper-sm`]:Pe==="small",[`${ae}-affix-wrapper-lg`]:Pe==="large",[`${ae}-affix-wrapper-rtl`]:Ze==="rtl"},se),wrapper:ve()({[`${ae}-group-rtl`]:Ze==="rtl"},se),groupWrapper:ve()({[`${ae}-group-wrapper-sm`]:Pe==="small",[`${ae}-group-wrapper-lg`]:Pe==="large",[`${ae}-group-wrapper-rtl`]:Ze==="rtl",[`${ae}-group-wrapper-${et}`]:Bt},(0,Ye.Z)(`${ae}-group-wrapper`,jt,vt),se)})}))))})},79809:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return at}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Je=ie(22711),Ce=ie(86013),Ee=ie(82855),Be=ie(48755),Ye=ie(2171),we=ie(83397),he=ie(31756),Qe=ie(56553),Ie=ie(24971),St=ie(70045),Ue=ie(30292),Ne=ie(53075),Ve=ie(16931),ze=ie(51636),ht=ie(64910);const wt=We=>{const{componentCls:Pt,paddingLG:nt}=We,tt=`${Pt}-textarea`;return{[`textarea${Pt}`]:{maxWidth:"100%",height:"auto",minHeight:We.controlHeight,lineHeight:We.lineHeight,verticalAlign:"bottom",transition:`all ${We.motionDurationSlow}`,resize:"vertical",[`&${Pt}-mouse-active`]:{transition:`all ${We.motionDurationSlow}, height 0s, width 0s`}},[`${Pt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[tt]:{position:"relative","&-show-count":{[`> ${Pt}`]:{height:"100%"},[`${Pt}-data-count`]:{position:"absolute",bottom:We.calc(We.fontSize).mul(We.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:We.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${Pt},
|
|
|
&-affix-wrapper${tt}-has-feedback ${Pt}
|
|
|
`]:{paddingInlineEnd:nt},[`&-affix-wrapper${Pt}-affix-wrapper`]:{padding:0,[`> textarea${Pt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:We.calc(We.controlHeight).sub(We.calc(We.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Pt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Pt}-clear-icon`]:{position:"absolute",insetInlineEnd:We.paddingInline,insetBlockStart:We.paddingXS},[`${tt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:We.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Pt}-affix-wrapper-sm`]:{[`${Pt}-suffix`]:{[`${Pt}-clear-icon`]:{insetInlineEnd:We.paddingInlineSM}}}}}};var Ot=(0,Ve.I$)(["Input","TextArea"],We=>{const Pt=(0,ze.mergeToken)(We,(0,ht.e)(We));return[wt(Pt)]},ht.T,{resetFont:!1}),dt=function(We,Pt){var nt={};for(var tt in We)Object.prototype.hasOwnProperty.call(We,tt)&&Pt.indexOf(tt)<0&&(nt[tt]=We[tt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,tt=Object.getOwnPropertySymbols(We);pt<tt.length;pt++)Pt.indexOf(tt[pt])<0&&Object.prototype.propertyIsEnumerable.call(We,tt[pt])&&(nt[tt[pt]]=We[tt[pt]]);return nt},at=(0,z.forwardRef)((We,Pt)=>{var nt;const{prefixCls:tt,bordered:pt=!0,size:Me,disabled:Ke,status:je,allowClear:ue,classNames:ut,rootClassName:Oe,className:Xe,style:Dt,styles:xe,variant:fe,showCount:ft,onMouseDown:Gt,onResize:Ct}=We,me=dt(We,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Le,direction:Ze,allowClear:Nt,autoComplete:bt,className:zt,style:Ae,classNames:$t,styles:ct}=(0,Be.dj)("textArea"),ae=z.useContext(Ye.Z),te=Ke!=null?Ke:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(Qe.aM),ne=(0,Ee.F)(ee,je),pe=z.useRef(null);z.useImperativeHandle(Pt,()=>{var Bt;return{resizableTextArea:(Bt=pe.current)===null||Bt===void 0?void 0:Bt.resizableTextArea,focus:Rt=>{var ke,He;(0,Ue.nH)((He=(ke=pe.current)===null||ke===void 0?void 0:ke.resizableTextArea)===null||He===void 0?void 0:He.textArea,Rt)},blur:()=>{var Rt;return(Rt=pe.current)===null||Rt===void 0?void 0:Rt.blur()}}});const be=Le("input",tt),st=(0,we.Z)(be),[Pe,_e,ot]=(0,Ne.TI)(be,Oe),[yt]=Ot(be,st),{compactSize:vt,compactItemClassnames:Kt}=(0,St.ri)(be,Ze),jt=(0,he.Z)(Bt=>{var Rt;return(Rt=Me!=null?Me:vt)!==null&&Rt!==void 0?Rt:Bt}),[Ht,tn]=(0,Ie.Z)("textArea",fe,pt),Qt=(0,Ce.Z)(ue!=null?ue:Nt),[nn,xt]=z.useState(!1),[qt,Wt]=z.useState(!1),De=Bt=>{xt(!0),Gt==null||Gt(Bt);const Rt=()=>{xt(!1),document.removeEventListener("mouseup",Rt)};document.addEventListener("mouseup",Rt)},et=Bt=>{var Rt,ke;if(Ct==null||Ct(Bt),nn&&typeof getComputedStyle=="function"){const He=(ke=(Rt=pe.current)===null||Rt===void 0?void 0:Rt.nativeElement)===null||ke===void 0?void 0:ke.querySelector("textarea");He&&getComputedStyle(He).resize==="both"&&Wt(!0)}};return Pe(yt(z.createElement(Je.default,Object.assign({autoComplete:bt},me,{style:Object.assign(Object.assign({},Ae),Dt),styles:Object.assign(Object.assign({},ct),xe),disabled:te,allowClear:Qt,className:ve()(ot,st,Xe,Oe,Kt,zt,qt&&`${be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ut),$t),{textarea:ve()({[`${be}-sm`]:jt==="small",[`${be}-lg`]:jt==="large"},_e,ut==null?void 0:ut.textarea,$t.textarea,nn&&`${be}-mouse-active`),variant:ve()({[`${be}-${Ht}`]:tn},(0,Ee.Z)(be,ne)),affixWrapper:ve()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:Ze==="rtl",[`${be}-affix-wrapper-sm`]:jt==="small",[`${be}-affix-wrapper-lg`]:jt==="large",[`${be}-textarea-show-count`]:ft||((nt=We.count)===null||nt===void 0?void 0:nt.show)},_e)}),prefixCls:be,suffix:oe&&z.createElement("span",{className:`${be}-textarea-suffix`},se),showCount:ft,ref:pe,onResize:et,onMouseDown:De}))))})},23826:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return it}});var z=ie(59301);function it(ve,Je){const Ce=(0,z.useRef)([]),Ee=()=>{Ce.current.push(setTimeout(()=>{var Be,Ye,we,he;!((Be=ve.current)===null||Be===void 0)&&Be.input&&((Ye=ve.current)===null||Ye===void 0?void 0:Ye.input.getAttribute("type"))==="password"&&(!((we=ve.current)===null||we===void 0)&&we.input.hasAttribute("value"))&&((he=ve.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Je&&Ee(),()=>Ce.current.forEach(Be=>{Be&&clearTimeout(Be)})),[]),Ee}},37568:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return $t}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Je=ie(48755),Ce=ie(56553),Ee=ie(53075),Ye=ct=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Je.E_),{prefixCls:ee,className:oe}=ct,se=ae("input-group",ee),ne=ae("input"),[pe,be,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"},be,oe),_e=(0,z.useContext)(Ce.aM),ot=(0,z.useMemo)(()=>Object.assign(Object.assign({},_e),{isFormItemInput:!1}),[_e]);return pe(z.createElement("span",{className:Pe,style:ct.style,onMouseEnter:ct.onMouseEnter,onMouseLeave:ct.onMouseLeave,onFocus:ct.onFocus,onBlur:ct.onBlur},z.createElement(Ce.aM.Provider,{value:ot},ct.children)))},we=ie(49397),he=ie(77654),Qe=ie(6089),Ie=ie(26112),St=ie(82855),Ue=ie(31756),Ne=ie(16931),Ve=ie(51636),ze=ie(64910);const ht=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,Ve.mergeToken)(ct,(0,ze.e)(ct));return[ht(ae)]},ze.T),Ot=ie(16089),dt=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},at=z.forwardRef((ct,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=ct,pe=dt(ct,["value","onChange","onActiveChange","index","mask"]),be=te&&typeof ne=="string"?ne:te,st=vt=>{ee(se,vt.target.value)},Pe=z.useRef(null);z.useImperativeHandle(ae,()=>Pe.current);const _e=()=>{(0,Ot.Z)(()=>{var vt;const Kt=(vt=Pe.current)===null||vt===void 0?void 0:vt.input;document.activeElement===Kt&&Kt&&Kt.select()})},ot=vt=>{const{key:Kt,ctrlKey:jt,metaKey:Ht}=vt;Kt==="ArrowLeft"?oe(se-1):Kt==="ArrowRight"?oe(se+1):Kt==="z"&&(jt||Ht)&&vt.preventDefault(),_e()},yt=vt=>{vt.key==="Backspace"&&!te&&oe(se-1),_e()};return z.createElement(we.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Pe,value:be,onInput:st,onFocus:_e,onKeyDown:ot,onKeyUp:yt,onMouseDown:_e,onMouseUp:_e}))}),We=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 Pt(ct){return(ct||"").split("")}const nt=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 pt=z.forwardRef((ct,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:pe,formatter:be,separator:st,variant:Pe,disabled:_e,status:ot,autoFocus:yt,mask:vt,type:Kt,onInput:jt,inputMode:Ht}=ct,tn=We(ct,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Qt,direction:nn}=z.useContext(Je.E_),xt=Qt("otp",te),qt=(0,Ie.Z)(tn,{aria:!0,data:!0,attr:!0}),[Wt,De,et]=wt(xt),Bt=(0,Ue.Z)(Mt=>oe!=null?oe:Mt),Rt=z.useContext(Ce.aM),ke=(0,St.F)(Rt.status,ot),He=z.useMemo(()=>Object.assign(Object.assign({},Rt),{status:ke,hasFeedback:!1,feedbackIcon:null}),[Rt,ke]),lt=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 Tt=0;Tt<ee;Tt+=1)(Mt=Et.current[Tt])===null||Mt===void 0||Mt.blur()},nativeElement:lt.current}));const Vt=Mt=>be?be(Mt):Mt,[an,In]=z.useState(()=>Pt(Vt(se||"")));z.useEffect(()=>{ne!==void 0&&In(Pt(ne))},[ne]);const kn=(0,Qe.Z)(Mt=>{In(Mt),jt&&jt(Mt),pe&&Mt.length===ee&&Mt.every(Tt=>Tt)&&Mt.some((Tt,mt)=>an[mt]!==Tt)&&pe(Mt.join(""))}),rn=(0,Qe.Z)((Mt,Tt)=>{let mt=(0,he.Z)(an);for(let Yt=0;Yt<Mt;Yt+=1)mt[Yt]||(mt[Yt]="");Tt.length<=1?mt[Mt]=Tt:mt=mt.slice(0,Mt).concat(Pt(Tt)),mt=mt.slice(0,ee);for(let Yt=mt.length-1;Yt>=0&&!mt[Yt];Yt-=1)mt.pop();const en=Vt(mt.map(Yt=>Yt||" ").join(""));return mt=Pt(en).map((Yt,Jt)=>Yt===" "&&!mt[Jt]?mt[Jt]:Yt),mt}),bn=(Mt,Tt)=>{var mt;const en=rn(Mt,Tt),Yt=Math.min(Mt+Tt.length,ee-1);Yt!==Mt&&en[Mt]!==void 0&&((mt=Et.current[Yt])===null||mt===void 0||mt.focus()),kn(en)},dn=Mt=>{var Tt;(Tt=Et.current[Mt])===null||Tt===void 0||Tt.focus()},_t={variant:Pe,disabled:_e,status:ke,mask:vt,type:Kt,inputMode:Ht};return Wt(z.createElement("div",Object.assign({},qt,{ref:lt,className:ve()(xt,{[`${xt}-sm`]:Bt==="small",[`${xt}-lg`]:Bt==="large",[`${xt}-rtl`]:nn==="rtl"},et,De)}),z.createElement(Ce.aM.Provider,{value:He},Array.from({length:ee}).map((Mt,Tt)=>{const mt=`otp-${Tt}`,en=an[Tt]||"";return z.createElement(z.Fragment,{key:mt},z.createElement(at,Object.assign({ref:Yt=>{Et.current[Tt]=Yt},index:Tt,size:Bt,htmlSize:1,className:`${xt}-input`,onChange:bn,value:en,onActiveChange:dn,autoFocus:Tt===0&&yt},_t)),Tt<ee-1&&z.createElement(nt,{separator:st,index:Tt,prefixCls:xt}))}))))}),Me=ie(73331),Ke=ie(15277),je=ie(2738),ue=ie(8654),ut=ie(2171),Oe=ie(23826),Xe=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 Dt=ct=>ct?z.createElement(Ke.Z,null):z.createElement(Me.Z,null),xe={click:"onClick",hover:"onMouseOver"};var ft=z.forwardRef((ct,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Dt}=ct,ne=z.useContext(ut.Z),pe=te!=null?te:ne,be=typeof oe=="object"&&oe.visible!==void 0,[st,Pe]=(0,z.useState)(()=>be?oe.visible:!1),_e=(0,z.useRef)(null);z.useEffect(()=>{be&&Pe(oe.visible)},[be,oe]);const ot=(0,Oe.Z)(_e),yt=()=>{var Bt;if(pe)return;st&&ot();const Rt=!st;Pe(Rt),typeof oe=="object"&&((Bt=oe.onVisibleChange)===null||Bt===void 0||Bt.call(oe,Rt))},vt=Bt=>{const Rt=xe[ee]||"",ke=se(st),He={[Rt]:yt,className:`${Bt}-icon`,key:"passwordIcon",onMouseDown:lt=>{lt.preventDefault()},onMouseUp:lt=>{lt.preventDefault()}};return z.cloneElement(z.isValidElement(ke)?ke:z.createElement("span",null,ke),He)},{className:Kt,prefixCls:jt,inputPrefixCls:Ht,size:tn}=ct,Qt=Xe(ct,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:nn}=z.useContext(Je.E_),xt=nn("input",Ht),qt=nn("input-password",jt),Wt=oe&&vt(qt),De=ve()(qt,Kt,{[`${qt}-${tn}`]:!!tn}),et=Object.assign(Object.assign({},(0,je.Z)(Qt,["suffix","iconRender","visibilityToggle"])),{type:st?"text":"password",className:De,prefixCls:xt,suffix:Wt});return tn&&(et.size=tn),z.createElement(we.Z,Object.assign({ref:(0,ue.sQ)(ae,_e)},et))}),Gt=ie(47472),Ct=ie(22703),me=ie(7939),Le=ie(70045),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},bt=z.forwardRef((ct,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:pe=!1,addonAfter:be,loading:st,disabled:Pe,onSearch:_e,onChange:ot,onCompositionStart:yt,onCompositionEnd:vt}=ct,Kt=Ze(ct,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:jt,direction:Ht}=z.useContext(Je.E_),tn=z.useRef(!1),Qt=jt("input-search",te),nn=jt("input",ee),{compactSize:xt}=(0,Le.ri)(Qt,Ht),qt=(0,Ue.Z)(bn=>{var dn;return(dn=se!=null?se:xt)!==null&&dn!==void 0?dn:bn}),Wt=z.useRef(null),De=bn=>{bn!=null&&bn.target&&bn.type==="click"&&_e&&_e(bn.target.value,bn,{source:"clear"}),ot==null||ot(bn)},et=bn=>{var dn;document.activeElement===((dn=Wt.current)===null||dn===void 0?void 0:dn.input)&&bn.preventDefault()},Bt=bn=>{var dn,_t;_e&&_e((_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||Bt(bn)},ke=typeof pe=="boolean"?z.createElement(Gt.Z,null):null,He=`${Qt}-button`;let lt;const Et=pe||{},Vt=Et.type&&Et.type.__ANT_BUTTON===!0;Vt||Et.type==="button"?lt=(0,Ct.Tm)(Et,Object.assign({onMouseDown:et,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),Bt(bn)},key:"enterButton"},Vt?{className:He,size:qt}:{})):lt=z.createElement(me.ZP,{className:He,type:pe?"primary":void 0,size:qt,disabled:Pe,key:"enterButton",onMouseDown:et,onClick:Bt,loading:st,icon:ke},pe),be&&(lt=[lt,(0,Ct.Tm)(be,{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,vt==null||vt(bn)};return z.createElement(we.Z,Object.assign({ref:(0,ue.sQ)(Wt,ae),onPressEnter:Rt},In,{size:qt,onCompositionStart:kn,onCompositionEnd:rn,addonAfter:lt,suffix:ne,onChange:De,disabled:Pe}))}),zt=ie(79809);const Ae=we.Z;Ae.Group=Ye,Ae.Search=bt,Ae.TextArea=zt.Z,Ae.Password=ft,Ae.OTP=pt;var $t=Ae},24303:function(ln,Zt,ie){"use strict";ie.d(Zt,{D:function(){return We},Z:function(){return tt}});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"},Je=ve,Ce=ie(7657),Ee=function(Me,Ke){return z.createElement(Ce.Z,(0,it.Z)({},Me,{ref:Ke,icon:Je}))},Be=z.forwardRef(Ee),Ye=Be,we=ie(33853),he=ie(38819),Qe=ie(92310),Ie=ie.n(Qe),St=ie(2738),Ue=ie(48755),Ne=ie(6989),Ve=ie(36237),ze=ie(48923),ht=ie(16931);const wt=pt=>{const{componentCls:Me,siderBg:Ke,motionDurationMid:je,motionDurationSlow:ue,antCls:ut,triggerHeight:Oe,triggerColor:Xe,triggerBg:Dt,headerHeight:xe,zeroTriggerWidth:fe,zeroTriggerHeight:ft,borderRadiusLG:Gt,lightSiderBg:Ct,lightTriggerColor:me,lightTriggerBg:Le,bodyBg:Ze}=pt;return{[Me]:{position:"relative",minWidth:0,background:Ke,transition:`all ${je}, 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:Xe,lineHeight:(0,Ve.unit)(Oe),textAlign:"center",background:Dt,cursor:"pointer",transition:`all ${je}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:xe,insetInlineEnd:pt.calc(fe).mul(-1).equal(),zIndex:1,width:fe,height:ft,color:Xe,fontSize:pt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ke,borderRadius:`0 ${(0,Ve.unit)(Gt)} ${(0,Ve.unit)(Gt)} 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:pt.calc(fe).mul(-1).equal(),borderRadius:`${(0,Ve.unit)(Gt)} 0 0 ${(0,Ve.unit)(Gt)}`}},"&-light":{background:Ct,[`${Me}-trigger`]:{color:me,background:Le},[`${Me}-zero-width-trigger`]:{color:me,background:Le,border:`1px solid ${Ze}`,borderInlineStart:0}}}}};var Ot=(0,ht.I$)(["Layout","Sider"],pt=>[wt(pt)],ze.eh,{deprecatedTokens:ze.jn}),dt=function(pt,Me){var Ke={};for(var je in pt)Object.prototype.hasOwnProperty.call(pt,je)&&Me.indexOf(je)<0&&(Ke[je]=pt[je]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,je=Object.getOwnPropertySymbols(pt);ue<je.length;ue++)Me.indexOf(je[ue])<0&&Object.prototype.propertyIsEnumerable.call(pt,je[ue])&&(Ke[je[ue]]=pt[je[ue]]);return Ke};const qe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},at=pt=>!Number.isNaN(Number.parseFloat(pt))&&isFinite(pt),We=z.createContext({}),Pt=(()=>{let pt=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return pt+=1,`${Me}${pt}`}})();var tt=z.forwardRef((pt,Me)=>{const{prefixCls:Ke,className:je,trigger:ue,children:ut,defaultCollapsed:Oe=!1,theme:Xe="dark",style:Dt={},collapsible:xe=!1,reverseArrow:fe=!1,width:ft=200,collapsedWidth:Gt=80,zeroWidthTriggerStyle:Ct,breakpoint:me,onCollapse:Le,onBreakpoint:Ze}=pt,Nt=dt(pt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:bt}=(0,z.useContext)(Ne.V),[zt,Ae]=(0,z.useState)("collapsed"in pt?pt.collapsed:Oe),[$t,ct]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in pt&&Ae(pt.collapsed)},[pt.collapsed]);const ae=(qt,Wt)=>{"collapsed"in pt||Ae(qt),Le==null||Le(qt,Wt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(Ue.E_),oe=te("layout-sider",Ke),[se,ne,pe]=Ot(oe),be=(0,z.useRef)(null);be.current=qt=>{ct(qt.matches),Ze==null||Ze(qt.matches),zt!==qt.matches&&ae(qt.matches,"responsive")},(0,z.useEffect)(()=>{function qt(De){return be.current(De)}let Wt;if(typeof window!="undefined"){const{matchMedia:De}=window;if(De&&me&&me in qe){Wt=De(`screen and (max-width: ${qe[me]})`);try{Wt.addEventListener("change",qt)}catch(et){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=Pt("ant-sider-");return bt.addSider(qt),()=>bt.removeSider(qt)},[]);const st=()=>{ae(!zt,"clickTrigger")},Pe=(0,St.Z)(Nt,["collapsed"]),_e=zt?Gt:ft,ot=at(_e)?`${_e}px`:String(_e),yt=parseFloat(String(Gt||0))===0?z.createElement("span",{onClick:st,className:Ie()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${fe?"right":"left"}`),style:Ct},ue||z.createElement(Ye,null)):null,vt=ee==="rtl"==!fe,Ht={expanded:vt?z.createElement(he.Z,null):z.createElement(we.Z,null),collapsed:vt?z.createElement(we.Z,null):z.createElement(he.Z,null)}[zt?"collapsed":"expanded"],tn=ue!==null?yt||z.createElement("div",{className:`${oe}-trigger`,onClick:st,style:{width:ot}},ue||Ht):null,Qt=Object.assign(Object.assign({},Dt),{flex:`0 0 ${ot}`,maxWidth:ot,minWidth:ot,width:ot}),nn=Ie()(oe,`${oe}-${Xe}`,{[`${oe}-collapsed`]:!!zt,[`${oe}-has-trigger`]:xe&&ue!==null&&!yt,[`${oe}-below`]:!!$t,[`${oe}-zero-width`]:parseFloat(ot)===0},je,ne,pe),xt=z.useMemo(()=>({siderCollapsed:zt}),[zt]);return se(z.createElement(We.Provider,{value:xt},z.createElement("aside",Object.assign({className:nn},Pe,{style:Qt,ref:Me}),z.createElement("div",{className:`${oe}-children`},ut),xe||$t&&yt?tn:null)))})},6989:function(ln,Zt,ie){"use strict";ie.d(Zt,{V:function(){return it}});var z=ie(59301);const it=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(ln,Zt,ie){"use strict";ie.d(Zt,{eh:function(){return Je},jn:function(){return Ce}});var z=ie(36237),it=ie(16931);const ve=Ee=>{const{antCls:Be,componentCls:Ye,colorText:we,footerBg:he,headerHeight:Qe,headerPadding:Ie,headerColor:St,footerPadding:Ue,fontSize:Ne,bodyBg:Ve,headerBg:ze}=Ee;return{[Ye]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{boxSizing:"border-box"},[`&${Ye}-has-sider`]:{flexDirection:"row",[`> ${Ye}, > ${Ye}-content`]:{width:0}},[`${Ye}-header, &${Ye}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ye}-header`]:{height:Qe,padding:Ie,color:St,lineHeight:(0,z.unit)(Qe),background:ze,[`${Be}-menu`]:{lineHeight:"inherit"}},[`${Ye}-footer`]:{padding:Ue,color:we,fontSize:Ne,background:he},[`${Ye}-content`]:{flex:"auto",color:we,minHeight:0}}},Je=Ee=>{const{colorBgLayout:Be,controlHeight:Ye,controlHeightLG:we,colorText:he,controlHeightSM:Qe,marginXXS:Ie,colorTextLightSolid:St,colorBgContainer:Ue}=Ee,Ne=we*1.25;return{colorBgHeader:"#001529",colorBgBody:Be,colorBgTrigger:"#002140",bodyBg:Be,headerBg:"#001529",headerHeight:Ye*2,headerPadding:`0 ${Ne}px`,headerColor:he,footerPadding:`${Qe}px ${Ne}px`,footerBg:Be,siderBg:"#001529",triggerHeight:we+Ie*2,triggerBg:"#002140",triggerColor:St,zeroTriggerWidth:we,zeroTriggerHeight:we,lightSiderBg:Ue,lightTriggerBg:Ue,lightTriggerColor:he}},Ce=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Zt.ZP=(0,it.I$)("Layout",Ee=>[ve(Ee)],Je,{deprecatedTokens:Ce})},78857:function(ln,Zt,ie){"use strict";ie.d(Zt,{J:function(){return Ee}});var z=ie(59301),it=ie(8654),ve=ie(62487),Je=function(Be,Ye){var we={};for(var he in Be)Object.prototype.hasOwnProperty.call(Be,he)&&Ye.indexOf(he)<0&&(we[he]=Be[he]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,he=Object.getOwnPropertySymbols(Be);Qe<he.length;Qe++)Ye.indexOf(he[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Be,he[Qe])&&(we[he[Qe]]=Be[he[Qe]]);return we};const Ce=z.createContext(null),Ee=z.forwardRef((Be,Ye)=>{const{children:we}=Be,he=Je(Be,["children"]),Qe=z.useContext(Ce),Ie=z.useMemo(()=>Object.assign(Object.assign({},Qe),he),[Qe,he.prefixCls,he.mode,he.selectable,he.rootClassName]),St=(0,it.t4)(we),Ue=(0,it.x1)(Ye,St?(0,it.C4)(we):null);return z.createElement(Ce.Provider,{value:Ie},z.createElement(ve.Z,{space:!0},St?z.cloneElement(we,{ref:Ue}):we))});Zt.Z=Ce},93041:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return se}});var z=ie(59301),it=ie(28321),ve=ie(24303),Je=ie(18785),Ce=ie(92310),Ee=ie.n(Ce),Be=ie(6089),Ye=ie(2738),we=ie(86641),he=ie(22703),Qe=ie(48755),Ie=ie(83397),Ue=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=function(ne,pe){var be={};for(var st in ne)Object.prototype.hasOwnProperty.call(ne,st)&&pe.indexOf(st)<0&&(be[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])&&(be[st[Pe]]=ne[st[Pe]]);return be},ze=ne=>{const{prefixCls:pe,className:be,dashed:st}=ne,Pe=Ne(ne,["prefixCls","className","dashed"]),{getPrefixCls:_e}=z.useContext(Qe.E_),ot=_e("menu",pe),yt=Ee()({[`${ot}-item-divider-dashed`]:!!st},be);return z.createElement(it.iz,Object.assign({className:yt},Pe))},ht=ie(11592),wt=ie(25399),dt=ne=>{var pe;const{className:be,children:st,icon:Pe,title:_e,danger:ot,extra:yt}=ne,{prefixCls:vt,firstLevel:Kt,direction:jt,disableMenuItemTitleTooltip:Ht,inlineCollapsed:tn}=z.useContext(Ue),Qt=et=>{const Bt=st==null?void 0:st[0],Rt=z.createElement("span",{className:Ee()(`${vt}-title-content`,{[`${vt}-title-content-with-extra`]:!!yt||yt===0})},st);return(!Pe||z.isValidElement(st)&&st.type==="span")&&st&&et&&Kt&&typeof Bt=="string"?z.createElement("div",{className:`${vt}-inline-collapsed-noicon`},Bt.charAt(0)):Rt},{siderCollapsed:nn}=z.useContext(ve.D);let xt=_e;typeof _e=="undefined"?xt=Kt?st:"":_e===!1&&(xt="");const qt={title:xt};!nn&&!tn&&(qt.title=null,qt.open=!1);const Wt=(0,ht.Z)(st).length;let De=z.createElement(it.ck,Object.assign({},(0,Ye.Z)(ne,["title","icon","danger"]),{className:Ee()({[`${vt}-item-danger`]:ot,[`${vt}-item-only-child`]:(Pe?Wt+1:Wt)===1},be),title:typeof _e=="string"?_e:void 0}),(0,he.Tm)(Pe,{className:Ee()(z.isValidElement(Pe)?(pe=Pe.props)===null||pe===void 0?void 0:pe.className:"",`${vt}-item-icon`)}),Qt(tn));return Ht||(De=z.createElement(wt.Z,Object.assign({},qt,{placement:jt==="rtl"?"left":"right",classNames:{root:`${vt}-inline-collapsed-tooltip`}}),De)),De},qe=ie(78857),at=ie(36237),We=ie(17835),Pt=ie(63356),nt=ie(34961),tt=ie(46e3),pt=ie(34925),Me=ie(16931),Ke=ie(51636),ue=ne=>{const{componentCls:pe,motionDurationSlow:be,horizontalLineHeight:st,colorSplit:Pe,lineWidth:_e,lineType:ot,itemPaddingInline:yt}=ne;return{[`${pe}-horizontal`]:{lineHeight:st,border:0,borderBottom:`${(0,at.unit)(_e)} ${ot} ${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 ${be}`,`background ${be}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},Oe=ne=>{let{componentCls:pe,menuArrowOffset:be,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,at.unit)(st(be).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,at.unit)(be)})`}}}}};const Xe=ne=>Object.assign({},(0,Pt.oN)(ne));var xe=(ne,pe)=>{const{componentCls:be,itemColor:st,itemSelectedColor:Pe,subMenuItemSelectedColor:_e,groupTitleColor:ot,itemBg:yt,subMenuItemBg:vt,itemSelectedBg:Kt,activeBarHeight:jt,activeBarWidth:Ht,activeBarBorderWidth:tn,motionDurationSlow:Qt,motionEaseInOut:nn,motionEaseOut:xt,itemPaddingInline:qt,motionDurationMid:Wt,itemHoverColor:De,lineType:et,colorSplit:Bt,itemDisabledColor:Rt,dangerItemColor:ke,dangerItemHoverColor:He,dangerItemSelectedColor:lt,dangerItemActiveBg:Et,dangerItemSelectedBg:Vt,popupBg:an,itemHoverBg:In,itemActiveBg:kn,menuSubMenuBg:rn,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:_t,horizontalItemHoverBg:Mt}=ne;return{[`${be}-${pe}, ${be}-${pe} > ${be}`]:{color:st,background:yt,[`&${be}-root:focus-visible`]:Object.assign({},Xe(ne)),[`${be}-item`]:{"&-group-title, &-extra":{color:ot}},[`${be}-submenu-selected > ${be}-submenu-title`]:{color:_e},[`${be}-item, ${be}-submenu-title`]:{color:st,[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},Xe(ne))},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${Rt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:De}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:kn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:kn}}},[`${be}-item-danger`]:{color:ke,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:He}},[`&${be}-item:active`]:{background:Et}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Pe,[`&${be}-item-danger`]:{color:lt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:Kt,[`&${be}-item-danger`]:{backgroundColor:Vt}},[`&${be}-submenu > ${be}`]:{backgroundColor:rn},[`&${be}-popup > ${be}`]:{backgroundColor:an},[`&${be}-submenu-popup > ${be}`]:{backgroundColor:an},[`&${be}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:tn,marginTop:ne.calc(tn).mul(-1).equal(),marginBottom:0,borderRadius:_t,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${(0,at.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}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${(0,at.unit)(tn)} ${et} ${Bt}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:vt},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,at.unit)(Ht)} solid ${Pe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Wt} ${xt}`,`opacity ${Wt} ${xt}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:lt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Wt} ${nn}`,`opacity ${Wt} ${nn}`].join(",")}}}}}};const fe=ne=>{const{componentCls:pe,itemHeight:be,itemMarginInline:st,padding:Pe,menuArrowSize:_e,marginXS:ot,itemMarginBlock:yt,itemWidth:vt,itemPaddingInline:Kt}=ne,jt=ne.calc(_e).add(Pe).add(ot).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:be,lineHeight:(0,at.unit)(be),paddingInline:Kt,overflow:"hidden",textOverflow:"ellipsis",marginInline:st,marginBlock:yt,width:vt},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:be,lineHeight:(0,at.unit)(be)},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:jt}}};var Gt=ne=>{const{componentCls:pe,iconCls:be,itemHeight:st,colorTextLightSolid:Pe,dropdownWidth:_e,controlHeightLG:ot,motionEaseOut:yt,paddingXL:vt,itemMarginInline:Kt,fontSizeLG:jt,motionDurationFast:Ht,motionDurationSlow:tn,paddingXS:Qt,boxShadowSecondary:nn,collapsedWidth:xt,collapsedIconSize:qt}=ne,Wt={height:st,lineHeight:(0,at.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:_e,maxHeight:`calc(100vh - ${(0,at.unit)(ne.calc(ot).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${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:vt}},[`${pe}-item`]:Wt}},{[`${pe}-inline-collapsed`]:{width:xt,[`&${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,at.unit)(ne.calc(qt).div(2).equal())} - ${(0,at.unit)(Kt)})`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${be}`]:{margin:0,fontSize:qt,lineHeight:(0,at.unit)(st),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Pe}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Pt.vS),{paddingInline:Qt})}}]};const Ct=ne=>{const{componentCls:pe,motionDurationSlow:be,motionDurationMid:st,motionEaseInOut:Pe,motionEaseOut:_e,iconCls:ot,iconSize:yt,iconMarginInlineEnd:vt}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding calc(${be} + 0.1s) ${Pe}`].join(","),[`${pe}-item-icon, ${ot}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${st} ${_e}`,`margin ${be} ${Pe}`,`color ${be}`].join(","),"+ span":{marginInlineStart:vt,opacity:1,transition:[`opacity ${be} ${Pe}`,`margin ${be}`,`color ${be}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Pt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${ot}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},me=ne=>{const{componentCls:pe,motionDurationSlow:be,motionEaseInOut:st,borderRadius:Pe,menuArrowSize:_e,menuArrowOffset:ot}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:_e,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${st}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(_e).mul(.6).equal(),height:ne.calc(_e).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Pe,transition:[`background ${be} ${st}`,`transform ${be} ${st}`,`top ${be} ${st}`,`color ${be} ${st}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,at.unit)(ne.calc(ot).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,at.unit)(ot)})`}}}}},Le=ne=>{const{antCls:pe,componentCls:be,fontSize:st,motionDurationSlow:Pe,motionDurationMid:_e,motionEaseInOut:ot,paddingXS:yt,padding:vt,colorSplit:Kt,lineWidth:jt,zIndexPopup:Ht,borderRadiusLG:tn,subMenuItemBorderRadius:Qt,menuArrowSize:nn,menuArrowOffset:xt,lineType:qt,groupTitleLineHeight:Wt,groupTitleFontSize:De}=ne;return[{"":{[be]:Object.assign(Object.assign({},(0,Pt.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(ne)),(0,Pt.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",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${(0,at.unit)(yt)} ${(0,at.unit)(vt)}`,fontSize:De,lineHeight:Wt,transition:`all ${Pe}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Pe} ${ot}`,`background ${Pe} ${ot}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Pe} ${ot}`,`background ${Pe} ${ot}`,`padding ${_e} ${ot}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Pe} ${ot}`,`padding ${Pe} ${ot}`].join(",")},[`${be}-title-content`]:{transition:`color ${Pe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${be}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Kt,borderStyle:qt,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(ne)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${(0,at.unit)(ne.calc(st).mul(2).equal())} ${(0,at.unit)(vt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:tn,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:tn},Ct(ne)),me(ne)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:Qt},[`${be}-submenu-title::after`]:{transition:`transform ${Pe} ${ot}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd: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 ${be}-submenu-arrow,
|
|
|
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,at.unit)(xt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,at.unit)(ne.calc(xt).mul(-1).equal())})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(${(0,at.unit)(ne.calc(nn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,at.unit)(ne.calc(xt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,at.unit)(xt)})`}}})},{[`${pe}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]},Ze=ne=>{var pe,be,st;const{colorPrimary:Pe,colorError:_e,colorTextDisabled:ot,colorErrorBg:yt,colorText:vt,colorTextDescription:Kt,colorBgContainer:jt,colorFillAlter:Ht,colorFillContent:tn,lineWidth:Qt,lineWidthBold:nn,controlItemBgActive:xt,colorBgTextHover:qt,controlHeightLG:Wt,lineHeight:De,colorBgElevated:et,marginXXS:Bt,padding:Rt,fontSize:ke,controlHeightSM:He,fontSizeLG:lt,colorTextLightSolid:Et,colorErrorHover:Vt}=ne,an=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,In=(be=ne.activeBarBorderWidth)!==null&&be!==void 0?be:Qt,kn=(st=ne.itemMarginInline)!==null&&st!==void 0?st:ne.marginXXS,rn=new We.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:vt,itemColor:vt,colorItemTextHover:vt,itemHoverColor:vt,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:xt,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:xt,itemSelectedBg:xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:an,colorActiveBarHeight:nn,activeBarHeight:nn,colorActiveBarBorderSize:Qt,activeBarBorderWidth:In,colorItemTextDisabled:ot,itemDisabledColor:ot,colorDangerItemText:_e,dangerItemColor:_e,colorDangerItemTextHover:_e,dangerItemHoverColor:_e,colorDangerItemTextSelected:_e,dangerItemSelectedColor:_e,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:kn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wt,groupTitleLineHeight:De,collapsedWidth:Wt*2,popupBg:et,itemMarginBlock:Bt,itemPaddingInline:Rt,horizontalLineHeight:`${Wt*1.15}px`,iconSize:ke,iconMarginInlineEnd:He-ke,collapsedIconSize:lt,groupTitleFontSize:ke,darkItemDisabledColor:new We.FastColor(Et).setA(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:_e,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Et,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:_e,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:Et,darkDangerItemHoverColor:Vt,darkDangerItemSelectedColor:Et,darkDangerItemActiveBg:_e,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,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",Pe=>{const{colorBgElevated:_e,controlHeightLG:ot,fontSize:yt,darkItemColor:vt,darkDangerItemColor:Kt,darkItemBg:jt,darkSubMenuItemBg:Ht,darkItemSelectedColor:tn,darkItemSelectedBg:Qt,darkDangerItemSelectedBg:nn,darkItemHoverBg:xt,darkGroupTitleColor:qt,darkItemHoverColor:Wt,darkItemDisabledColor:De,darkDangerItemHoverColor:et,darkDangerItemSelectedColor:Bt,darkDangerItemActiveBg:Rt,popupBg:ke,darkPopupBg:He}=Pe,lt=Pe.calc(yt).div(7).mul(5).equal(),Et=(0,Ke.mergeToken)(Pe,{menuArrowSize:lt,menuHorizontalHeight:Pe.calc(ot).mul(1.15).equal(),menuArrowOffset:Pe.calc(lt).mul(.25).equal(),menuSubMenuBg:_e,calc:Pe.calc,popupBg:ke}),Vt=(0,Ke.mergeToken)(Et,{itemColor:vt,itemHoverColor:Wt,groupTitleColor:qt,itemSelectedColor:tn,subMenuItemSelectedColor:tn,itemBg:jt,popupBg:He,subMenuItemBg:Ht,itemActiveBg:"transparent",itemSelectedBg:Qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:xt,itemDisabledColor:De,dangerItemColor:Kt,dangerItemHoverColor:et,dangerItemSelectedColor:Bt,dangerItemActiveBg:Rt,dangerItemSelectedBg:nn,menuSubMenuBg:Ht,horizontalItemSelectedColor:tn,horizontalItemSelectedBg:Qt});return[Le(Et),ue(Et),Gt(Et),xe(Et,"light"),xe(Vt,"dark"),Oe(Et),(0,nt.Z)(Et),(0,tt.oN)(Et,"slide-up"),(0,tt.oN)(Et,"slide-down"),(0,pt._y)(Et,"zoom-big")]},Ze,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:be,unitless:{groupTitleLineHeight:!0}})(ne,pe)},bt=ie(75030),Ae=ne=>{var pe;const{popupClassName:be,icon:st,title:Pe,theme:_e}=ne,ot=z.useContext(Ue),{prefixCls:yt,inlineCollapsed:vt,theme:Kt}=ot,jt=(0,it.Xl)();let Ht;if(!st)Ht=vt&&!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({},ot),{firstLevel:!1}),[ot]),[Qt]=(0,bt.Cn)("Menu");return z.createElement(Ue.Provider,{value:tn},z.createElement(it.Wd,Object.assign({},(0,Ye.Z)(ne,["icon"]),{title:Ht,popupClassName:Ee()(yt,be,`${yt}-${_e||Kt}`),popupStyle:Object.assign({zIndex:Qt},ne.popupStyle)})))},$t=function(ne,pe){var be={};for(var st in ne)Object.prototype.hasOwnProperty.call(ne,st)&&pe.indexOf(st)<0&&(be[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])&&(be[st[Pe]]=ne[st[Pe]]);return be};function ct(ne){return ne===null||ne===!1}const ae={item:dt,submenu:Ae,divider:ze};var ee=(0,z.forwardRef)((ne,pe)=>{var be;const st=z.useContext(qe.Z),Pe=st||{},{getPrefixCls:_e,getPopupContainer:ot,direction:yt,menu:vt}=z.useContext(Qe.E_),Kt=_e(),{prefixCls:jt,className:Ht,style:tn,theme:Qt="light",expandIcon:nn,_internalDisableMenuItemTitleTooltip:xt,inlineCollapsed:qt,siderCollapsed:Wt,rootClassName:De,mode:et,selectable:Bt,onClick:Rt,overflowedIndicatorPopupClassName:ke}=ne,He=$t(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),lt=(0,Ye.Z)(He,["collapsedWidth"]);(be=Pe.validator)===null||be===void 0||be.call(Pe,{mode:et});const Et=(0,Be.Z)(function(){var Yt;Rt==null||Rt.apply(void 0,arguments),(Yt=Pe.onClick)===null||Yt===void 0||Yt.call(Pe)}),Vt=Pe.mode||et,an=Bt!=null?Bt:Pe.selectable,In=qt!=null?qt:Wt,kn={horizontal:{motionName:`${Kt}-slide-up`},inline:(0,we.Z)(Kt),other:{motionName:`${Kt}-zoom-big`}},rn=_e("menu",jt||Pe.prefixCls),bn=(0,Ie.Z)(rn),[dn,_t,Mt]=Nt(rn,bn,!st),Tt=Ee()(`${rn}-${Qt}`,vt==null?void 0:vt.className,Ht),mt=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(vt==null?void 0:vt.expandIcon)=="function"||ct(vt==null?void 0:vt.expandIcon))return(vt==null?void 0:vt.expandIcon)||null;const vn=(Yt=nn!=null?nn:Pe==null?void 0:Pe.expandIcon)!==null&&Yt!==void 0?Yt:vt==null?void 0:vt.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,vt==null?void 0:vt.expandIcon,rn]),en=z.useMemo(()=>({prefixCls:rn,inlineCollapsed:In||!1,direction:yt,firstLevel:!0,theme:Qt,mode:Vt,disableMenuItemTitleTooltip:xt}),[rn,In,yt,xt,Qt]);return dn(z.createElement(qe.Z.Provider,{value:null},z.createElement(Ue.Provider,{value:en},z.createElement(it.ZP,Object.assign({getPopupContainer:ot,overflowedIndicator:z.createElement(Je.Z,null),overflowedIndicatorPopupClassName:Ee()(rn,`${rn}-${Qt}`,ke),mode:Vt,selectable:an,onClick:Et},lt,{inlineCollapsed:In,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),tn),className:Tt,prefixCls:rn,direction:yt,defaultMotions:kn,expandIcon:mt,ref:pe,rootClassName:Ee()(De,_t,Pe.rootClassName,Mt,bn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,pe)=>{const be=(0,z.useRef)(null),st=z.useContext(ve.D);return(0,z.useImperativeHandle)(pe,()=>({menu:be.current,focus:Pe=>{var _e;(_e=be.current)===null||_e===void 0||_e.focus(Pe)}})),z.createElement(ee,Object.assign({ref:be},ne,st))});oe.Item=dt,oe.SubMenu=Ae,oe.Divider=ze,oe.ItemGroup=it.BW;var se=oe},89787:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Wt}});var z=ie(59301),it=ie(17835),ve=ie(29679),Je=ie(40001),Ce=ie(19248),Ee=ie(99267),Be=ie(92310),Ye=ie.n(Be),we=ie(2738),he=ie(48755),Qe=ie(60499),Ie=ie(85899),St=ie(42244),Ue={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ne=function(){var et=(0,z.useRef)([]),Bt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var Rt=Date.now(),ke=!1;et.current.forEach(function(He){if(He){ke=!0;var lt=He.style;lt.transitionDuration=".3s, .3s, .3s, .06s",Bt.current&&Rt-Bt.current<100&&(lt.transitionDuration="0s, 0s")}}),ke&&(Bt.current=Date.now())}),et.current},Ve=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ze=function(et){var Bt=(0,Ie.Z)((0,Ie.Z)({},Ue),et),Rt=Bt.className,ke=Bt.percent,He=Bt.prefixCls,lt=Bt.strokeColor,Et=Bt.strokeLinecap,Vt=Bt.strokeWidth,an=Bt.style,In=Bt.trailColor,kn=Bt.trailWidth,rn=Bt.transition,bn=(0,St.Z)(Bt,Ve);delete bn.gapPosition;var dn=Array.isArray(ke)?ke:[ke],_t=Array.isArray(lt)?lt:[lt],Mt=Ne(),Tt=Vt/2,mt=100-Vt/2,en="M ".concat(Et==="round"?Tt:0,",").concat(Tt,`
|
|
|
L `).concat(Et==="round"?mt:100,",").concat(Tt),Yt="0 0 100 ".concat(Vt),Jt=0;return z.createElement("svg",(0,Qe.Z)({className:Ye()("".concat(He,"-line"),Rt),viewBox:Yt,preserveAspectRatio:"none",style:an},bn),z.createElement("path",{className:"".concat(He,"-line-trail"),d:en,strokeLinecap:Et,stroke:In,strokeWidth:kn||Vt,fillOpacity:"0"}),dn.map(function(vn,wn){var Sn=1;switch(Et){case"round":Sn=1-Vt/100;break;case"square":Sn=1-Vt/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(He,"-line-path"),d:en,strokeLinecap:Et,stroke:Mn,strokeWidth:Vt,fillOpacity:"0",ref:function(An){Mt[wn]=An},style:On})}))},ht=ze,wt=ie(43749),Ot=ie(72190),dt=ie(47273),qe=0,at=(0,dt.Z)();function We(){var De;return at?(De=qe,qe+=1):De="TEST_OR_SSR",De}var Pt=function(De){var et=z.useState(),Bt=(0,Ot.Z)(et,2),Rt=Bt[0],ke=Bt[1];return z.useEffect(function(){ke("rc_progress_".concat(We()))},[]),De||Rt},nt=function(et){var Bt=et.bg,Rt=et.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:Bt}},Rt)};function tt(De,et){return Object.keys(De).map(function(Bt){var Rt=parseFloat(Bt),ke="".concat(Math.floor(Rt*et),"%");return"".concat(De[Bt]," ").concat(ke)})}var pt=z.forwardRef(function(De,et){var Bt=De.prefixCls,Rt=De.color,ke=De.gradientId,He=De.radius,lt=De.style,Et=De.ptg,Vt=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(Bt,"-circle-path"),r:He,cx:dn,cy:dn,stroke:bn,strokeLinecap:Vt,strokeWidth:an,opacity:Et===0?0:1,style:lt,ref:et});if(!rn)return _t;var Mt="".concat(ke,"-conic"),Tt=kn?"".concat(180+kn/2,"deg"):"0deg",mt=tt(Rt,(360-kn)/360),en=tt(Rt,1),Yt="conic-gradient(from ".concat(Tt,", ").concat(mt.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(nt,{bg:Jt},z.createElement(nt,{bg:Yt}))))}),Me=pt,Ke=100,je=function(et,Bt,Rt,ke,He,lt,Et,Vt,an,In){var kn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=Rt/100*360*((360-lt)/360),bn=lt===0?0:{bottom:0,top:180,left:90,right:-90}[Et],dn=(100-ke)/100*Bt;an==="round"&&ke!==100&&(dn+=In/2,dn>=Bt&&(dn=Bt-.01));var _t=Ke/2;return{stroke:typeof Vt=="string"?Vt:void 0,strokeDasharray:"".concat(Bt,"px ").concat(et),strokeDashoffset:dn+kn,transform:"rotate(".concat(He+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 et=De!=null?De:[];return Array.isArray(et)?et:[et]}var Oe=function(et){var Bt=(0,Ie.Z)((0,Ie.Z)({},Ue),et),Rt=Bt.id,ke=Bt.prefixCls,He=Bt.steps,lt=Bt.strokeWidth,Et=Bt.trailWidth,Vt=Bt.gapDegree,an=Vt===void 0?0:Vt,In=Bt.gapPosition,kn=Bt.trailColor,rn=Bt.strokeLinecap,bn=Bt.style,dn=Bt.className,_t=Bt.strokeColor,Mt=Bt.percent,Tt=(0,St.Z)(Bt,ue),mt=Ke/2,en=Pt(Rt),Yt="".concat(en,"-gradient"),Jt=mt-lt/2,vn=Math.PI*2*Jt,wn=an>0?90+an/2:-90,Sn=vn*((360-an)/360),On=(0,wt.Z)(He)==="object"?He:{count:He,gap:2},Mn=On.count,jn=On.gap,An=ut(Mt),It=ut(_t),Ut=It.find(function(Se){return Se&&(0,wt.Z)(Se)==="object"}),xn=Ut&&(0,wt.Z)(Ut)==="object",hn=xn?"butt":rn,Te=je(vn,Sn,0,100,wn,an,In,kn,hn,lt),Ge=Ne(),ye=function(){var Fe=0;return An.map(function(gt,on){var un=It[on]||It[It.length-1],gn=je(vn,Sn,Fe,gt,wn,an,In,un,hn,lt);return Fe+=gt,z.createElement(Me,{key:on,color:un,ptg:gt,radius:Jt,prefixCls:ke,gradientId:Yt,style:gn,strokeLinecap:hn,strokeWidth:lt,gapDegree:an,ref:function(Lt){Ge[on]=Lt},size:Ke})}).reverse()},Re=function(){var Fe=Math.round(Mn*(An[0]/100)),gt=100/Mn,on=0;return new Array(Mn).fill(null).map(function(un,gn){var Xt=gn<=Fe-1?It[0]:kn,Lt=Xt&&(0,wt.Z)(Xt)==="object"?"url(#".concat(Yt,")"):void 0,kt=je(vn,Sn,on,gt,wn,an,In,Xt,"butt",lt,jn);return on+=(Sn-kt.strokeDashoffset+jn)*100/Sn,z.createElement("circle",{key:gn,className:"".concat(ke,"-circle-path"),r:Jt,cx:mt,cy:mt,stroke:Lt,strokeWidth:lt,opacity:1,style:kt,ref:function(Bn){Ge[gn]=Bn}})})};return z.createElement("svg",(0,Qe.Z)({className:Ye()("".concat(ke,"-circle"),dn),viewBox:"0 0 ".concat(Ke," ").concat(Ke),style:bn,id:Rt,role:"presentation"},Tt),!Mn&&z.createElement("circle",{className:"".concat(ke,"-circle-trail"),r:Jt,cx:mt,cy:mt,stroke:kn,strokeLinecap:hn,strokeWidth:Et||lt,style:Te}),Mn?Re():ye())},Xe=Oe,Dt={Line:ht,Circle:Xe},xe=ie(25399),fe=ie(68361);function ft(De){return!De||De<0?0:De>100?100:De}function Gt(De){let{success:et,successPercent:Bt}=De,Rt=Bt;return et&&"progress"in et&&(Rt=et.progress),et&&"percent"in et&&(Rt=et.percent),Rt}const Ct=De=>{let{percent:et,success:Bt,successPercent:Rt}=De;const ke=ft(Gt({success:Bt,successPercent:Rt}));return[ke,ft(ft(et)-ke)]},me=De=>{let{success:et={},strokeColor:Bt}=De;const{strokeColor:Rt}=et;return[Rt||fe.presetPrimaryColors.green,Bt||null]},Le=(De,et,Bt)=>{var Rt,ke,He,lt;let Et=-1,Vt=-1;if(et==="step"){const an=Bt.steps,In=Bt.strokeWidth;typeof De=="string"||typeof De=="undefined"?(Et=De==="small"?2:14,Vt=In!=null?In:8):typeof De=="number"?[Et,Vt]=[De,De]:[Et=14,Vt=8]=Array.isArray(De)?De:[De.width,De.height],Et*=an}else if(et==="line"){const an=Bt==null?void 0:Bt.strokeWidth;typeof De=="string"||typeof De=="undefined"?Vt=an||(De==="small"?6:8):typeof De=="number"?[Et,Vt]=[De,De]:[Et=-1,Vt=8]=Array.isArray(De)?De:[De.width,De.height]}else(et==="circle"||et==="dashboard")&&(typeof De=="string"||typeof De=="undefined"?[Et,Vt]=De==="small"?[60,60]:[120,120]:typeof De=="number"?[Et,Vt]=[De,De]:Array.isArray(De)&&(Et=(ke=(Rt=De[0])!==null&&Rt!==void 0?Rt:De[1])!==null&&ke!==void 0?ke:120,Vt=(lt=(He=De[0])!==null&&He!==void 0?He:De[1])!==null&<!==void 0?lt:120));return[Et,Vt]},Ze=3,Nt=De=>Ze/De*100;var zt=De=>{const{prefixCls:et,trailColor:Bt=null,strokeLinecap:Rt="round",gapPosition:ke,gapDegree:He,width:lt=120,type:Et,children:Vt,success:an,size:In=lt,steps:kn}=De,[rn,bn]=Le(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(He||He===0)return He;if(Et==="dashboard")return 75},[He,Et]),Tt=Ct(De),mt=ke||Et==="dashboard"&&"bottom"||void 0,en=Object.prototype.toString.call(De.strokeColor)==="[object Object]",Yt=me({success:an,strokeColor:De.strokeColor}),Jt=Ye()(`${et}-inner`,{[`${et}-circle-gradient`]:en}),vn=z.createElement(Xe,{steps:kn,percent:kn?Tt[1]:Tt,strokeWidth:dn,trailWidth:dn,strokeColor:kn?Yt[1]:Yt,strokeLinecap:Rt,trailColor:Bt,prefixCls:et,gapDegree:Mt,gapPosition:mt}),wn=rn<=20,Sn=z.createElement("div",{className:Jt,style:_t},vn,!wn&&Vt);return wn?z.createElement(xe.Z,{title:Vt},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 et=De?"100%":"-100%";return new Ae.Keyframes(`antProgress${De?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${et}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${et}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=De=>{const{componentCls:et,iconCls:Bt}=De;return{[et]:Object.assign(Object.assign({},(0,$t.Wf)(De)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:De.fontSize},[`${et}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${et}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:De.remainingColor,borderRadius:De.lineBorderRadius},[`${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:De.defaultColor}},[`${et}-success-bg, ${et}-bg`]:{position:"relative",background:De.defaultColor,borderRadius:De.lineBorderRadius,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOutCirc}`},[`${et}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${et}-text`]:{width:"max-content",marginInlineStart:0,marginTop:De.marginXXS}},[`${et}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${et}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${et}-text-inner`]:{color:De.colorWhite,[`&${et}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${et}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:De.colorSuccess},[`${et}-text`]:{display:"inline-block",marginInlineStart:De.marginXS,color:De.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Bt]:{fontSize:De.fontSize},[`&${et}-text-outer`]:{width:"max-content"},[`&${et}-text-outer${et}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:De.marginXS}},[`${et}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Ae.unit)(De.paddingXXS)}`,[`&${et}-text-start`]:{justifyContent:"start"},[`&${et}-text-end`]:{justifyContent:"end"}},[`&${et}-status-active`]:{[`${et}-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:'""'}},[`&${et}-rtl${et}-status-active`]:{[`${et}-bg::before`]:{animationName:oe(!0)}},[`&${et}-status-exception`]:{[`${et}-bg`]:{backgroundColor:De.colorError},[`${et}-text`]:{color:De.colorError}},[`&${et}-status-exception ${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:De.colorError}},[`&${et}-status-success`]:{[`${et}-bg`]:{backgroundColor:De.colorSuccess},[`${et}-text`]:{color:De.colorSuccess}},[`&${et}-status-success ${et}-inner:not(${et}-circle-gradient)`]:{[`${et}-circle-path`]:{stroke:De.colorSuccess}}})}},ne=De=>{const{componentCls:et,iconCls:Bt}=De;return{[et]:{[`${et}-circle-trail`]:{stroke:De.remainingColor},[`&${et}-circle ${et}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${et}-circle ${et}-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%)",[Bt]:{fontSize:De.circleIconFontSize}},[`${et}-circle&-status-exception`]:{[`${et}-text`]:{color:De.colorError}},[`${et}-circle&-status-success`]:{[`${et}-text`]:{color:De.colorSuccess}}},[`${et}-inline-circle`]:{lineHeight:1,[`${et}-inner`]:{verticalAlign:"bottom"}}}},pe=De=>{const{componentCls:et}=De;return{[et]:{[`${et}-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}}}}}},be=De=>{const{componentCls:et,iconCls:Bt}=De;return{[et]:{[`${et}-small&-line, ${et}-small&-line ${et}-text ${Bt}`]:{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 et=De.calc(De.marginXXS).div(2).equal(),Bt=(0,ae.mergeToken)(De,{progressStepMarginInlineEnd:et,progressStepMinWidth:et,progressActiveMotionDuration:"2.4s"});return[se(Bt),ne(Bt),pe(Bt),be(Bt)]},st),_e=function(De,et){var Bt={};for(var Rt in De)Object.prototype.hasOwnProperty.call(De,Rt)&&et.indexOf(Rt)<0&&(Bt[Rt]=De[Rt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Rt=Object.getOwnPropertySymbols(De);ke<Rt.length;ke++)et.indexOf(Rt[ke])<0&&Object.prototype.propertyIsEnumerable.call(De,Rt[ke])&&(Bt[Rt[ke]]=De[Rt[ke]]);return Bt};const ot=De=>{let et=[];return Object.keys(De).forEach(Bt=>{const Rt=parseFloat(Bt.replace(/%/g,""));Number.isNaN(Rt)||et.push({key:Rt,value:De[Bt]})}),et=et.sort((Bt,Rt)=>Bt.key-Rt.key),et.map(Bt=>{let{key:Rt,value:ke}=Bt;return`${ke} ${Rt}%`}).join(", ")},yt=(De,et)=>{const{from:Bt=fe.presetPrimaryColors.blue,to:Rt=fe.presetPrimaryColors.blue,direction:ke=et==="rtl"?"to left":"to right"}=De,He=_e(De,["from","to","direction"]);if(Object.keys(He).length!==0){const Et=ot(He),Vt=`linear-gradient(${ke}, ${Et})`;return{background:Vt,[te]:Vt}}const lt=`linear-gradient(${ke}, ${Bt}, ${Rt})`;return{background:lt,[te]:lt}};var Kt=De=>{const{prefixCls:et,direction:Bt,percent:Rt,size:ke,strokeWidth:He,strokeColor:lt,strokeLinecap:Et="round",children:Vt,trailColor:an=null,percentPosition:In,success:kn}=De,{align:rn,type:bn}=In,dn=lt&&typeof lt!="string"?yt(lt,Bt):{[te]:lt,background:lt},_t=Et==="square"||Et==="butt"?0:void 0,Mt=ke!=null?ke:[-1,He||(ke==="small"?6:8)],[Tt,mt]=Le(Mt,"line",{strokeWidth:He}),en={backgroundColor:an||void 0,borderRadius:_t},Yt=Object.assign(Object.assign({width:`${ft(Rt)}%`,height:mt,borderRadius:_t},dn),{[ee]:ft(Rt)/100}),Jt=Gt(De),vn={width:`${ft(Jt)}%`,height:mt,borderRadius:_t,backgroundColor:kn==null?void 0:kn.strokeColor},wn={width:Tt<0?"100%":Tt},Sn=z.createElement("div",{className:`${et}-inner`,style:en},z.createElement("div",{className:Ye()(`${et}-bg`,`${et}-bg-${bn}`),style:Yt},bn==="inner"&&Vt),Jt!==void 0&&z.createElement("div",{className:`${et}-success-bg`,style:vn})),On=bn==="outer"&&rn==="start",Mn=bn==="outer"&&rn==="end";return bn==="outer"&&rn==="center"?z.createElement("div",{className:`${et}-layout-bottom`},Sn,Vt):z.createElement("div",{className:`${et}-outer`,style:wn},On&&Vt,Sn,Mn&&Vt)},Ht=De=>{const{size:et,steps:Bt,rounding:Rt=Math.round,percent:ke=0,strokeWidth:He=8,strokeColor:lt,trailColor:Et=null,prefixCls:Vt,children:an}=De,In=Rt(Bt*(ke/100)),kn=et==="small"?2:14,rn=et!=null?et:[kn,He],[bn,dn]=Le(rn,"step",{steps:Bt,strokeWidth:He}),_t=bn/Bt,Mt=Array.from({length:Bt});for(let Tt=0;Tt<Bt;Tt++){const mt=Array.isArray(lt)?lt[Tt]:lt;Mt[Tt]=z.createElement("div",{key:Tt,className:Ye()(`${Vt}-steps-item`,{[`${Vt}-steps-item-active`]:Tt<=In-1}),style:{backgroundColor:Tt<=In-1?mt:Et,width:_t,height:dn}})}return z.createElement("div",{className:`${Vt}-steps-outer`},Mt,an)},tn=function(De,et){var Bt={};for(var Rt in De)Object.prototype.hasOwnProperty.call(De,Rt)&&et.indexOf(Rt)<0&&(Bt[Rt]=De[Rt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Rt=Object.getOwnPropertySymbols(De);ke<Rt.length;ke++)et.indexOf(Rt[ke])<0&&Object.prototype.propertyIsEnumerable.call(De,Rt[ke])&&(Bt[Rt[ke]]=De[Rt[ke]]);return Bt};const Qt=null,nn=["normal","exception","active","success"];var qt=z.forwardRef((De,et)=>{const{prefixCls:Bt,className:Rt,rootClassName:ke,steps:He,strokeColor:lt,percent:Et=0,size:Vt="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:Tt="outer"}=dn,mt=Array.isArray(lt)?lt[0]:lt,en=typeof lt=="string"||Array.isArray(lt)?lt:void 0,Yt=z.useMemo(()=>{if(mt){const ye=typeof mt=="string"?mt:Object.values(mt)[0];return new it.FastColor(ye).isLight()}return!1},[lt]),Jt=z.useMemo(()=>{var ye,Re;const Se=Gt(De);return parseInt(Se!==void 0?(ye=Se!=null?Se:0)===null||ye===void 0?void 0:ye.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",Bt),[jn,An,It]=Pe(Mn),Ut=In==="line",xn=Ut&&!He,hn=z.useMemo(()=>{if(!an)return null;const ye=Gt(De);let Re;const Se=rn||(gt=>`${gt}%`),Fe=Ut&&Yt&&Tt==="inner";return Tt==="inner"||rn||vn!=="exception"&&vn!=="success"?Re=Se(ft(Et),ft(ye)):vn==="exception"?Re=Ut?z.createElement(Ce.Z,null):z.createElement(Ee.Z,null):vn==="success"&&(Re=Ut?z.createElement(ve.Z,null):z.createElement(Je.Z,null)),z.createElement("span",{className:Ye()(`${Mn}-text`,{[`${Mn}-text-bright`]:Fe,[`${Mn}-text-${Mt}`]:xn,[`${Mn}-text-${Tt}`]:xn}),title:typeof Re=="string"?Re:void 0},Re)},[an,Et,Jt,vn,In,Mn,rn]);let Te;In==="line"?Te=He?z.createElement(Ht,Object.assign({},De,{strokeColor:en,prefixCls:Mn,steps:typeof He=="object"?He.count:He}),hn):z.createElement(Kt,Object.assign({},De,{strokeColor:mt,prefixCls:Mn,direction:Sn,percentPosition:{align:Mt,type:Tt}}),hn):(In==="circle"||In==="dashboard")&&(Te=z.createElement(zt,Object.assign({},De,{strokeColor:mt,prefixCls:Mn,progressStatus:vn}),hn));const Ge=Ye()(Mn,`${Mn}-status-${vn}`,{[`${Mn}-${In==="dashboard"&&"circle"||In}`]:In!=="line",[`${Mn}-inline-circle`]:In==="circle"&&Le(Vt,"circle")[0]<=20,[`${Mn}-line`]:xn,[`${Mn}-line-align-${Mt}`]:xn,[`${Mn}-line-position-${Tt}`]:xn,[`${Mn}-steps`]:He,[`${Mn}-show-info`]:an,[`${Mn}-${Vt}`]:typeof Vt=="string",[`${Mn}-rtl`]:Sn==="rtl"},On==null?void 0:On.className,Rt,ke,An,It);return jn(z.createElement("div",Object.assign({ref:et,style:Object.assign(Object.assign({},On==null?void 0:On.style),bn),className:Ge,role:"progressbar","aria-valuenow":Jt,"aria-valuemin":0,"aria-valuemax":100},(0,we.Z)(_t,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Te))}),Wt=qt},63139:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ct}});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"},Je=ve,Ce=ie(7657),Ee=function(Le,Ze){return z.createElement(Ce.Z,(0,it.Z)({},Le,{ref:Ze,icon:Je}))},Be=z.forwardRef(Ee),Ye=Be,we=ie(92310),he=ie.n(we),Qe=ie(18642),Ie=ie(72190),St=ie(42244),Ue=ie(18929),Ne=ie(10228),Ve=ie(26112);function ze(me,Le){var Ze=me.disabled,Nt=me.prefixCls,bt=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)},be=Ae+1,st=new Set([Nt]);ct===0&&Ae===0&&te?st.add("".concat(Nt,"-focused")):ae&&ct+.5>=be&&ct<be?(st.add("".concat(Nt,"-half")),st.add("".concat(Nt,"-active")),te&&st.add("".concat(Nt,"-focused"))):(be<=ct?st.add("".concat(Nt,"-full")):st.add("".concat(Nt,"-zero")),be===ct&&te&&st.add("".concat(Nt,"-focused")));var Pe=typeof bt=="function"?bt(me):bt,_e=z.createElement("li",{className:he()(Array.from(st)),ref:Le},z.createElement("div",{onClick:Ze?null:ne,onKeyDown:Ze?null:pe,onMouseMove:Ze?null:se,role:"radio","aria-checked":ct>Ae?"true":"false","aria-posinset":Ae+1,"aria-setsize":$t,tabIndex:Ze?-1:0},z.createElement("div",{className:"".concat(Nt,"-first")},Pe),z.createElement("div",{className:"".concat(Nt,"-second")},Pe)));return zt&&(_e=zt(_e,me)),_e}var ht=z.forwardRef(ze);function wt(){var me=z.useRef({});function Le(Nt){return me.current[Nt]}function Ze(Nt){return function(bt){me.current[Nt]=bt}}return[Le,Ze]}function Ot(me){var Le=me.pageXOffset,Ze="scrollLeft";if(typeof Le!="number"){var Nt=me.document;Le=Nt.documentElement[Ze],typeof Le!="number"&&(Le=Nt.body[Ze])}return Le}function dt(me){var Le,Ze,Nt=me.ownerDocument,bt=Nt.body,zt=Nt&&Nt.documentElement,Ae=me.getBoundingClientRect();return Le=Ae.left,Ze=Ae.top,Le-=zt.clientLeft||bt.clientLeft||0,Ze-=zt.clientTop||bt.clientTop||0,{left:Le,top:Ze}}function qe(me){var Le=dt(me),Ze=me.ownerDocument,Nt=Ze.defaultView||Ze.parentWindow;return Le.left+=Ot(Nt),Le.left}var at=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function We(me,Le){var Ze=me.prefixCls,Nt=Ze===void 0?"rc-rate":Ze,bt=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,be=pe===void 0?"\u2605":pe,st=me.characterRender,Pe=me.disabled,_e=me.direction,ot=_e===void 0?"ltr":_e,yt=me.tabIndex,vt=yt===void 0?0:yt,Kt=me.autoFocus,jt=me.onHoverChange,Ht=me.onChange,tn=me.onFocus,Qt=me.onBlur,nn=me.onKeyDown,xt=me.onMouseLeave,qt=(0,St.Z)(me,at),Wt=wt(),De=(0,Ie.Z)(Wt,2),et=De[0],Bt=De[1],Rt=z.useRef(null),ke=function(){if(!Pe){var hn;(hn=Rt.current)===null||hn===void 0||hn.focus()}};z.useImperativeHandle(Le,function(){return{focus:ke,blur:function(){if(!Pe){var hn;(hn=Rt.current)===null||hn===void 0||hn.blur()}}}});var He=(0,Ue.Z)(zt||0,{value:Ae}),lt=(0,Ie.Z)(He,2),Et=lt[0],Vt=lt[1],an=(0,Ue.Z)(null),In=(0,Ie.Z)(an,2),kn=In[0],rn=In[1],bn=function(hn,Te){var Ge=ot==="rtl",ye=hn+1;if(te){var Re=et(hn),Se=qe(Re),Fe=Re.clientWidth;(Ge&&Te-Se>Fe/2||!Ge&&Te-Se<Fe/2)&&(ye-=.5)}return ye},dn=function(hn){Vt(hn),Ht==null||Ht(hn)},_t=z.useState(!1),Mt=(0,Ie.Z)(_t,2),Tt=Mt[0],mt=Mt[1],en=function(){mt(!0),tn==null||tn()},Yt=function(){mt(!1),Qt==null||Qt()},Jt=z.useState(null),vn=(0,Ie.Z)(Jt,2),wn=vn[0],Sn=vn[1],On=function(hn,Te){var Ge=bn(Te,hn.pageX);Ge!==kn&&(Sn(Ge),rn(null)),jt==null||jt(Ge)},Mn=function(hn){Pe||(Sn(null),rn(null),jt==null||jt(void 0)),hn&&(xt==null||xt(hn))},jn=function(hn,Te){var Ge=bn(Te,hn.pageX),ye=!1;oe&&(ye=Ge===Et),Mn(),dn(ye?0:Ge),rn(ye?Ge:null)},An=function(hn){var Te=hn.keyCode,Ge=ot==="rtl",ye=te?.5:1;ne&&(Te===Ne.Z.RIGHT&&Et<ct&&!Ge?(dn(Et+ye),hn.preventDefault()):Te===Ne.Z.LEFT&&Et>0&&!Ge||Te===Ne.Z.RIGHT&&Et>0&&Ge?(dn(Et-ye),hn.preventDefault()):Te===Ne.Z.LEFT&&Et<ct&&Ge&&(dn(Et+ye),hn.preventDefault())),nn==null||nn(hn)};z.useEffect(function(){Kt&&!Pe&&ke()},[]);var It=new Array(ct).fill(0).map(function(xn,hn){return z.createElement(ht,{ref:Bt(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:be,characterRender:st,focused:Tt})}),Ut=he()(Nt,bt,(0,Qe.Z)((0,Qe.Z)({},"".concat(Nt,"-disabled"),Pe),"".concat(Nt,"-rtl"),ot==="rtl"));return z.createElement("ul",(0,it.Z)({className:Ut,onMouseLeave:Mn,tabIndex:Pe?-1:vt,onFocus:Pe?null:en,onBlur:Pe?null:Yt,onKeyDown:Pe?null:An,ref:Rt},(0,Ve.Z)(qt,{aria:!0,data:!0,attr:!0})),It)}var Pt=z.forwardRef(We),nt=Pt,tt=ie(48755),pt=ie(25399),Me=ie(36237),Ke=ie(63356),je=ie(16931),ue=ie(51636);const ut=me=>{const{componentCls:Le}=me;return{[`${Le}-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 ${Le}-star-first, &-half ${Le}-star-second`]:{opacity:1},[`&-half ${Le}-star-first, &-full ${Le}-star-second`]:{color:"inherit"}}}},Oe=me=>({[`&-rtl${me.componentCls}`]:{direction:"rtl"}}),Xe=me=>{const{componentCls:Le}=me;return{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ke.Wf)(me)),{display:"inline-block",margin:0,padding:0,color:me.starColor,fontSize:me.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Le} ${Le}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ut(me)),Oe(me))}},Dt=me=>({starColor:me.yellow6,starSize:me.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:me.colorFillContent});var xe=(0,je.I$)("Rate",me=>{const Le=(0,ue.mergeToken)(me,{});return[Xe(Le)]},Dt),fe=ie(2171),ft=function(me,Le){var Ze={};for(var Nt in me)Object.prototype.hasOwnProperty.call(me,Nt)&&Le.indexOf(Nt)<0&&(Ze[Nt]=me[Nt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Nt=Object.getOwnPropertySymbols(me);bt<Nt.length;bt++)Le.indexOf(Nt[bt])<0&&Object.prototype.propertyIsEnumerable.call(me,Nt[bt])&&(Ze[Nt[bt]]=me[Nt[bt]]);return Ze},Ct=z.forwardRef((me,Le)=>{const{prefixCls:Ze,className:Nt,rootClassName:bt,style:zt,tooltips:Ae,character:$t=z.createElement(Ye,null),disabled:ct}=me,ae=ft(me,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(yt,vt)=>{let{index:Kt}=vt;return Ae?z.createElement(pt.Z,{title:Ae[Kt]},yt):yt},{getPrefixCls:ee,direction:oe,rate:se}=z.useContext(tt.E_),ne=ee("rate",Ze),[pe,be,st]=xe(ne),Pe=Object.assign(Object.assign({},se==null?void 0:se.style),zt),_e=z.useContext(fe.Z),ot=ct!=null?ct:_e;return pe(z.createElement(nt,Object.assign({ref:Le,character:$t,characterRender:te,disabled:ot},ae,{className:he()(Nt,bt,be,st,se==null?void 0:se.className),style:Pe,prefixCls:ne,direction:oe})))})},82326:function(ln,Zt,ie){"use strict";var z=ie(59301),it=ie(92310),ve=ie.n(it),Je=ie(37463),Ce=ie(2738),Ee=ie(75030),Be=ie(86641),Ye=ie(45915),we=ie(82855),he=ie(48755),Qe=ie(38406),Ie=ie(2171),St=ie(83397),Ue=ie(31756),Ne=ie(56553),Ve=ie(24971),ze=ie(70045),ht=ie(57700),wt=ie(1722),Ot=ie(90376),dt=ie(68525),qe=ie(90005),at=function(pt,Me){var Ke={};for(var je in pt)Object.prototype.hasOwnProperty.call(pt,je)&&Me.indexOf(je)<0&&(Ke[je]=pt[je]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,je=Object.getOwnPropertySymbols(pt);ue<je.length;ue++)Me.indexOf(je[ue])<0&&Object.prototype.propertyIsEnumerable.call(pt,je[ue])&&(Ke[je[ue]]=pt[je[ue]]);return Ke};const We="SECRET_COMBOBOX_MODE_DO_NOT_USE",Pt=(pt,Me)=>{var Ke;const{prefixCls:je,bordered:ue,className:ut,rootClassName:Oe,getPopupContainer:Xe,popupClassName:Dt,dropdownClassName:xe,listHeight:fe=256,placement:ft,listItemHeight:Gt,size:Ct,disabled:me,notFoundContent:Le,status:Ze,builtinPlacements:Nt,dropdownMatchSelectWidth:bt,popupMatchSelectWidth:zt,direction:Ae,style:$t,allowClear:ct,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=pt,pe=at(pt,["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:be,getPrefixCls:st,renderEmpty:Pe,direction:_e,virtual:ot,popupMatchSelectWidth:yt,popupOverflow:vt}=z.useContext(he.E_),Kt=(0,he.dj)("select"),[,jt]=(0,ht.ZP)(),Ht=Gt!=null?Gt:jt==null?void 0:jt.controlHeight,tn=st("select",je),Qt=st(),nn=Ae!=null?Ae:_e,{compactSize:xt,compactItemClassnames:qt}=(0,ze.ri)(tn,nn),[Wt,De]=(0,Ve.Z)("select",ae,ue),et=(0,St.Z)(tn),[Bt,Rt,ke]=(0,Ot.Z)(tn,et),He=z.useMemo(()=>{const{mode:An}=pt;if(An!=="combobox")return An===We?"combobox":An},[pt.mode]),lt=He==="multiple"||He==="tags",Et=(0,qe.Z)(pt.suffixIcon,pt.showArrow),Vt=(Ke=zt!=null?zt:bt)!==null&&Ke!==void 0?Ke:yt,{status:an,hasFeedback:In,isFormItemInput:kn,feedbackIcon:rn}=z.useContext(Ne.aM),bn=(0,we.F)(an,Ze);let dn;Le!==void 0?dn=Le:He==="combobox"?dn=null:dn=(Pe==null?void 0:Pe("Select"))||z.createElement(Qe.Z,{componentName:"Select"});const{suffixIcon:_t,itemIcon:Mt,removeIcon:Tt,clearIcon:mt}=(0,dt.Z)(Object.assign(Object.assign({},pe),{multiple:lt,hasFeedback:In,feedbackIcon:rn,showSuffixIcon:Et,prefixCls:tn,componentName:"Select"})),en=ct===!0?{clearIcon:mt}:ct,Yt=(0,Ce.Z)(pe,["suffixIcon","itemIcon"]),Jt=ve()(Dt||xe,{[`${tn}-dropdown-${nn}`]:nn==="rtl"},Oe,ke,et,Rt),vn=(0,Ue.Z)(An=>{var It;return(It=Ct!=null?Ct:xt)!==null&&It!==void 0?It:An}),wn=z.useContext(Ie.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,we.Z)(tn,bn,In),qt,Kt.className,ut,Oe,ke,et,Rt),Mn=z.useMemo(()=>ft!==void 0?ft:nn==="rtl"?"bottomRight":"bottomLeft",[ft,nn]),[jn]=(0,Ee.Cn)("SelectLike",te==null?void 0:te.zIndex);return Bt(z.createElement(Je.ZP,Object.assign({ref:Me,virtual:ot,showSearch:Kt.showSearch},Yt,{style:Object.assign(Object.assign({},Kt.style),$t),dropdownMatchSelectWidth:Vt,transitionName:(0,Be.m)(Qt,"slide-up",ee),builtinPlacements:(0,wt.Z)(Nt,vt),listHeight:fe,listItemHeight:Ht,mode:He,prefixCls:tn,placement:Mn,direction:nn,prefix:ne,suffixIcon:_t,menuItemSelectedIcon:Mt,removeIcon:Tt,allowClear:en,notFoundContent:dn,className:On,getPopupContainer:Xe||be,dropdownClassName:Jt,disabled:Sn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:jn}),maxCount:lt?se:void 0,tagRender:lt?oe:void 0})))},nt=z.forwardRef(Pt),tt=(0,Ye.Z)(nt,"dropdownAlign");nt.SECRET_COMBOBOX_MODE_DO_NOT_USE=We,nt.Option=Je.Wx,nt.OptGroup=Je.Xo,nt._InternalPanelDoNotUseOrYouWillBeFired=tt,Zt.default=nt},1722:function(ln,Zt){"use strict";const ie=it=>{const Je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:it==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Je),{points:["br","tr"],offset:[0,-4]})}};function z(it,ve){return it||ie(ve)}Zt.Z=z},90376:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return je}});var z=ie(63356),it=ie(56119),ve=ie(16931),Je=ie(51636),Ce=ie(46e3),Ee=ie(93873);const Be=ue=>{const{optionHeight:ut,optionFontSize:Oe,optionLineHeight:Xe,optionPadding:Dt}=ue;return{position:"relative",display:"block",minHeight:ut,padding:Dt,color:ue.colorText,fontWeight:"normal",fontSize:Oe,lineHeight:Xe,boxSizing:"border-box"}};var we=ue=>{const{antCls:ut,componentCls:Oe}=ue,Xe=`${Oe}-item`,Dt=`&${ut}-slide-up-enter${ut}-slide-up-enter-active`,xe=`&${ut}-slide-up-appear${ut}-slide-up-appear-active`,fe=`&${ut}-slide-up-leave${ut}-slide-up-leave-active`,ft=`${Oe}-dropdown-placement-`,Gt=`${Xe}-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,[`
|
|
|
${Dt}${ft}bottomLeft,
|
|
|
${xe}${ft}bottomLeft
|
|
|
`]:{animationName:Ce.fJ},[`
|
|
|
${Dt}${ft}topLeft,
|
|
|
${xe}${ft}topLeft,
|
|
|
${Dt}${ft}topRight,
|
|
|
${xe}${ft}topRight
|
|
|
`]:{animationName:Ce.Qt},[`${fe}${ft}bottomLeft`]:{animationName:Ce.Uw},[`
|
|
|
${fe}${ft}topLeft,
|
|
|
${fe}${ft}topRight
|
|
|
`]:{animationName:Ce.ly},"&-hidden":{display:"none"},[Xe]:Object.assign(Object.assign({},Be(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(${Xe}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${Xe}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${Xe}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${Xe}-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({},Be(ue)),{color:ue.colorTextDisabled})}),[`${Gt}:has(+ ${Gt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Gt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ce.oN)(ue,"slide-up"),(0,Ce.oN)(ue,"slide-down"),(0,Ee.Fm)(ue,"move-up"),(0,Ee.Fm)(ue,"move-down")]},he=ie(26743),Qe=ie(36237);function Ie(ue,ut){const{componentCls:Oe,inputPaddingHorizontalBase:Xe,borderRadius:Dt}=ue,xe=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:Dt,flex:"1 1 auto",[`${Oe}-selection-wrap:after`]:{lineHeight:(0,Qe.unit)(xe)},[`${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,Qe.unit)(xe),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,Qe.unit)(Xe)}`,[`${Oe}-selection-search-input`]:{height:xe,fontSize:ue.fontSize},"&:after":{lineHeight:(0,Qe.unit)(xe)}}},[`&${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,Qe.unit)(Xe)}`,"&:after":{display:"none"}}}}}}}function St(ue){const{componentCls:ut}=ue,Oe=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Ie(ue),Ie((0,Je.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${ut}-single${ut}-sm`]:{[`&:not(${ut}-customize-input)`]:{[`${ut}-selector`]:{padding:`0 ${(0,Qe.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()}}}},Ie((0,Je.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const Ue=ue=>{const{fontSize:ut,lineHeight:Oe,lineWidth:Xe,controlHeight:Dt,controlHeightSM:xe,controlHeightLG:fe,paddingXXS:ft,controlPaddingHorizontal:Gt,zIndexPopupBase:Ct,colorText:me,fontWeightStrong:Le,controlItemBgActive:Ze,controlItemBgHover:Nt,colorBgContainer:bt,colorFillSecondary:zt,colorBgContainerDisabled:Ae,colorTextDisabled:$t,colorPrimaryHover:ct,colorPrimary:ae,controlOutline:te}=ue,ee=ft*2,oe=Xe*2,se=Math.min(Dt-ee,Dt-oe),ne=Math.min(xe-ee,xe-oe),pe=Math.min(fe-ee,fe-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ft/2),zIndexPopup:Ct+50,optionSelectedColor:me,optionSelectedFontWeight:Le,optionSelectedBg:Ze,optionActiveBg:Nt,optionPadding:`${(Dt-ut*Oe)/2}px ${Gt}px`,optionFontSize:ut,optionLineHeight:Oe,optionHeight:Dt,selectorBg:bt,clearBg:bt,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:ft}},Ne=(ue,ut)=>{const{componentCls:Oe,antCls:Xe,controlOutlineWidth:Dt}=ue;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{border:`${(0,Qe.unit)(ue.lineWidth)} ${ue.lineType} ${ut.borderColor}`,background:ue.selectorBg},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${Xe}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{borderColor:ut.hoverBorderHover},[`${Oe}-focused& ${Oe}-selector`]:{borderColor:ut.activeBorderColor,boxShadow:`0 0 0 ${(0,Qe.unit)(Dt)} ${ut.activeOutlineColor}`,outline:0},[`${Oe}-prefix`]:{color:ut.color}}}},Ve=(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})),Ve(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ve(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,Qe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),ht=(ue,ut)=>{const{componentCls:Oe,antCls:Xe}=ue;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{background:ut.bg,border:`${(0,Qe.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:ut.color},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${Xe}-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({},ht(ue,ut))}),Ot=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ht(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,Qe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),dt=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,Qe.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,Qe.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}}}}),qe=(ue,ut)=>{const{componentCls:Oe,antCls:Xe}=ue;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{borderWidth:`0 0 ${(0,Qe.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(${Xe}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{borderColor:ut.hoverBorderHover},[`${Oe}-focused& ${Oe}-selector`]:{borderColor:ut.activeBorderColor,outline:0},[`${Oe}-prefix`]:{color:ut.color}}}},at=(ue,ut)=>({[`&${ue.componentCls}-status-${ut.status}`]:Object.assign({},qe(ue,ut))}),We=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},qe(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),at(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),at(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,Qe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var nt=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ze(ue)),Ot(ue)),dt(ue)),We(ue))});const tt=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"}}}},pt=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:Xe,iconCls:Dt}=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({},tt(ue)),pt(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:Xe,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`,[Dt]:{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:Xe,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(Xe).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},Ke=ue=>{const{componentCls:ut}=ue;return[{[ut]:{[`&${ut}-in-form-item`]:{width:"100%"}}},Me(ue),St(ue),(0,he.ZP)(ue),we(ue),{[`${ut}-rtl`]:{direction:"rtl"}},(0,it.c)(ue,{borderElCls:`${ut}-selector`,focusElCls:`${ut}-focused`})]};var je=(0,ve.I$)("Select",(ue,ut)=>{let{rootPrefixCls:Oe}=ut;const Xe=(0,Je.mergeToken)(ue,{rootPrefixCls:Oe,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[Ke(Xe),nt(Xe)]},Ue,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(ln,Zt,ie){"use strict";ie.d(Zt,{_z:function(){return Ee},gp:function(){return Je}});var z=ie(36237),it=ie(63356),ve=ie(51636);const Je=he=>{const{multipleSelectItemHeight:Qe,paddingXXS:Ie,lineWidth:St,INTERNAL_FIXED_ITEM_MARGIN:Ue}=he,Ne=he.max(he.calc(Ie).sub(St).equal(),0),Ve=he.max(he.calc(Ne).sub(Ue).equal(),0);return{basePadding:Ne,containerPadding:Ve,itemHeight:(0,z.unit)(Qe),itemLineHeight:(0,z.unit)(he.calc(Qe).sub(he.calc(he.lineWidth).mul(2)).equal())}},Ce=he=>{const{multipleSelectItemHeight:Qe,selectHeight:Ie,lineWidth:St}=he;return he.calc(Ie).sub(Qe).div(2).sub(St).equal()},Ee=he=>{const{componentCls:Qe,iconCls:Ie,borderRadiusSM:St,motionDurationSlow:Ue,paddingXS:Ne,multipleItemColorDisabled:Ve,multipleItemBorderColorDisabled:ze,colorIcon:ht,colorIconHover:wt,INTERNAL_FIXED_ITEM_MARGIN:Ot}=he;return{[`${Qe}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Qe}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ot,borderRadius:St,cursor:"default",transition:`font-size ${Ue}, line-height ${Ue}, height ${Ue}`,marginInlineEnd:he.calc(Ot).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:he.calc(Ne).div(2).equal(),[`${Qe}-disabled&`]:{color:Ve,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:ht,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ie}`]:{verticalAlign:"-0.2em"},"&:hover":{color:wt}})}}}},Be=(he,Qe)=>{const{componentCls:Ie,INTERNAL_FIXED_ITEM_MARGIN:St}=he,Ue=`${Ie}-selection-overflow`,Ne=he.multipleSelectItemHeight,Ve=Ce(he),ze=Qe?`${Ie}-${Qe}`:"",ht=Je(he);return{[`${Ie}-multiple${ze}`]:Object.assign(Object.assign({},Ee(he)),{[`${Ie}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ht.basePadding,paddingBlock:ht.containerPadding,borderRadius:he.borderRadius,[`${Ie}-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"'}},[`${Ie}-selection-item`]:{height:ht.itemHeight,lineHeight:(0,z.unit)(ht.itemLineHeight)},[`${Ie}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Ne),marginBlock:St}},[`${Ie}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ht.basePadding).equal()},[`${Ue}-item + ${Ue}-item,
|
|
|
${Ie}-prefix + ${Ie}-selection-wrap
|
|
|
`]:{[`${Ie}-selection-search`]:{marginInlineStart:0},[`${Ie}-selection-placeholder`]:{insetInlineStart:0}},[`${Ue}-item-suffix`]:{minHeight:ht.itemHeight,marginBlock:St},[`${Ie}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ve).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"}},[`${Ie}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ht.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Ye(he,Qe){const{componentCls:Ie}=he,St=Qe?`${Ie}-${Qe}`:"",Ue={[`${Ie}-multiple${St}`]:{fontSize:he.fontSize,[`${Ie}-selector`]:{[`${Ie}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Ie}-show-arrow ${Ie}-selector,
|
|
|
&${Ie}-allow-clear ${Ie}-selector
|
|
|
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Be(he,Qe),Ue]}const we=he=>{const{componentCls:Qe}=he,Ie=(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[Ye(he),Ye(Ie,"sm"),{[`${Qe}-multiple${Qe}-sm`]:{[`${Qe}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Qe}-selection-search`]:{marginInlineStart:2}}},Ye(St,"lg")]};Zt.ZP=we},68525:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});var z=ie(59301),it=ie(40001),ve=ie(19248),Je=ie(99267),Ce=ie(84105),Ee=ie(58617),Be=ie(47472);function Ye(we){let{suffixIcon:he,clearIcon:Qe,menuItemSelectedIcon:Ie,removeIcon:St,loading:Ue,multiple:Ne,hasFeedback:Ve,prefixCls:ze,showSuffixIcon:ht,feedbackIcon:wt,showArrow:Ot,componentName:dt}=we;const qe=Qe!=null?Qe:z.createElement(ve.Z,null),at=tt=>he===null&&!Ve&&!Ot?null:z.createElement(z.Fragment,null,ht!==!1&&tt,Ve&&wt);let We=null;if(he!==void 0)We=at(he);else if(Ue)We=at(z.createElement(Ee.Z,{spin:!0}));else{const tt=`${ze}-suffix`;We=pt=>{let{open:Me,showSearch:Ke}=pt;return at(Me&&Ke?z.createElement(Be.Z,{className:tt}):z.createElement(Ce.Z,{className:tt}))}}let Pt=null;Ie!==void 0?Pt=Ie:Ne?Pt=z.createElement(it.Z,null):Pt=null;let nt=null;return St!==void 0?nt=St:nt=z.createElement(Je.Z,null),{clearIcon:qe,suffixIcon:We,itemIcon:Pt,removeIcon:nt}}},90005:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return z}});function z(it,ve){return ve!==void 0?ve:it!==null}},11938:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return pt}});var z=ie(59301),it=ie(40192),ve=ie(22703),Je=ie(92310),Ce=ie.n(Je),Ee=ie(26112),Be=ie(48755),Ye=ie(458),he=Me=>{const{value:Ke,formatter:je,precision:ue,decimalSeparator:ut,groupSeparator:Oe="",prefixCls:Xe}=Me;let Dt;if(typeof je=="function")Dt=je(Ke);else{const xe=String(Ke),fe=xe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!fe||xe==="-")Dt=xe;else{const ft=fe[1];let Gt=fe[2]||"0",Ct=fe[4]||"";Gt=Gt.replace(/\B(?=(\d{3})+(?!\d))/g,Oe),typeof ue=="number"&&(Ct=Ct.padEnd(ue,"0").slice(0,ue>0?ue:0)),Ct&&(Ct=`${ut}${Ct}`),Dt=[z.createElement("span",{key:"int",className:`${Xe}-content-value-int`},ft,Gt),Ct&&z.createElement("span",{key:"decimal",className:`${Xe}-content-value-decimal`},Ct)]}}return z.createElement("span",{className:`${Xe}-content-value`},Dt)},Qe=ie(63356),Ie=ie(16931),St=ie(51636);const Ue=Me=>{const{componentCls:Ke,marginXXS:je,padding:ue,colorTextDescription:ut,titleFontSize:Oe,colorTextHeading:Xe,contentFontSize:Dt,fontFamily:xe}=Me;return{[Ke]:Object.assign(Object.assign({},(0,Qe.Wf)(Me)),{[`${Ke}-title`]:{marginBottom:je,color:ut,fontSize:Oe},[`${Ke}-skeleton`]:{paddingTop:ue},[`${Ke}-content`]:{color:Xe,fontSize:Dt,fontFamily:xe,[`${Ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ke}-content-prefix, ${Ke}-content-suffix`]:{display:"inline-block"},[`${Ke}-content-prefix`]:{marginInlineEnd:je},[`${Ke}-content-suffix`]:{marginInlineStart:je}}})}},Ne=Me=>{const{fontSizeHeading3:Ke,fontSize:je}=Me;return{titleFontSize:je,contentFontSize:Ke}};var Ve=(0,Ie.I$)("Statistic",Me=>{const Ke=(0,St.mergeToken)(Me,{});return[Ue(Ke)]},Ne),ze=function(Me,Ke){var je={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&Ke.indexOf(ue)<0&&(je[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,ue=Object.getOwnPropertySymbols(Me);ut<ue.length;ut++)Ke.indexOf(ue[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,ue[ut])&&(je[ue[ut]]=Me[ue[ut]]);return je},wt=Me=>{const{prefixCls:Ke,className:je,rootClassName:ue,style:ut,valueStyle:Oe,value:Xe=0,title:Dt,valueRender:xe,prefix:fe,suffix:ft,loading:Gt=!1,formatter:Ct,precision:me,decimalSeparator:Le=".",groupSeparator:Ze=",",onMouseEnter:Nt,onMouseLeave:bt}=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,Be.dj)("statistic"),te=Ae("statistic",Ke),[ee,oe,se]=Ve(te),ne=z.createElement(he,{decimalSeparator:Le,groupSeparator:Ze,prefixCls:te,formatter:Ct,precision:me,value:Xe}),pe=Ce()(te,{[`${te}-rtl`]:$t==="rtl"},ct,je,ue,oe,se),be=(0,Ee.Z)(zt,{aria:!0,data:!0});return ee(z.createElement("div",Object.assign({},be,{className:pe,style:Object.assign(Object.assign({},ae),ut),onMouseEnter:Nt,onMouseLeave:bt}),Dt&&z.createElement("div",{className:`${te}-title`},Dt),z.createElement(Ye.Z,{paragraph:!1,loading:Gt,className:`${te}-skeleton`},z.createElement("div",{style:Oe,className:`${te}-content`},fe&&z.createElement("span",{className:`${te}-content-prefix`},fe),xe?xe(ne):ne,ft&&z.createElement("span",{className:`${te}-content-suffix`},ft)))))};const Ot=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function dt(Me,Ke){let je=Me;const ue=/\[[^\]]*]/g,ut=(Ke.match(ue)||[]).map(xe=>xe.slice(1,-1)),Oe=Ke.replace(ue,"[]"),Xe=Ot.reduce((xe,fe)=>{let[ft,Gt]=fe;if(xe.includes(ft)){const Ct=Math.floor(je/Gt);return je-=Ct*Gt,xe.replace(new RegExp(`${ft}+`,"g"),me=>{const Le=me.length;return Ct.toString().padStart(Le,"0")})}return xe},Oe);let Dt=0;return Xe.replace(ue,()=>{const xe=ut[Dt];return Dt+=1,xe})}function qe(Me,Ke){const{format:je=""}=Ke,ue=new Date(Me).getTime(),ut=Date.now(),Oe=Math.max(ue-ut,0);return dt(Oe,je)}var at=function(Me,Ke){var je={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&Ke.indexOf(ue)<0&&(je[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,ue=Object.getOwnPropertySymbols(Me);ut<ue.length;ut++)Ke.indexOf(ue[ut])<0&&Object.prototype.propertyIsEnumerable.call(Me,ue[ut])&&(je[ue[ut]]=Me[ue[ut]]);return je};const We=1e3/30;function Pt(Me){return new Date(Me).getTime()}const nt=Me=>{const{value:Ke,format:je="HH:mm:ss",onChange:ue,onFinish:ut}=Me,Oe=at(Me,["value","format","onChange","onFinish"]),Xe=(0,it.Z)(),Dt=z.useRef(null),xe=()=>{ut==null||ut(),Dt.current&&(clearInterval(Dt.current),Dt.current=null)},fe=()=>{const Ct=Pt(Ke);Ct>=Date.now()&&(Dt.current=setInterval(()=>{Xe(),ue==null||ue(Ct-Date.now()),Ct<Date.now()&&xe()},We))};z.useEffect(()=>(fe(),()=>{Dt.current&&(clearInterval(Dt.current),Dt.current=null)}),[Ke]);const ft=(Ct,me)=>qe(Ct,Object.assign(Object.assign({},me),{format:je})),Gt=Ct=>(0,ve.Tm)(Ct,{title:void 0});return z.createElement(wt,Object.assign({},Oe,{value:Ke,valueRender:Gt,formatter:ft}))};var tt=z.memo(nt);wt.Countdown=tt;var pt=wt},58755:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return ut}});var z=ie(59301),it=ie(58617),ve=ie(92310),Je=ie.n(ve),Ce=ie(60499),Ee=ie(18642),Be=ie(72190),Ye=ie(42244),we=ie(18929),he=ie(10228),Qe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ie=z.forwardRef(function(Oe,Xe){var Dt,xe=Oe.prefixCls,fe=xe===void 0?"rc-switch":xe,ft=Oe.className,Gt=Oe.checked,Ct=Oe.defaultChecked,me=Oe.disabled,Le=Oe.loadingIcon,Ze=Oe.checkedChildren,Nt=Oe.unCheckedChildren,bt=Oe.onClick,zt=Oe.onChange,Ae=Oe.onKeyDown,$t=(0,Ye.Z)(Oe,Qe),ct=(0,we.Z)(!1,{value:Gt,defaultValue:Ct}),ae=(0,Be.Z)(ct,2),te=ae[0],ee=ae[1];function oe(be,st){var Pe=te;return me||(Pe=be,ee(Pe),zt==null||zt(Pe,st)),Pe}function se(be){be.which===he.Z.LEFT?oe(!1,be):be.which===he.Z.RIGHT&&oe(!0,be),Ae==null||Ae(be)}function ne(be){var st=oe(!te,be);bt==null||bt(st,be)}var pe=Je()(fe,ft,(Dt={},(0,Ee.Z)(Dt,"".concat(fe,"-checked"),te),(0,Ee.Z)(Dt,"".concat(fe,"-disabled"),me),Dt));return z.createElement("button",(0,Ce.Z)({},$t,{type:"button",role:"switch","aria-checked":te,disabled:me,className:pe,ref:Xe,onKeyDown:se,onClick:ne}),Le,z.createElement("span",{className:"".concat(fe,"-inner")},z.createElement("span",{className:"".concat(fe,"-inner-checked")},Ze),z.createElement("span",{className:"".concat(fe,"-inner-unchecked")},Nt)))});Ie.displayName="Switch";var St=Ie,Ue=ie(12919),Ne=ie(48755),Ve=ie(2171),ze=ie(31756),ht=ie(36237),wt=ie(17835),Ot=ie(63356),dt=ie(16931),qe=ie(51636);const at=Oe=>{const{componentCls:Xe,trackHeightSM:Dt,trackPadding:xe,trackMinWidthSM:fe,innerMinMarginSM:ft,innerMaxMarginSM:Gt,handleSizeSM:Ct,calc:me}=Oe,Le=`${Xe}-inner`,Ze=(0,ht.unit)(me(Ct).add(me(xe).mul(2)).equal()),Nt=(0,ht.unit)(me(Gt).mul(2).equal());return{[Xe]:{[`&${Xe}-small`]:{minWidth:fe,height:Dt,lineHeight:(0,ht.unit)(Dt),[`${Xe}-inner`]:{paddingInlineStart:Gt,paddingInlineEnd:ft,[`${Le}-checked, ${Le}-unchecked`]:{minHeight:Dt},[`${Le}-checked`]:{marginInlineStart:`calc(-100% + ${Ze} - ${Nt})`,marginInlineEnd:`calc(100% - ${Ze} + ${Nt})`},[`${Le}-unchecked`]:{marginTop:me(Dt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Xe}-handle`]:{width:Ct,height:Ct},[`${Xe}-loading-icon`]:{top:me(me(Ct).sub(Oe.switchLoadingIconSize)).div(2).equal(),fontSize:Oe.switchLoadingIconSize},[`&${Xe}-checked`]:{[`${Xe}-inner`]:{paddingInlineStart:ft,paddingInlineEnd:Gt,[`${Le}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Le}-unchecked`]:{marginInlineStart:`calc(100% - ${Ze} + ${Nt})`,marginInlineEnd:`calc(-100% + ${Ze} - ${Nt})`}},[`${Xe}-handle`]:{insetInlineStart:`calc(100% - ${(0,ht.unit)(me(Ct).add(xe).equal())})`}},[`&:not(${Xe}-disabled):active`]:{[`&:not(${Xe}-checked) ${Le}`]:{[`${Le}-unchecked`]:{marginInlineStart:me(Oe.marginXXS).div(2).equal(),marginInlineEnd:me(Oe.marginXXS).mul(-1).div(2).equal()}},[`&${Xe}-checked ${Le}`]:{[`${Le}-checked`]:{marginInlineStart:me(Oe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:me(Oe.marginXXS).div(2).equal()}}}}}}},We=Oe=>{const{componentCls:Xe,handleSize:Dt,calc:xe}=Oe;return{[Xe]:{[`${Xe}-loading-icon${Oe.iconCls}`]:{position:"relative",top:xe(xe(Dt).sub(Oe.fontSize)).div(2).equal(),color:Oe.switchLoadingIconColor,verticalAlign:"top"},[`&${Xe}-checked ${Xe}-loading-icon`]:{color:Oe.switchColor}}}},Pt=Oe=>{const{componentCls:Xe,trackPadding:Dt,handleBg:xe,handleShadow:fe,handleSize:ft,calc:Gt}=Oe,Ct=`${Xe}-handle`;return{[Xe]:{[Ct]:{position:"absolute",top:Dt,insetInlineStart:Dt,width:ft,height:ft,transition:`all ${Oe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:xe,borderRadius:Gt(ft).div(2).equal(),boxShadow:fe,transition:`all ${Oe.switchDuration} ease-in-out`,content:'""'}},[`&${Xe}-checked ${Ct}`]:{insetInlineStart:`calc(100% - ${(0,ht.unit)(Gt(ft).add(Dt).equal())})`},[`&:not(${Xe}-disabled):active`]:{[`${Ct}::before`]:{insetInlineEnd:Oe.switchHandleActiveInset,insetInlineStart:0},[`&${Xe}-checked ${Ct}::before`]:{insetInlineEnd:0,insetInlineStart:Oe.switchHandleActiveInset}}}}},nt=Oe=>{const{componentCls:Xe,trackHeight:Dt,trackPadding:xe,innerMinMargin:fe,innerMaxMargin:ft,handleSize:Gt,calc:Ct}=Oe,me=`${Xe}-inner`,Le=(0,ht.unit)(Ct(Gt).add(Ct(xe).mul(2)).equal()),Ze=(0,ht.unit)(Ct(ft).mul(2).equal());return{[Xe]:{[me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ft,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:Dt},[`${me}-checked`]:{marginInlineStart:`calc(-100% + ${Le} - ${Ze})`,marginInlineEnd:`calc(100% - ${Le} + ${Ze})`},[`${me}-unchecked`]:{marginTop:Ct(Dt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Xe}-checked ${me}`]:{paddingInlineStart:fe,paddingInlineEnd:ft,[`${me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${me}-unchecked`]:{marginInlineStart:`calc(100% - ${Le} + ${Ze})`,marginInlineEnd:`calc(-100% + ${Le} - ${Ze})`}},[`&:not(${Xe}-disabled):active`]:{[`&:not(${Xe}-checked) ${me}`]:{[`${me}-unchecked`]:{marginInlineStart:Ct(xe).mul(2).equal(),marginInlineEnd:Ct(xe).mul(-1).mul(2).equal()}},[`&${Xe}-checked ${me}`]:{[`${me}-checked`]:{marginInlineStart:Ct(xe).mul(-1).mul(2).equal(),marginInlineEnd:Ct(xe).mul(2).equal()}}}}}},tt=Oe=>{const{componentCls:Xe,trackHeight:Dt,trackMinWidth:xe}=Oe;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ot.Wf)(Oe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:xe,height:Dt,lineHeight:(0,ht.unit)(Dt),verticalAlign:"middle",background:Oe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Xe}-disabled)`]:{background:Oe.colorTextTertiary}}),(0,Ot.Qy)(Oe)),{[`&${Xe}-checked`]:{background:Oe.switchColor,[`&:hover:not(${Xe}-disabled)`]:{background:Oe.colorPrimaryHover}},[`&${Xe}-loading, &${Xe}-disabled`]:{cursor:"not-allowed",opacity:Oe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Xe}-rtl`]:{direction:"rtl"}})}},pt=Oe=>{const{fontSize:Xe,lineHeight:Dt,controlHeight:xe,colorWhite:fe}=Oe,ft=Xe*Dt,Gt=xe/2,Ct=2,me=ft-Ct*2,Le=Gt-Ct*2;return{trackHeight:ft,trackHeightSM:Gt,trackMinWidth:me*2+Ct*4,trackMinWidthSM:Le*2+Ct*2,trackPadding:Ct,handleBg:fe,handleSize:me,handleSizeSM:Le,handleShadow:`0 2px 4px 0 ${new wt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:me/2,innerMaxMargin:me+Ct+Ct*2,innerMinMarginSM:Le/2,innerMaxMarginSM:Le+Ct+Ct*2}};var Me=(0,dt.I$)("Switch",Oe=>{const Xe=(0,qe.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[tt(Xe),nt(Xe),Pt(Xe),We(Xe),at(Xe)]},pt),Ke=function(Oe,Xe){var Dt={};for(var xe in Oe)Object.prototype.hasOwnProperty.call(Oe,xe)&&Xe.indexOf(xe)<0&&(Dt[xe]=Oe[xe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,xe=Object.getOwnPropertySymbols(Oe);fe<xe.length;fe++)Xe.indexOf(xe[fe])<0&&Object.prototype.propertyIsEnumerable.call(Oe,xe[fe])&&(Dt[xe[fe]]=Oe[xe[fe]]);return Dt};const ue=z.forwardRef((Oe,Xe)=>{const{prefixCls:Dt,size:xe,disabled:fe,loading:ft,className:Gt,rootClassName:Ct,style:me,checked:Le,value:Ze,defaultChecked:Nt,defaultValue:bt,onChange:zt}=Oe,Ae=Ke(Oe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[$t,ct]=(0,we.Z)(!1,{value:Le!=null?Le:Ze,defaultValue:Nt!=null?Nt:bt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Ne.E_),oe=z.useContext(Ve.Z),se=(fe!=null?fe:oe)||ft,ne=ae("switch",Dt),pe=z.createElement("div",{className:`${ne}-handle`},ft&&z.createElement(it.Z,{className:`${ne}-loading-icon`})),[be,st,Pe]=Me(ne),_e=(0,ze.Z)(xe),ot=Je()(ee==null?void 0:ee.className,{[`${ne}-small`]:_e==="small",[`${ne}-loading`]:ft,[`${ne}-rtl`]:te==="rtl"},Gt,Ct,st,Pe),yt=Object.assign(Object.assign({},ee==null?void 0:ee.style),me),vt=function(){ct(arguments.length<=0?void 0:arguments[0]),zt==null||zt.apply(void 0,arguments)};return be(z.createElement(Ue.Z,{component:"Switch"},z.createElement(St,Object.assign({},Ae,{checked:$t,onChange:vt,prefixCls:ne,className:ot,style:yt,disabled:se,ref:Xe,loadingIcon:pe}))))});ue.__ANT_SWITCH=!0;var ut=ue},96599:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return je}});var z=ie(59301),it=ie(92310),ve=ie.n(it),Je=ie(2738),Ce=ie(29509),Ee=ie(78776),Be=ie(22703),Ye=ie(12919),we=ie(48755),he=ie(36237),Qe=ie(17835),Ie=ie(63356),St=ie(51636),Ue=ie(16931);const Ne=ue=>{const{paddingXXS:ut,lineWidth:Oe,tagPaddingHorizontal:Xe,componentCls:Dt,calc:xe}=ue,fe=xe(Xe).sub(Oe).equal(),ft=xe(ut).sub(Oe).equal();return{[Dt]:Object.assign(Object.assign({},(0,Ie.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",[`&${Dt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Dt}-close-icon`]:{marginInlineStart:ft,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Dt}-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(${Dt}-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}}),[`${Dt}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ve=ue=>{const{lineWidth:ut,fontSizeIcon:Oe,calc:Xe}=ue,Dt=ue.fontSizeSM;return(0,St.mergeToken)(ue,{tagFontSize:Dt,tagLineHeight:(0,he.unit)(Xe(ue.lineHeightSM).mul(Dt).equal()),tagIconSize:Xe(Oe).sub(Xe(ut).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},ze=ue=>({defaultBg:new Qe.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var ht=(0,Ue.I$)("Tag",ue=>{const ut=Ve(ue);return Ne(ut)},ze),wt=function(ue,ut){var Oe={};for(var Xe in ue)Object.prototype.hasOwnProperty.call(ue,Xe)&&ut.indexOf(Xe)<0&&(Oe[Xe]=ue[Xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Xe=Object.getOwnPropertySymbols(ue);Dt<Xe.length;Dt++)ut.indexOf(Xe[Dt])<0&&Object.prototype.propertyIsEnumerable.call(ue,Xe[Dt])&&(Oe[Xe[Dt]]=ue[Xe[Dt]]);return Oe},dt=z.forwardRef((ue,ut)=>{const{prefixCls:Oe,style:Xe,className:Dt,checked:xe,onChange:fe,onClick:ft}=ue,Gt=wt(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ct,tag:me}=z.useContext(we.E_),Le=$t=>{fe==null||fe(!xe),ft==null||ft($t)},Ze=Ct("tag",Oe),[Nt,bt,zt]=ht(Ze),Ae=ve()(Ze,`${Ze}-checkable`,{[`${Ze}-checkable-checked`]:xe},me==null?void 0:me.className,Dt,bt,zt);return Nt(z.createElement("span",Object.assign({},Gt,{ref:ut,style:Object.assign(Object.assign({},Xe),me==null?void 0:me.style),className:Ae,onClick:Le})))}),qe=ie(93427);const at=ue=>(0,qe.Z)(ue,(ut,Oe)=>{let{textColor:Xe,lightBorderColor:Dt,lightColor:xe,darkColor:fe}=Oe;return{[`${ue.componentCls}${ue.componentCls}-${ut}`]:{color:Xe,background:xe,borderColor:Dt,"&-inverse":{color:ue.colorTextLightSolid,background:fe,borderColor:fe},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var We=(0,Ue.bk)(["Tag","preset"],ue=>{const ut=Ve(ue);return at(ut)},ze);function Pt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const nt=(ue,ut,Oe)=>{const Xe=Pt(Oe);return{[`${ue.componentCls}${ue.componentCls}-${ut}`]:{color:ue[`color${Oe}`],background:ue[`color${Xe}Bg`],borderColor:ue[`color${Xe}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var tt=(0,Ue.bk)(["Tag","status"],ue=>{const ut=Ve(ue);return[nt(ut,"success","Success"),nt(ut,"processing","Info"),nt(ut,"error","Error"),nt(ut,"warning","Warning")]},ze),pt=function(ue,ut){var Oe={};for(var Xe in ue)Object.prototype.hasOwnProperty.call(ue,Xe)&&ut.indexOf(Xe)<0&&(Oe[Xe]=ue[Xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Xe=Object.getOwnPropertySymbols(ue);Dt<Xe.length;Dt++)ut.indexOf(Xe[Dt])<0&&Object.prototype.propertyIsEnumerable.call(ue,Xe[Dt])&&(Oe[Xe[Dt]]=ue[Xe[Dt]]);return Oe};const Ke=z.forwardRef((ue,ut)=>{const{prefixCls:Oe,className:Xe,rootClassName:Dt,style:xe,children:fe,icon:ft,color:Gt,onClose:Ct,bordered:me=!0,visible:Le}=ue,Ze=pt(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Nt,direction:bt,tag:zt}=z.useContext(we.E_),[Ae,$t]=z.useState(!0),ct=(0,Je.Z)(Ze,["closeIcon","closable"]);z.useEffect(()=>{Le!==void 0&&$t(Le)},[Le]);const ae=(0,Ce.o2)(Gt),te=(0,Ce.yT)(Gt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Gt&&!ee?Gt:void 0},zt==null?void 0:zt.style),xe),se=Nt("tag",Oe),[ne,pe,be]=ht(se),st=ve()(se,zt==null?void 0:zt.className,{[`${se}-${Gt}`]:ee,[`${se}-has-color`]:Gt&&!ee,[`${se}-hidden`]:!Ae,[`${se}-rtl`]:bt==="rtl",[`${se}-borderless`]:!me},Xe,Dt,pe,be),Pe=jt=>{jt.stopPropagation(),Ct==null||Ct(jt),!jt.defaultPrevented&&$t(!1)},[,_e]=(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,Be.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`)}))}}),ot=typeof Ze.onClick=="function"||fe&&fe.type==="a",yt=ft||null,vt=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}),vt,_e,ae&&z.createElement(We,{key:"preset",prefixCls:se}),te&&z.createElement(tt,{key:"status",prefixCls:se}));return ne(ot?z.createElement(Ye.Z,{component:"Tag"},Kt):Kt)});Ke.CheckableTag=dt;var je=Ke},99498:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Ye,we,he){var Qe=he&&he!=z.Init;if(we&&!Qe)Ye.on("blur",Ce),Ye.on("change",Ee),Ye.on("swapDoc",Ee),z.on(Ye.getInputField(),"compositionupdate",Ye.state.placeholderCompose=function(){Je(Ye)}),Ee(Ye);else if(!we&&Qe){Ye.off("blur",Ce),Ye.off("change",Ee),Ye.off("swapDoc",Ee),z.off(Ye.getInputField(),"compositionupdate",Ye.state.placeholderCompose),it(Ye);var Ie=Ye.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}we&&!Ye.hasFocus()&&Ce(Ye)});function it(Ye){Ye.state.placeholder&&(Ye.state.placeholder.parentNode.removeChild(Ye.state.placeholder),Ye.state.placeholder=null)}function ve(Ye){it(Ye);var we=Ye.state.placeholder=document.createElement("pre");we.style.cssText="height: 0; overflow: visible",we.style.direction=Ye.getOption("direction"),we.className="CodeMirror-placeholder CodeMirror-line-like";var he=Ye.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),we.appendChild(he),Ye.display.lineSpace.insertBefore(we,Ye.display.lineSpace.firstChild)}function Je(Ye){setTimeout(function(){var we=!1,he=Ye.getInputField();he.nodeName=="TEXTAREA"?we=!he.value:Ye.lineCount()==1&&(we=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),we?ve(Ye):it(Ye)},20)}function Ce(Ye){Be(Ye)&&ve(Ye)}function Ee(Ye){var we=Ye.getWrapperElement(),he=Be(Ye);we.className=we.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ve(Ye):it(Ye)}function Be(Ye){return Ye.lineCount()===1&&Ye.getLine(0)===""}})},25717:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){var it={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Ne,Ve,ze){ze&&ze!=z.Init&&(Ne.removeKeyMap(Ce),Ne.state.closeBrackets=null),Ve&&(Ee(Je(Ve,"pairs")),Ne.state.closeBrackets=Ve,Ne.addKeyMap(Ce))});function Je(Ne,Ve){return Ve=="pairs"&&typeof Ne=="string"?Ne:typeof Ne=="object"&&Ne[Ve]!=null?Ne[Ve]:it[Ve]}var Ce={Backspace:we,Enter:he};function Ee(Ne){for(var Ve=0;Ve<Ne.length;Ve++){var ze=Ne.charAt(Ve),ht="'"+ze+"'";Ce[ht]||(Ce[ht]=Be(ze))}}Ee(it.pairs+"`");function Be(Ne){return function(Ve){return Ie(Ve,Ne)}}function Ye(Ne){var Ve=Ne.state.closeBrackets;if(!Ve||Ve.override)return Ve;var ze=Ne.getModeAt(Ne.getCursor());return ze.closeBrackets||Ve}function we(Ne){var Ve=Ye(Ne);if(!Ve||Ne.getOption("disableInput"))return z.Pass;for(var ze=Je(Ve,"pairs"),ht=Ne.listSelections(),wt=0;wt<ht.length;wt++){if(!ht[wt].empty())return z.Pass;var Ot=St(Ne,ht[wt].head);if(!Ot||ze.indexOf(Ot)%2!=0)return z.Pass}for(var wt=ht.length-1;wt>=0;wt--){var dt=ht[wt].head;Ne.replaceRange("",ve(dt.line,dt.ch-1),ve(dt.line,dt.ch+1),"+delete")}}function he(Ne){var Ve=Ye(Ne),ze=Ve&&Je(Ve,"explode");if(!ze||Ne.getOption("disableInput"))return z.Pass;for(var ht=Ne.listSelections(),wt=0;wt<ht.length;wt++){if(!ht[wt].empty())return z.Pass;var Ot=St(Ne,ht[wt].head);if(!Ot||ze.indexOf(Ot)%2!=0)return z.Pass}Ne.operation(function(){var dt=Ne.lineSeparator()||`
|
|
|
`;Ne.replaceSelection(dt+dt,null),Ne.execCommand("goCharLeft"),ht=Ne.listSelections();for(var qe=0;qe<ht.length;qe++){var at=ht[qe].head.line;Ne.indentLine(at,null,!0),Ne.indentLine(at+1,null,!0)}})}function Qe(Ne){var Ve=z.cmpPos(Ne.anchor,Ne.head)>0;return{anchor:new ve(Ne.anchor.line,Ne.anchor.ch+(Ve?-1:1)),head:new ve(Ne.head.line,Ne.head.ch+(Ve?1:-1))}}function Ie(Ne,Ve){var ze=Ye(Ne);if(!ze||Ne.getOption("disableInput"))return z.Pass;var ht=Je(ze,"pairs"),wt=ht.indexOf(Ve);if(wt==-1)return z.Pass;for(var Ot=Je(ze,"closeBefore"),dt=Je(ze,"triples"),qe=ht.charAt(wt+1)==Ve,at=Ne.listSelections(),We=wt%2==0,Pt,nt=0;nt<at.length;nt++){var tt=at[nt],pt=tt.head,Me,Ke=Ne.getRange(pt,ve(pt.line,pt.ch+1));if(We&&!tt.empty())Me="surround";else if((qe||!We)&&Ke==Ve)qe&&Ue(Ne,pt)?Me="both":dt.indexOf(Ve)>=0&&Ne.getRange(pt,ve(pt.line,pt.ch+3))==Ve+Ve+Ve?Me="skipThree":Me="skip";else if(qe&&pt.ch>1&&dt.indexOf(Ve)>=0&&Ne.getRange(ve(pt.line,pt.ch-2),pt)==Ve+Ve){if(pt.ch>2&&/\bstring/.test(Ne.getTokenTypeAt(ve(pt.line,pt.ch-2))))return z.Pass;Me="addFour"}else if(qe){var je=pt.ch==0?" ":Ne.getRange(ve(pt.line,pt.ch-1),pt);if(!z.isWordChar(Ke)&&je!=Ve&&!z.isWordChar(je))Me="both";else return z.Pass}else if(We&&(Ke.length===0||/\s/.test(Ke)||Ot.indexOf(Ke)>-1))Me="both";else return z.Pass;if(!Pt)Pt=Me;else if(Pt!=Me)return z.Pass}var ue=wt%2?ht.charAt(wt-1):Ve,ut=wt%2?Ve:ht.charAt(wt+1);Ne.operation(function(){if(Pt=="skip")Ne.execCommand("goCharRight");else if(Pt=="skipThree")for(var Oe=0;Oe<3;Oe++)Ne.execCommand("goCharRight");else if(Pt=="surround"){for(var Xe=Ne.getSelections(),Oe=0;Oe<Xe.length;Oe++)Xe[Oe]=ue+Xe[Oe]+ut;Ne.replaceSelections(Xe,"around"),Xe=Ne.listSelections().slice();for(var Oe=0;Oe<Xe.length;Oe++)Xe[Oe]=Qe(Xe[Oe]);Ne.setSelections(Xe)}else Pt=="both"?(Ne.replaceSelection(ue+ut,null),Ne.triggerElectric(ue+ut),Ne.execCommand("goCharLeft")):Pt=="addFour"&&(Ne.replaceSelection(ue+ue+ue+ue,"before"),Ne.execCommand("goCharRight"))})}function St(Ne,Ve){var ze=Ne.getRange(ve(Ve.line,Ve.ch-1),ve(Ve.line,Ve.ch+1));return ze.length==2?ze:null}function Ue(Ne,Ve){var ze=Ne.getTokenAt(ve(Ve.line,Ve.ch+1));return/\bstring/.test(ze.type)&&ze.start==Ve.ch&&(Ve.ch==0||!/\bstring/.test(Ne.getTokenTypeAt(Ve)))}})},6313:function(ln,Zt,ie){(function(z){z(ie(89780),ie(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(we,he,Qe){if(Qe!=z.Init&&Qe&&we.removeKeyMap("autoCloseTags"),!!he){var Ie={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Ie["'/'"]=function(St){return Ee(St)}),(typeof he!="object"||he.whenOpening!==!1)&&(Ie["'>'"]=function(St){return Je(St)}),we.addKeyMap(Ie)}});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 Je(we){if(we.getOption("disableInput"))return z.Pass;for(var he=we.listSelections(),Qe=[],Ie=we.getOption("autoCloseTags"),St=0;St<he.length;St++){if(!he[St].empty())return z.Pass;var Ue=he[St].head,Ne=we.getTokenAt(Ue),Ve=z.innerMode(we.getMode(),Ne.state),ze=Ve.state,ht=Ve.mode.xmlCurrentTag&&Ve.mode.xmlCurrentTag(ze),wt=ht&&ht.name;if(!wt)return z.Pass;var Ot=Ve.mode.configuration=="html",dt=typeof Ie=="object"&&Ie.dontCloseTags||Ot&&it,qe=typeof Ie=="object"&&Ie.indentTags||Ot&&ve;Ne.end>Ue.ch&&(wt=wt.slice(0,wt.length-Ne.end+Ue.ch));var at=wt.toLowerCase();if(!wt||Ne.type=="string"&&(Ne.end!=Ue.ch||!/[\"\']/.test(Ne.string.charAt(Ne.string.length-1))||Ne.string.length==1)||Ne.type=="tag"&&ht.close||Ne.string.indexOf("/")==Ue.ch-Ne.start-1||dt&&Be(dt,at)>-1||Ye(we,Ve.mode.xmlCurrentContext&&Ve.mode.xmlCurrentContext(ze)||[],wt,Ue,!0))return z.Pass;var We=typeof Ie=="object"&&Ie.emptyTags;if(We&&Be(We,wt)>-1){Qe[St]={text:"/>",newPos:z.Pos(Ue.line,Ue.ch+2)};continue}var Pt=qe&&Be(qe,at)>-1;Qe[St]={indent:Pt,text:">"+(Pt?`
|
|
|
|
|
|
`:"")+"</"+wt+">",newPos:Pt?z.Pos(Ue.line+1,0):z.Pos(Ue.line,Ue.ch+1)}}for(var nt=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,St=he.length-1;St>=0;St--){var tt=Qe[St];we.replaceRange(tt.text,he[St].head,he[St].anchor,"+insert");var pt=we.listSelections().slice(0);pt[St]={head:tt.newPos,anchor:tt.newPos},we.setSelections(pt),!nt&&tt.indent&&(we.indentLine(tt.newPos.line,null,!0),we.indentLine(tt.newPos.line+1,null,!0))}}function Ce(we,he){for(var Qe=we.listSelections(),Ie=[],St=he?"/":"</",Ue=we.getOption("autoCloseTags"),Ne=typeof Ue=="object"&&Ue.dontIndentOnSlash,Ve=0;Ve<Qe.length;Ve++){if(!Qe[Ve].empty())return z.Pass;var ze=Qe[Ve].head,ht=we.getTokenAt(ze),wt=z.innerMode(we.getMode(),ht.state),Ot=wt.state;if(he&&(ht.type=="string"||ht.string.charAt(0)!="<"||ht.start!=ze.ch-1))return z.Pass;var dt,qe=wt.mode.name!="xml"&&we.getMode().name=="htmlmixed";if(qe&&wt.mode.name=="javascript")dt=St+"script";else if(qe&&wt.mode.name=="css")dt=St+"style";else{var at=wt.mode.xmlCurrentContext&&wt.mode.xmlCurrentContext(Ot);if(!at||at.length&&Ye(we,at,at[at.length-1],ze))return z.Pass;dt=St+at[at.length-1]}we.getLine(ze.line).charAt(ht.end)!=">"&&(dt+=">"),Ie[Ve]=dt}if(we.replaceSelections(Ie),Qe=we.listSelections(),!Ne)for(var Ve=0;Ve<Qe.length;Ve++)(Ve==Qe.length-1||Qe[Ve].head.line<Qe[Ve+1].head.line)&&we.indentLine(Qe[Ve].head.line)}function Ee(we){return we.getOption("disableInput")?z.Pass:Ce(we,!0)}z.commands.closeTag=function(we){return Ce(we)};function Be(we,he){if(we.indexOf)return we.indexOf(he);for(var Qe=0,Ie=we.length;Qe<Ie;++Qe)if(we[Qe]==he)return Qe;return-1}function Ye(we,he,Qe,Ie,St){if(!z.scanForClosingTag)return!1;var Ue=Math.min(we.lastLine()+1,Ie.line+500),Ne=z.scanForClosingTag(we,Ie,null,Ue);if(!Ne||Ne.tag!=Qe)return!1;for(var Ve=St?1:0,ze=he.length-1;ze>=0&&he[ze]==Qe;ze--)++Ve;Ie=Ne.to;for(var ze=1;ze<Ve;ze++){var ht=z.scanForClosingTag(we,Ie,null,Ue);if(!ht||ht.tag!=Qe)return!1;Ie=ht.to}return!0}})},32855:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var it=z.Pos;function ve(ze,ht){return ze.line-ht.line||ze.ch-ht.ch}var Je="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",Ce=Je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+Je+"]["+Ce+"]*)","g");function Be(ze,ht,wt,Ot){this.line=ht,this.ch=wt,this.cm=ze,this.text=ze.getLine(ht),this.min=Ot?Math.max(Ot.from,ze.firstLine()):ze.firstLine(),this.max=Ot?Math.min(Ot.to-1,ze.lastLine()):ze.lastLine()}function Ye(ze,ht){var wt=ze.cm.getTokenTypeAt(it(ze.line,ht));return wt&&/\btag\b/.test(wt)}function we(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 Qe(ze){for(;;){var ht=ze.text.indexOf(">",ze.ch);if(ht==-1){if(we(ze))continue;return}if(!Ye(ze,ht+1)){ze.ch=ht+1;continue}var wt=ze.text.lastIndexOf("/",ht),Ot=wt>-1&&!/\S/.test(ze.text.slice(wt+1,ht));return ze.ch=ht+1,Ot?"selfClose":"regular"}}function Ie(ze){for(;;){var ht=ze.ch?ze.text.lastIndexOf("<",ze.ch-1):-1;if(ht==-1){if(he(ze))continue;return}if(!Ye(ze,ht+1)){ze.ch=ht;continue}Ee.lastIndex=ht,ze.ch=ht;var wt=Ee.exec(ze.text);if(wt&&wt.index==ht)return wt}}function St(ze){for(;;){Ee.lastIndex=ze.ch;var ht=Ee.exec(ze.text);if(!ht){if(we(ze))continue;return}if(!Ye(ze,ht.index+1)){ze.ch=ht.index+1;continue}return ze.ch=ht.index+ht[0].length,ht}}function Ue(ze){for(;;){var ht=ze.ch?ze.text.lastIndexOf(">",ze.ch-1):-1;if(ht==-1){if(he(ze))continue;return}if(!Ye(ze,ht+1)){ze.ch=ht;continue}var wt=ze.text.lastIndexOf("/",ht),Ot=wt>-1&&!/\S/.test(ze.text.slice(wt+1,ht));return ze.ch=ht+1,Ot?"selfClose":"regular"}}function Ne(ze,ht){for(var wt=[];;){var Ot=St(ze),dt,qe=ze.line,at=ze.ch-(Ot?Ot[0].length:0);if(!Ot||!(dt=Qe(ze)))return;if(dt!="selfClose")if(Ot[1]){for(var We=wt.length-1;We>=0;--We)if(wt[We]==Ot[2]){wt.length=We;break}if(We<0&&(!ht||ht==Ot[2]))return{tag:Ot[2],from:it(qe,at),to:it(ze.line,ze.ch)}}else wt.push(Ot[2])}}function Ve(ze,ht){for(var wt=[];;){var Ot=Ue(ze);if(!Ot)return;if(Ot=="selfClose"){Ie(ze);continue}var dt=ze.line,qe=ze.ch,at=Ie(ze);if(!at)return;if(at[1])wt.push(at[2]);else{for(var We=wt.length-1;We>=0;--We)if(wt[We]==at[2]){wt.length=We;break}if(We<0&&(!ht||ht==at[2]))return{tag:at[2],from:it(ze.line,ze.ch),to:it(dt,qe)}}}}z.registerHelper("fold","xml",function(ze,ht){for(var wt=new Be(ze,ht.line,0);;){var Ot=St(wt);if(!Ot||wt.line!=ht.line)return;var dt=Qe(wt);if(!dt)return;if(!Ot[1]&&dt!="selfClose"){var qe=it(wt.line,wt.ch),at=Ne(wt,Ot[2]);return at&&ve(at.from,qe)>0?{from:qe,to:at.from}:null}}}),z.findMatchingTag=function(ze,ht,wt){var Ot=new Be(ze,ht.line,ht.ch,wt);if(!(Ot.text.indexOf(">")==-1&&Ot.text.indexOf("<")==-1)){var dt=Qe(Ot),qe=dt&&it(Ot.line,Ot.ch),at=dt&&Ie(Ot);if(!(!dt||!at||ve(Ot,ht)>0)){var We={from:it(Ot.line,Ot.ch),to:qe,tag:at[2]};return dt=="selfClose"?{open:We,close:null,at:"open"}:at[1]?{open:Ve(Ot,at[2]),close:We,at:"close"}:(Ot=new Be(ze,qe.line,qe.ch,wt),{open:We,close:Ne(Ot,at[2]),at:"open"})}}},z.findEnclosingTag=function(ze,ht,wt,Ot){for(var dt=new Be(ze,ht.line,ht.ch,wt);;){var qe=Ve(dt,Ot);if(!qe)break;var at=new Be(ze,ht.line,ht.ch,wt),We=Ne(at,qe.tag);if(We)return{open:qe,close:We}}},z.scanForClosingTag=function(ze,ht,wt,Ot){var dt=new Be(ze,ht.line,ht.ch,Ot?{from:0,to:Ot}:null);return Ne(dt,wt)}})},89780:function(ln){(function(Zt,ie){ln.exports=ie()})(this,function(){"use strict";var Zt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Zt),it=/MSIE \d/.test(Zt),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),Je=/Edge\/(\d+)/.exec(Zt),Ce=it||ve||Je,Ee=Ce&&(it?document.documentMode||6:+(Je||ve)[1]),Be=!Je&&/WebKit\//.test(Zt),Ye=Be&&/Qt\/\d+\.\d+/.test(Zt),we=!Je&&/Chrome\//.test(Zt),he=/Opera\//.test(Zt),Qe=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zt),St=/PhantomJS/.test(Zt),Ue=!Je&&/AppleWebKit/.test(Zt)&&/Mobile\/\w+/.test(Zt),Ne=/Android/.test(Zt),Ve=Ue||Ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zt),ze=Ue||/Mac/.test(ie),ht=/\bCrOS\b/.test(Zt),wt=/win/i.test(ie),Ot=he&&Zt.match(/Version\/(\d*\.\d*)/);Ot&&(Ot=Number(Ot[1])),Ot&&Ot>=15&&(he=!1,Be=!0);var dt=ze&&(Ye||he&&(Ot==null||Ot<12.11)),qe=z||Ce&&Ee>=9;function at(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var We=function(a,y){var x=a.className,b=at(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 Pt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function nt(a,y){return Pt(a).appendChild(y)}function tt(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 pt(a,y,x,b){var E=tt(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 Ke(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 je(){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;at(y).test(x)||(a.className+=(x?" ":"")+y)}function ut(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!at(x[b]).test(y)&&(y+=" "+x[b]);return y}var Oe=function(a){a.select()};Ue?Oe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ce&&(Oe=function(a){try{a.select()}catch(y){}});function Xe(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Dt(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 xe(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=Xe(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 ft(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Gt=50,Ct={toString:function(){return"CodeMirror.Pass"}},me={scroll:!1},Le={origin:"*mouse"},Ze={origin:"+move"};function Nt(a,y,x){for(var b=0,E=0;;){var re=a.indexOf(" ",b);re==-1&&(re=a.length);var le=re-b;if(re==a.length||E+le>=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var bt=[""];function zt(a){for(;bt.length<=a;)bt.push(Ae(bt)+" ");return bt[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&&Dt(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 be(a){return a.charCodeAt(0)>=768&&pe.test(a)}function st(a,y,x){for(;(x<0?y>0:y<a.length)&&be(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 _e(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 ot=null;function yt(a,y,x){var b;ot=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:ot=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:ot=E)}return b!=null?b:ot}var vt=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,$e,rt){this.level=ge,this.from=$e,this.to=rt}return function(ge,$e){var rt=$e=="ltr"?"L":"R";if(ge.length==0||$e=="ltr"&&!b.test(ge))return!1;for(var Ft=ge.length,At=[],cn=0;cn<Ft;++cn)At.push(x(ge.charCodeAt(cn)));for(var Pn=0,Ln=rt;Pn<Ft;++Pn){var Hn=At[Pn];Hn=="m"?At[Pn]=Ln:Ln=Hn}for(var Vn=0,$n=rt;Vn<Ft;++Vn){var Kn=At[Vn];Kn=="1"&&$n=="r"?At[Vn]="n":re.test(Kn)&&($n=Kn,Kn=="r"&&(At[Vn]="R"))}for(var sr=1,nr=At[0];sr<Ft-1;++sr){var wr=At[sr];wr=="+"&&nr=="1"&&At[sr+1]=="1"?At[sr]="1":wr==","&&nr==At[sr+1]&&(nr=="1"||nr=="n")&&(At[sr]=nr),nr=wr}for(var _r=0;_r<Ft;++_r){var li=At[_r];if(li==",")At[_r]="N";else if(li=="%"){var Ur=void 0;for(Ur=_r+1;Ur<Ft&&At[Ur]=="%";++Ur);for(var Bi=_r&&At[_r-1]=="!"||Ur<Ft&&At[Ur]=="1"?"1":"N",Ei=_r;Ei<Ur;++Ei)At[Ei]=Bi;_r=Ur-1}}for(var qr=0,Ii=rt;qr<Ft;++qr){var di=At[qr];Ii=="L"&&di=="1"?At[qr]="L":re.test(di)&&(Ii=di)}for(var ii=0;ii<Ft;++ii)if(E.test(At[ii])){var ei=void 0;for(ei=ii+1;ei<Ft&&E.test(At[ei]);++ei);for(var Kr=(ii?At[ii-1]:rt)=="L",ki=(ei<Ft?At[ei]:rt)=="L",Vo=Kr==ki?Kr?"L":"R":rt,bo=ii;bo<ei;++bo)At[bo]=Vo;ii=ei-1}for(var pi=[],eo,si=0;si<Ft;)if(le.test(At[si])){var bl=si;for(++si;si<Ft&&le.test(At[si]);++si);pi.push(new de(0,bl,si))}else{var oo=si,Mo=pi.length,Oo=$e=="rtl"?1:0;for(++si;si<Ft&&At[si]!="L";++si);for(var bi=oo;bi<si;)if(ce.test(At[bi])){oo<bi&&(pi.splice(Mo,0,new de(1,oo,bi)),Mo+=Oo);var Go=bi;for(++bi;bi<si&&ce.test(At[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 $e=="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)))),$e=="rtl"?pi.reverse():pi}}();function Kt(a,y){var x=a.order;return x==null&&(x=a.order=vt(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=ft(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 xt(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)ft(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 et(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Bt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Rt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function ke(a){et(a),Bt(a)}function He(a){return a.target||a.srcElement}function lt(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(Ce&&Ee<9)return!1;var a=tt("div");return"draggable"in a||"dragDrop"in a}(),Vt;function an(a){if(Vt==null){var y=tt("span","\u200B");nt(a,tt("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Vt=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ce&&Ee<8))}var x=Vt?tt("span","\u200B"):tt("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=nt(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return Pt(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=tt("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=nt(a,tt("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return _t=Math.abs(x.left-b.left)>1}var Tt={},mt={};function en(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Tt[a]=y}function Yt(a,y){mt[a]=y}function Jt(a){if(typeof a=="string"&&mt.hasOwnProperty(a))a=mt[a];else if(a&&typeof a.name=="string"&&mt.hasOwnProperty(a.name)){var y=mt[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=Tt[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]={};Dt(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=xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},An.prototype.indentation=function(){return xe(this.string,null,this.tabSize)-(this.lineStart?xe(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 It(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 Te(a){if(a.parent==null)return null;for(var y=a.parent,x=ft(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 Ge(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 ye(a,y){return y>=a.first&&y<a.first+a.size}function Re(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Se(a,y,x){if(x===void 0&&(x=null),!(this instanceof Se))return new Se(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 gt(a,y){return a.sticky==y.sticky&&Fe(a,y)==0}function on(a){return Se(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 Lt(a,y){if(y.line<a.first)return Se(a.first,0);var x=a.first+a.size-1;return y.line>x?Se(x,It(a,x).text.length):kt(y,It(a,y.line).text.length)}function kt(a,y){var x=a.ch;return x==null||x>y?Se(a.line,y):x<0?Se(a.line,0):a}function fn(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Lt(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,$e){return E.push(ge,$e)},re,b);for(var le=x.state,ce=function(ge){x.baseTokens=E;var $e=a.state.overlays[ge],rt=1,Ft=0;x.state=!0,qn(a,y.text,$e.mode,x,function(At,cn){for(var Pn=rt;Ft<At;){var Ln=E[rt];Ln>At&&E.splice(rt,1,At,E[rt+1],Ln),rt+=2,Ft=Math.min(At,Ln)}if(cn)if($e.opaque)E.splice(Pn,rt-Pn,At,"overlay "+cn),rt=Pn+2;else for(;Pn<rt;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,Te(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&&It(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=Lt(E,y);var ce=It(E,y.line),de=Qn(a,y.line,x),ge=new An(ce.text,a.options.tabSize,de),$e;for(b&&($e=[]);(b||ge.pos<y.ch)&&!ge.eol();)ge.start=ge.pos,le=Fn(re,ge,de.state),b&&$e.push(new Wn(ge,le,On(E.mode,de.state)));return b?$e: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,$e=new An(y,a.options.tabSize,b),rt,Ft=a.options.addModeClass&&[null];for(y==""&&ur(Zn(x,b.state),re);!$e.eol();){if($e.pos>a.options.maxHighlightLength?(ce=!1,le&&Jn(a,y,b,$e.pos),$e.pos=y.length,rt=null):rt=ur(Fn(x,$e,b.state,Ft),re),Ft){var At=Ft[0].name;At&&(rt="m-"+(rt?At+" "+rt:At))}if(!ce||ge!=rt){for(;de<$e.start;)de=Math.min($e.start,de+5e3),E(de,ge);ge=rt}$e.start=$e.pos}for(;de<$e.pos;){var cn=Math.min($e.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=It(re,ce-1),ge=de.stateAfter;if(ge&&(!x||ce+(ge instanceof Bn?ge.lookAhead:0)<=re.modeFrontier))return ce;var $e=xe(de.text,null,a.options.tabSize);(E==null||b>$e)&&(E=ce-1,b=$e)}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=It(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=ye(a,y.from.line)&&It(a,y.from.line).markedSpans,b=ye(a,y.to.line)&&It(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,$e=Ae(y.text).length+(ge?E:0);if(ce)for(var rt=0;rt<ce.length;++rt){var Ft=ce[rt];if(Ft.to==null){var At=gr(de,Ft.marker);At?ge&&(Ft.to=At.to==null?null:At.to+$e):Ft.to=E}}if(de)for(var cn=0;cn<de.length;++cn){var Pn=de[cn];if(Pn.to!=null&&(Pn.to+=$e),Pn.from==null){var Ln=gr(ce,Pn.marker);Ln||(Pn.from=$e,ge&&(ce||(ce=[])).push(Pn))}else Pn.from+=$e,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(At){if(At.markedSpans)for(var cn=0;cn<At.markedSpans.length;++cn){var Pn=At.markedSpans[cn].marker;Pn.readOnly&&(!b||ft(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 $e=[de,1],rt=Fe(ge.from,ce.from),Ft=Fe(ge.to,ce.to);(rt<0||!le.inclusiveLeft&&!rt)&&$e.push({from:ge.from,to:ce.from}),(Ft>0||!le.inclusiveRight&&!Ft)&&$e.push({from:ce.to,to:ge.to}),E.splice.apply(E,$e),de+=$e.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=It(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),$e=Fe(ge.from,x)||Ir(de.marker)-Ir(E),rt=Fe(ge.to,b)||Dr(de.marker)-Dr(E);if(!($e>=0&&rt<=0||$e<=0&&rt>=0)&&($e<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Fe(ge.to,x)>=0:Fe(ge.to,x)>0)||$e>=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=It(a,y),b=sn(x);return x==b?y:Te(b)}function yn(a,y){if(y>a.lastLine())return y;var x=It(a,y),b;if(!Nn(a,x))return y;for(;b=pn(x);)x=b.find(1,!0).line;return Te(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=It(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 Te(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=pt("span",null,null,Be?"padding-right: .1px":null),b={pre:pt("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&&Te(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(Be){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=tt("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,$e;if(!de.test(y))a.col+=y.length,$e=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,$e),Ce&&Ee<9&&(ge=!0),a.pos+=y.length;else{$e=document.createDocumentFragment();for(var rt=0;;){de.lastIndex=rt;var Ft=de.exec(y),At=Ft?Ft.index-rt:y.length-rt;if(At){var cn=document.createTextNode(ce.slice(rt,rt+At));Ce&&Ee<9?$e.appendChild(tt("span",[cn])):$e.appendChild(cn),a.map.push(a.pos,a.pos+At,cn),a.col+=At,a.pos+=At}if(!Ft)break;rt+=At+1;var Pn=void 0;if(Ft[0]==" "){var Ln=a.cm.options.tabSize,Hn=Ln-a.col%Ln;Pn=$e.appendChild(tt("span",zt(Hn),"cm-tab")),Pn.setAttribute("role","presentation"),Pn.setAttribute("cm-text"," "),a.col+=Hn}else Ft[0]=="\r"||Ft[0]==`
|
|
|
`?(Pn=$e.appendChild(tt("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]),Ce&&Ee<9?$e.appendChild(tt("span",[Pn])):$e.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=tt("span",[$e],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($e)}}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,$e=ge+b.length;;){for(var rt=void 0,Ft=0;Ft<y.length&&(rt=y[Ft],!(rt.to>ge&&rt.from<=ge));Ft++);if(rt.to>=$e)return a(x,b,E,re,le,ce,de);a(x,b.slice(0,rt.to-ge),E,re,null,ce,de),re=null,b=b.slice(rt.to-ge),ge=rt.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,$e="",rt,Ft,At=0,cn,Pn,Ln,Hn,Vn;;){if(At==de){cn=Pn=Ln=Ft="",Vn=null,Hn=null,At=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&&At>nr.to&&(At=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==At&&(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&&At>nr.from&&(At=nr.from)}if(Kn)for(var li=0;li<Kn.length;li+=2)Kn[li+1]==At&&(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,At);;){if($e){var Ei=de+$e.length;if(!Hn){var qr=Ei>Bi?$e.slice(0,Bi-de):$e;y.addToken(y,qr,rt?rt+cn:cn,Ln,de+qr.length==At?Pn:"",Ft,Vn)}if(Ei>=Bi){$e=$e.slice(Bi-de),de=Bi;break}de=Ei,Ln=""}$e=E.slice(re,re=x[ge++]),rt=Zr(x[ge++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=_n(y),this.size=this.rest?Te(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,It(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=tt("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ce&&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(tt("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=tt("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=tt("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(tt("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,$e=re.hasOwnProperty(ge)&&re[ge];$e&&ce.appendChild(tt("div",[$e],"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=at("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=tt("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(!Ke(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;"),nt(y.display.measure,tt("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=He(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=nt(a.measure,tt("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 Gt-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(Te(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=Te(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,nt(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=Te(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 $e=0;$e<4;$e++){for(;le&&be(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce<E.coverEnd&&be(y.line.text.charAt(E.coverStart+ce));)++ce;if(Ce&&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"}Ce&&Ee<11&&(ge=Ga(a.display.measure,ge))}else{le>0&&(de=b="right");var rt;a.options.lineWrapping&&(rt=re.getClientRects()).length>1?ge=rt[b=="right"?rt.length-1:0]:ge=re.getBoundingClientRect()}if(Ce&&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 At=ge.top-y.rect.top,cn=ge.bottom-y.rect.top,Pn=(At+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=At,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,Pt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Uo(a.display.view[y])}function Co(a){Ko(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return we&&Ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return we&&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=It(a.doc,y.line)),To(a,b,ya(a,b,y.ch,E),x)}function Ci(a,y,x,b,E,re){b=b||It(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 $e(cn,Pn,Ln){var Hn=ce[Pn],Vn=Hn.level==1;return le(Ln?cn-1:cn,Vn!=Ln)}var rt=yt(ce,de,ge),Ft=ot,At=$e(de,rt,ge=="before");return Ft!=null&&(At.other=$e(de,Ft,ge!="before")),At}function Mr(a,y){var x=0;y=Lt(a.doc,y),a.options.lineWrapping||(x=Gi(a.display)*y.ch);var b=It(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=Se(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=Ge(b,x),re=b.first+b.size-1;if(E>re)return xr(b.first+b.size-1,It(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=It(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=It(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,$e=Kt(y,a.doc.direction);if($e){var rt=(a.options.lineWrapping?ro:Wi)(a,y,x,re,$e,b,E);ge=rt.level!=1,ce=ge?rt.from:rt.to-1,de=ge?rt.to:rt.from-1}var Ft=null,At=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,At=nr),!0):!1},ce,de),Pn,Ln,Hn=!1;if(At){var Vn=b-At.left<At.right-b,$n=Vn==ge;cn=Ft+($n?0:1),Ln=$n?"after":"before",Pn=Vn?At.left:At.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,Se(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(rt){var Ft=E[rt],At=Ft.level!=1;return ri(Ci(a,Se(x,At?Ft.to:Ft.from,At?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ce];if(ce>0){var ge=de.level!=1,$e=Ci(a,Se(x,ge?de.from:de.to,ge?"after":"before"),"line",y,b);ri($e,re,le,!0)&&$e.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 $e=null,rt=null,Ft=0;Ft<E.length;Ft++){var At=E[Ft];if(!(At.from>=ge||At.to<=de)){var cn=At.level!=1,Pn=$i(a,b,cn?Math.min(ge,At.to)-1:Math.max(de,At.from)).right,Ln=Pn<re?re-Pn+1e9:Pn-re;(!$e||rt>Ln)&&($e=At,rt=Ln)}}return $e||($e=E[E.length-1]),$e.from<de&&($e={from:de,to:$e.to,level:$e.level}),$e.to>ge&&($e={from:$e.from,to:ge,level:$e.level}),$e}var Oi;function Di(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Oi==null){Oi=tt("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Oi.appendChild(document.createTextNode("x")),Oi.appendChild(tt("br"));Oi.appendChild(document.createTextNode("x"))}nt(a.measure,Oi);var x=Oi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Pt(a.measure),x||1}function Gi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=tt("span","xxxxxxxxxx"),x=tt("pre",[y],"CodeMirror-line-like");nt(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&&He(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(rt){return null}var de=ci(a,re,le),ge;if(b&&de.xRel>0&&(ge=It(a.doc,de.line).text).length==de.ch){var $e=xe(ge,ge.length,a.options.tabSize)-ge.length;de=Se(de.line,Math.max(0,Math.round((re-Qi(a.display).left)/Gi(a.display))-$e))}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=[]);ft(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(tt("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(tt("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 $e($n,Kn,sr,nr){Kn<0&&(Kn=0),Kn=Math.round(Kn),nr=Math.round(nr),re.appendChild(tt("div",null,"CodeMirror-selected","position: absolute; left: "+$n+`px;
|
|
|
top: `+Kn+"px; width: "+(sr==null?de-$n:sr)+`px;
|
|
|
height: `+(nr-Kn)+"px"))}function rt($n,Kn,sr){var nr=It(E,$n),wr=nr.text.length,_r,li;function Ur(qr,Ii){return Bo(a,Se($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 _e(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;$e(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),$e(Oo,Kr.top,bi-Oo,Kr.bottom),Kr.bottom<ki.top&&$e(ce,Kr.bottom,null,ki.top),$e(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(),At=y.to();if(Ft.line==At.line)rt(Ft.line,Ft.ch,At.ch);else{var cn=It(E,Ft.line),Pn=It(E,At.line),Ln=sn(cn)==sn(Pn),Hn=rt(Ft.line,Ft.ch,Ln?cn.text.length+1:null).end,Vn=rt(At.line,Ln?0:null,At.ch).start;Ln&&(Hn.top<Vn.top-2?($e(Hn.right,Hn.top,null,Hn.bottom),$e(ce,Vn.top,Vn.left,Vn.bottom)):$e(Hn.right,Hn.top,Vn.left-Hn.right,Hn.bottom)),Hn.bottom<Vn.top&&$e(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(),Be&&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,We(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(Ce&&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 $e=E.line.height-le;if(($e>.005||$e<-.005)&&(hn(E.line,le),Pl(E.line),E.rest))for(var rt=0;rt<E.rest.length;rt++)Pl(E.rest[rt]);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=Ge(y,b),le=Ge(y,E);if(x&&x.ensure){var ce=x.ensure.from.line,de=x.ensure.to.line;ce<re?(re=ce,le=Ge(y,rr(It(y,ce))+a.wrapper.clientHeight)):Math.min(de,y.lastLine())>=le&&(re=Ge(y,rr(It(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function Ws(a,y){if(!xt(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=tt("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?Se(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Se(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),$e=a.doc.scrollTop,rt=a.doc.scrollLeft;if(ge.scrollTop!=null&&(qo(a,ge.scrollTop),Math.abs(a.doc.scrollTop-$e)>1&&(le=!0)),ge.scrollLeft!=null&&(Eo(a,ge.scrollLeft),Math.abs(a.doc.scrollLeft-rt)>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 $e=Math.min(y.top,(ge?ce:y.bottom)-re);$e!=E&&(le.scrollTop=$e)}var rt=a.options.fixedGutter?0:x.gutters.offsetWidth,Ft=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-rt,At=Ji(a)-x.gutters.offsetWidth,cn=y.right-y.left>At;return cn&&(y.right=y.left+At),y.left<10?le.scrollLeft=0:y.left<Ft?le.scrollLeft=Math.max(0,y.left+rt-(cn?0:10)):y.right>At+Ft-3&&(le.scrollLeft=y.right+(cn?0:10)-At),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=tt("div",[tt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=tt("div",[tt("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,Ce&&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&&!Ie?"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&&We(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==je();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,Lt(b,a.scrollToPos.from),Lt(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,Xe(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,$e=de.classes;$e?re.styleClasses=$e:ge&&(re.styleClasses=null);for(var rt=!le||le.length!=re.styles.length||ge!=$e&&(!ge||!$e||ge.bgClass!=$e.bgClass||ge.textClass!=$e.textClass),Ft=0;!rt&&Ft<le.length;++Ft)rt=le[Ft]!=re.styles[Ft];rt&&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=je();if(!y||!Ke(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Ke(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==je())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ke(document.body,a.anchorNode)&&Ke(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(It(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),Pt(x.cursorDiv),Pt(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 Be&&ze&&a.display.currentWheelTarget==cn?cn.style.display="none":cn.parentNode.removeChild(cn),Pn}for(var de=b.view,ge=b.viewFrom,$e=0;$e<de.length;$e++){var rt=de[$e];if(!rt.hidden)if(!rt.node||rt.node.parentNode!=re){var Ft=pr(a,rt,ge,x);re.insertBefore(Ft,le)}else{for(;le!=rt.node;)le=ce(le);var At=E&&y!=null&&y<=ge&&rt.lineNumber;rt.changes&&(ft(rt.changes,"gutter")>-1&&(At=!1),lo(a,rt,ge,x)),At&&(Pt(rt.lineNumber),rt.lineNumber.appendChild(document.createTextNode(Re(a.options,ge)))),le=rt.node.nextSibling}ge+=rt.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(tt("div",[tt("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;Pt(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(tt("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=tt("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=tt("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=pt("div",null,"CodeMirror-code"),E.selectionDiv=tt("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=tt("div",null,"CodeMirror-cursors"),E.measure=tt("div",null,"CodeMirror-measure"),E.lineMeasure=tt("div",null,"CodeMirror-measure"),E.lineSpace=pt("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var re=pt("div",[E.lineSpace],"CodeMirror-lines");E.mover=tt("div",[re],null,"position: relative"),E.sizer=tt("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=tt("div",null,null,"position: absolute; height: "+Gt+"px; width: 1px;"),E.gutters=tt("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=tt("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=tt("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),Ce&&Ee<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Be&&!(z&&Ve)&&(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;Ce?Ni=-.53:z?Ni=15:we?Ni=-.7:Qe&&(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&&Be){e:for(var ge=y.target,$e=re.view;ge!=le;ge=ge.parentNode)for(var rt=0;rt<$e.length;rt++)if($e[rt].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)&&et(y),re.wheelStartX=null;return}if(E&&Ni!=null){var Ft=E*Ni,At=a.doc.scrollTop,cn=At+re.wrapper.clientHeight;Ft<0?At=Math.max(0,At+Ft-50):cn=Math.min(a.doc.height,cn+Ft+50),el(a,{top:At,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(!gt(x.anchor,b.anchor)||!gt(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,At){return Fe(Ft.from(),At.from())}),x=ft(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()),$e=un(ce.to(),le.to()),rt=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Fr(rt?$e:ge,rt?ge:$e))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?Se(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),Se(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?Se(x.line,a.ch-y.ch+x.ch):Se(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=Se(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 $e=a.sel.ranges[le],rt=Fe($e.head,$e.anchor)<0;b[le]=new Fr(rt?ge:de,rt?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,$e=It(a,ce.line),rt=It(a,de.line),Ft=Ae(ge),At=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(rt,rt.text,At),cn&&a.remove(ce.line,cn),Pn.length&&a.insert(ce.line,Pn)}else if($e==rt)if(ge.length==1)re($e,$e.text.slice(0,ce.ch)+Ft+$e.text.slice(de.ch),At);else{var Ln=le(1,ge.length-1);Ln.push(new Or(Ft+$e.text.slice(de.ch),At,b)),re($e,$e.text.slice(0,ce.ch)+ge[0],E(0)),a.insert(ce.line+1,Ln)}else if(ge.length==1)re($e,$e.text.slice(0,ce.ch)+ge[0]+rt.text.slice(de.ch),E(0)),a.remove(ce.line+1,cn);else{re($e,$e.text.slice(0,ce.ch)+ge[0],E(0)),re(rt,Ft+rt.text.slice(de.ch),At);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:We)(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],$e=void 0;if(ce.push({from:ge.from,to:ge.to,text:ge.text}),y)for(var rt in ge)($e=rt.match(/^spans_(\d+)$/))&&ft(y,Number($e[1]))>-1&&(Ae(ce)[rt]=ge[rt],delete ge[rt])}}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(Lt(a,E[re].anchor),Lt(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=It(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,$e="selectRight"in de?!de.selectRight:de.inclusiveRight;if((ce.from==null||(ge?ce.from<=y.ch:ce.from<y.ch))&&(ce.to==null||($e?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 rt=de.find(b<0?1:-1),Ft=void 0;if((b<0?$e:ge)&&(rt=es(a,rt,-b,rt&&rt.line==y.line?re:null)),rt&&rt.line==y.line&&(Ft=Fe(rt,x))&&(b<0?Ft<0:Ft>0))return Fo(a,rt,y,b,E)}var At=de.find(b<0?-1:1);return(b<0?ge:$e)&&(At=es(a,At,b,At.line==y.line?re:null)),At?Fo(a,At,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,Se(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Lt(a,Se(y.line-1)):null:x>0&&y.ch==(b||It(a,y.line)).text.length?y.line<a.first+a.size-1?Se(y.line+1,0):null:new Se(y.line,y.ch+x)}function ts(a){a.setSelection(Se(a.firstLine(),0),Se(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=Lt(a,E)),re&&(b.to=Lt(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&&ft(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 $e=[];Ba(le,de),de.push({changes:$e,generation:E.generation}),E.generation=re.generation||++E.maxGeneration;for(var rt=Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"),Ft=function(Pn){var Ln=re.changes[Pn];if(Ln.origin=y,rt&&!ns(a,Ln,!1))return ce.length=0,{};$e.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&&ft(Vn,$n.history)==-1&&(ls($n.history,Ln),Vn.push($n.history)),oa($n,Ln,null,Ul($n,Ln))})},At=re.changes.length-1;At>=0;--At){var cn=Ft(At);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(Se(E.anchor.line+y,E.anchor.ch),Se(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:Se(a.first,0),to:Se(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:Se(re,It(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,Se(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=Te(sn(It(b,re.line))),b.iter(de,le.line+1,function(At){if(At==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(At){var cn=kr(At);cn>E.maxLineLength&&(E.maxLine=At,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 $e=Wt(a,"changes"),rt=Wt(a,"change");if(rt||$e){var Ft={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};rt&&Vr(a,"change",a,Ft),$e&&(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=Se(ge.from.line+b,ge.from.ch),ge.to=Se(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=It(a,Xt(a,y)):E=Te(y),E==null?null:(b(re,E)&&a.cm&&fo(a.cm,E,x),re)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,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=ft(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],re=E.chunkSize();if(a<re){var le=Math.min(y,re-a);if(E.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=re}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=Te(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var re=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,Te(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:Te(y)),E}var us=0,vo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};vo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&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,Te(le),"text"):a&&(ce.to!=null&&(E=Te(le)),ce.from!=null&&(b=Te(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]),$e=kr(ge);$e>a.display.maxLineLength&&(a.display.maxLine=ge,a.display.maxLineLength=$e,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=Se(y?re:Te(re),le.from),a==-1))return x;if(le.to!=null&&(b=Se(y?re:Te(re),le.to),a==1))return b}return x&&{from:x,to:b}},vo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Ti(b,function(){var E=y.line,re=Te(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||ft(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},vo.prototype.detachLine=function(a){if(this.lines.splice(ft(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&&Dt(b,re,!1),le>0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=pt("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(rt){de&&re.collapsed&&!de.options.lineWrapping&&sn(rt)==de.display.maxLine&&(ge=!0),re.collapsed&&ce!=y.line&&hn(rt,0),or(rt,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(rt){Nn(a,rt)&&hn(rt,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 $e=y.line;$e<=x.line;$e++)fo(de,$e,"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=Dt(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,Lt(de,y),Lt(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(Se(a.first,0),a.clipPos(Se(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];ft(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=Se(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=Se(this.first,0),x=this.first+this.size-1;zo(this,{from:y,to:Se(x,It(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=Lt(this,y),x=x?Lt(this,x):y,Ho(this,a,y,x,b)},getRange:function(a,y,x){var b=Ut(this,Lt(this,a),Lt(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(ye(this,a))return It(this,a)},getLineNumber:function(a){return Te(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=It(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 Lt(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,Lt(this,typeof a=="number"?Se(a,y||0):a),null,x)}),setSelection:ai(function(a,y,x){Xl(this,Lt(this,a),Lt(this,y||a),x)}),extendSelection:ai(function(a,y,x){La(this,Lt(this,a),y&&Lt(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(Lt(this,a[E].anchor),Lt(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(Lt(this,a),Lt(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(!ye(this,a)||(y=a,a=It(this,a),!a))return null}else if(y=Te(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass: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(at(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(at(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,Lt(this,a),Lt(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=Lt(this,a),$o(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Lt(this,a);var y=[],x=It(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=Lt(this,a),y=Lt(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}),Lt(this,Se(x,y))},indexFromPos:function(a){a=Lt(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),!(xt(y,a)||ui(y.display,a))){et(a),Ce&&(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=Lt(y.doc,x);var At={from:x,to:x,text:y.doc.splitLines(re.filter(function(cn){return cn!=null}).join(y.doc.lineSeparator())),origin:"paste"};zo(y.doc,At),Yl(y.doc,po(Lt(y.doc,x),Lt(y.doc,mo(At))))})()},de=function(At,cn){if(y.options.allowDropFileTypes&&ft(y.options.allowDropFileTypes,At.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(At)},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 $e=a.dataTransfer.getData("Text");if($e){var rt;if(y.state.draggingText&&!y.state.draggingText.copy&&(rt=y.listSelections()),Aa(y.doc,po(x,x)),rt)for(var Ft=0;Ft<rt.length;++Ft)Ho(y.doc,"",rt[Ft].anchor,rt[Ft].head,"drag");y.replaceSelection($e,"around","paste"),y.display.input.focus()}}catch(At){}}}}function xu(a,y){if(Ce&&(!a.state.draggingText||+new Date-ds<100)){ke(y);return}if(!(xt(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Qe)){var x=tt("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=tt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),nt(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),(dt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(dt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vs(a,y){if(he&&a.keyCode==34&&a.char)return!1;var x=yo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),gs(x,a,y))}function za(a){return typeof a=="string"?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 Se(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 $e=uo(y,x);ge=E<0?x.text.length-1:0;var rt=$i(y,$e,ge).top;ge=Pe(function(Ft){return $i(y,$e,Ft).top==rt},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 Se(b,ge,de)}}return new Se(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 Se?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}},$e=ge(x.sticky=="before"?ce(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var rt=le.level==1==b<0,Ft=ce(x,rt?1:-1);if(Ft!=null&&(rt?Ft<=le.to&&Ft<=$e.end:Ft>=le.from&&Ft>=$e.begin)){var At=rt?"before":"after";return new Se(x.line,Ft,At)}}var cn=function(Hn,Vn,$n){for(var Kn=function(_r,li){return li?new Se(x.line,ce(_r,1),"before"):new Se(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,$e);if(Pn)return Pn;var Ln=b>0?$e.end:ce($e.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=It(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Se(y.head.line+1,0)}:{from:y.head,to:Se(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return jo(a,function(y){return{from:Se(y.from().line,0),to:Lt(a.doc,Se(y.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(y){return{from:Se(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(Se(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Se(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")},Ze)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},Ze)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bs(a,y.head):b},Ze)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var re=x[E].from(),le=xe(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=It(a.doc,E.line).text;if(re){if(E.ch==re.length&&(E=new Se(E.line,E.ch-1)),E.ch>0)E=new Se(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Se(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=It(a.doc,E.line-1).text;le&&(E=new Se(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Se(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=It(a.doc,y),b=sn(x);return b!=x&&(y=Te(b)),fl(!0,a,b,y,1)}function Mu(a,y){var x=It(a.doc,y),b=zn(x);return b!=x&&(y=Te(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=It(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 Se(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)!=Ct}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")&&(et(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=je(),!xt(y,a))){Ce&&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)&&(We(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),xt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||xt(y,a)||a.ctrlKey&&!a.altKey||ze&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,et(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(!(xt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Be||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=lt(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):He(a)==x.scroller&&et(a):E==2?(b&&La(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(qe?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)!=Ct}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=ht?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){Ce?setTimeout(Xe(Il,a),0):a.curOp.focus=je();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){Be&&(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||(et(ge),b.addNew||La(a.doc,x,null,null,b.extend),Be&&!Qe||Ce&&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};Be&&(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(Se(y.line,0),Lt(a.doc,Se(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;et(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 $e=ks(a,x,b.unit);b.extend?le=sl(le,$e.anchor,$e.head,b.extend):le=$e}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,Le):(ce=0,hi(re,new Ri([le],0),Le),de=re.sel);var rt=x;function Ft($n){if(Fe(rt,$n)!=0)if(rt=$n,b.unit=="rectangle"){for(var Kn=[],sr=a.options.tabSize,nr=xe(It(re,x.line).text,x.ch,sr),wr=xe(It(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=It(re,Ur).text,qr=Nt(Ei,_r,sr);_r==li?Kn.push(new Fr(Se(Ur,qr),Se(Ur,qr))):Ei.length>qr&&Kn.push(new Fr(Se(Ur,qr),Se(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(Lt(re,ii),ei)),hi(re,Ui(a,Kr,ce),Le)}}var At=E.wrapper.getBoundingClientRect(),cn=0;function Pn($n){var Kn=++cn,sr=So(a,$n,!0,b.unit=="rectangle");if(sr)if(Fe(sr,rt)!=0){a.curOp.focus=je(),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<At.top?-20:$n.clientY>At.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&&(et($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||!lt($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=It(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 $e=yt(re,b.ch,b.sticky),rt=$e-le||(b.ch-x.ch)*(ce.level==1?-1:1);$e==de-1||$e==de?ge=rt<0:ge=rt>0}var Ft=re[de+(ge?-1:0)],At=ge==(Ft.level==1),cn=At?Ft.from:Ft.to,Pn=At?"after":"before";return x.ch==cn&&x.sticky==Pn?y:new Fr(new Se(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&&et(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 $e=Ge(a.doc,re),rt=a.display.gutterSpecs[de];return nn(a,x,a,$e,rt.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)||xt(a,y,"contextmenu")||qe||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 $e=de.text.indexOf(E,ge);if($e==-1)break;ge=$e+E.length,re.push(Se(le,$e))}le++});for(var ce=re.length-1;ce>=0;ce--)Ho(b.doc,E,re[ce],Se(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",Ve?"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):(We(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?Dt(y):{},Dt(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&&!Ve&&re.input.focus(),Ce&&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&&!Ve||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),Be&&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)),Ce&&Ee<11?Ht(y.scroller,"dblclick",oi(a,function(de){if(!xt(a,de)){var ge=So(a,de);if(!(!ge||ml(a,de)||ui(a.display,de))){et(de);var $e=a.findWordAt(ge);La(a.doc,$e.anchor,$e.head)}}})):Ht(y.scroller,"dblclick",function(de){return xt(a,de)||et(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 $e=ge.left-de.left,rt=ge.top-de.top;return $e*$e+rt*rt>20*20}Ht(y.scroller,"touchstart",function(de){if(!xt(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 $e=a.coordsChar(y.activeTouch,"page"),rt;!ge.prev||le(ge,ge.prev)?rt=new Fr($e,$e):!ge.prev.prev||le(ge,ge.prev.prev)?rt=a.findWordAt($e):rt=new Fr(Se($e.line,0),Lt(a.doc,Se($e.line+1,0))),a.setSelection(rt.anchor,rt.head),a.focus(),et(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){xt(a,de)||ke(de)},over:function(de){xt(a,de)||(Cu(a,de),ke(de))},start:function(de){return xu(a,de)},drop:oi(a,bu),leave:function(de){xt(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=It(E,y),de=xe(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ge=ce.text.match(/^\s*/)[0],$e;if(!b&&!/\S/.test(ce.text))$e=0,x="not";else if(x=="smart"&&($e=E.mode.indent(re,ce.text.slice(ge.length),ce.text),$e==Ct||$e>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?$e=xe(It(E,y-1).text,null,le):$e=0:x=="add"?$e=de+a.options.indentUnit:x=="subtract"?$e=de-a.options.indentUnit:typeof x=="number"&&($e=de+x),$e=Math.max(0,$e);var rt="",Ft=0;if(a.options.indentWithTabs)for(var At=Math.floor($e/le);At;--At)Ft+=le,rt+=" ";if(Ft<$e&&(rt+=zt($e-Ft)),rt!=ge)return Ho(E,rt,Se(y,0),Se(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=Se(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 $e=0;$e<Ki.text.length;$e++)ge.push(re.splitLines(Ki.text[$e]))}}else de.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(ge=$t(de,function(Hn){return[Hn]}));for(var rt=a.curOp.updateInput,Ft=b.ranges.length-1;Ft>=0;Ft--){var At=b.ranges[Ft],cn=At.from(),Pn=At.to();At.empty()&&(x&&x>0?cn=Se(cn.line,cn.ch-x):a.state.overwrite&&!ce?Pn=Se(Pn.line,Math.min(It(re,Pn.line).text.length,Pn.ch+Ae(de).length)):ce&&Ki&&Ki.lineWise&&Ki.text.join(`
|
|
|
`)==de.join(`
|
|
|
`)&&(cn=Pn=Se(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=rt),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(It(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:Se(E,0),head:Se(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=tt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=tt("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Be?a.style.width="1000px":a.setAttribute("wrap","off"),Ue&&(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"),ye(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(),$e=Math.max(re,de.line);re=Math.min(this.lastLine(),ge.line-(ge.ch?0:1))+1;for(var rt=$e;rt<re;++rt)va(this,rt,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,Se(b),E,!0)},getTokenTypeAt:function(b){b=Lt(this.doc,b);var E=Xn(this,It(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 $e=de?de.indexOf("overlay "):-1;return $e<0?de:$e==0?null:de.slice(0,$e-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 $e=0;$e<le._global.length;$e++){var rt=le._global[$e];rt.pred(ce,this)&&ft(re,rt.val)==-1&&re.push(rt.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=Lt(this.doc,b):re=b?le.from():le.to(),Ci(this,re,E||"page")},charCoords:function(b,E){return Bo(this,Lt(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,Ge(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=It(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,Lt(this.doc,b));var ge=b.bottom,$e=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 rt=Math.max(de.wrapper.clientHeight,this.doc.height),Ft=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>rt)&&b.top>E.offsetHeight?ge=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=rt&&(ge=b.bottom),$e+E.offsetWidth>Ft&&($e=Ft-E.offsetWidth)}E.style.top=ge+"px",E.style.left=E.style.right="",ce=="right"?($e=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?$e=0:ce=="middle"&&($e=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=$e+"px"),re&&_s(this,{left:$e,top:ge,right:$e+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=Lt(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()},Ze)}),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=Lt(this.doc,b),$e=0;$e<E;++$e){var rt=Ci(this,ge,"div");if(de==null?de=rt.left:rt.left=de,ge=Rs(this,rt,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($e){if(de)return b<0?$e.from():$e.to();var rt=Ci(re,$e.head,"div");$e.goalColumn!=null&&(rt.left=$e.goalColumn),ce.push(rt.left);var Ft=Rs(re,rt,b,E);return E=="page"&&$e==le.sel.primary()&&Ja(re,Bo(re,Ft,"div").top-rt.top),Ft},Ze),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=It(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),$e=se(ge,de)?function(rt){return se(rt,de)}:/\s/.test(ge)?function(rt){return/\s/.test(rt)}:function(rt){return!/\s/.test(rt)&&!se(rt)};le>0&&$e(re.charAt(le-1));)--le;for(;ce<re.length&&$e(re.charAt(ce));)++ce}return new Fr(Se(b.line,le),Se(b.line,ce))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):We(this.display.cursorDiv,"CodeMirror-overwrite"),nn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==je()},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:Se(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=It(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 Se(Vn,y.ch,y.sticky),ce=It(a,Vn))}function $e(Vn){var $n;if(b=="codepoint"){var Kn=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Kn)?$n=null:$n=new Se(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")$e();else if(b=="column")$e(!0);else if(b=="word"||b=="group")for(var rt=null,Ft=b=="group",At=a.cm&&a.cm.getHelper(y,"wordChars"),cn=!0;!(x<0&&!$e(!cn));cn=!1){var Pn=ce.text.charAt(y.ch)||`
|
|
|
`,Ln=se(Pn,At)?"w":Ft&&Pn==`
|
|
|
`?"n":!Ft||/\s/.test(Pn)?null:"p";if(Ft&&!cn&&!Ln&&(Ln="s"),rt&&rt!=Ln){x<0&&(x=1,$e(),y.sticky="after");break}if(Ln&&(rt=Ln),x>0&&!$e(!cn))break}var Hn=Na(a,y,re,le,!0);return gt(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)||xt(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)||xt(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 $e=Ns(),rt=$e.firstChild;b.display.lineSpace.insertBefore($e,b.display.lineSpace.firstChild),rt.value=Ki.text.join(`
|
|
|
`);var Ft=document.activeElement;Oe(rt),setTimeout(function(){b.display.lineSpace.removeChild($e),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 $e=ce[ce.length-1].measure,rt=$e.maps?$e.maps[$e.maps.length-1]:$e.map;ge={node:rt[rt.length-1],offset:rt[rt.length-2]-rt[rt.length-3]}}if(!de||!ge){a.removeAllRanges();return}var Ft=a.rangeCount&&a.getRangeAt(0),At;try{At=Me(de.node,de.offset,ge.offset,ge.node)}catch(cn){}At&&(!z&&y.state.focused?(a.collapse(de.node,de.offset),At.collapsed||(a.removeAllRanges(),a.addRange(At))):(a.removeAllRanges(),a.addRange(At)),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){nt(this.cm.display.cursorDiv,a.cursors),nt(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 Ke(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&&we&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=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=Se(b.line-1,It(a.doc,b.line-1).length)),E.ch==It(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=Se(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=Te(y.view[0].line),ce=y.view[0].node):(le=Te(y.view[re].line),ce=y.view[re-1].node.nextSibling);var de=wo(a,E.line),ge,$e;if(de==y.view.length-1?(ge=y.viewTo-1,$e=y.lineDiv.lastChild):(ge=Te(y.view[de+1].line)-1,$e=y.view[de+1].node.previousSibling),!ce)return!1;for(var rt=a.doc.splitLines(Ku(a,ce,$e,le,ge)),Ft=Ut(a.doc,Se(le,0),Se(ge,It(a.doc,ge).text.length));rt.length>1&&Ft.length>1;)if(Ae(rt)==Ae(Ft))rt.pop(),Ft.pop(),ge--;else if(rt[0]==Ft[0])rt.shift(),Ft.shift(),le++;else break;for(var At=0,cn=0,Pn=rt[0],Ln=Ft[0],Hn=Math.min(Pn.length,Ln.length);At<Hn&&Pn.charCodeAt(At)==Ln.charCodeAt(At);)++At;for(var Vn=Ae(rt),$n=Ae(Ft),Kn=Math.min(Vn.length-(rt.length==1?At:0),$n.length-(Ft.length==1?At:0));cn<Kn&&Vn.charCodeAt(Vn.length-cn-1)==$n.charCodeAt($n.length-cn-1);)++cn;if(rt.length==1&&Ft.length==1&&le==b.line)for(;At&&At>b.ch&&Vn.charCodeAt(Vn.length-cn-1)==$n.charCodeAt($n.length-cn-1);)At--,cn++;rt[rt.length-1]=Vn.slice(0,Vn.length-cn).replace(/^\u200b+/,""),rt[0]=rt[0].slice(At).replace(/\u200b+$/,"");var sr=Se(le,At),nr=Se(ge,Ft.length?Ae(Ft).length-cn:0);if(rt.length>1||rt[0]||Fe(sr,nr))return Ho(a.doc,rt,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=It(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(At){return function(cn){return cn.id==At}}function $e(){le&&(re+=ce,de&&(re+=ce),le=de=!1)}function rt(At){At&&($e(),re+=At)}function Ft(At){if(At.nodeType==1){var cn=At.getAttribute("cm-text");if(cn){rt(cn);return}var Pn=At.getAttribute("cm-marker"),Ln;if(Pn){var Hn=a.findMarks(Se(b,0),Se(E+1,0),ge(+Pn));Hn.length&&(Ln=Hn[0].find(0))&&rt(Ut(a.doc,Ln.from,Ln.to).join(ce));return}if(At.getAttribute("contenteditable")=="false")return;var Vn=/^(pre|div|p|li|table|br)$/i.test(At.nodeName);if(!/^br$/i.test(At.nodeName)&&At.textContent.length==0)return;Vn&&$e();for(var $n=0;$n<At.childNodes.length;$n++)Ft(At.childNodes[$n]);/^(pre|p)$/i.test(At.nodeName)&&(de=!0),Vn&&(le=!0)}else At.nodeType==3&&rt(At.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(Se(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||!Ke(b,y))return Zo(Se(Te(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(Se(Te(re),re.text.length),E)}var le=y.nodeType==3?y:null,ce=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ce.parentNode!=b;)ce=ce.parentNode;var de=a.measure,ge=de.maps;function $e(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=Te($n<0?a.line:a.rest[$n]),_r=Kn[sr]+Vn;return(Vn<0||nr!=Ln)&&(_r=Kn[sr+(Vn?1:0)]),Se(wr,_r)}}}var rt=$e(le,ce,x);if(rt)return Zo(rt,E);for(var Ft=ce.nextSibling,At=le?le.nodeValue.length-x:0;Ft;Ft=Ft.nextSibling){if(rt=$e(Ft,Ft.firstChild,0),rt)return Zo(Se(rt.line,rt.ch-At),E);At+=Ft.textContent.length}for(var cn=ce.previousSibling,Pn=x;cn;cn=cn.previousSibling){if(rt=$e(cn,cn.firstChild,-1),rt)return Zo(Se(rt.line,rt.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),Ue&&(E.style.width="0px"),Ht(E,"input",function(){Ce&&Ee>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Ht(E,"paste",function(le){xt(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!xt(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)||xt(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)||et(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;nt(x.cursorDiv,a.cursors),nt(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),Ce&&Ee>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ce&&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"&&(!Ve||je()!=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(Ce&&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(){Ce&&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,$e=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-$e.top-5)+"px; left: "+(a.clientX-$e.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ce?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var rt;Be&&(rt=window.scrollY),b.input.focus(),Be&&window.scrollTo(null,rt),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=At,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 At(){if(y.contextMenuPending==At&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ge,E.style.cssText=de,Ce&&Ee<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!Ce||Ce&&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(Ce&&Ee>=9&&Ft(),qe){ke(a);var cn=function(){Qt(window,"mouseup",cn),setTimeout(At,20)};Ht(window,"mouseup",cn)}else setTimeout(At,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?Dt(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=je();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=xe,a.findColumn=Nt,a.isWordChar=oe,a.Pass=Ct,a.signal=nn,a.Line=Or,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=Se,a.cmpPos=Fe,a.modes=Tt,a.mimeModes=mt,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=et,a.e_stopPropagation=Bt,a.e_stop=ke,a.addClass=ue,a.contains=Ke,a.rmClass=We,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)&&ft(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,Zt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(it,ve){var Je=z.getMode(it,"text/html"),Ce=Je.name=="null";function Ee(xe){if(z.findModeByName){var fe=z.findModeByName(xe);fe&&(xe=fe.mime||fe.mimes[0])}var ft=z.getMode(it,xe);return ft.name=="null"?null:ft}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 Be={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 Ye in Be)Be.hasOwnProperty(Ye)&&ve.tokenTypeOverrides[Ye]&&(Be[Ye]=ve.tokenTypeOverrides[Ye]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Qe=/^\[(x| )\](?=\s)/i,Ie=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,St=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ue=/^[^#!\[\]*_\\<>` "'(~:]+/,Ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ve=/^\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]/,ht=" ";function wt(xe,fe,ft){return fe.f=fe.inline=ft,ft(xe,fe)}function Ot(xe,fe,ft){return fe.f=fe.block=ft,ft(xe,fe)}function dt(xe){return!xe||!/\S/.test(xe.string)}function qe(xe){if(xe.linkTitle=!1,xe.linkHref=!1,xe.linkText=!1,xe.em=!1,xe.strong=!1,xe.strikethrough=!1,xe.quote=0,xe.indentedCode=!1,xe.f==We){var fe=Ce;if(!fe){var ft=z.innerMode(Je,xe.htmlState);fe=ft.mode.name=="xml"&&ft.state.tagStart===null&&!ft.state.context&&ft.state.tokenize.isInText}fe&&(xe.f=pt,xe.block=at,xe.htmlState=null)}return xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,xe.prevLine=xe.thisLine,xe.thisLine={stream:null},null}function at(xe,fe){var ft=xe.column()===fe.indentation,Gt=dt(fe.prevLine.stream),Ct=fe.indentedCode,me=fe.prevLine.hr,Le=fe.list!==!1,Ze=(fe.listStack[fe.listStack.length-1]||0)+3;fe.indentedCode=!1;var Nt=fe.indentation;if(fe.indentationDiff===null&&(fe.indentationDiff=fe.indentation,Le)){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 bt=!Gt&&!me&&!fe.prevLine.header&&(!Le||!Ct)&&!fe.prevLine.fencedCodeEnd,zt=(fe.list===!1||me||Gt)&&fe.indentation<=Ze&&xe.match(we),Ae=null;if(fe.indentationDiff>=4&&(Ct||fe.prevLine.fencedCodeEnd||fe.prevLine.header||Gt))return xe.skipToEnd(),fe.indentedCode=!0,Be.code;if(xe.eatSpace())return null;if(ft&&fe.indentation<=Ze&&(Ae=xe.match(Ie))&&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,nt(fe);if(fe.indentation<=Ze&&xe.eat(">"))return fe.quote=ft?1:fe.quote+1,ve.highlightFormatting&&(fe.formatting="quote"),xe.eatSpace(),nt(fe);if(!zt&&!fe.setext&&ft&&fe.indentation<=Ze&&(Ae=xe.match(he))){var $t=Ae[1]?"ol":"ul";return fe.indentation=Nt+xe.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&&xe.match(Qe,!1)&&(fe.taskList=!0),fe.f=fe.inline,ve.highlightFormatting&&(fe.formatting=["list","list-"+$t]),nt(fe)}else{if(ft&&fe.indentation<=Ze&&(Ae=xe.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=Pt,ve.highlightFormatting&&(fe.formatting="code-block"),fe.code=-1,nt(fe);if(fe.setext||(!bt||!Le)&&!fe.quote&&fe.list===!1&&!fe.code&&!zt&&!Ve.test(xe.string)&&(Ae=xe.lookAhead(1))&&(Ae=Ae.match(St)))return fe.setext?(fe.header=fe.setext,fe.setext=0,xe.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,nt(fe);if(zt)return xe.skipToEnd(),fe.hr=!0,fe.thisLine.hr=!0,Be.hr;if(xe.peek()==="[")return wt(xe,fe,ut)}return wt(xe,fe,fe.inline)}function We(xe,fe){var ft=Je.token(xe,fe.htmlState);if(!Ce){var Gt=z.innerMode(Je,fe.htmlState);(Gt.mode.name=="xml"&&Gt.state.tagStart===null&&!Gt.state.context&&Gt.state.tokenize.isInText||fe.md_inside&&xe.current().indexOf(">")>-1)&&(fe.f=pt,fe.block=at,fe.htmlState=null)}return ft}function Pt(xe,fe){var ft=fe.listStack[fe.listStack.length-1]||0,Gt=fe.indentation<ft,Ct=ft+3;if(fe.fencedEndRE&&fe.indentation<=Ct&&(Gt||xe.match(fe.fencedEndRE))){ve.highlightFormatting&&(fe.formatting="code-block");var me;return Gt||(me=nt(fe)),fe.localMode=fe.localState=null,fe.block=at,fe.f=pt,fe.fencedEndRE=null,fe.code=0,fe.thisLine.fencedCodeEnd=!0,Gt?Ot(xe,fe,fe.block):me}else return fe.localMode?fe.localMode.token(xe,fe.localState):(xe.skipToEnd(),Be.code)}function nt(xe){var fe=[];if(xe.formatting){fe.push(Be.formatting),typeof xe.formatting=="string"&&(xe.formatting=[xe.formatting]);for(var ft=0;ft<xe.formatting.length;ft++)fe.push(Be.formatting+"-"+xe.formatting[ft]),xe.formatting[ft]==="header"&&fe.push(Be.formatting+"-"+xe.formatting[ft]+"-"+xe.header),xe.formatting[ft]==="quote"&&(!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=xe.quote?fe.push(Be.formatting+"-"+xe.formatting[ft]+"-"+xe.quote):fe.push("error"))}if(xe.taskOpen)return fe.push("meta"),fe.length?fe.join(" "):null;if(xe.taskClosed)return fe.push("property"),fe.length?fe.join(" "):null;if(xe.linkHref?fe.push(Be.linkHref,"url"):(xe.strong&&fe.push(Be.strong),xe.em&&fe.push(Be.em),xe.strikethrough&&fe.push(Be.strikethrough),xe.emoji&&fe.push(Be.emoji),xe.linkText&&fe.push(Be.linkText),xe.code&&fe.push(Be.code),xe.image&&fe.push(Be.image),xe.imageAltText&&fe.push(Be.imageAltText,"link"),xe.imageMarker&&fe.push(Be.imageMarker)),xe.header&&fe.push(Be.header,Be.header+"-"+xe.header),xe.quote&&(fe.push(Be.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=xe.quote?fe.push(Be.quote+"-"+xe.quote):fe.push(Be.quote+"-"+ve.maxBlockquoteDepth)),xe.list!==!1){var Gt=(xe.listStack.length-1)%3;Gt?Gt===1?fe.push(Be.list2):fe.push(Be.list3):fe.push(Be.list1)}return xe.trailingSpaceNewLine?fe.push("trailing-space-new-line"):xe.trailingSpace&&fe.push("trailing-space-"+(xe.trailingSpace%2?"a":"b")),fe.length?fe.join(" "):null}function tt(xe,fe){if(xe.match(Ue,!0))return nt(fe)}function pt(xe,fe){var ft=fe.text(xe,fe);if(typeof ft!="undefined")return ft;if(fe.list)return fe.list=null,nt(fe);if(fe.taskList){var Gt=xe.match(Qe,!0)[1]===" ";return Gt?fe.taskOpen=!0:fe.taskClosed=!0,ve.highlightFormatting&&(fe.formatting="task"),fe.taskList=!1,nt(fe)}if(fe.taskOpen=!1,fe.taskClosed=!1,fe.header&&xe.match(/^#+$/,!0))return ve.highlightFormatting&&(fe.formatting="header"),nt(fe);var Ct=xe.next();if(fe.linkTitle){fe.linkTitle=!1;var me=Ct;Ct==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Le="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(xe.match(new RegExp(Le),!0))return Be.linkHref}if(Ct==="`"){var Ze=fe.formatting;ve.highlightFormatting&&(fe.formatting="code"),xe.eatWhile("`");var Nt=xe.current().length;if(fe.code==0&&(!fe.quote||Nt==1))return fe.code=Nt,nt(fe);if(Nt==fe.code){var bt=nt(fe);return fe.code=0,bt}else return fe.formatting=Ze,nt(fe)}else if(fe.code)return nt(fe);if(Ct==="\\"&&(xe.next(),ve.highlightFormatting)){var zt=nt(fe),Ae=Be.formatting+"-escape";return zt?zt+" "+Ae:Ae}if(Ct==="!"&&xe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return fe.imageMarker=!0,fe.image=!0,ve.highlightFormatting&&(fe.formatting="image"),nt(fe);if(Ct==="["&&fe.imageMarker&&xe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return fe.imageMarker=!1,fe.imageAltText=!0,ve.highlightFormatting&&(fe.formatting="image"),nt(fe);if(Ct==="]"&&fe.imageAltText){ve.highlightFormatting&&(fe.formatting="image");var zt=nt(fe);return fe.imageAltText=!1,fe.image=!1,fe.inline=fe.f=Ke,zt}if(Ct==="["&&!fe.image)return fe.linkText&&xe.match(/^.*?\]/)||(fe.linkText=!0,ve.highlightFormatting&&(fe.formatting="link")),nt(fe);if(Ct==="]"&&fe.linkText){ve.highlightFormatting&&(fe.formatting="link");var zt=nt(fe);return fe.linkText=!1,fe.inline=fe.f=xe.match(/\(.*?\)| ?\[.*?\]/,!1)?Ke:pt,zt}if(Ct==="<"&&xe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Me,ve.highlightFormatting&&(fe.formatting="link");var zt=nt(fe);return zt?zt+=" ":zt="",zt+Be.linkInline}if(Ct==="<"&&xe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Me,ve.highlightFormatting&&(fe.formatting="link");var zt=nt(fe);return zt?zt+=" ":zt="",zt+Be.linkEmail}if(ve.xml&&Ct==="<"&&xe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $t=xe.string.indexOf(">",xe.pos);if($t!=-1){var ct=xe.string.substring(xe.start,$t);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ct)&&(fe.md_inside=!0)}return xe.backUp(1),fe.htmlState=z.startState(Je),Ot(xe,fe,We)}if(ve.xml&&Ct==="<"&&xe.match(/^\/\w*?>/))return fe.md_inside=!1,"tag";if(Ct==="*"||Ct==="_"){for(var ae=1,te=xe.pos==1?" ":xe.string.charAt(xe.pos-2);ae<3&&xe.eat(Ct);)ae++;var ee=xe.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&&(Ct==="*"||!se||ze.test(te))?ne=!0:fe.em==Ct&&se&&(Ct==="*"||!oe||ze.test(ee))&&(ne=!1)),ae>1&&(!fe.strong&&oe&&(Ct==="*"||!se||ze.test(te))?pe=!0:fe.strong==Ct&&se&&(Ct==="*"||!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=Ct),pe===!0&&(fe.strong=Ct);var bt=nt(fe);return ne===!1&&(fe.em=!1),pe===!1&&(fe.strong=!1),bt}}else if(Ct===" "&&(xe.eat("*")||xe.eat("_"))){if(xe.peek()===" ")return nt(fe);xe.backUp(1)}if(ve.strikethrough){if(Ct==="~"&&xe.eatWhile(Ct)){if(fe.strikethrough){ve.highlightFormatting&&(fe.formatting="strikethrough");var bt=nt(fe);return fe.strikethrough=!1,bt}else if(xe.match(/^[^\s]/,!1))return fe.strikethrough=!0,ve.highlightFormatting&&(fe.formatting="strikethrough"),nt(fe)}else if(Ct===" "&&xe.match(/^~~/,!0)){if(xe.peek()===" ")return nt(fe);xe.backUp(2)}}if(ve.emoji&&Ct===":"&&xe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){fe.emoji=!0,ve.highlightFormatting&&(fe.formatting="emoji");var be=nt(fe);return fe.emoji=!1,be}return Ct===" "&&(xe.match(/^ +$/,!1)?fe.trailingSpace++:fe.trailingSpace&&(fe.trailingSpaceNewLine=!0)),nt(fe)}function Me(xe,fe){var ft=xe.next();if(ft===">"){fe.f=fe.inline=pt,ve.highlightFormatting&&(fe.formatting="link");var Gt=nt(fe);return Gt?Gt+=" ":Gt="",Gt+Be.linkInline}return xe.match(/^[^>]+/,!0),Be.linkInline}function Ke(xe,fe){if(xe.eatSpace())return null;var ft=xe.next();return ft==="("||ft==="["?(fe.f=fe.inline=ue(ft==="("?")":"]"),ve.highlightFormatting&&(fe.formatting="link-string"),fe.linkHref=!0,nt(fe)):"error"}var je={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(xe){return function(fe,ft){var Gt=fe.next();if(Gt===xe){ft.f=ft.inline=pt,ve.highlightFormatting&&(ft.formatting="link-string");var Ct=nt(ft);return ft.linkHref=!1,Ct}return fe.match(je[xe]),ft.linkHref=!0,nt(ft)}}function ut(xe,fe){return xe.match(/^([^\]\\]|\\.)*\]:/,!1)?(fe.f=Oe,xe.next(),ve.highlightFormatting&&(fe.formatting="link"),fe.linkText=!0,nt(fe)):wt(xe,fe,pt)}function Oe(xe,fe){if(xe.match(/^\]:/,!0)){fe.f=fe.inline=Xe,ve.highlightFormatting&&(fe.formatting="link");var ft=nt(fe);return fe.linkText=!1,ft}return xe.match(/^([^\]\\]|\\.)+/,!0),Be.linkText}function Xe(xe,fe){return xe.eatSpace()?null:(xe.match(/^[^\s]+/,!0),xe.peek()===void 0?fe.linkTitle=!0:xe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),fe.f=fe.inline=pt,Be.linkHref+" url")}var Dt={startState:function(){return{f:at,prevLine:{stream:null},thisLine:{stream:null},block:at,htmlState:null,indentation:0,inline:pt,text:tt,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(xe){return{f:xe.f,prevLine:xe.prevLine,thisLine:xe.thisLine,block:xe.block,htmlState:xe.htmlState&&z.copyState(Je,xe.htmlState),indentation:xe.indentation,localMode:xe.localMode,localState:xe.localMode?z.copyState(xe.localMode,xe.localState):null,inline:xe.inline,text:xe.text,formatting:!1,linkText:xe.linkText,linkTitle:xe.linkTitle,linkHref:xe.linkHref,code:xe.code,em:xe.em,strong:xe.strong,strikethrough:xe.strikethrough,emoji:xe.emoji,header:xe.header,setext:xe.setext,hr:xe.hr,taskList:xe.taskList,list:xe.list,listStack:xe.listStack.slice(0),quote:xe.quote,indentedCode:xe.indentedCode,trailingSpace:xe.trailingSpace,trailingSpaceNewLine:xe.trailingSpaceNewLine,md_inside:xe.md_inside,fencedEndRE:xe.fencedEndRE}},token:function(xe,fe){if(fe.formatting=!1,xe!=fe.thisLine.stream){if(fe.header=0,fe.hr=!1,xe.match(/^\s*$/,!0))return qe(fe),null;if(fe.prevLine=fe.thisLine,fe.thisLine={stream:xe},fe.taskList=!1,fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,!fe.localState&&(fe.f=fe.block,fe.f!=We)){var ft=xe.match(/^\s*/,!0)[0].replace(/\t/g,ht).length;if(fe.indentation=ft,fe.indentationDiff=null,ft>0)return null}}return fe.f(xe,fe)},innerMode:function(xe){return xe.block==We?{state:xe.htmlState,mode:Je}:xe.localState?{state:xe.localState,mode:xe.localMode}:{state:xe,mode:Dt}},indent:function(xe,fe,ft){return xe.block==We&&Je.indent?Je.indent(xe.htmlState,fe,ft):xe.localState&&xe.localMode.indent?xe.localMode.indent(xe.localState,fe,ft):z.Pass},blankLine:qe,getType:nt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Dt},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var it=0;it<z.modeInfo.length;it++){var ve=z.modeInfo[it];ve.mimes&&(ve.mime=ve.mimes[0])}z.findModeByMIME=function(Je){Je=Je.toLowerCase();for(var Ce=0;Ce<z.modeInfo.length;Ce++){var Ee=z.modeInfo[Ce];if(Ee.mime==Je)return Ee;if(Ee.mimes){for(var Be=0;Be<Ee.mimes.length;Be++)if(Ee.mimes[Be]==Je)return Ee}}if(/\+xml$/.test(Je))return z.findModeByMIME("application/xml");if(/\+json$/.test(Je))return z.findModeByMIME("application/json")},z.findModeByExtension=function(Je){Je=Je.toLowerCase();for(var Ce=0;Ce<z.modeInfo.length;Ce++){var Ee=z.modeInfo[Ce];if(Ee.ext){for(var Be=0;Be<Ee.ext.length;Be++)if(Ee.ext[Be]==Je)return Ee}}},z.findModeByFileName=function(Je){for(var Ce=0;Ce<z.modeInfo.length;Ce++){var Ee=z.modeInfo[Ce];if(Ee.file&&Ee.file.test(Je))return Ee}var Be=Je.lastIndexOf("."),Ye=Be>-1&&Je.substring(Be+1,Je.length);if(Ye)return z.findModeByExtension(Ye)},z.findModeByName=function(Je){Je=Je.toLowerCase();for(var Ce=0;Ce<z.modeInfo.length;Ce++){var Ee=z.modeInfo[Ce];if(Ee.name.toLowerCase()==Je)return Ee;if(Ee.alias){for(var Be=0;Be<Ee.alias.length;Be++)if(Ee.alias[Be].toLowerCase()==Je)return Ee}}}})},67549:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.defineMode("stex",function(it,ve){"use strict";function Je(Ue,Ne){Ue.cmdState.push(Ne)}function Ce(Ue){return Ue.cmdState.length>0?Ue.cmdState[Ue.cmdState.length-1]:null}function Ee(Ue){var Ne=Ue.cmdState.pop();Ne&&Ne.closeBracket()}function Be(Ue){for(var Ne=Ue.cmdState,Ve=Ne.length-1;Ve>=0;Ve--){var ze=Ne[Ve];if(ze.name!="DEFAULT")return ze}return{styleIdentifier:function(){return null}}}function Ye(Ue,Ne,Ve){return function(){this.name=Ue,this.bracketNo=0,this.style=Ne,this.styles=Ve,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=Ye("importmodule","tag",["string","builtin"]),we.documentclass=Ye("documentclass","tag",["","atom"]),we.usepackage=Ye("usepackage","tag",["atom"]),we.begin=Ye("begin","tag",["atom"]),we.end=Ye("end","tag",["atom"]),we.label=Ye("label","tag",["atom"]),we.ref=Ye("ref","tag",["atom"]),we.eqref=Ye("eqref","tag",["atom"]),we.cite=Ye("cite","tag",["atom"]),we.bibitem=Ye("bibitem","tag",["atom"]),we.Bibitem=Ye("Bibitem","tag",["atom"]),we.RBibitem=Ye("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Ue,Ne){Ue.f=Ne}function Qe(Ue,Ne){var Ve;if(Ue.match(/^\\[a-zA-Z@]+/)){var ze=Ue.current().slice(1);return Ve=we.hasOwnProperty(ze)?we[ze]:we.DEFAULT,Ve=new Ve,Je(Ne,Ve),he(Ne,St),Ve.style}if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/\\]/))return"tag";if(Ue.match("\\["))return he(Ne,function(wt,Ot){return Ie(wt,Ot,"\\]")}),"keyword";if(Ue.match("\\("))return he(Ne,function(wt,Ot){return Ie(wt,Ot,"\\)")}),"keyword";if(Ue.match("$$"))return he(Ne,function(wt,Ot){return Ie(wt,Ot,"$$")}),"keyword";if(Ue.match("$"))return he(Ne,function(wt,Ot){return Ie(wt,Ot,"$")}),"keyword";var ht=Ue.next();if(ht=="%")return Ue.skipToEnd(),"comment";if(ht=="}"||ht=="]"){if(Ve=Ce(Ne),Ve)Ve.closeBracket(ht),he(Ne,St);else return"error";return"bracket"}else return ht=="{"||ht=="["?(Ve=we.DEFAULT,Ve=new Ve,Je(Ne,Ve),"bracket"):/\d/.test(ht)?(Ue.eatWhile(/[\w.%]/),"atom"):(Ue.eatWhile(/[\w\-_]/),Ve=Be(Ne),Ve.name=="begin"&&(Ve.argument=Ue.current()),Ve.styleIdentifier())}function Ie(Ue,Ne,Ve){if(Ue.eatSpace())return null;if(Ve&&Ue.match(Ve))return he(Ne,Qe),"keyword";if(Ue.match(/^\\[a-zA-Z@]+/))return"tag";if(Ue.match(/^[a-zA-Z]+/))return"variable-2";if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/]/)||Ue.match(/^[\^_&]/))return"tag";if(Ue.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ue.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ze=Ue.next();return ze=="{"||ze=="}"||ze=="["||ze=="]"||ze=="("||ze==")"?"bracket":ze=="%"?(Ue.skipToEnd(),"comment"):"error"}function St(Ue,Ne){var Ve=Ue.peek(),ze;return Ve=="{"||Ve=="["?(ze=Ce(Ne),ze.openBracket(Ve),Ue.eat(Ve),he(Ne,Qe),"bracket"):/[ \t\r]/.test(Ve)?(Ue.eat(Ve),null):(he(Ne,Qe),Ee(Ne),Qe(Ue,Ne))}return{startState:function(){var Ue=ve.inMathMode?function(Ne,Ve){return Ie(Ne,Ve)}:Qe;return{cmdState:[],f:Ue}},copyState:function(Ue){return{cmdState:Ue.cmdState.slice(),f:Ue.f}},token:function(Ue,Ne){return Ne.f(Ue,Ne)},blankLine:function(Ue){Ue.f=Qe,Ue.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(ln,Zt,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(Je,Ce){var Ee=Je.indentUnit,Be={},Ye=Ce.htmlMode?it:ve;for(var we in Ye)Be[we]=Ye[we];for(var we in Ce)Be[we]=Ce[we];var he,Qe;function Ie(Me,Ke){function je(Oe){return Ke.tokenize=Oe,Oe(Me,Ke)}var ue=Me.next();if(ue=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?je(Ne("atom","]]>")):null:Me.match("--")?je(Ne("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),je(Ve(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),Ke.tokenize=Ne("meta","?>"),"meta"):(he=Me.eat("/")?"closeTag":"openTag",Ke.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}Ie.isInText=!0;function St(Me,Ke){var je=Me.next();if(je==">"||je=="/"&&Me.eat(">"))return Ke.tokenize=Ie,he=je==">"?"endTag":"selfcloseTag","tag bracket";if(je=="=")return he="equals",null;if(je=="<"){Ke.tokenize=Ie,Ke.state=Ot,Ke.tagName=Ke.tagStart=null;var ue=Ke.tokenize(Me,Ke);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(je)?(Ke.tokenize=Ue(je),Ke.stringStartCol=Me.column(),Ke.tokenize(Me,Ke)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ue(Me){var Ke=function(je,ue){for(;!je.eol();)if(je.next()==Me){ue.tokenize=St;break}return"string"};return Ke.isInAttribute=!0,Ke}function Ne(Me,Ke){return function(je,ue){for(;!je.eol();){if(je.match(Ke)){ue.tokenize=Ie;break}je.next()}return Me}}function Ve(Me){return function(Ke,je){for(var ue;(ue=Ke.next())!=null;){if(ue=="<")return je.tokenize=Ve(Me+1),je.tokenize(Ke,je);if(ue==">")if(Me==1){je.tokenize=Ie;break}else return je.tokenize=Ve(Me-1),je.tokenize(Ke,je)}return"meta"}}function ze(Me,Ke,je){this.prev=Me.context,this.tagName=Ke,this.indent=Me.indented,this.startOfLine=je,(Be.doNotIndent.hasOwnProperty(Ke)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function ht(Me){Me.context&&(Me.context=Me.context.prev)}function wt(Me,Ke){for(var je;;){if(!Me.context||(je=Me.context.tagName,!Be.contextGrabbers.hasOwnProperty(je)||!Be.contextGrabbers[je].hasOwnProperty(Ke)))return;ht(Me)}}function Ot(Me,Ke,je){return Me=="openTag"?(je.tagStart=Ke.column(),dt):Me=="closeTag"?qe:Ot}function dt(Me,Ke,je){return Me=="word"?(je.tagName=Ke.current(),Qe="tag",Pt):Be.allowMissingTagName&&Me=="endTag"?(Qe="tag bracket",Pt(Me,Ke,je)):(Qe="error",dt)}function qe(Me,Ke,je){if(Me=="word"){var ue=Ke.current();return je.context&&je.context.tagName!=ue&&Be.implicitlyClosed.hasOwnProperty(je.context.tagName)&&ht(je),je.context&&je.context.tagName==ue||Be.matchClosing===!1?(Qe="tag",at):(Qe="tag error",We)}else return Be.allowMissingTagName&&Me=="endTag"?(Qe="tag bracket",at(Me,Ke,je)):(Qe="error",We)}function at(Me,Ke,je){return Me!="endTag"?(Qe="error",at):(ht(je),Ot)}function We(Me,Ke,je){return Qe="error",at(Me,Ke,je)}function Pt(Me,Ke,je){if(Me=="word")return Qe="attribute",nt;if(Me=="endTag"||Me=="selfcloseTag"){var ue=je.tagName,ut=je.tagStart;return je.tagName=je.tagStart=null,Me=="selfcloseTag"||Be.autoSelfClosers.hasOwnProperty(ue)?wt(je,ue):(wt(je,ue),je.context=new ze(je,ue,ut==je.indented)),Ot}return Qe="error",Pt}function nt(Me,Ke,je){return Me=="equals"?tt:(Be.allowMissing||(Qe="error"),Pt(Me,Ke,je))}function tt(Me,Ke,je){return Me=="string"?pt:Me=="word"&&Be.allowUnquoted?(Qe="string",Pt):(Qe="error",Pt(Me,Ke,je))}function pt(Me,Ke,je){return Me=="string"?pt:Pt(Me,Ke,je)}return{startState:function(Me){var Ke={tokenize:Ie,state:Ot,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(Ke.baseIndent=Me),Ke},token:function(Me,Ke){if(!Ke.tagName&&Me.sol()&&(Ke.indented=Me.indentation()),Me.eatSpace())return null;he=null;var je=Ke.tokenize(Me,Ke);return(je||he)&&je!="comment"&&(Qe=null,Ke.state=Ke.state(he||je,Me,Ke),Qe&&(je=Qe=="error"?je+" error":Qe)),je},indent:function(Me,Ke,je){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!=Ie)return je?je.match(/^(\s*)/)[0].length:0;if(Me.tagName)return Be.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Ee*(Be.multilineTagIndentFactor||1);if(Be.alignCDATA&&/<!\[CDATA\[/.test(Ke))return 0;var ut=Ke&&/^<(\/)?([\w_:\.-]*)/.exec(Ke);if(ut&&ut[1])for(;ue;)if(ue.tagName==ut[2]){ue=ue.prev;break}else if(Be.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(ut)for(;ue;){var Oe=Be.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:Be.htmlMode?"html":"xml",helperType:Be.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==tt&&(Me.state=Pt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var Ke=[],je=Me.context;je;je=je.prev)je.tagName&&Ke.push(je.tagName);return Ke.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,Zt,ie){"use strict";ie.d(Zt,{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(_e){ne(_e)}}function be(Pe){try{st(oe.throw(Pe))}catch(_e){ne(_e)}}function st(Pe){var _e;Pe.done?se(Pe.value):(_e=Pe.value,_e instanceof ee?_e:new ee(function(ot){ot(_e)})).then(pe,be)}st((oe=oe.apply(ae,te||[])).next())})}function Je(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:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function be(st){return function(Pe){return function(_e){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&_e[0]?oe.return:_e[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,_e[1])).done)return se;switch(oe=0,se&&(_e=[2&_e[0],se.value]),_e[0]){case 0:case 1:se=_e;break;case 4:return pe.label++,{value:_e[1],done:!1};case 5:pe.label++,oe=_e[1],_e=[0];continue;case 7:_e=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||_e[0]!==6&&_e[0]!==2)){pe=0;continue}if(_e[0]===3&&(!se||_e[1]>se[0]&&_e[1]<se[3])){pe.label=_e[1];break}if(_e[0]===6&&pe.label<se[1]){pe.label=se[1],se=_e;break}if(se&&pe.label<se[2]){pe.label=se[2],pe.ops.push(_e);break}se[2]&&pe.ops.pop(),pe.trys.pop();continue}_e=te.call(ae,pe)}catch(ot){_e=[6,ot],oe=0}finally{ee=se=0}if(5&_e[0])throw _e[1];return{value:_e[0]?_e[1]:void 0,done:!0}}([st,Pe])}}}function Ce(){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,be=ne.length;pe<be;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],be=ne[1];te.setAttribute(pe,be)}},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,be){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(be),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}(),Be=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}(),Ye=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 be=document.createElementNS("http://www.w3.org/2000/svg","svg");be.setAttribute("xmlns","http://www.w3.org/2000/svg"),be.setAttribute("width",ee.width.baseVal.valueAsString),be.setAttribute("height",ee.height.baseVal.valueAsString),be.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),be.innerHTML=ee.innerHTML,se.naturalSize===!0?(be.width.baseVal.value=te.naturalWidth,be.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(be.width.baseVal.value=se.width,be.height.baseVal.value=se.height),pe.width=be.width.baseVal.value,pe.height=be.height.baseVal.value;var st=be.outerHTML,Pe=pe.getContext("2d");se.markersOnly!==!0&&Pe.drawImage(te,0,0,pe.width,pe.height);var _e=window.URL,ot=new Image(pe.width,pe.height);ot.setAttribute("crossOrigin","anonymous");var yt=new Blob([st],{type:"image/svg+xml"}),vt=_e.createObjectURL(yt);ot.onload=function(){Pe.drawImage(ot,0,0),_e.revokeObjectURL(vt);var Kt=pe.toDataURL(se.imageType,se.imageQuality);ne(Kt)},ot.src=vt})},ae}(),we=function(){},he=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},ae.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new Qe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Qe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Qe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ie("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ie("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}(),Qe=function(ae,te){this.selector=ae,this.style=te},Ie=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 Ie("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 Ie("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ie("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Qe("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Qe("."+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}(),Ue=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 Ie("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 Ie("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ie("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Qe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Qe("."+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 be=document.createElement("div");be.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),be.innerHTML=ne.icon,be.title=ne.title,be.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(be),se.buttonRow.appendChild(be)}),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 be,st;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((be=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&be!==void 0?be: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},Ve=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 be=document.createElement("div");return be.style.display="inline-block",be.style.width=ne-2+"px",be.style.height=ne-2+"px",be.style.backgroundColor=ee,be.style.borderRadius=ne/2+"px",ee==="transparent"&&(be.style.fill=this.uiStyleSettings.toolboxAccentColor,be.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(be),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}(),ht=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}(),Ot=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),dt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(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 ht,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,be=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,be),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,be),this.positionGrip(this.controlGrips.bottomRight.visual,st,be),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:Ot.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ot.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(Ot.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ot.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),qe=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}(dt),at=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 be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.display="flex",be.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",be.appendChild(st),ne.appendChild(be),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),We=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 be=`<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=be,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),Pt=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 Ve("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new at("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new We("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}(qe),nt=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"},tt=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),pt=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 Ve("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new at("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new We("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}(tt),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 be=document.createElement("div");be.style.whiteSpace="nowrap",be.style.overflow="hidden",be.style.textOverflow="ellipsis",be.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(be),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),Ke=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 Ve("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}(dt),je=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 Ve("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new at("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],be=oe[3],st=!1,Pe=0;Pe<this.canvasElement.height;Pe++)for(var _e=0;_e<this.canvasElement.width;_e++)ee.data[Pe*this.canvasElement.width*4+4*_e+3]>0&&(st=!0,Pe<ne&&(ne=Pe),_e<se&&(se=_e),Pe>be&&(be=Pe),_e>pe&&(pe=_e));if(st){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(be-ne)/this.pixelRatio;var ot=document.createElement("canvas");ot.width=pe-se,ot.height=be-ne,ot.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,pe-se,be-ne),0,0),this.drawingImgUrl=ot.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){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}(dt),ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(be){var st="both";switch(be){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 _e=document.createElement("div");_e.style.display="flex",_e.style.alignItems="center",_e.style.minHeight="20px",_e.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>`,_e.style.marginLeft="5px",Pe.appendChild(_e)}var ot=document.createElement("div");ot.style.display="flex",ot.style.alignItems="center",ot.style.minHeight="20px",ot.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",ot.appendChild(yt),Pe.appendChild(ot),st==="both"||st==="end"){var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.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>`,vt.style.marginRight="5px",Pe.appendChild(vt)}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}(pt),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 Ve("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}(qe),Xe=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),Dt=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 Ve("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Xe("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),xe='<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>',ft=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 Ve("Text color",se.defaultColorSet,ne.color,xe),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ve("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}(Ke),Gt=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 Ve("Line color",Ce(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ve("Fill color",Ce(se.defaultColorSet,["transparent"]),ne.fillColor,fe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new at("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new We("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new Xe("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}(dt),Ct=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}(pt),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}(Gt),Le=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Ze=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ve("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new at("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new We("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}(tt),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 Ve("Line color",Ce(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ve("Fill color",Ce(se.defaultColorSet,["transparent"]),ne.fillColor,fe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new at("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new We("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 Ve("Text color",se.defaultColorSet,ne.textColor,xe),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}(dt),bt=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}(bt),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}(bt),$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 nt,this._isOpen=!1,this.undoRedoManager=new Le,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[Pt,je,ut,Ke,me,Gt,Dt,ft,Ct,Oe,pt,Ze,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Pt,je,ut,Ke,Gt,Dt,ft]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Pt,je,ut,Ke,Dt]},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(),Be.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&we.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=we.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new bt(te))})},ae.prototype.render=function(){return ve(this,void 0,void 0,function(){var te;return Je(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Ye).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 bt(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 bt(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 Ke?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 Ue(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 be=new Ae(te,void 0,!0);pe(be),be.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var be=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,be))})},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 bt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new bt(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 bt(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 bt(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 Je(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 bt(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 je&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(je):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){Be.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 bt(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 bt(te))}))},ae.instanceCounter=0,ae}()},6551:function(ln,Zt,ie){"use strict";ie.d(Zt,{ZP:function(){return Be}});var z=ie(72190),it=ie(59301),ve=ie(47273),Je=0,Ce=(0,ve.Z)();function Ee(){var Ye;return Ce?(Ye=Je,Je+=1):Ye="TEST_OR_SSR",Ye}function Be(Ye){var we=it.useState(),he=(0,z.Z)(we,2),Qe=he[0],Ie=he[1];return it.useEffect(function(){Ie("rc_select_".concat(Ee()))},[]),Ye||Qe}},37463:function(ln,Zt,ie){"use strict";ie.d(Zt,{Ac:function(){return xt},Xo:function(){return Wt},Wx:function(){return et},ZP:function(){return hn},lk:function(){return Ot}});var z=ie(60499),it=ie(77654),ve=ie(18642),Je=ie(85899),Ce=ie(72190),Ee=ie(42244),Be=ie(43749),Ye=ie(18929),we=ie(48736),he=ie(59301),Qe=ie(92310),Ie=ie.n(Qe),St=ie(34280),Ue=ie(49658),Ne=ie(8654),Ve=function(Ge){var ye=Ge.className,Re=Ge.customizeIcon,Se=Ge.customizeIconProps,Fe=Ge.children,gt=Ge.onMouseDown,on=Ge.onClick,un=typeof Re=="function"?Re(Se):Re;return he.createElement("span",{className:ye,onMouseDown:function(Xt){Xt.preventDefault(),gt==null||gt(Xt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},un!==void 0?un:he.createElement("span",{className:Ie()(ye.split(/\s+/).map(function(gn){return"".concat(gn,"-icon")}))},Fe))},ze=Ve,ht=function(Ge,ye,Re,Se,Fe){var gt=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,Be.Z)(Se)==="object")return Se.clearIcon;if(Fe)return Fe},[Se,Fe]),Xt=he.useMemo(function(){return!!(!gt&&Se&&(Re.length||on)&&!(un==="combobox"&&on===""))},[Se,gt,Re.length,on,un]);return{allowClear:Xt,clearIcon:he.createElement(ze,{className:"".concat(Ge,"-clear"),onMouseDown:ye,customizeIcon:gn},"\xD7")}},wt=he.createContext(null);function Ot(){return he.useContext(wt)}function dt(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ge=he.useState(!1),ye=(0,Ce.Z)(Ge,2),Re=ye[0],Se=ye[1],Fe=he.useRef(null),gt=function(){window.clearTimeout(Fe.current)};he.useEffect(function(){return gt},[]);var on=function(gn,Xt){gt(),Fe.current=window.setTimeout(function(){Se(gn),Xt&&Xt()},Te)};return[Re,on,gt]}function qe(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ge=he.useRef(null),ye=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(ye.current)}},[]);function Re(Se){(Se||Ge.current===null)&&(Ge.current=Se),window.clearTimeout(ye.current),ye.current=window.setTimeout(function(){Ge.current=null},Te)}return[function(){return Ge.current},Re]}function at(Te,Ge,ye,Re){var Se=he.useRef(null);Se.current={open:Ge,triggerOpen:ye,customizedTrigger:Re},he.useEffect(function(){function Fe(gt){var on;if(!((on=Se.current)!==null&&on!==void 0&&on.customizedTrigger)){var un=gt.target;un.shadowRoot&>.composed&&(un=gt.composedPath()[0]||un),Se.current.open&&Te().filter(function(gn){return gn}).every(function(gn){return!gn.contains(un)&&gn!==un})&&Se.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Fe),function(){return window.removeEventListener("mousedown",Fe)}},[])}var We=ie(10228);function Pt(Te){return Te&&![We.Z.ESC,We.Z.SHIFT,We.Z.BACKSPACE,We.Z.TAB,We.Z.WIN_KEY,We.Z.ALT,We.Z.META,We.Z.WIN_KEY_RIGHT,We.Z.CTRL,We.Z.SEMICOLON,We.Z.EQUALS,We.Z.CAPS_LOCK,We.Z.CONTEXT_MENU,We.Z.F1,We.Z.F2,We.Z.F3,We.Z.F4,We.Z.F5,We.Z.F6,We.Z.F7,We.Z.F8,We.Z.F9,We.Z.F10,We.Z.F11,We.Z.F12].includes(Te)}var nt=ie(26112),tt=ie(83836);function pt(Te,Ge,ye){var Re=(0,Je.Z)((0,Je.Z)({},Te),ye?Ge:{});return Object.keys(Ge).forEach(function(Se){var Fe=Ge[Se];typeof Fe=="function"&&(Re[Se]=function(){for(var gt,on=arguments.length,un=new Array(on),gn=0;gn<on;gn++)un[gn]=arguments[gn];return Fe.apply(void 0,un),(gt=Te[Se])===null||gt===void 0?void 0:gt.call.apply(gt,[Te].concat(un))})}),Re}var Me=pt,Ke=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],je=function(Ge,ye){var Re=Ge.prefixCls,Se=Ge.id,Fe=Ge.inputElement,gt=Ge.autoFocus,on=Ge.autoComplete,un=Ge.editable,gn=Ge.activeDescendantId,Xt=Ge.value,Lt=Ge.open,kt=Ge.attrs,fn=(0,Ee.Z)(Ge,Ke),Bn=Fe||he.createElement("input",null),Dn=Bn,Tn=Dn.ref,Xn=Dn.props;return(0,we.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,Je.Z)((0,Je.Z)((0,Je.Z)({type:"search"},Me(fn,Xn,!0)),{},{id:Se,ref:(0,Ne.sQ)(ye,Tn),autoComplete:on||"off",autoFocus:gt,className:Ie()("".concat(Re,"-selection-search-input"),Xn==null?void 0:Xn.className),role:"combobox","aria-expanded":Lt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Se,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Se,"_list"),"aria-activedescendant":Lt?gn:void 0},kt),{},{value:un?Xt:"",readOnly:!un,unselectable:un?null:"on",style:(0,Je.Z)((0,Je.Z)({},Xn.style),{},{opacity:un?null:0})})),Bn},ue=he.forwardRef(je),ut=ue;function Oe(Te){return Array.isArray(Te)?Te:Te!==void 0?[Te]:[]}var Xe=typeof window!="undefined"&&window.document&&window.document.documentElement,Dt=Xe;function xe(Te){return Te!=null}function fe(Te){return!Te&&Te!==0}function ft(Te){return["string","number"].includes((0,Be.Z)(Te))}function Gt(Te){var Ge=void 0;return Te&&(ft(Te.title)?Ge=Te.title.toString():ft(Te.label)&&(Ge=Te.label.toString())),Ge}function Ct(Te,Ge){Dt?he.useLayoutEffect(Te,Ge):he.useEffect(Te,Ge)}function me(Te){var Ge;return(Ge=Te.key)!==null&&Ge!==void 0?Ge:Te.value}var Le=function(Ge){Ge.preventDefault(),Ge.stopPropagation()},Ze=function(Ge){var ye=Ge.id,Re=Ge.prefixCls,Se=Ge.values,Fe=Ge.open,gt=Ge.searchValue,on=Ge.autoClearSearchValue,un=Ge.inputRef,gn=Ge.placeholder,Xt=Ge.disabled,Lt=Ge.mode,kt=Ge.showSearch,fn=Ge.autoFocus,Bn=Ge.autoComplete,Dn=Ge.activeDescendantId,Tn=Ge.tabIndex,Xn=Ge.removeIcon,Qn=Ge.maxTagCount,Jn=Ge.maxTagTextLength,Zn=Ge.maxTagPlaceholder,Fn=Zn===void 0?function(Cn){return"+ ".concat(Cn.length," ...")}:Zn,Wn=Ge.tagRender,Un=Ge.onToggleOpen,ur=Ge.onRemove,qn=Ge.onInputChange,lr=Ge.onInputPaste,ir=Ge.onInputKeyDown,er=Ge.onInputMouseDown,tr=Ge.onInputCompositionStart,vr=Ge.onInputCompositionEnd,mr=Ge.onInputBlur,cr=he.useRef(null),gr=(0,he.useState)(0),Cr=(0,Ce.Z)(gr,2),or=Cr[0],dr=Cr[1],Gn=(0,he.useState)(!1),Sr=(0,Ce.Z)(Gn,2),Rr=Sr[0],Wr=Sr[1],Er="".concat(Re,"-selection"),Ar=Fe||Lt==="multiple"&&on===!1||Lt==="tags"?gt:"",Ir=Lt==="tags"||Lt==="multiple"&&on===!1||kt&&(Fe||Rr);Ct(function(){dr(cr.current.scrollWidth)},[Ar]);var Dr=function(sn,zn,_n,mn,yn){return he.createElement("span",{title:Gt(sn),className:Ie()("".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:Le,onClick:yn,customizeIcon:Xn},"\xD7"))},zr=function(sn,zn,_n,mn,yn,Nn){var Rn=function(kr){Le(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(!Se.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:ye,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,nt.Z)(Ge,!0)}),he.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),En=he.createElement(tt.Z,{prefixCls:"".concat(Er,"-overflow"),data:Se,renderItem:fr,renderRest:Yn,suffix:pn,itemKey:me,maxCount:Qn});return he.createElement("span",{className:"".concat(Er,"-wrap")},En,!Se.length&&!Ar&&he.createElement("span",{className:"".concat(Er,"-placeholder")},gn))},Nt=Ze,bt=function(Ge){var ye=Ge.inputElement,Re=Ge.prefixCls,Se=Ge.id,Fe=Ge.inputRef,gt=Ge.disabled,on=Ge.autoFocus,un=Ge.autoComplete,gn=Ge.activeDescendantId,Xt=Ge.mode,Lt=Ge.open,kt=Ge.values,fn=Ge.placeholder,Bn=Ge.tabIndex,Dn=Ge.showSearch,Tn=Ge.searchValue,Xn=Ge.activeValue,Qn=Ge.maxLength,Jn=Ge.onInputKeyDown,Zn=Ge.onInputMouseDown,Fn=Ge.onInputChange,Wn=Ge.onInputPaste,Un=Ge.onInputCompositionStart,ur=Ge.onInputCompositionEnd,qn=Ge.onInputBlur,lr=Ge.title,ir=he.useState(!1),er=(0,Ce.Z)(ir,2),tr=er[0],vr=er[1],mr=Xt==="combobox",cr=mr||Dn,gr=kt[0],Cr=Tn||"";mr&&Xn&&!tr&&(Cr=Xn),he.useEffect(function(){mr&&vr(!1)},[mr,Xn]);var or=Xt!=="combobox"&&!Lt&&!Dn?!1:!!Cr,dr=lr===void 0?Gt(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:Se,open:Lt,inputElement:ye,disabled:gt,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,nt.Z)(Ge,!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=bt,Ae=function(Ge,ye){var Re=(0,he.useRef)(null),Se=(0,he.useRef)(!1),Fe=Ge.prefixCls,gt=Ge.open,on=Ge.mode,un=Ge.showSearch,gn=Ge.tokenWithEnter,Xt=Ge.disabled,Lt=Ge.prefix,kt=Ge.autoClearSearchValue,fn=Ge.onSearch,Bn=Ge.onSearchSubmit,Dn=Ge.onToggleOpen,Tn=Ge.onInputKeyDown,Xn=Ge.onInputBlur,Qn=Ge.domRef;he.useImperativeHandle(ye,function(){return{focus:function(dr){Re.current.focus(dr)},blur:function(){Re.current.blur()}}});var Jn=qe(0),Zn=(0,Ce.Z)(Jn,2),Fn=Zn[0],Wn=Zn[1],Un=function(dr){var Gn=dr.which,Sr=Re.current instanceof HTMLTextAreaElement;!Sr&>&&(Gn===We.Z.UP||Gn===We.Z.DOWN)&&dr.preventDefault(),Tn&&Tn(dr),Gn===We.Z.ENTER&&on==="tags"&&!Se.current&&!gt&&(Bn==null||Bn(dr.target.value)),!(Sr&&!gt&&~[We.Z.UP,We.Z.DOWN,We.Z.LEFT,We.Z.RIGHT].indexOf(Gn))&&Pt(Gn)&&Dn(!0)},ur=function(){Wn(!0)},qn=(0,he.useRef)(null),lr=function(dr){fn(dr,!0,Se.current)!==!1&&Dn(!0)},ir=function(){Se.current=!0},er=function(dr){Se.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)||!gt)&&(gt&&kt!==!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)({},Ge,gr)):he.createElement(zt,(0,z.Z)({},Ge,gr));return he.createElement("div",{ref:Qn,className:"".concat(Fe,"-selector"),onClick:mr,onMouseDown:cr},Lt&&he.createElement("div",{className:"".concat(Fe,"-prefix")},Lt),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(Ge){var ye=Ge===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ye,adjustY:1},htmlRegion:"scroll"}}},oe=function(Ge,ye){var Re=Ge.prefixCls,Se=Ge.disabled,Fe=Ge.visible,gt=Ge.children,on=Ge.popupElement,un=Ge.animation,gn=Ge.transitionName,Xt=Ge.dropdownStyle,Lt=Ge.dropdownClassName,kt=Ge.direction,fn=kt===void 0?"ltr":kt,Bn=Ge.placement,Dn=Ge.builtinPlacements,Tn=Ge.dropdownMatchSelectWidth,Xn=Ge.dropdownRender,Qn=Ge.dropdownAlign,Jn=Ge.getPopupContainer,Zn=Ge.empty,Fn=Ge.getTriggerDOMNode,Wn=Ge.onPopupVisibleChange,Un=Ge.onPopupMouseEnter,ur=(0,Ee.Z)(Ge,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,Je.Z)((0,Je.Z)({},mr),{},{width:Tn}));var cr=he.useRef(null);return he.useImperativeHandle(ye,function(){return{getPopupElement:function(){var Cr;return(Cr=cr.current)===null||Cr===void 0?void 0:Cr.popupElement}}}),he.createElement(ae.Z,(0,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:Ie()(Lt,(0,ve.Z)({},"".concat(qn,"-empty"),Zn)),popupStyle:mr,getTriggerDOMNode:Fn,onPopupVisibleChange:Wn}),gt)},se=he.forwardRef(oe),ne=se,pe=ie(48745);function be(Te,Ge){var ye=Te.key,Re;return"value"in Te&&(Re=Te.value),ye!=null?ye:Re!==void 0?Re:"rc-index-key-".concat(Ge)}function st(Te){return typeof Te!="undefined"&&!Number.isNaN(Te)}function Pe(Te,Ge){var ye=Te||{},Re=ye.label,Se=ye.value,Fe=ye.options,gt=ye.groupLabel,on=Re||(Ge?"children":"label");return{label:on,value:Se||"value",options:Fe||"options",groupLabel:gt||on}}function _e(Te){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=Ge.fieldNames,Re=Ge.childrenAsData,Se=[],Fe=Pe(ye,!1),gt=Fe.label,on=Fe.value,un=Fe.options,gn=Fe.groupLabel;function Xt(Lt,kt){Array.isArray(Lt)&&Lt.forEach(function(fn){if(kt||!(un in fn)){var Bn=fn[on];Se.push({key:be(fn,Se.length),groupOption:kt,data:fn,label:fn[gt],value:Bn})}else{var Dn=fn[gn];Dn===void 0&&Re&&(Dn=fn.label),Se.push({key:be(fn,Se.length),group:!0,data:fn,label:Dn}),Xt(fn[un],!0)}})}return Xt(Te,!1),Se}function ot(Te){var Ge=(0,Je.Z)({},Te);return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,we.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ge}}),Ge}var yt=function(Ge,ye,Re){if(!ye||!ye.length)return null;var Se=!1,Fe=function on(un,gn){var Xt=(0,pe.Z)(gn),Lt=Xt[0],kt=Xt.slice(1);if(!Lt)return[un];var fn=un.split(Lt);return Se=Se||fn.length>1,fn.reduce(function(Bn,Dn){return[].concat((0,it.Z)(Bn),(0,it.Z)(on(Dn,kt)))},[]).filter(Boolean)},gt=Fe(Ge,ye);return Se?typeof Re!="undefined"?gt.slice(0,Re):gt:null},vt=he.createContext(null),Kt=vt;function jt(Te){var Ge=Te.visible,ye=Te.values;if(!Ge)return null;var Re=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ye.slice(0,Re).map(function(Se){var Fe=Se.label,gt=Se.value;return["number","string"].includes((0,Be.Z)(Fe))?Fe:gt}).join(", ")),ye.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(Ge){return Ge==="tags"||Ge==="multiple"},nn=he.forwardRef(function(Te,Ge){var ye,Re=Te.id,Se=Te.prefixCls,Fe=Te.className,gt=Te.showSearch,on=Te.tagRender,un=Te.direction,gn=Te.omitDomProps,Xt=Te.displayValues,Lt=Te.onDisplayValuesChange,kt=Te.emptyOptions,fn=Te.notFoundContent,Bn=fn===void 0?"Not Found":fn,Dn=Te.onClear,Tn=Te.mode,Xn=Te.disabled,Qn=Te.loading,Jn=Te.getInputElement,Zn=Te.getRawInputElement,Fn=Te.open,Wn=Te.defaultOpen,Un=Te.onDropdownVisibleChange,ur=Te.activeValue,qn=Te.onActiveValueChange,lr=Te.activeDescendantId,ir=Te.searchValue,er=Te.autoClearSearchValue,tr=Te.onSearch,vr=Te.onSearchSplit,mr=Te.tokenSeparators,cr=Te.allowClear,gr=Te.prefix,Cr=Te.suffixIcon,or=Te.clearIcon,dr=Te.OptionList,Gn=Te.animation,Sr=Te.transitionName,Rr=Te.dropdownStyle,Wr=Te.dropdownClassName,Er=Te.dropdownMatchSelectWidth,Ar=Te.dropdownRender,Ir=Te.dropdownAlign,Dr=Te.placement,zr=Te.builtinPlacements,fr=Te.getPopupContainer,Yn=Te.showAction,pn=Yn===void 0?[]:Yn,En=Te.onFocus,Cn=Te.onBlur,sn=Te.onKeyUp,zn=Te.onKeyDown,_n=Te.onMouseDown,mn=(0,Ee.Z)(Te,Ht),yn=Qt(Tn),Nn=(gt!==void 0?gt:yn)||Tn==="combobox",Rn=(0,Je.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,Ce.Z)(rr,2),br=kr[0],Or=kr[1];he.useEffect(function(){Or((0,Ue.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=dt(),Fi=(0,Ce.Z)(Pi,3),xi=Fi[0],mi=Fi[1],Xi=Fi[2];he.useImperativeHandle(Ge,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||(ye=ni.props)===null||ye===void 0?void 0:ye.ref),ao=he.useState(!1),Yi=(0,Ce.Z)(ao,2),gi=Yi[0],Ai=Yi[1];(0,St.Z)(function(){Ai(!0)},[]);var Vr=(0,Ye.Z)(!1,{defaultValue:Wn,value:Fn}),zi=(0,Ce.Z)(Vr,2),lo=zi[0],ji=zi[1],Jr=gi?lo:!1,xo=!Bn&&kt;(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=qe(),ui=(0,Ce.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&&Lt(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});Lt(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,Ce.Z)($i,2),xa=ba[1];function Va(){xa({})}var Ca;ni&&(Ca=function(xr){ar(xr)}),at(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,Je.Z)((0,Je.Z)({},Te),{},{notFoundContent:Bn,open:Jr,triggerOpen:so,id:Re,showSearch:Nn,multiple:yn,toggleOpen:ar})},[Te,Bn,so,Jr,Re,Nn,yn,ar]),Uo=!!Cr||Qn,Ko;Uo&&(Ko=he.createElement(ze,{className:Ie()("".concat(Se,"-arrow"),(0,ve.Z)({},"".concat(Se,"-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(),Lt([],{type:"clear",values:Xt}),jr("",!1,!1)},Xo=ht(Se,Co,Xt,cr,or,Xn,Lr,Tn),Sa=Xo.allowClear,Yo=Xo.clearIcon,To=he.createElement(dr,{ref:Zr}),wa=Ie()(Se,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(Se,"-focused"),xi),"".concat(Se,"-multiple"),yn),"".concat(Se,"-single"),!yn),"".concat(Se,"-allow-clear"),cr),"".concat(Se,"-show-arrow"),Uo),"".concat(Se,"-disabled"),Xn),"".concat(Se,"-loading"),Qn),"".concat(Se,"-open"),Jr),"".concat(Se,"-customize-input"),to),"".concat(Se,"-show-search"),Nn)),Bo=he.createElement(ne,{ref:Hr,disabled:Xn,prefixCls:Se,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:kt,getTriggerDOMNode:function(xr){return Tr.current||xr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},ni?he.cloneElement(ni,{ref:Li}):he.createElement(ct,(0,z.Z)({},Te,{domRef:Tr,prefixCls:Se,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)}),xt=nn,qt=function(){return null};qt.isSelectOptGroup=!0;var Wt=qt,De=function(){return null};De.isSelectOption=!0;var et=De,Bt=ie(80547),Rt=ie(2738),ke=ie(48911);function He(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var lt=["disabled","title","children","style","className"];function Et(Te){return typeof Te=="string"||typeof Te=="number"}var Vt=function(Ge,ye){var Re=Ot(),Se=Re.prefixCls,Fe=Re.id,gt=Re.open,on=Re.multiple,un=Re.mode,gn=Re.searchValue,Xt=Re.toggleOpen,Lt=Re.notFoundContent,kt=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(Se,"-item"),er=(0,Bt.Z)(function(){return Dn},[gt,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,Ce.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&>&&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(gt){var pn;(pn=tr.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[gt,gn]);var Er=function(pn){pn!==void 0&&Qn(pn,{selected:!Zn.has(pn)}),on||Xt(!1)};if(he.useImperativeHandle(ye,function(){return{onKeyDown:function(pn){var En=pn.which,Cn=pn.ctrlKey;switch(En){case We.Z.N:case We.Z.P:case We.Z.UP:case We.Z.DOWN:{var sn=0;if(En===We.Z.UP?sn=-1:En===We.Z.DOWN?sn=1:He()&&Cn&&(En===We.Z.N?sn=1:En===We.Z.P&&(sn=-1)),sn!==0){var zn=Cr(Gn+sn,sn);cr(zn),Rr(zn,!0)}break}case We.Z.TAB:case We.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),gt&&pn.preventDefault();break}case We.Z.ESC:Xt(!1),gt&&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},Lt);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,nt.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:kt,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:Ie()(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,lt),Tr=(0,Rt.Z)(Pr,Ar),Hr=gr(_n),Br=Rn||!Hr&&vr,Zr="".concat(ir,"-option"),ti=Ie()(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,nt.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(Vt),In=an,kn=function(Te,Ge){var ye=he.useRef({values:new Map,options:new Map}),Re=he.useMemo(function(){var Fe=ye.current,gt=Fe.values,on=Fe.options,un=Te.map(function(Lt){if(Lt.label===void 0){var kt;return(0,Je.Z)((0,Je.Z)({},Lt),{},{label:(kt=gt.get(Lt.value))===null||kt===void 0?void 0:kt.label})}return Lt}),gn=new Map,Xt=new Map;return un.forEach(function(Lt){gn.set(Lt.value,Lt),Xt.set(Lt.value,Ge.get(Lt.value)||on.get(Lt.value))}),ye.current.values=gn,ye.current.options=Xt,un},[Te,Ge]),Se=he.useCallback(function(Fe){return Ge.get(Fe)||ye.current.options.get(Fe)},[Ge]);return[Re,Se]};function rn(Te,Ge){return Oe(Te).join("").toUpperCase().includes(Ge)}var bn=function(Te,Ge,ye,Re,Se){return he.useMemo(function(){if(!ye||Re===!1)return Te;var Fe=Ge.options,gt=Ge.label,on=Ge.value,un=[],gn=typeof Re=="function",Xt=ye.toUpperCase(),Lt=gn?Re:function(fn,Bn){return Se?rn(Bn[Se],Xt):Bn[Fe]?rn(Bn[gt!=="children"?gt:"label"],Xt):rn(Bn[on],Xt)},kt=gn?function(fn){return ot(fn)}:function(fn){return fn};return Te.forEach(function(fn){if(fn[Fe]){var Bn=Lt(ye,kt(fn));if(Bn)un.push(fn);else{var Dn=fn[Fe].filter(function(Tn){return Lt(ye,kt(Tn))});Dn.length&&un.push((0,Je.Z)((0,Je.Z)({},fn),{},(0,ve.Z)({},Fe,Dn)))}return}Lt(ye,kt(fn))&&un.push(fn)}),un},[Te,Re,Se,ye,Ge])},dn=ie(6551),_t=ie(11592),Mt=["children","value"],Tt=["children"];function mt(Te){var Ge=Te,ye=Ge.key,Re=Ge.props,Se=Re.children,Fe=Re.value,gt=(0,Ee.Z)(Re,Mt);return(0,Je.Z)({key:ye,value:Fe!==void 0?Fe:ye,children:Se},gt)}function en(Te){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,_t.Z)(Te).map(function(ye,Re){if(!he.isValidElement(ye)||!ye.type)return null;var Se=ye,Fe=Se.type.isSelectOptGroup,gt=Se.key,on=Se.props,un=on.children,gn=(0,Ee.Z)(on,Tt);return Ge||!Fe?mt(ye):(0,Je.Z)((0,Je.Z)({key:"__RC_SELECT_GRP__".concat(gt===null?Re:gt,"__"),label:gt},gn),{},{options:en(un)})}).filter(function(ye){return ye})}var Yt=function(Ge,ye,Re,Se,Fe){return he.useMemo(function(){var gt=Ge,on=!Ge;on&&(gt=en(ye));var un=new Map,gn=new Map,Xt=function(fn,Bn,Dn){Dn&&typeof Dn=="string"&&fn.set(Bn[Dn],Bn)},Lt=function kt(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,Se),Xt(gn,Tn,Fe)):kt(Tn[Re.options],!0)}};return Lt(gt),{options:gt,valueOptions:un,labelOptions:gn}},[Ge,ye,Re,Se,Fe])},Jt=Yt;function vn(Te){var Ge=he.useRef();Ge.current=Te;var ye=he.useCallback(function(){return Ge.current.apply(Ge,arguments)},[]);return ye}function wn(Te){var Ge=Te.mode,ye=Te.options,Re=Te.children,Se=Te.backfill,Fe=Te.allowClear,gt=Te.placeholder,on=Te.getInputElement,un=Te.showSearch,gn=Te.onSearch,Xt=Te.defaultOpen,Lt=Te.autoFocus,kt=Te.labelInValue,fn=Te.value,Bn=Te.inputValue,Dn=Te.optionLabelProp,Tn=isMultiple(Ge),Xn=un!==void 0?un:Tn||Ge==="combobox",Qn=ye||convertChildrenToData(Re);if(warning(Ge!=="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."),Ge==="tags"||Ge==="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(Ge!=="combobox"||!Dn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ge==="combobox"||!Se,"`backfill` only works with `combobox` mode."),warning(Ge==="combobox"||!on,"`getInputElement` only work with `combobox` mode."),noteOnce(Ge!=="combobox"||!on||!Fe||!gt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),gn&&!Xn&&Ge!=="combobox"&&Ge!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Xt||Lt,"`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(!kt||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(Te,Ge){if(Te){var ye=function Re(Se){for(var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=0;gt<Se.length;gt++){var on=Se[gt];if(on[Ge==null?void 0:Ge.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Fe&&Array.isArray(on[Ge==null?void 0:Ge.options])&&Re(on[Ge==null?void 0:Ge.options],!0))break}};ye(Te)}}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(Te){return!Te||(0,Be.Z)(Te)!=="object"}var It=he.forwardRef(function(Te,Ge){var ye=Te.id,Re=Te.mode,Se=Te.prefixCls,Fe=Se===void 0?"rc-select":Se,gt=Te.backfill,on=Te.fieldNames,un=Te.inputValue,gn=Te.searchValue,Xt=Te.onSearch,Lt=Te.autoClearSearchValue,kt=Lt===void 0?!0:Lt,fn=Te.onSelect,Bn=Te.onDeselect,Dn=Te.dropdownMatchSelectWidth,Tn=Dn===void 0?!0:Dn,Xn=Te.filterOption,Qn=Te.filterSort,Jn=Te.optionFilterProp,Zn=Te.optionLabelProp,Fn=Te.options,Wn=Te.optionRender,Un=Te.children,ur=Te.defaultActiveFirstOption,qn=Te.menuItemSelectedIcon,lr=Te.virtual,ir=Te.direction,er=Te.listHeight,tr=er===void 0?200:er,vr=Te.listItemHeight,mr=vr===void 0?20:vr,cr=Te.labelRender,gr=Te.value,Cr=Te.defaultValue,or=Te.labelInValue,dr=Te.onChange,Gn=Te.maxCount,Sr=(0,Ee.Z)(Te,Mn),Rr=(0,dn.ZP)(ye),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,Ye.Z)("",{value:gn!==void 0?gn:un,postState:function(yr){return yr||""}}),zr=(0,Ce.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,Ye.Z)(Cr,{value:gr}),mn=(0,Ce.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,Ce.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,Je.Z)((0,Je.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(xe(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,Je.Z)((0,Je.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 _e(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 ot(Or(jr.value))});dr(Wr?pr:pr[0],Wr?Nr:Nr[0])}},Xi=he.useState(null),Lr=(0,Ce.Z)(Xi,2),to=Lr[0],ni=Lr[1],Li=he.useState(0),ao=(0,Ce.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),gt&&Re==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[gt,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,ot(Zi)]};if(hr&&fn){var jr=Nr(),_i=(0,Ce.Z)(jr,2),vi=_i[0],ui=_i[1];fn(vi,ui)}else if(!hr&&Bn&&pr!=="clear"){var Xr=Nr(),Hi=(0,Ce.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||kt)&&(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,Je.Z)((0,Je.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(xt,(0,z.Z)({},Sr,{id:Rr,prefixCls:Fe,ref:Ge,omitDomProps:jn,mode:Re,displayValues:Pr,onDisplayValuesChange:ji,direction:ir,searchValue:fr,onSearch:Jr,autoClearSearchValue:kt,onSearchSplit:xo,dropdownMatchSelectWidth:Tn,OptionList:In,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),Ut=It;Ut.Option=et,Ut.OptGroup=Wt;var xn=Ut,hn=xn},22711:function(ln,Zt,ie){"use strict";ie.r(Zt),ie.d(Zt,{ResizableTextArea:function(){return Me},default:function(){return ut}});var z=ie(60499),it=ie(18642),ve=ie(85899),Je=ie(77654),Ce=ie(72190),Ee=ie(42244),Be=ie(92310),Ye=ie.n(Be),we=ie(36901),he=ie(66003),Qe=ie(30292),Ie=ie(18929),St=ie(59301),Ue=ie(43749),Ne=ie(29301),Ve=ie(34280),ze=ie(16089),ht=`
|
|
|
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"],Ot={},dt;function qe(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=Oe.getAttribute("id")||Oe.getAttribute("data-reactid")||Oe.getAttribute("name");if(Xe&&Ot[Dt])return Ot[Dt];var xe=window.getComputedStyle(Oe),fe=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),ft=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),Gt=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),Ct=wt.map(function(Le){return"".concat(Le,":").concat(xe.getPropertyValue(Le))}).join(";"),me={sizingStyle:Ct,paddingSize:ft,borderSize:Gt,boxSizing:fe};return Xe&&Dt&&(Ot[Dt]=me),me}function at(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),dt.setAttribute("name","hiddenTextarea"),document.body.appendChild(dt)),Oe.getAttribute("wrap")?dt.setAttribute("wrap",Oe.getAttribute("wrap")):dt.removeAttribute("wrap");var fe=qe(Oe,Xe),ft=fe.paddingSize,Gt=fe.borderSize,Ct=fe.boxSizing,me=fe.sizingStyle;dt.setAttribute("style","".concat(me,";").concat(ht)),dt.value=Oe.value||Oe.placeholder||"";var Le=void 0,Ze=void 0,Nt,bt=dt.scrollHeight;if(Ct==="border-box"?bt+=Gt:Ct==="content-box"&&(bt-=ft),Dt!==null||xe!==null){dt.value=" ";var zt=dt.scrollHeight-ft;Dt!==null&&(Le=zt*Dt,Ct==="border-box"&&(Le=Le+ft+Gt),bt=Math.max(Le,bt)),xe!==null&&(Ze=zt*xe,Ct==="border-box"&&(Ze=Ze+ft+Gt),Nt=bt>Ze?"":"hidden",bt=Math.min(Ze,bt))}var Ae={height:bt,overflowY:Nt,resize:"none"};return Le&&(Ae.minHeight=Le),Ze&&(Ae.maxHeight=Ze),Ae}var We=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Pt=0,nt=1,tt=2,pt=St.forwardRef(function(Oe,Xe){var Dt=Oe,xe=Dt.prefixCls,fe=Dt.defaultValue,ft=Dt.value,Gt=Dt.autoSize,Ct=Dt.onResize,me=Dt.className,Le=Dt.style,Ze=Dt.disabled,Nt=Dt.onChange,bt=Dt.onInternalAutoSize,zt=(0,Ee.Z)(Dt,We),Ae=(0,Ie.Z)(fe,{value:ft,postState:function(et){return et!=null?et:""}}),$t=(0,Ce.Z)(Ae,2),ct=$t[0],ae=$t[1],te=function(et){ae(et.target.value),Nt==null||Nt(et)},ee=St.useRef();St.useImperativeHandle(Xe,function(){return{textArea:ee.current}});var oe=St.useMemo(function(){return Gt&&(0,Ue.Z)(Gt)==="object"?[Gt.minRows,Gt.maxRows]:[]},[Gt]),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],be=!!Gt,st=function(){try{if(document.activeElement===ee.current){var et=ee.current,Bt=et.selectionStart,Rt=et.selectionEnd,ke=et.scrollTop;ee.current.setSelectionRange(Bt,Rt),ee.current.scrollTop=ke}}catch(He){}},Pe=St.useState(tt),_e=(0,Ce.Z)(Pe,2),ot=_e[0],yt=_e[1],vt=St.useState(),Kt=(0,Ce.Z)(vt,2),jt=Kt[0],Ht=Kt[1],tn=function(){yt(Pt)};(0,Ve.Z)(function(){be&&tn()},[ft,ne,pe,be]),(0,Ve.Z)(function(){if(ot===Pt)yt(nt);else if(ot===nt){var De=at(ee.current,!1,ne,pe);yt(tt),Ht(De)}else st()},[ot]);var Qt=St.useRef(),nn=function(){ze.Z.cancel(Qt.current)},xt=function(et){ot===tt&&(Ct==null||Ct(et),Gt&&(nn(),Qt.current=(0,ze.Z)(function(){tn()})))};St.useEffect(function(){return nn},[]);var qt=be?jt:null,Wt=(0,ve.Z)((0,ve.Z)({},Le),qt);return(ot===Pt||ot===nt)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),St.createElement(Ne.Z,{onResize:xt,disabled:!(Gt||Ct)},St.createElement("textarea",(0,z.Z)({},zt,{ref:ee,style:Wt,className:Ye()(xe,me,(0,it.Z)({},"".concat(xe,"-disabled"),Ze)),disabled:Ze,value:ct,onChange:te})))}),Me=pt,Ke=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],je=St.forwardRef(function(Oe,Xe){var Dt,xe=Oe.defaultValue,fe=Oe.value,ft=Oe.onFocus,Gt=Oe.onBlur,Ct=Oe.onChange,me=Oe.allowClear,Le=Oe.maxLength,Ze=Oe.onCompositionStart,Nt=Oe.onCompositionEnd,bt=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,be=Oe.onClear,st=Oe.onPressEnter,Pe=Oe.readOnly,_e=Oe.autoSize,ot=Oe.onKeyDown,yt=(0,Ee.Z)(Oe,Ke),vt=(0,Ie.Z)(xe,{value:fe,defaultValue:xe}),Kt=(0,Ce.Z)(vt,2),jt=Kt[0],Ht=Kt[1],tn=jt==null?"":String(jt),Qt=St.useState(!1),nn=(0,Ce.Z)(Qt,2),xt=nn[0],qt=nn[1],Wt=St.useRef(!1),De=St.useState(null),et=(0,Ce.Z)(De,2),Bt=et[0],Rt=et[1],ke=(0,St.useRef)(null),He=(0,St.useRef)(null),lt=function(){var Ut;return(Ut=He.current)===null||Ut===void 0?void 0:Ut.textArea},Et=function(){lt().focus()};(0,St.useImperativeHandle)(Xe,function(){var It;return{resizableTextArea:He.current,focus:Et,blur:function(){lt().blur()},nativeElement:((It=ke.current)===null||It===void 0?void 0:It.nativeElement)||lt()}}),(0,St.useEffect)(function(){qt(function(It){return!ee&&It})},[ee]);var Vt=St.useState(null),an=(0,Ce.Z)(Vt,2),In=an[0],kn=an[1];St.useEffect(function(){if(In){var It;(It=lt()).setSelectionRange.apply(It,(0,Je.Z)(In))}},[In]);var rn=(0,he.Z)(ct,$t),bn=(Dt=rn.max)!==null&&Dt!==void 0?Dt:Le,dn=Number(bn)>0,_t=rn.strategy(tn),Mt=!!bn&&_t>bn,Tt=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([lt().selectionStart||0,lt().selectionEnd||0])),Ht(hn),(0,Qe.rJ)(Ut.currentTarget,Ut,Ct,hn)},mt=function(Ut){Wt.current=!0,Ze==null||Ze(Ut)},en=function(Ut){Wt.current=!1,Tt(Ut,Ut.currentTarget.value),Nt==null||Nt(Ut)},Yt=function(Ut){Tt(Ut,Ut.target.value)},Jt=function(Ut){Ut.key==="Enter"&&st&&st(Ut),ot==null||ot(Ut)},vn=function(Ut){qt(!0),ft==null||ft(Ut)},wn=function(Ut){qt(!1),Gt==null||Gt(Ut)},Sn=function(Ut){Ht(""),Et(),(0,Qe.rJ)(lt(),Ut,Ct)},On=bt,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:Ye()("".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=lt())!==null&&xn!==void 0&&xn.style.height&&Rt(!0)},An=!_e&&!$t&&!me;return St.createElement(we.BaseInput,{ref:ke,value:tn,allowClear:me,handleReset:Sn,suffix:On,prefixCls:Ae,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:Ye()(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:xt,className:Ye()(ae,Mt&&"".concat(Ae,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},te),Bt&&!An?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Mn=="string"?Mn:void 0}},hidden:oe,readOnly:Pe,onClear:be},St.createElement(Me,(0,z.Z)({},yt,{autoSize:_e,maxLength:Le,onKeyDown:Jt,onChange:Yt,onFocus:vn,onBlur:wn,onCompositionStart:mt,onCompositionEnd:en,className:Ye()(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:He,readOnly:Pe})))}),ue=je,ut=ue},48911:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return ct}});var z=ie(60499),it=ie(43749),ve=ie(85899),Je=ie(18642),Ce=ie(72190),Ee=ie(42244),Be=ie(92310),Ye=ie.n(Be),we=ie(29301),he=ie(70425),Qe=ie(34280),Ie=ie(59301),St=ie(4676),Ue=Ie.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,pe=ae.prefixCls,be=ae.onInnerResize,st=ae.innerProps,Pe=ae.rtl,_e=ae.extra,ot={},yt={display:"flex",flexDirection:"column"};return oe!==void 0&&(ot={height:ee,position:"relative",overflow:"hidden"},yt=(0,ve.Z)((0,ve.Z)({},yt),{},(0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)({transform:"translateY(".concat(oe,"px)")},Pe?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Ie.createElement("div",{style:ot},Ie.createElement(we.Z,{onResize:function(Kt){var jt=Kt.offsetHeight;jt&&be&&be()}},Ie.createElement("div",(0,z.Z)({style:yt,className:Ye()((0,Je.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},st),ne,_e)))});Ue.displayName="Filler";var Ne=Ue;function Ve(ae){var te=ae.children,ee=ae.setRef,oe=Ie.useCallback(function(se){ee(se)},[]);return Ie.cloneElement(te,{ref:oe})}function ze(ae,te,ee,oe,se,ne,pe,be){var st=be.getKey;return ae.slice(te,ee+1).map(function(Pe,_e){var ot=te+_e,yt=pe(Pe,ot,{style:{width:oe},offsetX:se}),vt=st(Pe);return Ie.createElement(Ve,{key:vt,setRef:function(jt){return ne(Pe,jt)}},yt)})}function ht(ae,te,ee,oe){var se=ee-ae,ne=te-ee,pe=Math.min(se,ne)*2;if(oe<=pe){var be=Math.floor(oe/2);return oe%2?ee+be+1:ee-be}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 be={__EMPTY_ITEM__:!0};function st(Kt){return Kt!==void 0?ee(Kt):be}for(var Pe=null,_e=Math.abs(oe-se)!==1,ot=0;ot<pe.length;ot+=1){var yt=st(ne[ot]),vt=st(pe[ot]);if(yt!==vt){Pe=ot,_e=_e||yt!==st(pe[ot+1]);break}}return Pe===null?null:{index:Pe,multiple:_e}}function Ot(ae,te,ee){var oe=Ie.useState(ae),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],be=Ie.useState(null),st=(0,Ce.Z)(be,2),Pe=st[0],_e=st[1];return Ie.useEffect(function(){var ot=wt(ne||[],ae||[],te);(ot==null?void 0:ot.index)!==void 0&&(ee==null||ee(ot.index),_e(ae[ot.index])),pe(ae)},[ae]),[Pe]}var dt=ie(16089),qe=(typeof navigator=="undefined"?"undefined":(0,it.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),at=qe,We=function(ae,te,ee,oe){var se=(0,Ie.useRef)(!1),ne=(0,Ie.useRef)(null);function pe(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var be=(0,Ie.useRef)({top:ae,bottom:te,left:ee,right:oe});return be.current.top=ae,be.current.bottom=te,be.current.left=ee,be.current.right=oe,function(st,Pe){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=st?Pe<0&&be.current.left||Pe>0&&be.current.right:Pe<0&&be.current.top||Pe>0&&be.current.bottom;return _e&&ot?(clearTimeout(ne.current),se.current=!1):(!ot||se.current)&&pe(),!se.current&&ot}};function Pt(ae,te,ee,oe,se,ne,pe){var be=(0,Ie.useRef)(0),st=(0,Ie.useRef)(null),Pe=(0,Ie.useRef)(null),_e=(0,Ie.useRef)(!1),ot=We(te,ee,oe,se);function yt(Qt,nn){if(dt.Z.cancel(st.current),!ot(!1,nn)){var xt=Qt;if(!xt._virtualHandled)xt._virtualHandled=!0;else return;be.current+=nn,Pe.current=nn,at||xt.preventDefault(),st.current=(0,dt.Z)(function(){var qt=_e.current?10:1;pe(be.current*qt,!1),be.current=0})}}function vt(Qt,nn){pe(nn,!0),at||Qt.preventDefault()}var Kt=(0,Ie.useRef)(null),jt=(0,Ie.useRef)(null);function Ht(Qt){if(ae){dt.Z.cancel(jt.current),jt.current=(0,dt.Z)(function(){Kt.current=null},2);var nn=Qt.deltaX,xt=Qt.deltaY,qt=Qt.shiftKey,Wt=nn,De=xt;(Kt.current==="sx"||!Kt.current&&qt&&xt&&!nn)&&(Wt=xt,De=0,Kt.current="sx");var et=Math.abs(Wt),Bt=Math.abs(De);Kt.current===null&&(Kt.current=ne&&et>Bt?"x":"y"),Kt.current==="y"?yt(Qt,De):vt(Qt,Wt)}}function tn(Qt){ae&&(_e.current=Qt.detail===Pe.current)}return[Ht,tn]}function nt(ae,te,ee,oe){var se=Ie.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Ce.Z)(se,2),pe=ne[0],be=ne[1],st=function(_e){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_e,yt=pe.get(_e),vt=pe.get(ot);if(yt===void 0||vt===void 0)for(var Kt=ae.length,jt=be.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(be[jt]=(be[jt-1]||0)+nn,Qt===_e&&(yt=jt),Qt===ot&&(vt=jt),yt!==void 0&&vt!==void 0)break}return{top:be[yt-1]||0,bottom:be[vt]}};return st}var tt=ie(38705),pt=ie(17212),Me=function(){function ae(){(0,tt.Z)(this,ae),(0,Je.Z)(this,"maps",void 0),(0,Je.Z)(this,"id",0),(0,Je.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,pt.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}(),Ke=Me;function je(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function ue(ae,te,ee){var oe=Ie.useState(0),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],be=(0,Ie.useRef)(new Map),st=(0,Ie.useRef)(new Ke),Pe=(0,Ie.useRef)(0);function _e(){Pe.current+=1}function ot(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;_e();var Kt=function(){var tn=!1;be.current.forEach(function(Qt,nn){if(Qt&&Qt.offsetParent){var xt=Qt.offsetHeight,qt=getComputedStyle(Qt),Wt=qt.marginTop,De=qt.marginBottom,et=je(Wt),Bt=je(De),Rt=xt+et+Bt;st.current.get(nn)!==Rt&&(st.current.set(nn,Rt),tn=!0)}}),tn&&pe(function(Qt){return Qt+1})};if(vt)Kt();else{Pe.current+=1;var jt=Pe.current;Promise.resolve().then(function(){jt===Pe.current&&Kt()})}}function yt(vt,Kt){var jt=ae(vt),Ht=be.current.get(jt);Kt?(be.current.set(jt,Kt),ot()):be.current.delete(jt),!Ht!=!Kt&&(Kt?te==null||te(vt):ee==null||ee(vt))}return(0,Ie.useEffect)(function(){return _e},[]),[yt,ot,st.current,ne]}var ut=14/15;function Oe(ae,te,ee){var oe=(0,Ie.useRef)(!1),se=(0,Ie.useRef)(0),ne=(0,Ie.useRef)(0),pe=(0,Ie.useRef)(null),be=(0,Ie.useRef)(null),st,Pe=function(vt){if(oe.current){var Kt=Math.ceil(vt.touches[0].pageX),jt=Math.ceil(vt.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,vt);nn&&vt.preventDefault(),clearInterval(be.current),nn&&(be.current=setInterval(function(){Qt?Ht*=ut:tn*=ut;var xt=Math.floor(Qt?Ht:tn);(!ee(Qt,xt,!0)||Math.abs(xt)<=.1)&&clearInterval(be.current)},16))}},_e=function(){oe.current=!1,st()},ot=function(vt){st(),vt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(vt.touches[0].pageX),ne.current=Math.ceil(vt.touches[0].pageY),pe.current=vt.target,pe.current.addEventListener("touchmove",Pe,{passive:!1}),pe.current.addEventListener("touchend",_e,{passive:!0}))};st=function(){pe.current&&(pe.current.removeEventListener("touchmove",Pe),pe.current.removeEventListener("touchend",_e))},(0,Qe.Z)(function(){return ae&&te.current.addEventListener("touchstart",ot,{passive:!0}),function(){var yt;(yt=te.current)===null||yt===void 0||yt.removeEventListener("touchstart",ot),st(),clearInterval(be.current)}},[ae])}function Xe(ae){return Math.floor(Math.pow(ae,.5))}function Dt(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function xe(ae,te,ee){Ie.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,pe,be=function(){dt.Z.cancel(ne)},st=function yt(){be(),ne=(0,dt.Z)(function(){ee(pe),yt()})},Pe=function(){se=!1,be()},_e=function(vt){if(!(vt.target.draggable||vt.button!==0)){var Kt=vt;Kt._virtualHandled||(Kt._virtualHandled=!0,se=!0)}},ot=function(vt){if(se){var Kt=Dt(vt,!1),jt=oe.getBoundingClientRect(),Ht=jt.top,tn=jt.bottom;if(Kt<=Ht){var Qt=Ht-Kt;pe=-Xe(Qt),st()}else if(Kt>=tn){var nn=Kt-tn;pe=Xe(nn),st()}else be()}};return oe.addEventListener("mousedown",_e),oe.ownerDocument.addEventListener("mouseup",Pe),oe.ownerDocument.addEventListener("mousemove",ot),oe.ownerDocument.addEventListener("dragend",Pe),function(){oe.removeEventListener("mousedown",_e),oe.ownerDocument.removeEventListener("mouseup",Pe),oe.ownerDocument.removeEventListener("mousemove",ot),oe.ownerDocument.removeEventListener("dragend",Pe),be()}}},[ae])}var fe=10;function ft(ae,te,ee,oe,se,ne,pe,be){var st=Ie.useRef(),Pe=Ie.useState(null),_e=(0,Ce.Z)(Pe,2),ot=_e[0],yt=_e[1];return(0,Qe.Z)(function(){if(ot&&ot.times<fe){if(!ae.current){yt(function(rn){return(0,ve.Z)({},rn)});return}ne();var vt=ot.targetAlign,Kt=ot.originAlign,jt=ot.index,Ht=ot.offset,tn=ae.current.clientHeight,Qt=!1,nn=vt,xt=null;if(tn){for(var qt=vt||Kt,Wt=0,De=0,et=0,Bt=Math.min(te.length-1,jt),Rt=0;Rt<=Bt;Rt+=1){var ke=se(te[Rt]);De=Wt;var He=ee.get(ke);et=De+(He===void 0?oe:He),Wt=et}for(var lt=qt==="top"?Ht:tn-Ht,Et=Bt;Et>=0;Et-=1){var Vt=se(te[Et]),an=ee.get(Vt);if(an===void 0){Qt=!0;break}if(lt-=an,lt<=0)break}switch(qt){case"top":xt=De-Ht;break;case"bottom":xt=et-tn+Ht;break;default:{var In=ae.current.scrollTop,kn=In+tn;De<In?nn="top":et>kn&&(nn="bottom")}}xt!==null&&pe(xt),xt!==ot.lastTop&&(Qt=!0)}Qt&&yt((0,ve.Z)((0,ve.Z)({},ot),{},{times:ot.times+1,targetAlign:nn,lastTop:xt}))}},[ot,ae.current]),function(vt){if(vt==null){be();return}if(dt.Z.cancel(st.current),typeof vt=="number")pe(vt);else if(vt&&(0,it.Z)(vt)==="object"){var Kt,jt=vt.align;"index"in vt?Kt=vt.index:Kt=te.findIndex(function(Qt){return se(Qt)===vt.key});var Ht=vt.offset,tn=Ht===void 0?0:Ht;yt({times:0,index:Kt,offset:tn,originAlign:jt})}}}var Gt=Ie.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,be=ae.onStopMove,st=ae.onScroll,Pe=ae.horizontal,_e=ae.spinSize,ot=ae.containerSize,yt=ae.style,vt=ae.thumbStyle,Kt=ae.showScrollBar,jt=Ie.useState(!1),Ht=(0,Ce.Z)(jt,2),tn=Ht[0],Qt=Ht[1],nn=Ie.useState(null),xt=(0,Ce.Z)(nn,2),qt=xt[0],Wt=xt[1],De=Ie.useState(null),et=(0,Ce.Z)(De,2),Bt=et[0],Rt=et[1],ke=!oe,He=Ie.useRef(),lt=Ie.useRef(),Et=Ie.useState(Kt),Vt=(0,Ce.Z)(Et,2),an=Vt[0],In=Vt[1],kn=Ie.useRef(),rn=function(){Kt===!0||Kt===!1||(clearTimeout(kn.current),In(!0),kn.current=setTimeout(function(){In(!1)},3e3))},bn=ne-ot||0,dn=ot-_e||0,_t=Ie.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()},Tt=Ie.useRef({top:_t,dragging:tn,pageY:qt,startTop:Bt});Tt.current={top:_t,dragging:tn,pageY:qt,startTop:Bt};var mt=function(On){Qt(!0),Wt(Dt(On,Pe)),Rt(Tt.current.top),pe(),On.stopPropagation(),On.preventDefault()};Ie.useEffect(function(){var Sn=function(An){An.preventDefault()},On=He.current,Mn=lt.current;return On.addEventListener("touchstart",Sn,{passive:!1}),Mn.addEventListener("touchstart",mt,{passive:!1}),function(){On.removeEventListener("touchstart",Sn),Mn.removeEventListener("touchstart",mt)}},[]);var en=Ie.useRef();en.current=bn;var Yt=Ie.useRef();Yt.current=dn,Ie.useEffect(function(){if(tn){var Sn,On=function(An){var It=Tt.current,Ut=It.dragging,xn=It.pageY,hn=It.startTop;dt.Z.cancel(Sn);var Te=He.current.getBoundingClientRect(),Ge=ot/(Pe?Te.width:Te.height);if(Ut){var ye=(Dt(An,Pe)-xn)*Ge,Re=hn;!ke&&Pe?Re-=ye:Re+=ye;var Se=en.current,Fe=Yt.current,gt=Fe?Re/Fe:0,on=Math.ceil(gt*Se);on=Math.max(on,0),on=Math.min(on,Se),Sn=(0,dt.Z)(function(){st(on,Pe)})}},Mn=function(){Qt(!1),be()};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),dt.Z.cancel(Sn)}}},[tn]),Ie.useEffect(function(){return rn(),function(){clearTimeout(kn.current)}},[se]),Ie.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,Je.Z)({height:"100%",width:_e},ke?"left":"right",_t))):(Object.assign(vn,(0,Je.Z)({width:8,top:0,bottom:0},ke?"right":"left",0)),Object.assign(wn,{width:"100%",height:_e,top:_t})),Ie.createElement("div",{ref:He,className:Ye()(Jt,(0,Je.Z)((0,Je.Z)((0,Je.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},Ie.createElement("div",{ref:lt,className:Ye()("".concat(Jt,"-thumb"),(0,Je.Z)({},"".concat(Jt,"-thumb-moving"),tn)),style:(0,ve.Z)((0,ve.Z)({},wn),vt),onMouseDown:mt}))}),Ct=Gt,me=20;function Le(){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 Ze=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Nt=[],bt={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,be=ae.fullHeight,st=be===void 0?!0:be,Pe=ae.style,_e=ae.data,ot=ae.children,yt=ae.itemKey,vt=ae.virtual,Kt=ae.direction,jt=ae.scrollWidth,Ht=ae.component,tn=Ht===void 0?"div":Ht,Qt=ae.onScroll,nn=ae.onVirtualScroll,xt=ae.onVisibleChange,qt=ae.innerProps,Wt=ae.extraRender,De=ae.styles,et=ae.showScrollBar,Bt=et===void 0?"optional":et,Rt=(0,Ee.Z)(ae,Ze),ke=Ie.useCallback(function(pn){return typeof yt=="function"?yt(pn):pn==null?void 0:pn[yt]},[yt]),He=ue(ke,null,null),lt=(0,Ce.Z)(He,4),Et=lt[0],Vt=lt[1],an=lt[2],In=lt[3],kn=!!(vt!==!1&&ne&&pe),rn=Ie.useMemo(function(){return Object.values(an.maps).reduce(function(pn,En){return pn+En},0)},[an.id,an.maps]),bn=kn&&_e&&(Math.max(pe*_e.length,rn)>ne||!!jt),dn=Kt==="rtl",_t=Ye()(oe,(0,Je.Z)({},"".concat(oe,"-rtl"),dn),se),Mt=_e||Nt,Tt=(0,Ie.useRef)(),mt=(0,Ie.useRef)(),en=(0,Ie.useRef)(),Yt=(0,Ie.useState)(0),Jt=(0,Ce.Z)(Yt,2),vn=Jt[0],wn=Jt[1],Sn=(0,Ie.useState)(0),On=(0,Ce.Z)(Sn,2),Mn=On[0],jn=On[1],An=(0,Ie.useState)(!1),It=(0,Ce.Z)(An,2),Ut=It[0],xn=It[1],hn=function(){xn(!0)},Te=function(){xn(!1)},Ge={getKey:ke};function ye(pn){wn(function(En){var Cn;typeof pn=="function"?Cn=pn(En):Cn=pn;var sn=ur(Cn);return Tt.current.scrollTop=sn,sn})}var Re=(0,Ie.useRef)({start:0,end:Mt.length}),Se=(0,Ie.useRef)(),Fe=Ot(Mt,ke),gt=(0,Ce.Z)(Fe,1),on=gt[0];Se.current=on;var un=Ie.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:Mt.length-1,offset:void 0};if(!bn){var pn;return{scrollHeight:((pn=mt.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,Lt=un.end,kt=un.offset;Re.current.start=Xt,Re.current.end=Lt,Ie.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;ye(function(yn){return yn+mn})}}}an.resetRecord()},[gn]);var fn=Ie.useState({width:0,height:ne}),Bn=(0,Ce.Z)(fn,2),Dn=Bn[0],Tn=Bn[1],Xn=function(En){Tn({width:En.offsetWidth,height:En.offsetHeight})},Qn=(0,Ie.useRef)(),Jn=(0,Ie.useRef)(),Zn=Ie.useMemo(function(){return Le(Dn.width,jt)},[Dn.width,jt]),Fn=Ie.useMemo(function(){return Le(Dn.height,gn)},[Dn.height,gn]),Wn=gn-ne,Un=(0,Ie.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=We(qn,lr,ir,er),vr=function(){return{x:dn?-Mn:Mn,y:vn}},mr=(0,Ie.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()):ye(Cn)}function Cr(pn){var En=pn.currentTarget.scrollTop;En!==vn&&ye(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()):ye(function(Cn){var sn=Cn+pn;return sn})}),Gn=Pt(kn,qn,lr,ir,er,!!jt,dr),Sr=(0,Ce.Z)(Gn,2),Rr=Sr[0],Wr=Sr[1];Oe(kn,Tt,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}),xe(bn,Tt,function(pn){ye(function(En){return En+pn})}),(0,Qe.Z)(function(){function pn(Cn){var sn=qn&&Cn.detail<0,zn=lr&&Cn.detail>0;kn&&!sn&&!zn&&Cn.preventDefault()}var En=Tt.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,Qe.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=ft(Tt,Mt,an,pe,ke,function(){return Vt(!0)},ye,Er);Ie.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,Qe.Z)(function(){if(xt){var pn=Mt.slice(Xt,Lt+1);xt(pn,Mt)}},[Xt,Lt,Mt]);var Ir=nt(Mt,ke,an,pe),Dr=Wt==null?void 0:Wt({start:Xt,end:Lt,virtual:bn,offsetX:Mn,offsetY:kt,rtl:dn,getSize:Ir}),zr=ze(Mt,Xt,Lt,jt,Mn,Et,ot,Ge),fr=null;ne&&(fr=(0,ve.Z)((0,Je.Z)({},st?"height":"maxHeight",ne),bt),kn&&(fr.overflowY="hidden",jt&&(fr.overflowX="hidden"),Ut&&(fr.pointerEvents="none")));var Yn={};return dn&&(Yn.dir="rtl"),Ie.createElement("div",(0,z.Z)({ref:en,style:(0,ve.Z)((0,ve.Z)({},Pe),{},{position:"relative"}),className:_t},Yn,Rt),Ie.createElement(we.Z,{onResize:Xn},Ie.createElement(tn,{className:"".concat(oe,"-holder"),style:fr,ref:Tt,onScroll:Cr,onMouseEnter:Er},Ie.createElement(Ne,{prefixCls:oe,height:gn,offsetX:Mn,offsetY:kt,scrollWidth:jt,onInnerResize:Vt,ref:mt,innerProps:qt,rtl:dn,extra:Dr},zr))),bn&&gn>ne&&Ie.createElement(Ct,{ref:Qn,prefixCls:oe,scrollOffset:vn,scrollRange:gn,rtl:dn,onScroll:gr,onStartMove:hn,onStopMove:Te,spinSize:Fn,containerSize:Dn.height,style:De==null?void 0:De.verticalScrollBar,thumbStyle:De==null?void 0:De.verticalScrollBarThumb,showScrollBar:Bt}),bn&&jt>Dn.width&&Ie.createElement(Ct,{ref:Jn,prefixCls:oe,scrollOffset:Mn,scrollRange:jt,rtl:dn,onScroll:gr,onStartMove:hn,onStopMove:Te,spinSize:Zn,containerSize:Dn.width,horizontal:!0,style:De==null?void 0:De.horizontalScrollBar,thumbStyle:De==null?void 0:De.horizontalScrollBarThumb,showScrollBar:Bt}))}var Ae=Ie.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,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ye}});const z=we=>typeof we=="object"&&we!=null&&we.nodeType===1,it=(we,he)=>(!he||we!=="hidden")&&we!=="visible"&&we!=="clip",ve=(we,he)=>{if(we.clientHeight<we.scrollHeight||we.clientWidth<we.scrollWidth){const Qe=getComputedStyle(we,null);return it(Qe.overflowY,he)||it(Qe.overflowX,he)||(Ie=>{const St=(Ue=>{if(!Ue.ownerDocument||!Ue.ownerDocument.defaultView)return null;try{return Ue.ownerDocument.defaultView.frameElement}catch(Ne){return null}})(Ie);return!!St&&(St.clientHeight<Ie.scrollHeight||St.clientWidth<Ie.scrollWidth)})(we)}return!1},Je=(we,he,Qe,Ie,St,Ue,Ne,Ve)=>Ue<we&&Ne>he||Ue>we&&Ne<he?0:Ue<=we&&Ve<=Qe||Ne>=he&&Ve>=Qe?Ue-we-Ie:Ne>he&&Ve<Qe||Ue<we&&Ve>Qe?Ne-he+St:0,Ce=we=>{const he=we.parentElement;return he==null?we.getRootNode().host||null:he},Ee=(we,he)=>{var Qe,Ie,St,Ue;if(typeof document=="undefined")return[];const{scrollMode:Ne,block:Ve,inline:ze,boundary:ht,skipOverflowHiddenElements:wt}=he,Ot=typeof ht=="function"?ht:Ct=>Ct!==ht;if(!z(we))throw new TypeError("Invalid target");const dt=document.scrollingElement||document.documentElement,qe=[];let at=we;for(;z(at)&&Ot(at);){if(at=Ce(at),at===dt){qe.push(at);break}at!=null&&at===document.body&&ve(at)&&!ve(document.documentElement)||at!=null&&ve(at,wt)&&qe.push(at)}const We=(Ie=(Qe=window.visualViewport)==null?void 0:Qe.width)!=null?Ie:innerWidth,Pt=(Ue=(St=window.visualViewport)==null?void 0:St.height)!=null?Ue:innerHeight,{scrollX:nt,scrollY:tt}=window,{height:pt,width:Me,top:Ke,right:je,bottom:ue,left:ut}=we.getBoundingClientRect(),{top:Oe,right:Xe,bottom:Dt,left:xe}=(Ct=>{const me=window.getComputedStyle(Ct);return{top:parseFloat(me.scrollMarginTop)||0,right:parseFloat(me.scrollMarginRight)||0,bottom:parseFloat(me.scrollMarginBottom)||0,left:parseFloat(me.scrollMarginLeft)||0}})(we);let fe=Ve==="start"||Ve==="nearest"?Ke-Oe:Ve==="end"?ue+Dt:Ke+pt/2-Oe+Dt,ft=ze==="center"?ut+Me/2-xe+Xe:ze==="end"?je+Xe:ut-xe;const Gt=[];for(let Ct=0;Ct<qe.length;Ct++){const me=qe[Ct],{height:Le,width:Ze,top:Nt,right:bt,bottom:zt,left:Ae}=me.getBoundingClientRect();if(Ne==="if-needed"&&Ke>=0&&ut>=0&&ue<=Pt&&je<=We&&(me===dt&&!ve(me)||Ke>=Nt&&ue<=zt&&ut>=Ae&&je<=bt))return Gt;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,be="offsetWidth"in me?me.offsetWidth===0?0:Ze/me.offsetWidth:0,st="offsetHeight"in me?me.offsetHeight===0?0:Le/me.offsetHeight:0;if(dt===me)oe=Ve==="start"?fe:Ve==="end"?fe-Pt:Ve==="nearest"?Je(tt,tt+Pt,Pt,ae,ee,tt+fe,tt+fe+pt,pt):fe-Pt/2,se=ze==="start"?ft:ze==="center"?ft-We/2:ze==="end"?ft-We:Je(nt,nt+We,We,ct,te,nt+ft,nt+ft+Me,Me),oe=Math.max(0,oe+tt),se=Math.max(0,se+nt);else{oe=Ve==="start"?fe-Nt-ae:Ve==="end"?fe-zt+ee+pe:Ve==="nearest"?Je(Nt,zt,Le,ae,ee+pe,fe,fe+pt,pt):fe-(Nt+Le/2)+pe/2,se=ze==="start"?ft-Ae-ct:ze==="center"?ft-(Ae+Ze/2)+ne/2:ze==="end"?ft-bt+te+ne:Je(Ae,bt,Ze,ct,te+ne,ft,ft+Me,Me);const{scrollLeft:Pe,scrollTop:_e}=me;oe=st===0?0:Math.max(0,Math.min(_e+oe/st,me.scrollHeight-Le/st+pe)),se=be===0?0:Math.max(0,Math.min(Pe+se/be,me.scrollWidth-Ze/be+ne)),fe+=_e-oe,ft+=Pe-se}Gt.push({el:me,top:oe,left:se})}return Gt},Be=we=>we===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(we)?we:{block:"start",inline:"nearest"};function Ye(we,he){if(!we.isConnected||!(St=>{let Ue=St;for(;Ue&&Ue.parentNode;){if(Ue.parentNode===document)return!0;Ue=Ue.parentNode instanceof ShadowRoot?Ue.parentNode.host:Ue.parentNode}return!1})(we))return;const Qe=(St=>{const Ue=window.getComputedStyle(St);return{top:parseFloat(Ue.scrollMarginTop)||0,right:parseFloat(Ue.scrollMarginRight)||0,bottom:parseFloat(Ue.scrollMarginBottom)||0,left:parseFloat(Ue.scrollMarginLeft)||0}})(we);if((St=>typeof St=="object"&&typeof St.behavior=="function")(he))return he.behavior(Ee(we,he));const Ie=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:St,top:Ue,left:Ne}of Ee(we,Be(he))){const Ve=Ue-Qe.top+Qe.bottom,ze=Ne-Qe.left+Qe.right;St.scroll({top:Ve,left:ze,behavior:Ie})}}}}]);
|