(self.webpackChunk=self.webpackChunk||[]).push([[4795],{40001:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},26227:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},41464:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},73331:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},15277:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},61481:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},33853:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},61485:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},47472:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},87395:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(60499),at=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Ke=ge,be=ie(7657),we=function(fe,Je){return at.createElement(be.Z,(0,z.Z)({},fe,{ref:Je,icon:Ke}))},Ne=at.forwardRef(we),Ze=Ne},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(an,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 an={},Zt="5.0",ie={},z=null,at=!1,ge=!1,Ke=null,be=!1,we=null,Ne=null,Ze=0;Ze4?parseFloat(Ie):5};an.setHTML5Codebase=function(Ie,_e){Ne=Ie,Te(Ie,_e)},an.setJavaCodebase=an.setJavaCodebaseVersion=an.isCompiledInstalled=an.setPreCompiledScriptPath=an.setPreCompiledResourcePath=function(){},an.setHTML5CodebaseVersion=function(Ie,_e){var ct=parseFloat(Ie);if(ct!==NaN&&ct<5){console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead.");return}we=Ie,se(Ie,_e)},an.getHTML5CodebaseVersion=function(){return rt},an.getParameters=function(){return ie},an.setFontsCSSURL=function(Ie){Rt=Ie},an.setGiacJSURL=function(Ie){},an.setJNLPFile=function(Ie){fe=Ie},an.setJNLPBaseDir=function(Ie){},an.inject=function(){function Ie(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var _e="auto",ct=ie.id,Yt,Dt=!1,$t=0;$t=5)return!0;var Ie=an.getAppletObject();return Ie&&typeof Ie.recalculateEnvironments=="function"?(Ie.recalculateEnvironments(),!0):!1},an.startAnimation=function(){var Ie=an.getAppletObject();return Ie&&typeof Ie.startAnimation=="function"?(Ie.startAnimation(),!0):!1},an.stopAnimation=function(){var Ie=an.getAppletObject();return Ie&&typeof Ie.stopAnimation=="function"?(Ie.stopAnimation(),!0):!1},an.getAppletObject=function(){var Ie=ie.id!==void 0?ie.id:"ggbApplet";return window[Ie]},an.resize=function(){};var St=function(Ie,_e,ct){var Yt=document.createElement("param");Yt.setAttribute("name",_e),Yt.setAttribute("value",ct),Ie.appendChild(Yt)},We=function(Ie){return Ie&&Ie!=="false"},yt=function(Ie,_e,ct){mt(rt)<=4.2&&(ct=!0);var Yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==rt||ggbHTML5LoadedCodebaseIsWebSimple&&!Le)&&(Yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Dt=document.createElement("div");Dt.classList.add("appletParameters","notranslate");var $t=_e.width,je=_e.height;if(_e.disableAutoScale=_e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():_e.disableAutoScale,_e.width!==void 0)if(mt(rt)<=4.4)We(_e.showToolBar)&&(_e.height-=7),We(_e.showAlgebraInput)&&(_e.height-=37),_e.width<605&&We(_e.showToolBar)&&(_e.width=605,$t=605);else{var Gt=100;(We(_e.showToolBar)||We(_e.showMenuBar))&&(_e.hasOwnProperty("customToolBar")&&(_e.customToolbar=_e.customToolBar),Gt=We(_e.showMenuBar)?245:155),$t=5?(_e.appletOnLoad=function(Mt){var pt=Ie.querySelector(".ggb_preview");pt&&pt.parentNode.removeChild(pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Mt)},ee||te.appendChild(oe)):Dt.appendChild(oe),te.appendChild(Dt),ee||Ie.appendChild(te),setTimeout(function(){an.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(Dt),Ie.appendChild(ue),_e.appletOnLoad=function(Mt){an.resize(),ae(Mt)}}function ne(Mt,pt){pt&&typeof pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Mt,pt.appletOnLoad):renderGGBElement(Mt),Ct("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",pt)}function he(Mt,pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Mt,params:pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Kt){ne(Kt.article,Kt.params)}),html5AppletsToProcess=null)},mt(rt)<5&&(Mt.className+=" geogebraweb")):ne(Mt,pt)}if(Yt){scriptLoadStarted=!0;for(var xe=0;xe0?(bt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):yt(bt,_e,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Pt=Yt,yt(Ie,_e,!1);if(!window.GGBT_wsf_view)for(je=0;jeIe/4*3&&(bt=Ie/4*3),ae=bt/5.8,Gt.setAttribute("src",xt),Gt.setAttribute("width",bt),Gt.setAttribute("height",ae);var te=(Ie-bt)/2,ee=(_e-ae)/2;Gt.style.left=te+"px",Gt.style.top=ee+"px",Dt.appendChild(Gt)}}return Dt.appendChild(je),Dt},At=function(Ie){return Ie=Ie.toLowerCase(),Ie==="html5"||Ie==="screenshot"?Ie:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],se=function(Ie,_e){if(rt=Ie,_e){Te(rt,!0);return}var ct=!at;if(ct){var Yt=mt(rt);!isNaN(Yt)&&Yt<4.4&&(ct=!1)}var Dt,$t;window.location.protocol.substr(0,4)==="http"?Dt=window.location.protocol:Dt="http:";var je=rt.indexOf("//");je>0?$t=rt:je===0?$t=Dt+rt:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Gt in ye)if(rt.slice(ye[Gt].length*-1)===ye[Gt]||rt.slice((ye[Gt].length+1)*-1)===ye[Gt]+"/"){Te($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ct&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!We(ie.showToolBar)&&!We(ie.showMenuBar)&&!We(ie.showAlgebraInput)&&!We(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?$t+="webSimple/":$t+="web3d/",Te($t,!1)},Te=function(Ie,_e){if(Ie.requirejs){Je=Ie;return}Ie.slice(-1)!=="/"&&(Ie+="/"),Je=Ie,_e===null&&(_e=Ie.indexOf("http")===-1),Se=_e,ke="web.nocache.js",Le=!1;var ct=Je.split("/");ct.length>1&&(!_e&&ct[ct.length-2]==="webSimple"?(ke="webSimple.nocache.js",Le=!0):ye.indexOf(ct[ct.length-2])>=0&&(ke=ct[ct.length-2]+".nocache.js")),ct=Ie.split("/"),rt=ct[ct.length-3],rt.substr(0,4)==="test"?rt=rt.substr(4,1)+"."+rt.substr(5,1):(rt.substr(0,3)==="war"||rt.substr(0,4)==="beta")&&(rt="5.0");var Yt=parseFloat(rt);Yt!==NaN&&Yt<5&&Ie.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Yt+" is deprecated. Using version latest instead."),se("5.0",_e))},Ct=function(Ie,_e){window.console&&window.console.log&&(!_e||typeof _e.showLogging=="undefined"||_e.showLogging&&_e.showLogging!=="false")&&console.log(Ie)};ie.material_id!==void 0?kt(Et):Et();function Et(){var Ie=Zt;we!==null?Ie=we:parseFloat(Ie)<5&&(Ie="5.0"),se(Ie,!1),Ne!==null&&Te(Ne,Se),be=!0}return an},GGBAppletUtils=function(){"use strict";function an(){return window.GGBT_wsf_edit!==void 0}function Zt(be,we){we!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+we+","+we+")",be.style.webkitTransform="scale("+we+","+we+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function ie(be,we,Ne,Ze,Me,fe){var Je=null;if(fe!=null&&fe!="")for(var Se=be.parentNode;Se!=null;)if((" "+Se.className+" ").indexOf(" "+fe+" ")>-1){Je=Se;break}else Se=Se.parentNode;var Pt=0,rt=0,ke=0,Le=0,Ae=0,xt=0,Ot=0;if(Je)Pt=Je.offsetWidth,rt=Math.max(Ze?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Pt=Math.min(window.innerWidth,document.documentElement.clientWidth),rt=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=Pt):(Pt=window.innerWidth,rt=window.innerHeight,ke=window.innerWidth),be){var Rt=be.getBoundingClientRect();Rt.left>0&&Rt.left<=Pt&&(Me===void 0||!Me)&&(document.dir==="rtl"?(Ae=Pt-Rt.width-Rt.left,xt=ke<=480?10:30):(xt=Rt.left,Ae=ke<=480?10:30),Le=xt+Ae)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Le=40,Ot=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Le=0,Ot=40)}}return be&&((Ne===void 0||!Ne)&&we>0&&we+Le1&&(fe=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Me=z(be,we,fe,Ne,be.scaleContainerClass);else return Ze;return fe&&(!be.hasOwnProperty("scale")||Ze===1)?Me:Math.min(Ze,Me)}function ge(be){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=be.getBoundingClientRect(),Me=(we-Ze.width)/2,fe=(Ne-Ze.height)/2;fe<0&&(fe=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?be.style.left="40px":be.style.left=Me+"px",be.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?be.style.top="40px":be.style.top=fe+"px",be.style.left=Me+"px")}function Ke(be,we){var Ne=be.querySelector(".appletParameters");if(Ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==Ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Ne.parentElement&&/fullscreen/.test(Ne.parentElement.className))return;var Ze=at(we,be);an()&&Ne.setAttribute("data-param-scale",Ze);for(var Me=null,fe=0;fe=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(an){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(an){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(an){var Zt=c[an];return Zt==null?null:Zt},r=d,webModule.__errFn=e}function B(){function an(be){var we=be.lastIndexOf(rb);we==-1&&(we=be.length);var Ne=be.indexOf(sb);Ne==-1&&(Ne=be.length);var Ze=be.lastIndexOf(tb,Math.min(Ne,we));return Ze>=O?be.substring(O,Ze+P):W}function Zt(be){if(!be.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=be+vb,be=an(we.src)}return be}function ie(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function z(){for(var be=o.getElementsByTagName(_),we=O;weO?be[be.length-P].href:W}function ge(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ke=ie();return Ke==W&&(Ke=z()),Ke==W&&(Ke=at()),Ke==W&&ge()&&(Ke=an(o.location.href)),Ke=Zt(Ke),Ke}function C(an){return an.match(/^\//)||an.match(/^[a-zA-Z]+:\/\//)?an:webModule.__moduleBase+an}function D(){var an=[],Zt=O,ie=[],z=[];function at(be){var we=z[be](),Ne=ie[be];if(we in Ne)return we;var Ze=[];for(var Me in Ne)Ze[Ne[Me]]=Me;throw r&&r(be,Ze,we),null}if(__gwt_isKnownPropertyValue=function(be,we){return we in ie[be]},webModule.__getPropMap=function(){var be={};for(var we in ie)ie.hasOwnProperty(we)&&(be[we]=at(we));return be},webModule.__computePropValue=at,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var Ke=ge.indexOf(Db);Ke!=-1&&(Zt=parseInt(ge.substring(Ke+P),$),ge=ge.substring(O,Ke))}catch(be){}return webModule.__softPermutationId=Zt,C(ge+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(an,Zt,ie){"use strict";ie.d(Zt,{Ax:function(){return Ke},Ds:function(){return be},KI:function(){return Ne},SI:function(){return ge},f1:function(){return at}});var z=ie(14185);function at(Ze){let Me=!0;if(Ze.length>0){for(let fe=0;fenew Promise((ke,Le)=>{var Ae=Rt=>{try{Ot(rt.next(Rt))}catch(wt){Le(wt)}},xt=Rt=>{try{Ot(rt.throw(Rt))}catch(wt){Le(wt)}},Ot=Rt=>Rt.done?ke(Rt.value):Promise.resolve(Rt.value).then(Ae,xt);Ot((rt=rt.apply(Se,Pt)).next())}),Je=({data:Se,className:Pt,fullWidth:rt,style:ke={},onClose:Le,onOk:Ae,showFullTools:xt,noAssociationId:Ot})=>{const Rt=(0,z.useRef)(null),wt=(0,z.useRef)(null),mt=(0,z.useRef)(null),gt=(0,z.useRef)(null),[Qe,kt]=(0,z.useState)(!1),[st,tt]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(mt.current||(mt.current=document.createElement("style"),document.head.appendChild(mt.current)),Se!=null&&Se.visible?(document.body.setAttribute("data-custom","y-hidden"),mt.current.innerHTML=" html { overflow-y: hidden; }",Se!=null&&Se.src&&St()):(document.body.removeAttribute("data-custom"),mt.current&&(document.head.removeChild(mt.current),mt.current=null)),()=>{document.body.removeAttribute("data-custom"),mt.current&&(document.head.removeChild(mt.current),mt.current=null)}),[Se==null?void 0:Se.visible]);const St=()=>Me(void 0,null,function*(){kt(!0),tt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Ze.ZJ)(Se==null?void 0:Se.src);Rt.current.src="",Rt.current.src=pe,Rt.current.onload=function(){ut()},kt(!1),tt("")}),We=pe=>Me(void 0,null,function*(){kt(!0),tt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Tt=yield(0,Ne.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Se.title,file:pe.dataUrl}});Tt!=null&&Tt.id&&!Ot?(yield(0,Ne.ZP)(`/api/attachments/${Se.id}/add_subitem.json`,{method:"post",body:{subitem_id:Tt==null?void 0:Tt.id,settings:JSON.stringify(pe.state)}})).status===0&&Ae():Tt!=null&&Tt.id&&Ae(Tt),kt(!1),tt("")}),yt=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Be=>{const Ge=document.querySelector(Be.name);Ge&&Ge.setAttribute("title",Be.title)})},ut=()=>{wt.current=new we.hP(Rt.current),wt.current.targetRoot=gt.current,wt.current.addEventListener("render",We),wt.current.addEventListener("beforeclose",Le),xt&&(wt.current.availableMarkerTypes=wt.current.ALL_MARKER_TYPES,wt.current.uiStyleSettings.redoButtonVisible=!0,wt.current.uiStyleSettings.notesButtonVisible=!0,wt.current.uiStyleSettings.zoomButtonVisible=!0,wt.current.uiStyleSettings.zoomOutButtonVisible=!0,wt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=wt.current.uiStyleSettings,wt.current.show(),Se!=null&&Se.snapshotData&&wt.current.restoreState(Se.snapshotData),setTimeout(()=>{window.scrollTo(0,0),yt()},300)};return z.createElement(z.Fragment,null,(Se==null?void 0:Se.visible)&&z.createElement(be.Z,{spinning:Qe,tip:st,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:gt,className:Ke()(at.imageDimensions,Pt,rt?at.fullWidth:""),style:ke},z.createElement("img",{className:at.img,ref:Rt}))))}},9057:function(an,Zt,ie){"use strict";var z=ie(59301),at=ie(77019),ge=ie(5269),Ke=ie(31691),be=ie(7939),we=ie(35883),Ne=ie(74501),Ze=ie(48136),Me=ie(59301);const fe=(0,z.forwardRef)(({callback:Je,showSaveButton:Se,value:Pt=""},rt)=>{const ke=(0,z.useRef)(),Le=[{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 "}]}]}],Ae=[{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}`}]}]}],xt=wt=>{ke.current.setValue(ke.current.getValue()+" "+wt.value+" ")},Ot=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(at.Z,{className:Ne.Z.lists,gutter:[10,10]},Le.map((wt,mt)=>Me.createElement(ge.Z,{flex:"110px",className:Ne.Z.item},Me.createElement("div",null,Me.createElement(we.Z,{value:`$$${wt.value}$$`}),wt.name),Me.createElement("div",{className:Ne.Z.children},wt.children.map((gt,Qe)=>Me.createElement("div",{key:Qe},Me.createElement("h1",null,gt.name),Me.createElement(at.Z,{gutter:[10,10]},gt.data.map((kt,st)=>Me.createElement(ge.Z,{key:st,onClick:()=>xt(kt),className:Ne.Z.diamond},Me.createElement(we.Z,{value:"`$$"+kt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(at.Z,{className:Ne.Z.lists,gutter:[10,10]},Ae.map((wt,mt)=>Me.createElement(ge.Z,{flex:"110px",className:Ne.Z.item},Me.createElement("div",null,Me.createElement(we.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),Me.createElement("div",{className:Ne.Z.children},wt.children.map((gt,Qe)=>Me.createElement("div",{key:Qe},gt.name&&Me.createElement("h1",null,gt.name),Me.createElement(at.Z,{gutter:[10,10]},gt.data.map((kt,st)=>Me.createElement(ge.Z,{key:st,onClick:()=>xt(kt),className:Ne.Z.diamond},Me.createElement(we.Z,{value:"`$$"+kt.value+"$$`"}))))))))))}],Rt=()=>{var wt=document.createElement("div");wt.innerHTML=ke.current.getValue();var mt=wt.innerText;return Je&&Je(mt),mt};return(0,z.useImperativeHandle)(rt,()=>({getData:Rt})),Me.createElement("div",{className:Ne.Z.mathWrap},Me.createElement(Ke.default,{defaultActiveKey:"1",items:Ot}),Me.createElement("math-field",{locale:"zh_cn",className:Ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ke,style:{width:800,marginTop:30,fontSize:18}},Pt||""),Se&&Me.createElement("div",{className:Ne.Z.button},Me.createElement(be.ZP,{size:"large",onClick:Rt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=fe},57940:function(an,Zt,ie){"use strict";ie.d(Zt,{z:function(){return At},Z:function(){return ye}});var z=ie(59301),at=ie(94968),ge=ie(6767),Ke=ie(62957),be=ie(7939),we=ie(14185),Ne=ie(6755),Ze=Object.defineProperty,Me=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Se=(se,Te,Ct)=>Te in se?Ze(se,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):se[Te]=Ct,Pt=(se,Te)=>{for(var Ct in Te||(Te={}))fe.call(Te,Ct)&&Se(se,Ct,Te[Ct]);if(Me)for(var Ct of Me(Te))Je.call(Te,Ct)&&Se(se,Ct,Te[Ct]);return se},rt=(se,Te,Ct)=>new Promise((Et,Ie)=>{var _e=Dt=>{try{Yt(Ct.next(Dt))}catch($t){Ie($t)}},ct=Dt=>{try{Yt(Ct.throw(Dt))}catch($t){Ie($t)}},Yt=Dt=>Dt.done?Et(Dt.value):Promise.resolve(Dt.value).then(_e,ct);Yt((Ct=Ct.apply(se,Te)).next())});const ke="\u3000\u3000";function Le(se){var Te=["Bytes","KB","MB","GB","TB"];if(se==0)return"0 Byte";var Ct=parseInt(""+Math.floor(Math.log(se)/Math.log(1024)),10);return(se/Math.pow(1024,Ct)).toFixed(1)+" "+Te[Ct]}var Ae=({value:se=[],action:Te,onChange:Ct,className:Et,maxSize:Ie=150,title:_e="\u6587\u4EF6\u4E0A\u4F20",accept:ct=null})=>{const Yt={multiple:!1,fileList:se,accept:ct,withCredentials:!0,beforeUpload:$t=>$t.size/1024/1024(ee.name.indexOf(ke)===-1&&(ee.name=`${ee.name}${ke}${Le(ee.size)}`),Pt({},ee))),$t.file.status==="done"&&((Gt=(je=$t.file)==null?void 0:je.response)==null?void 0:Gt.status)===-1){message.error((ae=(bt=$t.file)==null?void 0:bt.response)==null?void 0:ae.message),Ct([]);return}Ct(te)},onRemove:$t=>rt(void 0,null,function*(){const je=$t.size/1024/1024;return $t.status==="uploading"?!0:je0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:se.length>0,ghost:!0},_e),React.createElement("span",{onClick:Dt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Ie,"M)"," ")))},xt=ie(61481),Ot=ie(78267),Rt=Object.defineProperty,wt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Qe=(se,Te,Ct)=>Te in se?Rt(se,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):se[Te]=Ct,kt=(se,Te)=>{for(var Ct in Te||(Te={}))mt.call(Te,Ct)&&Qe(se,Ct,Te[Ct]);if(wt)for(var Ct of wt(Te))gt.call(Te,Ct)&&Qe(se,Ct,Te[Ct]);return se};const st=se=>React.createElement("svg",kt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},se),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",St=Object.defineProperty,We=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,pe=(se,Te,Ct)=>Te in se?St(se,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):se[Te]=Ct,Tt=(se,Te)=>{for(var Ct in Te||(Te={}))yt.call(Te,Ct)&&pe(se,Ct,Te[Ct]);if(We)for(var Ct of We(Te))ut.call(Te,Ct)&&pe(se,Ct,Te[Ct]);return se},Be=(se,Te,Ct)=>new Promise((Et,Ie)=>{var _e=Dt=>{try{Yt(Ct.next(Dt))}catch($t){Ie($t)}},ct=Dt=>{try{Yt(Ct.throw(Dt))}catch($t){Ie($t)}},Yt=Dt=>Dt.done?Et(Dt.value):Promise.resolve(Dt.value).then(_e,ct);Yt((Ct=Ct.apply(se,Te)).next())});const{Dragger:Ge}=at.default;function At(se){let Te=[];return se&&se.length>0&&(Te=se.map(Ct=>({uid:Ct.id,id:Ct.id,name:Ct.title+ke+Ct.filesize,url:Ct.url,filesize:Ct.filesize,status:"done",response:{id:Ct.id}}))),Te}var ye=({value:se,onChange:Te,action:Ct,data:Et,className:Ie,maxSize:_e=150,title:ct="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Yt=!1,accept:Dt="",additionalText:$t,isDragger:je,number:Gt=1e3,aloneClear:bt=!1,realTimeRemove:ae=!0,uploadText:te,setFileProgress:ee,showFileProgress:oe})=>{const[ue,ne]=(0,z.useState)(!1);let[he,xe]=(0,z.useState)(se||[]),[vt,Pe]=(0,z.useState)(1);(0,z.useEffect)(()=>{se&&(vt===1&&xe([...se]),Pe(2),Gt===(se==null?void 0:se.length)&&ne(!0))},[se]);const Ve=()=>{setTimeout(()=>{he.pop(),xe([...he])},500)};oe&&ee(he.some(pt=>pt.status==="uploading"));const dt={multiple:!0,disabled:ue,accept:Dt,withCredentials:!0,fileList:he,beforeUpload:(pt,Kt)=>{const Vt=pt.size/1024/1024;return he.concat(Kt).length>Gt?(he.pop(),xe([...he]),ge.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Gt}\u4E2A\u6587\u4EF6`),bt?Promise.reject():(Ve(),!1)):Vt<_e?!0:(ge.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${_e}MB).`),bt?Promise.reject():(Ve(),!1))},data:Et,action:Ct||`${we.Z.API_SERVER}/api/attachments.json`,onChange(pt){var Kt,Vt,zt,ln;if(pt.file.status==="removed"?he=pt.fileList:he=(0,Ot.uniqBy)([...pt.fileList,...he],"uid"),pt.file.status==="done"&&((Vt=(Kt=pt.file)==null?void 0:Kt.response)==null?void 0:Vt.status)===-1){ge.ZP.error((ln=(zt=pt.file)==null?void 0:zt.response)==null?void 0:ln.message);return}he.length>=Gt?ne(!0):ne(!1),xe([...he]),he=he.map(_t=>{var on,It;return(on=_t==null?void 0:_t.response)!=null&&on.id&&(_t.url=(It=_t==null?void 0:_t.response)==null?void 0:It.url),_t.name.indexOf(ke)===-1&&(_t.name=`${_t.name}${ke}${Le(_t.size)}`),Tt({},_t)}),console.log("info:",pt,he),Te(he)},onRemove:pt=>Be(void 0,null,function*(){if(!ae)return!0;const Kt=()=>Be(void 0,null,function*(){if(pt.response?pt.response.id:pt.id){let zt=yield(0,Ne.JZ)(pt.response?pt.response.id:pt.uid);return Promise.resolve(zt)}else return!0});return Yt?new Promise((Vt,zt)=>{Ke.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:z.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Be(void 0,null,function*(){const ln=yield Kt();ge.ZP.success("\u5220\u9664\u6210\u529F"),Vt(!0)}),onCancel:()=>Vt(!1)})}):yield Kt()})};function Mt(pt){pt.preventDefault(),pt.stopPropagation()}return z.createElement("div",{className:`multi-upload ${Ie||""}`},je&&z.createElement(Ge,Tt({},dt),z.createElement("p",{className:"ant-upload-drag-icon"},z.createElement(xt.Z,null)),z.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",z.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",_e,"MB)"," "),$t),!je&&z.createElement(at.default,Tt({},dt),z.createElement(be.ZP,{disabled:ue,className:"upload_button"},z.createElement("img",{className:"aBtn_img",src:tt}),ct),z.createElement("span",{onClick:Mt,className:"upload_text"},te||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${_e}MB)`)))}},90736:function(an,Zt,ie){"use strict";var z=ie(59301),at=ie(4977),ge=ie(7939),Ke=Object.defineProperty,be=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,fe=(rt,ke,Le)=>ke in rt?Ke(rt,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):rt[ke]=Le,Je=(rt,ke)=>{for(var Le in ke||(ke={}))Ze.call(ke,Le)&&fe(rt,Le,ke[Le]);if(Ne)for(var Le of Ne(ke))Me.call(ke,Le)&&fe(rt,Le,ke[Le]);return rt},Se=(rt,ke)=>be(rt,we(ke));const Pt=({img:rt,buttonProps:ke={},styles:Le={},customText:Ae,ButtonText:xt,ButtonClick:Ot,Buttonclass:Rt,ButtonTwo:wt,imgStyles:mt,loading:gt=!1,className:Qe=""})=>z.createElement("section",{className:`tc animated fadeIn ${Qe}`,style:Je({color:"#999",margin:"100px auto",visibility:gt?"hidden":"visible"},Le)},z.createElement("img",{src:rt||at,style:Se(Je({},mt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},Ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),xt&&z.createElement(ge.ZP,Je({className:Rt,onClick:Ot},ke),xt),wt&&wt);Zt.Z=Pt},86974:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Rt}});var z=ie(59301),at={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ge=ie(7939),Ke=ie(70557),be=ie(34728),we=ie(25399),Ne=ie(76406),Ze=ie(84849),Me=ie(90736),fe=ie(14185),Je=ie(52078),Se=ie(59301),Pt=Object.defineProperty,rt=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ae=(wt,mt,gt)=>mt in wt?Pt(wt,mt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):wt[mt]=gt,xt=(wt,mt)=>{for(var gt in mt||(mt={}))ke.call(mt,gt)&&Ae(wt,gt,mt[gt]);if(rt)for(var gt of rt(mt))Le.call(mt,gt)&&Ae(wt,gt,mt[gt]);return wt},Ot=(wt,mt,gt)=>new Promise((Qe,kt)=>{var st=We=>{try{St(gt.next(We))}catch(yt){kt(yt)}},tt=We=>{try{St(gt.throw(We))}catch(yt){kt(yt)}},St=We=>We.done?Qe(We.value):Promise.resolve(We.value).then(st,tt);St((gt=gt.apply(wt,mt)).next())}),Rt=({editOffice:wt="view",data:mt,issaver:gt,onSaver:Qe,theme:kt,type:st,filename:tt,monacoEditor:St,className:We,style:yt,close:ut,onClose:pe,hasMask:Tt,disabledDownload:Be,onImgDimensions:Ge,showNodata:At,recordInfo:ye})=>{const[se,Te]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ct,Et]=(0,z.useState)(""),[Ie,_e]=(0,z.useState)(),ct=window.ENV==="build"?"/react/build":"",Yt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,$t=10*(1024*1024),je=(0,z.useRef)();mt!=null&&mt.startsWith("/api")&&st!=="txt"&&(mt=fe.Z.API_SERVER+mt);const Gt=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();tt&&St&&(St.filename=tt),(0,z.useEffect)(()=>{var ue,ne;const he=(ne=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:ne.split(";");he==null||he.map(xe=>{let vt=xe.split("=");vt[0]==="_educoder_session"&&Et(vt[1])})},[]),(0,z.useEffect)(()=>{st==="office"&&(mt.indexOf("bigfilescdn.")>-1||mt.indexOf("bigfiles1")>-1?_e({url:mt,fileType:Gt(mt),model:mt.indexOf("model=edit")?"edit":"view"}):mt.indexOf("coze")>-1?_e({url:mt,fileType:"doc",model:"view"}):ae())},[st,mt]);function bt(ue){return Ot(this,null,function*(){ue.data.type==="pdfdata"&&(Qe(ue.data.data),window.removeEventListener("message",bt,!1)),console.log("mess---:",ue.data)})}const ae=()=>Ot(void 0,null,function*(){console.log("data:",mt);let ue=mt;mt.startsWith("http")||(ue=location.origin+ue);let ne=new URL(ue).pathname.split("/").pop();const he=yield(0,Ze.gJ)({attachment_id:ne});he.url=Yt+he.url,_e(he)}),te=()=>{if(mt.startsWith("http")||mt.startsWith("blob:")){ee();return}(0,Ne.Sv)(tt||"educoder",mt,tt)},ee=()=>{ye&&(0,Je.fc)({id:ye==null?void 0:ye.id,watch_type:1,course_id:ye==null?void 0:ye.course_id}),(0,Ne.Nd)(tt||"educoder",decodeURIComponent(mt))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ue=>{var ne;((ne=ue==null?void 0:ue.data)==null?void 0:ne.type)==="closePop"&&pe()};return Se.createElement("div",{style:xt({},yt||{}),className:`${Tt&&at.bgBlack} ${st?at.wrp:"hide"}`},!!st&&ut&&Se.createElement("div",{id:"closePop",className:at.close,ref:je},!!Ge&&Se.createElement(we.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>je.current},Se.createElement("span",{onClick:()=>{pe(),Ge()}},Se.createElement("i",{className:"icon-yulanpizhu"}))),!Be&&window.parent===window&&Se.createElement(we.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>je.current},Se.createElement("span",{onClick:ee},Se.createElement("i",{className:"icon-quxiaozhiding"}))),gt&&Se.createElement(we.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>je.current},Se.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",bt,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},Se.createElement("i",{className:"icon-baocun"}))),Se.createElement(we.Z,{title:"\u5173\u95ED",getPopupContainer:()=>je.current},Se.createElement("span",{className:"",onClick:()=>{pe()}},Se.createElement("i",{className:"icon-guanbi1"})))),Se.createElement("div",{className:`${at[We]} ${We} ${at.monaco} ${st==="txt"?"show":"hide"}`},st==="txt"&&Se.createElement(Se.Fragment,null,Se.createElement(be.ZP,xt({},St)))),st==="audio"&&Se.createElement("audio",{controls:!0,src:`${(mt==null?void 0:mt.indexOf("http://"))>-1||(mt==null?void 0:mt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${mt}`,autoPlay:!0}),st==="video"&&Se.createElement(Se.Fragment,null,(mt==null?void 0:mt.indexOf("http"))>-1?Se.createElement("video",{controls:!0,src:`${mt}`,autoPlay:!0}):Se.createElement("video",{controls:!0,src:`data:video/mp4;base64,${mt}`,autoPlay:!0})),st==="office"&&Ie&&Se.createElement("iframe",{src:`${ct}/office.html?key=${Ie.key}&url=${btoa(Ie.url)}&callbackUrl=${Yt+(Ie.callbackUrl||"")}&fileType=${Ie.fileType}&title=${Ie.title||""}&model=${wt}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Be}`}),st==="html"&&Se.createElement("iframe",{src:mt+"&disposition=inline"}),st==="pdf"&&Se.createElement("iframe",{id:"pdfiframe",src:`${ct}/js/pdf/index.html?filename=${tt||"educoder.pdf"}&url=${encodeURIComponent(mt)}&disabledDownload=${!!Be}&model=${wt}`}),st==="image"&&Se.createElement("img",{src:`${(mt==null?void 0:mt.indexOf("http://"))>-1||(mt==null?void 0:mt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${mt}`}),(st==="other"||st==="download")&&Se.createElement(Se.Fragment,null,At?Se.createElement(Me.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Se.createElement(ge.ZP,{icon:Se.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Be},"\u4E0B\u8F7D")}):Se.createElement(ge.ZP,{type:"primary",size:"middle",onClick:te,disabled:Be},Se.createElement(Ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),st==="flowChart"&&Se.createElement("div",{className:"embed"},Se.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${mt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(an,Zt,ie){"use strict";ie.d(Zt,{z:function(){return St},Z:function(){return We}});var z=ie(59301),at=ie(46214),ge=ie(20047),Ke=ie(64018),be=ie(16471),we=ie(14185),Ne=ie(76406),Ze=ie(15342),Me=ie(44104),fe=ie(7939),Je=ie(1012),Se=ie(86974),Pt=ie(59301),ke=({html:yt})=>{const ut=(0,z.useRef)(null),pe=(0,z.useRef)(null),Tt=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,z.useEffect)(()=>{const Be=ut.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=yt,Be.appendChild(pe.current);const Ge=document.createElement("style");return Ge.textContent=Tt,Be.appendChild(Ge),()=>{Be.innerHTML=""}},[]),(0,z.useEffect)(()=>{pe.current&&(pe.current.innerHTML=yt)},[yt]),Pt.createElement("div",{ref:ut})};function Le(yt){const ut=["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"],pe=new RegExp(`\\b(${ut.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Tt=/]*>/gi;return yt.replace(pe,"").replace(Tt,"").trim()}var Ae={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},xt=Object.defineProperty,Ot=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,mt=(yt,ut,pe)=>ut in yt?xt(yt,ut,{enumerable:!0,configurable:!0,writable:!0,value:pe}):yt[ut]=pe,gt=(yt,ut)=>{for(var pe in ut||(ut={}))Rt.call(ut,pe)&&mt(yt,pe,ut[pe]);if(Ot)for(var pe of Ot(ut))wt.call(ut,pe)&&mt(yt,pe,ut[pe]);return yt};const Qe="@\u2581\u2581@",kt="@\u2581@",st=/]*>/g;function tt(yt){let ut=document.createElement("div");return ut.innerHTML=yt,ut.childNodes.length===0?"":ut.childNodes[0].nodeValue}const St=(yt,ut)=>{yt=yt||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Be=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ut?yt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(At,ye,se,Te,Ct,Et,Ie)=>{const _e=ye||Te||Et,ct=se||Ct||Ie||"?";return we.Z.API_SERVER+"/api/attachments/"+_e+ct+"&t="+(0,Ne.Jn)(_e,Date.now())+(At.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(yt=yt.replace(Ge,(At,ye,se,Te,Ct,Et,Ie)=>{const _e=ye||Te||Et,ct=se||Ct||Ie||"?";return we.Z.API_SERVER+"/attachments/download/"+_e+ct+"&t="+(0,Ne.Jn)(_e,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(pe,(At,ye,se,Te,Ct,Et,Ie)=>{const _e=ye||Te||Et,ct=se||Ct||Ie||"?";return we.Z.API_SERVER+"/api/attachments/"+_e+ct+"&t="+(0,Ne.Jn)(_e,Date.now())+(At.indexOf(")")>-1?")":"&")}).replace(Tt,(At,ye,se,Te,Ct)=>{const Et=ye||Te,Ie=se||Ct||"";return'"'+we.Z.API_SERVER+"/api/attachments/"+Et+Ie+Et+Ie+"&t="+(0,Ne.Jn)(Et,Date.now())}).replace(Be,(At,ye,se,Te,Ct)=>{const Et=ye||Te,Ie=se||Ct||"";return"("+we.Z.API_SERVER+"/files/uploads/"+Et+Ie+Et+Ie+"&t="+(0,Ne.Jn)(Et,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,` `),yt)};var We=({value:yt="",edit:ut=!1,className:pe,showTextOnly:Tt,showLines:Be,style:Ge={},stylesPrev:At={},highlightKeywords:ye,showProgramFill:se,isProgramFill:Te,disabledFill:Ct=!1,programFillValue:Et,openEditor:Ie=()=>{},onFillChange:_e=Dt=>{},onFillBlur:ct=()=>{},onFillFocus:Yt=()=>{}})=>{let Dt=Le(String(yt||""));const $t=(0,z.useRef)(),je=(0,z.useRef)(),[Gt,bt]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),ue=(0,z.useRef)("a"+(0,Je.Z)()),ne={},he=It=>//i.test(It||""),xe=(It,Qt,Wt)=>{const De=document.createElement(It===kt?"input":"textarea");De.style.width="100%",De.style.height=It===kt?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=Qt;const it=Object.keys(ne).length;return ne[it]=De,`${De.outerHTML}`};function vt(It){return It=It.replace(/!\[.*?\]\(.*?\)/g,""),It=It.replace(/\[.*?\]\(.*?\)/g,""),It=It.replace(new RegExp("","gs"),""),It=It.replace(//g,""),It=It.replace(//g,""),It=It.replace(new RegExp(".*?<\\/video>","gs"),""),It=It.replace(new RegExp(".*?<\\/audio>","gs"),""),It=It.replace(new RegExp(".*?<\\/style>","gs"),""),It=It.replace(new RegExp(".*?<\\/script>","gs"),""),It}const Pe=It=>!Tt&&he(Dt)?It:It.replace(/([\s\S]+?)<\/style>/gim,function(Qt,Wt){let De=Wt.replace(/(\n|\r)/g,"").split("}"),it=[];return De.map(Lt=>{Lt!=""&&it.push(`.${ue.current} ${Lt}`)}),``}),Ve=(0,z.useMemo)(()=>{(0,ge.Iy)();try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,it=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Lt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,jt=/\(\/attachments\/download\//g;Dt=Dt.replace(jt,"("+we.Z.API_SERVER+"/attachments/download/").replace(De,"("+we.Z.API_SERVER+"/api/attachments/").replace(it,'"'+we.Z.API_SERVER+"/api/attachments/").replace(Lt,'"'+we.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,` `),$t.current.style.display="none"}catch(De){}if(se){let De=-1;return Dt=Dt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(it,Lt,jt){var Oe;return++De,xe(it,De,(Oe=Et==null?void 0:Et[De])==null?void 0:Oe.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Pe(Dt||"")}
`}let It=Pe(Dt);It=(0,ge.ZP)(It);const Qt=(0,ge.ez)();Dt.match(/\[TOC\]/)&&(It=It.replace("

[TOC]

",(0,ge.Qv)()),(0,ge.Iy)()),It=It.replace(/(__special_katext_id_\d+__)/g,(De,it)=>{const{type:Lt,expression:jt}=Qt[it];return(0,Ze.renderToString)(tt(jt)||"",{displayMode:Lt==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=It,Tt)return Wt.innerText;if(ye){const De=ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Kt(Wt,De),Wt.innerHTML}return setTimeout(()=>ln(),500),Wt.innerHTML},[Dt,ye]);(0,z.useEffect)(()=>{Vt.current&&Vt.current.querySelectorAll(["input","textarea"]).forEach(Qt=>{Qt.oninput=dt,Qt.onblur=Mt,Qt.onfocus=pt})},[ee]),(0,z.useEffect)(()=>{var It,Qt,Wt,De,it;if(Et!=null&&Et.length)try{const Lt=Vt.current.querySelectorAll(".edu-program-fill-score"),jt=Vt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Oe,Ye]of jt.entries())Ye.value=((It=Et==null?void 0:Et[Oe])==null?void 0:It.value)||"",((Qt=Et==null?void 0:Et[Oe])==null?void 0:Qt.type)==="warning"?Ye.className="program-fill-warning":((Wt=Et==null?void 0:Et[Oe])==null?void 0:Wt.type)==="success"?Ye.className="program-fill-success":Ye.className="";for(const[Oe,Ye]of Lt.entries())Ye.innerHTML=(De=Et==null?void 0:Et[Oe])!=null&&De.score?`${(it=Et==null?void 0:Et[Oe])==null?void 0:it.score}\u5206`:"";oe(Et)}catch(Lt){console.log(Lt,"error")}},[Et]);const dt=It=>{ee[It.target.dataset.id]=ee[It.target.dataset.id]||{},ee[It.target.dataset.id].value=It.target.value,oe([...ee]),_e(ee,It.target.dataset.id)},Mt=It=>{ee[It.target.dataset.id]=ee[It.target.dataset.id]||{},ee[It.target.dataset.id].value=It.target.value,oe([...ee]),ct(ee,It.target.dataset.id)},pt=It=>{ee[It.target.dataset.id]=ee[It.target.dataset.id]||{},ee[It.target.dataset.id].value=It.target.value,oe([...ee]),Yt(ee,It.target.dataset.id)};function Kt(It,Qt){return It.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"),'$&');else{const it=document.createElement("span");it.innerHTML=Wt.textContent.replace(new RegExp(Qt,"gi"),'$&'),Wt.replaceWith(it)}})}const Vt=(0,z.useRef)();ge.jb.WebkitLineClamp=Be,Be&&(Ge=gt(gt({},Ge),ge.jb));function zt(It){let Qt=It.target;if(Qt.tagName.toUpperCase()==="A"){let Wt=Qt.getAttribute("href");if(Wt.indexOf("office")>-1)It.preventDefault(),bt(Wt),te("office");else if(Wt.indexOf("application/pdf")>-1)It.preventDefault(),bt(Wt),te("pdf");else if(Wt.indexOf("text/html")>-1)It.preventDefault(),bt(Wt),te("html");else if(Wt.startsWith("#")){It.preventDefault();let De=document.getElementById(Wt.replace("#",""));De&&De.scrollIntoView(!0)}}}const ln=()=>{var It;const Qt=(It=Vt.current)==null?void 0:It.querySelectorAll("video");Qt==null||Qt.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var De=new be.ZP;De.loadSource(Wt.src),De.attachMedia(Wt)}}})};(0,z.useEffect)(()=>{if(Vt.current&&Ve&&Ve.match(st)&&window.PR.prettyPrint(),Vt.current)return Vt.current.addEventListener("click",zt),()=>{var It;(It=Vt.current)==null||It.removeEventListener("click",zt),(0,ge.AL)(),(0,ge.Iy)()}},[Ve,Vt.current,zt]);const _t=It=>{It.target.nodeName==="IMG"&&It.target.className.indexOf("draw-flowchart")>-1?($t.current.style.zIndex=1,$t.current.style.display="flex",$t.current.style.width=It.target.clientWidth+"px",$t.current.style.height=It.target.clientHeight+"px",$t.current.style.top=It.target.offsetTop+"px",$t.current.style.left=It.target.offsetLeft+"px",It.target.id&&(je.current=It.target.id)):$t.current.style.display="none"},on=()=>{$t.current.style.display="none"};return(0,z.useEffect)(()=>{var It;const Qt=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(It=Vt.current)==null||It.addEventListener("copy",Qt),()=>{var Wt;(Wt=Vt.current)==null||Wt.removeEventListener("copy",Qt)}},[Vt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:on},Tt&&z.createElement("div",{ref:Vt,className:`${Ae.mdBody} `},Ve),!Tt&&!he(Ve)&&z.createElement("div",{ref:Vt,style:gt({},Ge),onMouseOver:_t,className:`${pe||""} ${Ct?"disabled-fill":""} markdown-body ${Ae.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Ve}}),!Tt&&he(Ve)&&z.createElement(ke,{html:Ve}),z.createElement("div",{ref:$t,className:`${Ae.button} ${ut?"":Ae.previewFlowChart}`},z.createElement(Me.Z,null,z.createElement(fe.ZP,{onClick:()=>{ut?Ie(je.current):(bt(je.current),te("flowChart"))}},ut?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Se.Z,{close:!0,data:Gt,type:Gt!=null&&Gt.length?ae:"",style:gt({},At),onClose:()=>bt("")}))}},28267:function(an,Zt,ie){"use strict";ie.d(Zt,{h:function(){return wt}});var z=ie(59301),at=ie(82326),ge=ie(28284),Ke=ie(7939),be=ie(89780),we=ie.n(be),Ne=ie(88319),Ze=ie(94896),Me=Object.defineProperty,fe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,ke=(mt,gt,Qe)=>gt in mt?Me(mt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):mt[gt]=Qe,Le=(mt,gt)=>{for(var Qe in gt||(gt={}))Pt.call(gt,Qe)&&ke(mt,Qe,gt[Qe]);if(Se)for(var Qe of Se(gt))rt.call(gt,Qe)&&ke(mt,Qe,gt[Qe]);return mt},Ae=(mt,gt)=>fe(mt,Je(gt));const xt=at.default.Option,Ot={labelCol:{span:4},wrapperCol:{span:20}},Rt={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:mt,onCancel:gt})=>{const[Qe,kt]=(0,z.useState)("python");function st(St){kt(Rt[St][1])}function tt(St){mt(St)}return z.createElement(ge.default,Ae(Le({},Ot),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:tt,style:{width:500}}),z.createElement(ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(at.default,{getPopupContainer:St=>St.parentNode,onChange:st},Object.keys(Rt).map(St=>z.createElement(xt,{key:St,value:St},Rt[St][0])))),z.createElement(ge.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(wt,{mode:Qe})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Ke.ZP,{type:"ghost",onClick:gt},"\u53D6\u6D88")))};function wt({value:mt,onChange:gt,mode:Qe,options:kt={}}){const st=(0,z.useRef)(),[tt,St]=(0,z.useState)();return(0,z.useEffect)(()=>{if(tt){let We=function(yt){const ut=yt.getValue();gt&>(ut)};return tt.on("change",We),()=>{tt.off("change",We)}}},[tt,gt]),(0,z.useEffect)(()=>{tt&&tt.setOption("mode",Qe)},[tt,Qe]),(0,z.useEffect)(()=>{tt&&(mt!==tt.getValue()||mt==="")&&setTimeout(()=>{tt.setValue(mt||"")},300)},[tt,mt]),(0,z.useEffect)(()=>{if(st.current&&!tt){const We=we().fromTextArea(st.current,Le({mode:Qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},kt));St(We)}},[st.current,tt]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:st}))}},39116:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return vn}});var z=ie(59301),at=ie(44283),ge=ie(89780),Ke=ie.n(ge),be=ie(76374),we=ie(88319),Ne=ie(6313),Ze=ie(25717),Me=ie(99498),fe=ie(25419),Je=ie(67549),Se=ie(35883),Pt=({value:Jt="",className:Pn,showTextOnly:mn,showLines:kn,style:jn={}})=>{const Zn=(0,z.useMemo)(()=>"",[Jt]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Zn}}))},rt=Object.defineProperty,ke=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Rt=(Jt,Pn,mn)=>Pn in Jt?rt(Jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[Pn]=mn,wt=(Jt,Pn)=>{for(var mn in Pn||(Pn={}))xt.call(Pn,mn)&&Rt(Jt,mn,Pn[mn]);if(Ae)for(var mn of Ae(Pn))Ot.call(Pn,mn)&&Rt(Jt,mn,Pn[mn]);return Jt},mt=(Jt,Pn)=>ke(Jt,Le(Pn));let gt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Qe({onActionCallback:Jt,title:Pn,icon:mn,actionName:kn,className:jn="",children:Zn}){function An(){Jt(kn)}return z.createElement("a",{title:Pn,className:jn,onClick:An},z.createElement("i",{className:`${mn}`}),Zn)}var kt=({watch:Jt,showNullButton:Pn,showNullProgramButton:mn,onActionCallback:kn,fullScreen:jn,insertTemp:Zn,hidetoolBar:An,extraUse:Yn})=>{const Nn=[...gt,{title:`${Jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Jt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!An&&Nn.map((ar,qn)=>z.createElement("li",{key:qn},ar.actionName?z.createElement(Qe,mt(wt({},ar),{onActionCallback:kn})):z.createElement("span",{className:"v-line"}))),Pn?z.createElement("li",null,z.createElement(Qe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(Qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(Qe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Zn&&z.createElement("li",null,z.createElement(Qe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Zn}`,onActionCallback:kn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Yn&&z.createElement("li",null,Yn),z.createElement("li",{className:"btn-full-screen"},z.createElement(Qe,{icon:`${jn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:jn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:kn})))},st=ie(88487),tt=ie(28284),St=ie(37568),We=ie(7939),yt=Object.defineProperty,ut=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,At=(Jt,Pn,mn)=>Pn in Jt?yt(Jt,Pn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[Pn]=mn,ye=(Jt,Pn)=>{for(var mn in Pn||(Pn={}))Be.call(Pn,mn)&&At(Jt,mn,Pn[mn]);if(Tt)for(var mn of Tt(Pn))Ge.call(Pn,mn)&&At(Jt,mn,Pn[mn]);return Jt},se=(Jt,Pn)=>ut(Jt,pe(Pn));const Te={labelCol:{span:4},wrapperCol:{span:20}};var Ct=({callback:Jt,onCancel:Pn})=>{function mn(kn){Jt(kn)}return z.createElement(tt.default,se(ye({},Te),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mn,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(St.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(St.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(We.ZP,{type:"ghost",onClick:Pn},"\u53D6\u6D88")))},Et=ie(28267),Ie=ie(53332),_e=ie(62957),ct=ie(77019),Yt=ie(40254),Dt=ie(59301),$t=({callback:Jt,onCancel:Pn})=>{const mn=document.createElement("canvas"),kn=mn.getContext("2d");mn.width=1e3,mn.height=800,kn.fillStyle="#ffffff",kn.fillRect(0,0,mn.width,mn.height);const jn=mn.toDataURL("image/png");return Dt.createElement(_e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Dt.createElement(ct.Z,{style:{height:"100vh"}},Dt.createElement(Yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:jn,visible:!0,title:String(Date.now())},onOk:Zn=>{Jt({src:Zn.url})},onClose:Pn})))},je=ie(36207),Gt=ie(5269),bt=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:Jt,editImgId:Pn,callback:mn},kn)=>{let jn=(0,z.useRef)(),Zn=(0,z.useRef)(),An=(0,z.useRef)(),Yn=(0,z.useRef)(!1);const Nn=(0,z.useRef)(!1);console.log("ref:",kn);const[ar,qn]=(0,z.useState)(0),[Ft,rn]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{qn(1)},[]),(0,z.useImperativeHandle)(kn,()=>({setHeight:rn})),te.createElement("div",{ref:Nn,className:"body-overflow-initial"},te.createElement(je.Z,{width:"100vw",height:Ft,footer:null,closable:!0,placement:"bottom",open:!!ar,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(zn=>{mn({src:`/api/attachments/${zn}`,id:zn})})},title:te.createElement(ct.Z,{align:"middle"},te.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Gt.Z,{onClick:()=>{rn(Ft==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Gt.Z,{onClick:()=>{window.saveDrawData(zn=>{if(zn===null){bt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}bt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mn({src:`/api/attachments/${zn}`,id:zn,disabledClose:!0})})}},te.createElement(We.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Pn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Zn})))}),ue=ie(14185),ne=ie(47889),he=ie(4875);const xe=ne.ZP.Group,vt={margin:"0 8px"};var Pe=({callback:Jt,onCancel:Pn})=>{function mn(kn){Jt(kn)}return z.createElement(tt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:vt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:vt},"\u884C\u6570"),z.createElement(tt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(he.Z,null)),z.createElement("span",{style:vt},"\u5217\u6570"),z.createElement(tt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(he.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:vt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(tt.default.Item,{name:"align"},z.createElement(xe,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(We.ZP,{type:"ghost",onClick:Pn},"\u53D6\u6D88")))},Ve=ie(58755),dt=ie(84915),Mt=ie.n(dt),Kt=(0,z.forwardRef)(({use3d:Jt,width:Pn,height:mn,callback:kn,showSaveButton:jn},Zn)=>{const An=(0,z.useRef)(),Yn=(0,z.useRef)(),[Nn,ar]=(0,z.useState)(!1),qn=(0,z.useRef)({id:An,appName:"graphing",width:Pn||1e3,height:mn||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)(()=>{Yn.current=new(Mt())(qn.current,!0),window.onload=function(){Yn.current.inject("applet_container")}},[]);const Ft=()=>{var rn=window.ggbApplet.getPNGBase64(1,!0,72);return kn&&kn(rn),rn};return(0,z.useEffect)(()=>{qn.current.appName=Nn?"3D":"graphing",Yn.current.inject("applet_container")},[Nn]),(0,z.useEffect)(()=>{ar(Jt)},[Jt]),(0,z.useImperativeHandle)(Zn,()=>({getImgData:Ft})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:An}),z.createElement(ct.Z,{align:"middle"},z.createElement(Gt.Z,{flex:1},z.createElement(Ve.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nn,onChange:rn=>ar(rn)})),z.createElement(Gt.Z,null,z.createElement(We.ZP,{size:"large",onClick:Ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Vt=ie(9057);const zt="link",ln="upload-image",_t="add-flowchart",on="draw-image",It="add-flowchart",Qt="code-block",Wt="add-table",De="------------",it={default:De,left:`:${De}`,center:`:${De}:`,right:`${De}:`};var Lt=ie(79006),jt=ie(76406);function Oe(){}let Ye=0;const ft=1e4,Bt="\u2581",Ut="@\u2581\u2581@",cn="@\u2581@",Sn=` **\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`,Cn=["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 sn(Jt){return/^\d+$/.test(Jt)?`${Jt}px`:Jt}const gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",$n={[gn+"-B"]:"bold",[gn+"-I"]:"italic"},bn={[zt]:"\u6DFB\u52A0\u94FE\u63A5",[Qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ln]:"\u6DFB\u52A0\u56FE\u7247",[on]:"\u6DFB\u52A0\u753B\u56FE",[_t]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var vn=({defaultValue:Jt="",onChange:Pn,width:mn="100%",height:kn=400,miniToolbar:jn=!1,isFocus:Zn=!1,watch:An,insertTemp:Yn,mode:Nn="markdown",id:ar="markdown-editor-id",showResizeBar:qn=!1,noStorage:Ft=!1,showNullButton:rn=!1,showNullProgramButton:zn=!1,hidetoolBar:nr=!1,fullScreen:Fe=!1,onBlur:ot,onCMBeforeChange:Ce,onFullScreen:Re,className:Ee="",disablePaste:$e=!1,disabled:ve=!1,disabledFill:Xe=!1,placeholder:qe="",values:ht="",extraUse:et,onAddBlank:ze})=>{const[He,nt]=(0,z.useState)(null),[en,Xt]=(0,z.useState)(Jt),[qt,Dn]=(0,z.useState)(An),[Ln,Hn]=(0,z.useState)(Fe),[Mn,xn]=(0,z.useState)(""),[On,Fn]=(0,z.useState)(0),[_n,Vn]=(0,z.useState)(kn),[Xn,wn]=(0,z.useState)(!1),[er,Wn]=(0,z.useState)(0),[dr,pr]=(0,z.useState)(0),sr=(0,z.useRef)(),ur=(0,z.useRef)(),yr=(0,z.useRef)(),lr=(0,z.useRef)(),fr=(0,z.useRef)(),Qn=(0,z.useRef)(),mr=(0,at.useDispatch)();(0,z.useEffect)(()=>{const dn=window.scrollY||window.pageYOffset;Xt(ht),He==null||He.setValue(ht),window.scrollTo(0,dn)},[ht]),(0,z.useEffect)(()=>{Re==null||Re(Ln)},[Ln]),(0,z.useEffect)(()=>{if(sr.current){let dn=function(En,Tn){var cr;if($e){Tn.preventDefault();return}const kr=Tn.clipboardData;if(kr){const Or=kr.types.toString(),Rr=kr.items;if(Or==="Files"||kr.types.indexOf("Files")>-1){if(Tn.preventDefault(),Nn=="stex")return;try{let Ar=Rr[1];((cr=Rr[0])==null?void 0:cr.kind)==="file"&&(Ar=Rr[0]);const Fr=Ar.getAsFile(),Vr=Fr.name.split(".").pop();(0,Ie.I)(Fr,Hr=>{var Xr,ti,Ei;Hr.id?((Xr=Fr==null?void 0:Fr.type)==null?void 0:Xr.indexOf("image"))>-1?nn.replaceSelection(``):((ti=Fr==null?void 0:Fr.type)==null?void 0:ti.indexOf("video"))>-1?nn.replaceSelection(``):((Ei=Fr==null?void 0:Fr.type)==null?void 0:Ei.indexOf("pdf"))>-1?nn.replaceSelection(`${Fr.name}`):Cn.includes(Vr)?nn.replaceSelection(`${Fr.name}`):nn.replaceSelection(`[${Fr.name}](/api/attachments/${Hr.id}?type=${Hr.content_type})`):(Hr==null?void 0:Hr.status)===401&&(document.location.href="/user/login")})}catch(Ar){bt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const nn=Ke().fromTextArea(sr.current,{mode:Nn,lineNumbers:!jn,lineWrapping:!0,value:Jt,autoCloseTags:!0,autoCloseBrackets:!0});return nn.on("keyup",function(En,Tn){Tn.keyCode===8&&(En.getValue()==""?nn.setOption("placeholder",qe):nn.setOption("placeholder",null))}),nn.on("keydown",function(En,Tn){if(Tn.keyCode===8){var cr=zr(En);cr&&Tn.preventDefault()}}),Zn&&nn.focus(),nn.on("paste",dn),ve&&nn.on("beforeChange",function(En,Tn){(Tn.origin==="paste"||Tn.origin==="+input")&&Tn.cancel()}),nt(nn),()=>{nn.off("paste",dn)}}},[]);const br=(0,z.useCallback)(()=>{if(ur.current)try{}catch(dn){console.log(dn,"---- to set md editor body height")}},[_n,ur,Ln]);(0,z.useEffect)(()=>{function dn(){let nn=new be.Z(En=>{for(let Tn of En)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&(br(),He.setSize("100%","100%"),He.refresh())});return nn.observe(sr.current.parentElement),nn}if(He){const nn=dn();return()=>{var En,Tn;(En=sr.current)!=null&&En.parentElement&&nn.unobserve((Tn=sr.current)==null?void 0:Tn.parentElement)}}},[He,br]),(0,z.useEffect)(()=>{if(He){let dn=[];for(const[nn,En]of Object.entries($n)){let Tn={[nn]:()=>{Er(En)}};dn.push(Tn),He.addKeyMap(Tn)}return()=>{for(let nn of dn)He.removeKeyMap(nn)}}},[He]),(0,z.useEffect)(()=>{Fe!==Ln&&Hn(Fe)},[Fe]),(0,Lt.Z)(()=>{if(!Ft&&On>0){let dn=new Date().getTime(),nn=window.sessionStorage.getItem(ar);dn>=On+ft&&(!nn||nn!==en)&&(window.sessionStorage.setItem(ar,en),wn(!0))}},ft),(0,z.useEffect)(()=>{Dn(An)},[He,An]),(0,z.useEffect)(()=>{He&&Zn&&He.focus()},[He,Zn]),(0,z.useEffect)(()=>{if(qt&&He){let dn=function(En){let Tn=En.target;if(lr.current){let cr=Tn.scrollTop/Tn.scrollHeight;lr.current.scrollTop=lr.current.scrollHeight*cr}};const nn=He.getScrollerElement();return nn.addEventListener("scroll",dn),()=>{nn.removeEventListener("scroll",dn)}}},[He,qt]),(0,z.useEffect)(()=>{if(He&&Ce){let dn=function(nn,En){Ce(nn,En)};return He.on("beforeChange",dn),()=>{He.off("beforeChange",dn)}}},[He,Ce]),(0,z.useEffect)(()=>{if(He&&ot){let dn=function(){ot(He.getValue())};return He.on("blur",dn),()=>{He.off("blur",dn)}}},[He,ot]);function zr(dn,nn){var En=dn.getDoc(),Tn=En.getCursor(),cr=En.getLine(Tn.line),kr=cr.charAt(Tn.ch-1),Or=cr.lastIndexOf("@\u2581@",Tn.ch),Rr=cr.lastIndexOf("@\u2581\u2581@",Tn.ch),Ar=Or>Rr?Or:Rr,Fr=Or>Rr?3:4;if(Ut.indexOf(kr)===-1)return null;if(console.log("change1:",nn,dn,cr,Tn,Ar,Or,Rr,kr),Ar>=0&&Tn.ch-Ar<5){var Vr=Ar+Fr;return En.replaceRange("",{line:Tn.line,ch:Ar},{line:Tn.line,ch:Vr}),{line:Tn.line,ch:Vr}}return null}(0,z.useEffect)(()=>{if(He){let dn=function(nn,En){const Tn=nn.getValue();Xt(Tn),Fn(new Date().getTime()),nn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pn&&(zn?Pn(Tn,pn(Tn)):Pn(Tn))};return He.on("change",dn),()=>{He.off("change",dn)}}},[He,Pn]),(0,z.useEffect)(()=>{if(He)if(Jt==null)He.setValue(""),Xt("");else{const dn=window.scrollY||window.pageYOffset;Jt!==He.getValue()&&(He.setValue(Jt),Xt(Jt),He.setCursor(ve?1:He.lineCount(),0),window.scrollTo(0,dn))}},[He,Jt]);const Er=(0,z.useCallback)(dn=>{const nn=He.getCursor(),En=He.getSelection();let Tn=En.split(` `);switch(dn){case"bold":return He.replaceSelection("**"+En+"**"),En===""&&He.setCursor(nn.line,nn.ch+2),He.focus();case"italic":return He.replaceSelection("*"+En+"*"),En===""&&He.setCursor(nn.line,nn.ch+1),He.focus();case"code":return He.replaceSelection("`"+En+"`"),En===""&&He.setCursor(nn.line,nn.ch+1),He.focus();case"inline-latex":return(0,jt.Ye)(mr)?void 0:(xn("inline-latex"),He.focus());case"latex":return He.replaceSelection("```latex\n"+En+"\n```"),He.setCursor(nn.line+1,En.length+1),He.focus();case"line-break":return He.replaceSelection(`
`),He.focus();case"list-ul":return En===""?He.replaceSelection("- "+En):He.replaceSelection(Tn.map(cr=>cr===""?"":`- ${cr}`).join(` `)),He.focus();case"list-ol":return En===""?He.replaceSelection("1. "+En):He.replaceSelection(Tn.map((cr,kr)=>cr===""?"":`${kr+1}. ${cr}`).join(` `)),He.focus();case"add-null-ch":ze==null||ze();return;case"add-signal":return En===""&&He.setCursor(nn.line,nn.ch),He.replaceSelection(cn),He.focus();case"add-multiple":return En===""&&He.setCursor(nn.line,nn.ch),He.replaceSelection(Ut),He.focus();case"inster-template-1":return En===""&&He.setCursor(nn.line,nn.ch),He.replaceSelection(Sn),He.focus();case"eraser":return He.setValue(""),He.focus();case"trigger-watch":return Dn(!qt),He.focus();case"trigger-full-screen":return Hn(!Ln),He.focus();case zt:xn(zt);return;case Qt:xn(Qt);return;case ln:xn(ln);return;case on:xn(on);return;case"maths-latex":if((0,jt.Ye)(mr))return;xn("maths-latex");return;case _t:fr.current="",sessionStorage.removeItem("file_id"),xn(_t);return;case Wt:xn(Wt);return;default:throw new Error}},[He,qt,Ln]),Br=(0,z.useCallback)((dn,nn)=>{var En,Tn,cr,kr,Or,Rr;dn!=null&&dn.disabledClose||xn("");const{src:Ar,alt:Fr,id:Vr}=dn||{};switch(Mn){case zt:const{title:Ni,link:xi}=dn;return He.replaceSelection(`[${Ni}](${xi})`),He.focus();case Qt:const{language:si,content:Ri}=dn;return He.replaceSelection(["```"+si,Ri,"```"].join(` `)),He.focus();case"maths-latex":for(var Hr=atob(dn),Xr=new Uint8Array(Hr.length),ti=0;ti{Sr.id?He.replaceSelection(`![,](/api/attachments/${Sr.id}?type=${Sr.content_type})`):(Sr==null?void 0:Sr.status)===401&&(document.location.href="/user/login")}),He.focus();case"inline-latex":return(0,jt.Ye)(mr)?void 0:(He.replaceSelection("`$$"+dn+"$$`"),He.focus());case It:return Vr?(He.getValue().indexOf(Ar)===-1?He.replaceSelection(`
${Fr||
`):document.getElementById(Vr).src=ue.Z.API_SERVER+Ar+"?t="+Date.now(),He.focus()):void 0;case ln:case on:const jr=nn,Ki=(cr=(Tn=(En=jr==null?void 0:jr.name)==null?void 0:En.split("."))==null?void 0:Tn.pop)==null?void 0:cr.call(Tn);return((kr=jr==null?void 0:jr.type)==null?void 0:kr.indexOf("image"))>-1||!(jr!=null&&jr.type)?jr!=null&&jr.align||jr!=null&&jr.width?He.replaceSelection(`

${Fr||

`):He.replaceSelection(`${Fr||`):((Or=jr==null?void 0:jr.type)==null?void 0:Or.indexOf("video"))>-1?He.replaceSelection(``):((Rr=jr==null?void 0:jr.type)==null?void 0:Rr.indexOf("pdf"))>-1?He.replaceSelection(`${jr.name}`):Cn.includes(Ki)?He.replaceSelection(`${jr.name}`):He.replaceSelection(`[${jr.name}](${Ar})`),He.focus();case Wt:const{row:qr,col:xr,align:$r}=dn;let Gr=` `;for(let Sr=0;Sr{switch(Mn){case zt:return z.createElement(Ct,{callback:Br,onCancel:Mr});case Qt:return z.createElement(Et.Z,{callback:Br,onCancel:Mr});case ln:return z.createElement(Ie.Z,{callback:Br,onCancel:Mr});case _t:return z.createElement(oe,{editImgId:fr.current,callback:Br,onCancel:Mr});case Wt:return z.createElement(Pe,{callback:Br,onCancel:Mr});case"maths-latex":return z.createElement(Kt,{showSaveButton:!0,callback:Br});case"inline-latex":return z.createElement(Vt.Z,{showSaveButton:!0,callback:Br});default:return null}},[Mn]);function Mr(){xn("")}(0,z.useEffect)(()=>{if(yr.current){let dn=function(Or){cr=!0,kr=Or.pageY},nn=function(){cr=!1},En=function(Or){if(cr){let Rr=Or.pageY-kr;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let Ar=kn+Rr+"px";Vn(Ar)}},Tn=yr.current,cr=!1,kr=0;return Tn.addEventListener("mousedown",dn),document.addEventListener("mousemove",En),document.addEventListener("mouseup",nn),()=>{Tn.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",nn)}}},[He,yr]),(0,z.useEffect)(()=>{Vn(kn)},[kn]);const ir=sn(mn),rr=sn(_n),Jn={width:ir,height:rr},un=(0,z.useMemo)(()=>{if(On){let dn=new Date(On),nn=dn.getHours(),En=dn.getMinutes(),Tn=dn.getSeconds();return nn=nn<10?"0"+nn:nn,En=En<10?"0"+En:En,Tn=Tn<10?"0"+Tn:Tn,`${nn}:${En}:${Tn}`}return 0},[On]),pn=dn=>{const nn=[];if(zn){let En=-1;dn=dn.replace(/(@▁▁@|@▁@)/g,function(Tn,cr,kr){nn.push({multiLine:Tn!==cn})})}return nn};function hn(){window.sessionStorage.removeItem(ar),wn(!1),Fn(0)}function tn(){wn(!1),Fn(0),He.setValue(window.sessionStorage.getItem(ar))}(0,z.useEffect)(()=>{bn[Mn]&&Mn!==on&&Mn!==_t&&setTimeout(()=>{const dn=document.getElementsByClassName("markdown-popup-form")[0],nn=window.innerWidth/2-dn.offsetWidth/2,En=window.innerHeight/2-dn.offsetHeight/2;Wn(nn),pr(En)},0)},[Mn]);const Bn=dn=>{dn.preventDefault();const nn=dn.clientX-er,En=dn.clientY-dr;document.body.onmousemove=Tn=>{let cr=Tn.clientX-nn,kr=Tn.clientY-En;const Or=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Or.offsetWidth,Ar=window.innerHeight-Or.offsetHeight;cr=Math.max(0,Math.min(cr,Rr)),kr=Math.max(0,Math.min(kr,Ar)),Gn(Tn.clientX,Tn.clientY,nn,En)&&(Wn(cr),pr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Gn=(dn,nn,En,Tn)=>{const cr=document.body.clientHeight,kr=document.body.clientWidth;return dn<20&&En>dn||dn>kr-20&&Ennn||nn>cr-20&&Tn{var nn;fr.current=dn,(nn=Qn.current)==null||nn.setHeight("100vh"),setTimeout(()=>{xn("add-flowchart")},150)}})):null))),qn?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Mn===on&&z.createElement($t,{callback:Br,onCancel:Mr}),Mn===_t&&z.createElement(oe,{ref:Qn,editImgId:fr.current,callback:Br,onCancel:Mr}),z.createElement(st.Z,null,bn[Mn]&&Mn!==on&&Mn!==_t?z.createElement(_e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Bn},bn[Mn]),open:!0,onCancel:Mr,footer:null,destroyOnClose:!0,width:Mn===_t?"1200px":null,height:Mn===_t?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return gt},I:function(){return kt}});var z=ie(28284),at=ie(6767),ge=ie(37568),Ke=ie(44104),be=ie(4875),we=ie(47889),Ne=ie(7939),Ze=ie(23216),Me=ie(59301),fe=ie(59301),Je=Object.defineProperty,Se=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ae=(st,tt,St)=>tt in st?Je(st,tt,{enumerable:!0,configurable:!0,writable:!0,value:St}):st[tt]=St,xt=(st,tt)=>{for(var St in tt||(tt={}))ke.call(tt,St)&&Ae(st,St,tt[St]);if(rt)for(var St of rt(tt))Le.call(tt,St)&&Ae(st,St,tt[St]);return st},Ot=(st,tt)=>Se(st,Pt(tt));const{useForm:Rt}=z.default,wt={width:280,marginRight:10},mt={labelCol:{span:5},wrapperCol:{span:19}};var gt=({callback:st,onCancel:tt})=>{const[St]=Rt();let We=(0,Me.useRef)();function yt(Tt){We.current.width=St.getFieldValue("width"),We.current.align=St.getFieldValue("align"),st(Tt,We.current)}function ut(Tt,Be){if(Tt.status===-1){at.ZP.error(Tt.message);return}St.setFieldsValue({src:`/api/attachments/${Tt.id}`,type:Be.type})}function pe(Tt){let Be=Tt.target.files[0];We.current=Be,kt(Be,ut)}return fe.createElement(z.default,Ot(xt({form:St},mt),{className:"upload-image-panel",onFinish:yt,style:{width:470,overflow:"hidden"}}),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ge.default,{style:wt})),fe.createElement(Qe,{onFileChange:pe}))),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ge.default,{style:{width:264}})),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(Ke.Z,null,fe.createElement(z.default.Item,{name:"width",style:{margin:0}},fe.createElement(be.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(we.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"}]})),fe.createElement("aside",null,fe.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Ne.ZP,{type:"default",onClick:tt},"\u53D6\u6D88"))))};function Qe({onFileChange:st}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:st}))}function kt(st,tt){if(!st)throw new String("\u6CA1\u6709\u6587\u4EF6");let St=new FormData;St.append("editormd-image-file",st),St.append("file_param_name","editormd-image-file"),St.append("byxhr","true");var We=new window.XMLHttpRequest;We.withCredentials=!0,We.addEventListener("load",function(yt){tt(JSON.parse(yt.target.responseText),st)},!1),We.addEventListener("error",function(yt){console.error(yt)},!1),We.open("POST",`${Ze.KI}/api/attachments.json`),We.send(St)}},88487:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return ge}});var z=ie(59301),at=ie(4676);class ge extends z.Component{constructor(be){super(be);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,at.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(an,Zt,ie){"use strict";ie.d(Zt,{SV:function(){return $t},ZP:function(){return Dt}});var z=ie(59301),at=ie(76374);const ge={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ke={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"]},be={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},we={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Ne={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Ze=ie(53184),Me=ie.n(Ze),fe=(je,Gt,bt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(bt.next(ne))}catch(he){te(he)}},oe=ne=>{try{ue(bt.throw(ne))}catch(he){te(he)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((bt=bt.apply(je,Gt)).next())});const Je={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Se=(je,Gt,bt,ae)=>{const te=Gt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:bt.lineNumber,endColumn:bt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:je.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Pt=(je,Gt,bt,ae)=>{je.languages.registerCompletionItemProvider(Gt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),ue={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Se(je,te,ee,ue),...bt.map(xe=>({label:xe,kind:je.languages.CompletionItemKind.Keyword,documentation:xe,insertText:xe,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(xe=>({label:xe.label,kind:je.languages.CompletionItemKind.Snippet,documentation:xe.content,insertText:ne.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var rt=je=>{Je.languages.forEach(Gt=>{je.languages.registerDocumentFormattingEditProvider(Gt,{provideDocumentFormattingEdits(bt){return fe(this,null,function*(){const ae=Me()(bt.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:bt.getFullModelRange(),text:ae}]})}})}),Pt(je,"java",Ke.keywords,Ke.quickKey),Pt(je,"cpp",be.keywords,be.quickKey),Pt(je,"c",ge.keywords,[]),Pt(je,"python",we.keywords,we.quickKey),Pt(je,"scala",Ne.keywords,Ne.quickKey)};const ke="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Le=Object.defineProperty,Ae=(je,Gt,bt)=>Gt in je?Le(je,Gt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):je[Gt]=bt,xt=(je,Gt,bt)=>Ae(je,typeof Gt!="symbol"?Gt+"":Gt,bt);const Ot=class $s{constructor(Gt,bt,ae){this.placeholder=Gt,this.editor=bt,this.monaco=ae,bt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return $s.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)}};xt(Ot,"ID","editor.widget.placeholderHint");var wt=Ot,mt=ie(96236),gt=ie(6767),Qe=ie(25399),kt=ie(78267),st=ie(33156),tt=ie(56102),St=Object.defineProperty,We=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Be=(je,Gt,bt)=>Gt in je?St(je,Gt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):je[Gt]=bt,Ge=(je,Gt)=>{for(var bt in Gt||(Gt={}))pe.call(Gt,bt)&&Be(je,bt,Gt[bt]);if(ut)for(var bt of ut(Gt))Tt.call(Gt,bt)&&Be(je,bt,Gt[bt]);return je},At=(je,Gt)=>We(je,yt(Gt)),ye=(je,Gt)=>{var bt={};for(var ae in je)pe.call(je,ae)&&Gt.indexOf(ae)<0&&(bt[ae]=je[ae]);if(je!=null&&ut)for(var ae of ut(je))Gt.indexOf(ae)<0&&Tt.call(je,ae)&&(bt[ae]=je[ae]);return bt},se=(je,Gt,bt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(bt.next(ne))}catch(he){te(he)}},oe=ne=>{try{ue(bt.throw(ne))}catch(he){te(he)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((bt=bt.apply(je,Gt)).next())});function Te(je){return/^\d+$/.test(je)?`${je}px`:je}function Ct(){}let Et=!1;const Ie={"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 _e(je=[]){let Gt=je;if(Array.isArray(je)){for(let bt=0;btse(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(je){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",je)}});var Dt=je=>{var Gt=je,{width:bt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:ue={},overrideServices:ne={},theme:he="vs-dark",onEditBlur:xe,isCopy:vt=!1,onSave:Pe,autoHeight:Ve=!1,forbidCopy:dt=!1,forbidCopyTips:Mt,onChange:pt=Ct,editorDidMount:Kt=Ct,onFocus:Vt=Ct,onBreakPoint:zt=Ct,breakPointValue:ln=[],filename:_t="educoder.txt",errorLine:on,errorContent:It="",highlightLine:Qt,openBreakPoint:Wt=!1,placeholder:De="",showMiniMap:it=!0}=Gt,Lt=ye(Gt,["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 jt=(0,z.useRef)(),Oe=(0,z.useRef)({}),Ye=(0,z.useRef)(),ft=(0,z.useRef)(),Bt=(0,z.useRef)([]),Ut=(0,z.useRef)(!1),cn=(0,z.useRef)(),Sn=(0,z.useRef)(),Cn=(0,z.useRef)(!1),[sn,yn]=(0,z.useState)(!1);function gn(){let Ft;return jt.current&&(Ft=new at.Z(rn=>{for(let zn of rn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&Oe.current.instance.layout()}),Ft.observe(jt.current)),Ft}function $n(){gt.ZP.warning({content:decodeURIComponent(Mt||ke),key:"monaco-editor-tip"})}const bn=()=>{let Ft=Oe.current.instance;if(te!=null&&Ft&&sn){const rn=Ft.getModel();rn&&te!==rn.getValue()&&(Et=!0,rn.setValue(te),Ft.layout(),Et=!1)}};(0,z.useEffect)(()=>{const Ft=st.Z.subscribe("formatDocument",rn=>{var zn;let nr=Oe.current.instance;(zn=nr==null?void 0:nr.getAction)==null||zn.call(nr,"editor.action.formatDocument").run()});return window.updateMonacoValue=rn=>{pt(rn)},Ft},[]),(0,z.useEffect)(()=>{var Ft;let rn=Oe.current.instance;ft.current&&clearTimeout(ft.current),ft.current=setTimeout(()=>{bn()},500),te&&(te!=null&&te.length)&&((Ft=rn==null?void 0:rn.updateOptions)==null||Ft.call(rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,sn,Oe.current]),(0,z.useEffect)(()=>{if(on&&Oe.current&&Oe.current.instance){let rn=Oe.current.instance;rn.changeViewZones(function(zn){var nr=document.createElement("div");nr.style.padding="10px 20px",nr.style.width="calc(100% - 20px)",nr.className="my-error-line-wrp",nr.innerHTML=It,zn.addZone({afterLineNumber:on||11,heightInLines:3,domNode:nr})});var Ft={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}};rn.addOverlayWidget(Ft),rn.revealPositionInCenter({lineNumber:20,column:1})}},[on,Oe.current,sn]);const vn=(Ft="",rn)=>{if(!Ft||Ft.trim()==="")return!0;const nr=Oe.current.instance.getModel().getLineTokens(rn);let Fe=!1;for(let ot=0;ot<2;ot++)nr.getStandardTokenType(ot)===1&&(Fe=!0);return Fe};(0,z.useEffect)(()=>{var Ft;const rn=(Ft=Oe.current)==null?void 0:Ft.instance;if(rn&&sn&&dt){const zn=rn.onDidBlurEditorWidget(()=>{Cn.current=!1}),nr=rn.onDidFocusEditorText(()=>{Cn.current=!0});return()=>{zn.dispose(),nr.dispose()}}},[Oe.current,sn,dt]),(0,z.useEffect)(()=>{var Ft;if((Ft=Oe.current)!=null&&Ft.instance&&sn&&Wt){let rn=Oe.current.instance,zn=rn.getModel();if(!zn)return;(()=>{var et;let ze=[],He=[];const nt=zn.getAllDecorations();for(let Xt of nt)Xt.options.className==="highlighted-line"&&(ze.push((et=Xt==null?void 0:Xt.range)==null?void 0:et.startLineNumber),He.push(Xt==null?void 0:Xt.id));if(Qt===ze[0])return;zn.deltaDecorations(He,[]);const en=zn.getLineCount();Qt&&Qt<=en&&(rn.deltaDecorations([],[{range:new ct.Range(Qt,1,Qt,zn.getLineMaxColumn(Qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),rn.revealLineInCenter(Qt))})();const Fe=(et=!1)=>{var ze;let He=[],nt=[];const en=zn.getAllDecorations();for(let Xt of en)Xt.options.linesDecorationsClassName==="breakpoints-select"&&(He.push((ze=Xt==null?void 0:Xt.range)==null?void 0:ze.startLineNumber),nt.push(Xt==null?void 0:Xt.id));if(et)return{lines:He,ids:nt};zt(He)},ot=et=>se(void 0,null,function*(){let ze={range:new ct.Range(et,1,et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield zn.deltaDecorations([],[ze]),Fe()}),Ce=et=>se(void 0,null,function*(){let ze=[];const He=rn.getLineDecorations(et);for(let nt of He)nt.options.linesDecorationsClassName==="breakpoints-select"&&ze.push(nt.id);yield zn.deltaDecorations(ze,[]),Fe()}),Re=et=>{let ze=rn.getLineDecorations(et);for(let He of ze)if(He.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,kt.isEqual)(ln,Fe(!0).lines)){zn.deltaDecorations(Fe(!0).ids,[]);const et=ln.map(ze=>({range:new ct.Range(ze,1,ze,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));zn.deltaDecorations([],et)}const Ee=rn.onDidChangeModelContent(et=>{let ze=rn.getPosition();if(ze){let He=ze.lineNumber;clearTimeout(Sn.current),Sn.current=setTimeout(()=>{vn(zn.getLineContent(He),He)?Ce(He):Re(He)?(Ce(He),ot(He)):Fe()},100)}}),$e=rn.onMouseDown(et=>{var ze,He,nt;if(et.target.detail&&((nt=(He=(ze=et.target)==null?void 0:ze.element)==null?void 0:He.className)!=null&&nt.includes("line-numbers"))){let en=et.target.position.lineNumber;if(vn(zn.getLineContent(en),en))return;Re(en)?Ce(en):ot(en)}}),ve=et=>{let ze={range:new ct.Range(et,1,et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Bt.current=rn.deltaDecorations(Bt.current,[ze])},Xe=()=>{Bt.current=rn.deltaDecorations(Bt.current,[])},qe=rn.onMouseMove(et=>{var ze,He,nt;if(Xe(),et.target.detail&&((nt=(He=(ze=et.target)==null?void 0:ze.element)==null?void 0:He.className)!=null&&nt.includes("line-numbers"))){let en=et.target.position.lineNumber;if(vn(zn.getLineContent(en),en))return;ve(en)}}),ht=rn.onMouseLeave(()=>{Xe()});return()=>{Ee.dispose(),$e.dispose(),qe.dispose(),ht.dispose()}}},[Oe.current,sn,ln,Qt,Wt,ee]),(0,z.useEffect)(()=>{var Ft;(Ft=Oe.current)!=null&&Ft.instance&&Wt&&Oe.current.instance.setPosition({lineNumber:0,column:0})},[Qt]);function Jt(){let Ft=Oe.current.instance;if(Ft){const rn=Ft.getSelection(),zn=Oe.current.pastePos||{},nr=new ct.Range(zn.startLineNumber||rn.endLineNumber,zn.startColumn||rn.endColumn,zn.endLineNumber||rn.endLineNumber,zn.endColumn||rn.endColumn);setTimeout(()=>{Ft.executeEdits("",[{range:nr,text:""}])},300)}}function Pn(Ft){(window.navigator.platform.match("Mac")?Ft.metaKey:Ft.ctrlKey)&&Ft.keyCode==83&&(Ft.preventDefault(),Pe())}const mn=()=>{if(Ve&&Oe.current.instance){const Ft=Oe.current.instance.getContentHeight();ar(Ft{if(!Cn.current)return;const{keyCode:rn,ctrlKey:zn,metaKey:nr,target:Fe,type:ot}=Ft;return(ot==="paste"||(rn===67||rn===86)&&(nr||zn))&&Fe.nodeName==="TEXTAREA"&&($n(),Ft.preventDefault()),!1};function Zn(Ft,rn){var zn=window.URL||window.webkitURL||window,nr=new Blob([rn]),Fe=document.createElementNS("http://www.w3.org/1999/xhtml","a");Fe.href=zn.createObjectURL(nr),Fe.download=Ft,kn(Fe)}(0,z.useEffect)(()=>{mn()},[mn]),(0,z.useEffect)(()=>{jt.current&&!sn&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(Ft=>{try{ct=Ft,Oe.current.instance=ct.editor.create(jt.current,{value:te,language:_e(ee),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:it||!1}},ne);const rn=Oe.current.instance;let Fe=[...mt.BH._menuItems].find(Ee=>Ee[0]._debugName=="EditorContext")[1],ot=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ce=(Ee,$e)=>{var ve,Xe;let qe=Ee._first;do $e.includes((Xe=(ve=qe.element)==null?void 0:ve.command)==null?void 0:Xe.id)&&Ee._remove(qe);while(qe=qe.next)};if(Kt(rn,ct),setTimeout(()=>{mn(),Oe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Zn(_t||"educoder.txt",rn.getValue())}})},500),Oe.current.subscription=rn.onDidChangeModelContent(Ee=>{Ut.current?clearTimeout(cn.current):(mn(),pt(rn.getValue(),Ee)),cn.current=setTimeout(()=>{Ut.current=!1},500)}),window.Monaco||rt(ct,_e(ee)),dt&&(Ce(Fe,ot),jt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",jn),window.removeEventListener("paste",jn),window.addEventListener("keydown",jn),window.addEventListener("paste",jn)),window.Monaco=ct,xe&&rn.onDidBlurEditorWidget(()=>{xe(rn.getValue())}),Vt&&rn.onDidFocusEditorText(()=>{dt&&Yt(),Vt(rn.getValue())}),dt){Yt();try{rn.onDidPaste(Ee=>{const $e=rn.getSelection(),ve=Oe.current.pastePos||{},Xe=new ct.Range(ve.startLineNumber||$e.endLineNumber,ve.startColumn||$e.endColumn,ve.endLineNumber||$e.endLineNumber,ve.endColumn||$e.endColumn);rn.executeEdits("",[{range:Ee.range,text:""}])})}catch(Ee){}}let Re=gn();return De&&typeof De=="string"&&new wt(De,rn,ct),yn(!0),()=>{const Ee=Oe.current.instance;Ee.dispose();const $e=Ee.getModel();$e&&$e.dispose(),Oe.current.subscription&&Oe.current.subscription.dispose(),Re.unobserve(jt.current)}}catch(rn){}})},[]),(0,z.useEffect)(()=>{if(Oe.current.instance&&sn)return document.addEventListener("keydown",Pn,!1),()=>{document.removeEventListener("keydown",Pn)}},[Pe,sn]),(0,z.useEffect)(()=>{let Ft=Oe.current.instance;if(Ft&&sn){let rn=_e(ee);ct.editor.setModelLanguage(Ft.getModel(),rn)}},[ee,sn]),(0,z.useEffect)(()=>{Oe.current.instance&&sn&&ct.editor.setTheme(he)},[he,sn]),(0,z.useEffect)(()=>{let Ft=Oe.current.instance;Ye.current=ue,Ft&&sn&&(Ft.updateOptions(Ge({},ue)),setTimeout(()=>{Ft.getModel().updateOptions(Ge({},ue))},200))},[JSON.stringify(ue),sn]),(0,z.useEffect)(()=>{let Ft=Oe.current.instance;Ft&&sn&&Ft.layout()},[bt,ae,sn]);const[An,Yn]=(0,z.useState)(Te(bt)),[Nn,ar]=(0,z.useState)(Te(ae)),qn=At(Ge({},oe),{width:An,height:Nn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:jt,style:qn,onFocus:()=>{dt&&Yt()}},vt&&z.createElement(tt.CopyToClipboard,{text:te,onCopy:()=>gt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Qe.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 $t({width:je="100%",height:Gt="100%",original:bt,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[ue,ne]=(0,z.useState)(null);function he(Ve){let dt;return oe.current&&(dt=new at.Z(Mt=>{for(let pt of Mt)(pt.target.offsetHeight>0||pt.target.offsetWidth>0)&&Ve.layout()}),dt.observe(oe.current)),dt}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(Ve=>{ct=Ve;const dt=ct.editor.createDiffEditor(oe.current,At(Ge({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(dt);let Mt=he(dt);return()=>{dt.dispose();const pt=dt.getModel();pt&&pt.dispose(),Mt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{ue&&ue.setModel({original:ct.editor.createModel(bt,te),modified:ct.editor.createModel(ae,te)})},[bt,ae,te,ue]);const xe=Te(je),vt=Te(Gt),Pe={width:xe,height:vt};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Pe})}},79006:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return at}});var z=ie(59301);function at(ge,Ke){const be=(0,z.useRef)();(0,z.useEffect)(()=>{be.current=ge}),(0,z.useEffect)(()=>{function we(){be.current()}if(Ke!==null){let Ne=setInterval(we,Ke);return()=>clearInterval(Ne)}},[Ke])}},38644:function(an,Zt,ie){"use strict";ie.r(Zt),ie.d(Zt,{default:function(){return Qe}});var z=ie(59301),at=ie(39116),ge=ie(44283),Ke=ie(28284),be=ie(6767),we=ie(91882),Ne=ie(77019),Ze=ie(5269),Me=ie(82326),fe=ie(37568),Je=ie(37285),Se=ie(7939),Pt={flex_box_center:"flex_box_center___xV7b6",flex_space_between:"flex_space_between___VKhsb",flex_box_vertical_center:"flex_box_vertical_center___ZeNry",flex_box_center_end:"flex_box_center_end___j462S",flex_box_column:"flex_box_column___zDUss",bg:"bg___I9Ce6",title:"title___N0IDa",titleLeft:"titleLeft___v14y3",titleRight:"titleRight___QkPDR",btns:"btns___QGvIi"},rt=ie(79405),ke=ie(57940),Le=Object.defineProperty,Ae=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Rt=(kt,st,tt)=>st in kt?Le(kt,st,{enumerable:!0,configurable:!0,writable:!0,value:tt}):kt[st]=tt,wt=(kt,st)=>{for(var tt in st||(st={}))xt.call(st,tt)&&Rt(kt,tt,st[tt]);if(Ae)for(var tt of Ae(st))Ot.call(st,tt)&&Rt(kt,tt,st[tt]);return kt},mt=(kt,st,tt)=>new Promise((St,We)=>{var yt=Tt=>{try{pe(tt.next(Tt))}catch(Be){We(Be)}},ut=Tt=>{try{pe(tt.throw(Tt))}catch(Be){We(Be)}},pe=Tt=>Tt.done?St(Tt.value):Promise.resolve(Tt.value).then(yt,ut);pe((tt=tt.apply(kt,st)).next())});const gt=({graduation:kt,globalSetting:st,loading:tt,user:St,dispatch:We})=>{var yt;const ut=(0,ge.useParams)(),pe=(0,ge.useLocation)(),{userInfo:Tt}=St,[Be]=Ke.default.useForm(),{addTopicData:Ge}=kt,At=()=>mt(void 0,null,function*(){var ye;const se=Be.getFieldsValue(),Te=wt({},se);Te!=null&&Te.attachment_ids&&(Te.attachment_ids=(ye=Te.attachment_ids)==null?void 0:ye.map(Et=>Et.id||Et.response.id));const Ct=yield(0,rt.Sv)(wt({coursesId:ut.coursesId,attachment_ids:[]},Te));Ct.status?be.ZP.error(Ct.message):ge.history.push(`/classrooms/${ut.coursesId}/graduation_tasks/${ut.categoryId}`)});return(0,z.useEffect)(()=>{We({type:"graduation/addTopicDefaultData",payload:wt({},ut)})},[ut.coursesId]),z.createElement("section",{className:"edu-container"},z.createElement("section",{className:"animated fadeIn"},z.createElement("aside",{className:"mt10"},Tt&&z.createElement(we.Z,{separator:">"},z.createElement(we.Z.Item,null,z.createElement(ge.Link,{to:`${Tt.first_category_url}`},(yt=Tt==null?void 0:Tt.course)==null?void 0:yt.course_name)),z.createElement(we.Z.Item,null,z.createElement(ge.Link,{to:`/classrooms/${ut.coursesId}/graduation_tasks/${ut.categoryId}`},"\u6BD5\u8BBE\u4EFB\u52A1")),z.createElement(we.Z.Item,null,"\u65B0\u5EFA"))),z.createElement("aside",{className:[Pt.title,"mt20"].join(" ")},z.createElement(Ne.Z,{style:{width:"100%"}},z.createElement(Ze.Z,{flex:"1"},z.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),z.createElement(Ze.Z,null,z.createElement(ge.Link,{className:"font16 c-light-black",to:`/classrooms/${ut.coursesId}/exercise`},"\u8FD4\u56DE"))))),z.createElement("section",{className:[Pt.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},z.createElement(Ke.default,{layout:"vertical",form:Be,scrollToFirstError:!0,onFinish:ye=>mt(void 0,null,function*(){At()})},z.createElement(Ke.default.Item,{name:"task_type",label:"\u7C7B\u578B\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B"}]},z.createElement(Me.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},z.createElement(Me.default.Option,{value:1},"\u666E\u901A"),z.createElement(Me.default.Option,{value:2},"\u5206\u7EC4"))),z.createElement(Ke.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898"}]},z.createElement(fe.default,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"\u4EFB\u52A1\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),z.createElement(Je.Z,null),z.createElement(Ke.default.Item,{label:"\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},z.createElement(at.Z,{watch:!0,placeholder:"\u8BF7\u4EFB\u52A1\u5185\u5BB9\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),z.createElement(Ne.Z,null,z.createElement(Ze.Z,null,z.createElement(Ke.default.Item,{name:"attachment_ids"},z.createElement(ke.Z,null)))))),z.createElement("aside",{className:Pt.btns},z.createElement(Se.ZP,{type:"primary",onClick:()=>{Be.submit()}},"\u4FDD\u5B58"),z.createElement(ge.Link,{to:`/classrooms/${ut.coursesId}/graduation_tasks/${ut.categoryId}`},"\u53D6\u6D88")))};var Qe=(0,ge.connect)(({graduation:kt,loading:st,user:tt,globalSetting:St})=>({graduation:kt,globalSetting:St,user:tt,loading:st.effects}))(gt)},6755:function(an,Zt,ie){"use strict";ie.d(Zt,{$J:function(){return ge},JZ:function(){return be},bN:function(){return Ne},jP:function(){return we},rO:function(){return Ke}});var z=ie(49317),at=(Ze,Me,fe)=>new Promise((Je,Se)=>{var Pt=Le=>{try{ke(fe.next(Le))}catch(Ae){Se(Ae)}},rt=Le=>{try{ke(fe.throw(Le))}catch(Ae){Se(Ae)}},ke=Le=>Le.done?Je(Le.value):Promise.resolve(Le.value).then(Pt,rt);ke((fe=fe.apply(Ze,Me)).next())});function ge(Ze){return(0,z.U2)(`libraries/${Ze}.json`)}function Ke(){return(0,z.U2)("library_tags.json")}function be(Ze){return at(this,null,function*(){return(yield(0,z.IV)(`attachments/${Ze}.json`)).status===0})}function we(Ze){return(0,z.v_)("libraries.json",Ze)}function Ne(Ze,Me){return(0,z.gz)(`libraries/${Ze}.json`,Me)}},20047:function(an,Zt,ie){"use strict";ie.d(Zt,{AL:function(){return wt},Iy:function(){return Je},Qv:function(){return rt},ez:function(){return Rt},jb:function(){return Se}});var z=ie(32834),at=ie.n(z),ge=ie(11690),Ke=ie.n(ge);let be=1;function we(st,tt){const St=st.match(/^(\s+)(?:```)/);if(St===null)return tt;const We=St[1];return tt.split(` `).map(yt=>{const ut=yt.match(/^\s+/);if(ut===null)return yt;const[pe]=ut;return pe.length>=We.length?yt.slice(We.length):yt}).join(` `)}let Ne=[],Ze=["
    "];const Me=new(at()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){Ne.length=0,Ze=["
      "]}const Se={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Pt(st,tt,St,We){if(tt>=st.length||st[tt].level<=St)return tt;var yt=st[tt];We.push("
    • "+yt.text+""),tt++;var ut=[];return tt=Pt(st,tt,yt.level,ut),ut.length>0&&(We.push("
        "),ut.forEach(function(pe){We.push(pe)}),We.push("
      ")),We.push("
    • "),tt=Pt(st,tt,St,We),tt}function rt(){return Pt(Ne,0,0,Ze),Ze.push("
    "),Ze.join("")}const ke={heading(st){const tt=fe.exec(st);if(be+=1,tt)return{type:"heading",raw:tt[0],depth:tt[1].length,text:tt[2]}},fences(st){const tt=this.rules.block.fences.exec(st);if(tt){const St=tt[0];let We=we(St,tt[3]||"");const yt=tt[2]?tt[2].trim():tt[2];if(["latex","katex","math"].indexOf(yt)>=0){const ut=xt(),pe=We;We=ut,Ot[ut]={type:"block",expression:pe}}return{type:"code",raw:St,lang:yt,text:We}}}},Le=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ae=0;const xt=()=>`__special_katext_id_${Ae++}__`;let Ot={};function Rt(){return Ot}function wt(){Ae=0,Ot={}}function mt(st){return st=st.replace(Le,(tt,St)=>{const We=xt();return Ot[We]={type:"inline",expression:St},We}),st}const gt=Me.listitem;Me.listitem=function(st){return gt(mt(st))};const Qe=Me.paragraph;Me.paragraph=function(st){return Qe(mt(st))};const kt=Me.tablecell;Me.tablecell=function(st,tt){return kt(mt(st),tt)},Me.code=function(st,tt,St){const We=(tt||"").match(/\S*/)[0];return We?["latex","katex","math"].indexOf(We)>=0?`

    ${st}

    `:`
    ${St?st:(0,ge.escape)(st,!0)}
    `:'
    '+(St?st:(0,ge.escape)(st,!0))+"
    "},Me.heading=function(st,tt,St){let We=this.options.headerPrefix+St.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ne.push({anchor:We,level:tt,text:st}),"'+st+""},at().setOptions({silent:!0,gfm:!0,pedantic:!1}),at().use({tokenizer:ke,renderer:Me}),Zt.ZP=at()},86013:function(an,Zt,ie){"use strict";var z=ie(59301),at=ie(19248);const ge=Ke=>{let be;return typeof Ke=="object"&&(Ke!=null&&Ke.clearIcon)?be=Ke:Ke&&(be={clearIcon:z.createElement(at.Z,null)}),be};Zt.Z=ge},91882:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(11592),be=ie(26112),we=ie(22703),Ne=ie(48755),Ze=ie(84105),Me=ie(19563);const fe=Ge=>{let{children:At}=Ge;const{getPrefixCls:ye}=z.useContext(Ne.E_),se=ye("breadcrumb");return z.createElement("li",{className:`${se}-separator`,"aria-hidden":"true"},At===""?At:At||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=fe,Se=function(Ge,At){var ye={};for(var se in Ge)Object.prototype.hasOwnProperty.call(Ge,se)&&At.indexOf(se)<0&&(ye[se]=Ge[se]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,se=Object.getOwnPropertySymbols(Ge);TeAt[Te]||se)}function rt(Ge,At,ye,se){if(ye==null)return null;const{className:Te,onClick:Ct}=At,Et=Se(At,["className","onClick"]),Ie=Object.assign(Object.assign({},(0,be.Z)(Et,{data:!0,aria:!0})),{onClick:Ct});return se!==void 0?z.createElement("a",Object.assign({},Ie,{className:ge()(`${Ge}-link`,Te),href:se}),ye):z.createElement("span",Object.assign({},Ie,{className:ge()(`${Ge}-link`,Te)}),ye)}function ke(Ge,At){return(se,Te,Ct,Et,Ie)=>{if(At)return At(se,Te,Ct,Et);const _e=Pt(se,Te);return rt(Ge,se,_e,Ie)}}var Le=function(Ge,At){var ye={};for(var se in Ge)Object.prototype.hasOwnProperty.call(Ge,se)&&At.indexOf(se)<0&&(ye[se]=Ge[se]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,se=Object.getOwnPropertySymbols(Ge);Te{const{prefixCls:At,separator:ye="/",children:se,menu:Te,overlay:Ct,dropdownProps:Et,href:Ie}=Ge,ct=(Yt=>{if(Te||Ct){const Dt=Object.assign({},Et);if(Te){const $t=Te||{},{items:je}=$t,Gt=Le($t,["items"]);Dt.menu=Object.assign(Object.assign({},Gt),{items:je==null?void 0:je.map((bt,ae)=>{var{key:te,title:ee,label:oe,path:ue}=bt,ne=Le(bt,["key","title","label","path"]);let he=oe!=null?oe:ee;return ue&&(he=z.createElement("a",{href:`${Ie}${ue}`},he)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:he})})})}else Ct&&(Dt.overlay=Ct);return z.createElement(Me.Z,Object.assign({placement:"bottom"},Dt),z.createElement("span",{className:`${At}-overlay-link`},Yt,z.createElement(Ze.Z,null)))}return Yt})(se);return ct!=null?z.createElement(z.Fragment,null,z.createElement("li",null,ct),ye&&z.createElement(Je,null,ye)):null},xt=Ge=>{const{prefixCls:At,children:ye,href:se}=Ge,Te=Le(Ge,["prefixCls","children","href"]),{getPrefixCls:Ct}=z.useContext(Ne.E_),Et=Ct("breadcrumb",At);return z.createElement(Ae,Object.assign({},Te,{prefixCls:Et}),rt(Et,Te,ye,se))};xt.__ANT_BREADCRUMB_ITEM=!0;var Ot=xt,Rt=ie(36237),wt=ie(63356),mt=ie(16931),gt=ie(51636);const Qe=Ge=>{const{componentCls:At,iconCls:ye,calc:se}=Ge;return{[At]:Object.assign(Object.assign({},(0,wt.Wf)(Ge)),{color:Ge.itemColor,fontSize:Ge.fontSize,[ye]:{fontSize:Ge.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ge.linkColor,transition:`color ${Ge.motionDurationMid}`,padding:`0 ${(0,Rt.unit)(Ge.paddingXXS)}`,borderRadius:Ge.borderRadiusSM,height:Ge.fontHeight,display:"inline-block",marginInline:se(Ge.marginXXS).mul(-1).equal(),"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover}},(0,wt.Qy)(Ge)),"li:last-child":{color:Ge.lastItemColor},[`${At}-separator`]:{marginInline:Ge.separatorMargin,color:Ge.separatorColor},[`${At}-link`]:{[` > ${ye} + span, > ${ye} + a `]:{marginInlineStart:Ge.marginXXS}},[`${At}-overlay-link`]:{borderRadius:Ge.borderRadiusSM,height:Ge.fontHeight,display:"inline-block",padding:`0 ${(0,Rt.unit)(Ge.paddingXXS)}`,marginInline:se(Ge.marginXXS).mul(-1).equal(),[`> ${ye}`]:{marginInlineStart:Ge.marginXXS,fontSize:Ge.fontSizeIcon},"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover,a:{color:Ge.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}})}},kt=Ge=>({itemColor:Ge.colorTextDescription,lastItemColor:Ge.colorText,iconFontSize:Ge.fontSize,linkColor:Ge.colorTextDescription,linkHoverColor:Ge.colorText,separatorColor:Ge.colorTextDescription,separatorMargin:Ge.marginXS});var st=(0,mt.I$)("Breadcrumb",Ge=>{const At=(0,gt.mergeToken)(Ge,{});return Qe(At)},kt),tt=function(Ge,At){var ye={};for(var se in Ge)Object.prototype.hasOwnProperty.call(Ge,se)&&At.indexOf(se)<0&&(ye[se]=Ge[se]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,se=Object.getOwnPropertySymbols(Ge);Te{var{breadcrumbName:Et}=Ct,Ie=tt(Ct,["breadcrumbName"]);return Object.assign(Object.assign({},Ie),{title:Et})})}),Te}function We(Ge,At){return(0,z.useMemo)(()=>Ge||(At?At.map(St):null),[Ge,At])}var yt=function(Ge,At){var ye={};for(var se in Ge)Object.prototype.hasOwnProperty.call(Ge,se)&&At.indexOf(se)<0&&(ye[se]=Ge[se]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,se=Object.getOwnPropertySymbols(Ge);Te{if(At===void 0)return At;let ye=(At||"").replace(/^\//,"");return Object.keys(Ge).forEach(se=>{ye=ye.replace(`:${se}`,Ge[se])}),ye},pe=Ge=>{const{prefixCls:At,separator:ye="/",style:se,className:Te,rootClassName:Ct,routes:Et,items:Ie,children:_e,itemRender:ct,params:Yt={}}=Ge,Dt=yt(Ge,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$t,direction:je,breadcrumb:Gt}=z.useContext(Ne.E_);let bt;const ae=$t("breadcrumb",At),[te,ee,oe]=st(ae),ue=We(Ie,Et),ne=ke(ae,ct);if(ue&&ue.length>0){const vt=[],Pe=Ie||Et;bt=ue.map((Ve,dt)=>{const{path:Mt,key:pt,type:Kt,menu:Vt,overlay:zt,onClick:ln,className:_t,separator:on,dropdownProps:It}=Ve,Qt=ut(Yt,Mt);Qt!==void 0&&vt.push(Qt);const Wt=pt!=null?pt:dt;if(Kt==="separator")return z.createElement(Je,{key:Wt},on);const De={},it=dt===ue.length-1;Vt?De.menu=Vt:zt&&(De.overlay=zt);let{href:Lt}=Ve;return vt.length&&Qt!==void 0&&(Lt=`#/${vt.join("/")}`),z.createElement(Ae,Object.assign({key:Wt},De,(0,be.Z)(Ve,{data:!0,aria:!0}),{className:_t,dropdownProps:It,href:Lt,separator:it?"":ye,onClick:ln,prefixCls:ae}),ne(Ve,Yt,Pe,vt,Lt))})}else if(_e){const vt=(0,Ke.Z)(_e).length;bt=(0,Ke.Z)(_e).map((Pe,Ve)=>{if(!Pe)return Pe;const dt=Ve===vt-1;return(0,we.Tm)(Pe,{separator:dt?"":ye,key:Ve})})}const he=ge()(ae,Gt==null?void 0:Gt.className,{[`${ae}-rtl`]:je==="rtl"},Te,Ct,ee,oe),xe=Object.assign(Object.assign({},Gt==null?void 0:Gt.style),se);return te(z.createElement("nav",Object.assign({className:he,style:xe},Dt),z.createElement("ol",null,bt)))};pe.Item=Ot,pe.Separator=Je;var Tt=pe,Be=Tt},38406:function(an,Zt,ie){"use strict";var z=ie(59301),at=ie(48755),ge=ie(584);const Ke=be=>{const{componentName:we}=be,{getPrefixCls:Ne}=(0,z.useContext)(at.E_),Ze=Ne("empty");switch(we){case"Table":case"List":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ze}-small`});case"Table.filter":return null;default:return z.createElement(ge.Z,null)}};Zt.Z=Ke},37285:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return rt}});var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(48755),be=ie(36237),we=ie(63356),Ne=ie(16931),Ze=ie(51636);const Me=ke=>{const{componentCls:Le,sizePaddingEdgeHorizontal:Ae,colorSplit:xt,lineWidth:Ot,textPaddingInline:Rt,orientationMargin:wt,verticalMarginInline:mt}=ke;return{[Le]:Object.assign(Object.assign({},(0,we.Wf)(ke)),{borderBlockStart:`${(0,be.unit)(Ot)} solid ${xt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:mt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,be.unit)(Ot)} solid ${xt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,be.unit)(ke.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Le}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,be.unit)(ke.dividerHorizontalWithTextGutterMargin)} 0`,color:ke.colorTextHeading,fontWeight:500,fontSize:ke.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${xt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,be.unit)(Ot)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Le}-with-text-start`]:{"&::before":{width:`calc(${wt} * 100%)`},"&::after":{width:`calc(100% - ${wt} * 100%)`}},[`&-horizontal${Le}-with-text-end`]:{"&::before":{width:`calc(100% - ${wt} * 100%)`},"&::after":{width:`calc(${wt} * 100%)`}},[`${Le}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Rt},"&-dashed":{background:"none",borderColor:xt,borderStyle:"dashed",borderWidth:`${(0,be.unit)(Ot)} 0 0`},[`&-horizontal${Le}-with-text${Le}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Le}-dashed`]:{borderInlineStartWidth:Ot,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:xt,borderStyle:"dotted",borderWidth:`${(0,be.unit)(Ot)} 0 0`},[`&-horizontal${Le}-with-text${Le}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Le}-dotted`]:{borderInlineStartWidth:Ot,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Le}-with-text`]:{color:ke.colorText,fontWeight:"normal",fontSize:ke.fontSize},[`&-horizontal${Le}-with-text-start${Le}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Le}-inner-text`]:{paddingInlineStart:Ae}},[`&-horizontal${Le}-with-text-end${Le}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Le}-inner-text`]:{paddingInlineEnd:Ae}}})}},fe=ke=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ke.marginXS});var Je=(0,Ne.I$)("Divider",ke=>{const Le=(0,Ze.mergeToken)(ke,{dividerHorizontalWithTextGutterMargin:ke.margin,dividerHorizontalGutterMargin:ke.marginLG,sizePaddingEdgeHorizontal:0});return[Me(Le)]},fe,{unitless:{orientationMargin:!0}}),Se=function(ke,Le){var Ae={};for(var xt in ke)Object.prototype.hasOwnProperty.call(ke,xt)&&Le.indexOf(xt)<0&&(Ae[xt]=ke[xt]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,xt=Object.getOwnPropertySymbols(ke);Ot{const{getPrefixCls:Le,direction:Ae,className:xt,style:Ot}=(0,Ke.dj)("divider"),{prefixCls:Rt,type:wt="horizontal",orientation:mt="center",orientationMargin:gt,className:Qe,rootClassName:kt,children:st,dashed:tt,variant:St="solid",plain:We,style:yt}=ke,ut=Se(ke,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),pe=Le("divider",Rt),[Tt,Be,Ge]=Je(pe),At=!!st,ye=z.useMemo(()=>mt==="left"?Ae==="rtl"?"end":"start":mt==="right"?Ae==="rtl"?"start":"end":mt,[Ae,mt]),se=ye==="start"&>!=null,Te=ye==="end"&>!=null,Ct=ge()(pe,xt,Be,Ge,`${pe}-${wt}`,{[`${pe}-with-text`]:At,[`${pe}-with-text-${ye}`]:At,[`${pe}-dashed`]:!!tt,[`${pe}-${St}`]:St!=="solid",[`${pe}-plain`]:!!We,[`${pe}-rtl`]:Ae==="rtl",[`${pe}-no-default-orientation-margin-start`]:se,[`${pe}-no-default-orientation-margin-end`]:Te},Qe,kt),Et=z.useMemo(()=>typeof gt=="number"?gt:/^\d+$/.test(gt)?Number(gt):gt,[gt]),Ie={marginInlineStart:se?Et:void 0,marginInlineEnd:Te?Et:void 0};return Tt(z.createElement("div",Object.assign({className:Ct,style:Object.assign(Object.assign({},Ot),yt)},ut,{role:"separator"}),st&&wt!=="vertical"&&z.createElement("span",{className:`${pe}-inner-text`,style:Ie},st)))}},36207:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return vt}});var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(85899),be=ie(72190),we=ie(43403),Ne=ie(34280),Ze=z.createContext(null),Me=z.createContext({}),fe=Ze,Je=ie(18642),Se=ie(60499),Pt=ie(77900),rt=ie(10228),ke=ie(26112),Le=ie(42244),Ae=ie(8654),xt=["prefixCls","className","containerRef"],Ot=function(Ve){var dt=Ve.prefixCls,Mt=Ve.className,pt=Ve.containerRef,Kt=(0,Le.Z)(Ve,xt),Vt=z.useContext(Me),zt=Vt.panel,ln=(0,Ae.x1)(zt,pt);return z.createElement("div",(0,Se.Z)({className:ge()("".concat(dt,"-content"),Mt),role:"dialog",ref:ln},(0,ke.Z)(Ve,{aria:!0}),{"aria-modal":"true"},Kt))},Rt=Ot,wt=ie(48736);function mt(Pe){return typeof Pe=="string"&&String(Number(Pe))===Pe?((0,wt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Pe)):Pe}function gt(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 Qe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function kt(Pe,Ve){var dt,Mt,pt,Kt=Pe.prefixCls,Vt=Pe.open,zt=Pe.placement,ln=Pe.inline,_t=Pe.push,on=Pe.forceRender,It=Pe.autoFocus,Qt=Pe.keyboard,Wt=Pe.classNames,De=Pe.rootClassName,it=Pe.rootStyle,Lt=Pe.zIndex,jt=Pe.className,Oe=Pe.id,Ye=Pe.style,ft=Pe.motion,Bt=Pe.width,Ut=Pe.height,cn=Pe.children,Sn=Pe.mask,Cn=Pe.maskClosable,sn=Pe.maskMotion,yn=Pe.maskClassName,gn=Pe.maskStyle,$n=Pe.afterOpenChange,bn=Pe.onClose,vn=Pe.onMouseEnter,Jt=Pe.onMouseOver,Pn=Pe.onMouseLeave,mn=Pe.onClick,kn=Pe.onKeyDown,jn=Pe.onKeyUp,Zn=Pe.styles,An=Pe.drawerRender,Yn=z.useRef(),Nn=z.useRef(),ar=z.useRef();z.useImperativeHandle(Ve,function(){return Yn.current});var qn=function(ze){var He=ze.keyCode,nt=ze.shiftKey;switch(He){case rt.Z.TAB:{if(He===rt.Z.TAB){if(!nt&&document.activeElement===ar.current){var en;(en=Nn.current)===null||en===void 0||en.focus({preventScroll:!0})}else if(nt&&document.activeElement===Nn.current){var Xt;(Xt=ar.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}}break}case rt.Z.ESC:{bn&&Qt&&(ze.stopPropagation(),bn(ze));break}}};z.useEffect(function(){if(Vt&&It){var et;(et=Yn.current)===null||et===void 0||et.focus({preventScroll:!0})}},[Vt]);var Ft=z.useState(!1),rn=(0,be.Z)(Ft,2),zn=rn[0],nr=rn[1],Fe=z.useContext(fe),ot;typeof _t=="boolean"?ot=_t?{}:{distance:0}:ot=_t||{};var Ce=(dt=(Mt=(pt=ot)===null||pt===void 0?void 0:pt.distance)!==null&&Mt!==void 0?Mt:Fe==null?void 0:Fe.pushDistance)!==null&&dt!==void 0?dt:180,Re=z.useMemo(function(){return{pushDistance:Ce,push:function(){nr(!0)},pull:function(){nr(!1)}}},[Ce]);z.useEffect(function(){if(Vt){var et;Fe==null||(et=Fe.push)===null||et===void 0||et.call(Fe)}else{var ze;Fe==null||(ze=Fe.pull)===null||ze===void 0||ze.call(Fe)}},[Vt]),z.useEffect(function(){return function(){var et;Fe==null||(et=Fe.pull)===null||et===void 0||et.call(Fe)}},[]);var Ee=Sn&&z.createElement(Pt.default,(0,Se.Z)({key:"mask"},sn,{visible:Vt}),function(et,ze){var He=et.className,nt=et.style;return z.createElement("div",{className:ge()("".concat(Kt,"-mask"),He,Wt==null?void 0:Wt.mask,yn),style:(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},nt),gn),Zn==null?void 0:Zn.mask),onClick:Cn&&Vt?bn:void 0,ref:ze})}),$e=typeof ft=="function"?ft(zt):ft,ve={};if(zn&&Ce)switch(zt){case"top":ve.transform="translateY(".concat(Ce,"px)");break;case"bottom":ve.transform="translateY(".concat(-Ce,"px)");break;case"left":ve.transform="translateX(".concat(Ce,"px)");break;default:ve.transform="translateX(".concat(-Ce,"px)");break}zt==="left"||zt==="right"?ve.width=mt(Bt):ve.height=mt(Ut);var Xe={onMouseEnter:vn,onMouseOver:Jt,onMouseLeave:Pn,onClick:mn,onKeyDown:kn,onKeyUp:jn},qe=z.createElement(Pt.default,(0,Se.Z)({key:"panel"},$e,{visible:Vt,forceRender:on,onVisibleChanged:function(ze){$n==null||$n(ze)},removeOnLeave:!1,leavedClassName:"".concat(Kt,"-content-wrapper-hidden")}),function(et,ze){var He=et.className,nt=et.style,en=z.createElement(Rt,(0,Se.Z)({id:Oe,containerRef:ze,prefixCls:Kt,className:ge()(jt,Wt==null?void 0:Wt.content),style:(0,Ke.Z)((0,Ke.Z)({},Ye),Zn==null?void 0:Zn.content)},(0,ke.Z)(Pe,{aria:!0}),Xe),cn);return z.createElement("div",(0,Se.Z)({className:ge()("".concat(Kt,"-content-wrapper"),Wt==null?void 0:Wt.wrapper,He),style:(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},ve),nt),Zn==null?void 0:Zn.wrapper)},(0,ke.Z)(Pe,{data:!0})),An?An(en):en)}),ht=(0,Ke.Z)({},it);return Lt&&(ht.zIndex=Lt),z.createElement(fe.Provider,{value:Re},z.createElement("div",{className:ge()(Kt,"".concat(Kt,"-").concat(zt),De,(0,Je.Z)((0,Je.Z)({},"".concat(Kt,"-open"),Vt),"".concat(Kt,"-inline"),ln)),style:ht,tabIndex:-1,ref:Yn,onKeyDown:qn},Ee,z.createElement("div",{tabIndex:0,ref:Nn,style:Qe,"aria-hidden":"true","data-sentinel":"start"}),qe,z.createElement("div",{tabIndex:0,ref:ar,style:Qe,"aria-hidden":"true","data-sentinel":"end"})))}var st=z.forwardRef(kt),tt=st,St=function(Ve){var dt=Ve.open,Mt=dt===void 0?!1:dt,pt=Ve.prefixCls,Kt=pt===void 0?"rc-drawer":pt,Vt=Ve.placement,zt=Vt===void 0?"right":Vt,ln=Ve.autoFocus,_t=ln===void 0?!0:ln,on=Ve.keyboard,It=on===void 0?!0:on,Qt=Ve.width,Wt=Qt===void 0?378:Qt,De=Ve.mask,it=De===void 0?!0:De,Lt=Ve.maskClosable,jt=Lt===void 0?!0:Lt,Oe=Ve.getContainer,Ye=Ve.forceRender,ft=Ve.afterOpenChange,Bt=Ve.destroyOnClose,Ut=Ve.onMouseEnter,cn=Ve.onMouseOver,Sn=Ve.onMouseLeave,Cn=Ve.onClick,sn=Ve.onKeyDown,yn=Ve.onKeyUp,gn=Ve.panelRef,$n=z.useState(!1),bn=(0,be.Z)($n,2),vn=bn[0],Jt=bn[1],Pn=z.useState(!1),mn=(0,be.Z)(Pn,2),kn=mn[0],jn=mn[1];(0,Ne.Z)(function(){jn(!0)},[]);var Zn=kn?Mt:!1,An=z.useRef(),Yn=z.useRef();(0,Ne.Z)(function(){Zn&&(Yn.current=document.activeElement)},[Zn]);var Nn=function(zn){var nr;if(Jt(zn),ft==null||ft(zn),!zn&&Yn.current&&!((nr=An.current)!==null&&nr!==void 0&&nr.contains(Yn.current))){var Fe;(Fe=Yn.current)===null||Fe===void 0||Fe.focus({preventScroll:!0})}},ar=z.useMemo(function(){return{panel:gn}},[gn]);if(!Ye&&!vn&&!Zn&&Bt)return null;var qn={onMouseEnter:Ut,onMouseOver:cn,onMouseLeave:Sn,onClick:Cn,onKeyDown:sn,onKeyUp:yn},Ft=(0,Ke.Z)((0,Ke.Z)({},Ve),{},{open:Zn,prefixCls:Kt,placement:zt,autoFocus:_t,keyboard:It,width:Wt,mask:it,maskClosable:jt,inline:Oe===!1,afterOpenChange:Nn,ref:An},qn);return z.createElement(Me.Provider,{value:ar},z.createElement(we.Z,{open:Zn||Ye||vn,autoDestroy:!1,getContainer:Oe,autoLock:it&&(Zn||vn)},z.createElement(tt,Ft)))},We=St,yt=We,ut=ie(62487),pe=ie(75030),Tt=ie(86641),Be=ie(55743),Ge=ie(48755),At=ie(91190),ye=ie(78776),se=ie(458),Ct=Pe=>{var Ve,dt;const{prefixCls:Mt,title:pt,footer:Kt,extra:Vt,loading:zt,onClose:ln,headerStyle:_t,bodyStyle:on,footerStyle:It,children:Qt,classNames:Wt,styles:De}=Pe,it=(0,Ge.dj)("drawer"),Lt=z.useCallback(Bt=>z.createElement("button",{type:"button",onClick:ln,"aria-label":"Close",className:`${Mt}-close`},Bt),[ln]),[jt,Oe]=(0,ye.Z)((0,ye.w)(Pe),(0,ye.w)(it),{closable:!0,closeIconRender:Lt}),Ye=z.useMemo(()=>{var Bt,Ut;return!pt&&!jt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Bt=it.styles)===null||Bt===void 0?void 0:Bt.header),_t),De==null?void 0:De.header),className:ge()(`${Mt}-header`,{[`${Mt}-header-close-only`]:jt&&!pt&&!Vt},(Ut=it.classNames)===null||Ut===void 0?void 0:Ut.header,Wt==null?void 0:Wt.header)},z.createElement("div",{className:`${Mt}-header-title`},Oe,pt&&z.createElement("div",{className:`${Mt}-title`},pt)),Vt&&z.createElement("div",{className:`${Mt}-extra`},Vt))},[jt,Oe,Vt,_t,Mt,pt]),ft=z.useMemo(()=>{var Bt,Ut;if(!Kt)return null;const cn=`${Mt}-footer`;return z.createElement("div",{className:ge()(cn,(Bt=it.classNames)===null||Bt===void 0?void 0:Bt.footer,Wt==null?void 0:Wt.footer),style:Object.assign(Object.assign(Object.assign({},(Ut=it.styles)===null||Ut===void 0?void 0:Ut.footer),It),De==null?void 0:De.footer)},Kt)},[Kt,It,Mt]);return z.createElement(z.Fragment,null,Ye,z.createElement("div",{className:ge()(`${Mt}-body`,Wt==null?void 0:Wt.body,(Ve=it.classNames)===null||Ve===void 0?void 0:Ve.body),style:Object.assign(Object.assign(Object.assign({},(dt=it.styles)===null||dt===void 0?void 0:dt.body),on),De==null?void 0:De.body)},zt?z.createElement(se.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Mt}-body-skeleton`}):Qt),ft)},Et=ie(36237),Ie=ie(63356),_e=ie(16931),ct=ie(51636);const Yt=Pe=>{const Ve="100%";return{left:`translateX(-${Ve})`,right:`translateX(${Ve})`,top:`translateY(-${Ve})`,bottom:`translateY(${Ve})`}[Pe]},Dt=(Pe,Ve)=>({"&-enter, &-appear":Object.assign(Object.assign({},Pe),{"&-active":Ve}),"&-leave":Object.assign(Object.assign({},Ve),{"&-active":Pe})}),$t=(Pe,Ve)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ve}`}}},Dt({opacity:Pe},{opacity:1})),je=(Pe,Ve)=>[$t(.7,Ve),Dt({transform:Yt(Pe)},{transform:"none"})];var bt=Pe=>{const{componentCls:Ve,motionDurationSlow:dt}=Pe;return{[Ve]:{[`${Ve}-mask-motion`]:$t(0,dt),[`${Ve}-panel-motion`]:["left","right","top","bottom"].reduce((Mt,pt)=>Object.assign(Object.assign({},Mt),{[`&-${pt}`]:je(pt,dt)}),{})}}};const ae=Pe=>{const{borderRadiusSM:Ve,componentCls:dt,zIndexPopup:Mt,colorBgMask:pt,colorBgElevated:Kt,motionDurationSlow:Vt,motionDurationMid:zt,paddingXS:ln,padding:_t,paddingLG:on,fontSizeLG:It,lineHeightLG:Qt,lineWidth:Wt,lineType:De,colorSplit:it,marginXS:Lt,colorIcon:jt,colorIconHover:Oe,colorBgTextHover:Ye,colorBgTextActive:ft,colorText:Bt,fontWeightStrong:Ut,footerPaddingBlock:cn,footerPaddingInline:Sn,calc:Cn}=Pe,sn=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:Mt,pointerEvents:"none",color:Bt,"&-pure":{position:"relative",background:Kt,display:"flex",flexDirection:"column",[`&${dt}-left`]:{boxShadow:Pe.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:Pe.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:Pe.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:Pe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:Mt,background:pt,pointerEvents:"auto"},[sn]:{position:"absolute",zIndex:Mt,maxWidth:"100vw",transition:`all ${Vt}`,"&-hidden":{display:"none"}},[`&-left > ${sn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Pe.boxShadowDrawerLeft},[`&-right > ${sn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Pe.boxShadowDrawerRight},[`&-top > ${sn}`]:{top:0,insetInline:0,boxShadow:Pe.boxShadowDrawerUp},[`&-bottom > ${sn}`]:{bottom:0,insetInline:0,boxShadow:Pe.boxShadowDrawerDown},[`${dt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Kt,pointerEvents:"auto"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Et.unit)(_t)} ${(0,Et.unit)(on)}`,fontSize:It,lineHeight:Qt,borderBottom:`${(0,Et.unit)(Wt)} ${De} ${it}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:Object.assign({display:"inline-flex",width:Cn(It).add(ln).equal(),height:Cn(It).add(ln).equal(),borderRadius:Ve,justifyContent:"center",alignItems:"center",marginInlineEnd:Lt,color:jt,fontWeight:Ut,fontSize:It,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${zt}`,textRendering:"auto","&:hover":{color:Oe,backgroundColor:Ye,textDecoration:"none"},"&:active":{backgroundColor:ft}},(0,Ie.Qy)(Pe)),[`${dt}-title`]:{flex:1,margin:0,fontWeight:Pe.fontWeightStrong,fontSize:It,lineHeight:Qt},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:on,overflow:"auto",[`${dt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${dt}-footer`]:{flexShrink:0,padding:`${(0,Et.unit)(cn)} ${(0,Et.unit)(Sn)}`,borderTop:`${(0,Et.unit)(Wt)} ${De} ${it}`},"&-rtl":{direction:"rtl"}}}},te=Pe=>({zIndexPopup:Pe.zIndexPopupBase,footerPaddingBlock:Pe.paddingXS,footerPaddingInline:Pe.padding});var ee=(0,_e.I$)("Drawer",Pe=>{const Ve=(0,ct.mergeToken)(Pe,{});return[ae(Ve),bt(Ve)]},te),oe=function(Pe,Ve){var dt={};for(var Mt in Pe)Object.prototype.hasOwnProperty.call(Pe,Mt)&&Ve.indexOf(Mt)<0&&(dt[Mt]=Pe[Mt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Mt=Object.getOwnPropertySymbols(Pe);pt{var Ve;const{rootClassName:dt,width:Mt,height:pt,size:Kt="default",mask:Vt=!0,push:zt=ne,open:ln,afterOpenChange:_t,onClose:on,prefixCls:It,getContainer:Qt,style:Wt,className:De,visible:it,afterVisibleChange:Lt,maskStyle:jt,drawerStyle:Oe,contentWrapperStyle:Ye}=Pe,ft=oe(Pe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Bt,getPrefixCls:Ut,direction:cn,className:Sn,style:Cn,classNames:sn,styles:yn}=(0,Ge.dj)("drawer"),gn=Ut("drawer",It),[$n,bn,vn]=ee(gn),Jt=Qt===void 0&&Bt?()=>Bt(document.body):Qt,Pn=ge()({"no-mask":!Vt,[`${gn}-rtl`]:cn==="rtl"},dt,bn,vn),mn=z.useMemo(()=>Mt!=null?Mt:Kt==="large"?736:378,[Mt,Kt]),kn=z.useMemo(()=>pt!=null?pt:Kt==="large"?736:378,[pt,Kt]),jn={motionName:(0,Tt.m)(gn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Zn=Ft=>({motionName:(0,Tt.m)(gn,`panel-motion-${Ft}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),An=(0,At.H)(),[Yn,Nn]=(0,pe.Cn)("Drawer",ft.zIndex),{classNames:ar={},styles:qn={}}=ft;return $n(z.createElement(ut.Z,{form:!0,space:!0},z.createElement(Be.Z.Provider,{value:Nn},z.createElement(yt,Object.assign({prefixCls:gn,onClose:on,maskMotion:jn,motion:Zn},ft,{classNames:{mask:ge()(ar.mask,sn.mask),content:ge()(ar.content,sn.content),wrapper:ge()(ar.wrapper,sn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},qn.mask),jt),yn.mask),content:Object.assign(Object.assign(Object.assign({},qn.content),Oe),yn.content),wrapper:Object.assign(Object.assign(Object.assign({},qn.wrapper),Ye),yn.wrapper)},open:ln!=null?ln:it,mask:Vt,push:zt,width:mn,height:kn,style:Object.assign(Object.assign({},Cn),Wt),className:ge()(Sn,De),rootClassName:Pn,getContainer:Jt,afterOpenChange:_t!=null?_t:Lt,panelRef:An,zIndex:Yn}),z.createElement(Ct,Object.assign({prefixCls:gn},ft,{onClose:on}))))))},xe=Pe=>{const{prefixCls:Ve,style:dt,className:Mt,placement:pt="right"}=Pe,Kt=oe(Pe,["prefixCls","style","className","placement"]),{getPrefixCls:Vt}=z.useContext(Ge.E_),zt=Vt("drawer",Ve),[ln,_t,on]=ee(zt),It=ge()(zt,`${zt}-pure`,`${zt}-${pt}`,_t,on,Mt);return ln(z.createElement("div",{className:It,style:dt},z.createElement(Ct,Object.assign({prefixCls:zt},Kt))))};he._InternalPanelDoNotUseOrYouWillBeFired=xe;var vt=he},19563:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Et}});var z=ie(59301),at=ie(33853),ge=ie(38819),Ke=ie(92310),be=ie.n(Ke),we=ie(96478),Ne=ie(6089),Ze=ie(18929),Me=ie(2738),fe=ie(75030),Se=Ie=>typeof Ie!="object"&&typeof Ie!="function"||Ie===null,Pt=ie(52838),rt=ie(45915),ke=ie(22703),Le=ie(32383),Ae=ie(55743),xt=ie(48755),Ot=ie(83397),Rt=ie(93041),wt=ie(78857),mt=ie(57700),gt=ie(36237),Qe=ie(63356),kt=ie(46e3),st=ie(93873),tt=ie(34925),St=ie(37645),We=ie(36305),yt=ie(16931),ut=ie(51636),Tt=Ie=>{const{componentCls:_e,menuCls:ct,colorError:Yt,colorTextLightSolid:Dt}=Ie,$t=`${ct}-item`;return{[`${_e}, ${_e}-menu-submenu`]:{[`${ct} ${$t}`]:{[`&${$t}-danger:not(${$t}-disabled)`]:{color:Yt,"&:hover":{color:Dt,backgroundColor:Yt}}}}}};const Be=Ie=>{const{componentCls:_e,menuCls:ct,zIndexPopup:Yt,dropdownArrowDistance:Dt,sizePopupArrow:$t,antCls:je,iconCls:Gt,motionDurationMid:bt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:ne,colorBgElevated:he}=Ie;return[{[_e]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Yt,display:"block","&::before":{position:"absolute",insetBlock:Ie.calc($t).div(2).sub(Dt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${je}-btn`]:{[`& > ${Gt}-down, & > ${je}-btn-icon > ${Gt}-down`]:{fontSize:ue}},[`${_e}-wrap`]:{position:"relative",[`${je}-btn > ${Gt}-down`]:{fontSize:ue},[`${Gt}-down::before`]:{transition:`transform ${bt}`}},[`${_e}-wrap-open`]:{[`${Gt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${je}-slide-down-enter${je}-slide-down-enter-active${_e}-placement-bottomLeft, &${je}-slide-down-appear${je}-slide-down-appear-active${_e}-placement-bottomLeft, &${je}-slide-down-enter${je}-slide-down-enter-active${_e}-placement-bottom, &${je}-slide-down-appear${je}-slide-down-appear-active${_e}-placement-bottom, &${je}-slide-down-enter${je}-slide-down-enter-active${_e}-placement-bottomRight, &${je}-slide-down-appear${je}-slide-down-appear-active${_e}-placement-bottomRight`]:{animationName:kt.fJ},[`&${je}-slide-up-enter${je}-slide-up-enter-active${_e}-placement-topLeft, &${je}-slide-up-appear${je}-slide-up-appear-active${_e}-placement-topLeft, &${je}-slide-up-enter${je}-slide-up-enter-active${_e}-placement-top, &${je}-slide-up-appear${je}-slide-up-appear-active${_e}-placement-top, &${je}-slide-up-enter${je}-slide-up-enter-active${_e}-placement-topRight, &${je}-slide-up-appear${je}-slide-up-appear-active${_e}-placement-topRight`]:{animationName:kt.Qt},[`&${je}-slide-down-leave${je}-slide-down-leave-active${_e}-placement-bottomLeft, &${je}-slide-down-leave${je}-slide-down-leave-active${_e}-placement-bottom, &${je}-slide-down-leave${je}-slide-down-leave-active${_e}-placement-bottomRight`]:{animationName:kt.Uw},[`&${je}-slide-up-leave${je}-slide-up-leave-active${_e}-placement-topLeft, &${je}-slide-up-leave${je}-slide-up-leave-active${_e}-placement-top, &${je}-slide-up-leave${je}-slide-up-leave-active${_e}-placement-topRight`]:{animationName:kt.ly}}},(0,St.ZP)(Ie,he,{arrowPlacement:{top:!0,bottom:!0}}),{[`${_e} ${ct}`]:{position:"relative",margin:0},[`${ct}-submenu-popup`]:{position:"absolute",zIndex:Yt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${_e}, ${_e}-menu-submenu`]:Object.assign(Object.assign({},(0,Qe.Wf)(Ie)),{[ct]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,Qe.Qy)(Ie)),{"&:empty":{padding:0,boxShadow:"none"},[`${ct}-item-group-title`]:{padding:`${(0,gt.unit)(ae)} ${(0,gt.unit)(ne)}`,color:Ie.colorTextDescription,transition:`all ${bt}`},[`${ct}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ct}-item-icon`]:{minWidth:te,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${ct}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${bt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${ct}-item-extra`]:{paddingInlineStart:Ie.padding,marginInlineStart:"auto",fontSize:Ie.fontSizeSM,color:Ie.colorTextDescription}},[`${ct}-item, ${ct}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,gt.unit)(ae)} ${(0,gt.unit)(ne)}`,color:Ie.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${bt}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,Qe.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,gt.unit)(Ie.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${_e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${_e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${ct}-item-group-list`]:{margin:`0 ${(0,gt.unit)(Ie.marginXS)}`,padding:0,listStyle:"none"},[`${ct}-submenu-title`]:{paddingInlineEnd:Ie.calc(ne).add(Ie.fontSizeSM).equal()},[`${ct}-submenu-vertical`]:{position:"relative"},[`${ct}-submenu${ct}-submenu-disabled ${_e}-menu-submenu-title`]:{[`&, ${_e}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:he,cursor:"not-allowed"}},[`${ct}-submenu-selected ${_e}-menu-submenu-title`]:{color:Ie.colorPrimary}})})},[(0,kt.oN)(Ie,"slide-up"),(0,kt.oN)(Ie,"slide-down"),(0,st.Fm)(Ie,"move-up"),(0,st.Fm)(Ie,"move-down"),(0,tt._y)(Ie,"zoom-big")]]},Ge=Ie=>Object.assign(Object.assign({zIndexPopup:Ie.zIndexPopupBase+50,paddingBlock:(Ie.controlHeight-Ie.fontSize*Ie.lineHeight)/2},(0,St.wZ)({contentRadius:Ie.borderRadiusLG,limitVerticalRadius:!0})),(0,We.w)(Ie));var At=(0,yt.I$)("Dropdown",Ie=>{const{marginXXS:_e,sizePopupArrow:ct,paddingXXS:Yt,componentCls:Dt}=Ie,$t=(0,ut.mergeToken)(Ie,{menuCls:`${Dt}-menu`,dropdownArrowDistance:Ie.calc(ct).div(2).add(_e).equal(),dropdownEdgeChildPadding:Yt});return[Be($t),Tt($t)]},Ge,{resetStyle:!1});const ye=null,se=Ie=>{var _e;const{menu:ct,arrow:Yt,prefixCls:Dt,children:$t,trigger:je,disabled:Gt,dropdownRender:bt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:ue,onOpenChange:ne,visible:he,onVisibleChange:xe,mouseEnterDelay:vt=.15,mouseLeaveDelay:Pe=.1,autoAdjustOverflow:Ve=!0,placement:dt="",overlay:Mt,transitionName:pt}=Ie,{getPopupContainer:Kt,getPrefixCls:Vt,direction:zt,dropdown:ln}=z.useContext(xt.E_),_t=(0,Le.ln)("Dropdown"),on=z.useMemo(()=>{const Jt=Vt();return pt!==void 0?pt:dt.includes("top")?`${Jt}-slide-down`:`${Jt}-slide-up`},[Vt,dt,pt]),It=z.useMemo(()=>dt?dt.includes("Center")?dt.slice(0,dt.indexOf("Center")):dt:zt==="rtl"?"bottomRight":"bottomLeft",[dt,zt]),Qt=Vt("dropdown",Dt),Wt=(0,Ot.Z)(Qt),[De,it,Lt]=At(Qt,Wt),[,jt]=(0,mt.ZP)(),Oe=z.Children.only(Se($t)?z.createElement("span",null,$t):$t),Ye=(0,ke.Tm)(Oe,{className:be()(`${Qt}-trigger`,{[`${Qt}-rtl`]:zt==="rtl"},Oe.props.className),disabled:(_e=Oe.props.disabled)!==null&&_e!==void 0?_e:Gt}),ft=Gt?[]:je,Bt=!!(ft!=null&&ft.includes("contextMenu")),[Ut,cn]=(0,Ze.Z)(!1,{value:ue!=null?ue:he}),Sn=(0,Ne.Z)(Jt=>{ne==null||ne(Jt,{source:"trigger"}),xe==null||xe(Jt),cn(Jt)}),Cn=be()(te,ee,it,Lt,Wt,ln==null?void 0:ln.className,{[`${Qt}-rtl`]:zt==="rtl"}),sn=(0,Pt.Z)({arrowPointAtCenter:typeof Yt=="object"&&Yt.pointAtCenter,autoAdjustOverflow:Ve,offset:jt.marginXXS,arrowWidth:Yt?jt.sizePopupArrow:0,borderRadius:jt.borderRadius}),yn=z.useCallback(()=>{ct!=null&&ct.selectable&&(ct!=null&&ct.multiple)||(ne==null||ne(!1,{source:"menu"}),cn(!1))},[ct==null?void 0:ct.selectable,ct==null?void 0:ct.multiple]),gn=()=>{let Jt;return ct!=null&&ct.items?Jt=z.createElement(Rt.default,Object.assign({},ct)):typeof Mt=="function"?Jt=Mt():Jt=Mt,bt&&(Jt=bt(Jt)),Jt=z.Children.only(typeof Jt=="string"?z.createElement("span",null,Jt):Jt),z.createElement(wt.J,{prefixCls:`${Qt}-menu`,rootClassName:be()(Lt,Wt),expandIcon:z.createElement("span",{className:`${Qt}-menu-submenu-arrow`},zt==="rtl"?z.createElement(at.Z,{className:`${Qt}-menu-submenu-arrow-icon`}):z.createElement(ge.Z,{className:`${Qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yn,validator:Pn=>{let{mode:mn}=Pn}},Jt)},[$n,bn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let vn=z.createElement(we.Z,Object.assign({alignPoint:Bt},(0,Me.Z)(Ie,["rootClassName"]),{mouseEnterDelay:vt,mouseLeaveDelay:Pe,visible:Ut,builtinPlacements:sn,arrow:!!Yt,overlayClassName:Cn,prefixCls:Qt,getPopupContainer:ae||Kt,transitionName:on,trigger:ft,overlay:gn,placement:It,onVisibleChange:Sn,overlayStyle:Object.assign(Object.assign(Object.assign({},ln==null?void 0:ln.style),oe),{zIndex:$n})}),Ye);return $n&&(vn=z.createElement(Ae.Z.Provider,{value:bn},vn)),De(vn)},Te=(0,rt.Z)(se,"align",void 0,"dropdown",Ie=>Ie),Ct=Ie=>z.createElement(Te,Object.assign({},Ie),z.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=Ct;var Et=se},584:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Rt}});var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(9017),be=ie(17835),we=ie(57700),Ze=()=>{const[,wt]=(0,we.ZP)(),[mt]=(0,Ke.Z)("Empty"),Qe=new be.FastColor(wt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Qe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(mt==null?void 0:mt.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"}))))},fe=()=>{const[,wt]=(0,we.ZP)(),[mt]=(0,Ke.Z)("Empty"),{colorFill:gt,colorFillTertiary:Qe,colorFillQuaternary:kt,colorBgContainer:st}=wt,{borderColor:tt,shadowColor:St,contentColor:We}=(0,z.useMemo)(()=>({borderColor:new be.FastColor(gt).onBackground(st).toHexString(),shadowColor:new be.FastColor(Qe).onBackground(st).toHexString(),contentColor:new be.FastColor(kt).onBackground(st).toHexString()}),[gt,Qe,kt,st]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(mt==null?void 0:mt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:St,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke: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:We}))))},Je=ie(16931),Se=ie(51636);const Pt=wt=>{const{componentCls:mt,margin:gt,marginXS:Qe,marginXL:kt,fontSize:st,lineHeight:tt}=wt;return{[mt]:{marginInline:Qe,fontSize:st,lineHeight:tt,textAlign:"center",[`${mt}-image`]:{height:wt.emptyImgHeight,marginBottom:Qe,opacity:wt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${mt}-description`]:{color:wt.colorTextDescription},[`${mt}-footer`]:{marginTop:gt},"&-normal":{marginBlock:kt,color:wt.colorTextDescription,[`${mt}-description`]:{color:wt.colorTextDescription},[`${mt}-image`]:{height:wt.emptyImgHeightMD}},"&-small":{marginBlock:Qe,color:wt.colorTextDescription,[`${mt}-image`]:{height:wt.emptyImgHeightSM}}}}};var rt=(0,Je.I$)("Empty",wt=>{const{componentCls:mt,controlHeightLG:gt,calc:Qe}=wt,kt=(0,Se.mergeToken)(wt,{emptyImgCls:`${mt}-img`,emptyImgHeight:Qe(gt).mul(2.5).equal(),emptyImgHeightMD:gt,emptyImgHeightSM:Qe(gt).mul(.875).equal()});return[Pt(kt)]}),ke=ie(48755),Le=function(wt,mt){var gt={};for(var Qe in wt)Object.prototype.hasOwnProperty.call(wt,Qe)&&mt.indexOf(Qe)<0&&(gt[Qe]=wt[Qe]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Qe=Object.getOwnPropertySymbols(wt);kt{const{className:mt,rootClassName:gt,prefixCls:Qe,image:kt=Ae,description:st,children:tt,imageStyle:St,style:We,classNames:yt,styles:ut}=wt,pe=Le(wt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Tt,direction:Be,className:Ge,style:At,classNames:ye,styles:se}=(0,ke.dj)("empty"),Te=Tt("empty",Qe),[Ct,Et,Ie]=rt(Te),[_e]=(0,Ke.Z)("Empty"),ct=typeof st!="undefined"?st:_e==null?void 0:_e.description,Yt=typeof ct=="string"?ct:"empty";let Dt=null;return typeof kt=="string"?Dt=z.createElement("img",{alt:Yt,src:kt}):Dt=kt,Ct(z.createElement("div",Object.assign({className:ge()(Et,Ie,Te,Ge,{[`${Te}-normal`]:kt===xt,[`${Te}-rtl`]:Be==="rtl"},mt,gt,ye.root,yt==null?void 0:yt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},se.root),At),ut==null?void 0:ut.root),We)},pe),z.createElement("div",{className:ge()(`${Te}-image`,ye.image,yt==null?void 0:yt.image),style:Object.assign(Object.assign(Object.assign({},St),se.image),ut==null?void 0:ut.image)},Dt),ct&&z.createElement("div",{className:ge()(`${Te}-description`,ye.description,yt==null?void 0:yt.description),style:Object.assign(Object.assign({},se.description),ut==null?void 0:ut.description)},ct),tt&&z.createElement("div",{className:ge()(`${Te}-footer`,ye.footer,yt==null?void 0:yt.footer),style:Object.assign(Object.assign({},se.footer),ut==null?void 0:ut.footer)},tt)))};Ot.PRESENTED_IMAGE_DEFAULT=Ae,Ot.PRESENTED_IMAGE_SIMPLE=xt;var Rt=Ot},28284:function(an,Zt,ie){"use strict";ie.d(Zt,{default:function(){return ot}});var z=ie(56553),at=ie(77654),ge=ie(59301),Ke=ie(92310),be=ie.n(Ke),we=ie(77900),Ne=ie(86641),Ze=ie(83397);function Me(Ce){const[Re,Ee]=ge.useState(Ce);return ge.useEffect(()=>{const $e=setTimeout(()=>{Ee(Ce)},Ce.length?0:10);return()=>{clearTimeout($e)}},[Ce]),Re}var fe=ie(36237),Je=ie(63356),Se=ie(34925),Pt=ie(34961),rt=ie(51636),ke=ie(16931),Ae=Ce=>{const{componentCls:Re}=Ce,Ee=`${Re}-show-help`,$e=`${Re}-show-help-item`;return{[Ee]:{transition:`opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[$e]:{overflow:"hidden",transition:`height ${Ce.motionDurationFast} ${Ce.motionEaseInOut}, opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}, transform ${Ce.motionDurationFast} ${Ce.motionEaseInOut} !important`,[`&${$e}-appear, &${$e}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${$e}-leave-active`]:{transform:"translateY(-5px)"}}}}};const xt=Ce=>({legend:{display:"block",width:"100%",marginBottom:Ce.marginLG,padding:0,color:Ce.colorTextDescription,fontSize:Ce.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(Ce.lineWidth)} ${Ce.lineType} ${Ce.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,fe.unit)(Ce.controlOutlineWidth)} ${Ce.controlOutline}`},output:{display:"block",paddingTop:15,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight}}),Ot=(Ce,Re)=>{const{formItemCls:Ee}=Ce;return{[Ee]:{[`${Ee}-label > label`]:{height:Re},[`${Ee}-control-input`]:{minHeight:Re}}}},Rt=Ce=>{const{componentCls:Re}=Ce;return{[Ce.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Ce)),xt(Ce)),{[`${Re}-text`]:{display:"inline-block",paddingInlineEnd:Ce.paddingSM},"&-small":Object.assign({},Ot(Ce,Ce.controlHeightSM)),"&-large":Object.assign({},Ot(Ce,Ce.controlHeightLG))})}},wt=Ce=>{const{formItemCls:Re,iconCls:Ee,rootPrefixCls:$e,antCls:ve,labelRequiredMarkColor:Xe,labelColor:qe,labelFontSize:ht,labelHeight:et,labelColonMarginInlineStart:ze,labelColonMarginInlineEnd:He,itemMarginBottom:nt}=Ce;return{[Re]:Object.assign(Object.assign({},(0,Je.Wf)(Ce)),{marginBottom:nt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${ve}-row`]:{display:"none"},"&-has-warning":{[`${Re}-split`]:{color:Ce.colorError}},"&-has-error":{[`${Re}-split`]:{color:Ce.colorWarning}},[`${Re}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ce.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:et,color:qe,fontSize:ht,[`> ${Ee}`]:{fontSize:Ce.fontSize,verticalAlign:"top"},[`&${Re}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ce.marginXXS,color:Xe,fontSize:Ce.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Re}-required-mark-hidden, &${Re}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Re}-optional`]:{display:"inline-block",marginInlineStart:Ce.marginXXS,color:Ce.colorTextDescription,[`&${Re}-required-mark-hidden`]:{display:"none"}},[`${Re}-tooltip`]:{color:Ce.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ce.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ze,marginInlineEnd:He},[`&${Re}-no-colon::after`]:{content:'"\\a0"'}}},[`${Re}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${$e}-col-'"]):not([class*="' ${$e}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ce.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Re]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Ce.colorTextDescription,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ce.controlHeightSM,transition:`color ${Ce.motionDurationMid} ${Ce.motionEaseOut}`},"&-explain":{"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning}}},[`&-with-help ${Re}-explain`]:{height:"auto",opacity:1},[`${Re}-feedback-icon`]:{fontSize:Ce.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:Ce.motionDurationMid,animationTimingFunction:Ce.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ce.colorSuccess},"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning},"&-validating":{color:Ce.colorPrimary}}})}},mt=(Ce,Re)=>{const{formItemCls:Ee}=Ce;return{[`${Re}-horizontal`]:{[`${Ee}-label`]:{flexGrow:0},[`${Ee}-control`]:{flex:"1 1 0",minWidth:0},[`${Ee}-label[class$='-24'], ${Ee}-label[class*='-24 ']`]:{[`& + ${Ee}-control`]:{minWidth:"unset"}}}}},gt=Ce=>{const{componentCls:Re,formItemCls:Ee,inlineItemMarginBottom:$e}=Ce;return{[`${Re}-inline`]:{display:"flex",flexWrap:"wrap",[Ee]:{flex:"none",marginInlineEnd:Ce.margin,marginBottom:$e,"&-row":{flexWrap:"nowrap"},[`> ${Ee}-label, > ${Ee}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ee}-label`]:{flex:"none"},[`${Re}-text`]:{display:"inline-block"},[`${Ee}-has-feedback`]:{display:"inline-block"}}}}},Qe=Ce=>({padding:Ce.verticalLabelPadding,margin:Ce.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kt=Ce=>{const{componentCls:Re,formItemCls:Ee,rootPrefixCls:$e}=Ce;return{[`${Ee} ${Ee}-label`]:Qe(Ce),[`${Re}:not(${Re}-inline)`]:{[Ee]:{flexWrap:"wrap",[`${Ee}-label, ${Ee}-control`]:{[`&:not([class*=" ${$e}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},st=Ce=>{const{componentCls:Re,formItemCls:Ee,antCls:$e}=Ce;return{[`${Re}-vertical`]:{[`${Ee}:not(${Ee}-horizontal)`]:{[`${Ee}-row`]:{flexDirection:"column"},[`${Ee}-label > label`]:{height:"auto"},[`${Ee}-control`]:{width:"100%"},[`${Ee}-label, ${$e}-col-24${Ee}-label, ${$e}-col-xl-24${Ee}-label`]:Qe(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenXSMax)})`]:[kt(Ce),{[Re]:{[`${Ee}:not(${Ee}-horizontal)`]:{[`${$e}-col-xs-24${Ee}-label`]:Qe(Ce)}}}],[`@media (max-width: ${(0,fe.unit)(Ce.screenSMMax)})`]:{[Re]:{[`${Ee}:not(${Ee}-horizontal)`]:{[`${$e}-col-sm-24${Ee}-label`]:Qe(Ce)}}},[`@media (max-width: ${(0,fe.unit)(Ce.screenMDMax)})`]:{[Re]:{[`${Ee}:not(${Ee}-horizontal)`]:{[`${$e}-col-md-24${Ee}-label`]:Qe(Ce)}}},[`@media (max-width: ${(0,fe.unit)(Ce.screenLGMax)})`]:{[Re]:{[`${Ee}:not(${Ee}-horizontal)`]:{[`${$e}-col-lg-24${Ee}-label`]:Qe(Ce)}}}}},tt=Ce=>{const{formItemCls:Re,antCls:Ee}=Ce;return{[`${Re}-vertical`]:{[`${Re}-row`]:{flexDirection:"column"},[`${Re}-label > label`]:{height:"auto"},[`${Re}-control`]:{width:"100%"}},[`${Re}-vertical ${Re}-label, ${Ee}-col-24${Re}-label, ${Ee}-col-xl-24${Re}-label`]:Qe(Ce),[`@media (max-width: ${(0,fe.unit)(Ce.screenXSMax)})`]:[kt(Ce),{[Re]:{[`${Ee}-col-xs-24${Re}-label`]:Qe(Ce)}}],[`@media (max-width: ${(0,fe.unit)(Ce.screenSMMax)})`]:{[Re]:{[`${Ee}-col-sm-24${Re}-label`]:Qe(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenMDMax)})`]:{[Re]:{[`${Ee}-col-md-24${Re}-label`]:Qe(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenLGMax)})`]:{[Re]:{[`${Ee}-col-lg-24${Re}-label`]:Qe(Ce)}}}},St=Ce=>({labelRequiredMarkColor:Ce.colorError,labelColor:Ce.colorTextHeading,labelFontSize:Ce.fontSize,labelHeight:Ce.controlHeight,labelColonMarginInlineStart:Ce.marginXXS/2,labelColonMarginInlineEnd:Ce.marginXS,itemMarginBottom:Ce.marginLG,verticalLabelPadding:`0 0 ${Ce.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),We=(Ce,Re)=>(0,rt.mergeToken)(Ce,{formItemCls:`${Ce.componentCls}-item`,rootPrefixCls:Re});var yt=(0,ke.I$)("Form",(Ce,Re)=>{let{rootPrefixCls:Ee}=Re;const $e=We(Ce,Ee);return[Rt($e),wt($e),Ae($e),mt($e,$e.componentCls),mt($e,$e.formItemCls),gt($e),st($e),tt($e),(0,Pt.Z)($e),Se.kr]},St,{order:-1e3});const ut=[];function pe(Ce,Re,Ee){let $e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ce=="string"?Ce:`${Re}-${$e}`,error:Ce,errorStatus:Ee}}var Be=Ce=>{let{help:Re,helpStatus:Ee,errors:$e=ut,warnings:ve=ut,className:Xe,fieldId:qe,onVisibleChanged:ht}=Ce;const{prefixCls:et}=ge.useContext(z.Rk),ze=`${et}-item-explain`,He=(0,Ze.Z)(et),[nt,en,Xt]=yt(et,He),qt=ge.useMemo(()=>(0,Ne.Z)(et),[et]),Dn=Me($e),Ln=Me(ve),Hn=ge.useMemo(()=>Re!=null?[pe(Re,"help",Ee)]:[].concat((0,at.Z)(Dn.map((On,Fn)=>pe(On,"error","error",Fn))),(0,at.Z)(Ln.map((On,Fn)=>pe(On,"warning","warning",Fn)))),[Re,Ee,Dn,Ln]),Mn=ge.useMemo(()=>{const On={};return Hn.forEach(Fn=>{let{key:_n}=Fn;On[_n]=(On[_n]||0)+1}),Hn.map((Fn,_n)=>Object.assign(Object.assign({},Fn),{key:On[Fn.key]>1?`${Fn.key}-fallback-${_n}`:Fn.key}))},[Hn]),xn={};return qe&&(xn.id=`${qe}_help`),nt(ge.createElement(we.default,{motionDeadline:qt.motionDeadline,motionName:`${et}-show-help`,visible:!!Mn.length,onVisibleChanged:ht},On=>{const{className:Fn,style:_n}=On;return ge.createElement("div",Object.assign({},xn,{className:be()(ze,Fn,Xt,He,Xe,en),style:_n}),ge.createElement(we.CSSMotionList,Object.assign({keys:Mn},(0,Ne.Z)(et),{motionName:`${et}-show-help-item`,component:!1}),Vn=>{const{key:Xn,error:wn,errorStatus:er,className:Wn,style:dr}=Vn;return ge.createElement("div",{key:Xn,className:be()(Wn,{[`${ze}-${er}`]:er}),style:dr},wn)}))}))},Ge=ie(69180),At=ie(48755),ye=ie(2171),se=ie(31756),Te=ie(23069),Ct=ie(76846),Et=ie(16722);const Ie=["parentNode"],_e="form_item";function ct(Ce){return Ce===void 0||Ce===!1?[]:Array.isArray(Ce)?Ce:[Ce]}function Yt(Ce,Re){if(!Ce.length)return;const Ee=Ce.join("_");return Re?`${Re}_${Ee}`:Ie.includes(Ee)?`${_e}_${Ee}`:Ee}function Dt(Ce,Re,Ee,$e,ve,Xe){let qe=$e;return Xe!==void 0?qe=Xe:Ee.validating?qe="validating":Ce.length?qe="error":Re.length?qe="warning":(Ee.touched||ve&&Ee.validated)&&(qe="success"),qe}var $t=function(Ce,Re){var Ee={};for(var $e in Ce)Object.prototype.hasOwnProperty.call(Ce,$e)&&Re.indexOf($e)<0&&(Ee[$e]=Ce[$e]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,$e=Object.getOwnPropertySymbols(Ce);ve<$e.length;ve++)Re.indexOf($e[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,$e[ve])&&(Ee[$e[ve]]=Ce[$e[ve]]);return Ee};function je(Ce){return ct(Ce).join("_")}function Gt(Ce,Re){const Ee=Re.getFieldInstance(Ce),$e=(0,Ct.bn)(Ee);if($e)return $e;const ve=Yt(ct(Ce),Re.__INTERNAL__.name);if(ve)return document.getElementById(ve)}function bt(Ce){const[Re]=(0,Ge.useForm)(),Ee=ge.useRef({}),$e=ge.useMemo(()=>Ce!=null?Ce:Object.assign(Object.assign({},Re),{__INTERNAL__:{itemRef:ve=>Xe=>{const qe=je(ve);Xe?Ee.current[qe]=Xe:delete Ee.current[qe]}},scrollToField:function(ve){let Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:qe}=Xe,ht=$t(Xe,["focus"]),et=Gt(ve,$e);et&&((0,Et.Z)(et,Object.assign({scrollMode:"if-needed",block:"nearest"},ht)),qe&&$e.focusField(ve))},focusField:ve=>{var Xe,qe;const ht=$e.getFieldInstance(ve);typeof(ht==null?void 0:ht.focus)=="function"?ht.focus():(qe=(Xe=Gt(ve,$e))===null||Xe===void 0?void 0:Xe.focus)===null||qe===void 0||qe.call(Xe)},getFieldInstance:ve=>{const Xe=je(ve);return Ee.current[Xe]}}),[Ce,Re]);return[$e]}var ae=ie(98350),te=function(Ce,Re){var Ee={};for(var $e in Ce)Object.prototype.hasOwnProperty.call(Ce,$e)&&Re.indexOf($e)<0&&(Ee[$e]=Ce[$e]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,$e=Object.getOwnPropertySymbols(Ce);ve<$e.length;ve++)Re.indexOf($e[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,$e[ve])&&(Ee[$e[ve]]=Ce[$e[ve]]);return Ee};const ee=(Ce,Re)=>{const Ee=ge.useContext(ye.Z),{getPrefixCls:$e,direction:ve,requiredMark:Xe,colon:qe,scrollToFirstError:ht,className:et,style:ze}=(0,At.dj)("form"),{prefixCls:He,className:nt,rootClassName:en,size:Xt,disabled:qt=Ee,form:Dn,colon:Ln,labelAlign:Hn,labelWrap:Mn,labelCol:xn,wrapperCol:On,hideRequiredMark:Fn,layout:_n="horizontal",scrollToFirstError:Vn,requiredMark:Xn,onFinishFailed:wn,name:er,style:Wn,feedbackIcons:dr,variant:pr}=Ce,sr=te(Ce,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,se.Z)(Xt),yr=ge.useContext(ae.Z),lr=ge.useMemo(()=>Xn!==void 0?Xn:Fn?!1:Xe!==void 0?Xe:!0,[Fn,Xn,Xe]),fr=Ln!=null?Ln:qe,Qn=$e("form",He),mr=(0,Ze.Z)(Qn),[br,zr,Er]=yt(Qn,mr),Br=be()(Qn,`${Qn}-${_n}`,{[`${Qn}-hide-required-mark`]:lr===!1,[`${Qn}-rtl`]:ve==="rtl",[`${Qn}-${ur}`]:ur},Er,mr,zr,et,nt,en),[Ir]=bt(Dn),{__INTERNAL__:Mr}=Ir;Mr.name=er;const ir=ge.useMemo(()=>({name:er,labelAlign:Hn,labelCol:xn,labelWrap:Mn,wrapperCol:On,vertical:_n==="vertical",colon:fr,requiredMark:lr,itemRef:Mr.itemRef,form:Ir,feedbackIcons:dr}),[er,Hn,xn,On,_n,fr,lr,Ir,dr]),rr=ge.useRef(null);ge.useImperativeHandle(Re,()=>{var pn;return Object.assign(Object.assign({},Ir),{nativeElement:(pn=rr.current)===null||pn===void 0?void 0:pn.nativeElement})});const Jn=(pn,hn)=>{if(pn){let tn={block:"nearest"};typeof pn=="object"&&(tn=Object.assign(Object.assign({},tn),pn)),Ir.scrollToField(hn,tn)}},un=pn=>{if(wn==null||wn(pn),pn.errorFields.length){const hn=pn.errorFields[0].name;if(Vn!==void 0){Jn(Vn,hn);return}ht!==void 0&&Jn(ht,hn)}};return br(ge.createElement(z.pg.Provider,{value:pr},ge.createElement(ye.n,{disabled:qt},ge.createElement(Te.Z.Provider,{value:ur},ge.createElement(z.RV,{validateMessages:yr},ge.createElement(z.q3.Provider,{value:ir},ge.createElement(Ge.default,Object.assign({id:er},sr,{name:er,onFinishFailed:un,form:Ir,ref:rr,style:Object.assign(Object.assign({},ze),Wn),className:Br}))))))))};var ue=ge.forwardRef(ee),ne=ie(41799),he=ie(8654),xe=ie(22703),vt=ie(32383),Pe=ie(11592);function Ve(Ce){if(typeof Ce=="function")return Ce;const Re=(0,Pe.Z)(Ce);return Re.length<=1?Re[0]:Re}const dt=()=>{const{status:Ce,errors:Re=[],warnings:Ee=[]}=ge.useContext(z.aM);return{status:Ce,errors:Re,warnings:Ee}};dt.Context=z.aM;var Mt=dt,pt=ie(16089);function Kt(Ce){const[Re,Ee]=ge.useState(Ce),$e=ge.useRef(null),ve=ge.useRef([]),Xe=ge.useRef(!1);ge.useEffect(()=>(Xe.current=!1,()=>{Xe.current=!0,pt.Z.cancel($e.current),$e.current=null}),[]);function qe(ht){Xe.current||($e.current===null&&(ve.current=[],$e.current=(0,pt.Z)(()=>{$e.current=null,Ee(et=>{let ze=et;return ve.current.forEach(He=>{ze=He(ze)}),ze})})),ve.current.push(ht))}return[Re,qe]}function Vt(){const{itemRef:Ce}=ge.useContext(z.q3),Re=ge.useRef({});function Ee($e,ve){const Xe=ve&&typeof ve=="object"&&(0,he.C4)(ve),qe=$e.join("_");return(Re.current.name!==qe||Re.current.originRef!==Xe)&&(Re.current.name=qe,Re.current.originRef=Xe,Re.current.ref=(0,he.sQ)(Ce($e),Xe)),Re.current.ref}return Ee}var zt=ie(29194),ln=ie(34280),_t=ie(2738),on=ie(65970),It=ie(70425),Qt=ie(5472);const Wt=Ce=>{const{formItemCls:Re}=Ce;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Re}-control`]:{display:"flex"}}}};var De=(0,ke.bk)(["Form","item-item"],(Ce,Re)=>{let{rootPrefixCls:Ee}=Re;const $e=We(Ce,Ee);return[Wt($e)]}),it=function(Ce,Re){var Ee={};for(var $e in Ce)Object.prototype.hasOwnProperty.call(Ce,$e)&&Re.indexOf($e)<0&&(Ee[$e]=Ce[$e]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,$e=Object.getOwnPropertySymbols(Ce);ve<$e.length;ve++)Re.indexOf($e[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,$e[ve])&&(Ee[$e[ve]]=Ce[$e[ve]]);return Ee};const Lt=24;var Oe=Ce=>{const{prefixCls:Re,status:Ee,labelCol:$e,wrapperCol:ve,children:Xe,errors:qe,warnings:ht,_internalItemRender:et,extra:ze,help:He,fieldId:nt,marginBottom:en,onErrorVisibleChanged:Xt,label:qt}=Ce,Dn=`${Re}-item`,Ln=ge.useContext(z.q3),Hn=ge.useMemo(()=>{let sr=Object.assign({},ve||Ln.wrapperCol||{});return qt===null&&!$e&&!ve&&Ln.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,It.U2)(Ln.labelCol,lr),Qn=typeof fr=="object"?fr:{},mr=(0,It.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in Qn&&!("offset"in br)&&Qn.span{const{labelCol:sr,wrapperCol:ur}=Ln;return it(Ln,["labelCol","wrapperCol"])},[Ln]),On=ge.useRef(null),[Fn,_n]=ge.useState(0);(0,ln.Z)(()=>{ze&&On.current?_n(On.current.clientHeight):_n(0)},[ze]);const Vn=ge.createElement("div",{className:`${Dn}-control-input`},ge.createElement("div",{className:`${Dn}-control-input-content`},Xe)),Xn=ge.useMemo(()=>({prefixCls:Re,status:Ee}),[Re,Ee]),wn=en!==null||qe.length||ht.length?ge.createElement(z.Rk.Provider,{value:Xn},ge.createElement(Be,{fieldId:nt,errors:qe,warnings:ht,help:He,helpStatus:Ee,className:`${Dn}-explain-connected`,onVisibleChanged:Xt})):null,er={};nt&&(er.id=`${nt}_extra`);const Wn=ze?ge.createElement("div",Object.assign({},er,{className:`${Dn}-extra`,ref:On}),ze):null,dr=wn||Wn?ge.createElement("div",{className:`${Dn}-additional`,style:en?{minHeight:en+Fn}:{}},wn,Wn):null,pr=et&&et.mark==="pro_table_render"&&et.render?et.render(Ce,{input:Vn,errorList:wn,extra:Wn}):ge.createElement(ge.Fragment,null,Vn,dr);return ge.createElement(z.q3.Provider,{value:xn},ge.createElement(Qt.Z,Object.assign({},Hn,{className:Mn}),pr),ge.createElement(De,{prefixCls:Re}))},Ye=ie(61485),ft=ie(9017),Bt=ie(85981),Ut=ie(25399),cn=function(Ce,Re){var Ee={};for(var $e in Ce)Object.prototype.hasOwnProperty.call(Ce,$e)&&Re.indexOf($e)<0&&(Ee[$e]=Ce[$e]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,$e=Object.getOwnPropertySymbols(Ce);ve<$e.length;ve++)Re.indexOf($e[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,$e[ve])&&(Ee[$e[ve]]=Ce[$e[ve]]);return Ee};function Sn(Ce){return Ce?typeof Ce=="object"&&!ge.isValidElement(Ce)?Ce:{title:Ce}:null}var sn=Ce=>{let{prefixCls:Re,label:Ee,htmlFor:$e,labelCol:ve,labelAlign:Xe,colon:qe,required:ht,requiredMark:et,tooltip:ze,vertical:He}=Ce;var nt;const[en]=(0,ft.Z)("Form"),{labelAlign:Xt,labelCol:qt,labelWrap:Dn,colon:Ln}=ge.useContext(z.q3);if(!Ee)return null;const Hn=ve||qt||{},Mn=Xe||Xt,xn=`${Re}-item-label`,On=be()(xn,Mn==="left"&&`${xn}-left`,Hn.className,{[`${xn}-wrap`]:!!Dn});let Fn=Ee;const _n=qe===!0||Ln!==!1&&qe!==!1;_n&&!He&&typeof Ee=="string"&&Ee.trim()&&(Fn=Ee.replace(/[:|:]\s*$/,""));const Xn=Sn(ze);if(Xn){const{icon:sr=ge.createElement(Ye.Z,null)}=Xn,ur=cn(Xn,["icon"]),yr=ge.createElement(Ut.Z,Object.assign({},ur),ge.cloneElement(sr,{className:`${Re}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Fn=ge.createElement(ge.Fragment,null,Fn,yr)}const wn=et==="optional",er=typeof et=="function",Wn=et===!1;er?Fn=et(Fn,{required:!!ht}):wn&&!ht&&(Fn=ge.createElement(ge.Fragment,null,Fn,ge.createElement("span",{className:`${Re}-item-optional`,title:""},(en==null?void 0:en.optional)||((nt=Bt.Z.Form)===null||nt===void 0?void 0:nt.optional))));let dr;Wn?dr="hidden":(wn||er)&&(dr="optional");const pr=be()({[`${Re}-item-required`]:ht,[`${Re}-item-required-mark-${dr}`]:dr,[`${Re}-item-no-colon`]:!_n});return ge.createElement(Qt.Z,Object.assign({},Hn,{className:On}),ge.createElement("label",{htmlFor:$e,className:pr,title:typeof Ee=="string"?Ee:""},Fn))},yn=ie(29679),gn=ie(19248),$n=ie(96512),bn=ie(58617);const vn={success:yn.Z,warning:$n.Z,error:gn.Z,validating:bn.Z};function Jt(Ce){let{children:Re,errors:Ee,warnings:$e,hasFeedback:ve,validateStatus:Xe,prefixCls:qe,meta:ht,noStyle:et}=Ce;const ze=`${qe}-item`,{feedbackIcons:He}=ge.useContext(z.q3),nt=Dt(Ee,$e,ht,null,!!ve,Xe),{isFormItemInput:en,status:Xt,hasFeedback:qt,feedbackIcon:Dn}=ge.useContext(z.aM),Ln=ge.useMemo(()=>{var Hn;let Mn;if(ve){const On=ve!==!0&&ve.icons||He,Fn=nt&&((Hn=On==null?void 0:On({status:nt,errors:Ee,warnings:$e}))===null||Hn===void 0?void 0:Hn[nt]),_n=nt&&vn[nt];Mn=Fn!==!1&&_n?ge.createElement("span",{className:be()(`${ze}-feedback-icon`,`${ze}-feedback-icon-${nt}`)},Fn||ge.createElement(_n,null)):null}const xn={status:nt||"",errors:Ee,warnings:$e,hasFeedback:!!ve,feedbackIcon:Mn,isFormItemInput:!0};return et&&(xn.status=(nt!=null?nt:Xt)||"",xn.isFormItemInput=en,xn.hasFeedback=!!(ve!=null?ve:qt),xn.feedbackIcon=ve!==void 0?xn.feedbackIcon:Dn),xn},[nt,ve,et,en,Xt]);return ge.createElement(z.aM.Provider,{value:Ln},Re)}var Pn=function(Ce,Re){var Ee={};for(var $e in Ce)Object.prototype.hasOwnProperty.call(Ce,$e)&&Re.indexOf($e)<0&&(Ee[$e]=Ce[$e]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,$e=Object.getOwnPropertySymbols(Ce);ve<$e.length;ve++)Re.indexOf($e[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,$e[ve])&&(Ee[$e[ve]]=Ce[$e[ve]]);return Ee};function mn(Ce){const{prefixCls:Re,className:Ee,rootClassName:$e,style:ve,help:Xe,errors:qe,warnings:ht,validateStatus:et,meta:ze,hasFeedback:He,hidden:nt,children:en,fieldId:Xt,required:qt,isRequired:Dn,onSubItemMetaChange:Ln,layout:Hn}=Ce,Mn=Pn(Ce,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),xn=`${Re}-item`,{requiredMark:On,vertical:Fn}=ge.useContext(z.q3),_n=Fn||Hn==="vertical",Vn=ge.useRef(null),Xn=Me(qe),wn=Me(ht),er=Xe!=null,Wn=!!(er||qe.length||ht.length),dr=!!Vn.current&&(0,zt.Z)(Vn.current),[pr,sr]=ge.useState(null);(0,ln.Z)(()=>{if(Wn&&Vn.current){const Qn=getComputedStyle(Vn.current);sr(parseInt(Qn.marginBottom,10))}},[Wn,dr]);const ur=Qn=>{Qn||sr(null)},lr=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=Qn?Xn:ze.errors,br=Qn?wn:ze.warnings;return Dt(mr,br,ze,"",!!He,et)}(),fr=be()(xn,Ee,$e,{[`${xn}-with-help`]:er||Xn.length||wn.length,[`${xn}-has-feedback`]:lr&&He,[`${xn}-has-success`]:lr==="success",[`${xn}-has-warning`]:lr==="warning",[`${xn}-has-error`]:lr==="error",[`${xn}-is-validating`]:lr==="validating",[`${xn}-hidden`]:nt,[`${xn}-${Hn}`]:Hn});return ge.createElement("div",{className:fr,style:ve,ref:Vn},ge.createElement(on.Z,Object.assign({className:`${xn}-row`},(0,_t.Z)(Mn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ge.createElement(sn,Object.assign({htmlFor:Xt},Ce,{requiredMark:On,required:qt!=null?qt:Dn,prefixCls:Re,vertical:_n})),ge.createElement(Oe,Object.assign({},Ce,ze,{errors:Xn,warnings:wn,prefixCls:Re,status:lr,help:Xe,marginBottom:pr,onErrorVisibleChanged:ur}),ge.createElement(z.qI.Provider,{value:Ln},ge.createElement(Jt,{prefixCls:Re,meta:ze,errors:ze.errors,warnings:ze.warnings,hasFeedback:He,validateStatus:lr},en)))),!!pr&&ge.createElement("div",{className:`${xn}-margin-offset`,style:{marginBottom:-pr}}))}const kn="__SPLIT__",jn=null;function Zn(Ce,Re){const Ee=Object.keys(Ce),$e=Object.keys(Re);return Ee.length===$e.length&&Ee.every(ve=>{const Xe=Ce[ve],qe=Re[ve];return Xe===qe||typeof Xe=="function"||typeof qe=="function"})}const An=ge.memo(Ce=>{let{children:Re}=Ce;return Re},(Ce,Re)=>Zn(Ce.control,Re.control)&&Ce.update===Re.update&&Ce.childProps.length===Re.childProps.length&&Ce.childProps.every((Ee,$e)=>Ee===Re.childProps[$e]));function Yn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nn(Ce){const{name:Re,noStyle:Ee,className:$e,dependencies:ve,prefixCls:Xe,shouldUpdate:qe,rules:ht,children:et,required:ze,label:He,messageVariables:nt,trigger:en="onChange",validateTrigger:Xt,hidden:qt,help:Dn,layout:Ln}=Ce,{getPrefixCls:Hn}=ge.useContext(At.E_),{name:Mn}=ge.useContext(z.q3),xn=Ve(et),On=typeof xn=="function",Fn=ge.useContext(z.qI),{validateTrigger:_n}=ge.useContext(Ge.FieldContext),Vn=Xt!==void 0?Xt:_n,Xn=Re!=null,wn=Hn("form",Xe),er=(0,Ze.Z)(wn),[Wn,dr,pr]=yt(wn,er),sr=(0,vt.ln)("Form.Item"),ur=ge.useContext(Ge.ListContext),yr=ge.useRef(null),[lr,fr]=Kt({}),[Qn,mr]=(0,ne.Z)(()=>Yn()),br=rr=>{const Jn=ur==null?void 0:ur.getKey(rr.name);if(mr(rr.destroy?Yn():rr,!0),Ee&&Dn!==!1&&Fn){let un=rr.name;if(rr.destroy)un=yr.current||un;else if(Jn!==void 0){const[pn,hn]=Jn;un=[pn].concat((0,at.Z)(hn)),yr.current=un}Fn(rr,un)}},zr=(rr,Jn)=>{fr(un=>{const pn=Object.assign({},un),tn=[].concat((0,at.Z)(rr.name.slice(0,-1)),(0,at.Z)(Jn)).join(kn);return rr.destroy?delete pn[tn]:pn[tn]=rr,pn})},[Er,Br]=ge.useMemo(()=>{const rr=(0,at.Z)(Qn.errors),Jn=(0,at.Z)(Qn.warnings);return Object.values(lr).forEach(un=>{rr.push.apply(rr,(0,at.Z)(un.errors||[])),Jn.push.apply(Jn,(0,at.Z)(un.warnings||[]))}),[rr,Jn]},[lr,Qn.errors,Qn.warnings]),Ir=Vt();function Mr(rr,Jn,un){return Ee&&!qt?ge.createElement(Jt,{prefixCls:wn,hasFeedback:Ce.hasFeedback,validateStatus:Ce.validateStatus,meta:Qn,errors:Er,warnings:Br,noStyle:!0},rr):ge.createElement(mn,Object.assign({key:"row"},Ce,{className:be()($e,pr,er,dr),prefixCls:wn,fieldId:Jn,isRequired:un,errors:Er,warnings:Br,meta:Qn,onSubItemMetaChange:zr,layout:Ln}),rr)}if(!Xn&&!On&&!ve)return Wn(Mr(xn));let ir={};return typeof He=="string"?ir.label=He:Re&&(ir.label=String(Re)),nt&&(ir=Object.assign(Object.assign({},ir),nt)),Wn(ge.createElement(Ge.Field,Object.assign({},Ce,{messageVariables:ir,trigger:en,validateTrigger:Vn,onMetaChange:br}),(rr,Jn,un)=>{const pn=ct(Re).length&&Jn?Jn.name:[],hn=Yt(pn,Mn),tn=ze!==void 0?ze:!!(ht!=null&&ht.some(dn=>{if(dn&&typeof dn=="object"&&dn.required&&!dn.warningOnly)return!0;if(typeof dn=="function"){const nn=dn(un);return(nn==null?void 0:nn.required)&&!(nn!=null&&nn.warningOnly)}return!1})),Bn=Object.assign({},rr);let Gn=null;if(Array.isArray(xn)&&Xn)Gn=xn;else if(!(On&&(!(qe||ve)||Xn))){if(!(ve&&!On&&!Xn))if(ge.isValidElement(xn)){const dn=Object.assign(Object.assign({},xn.props),Bn);if(dn.id||(dn.id=hn),Dn||Er.length>0||Br.length>0||Ce.extra){const Tn=[];(Dn||Er.length>0)&&Tn.push(`${hn}_help`),Ce.extra&&Tn.push(`${hn}_extra`),dn["aria-describedby"]=Tn.join(" ")}Er.length>0&&(dn["aria-invalid"]="true"),tn&&(dn["aria-required"]="true"),(0,he.Yr)(xn)&&(dn.ref=Ir(pn,xn)),new Set([].concat((0,at.Z)(ct(en)),(0,at.Z)(ct(Vn)))).forEach(Tn=>{dn[Tn]=function(){for(var cr,kr,Or,Rr,Ar,Fr=arguments.length,Vr=new Array(Fr),Hr=0;Hr{var{prefixCls:Re,children:Ee}=Ce,$e=Ft(Ce,["prefixCls","children"]);const{getPrefixCls:ve}=ge.useContext(At.E_),Xe=ve("form",Re),qe=ge.useMemo(()=>({prefixCls:Xe,status:"error"}),[Xe]);return ge.createElement(Ge.List,Object.assign({},$e),(ht,et,ze)=>ge.createElement(z.Rk.Provider,{value:qe},Ee(ht.map(He=>Object.assign(Object.assign({},He),{fieldKey:He.key})),et,{errors:ze.errors,warnings:ze.warnings})))};function nr(){const{form:Ce}=ge.useContext(z.q3);return Ce}const Fe=ue;Fe.Item=qn,Fe.List=zn,Fe.ErrorList=Be,Fe.useForm=bt,Fe.useFormInstance=nr,Fe.useWatch=Ge.useWatch,Fe.Provider=z.RV,Fe.create=()=>{};var ot=Fe},4875:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return jt}});var z=ie(59301),at=ie(84105),ge=ie(87395),Ke=ie(92310),be=ie.n(Ke),we=ie(60499),Ne=ie(18642),Ze=ie(43749),Me=ie(72190),fe=ie(42244),Je=ie(38705),Se=ie(17212);function Pt(){return typeof BigInt=="function"}function rt(Oe){return!Oe&&Oe!==0&&!Number.isNaN(Oe)||!String(Oe).trim()}function ke(Oe){var Ye=Oe.trim(),ft=Ye.startsWith("-");ft&&(Ye=Ye.slice(1)),Ye=Ye.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ye.startsWith(".")&&(Ye="0".concat(Ye));var Bt=Ye||"0",Ut=Bt.split("."),cn=Ut[0]||"0",Sn=Ut[1]||"0";cn==="0"&&Sn==="0"&&(ft=!1);var Cn=ft?"-":"";return{negative:ft,negativeStr:Cn,trimStr:Bt,integerStr:cn,decimalStr:Sn,fullStr:"".concat(Cn).concat(Bt)}}function Le(Oe){var Ye=String(Oe);return!Number.isNaN(Number(Ye))&&Ye.includes("e")}function Ae(Oe){var Ye=String(Oe);if(Le(Oe)){var ft=Number(Ye.slice(Ye.indexOf("e-")+2)),Bt=Ye.match(/\.(\d+)/);return Bt!=null&&Bt[1]&&(ft+=Bt[1].length),ft}return Ye.includes(".")&&Ot(Ye)?Ye.length-Ye.indexOf(".")-1:0}function xt(Oe){var Ye=String(Oe);if(Le(Oe)){if(Oe>Number.MAX_SAFE_INTEGER)return String(Pt()?BigInt(Oe).toString():Number.MAX_SAFE_INTEGER);if(Oe0&&arguments[0]!==void 0?arguments[0]:!0;return ft?this.isInvalidate()?"":ke("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Oe}(),wt=function(){function Oe(Ye){if((0,Je.Z)(this,Oe),(0,Ne.Z)(this,"origin",""),(0,Ne.Z)(this,"number",void 0),(0,Ne.Z)(this,"empty",void 0),rt(Ye)){this.empty=!0;return}this.origin=String(Ye),this.number=Number(Ye)}return(0,Se.Z)(Oe,[{key:"negate",value:function(){return new Oe(-this.toNumber())}},{key:"add",value:function(ft){if(this.isInvalidate())return new Oe(ft);var Bt=Number(ft);if(Number.isNaN(Bt))return this;var Ut=this.number+Bt;if(Ut>Number.MAX_SAFE_INTEGER)return new Oe(Number.MAX_SAFE_INTEGER);if(UtNumber.MAX_SAFE_INTEGER)return new Oe(Number.MAX_SAFE_INTEGER);if(Ut0&&arguments[0]!==void 0?arguments[0]:!0;return ft?this.isInvalidate()?"":xt(this.number):this.origin}}]),Oe}();function mt(Oe){return Pt()?new Rt(Oe):new wt(Oe)}function gt(Oe,Ye,ft){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Oe==="")return"";var Ut=ke(Oe),cn=Ut.negativeStr,Sn=Ut.integerStr,Cn=Ut.decimalStr,sn="".concat(Ye).concat(Cn),yn="".concat(cn).concat(Sn);if(ft>=0){var gn=Number(Cn[ft]);if(gn>=5&&!Bt){var $n=mt(Oe).add("".concat(cn,"0.").concat("0".repeat(ft)).concat(10-gn));return gt($n.toString(),Ye,ft,Bt)}return ft===0?yn:"".concat(yn).concat(Ye).concat(Cn.padEnd(ft,"0").slice(0,ft))}return sn===".0"?yn:"".concat(yn).concat(sn)}var Qe=mt,kt=ie(36901),st=ie(34280);function tt(Oe,Ye){return typeof Proxy!="undefined"&&Oe?new Proxy(Oe,{get:function(Bt,Ut){if(Ye[Ut])return Ye[Ut];var cn=Bt[Ut];return typeof cn=="function"?cn.bind(Bt):cn}}):Oe}var St=ie(8654),We=ie(48736);function yt(Oe,Ye){var ft=(0,z.useRef)(null);function Bt(){try{var cn=Oe.selectionStart,Sn=Oe.selectionEnd,Cn=Oe.value,sn=Cn.substring(0,cn),yn=Cn.substring(Sn);ft.current={start:cn,end:Sn,value:Cn,beforeTxt:sn,afterTxt:yn}}catch(gn){}}function Ut(){if(Oe&&ft.current&&Ye)try{var cn=Oe.value,Sn=ft.current,Cn=Sn.beforeTxt,sn=Sn.afterTxt,yn=Sn.start,gn=cn.length;if(cn.startsWith(Cn))gn=Cn.length;else if(cn.endsWith(sn))gn=cn.length-ft.current.afterTxt.length;else{var $n=Cn[yn-1],bn=cn.indexOf($n,yn-1);bn!==-1&&(gn=bn+1)}Oe.setSelectionRange(gn,gn)}catch(vn){(0,We.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(vn.message))}}return[Bt,Ut]}var ut=ie(49658),pe=function(){var Ye=(0,z.useState)(!1),ft=(0,Me.Z)(Ye,2),Bt=ft[0],Ut=ft[1];return(0,st.Z)(function(){Ut((0,ut.Z)())},[]),Bt},Tt=pe,Be=ie(16089),Ge=200,At=600;function ye(Oe){var Ye=Oe.prefixCls,ft=Oe.upNode,Bt=Oe.downNode,Ut=Oe.upDisabled,cn=Oe.downDisabled,Sn=Oe.onStep,Cn=z.useRef(),sn=z.useRef([]),yn=z.useRef();yn.current=Sn;var gn=function(){clearTimeout(Cn.current)},$n=function(Zn,An){Zn.preventDefault(),gn(),yn.current(An);function Yn(){yn.current(An),Cn.current=setTimeout(Yn,Ge)}Cn.current=setTimeout(Yn,At)};z.useEffect(function(){return function(){gn(),sn.current.forEach(function(jn){return Be.Z.cancel(jn)})}},[]);var bn=Tt();if(bn)return null;var vn="".concat(Ye,"-handler"),Jt=be()(vn,"".concat(vn,"-up"),(0,Ne.Z)({},"".concat(vn,"-up-disabled"),Ut)),Pn=be()(vn,"".concat(vn,"-down"),(0,Ne.Z)({},"".concat(vn,"-down-disabled"),cn)),mn=function(){return sn.current.push((0,Be.Z)(gn))},kn={unselectable:"on",role:"button",onMouseUp:mn,onMouseLeave:mn};return z.createElement("div",{className:"".concat(vn,"-wrap")},z.createElement("span",(0,we.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:Jt}),ft||z.createElement("span",{unselectable:"on",className:"".concat(Ye,"-handler-up-inner")})),z.createElement("span",(0,we.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!1)},"aria-label":"Decrease Value","aria-disabled":cn,className:Pn}),Bt||z.createElement("span",{unselectable:"on",className:"".concat(Ye,"-handler-down-inner")})))}function se(Oe){var Ye=typeof Oe=="number"?xt(Oe):ke(Oe).fullStr,ft=Ye.includes(".");return ft?ke(Ye.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Oe+"0"}var Te=ie(30292),Ct=function(){var Oe=(0,z.useRef)(0),Ye=function(){Be.Z.cancel(Oe.current)};return(0,z.useEffect)(function(){return Ye},[]),function(ft){Ye(),Oe.current=(0,Be.Z)(function(){ft()})}},Et=["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"],Ie=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],_e=function(Ye,ft){return Ye||ft.isEmpty()?ft.toString():ft.toNumber()},ct=function(Ye){var ft=Qe(Ye);return ft.isInvalidate()?null:ft},Yt=z.forwardRef(function(Oe,Ye){var ft=Oe.prefixCls,Bt=Oe.className,Ut=Oe.style,cn=Oe.min,Sn=Oe.max,Cn=Oe.step,sn=Cn===void 0?1:Cn,yn=Oe.defaultValue,gn=Oe.value,$n=Oe.disabled,bn=Oe.readOnly,vn=Oe.upHandler,Jt=Oe.downHandler,Pn=Oe.keyboard,mn=Oe.changeOnWheel,kn=mn===void 0?!1:mn,jn=Oe.controls,Zn=jn===void 0?!0:jn,An=Oe.classNames,Yn=Oe.stringMode,Nn=Oe.parser,ar=Oe.formatter,qn=Oe.precision,Ft=Oe.decimalSeparator,rn=Oe.onChange,zn=Oe.onInput,nr=Oe.onPressEnter,Fe=Oe.onStep,ot=Oe.changeOnBlur,Ce=ot===void 0?!0:ot,Re=Oe.domRef,Ee=(0,fe.Z)(Oe,Et),$e="".concat(ft,"-input"),ve=z.useRef(null),Xe=z.useState(!1),qe=(0,Me.Z)(Xe,2),ht=qe[0],et=qe[1],ze=z.useRef(!1),He=z.useRef(!1),nt=z.useRef(!1),en=z.useState(function(){return Qe(gn!=null?gn:yn)}),Xt=(0,Me.Z)(en,2),qt=Xt[0],Dn=Xt[1];function Ln(hn){gn===void 0&&Dn(hn)}var Hn=z.useCallback(function(hn,tn){if(!tn)return qn>=0?qn:Math.max(Ae(hn),Ae(sn))},[qn,sn]),Mn=z.useCallback(function(hn){var tn=String(hn);if(Nn)return Nn(tn);var Bn=tn;return Ft&&(Bn=Bn.replace(Ft,".")),Bn.replace(/[^\w.-]+/g,"")},[Nn,Ft]),xn=z.useRef(""),On=z.useCallback(function(hn,tn){if(ar)return ar(hn,{userTyping:tn,input:String(xn.current)});var Bn=typeof hn=="number"?xt(hn):hn;if(!tn){var Gn=Hn(Bn,tn);if(Ot(Bn)&&(Ft||Gn>=0)){var dn=Ft||".";Bn=gt(Bn,dn,Gn)}}return Bn},[ar,Hn,Ft]),Fn=z.useState(function(){var hn=yn!=null?yn:gn;return qt.isInvalidate()&&["string","number"].includes((0,Ze.Z)(hn))?Number.isNaN(hn)?"":hn:On(qt.toString(),!1)}),_n=(0,Me.Z)(Fn,2),Vn=_n[0],Xn=_n[1];xn.current=Vn;function wn(hn,tn){Xn(On(hn.isInvalidate()?hn.toString(!1):hn.toString(!tn),tn))}var er=z.useMemo(function(){return ct(Sn)},[Sn,qn]),Wn=z.useMemo(function(){return ct(cn)},[cn,qn]),dr=z.useMemo(function(){return!er||!qt||qt.isInvalidate()?!1:er.lessEquals(qt)},[er,qt]),pr=z.useMemo(function(){return!Wn||!qt||qt.isInvalidate()?!1:qt.lessEquals(Wn)},[Wn,qt]),sr=yt(ve.current,ht),ur=(0,Me.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(tn){return er&&!tn.lessEquals(er)?er:Wn&&!Wn.lessEquals(tn)?Wn:null},Qn=function(tn){return!fr(tn)},mr=function(tn,Bn){var Gn=tn,dn=Qn(Gn)||Gn.isEmpty();if(!Gn.isEmpty()&&!Bn&&(Gn=fr(Gn)||Gn,dn=!0),!bn&&!$n&&dn){var nn=Gn.toString(),En=Hn(nn,Bn);return En>=0&&(Gn=Qe(gt(nn,".",En)),Qn(Gn)||(Gn=Qe(gt(nn,".",En,!0)))),Gn.equals(qt)||(Ln(Gn),rn==null||rn(Gn.isEmpty()?null:_e(Yn,Gn)),gn===void 0&&wn(Gn,Bn)),Gn}return qt},br=Ct(),zr=function hn(tn){if(yr(),xn.current=tn,Xn(tn),!He.current){var Bn=Mn(tn),Gn=Qe(Bn);Gn.isNaN()||mr(Gn,!0)}zn==null||zn(tn),br(function(){var dn=tn;Nn||(dn=tn.replace(/。/g,".")),dn!==tn&&hn(dn)})},Er=function(){He.current=!0},Br=function(){He.current=!1,zr(ve.current.value)},Ir=function(tn){zr(tn.target.value)},Mr=function(tn){var Bn;if(!(tn&&dr||!tn&&pr)){ze.current=!1;var Gn=Qe(nt.current?se(sn):sn);tn||(Gn=Gn.negate());var dn=(qt||Qe(0)).add(Gn.toString()),nn=mr(dn,!1);Fe==null||Fe(_e(Yn,nn),{offset:nt.current?se(sn):sn,type:tn?"up":"down"}),(Bn=ve.current)===null||Bn===void 0||Bn.focus()}},ir=function(tn){var Bn=Qe(Mn(Vn)),Gn;Bn.isNaN()?Gn=mr(qt,tn):Gn=mr(Bn,tn),gn!==void 0?wn(qt,!1):Gn.isNaN()||wn(Gn,!1)},rr=function(){ze.current=!0},Jn=function(tn){var Bn=tn.key,Gn=tn.shiftKey;ze.current=!0,nt.current=Gn,Bn==="Enter"&&(He.current||(ze.current=!1),ir(!1),nr==null||nr(tn)),Pn!==!1&&!He.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bn)&&(Mr(Bn==="Up"||Bn==="ArrowUp"),tn.preventDefault())},un=function(){ze.current=!1,nt.current=!1};z.useEffect(function(){if(kn&&ht){var hn=function(Gn){Mr(Gn.deltaY<0),Gn.preventDefault()},tn=ve.current;if(tn)return tn.addEventListener("wheel",hn,{passive:!1}),function(){return tn.removeEventListener("wheel",hn)}}});var pn=function(){Ce&&ir(!1),et(!1),ze.current=!1};return(0,st.o)(function(){qt.isInvalidate()||wn(qt,!1)},[qn,ar]),(0,st.o)(function(){var hn=Qe(gn);Dn(hn);var tn=Qe(Mn(Vn));(!hn.equals(tn)||!ze.current||ar)&&wn(hn,ze.current)},[gn]),(0,st.o)(function(){ar&&lr()},[Vn]),z.createElement("div",{ref:Re,className:be()(ft,Bt,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(ft,"-focused"),ht),"".concat(ft,"-disabled"),$n),"".concat(ft,"-readonly"),bn),"".concat(ft,"-not-a-number"),qt.isNaN()),"".concat(ft,"-out-of-range"),!qt.isInvalidate()&&!Qn(qt))),style:Ut,onFocus:function(){et(!0)},onBlur:pn,onKeyDown:Jn,onKeyUp:un,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:rr},Zn&&z.createElement(ye,{prefixCls:ft,upNode:vn,downNode:Jt,upDisabled:dr,downDisabled:pr,onStep:Mr}),z.createElement("div",{className:"".concat($e,"-wrap")},z.createElement("input",(0,we.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":Sn,"aria-valuenow":qt.isInvalidate()?null:qt.toString(),step:sn},Ee,{ref:(0,St.sQ)(ve,Ye),className:$e,value:Vn,onChange:Ir,disabled:$n,readOnly:bn}))))}),Dt=z.forwardRef(function(Oe,Ye){var ft=Oe.disabled,Bt=Oe.style,Ut=Oe.prefixCls,cn=Ut===void 0?"rc-input-number":Ut,Sn=Oe.value,Cn=Oe.prefix,sn=Oe.suffix,yn=Oe.addonBefore,gn=Oe.addonAfter,$n=Oe.className,bn=Oe.classNames,vn=(0,fe.Z)(Oe,Ie),Jt=z.useRef(null),Pn=z.useRef(null),mn=z.useRef(null),kn=function(Zn){mn.current&&(0,Te.nH)(mn.current,Zn)};return z.useImperativeHandle(Ye,function(){return tt(mn.current,{focus:kn,nativeElement:Jt.current.nativeElement||Pn.current})}),z.createElement(kt.BaseInput,{className:$n,triggerFocus:kn,prefixCls:cn,value:Sn,disabled:ft,style:Bt,prefix:Cn,suffix:sn,addonAfter:gn,addonBefore:yn,classNames:bn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Jt},z.createElement(Yt,(0,we.Z)({prefixCls:cn,disabled:ft,ref:mn,domRef:Pn,className:bn==null?void 0:bn.input},vn)))}),$t=Dt,je=$t,Gt=ie(62487),bt=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),ue=ie(31756),ne=ie(56553),he=ie(24971),xe=ie(70045),vt=ie(36237),Pe=ie(53075),Ve=ie(64910),dt=ie(39082),Mt=ie(63356),pt=ie(56119),Kt=ie(16931),Vt=ie(51636),zt=ie(17835);const ln=Oe=>{var Ye;const ft=(Ye=Oe.handleVisible)!==null&&Ye!==void 0?Ye:"auto",Bt=Oe.controlHeightSM-Oe.lineWidth*2;return Object.assign(Object.assign({},(0,Ve.T)(Oe)),{controlWidth:90,handleWidth:Bt,handleFontSize:Oe.fontSize/2,handleVisible:ft,handleActiveBg:Oe.colorFillAlter,handleBg:Oe.colorBgContainer,filledHandleBg:new zt.FastColor(Oe.colorFillSecondary).onBackground(Oe.colorBgContainer).toHexString(),handleHoverColor:Oe.colorPrimary,handleBorderColor:Oe.colorBorder,handleOpacity:ft===!0?1:0,handleVisibleWidth:ft===!0?Bt:0})},_t=(Oe,Ye)=>{let{componentCls:ft,borderRadiusSM:Bt,borderRadiusLG:Ut}=Oe;const cn=Ye==="lg"?Ut:Bt;return{[`&-${Ye}`]:{[`${ft}-handler-wrap`]:{borderStartEndRadius:cn,borderEndEndRadius:cn},[`${ft}-handler-up`]:{borderStartEndRadius:cn},[`${ft}-handler-down`]:{borderEndEndRadius:cn}}}},on=Oe=>{const{componentCls:Ye,lineWidth:ft,lineType:Bt,borderRadius:Ut,inputFontSizeSM:cn,inputFontSizeLG:Sn,controlHeightLG:Cn,controlHeightSM:sn,colorError:yn,paddingInlineSM:gn,paddingBlockSM:$n,paddingBlockLG:bn,paddingInlineLG:vn,colorTextDescription:Jt,motionDurationMid:Pn,handleHoverColor:mn,handleOpacity:kn,paddingInline:jn,paddingBlock:Zn,handleBg:An,handleActiveBg:Yn,colorTextDisabled:Nn,borderRadiusSM:ar,borderRadiusLG:qn,controlWidth:Ft,handleBorderColor:rn,filledHandleBg:zn,lineHeightLG:nr,calc:Fe}=Oe;return[{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(Oe)),(0,Pe.ik)(Oe)),{display:"inline-block",width:Ft,margin:0,padding:0,borderRadius:Ut}),(0,dt.qG)(Oe,{[`${Ye}-handler-wrap`]:{background:An,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(ft)} ${Bt} ${rn}`}}})),(0,dt.H8)(Oe,{[`${Ye}-handler-wrap`]:{background:zn,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(ft)} ${Bt} ${rn}`}},"&:focus-within":{[`${Ye}-handler-wrap`]:{background:An}}})),(0,dt.vc)(Oe,{[`${Ye}-handler-wrap`]:{background:An,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(ft)} ${Bt} ${rn}`}}})),(0,dt.Mu)(Oe)),{"&-rtl":{direction:"rtl",[`${Ye}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Sn,lineHeight:nr,borderRadius:qn,[`input${Ye}-input`]:{height:Fe(Cn).sub(Fe(ft).mul(2)).equal(),padding:`${(0,vt.unit)(bn)} ${(0,vt.unit)(vn)}`}},"&-sm":{padding:0,fontSize:cn,borderRadius:ar,[`input${Ye}-input`]:{height:Fe(sn).sub(Fe(ft).mul(2)).equal(),padding:`${(0,vt.unit)($n)} ${(0,vt.unit)(gn)}`}},"&-out-of-range":{[`${Ye}-input-wrap`]:{input:{color:yn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(Oe)),(0,Pe.s7)(Oe)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ye}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ye}-group-addon`]:{borderRadius:qn,fontSize:Oe.fontSizeLG}},"&-sm":{[`${Ye}-group-addon`]:{borderRadius:ar}}},(0,dt.ir)(Oe)),(0,dt.S5)(Oe)),{[`&:not(${Ye}-compact-first-item):not(${Ye}-compact-last-item)${Ye}-compact-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderRadius:0}},[`&:not(${Ye}-compact-last-item)${Ye}-compact-first-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ye}-compact-first-item)${Ye}-compact-last-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ye}-input`]:{cursor:"not-allowed"},[Ye]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mt.Wf)(Oe)),{width:"100%",padding:`${(0,vt.unit)(Zn)} ${(0,vt.unit)(jn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${Pn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Pe.nz)(Oe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ye}-handler-wrap, &-focused ${Ye}-handler-wrap`]:{width:Oe.handleWidth,opacity:1}})},{[Ye]:Object.assign(Object.assign(Object.assign({[`${Ye}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Oe.handleVisibleWidth,opacity:kn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Pn}`,overflow:"hidden",[`${Ye}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Ye}-handler-up-inner, ${Ye}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Oe.handleFontSize}}},[`${Ye}-handler`]:{height:"50%",overflow:"hidden",color:Jt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,vt.unit)(ft)} ${Bt} ${rn}`,transition:`all ${Pn} linear`,"&:active":{background:Yn},"&:hover":{height:"60%",[` ${Ye}-handler-up-inner, ${Ye}-handler-down-inner `]:{color:mn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Mt.Ro)()),{color:Jt,transition:`all ${Pn} linear`,userSelect:"none"})},[`${Ye}-handler-up`]:{borderStartEndRadius:Ut},[`${Ye}-handler-down`]:{borderEndEndRadius:Ut}},_t(Oe,"lg")),_t(Oe,"sm")),{"&-disabled, &-readonly":{[`${Ye}-handler-wrap`]:{display:"none"},[`${Ye}-input`]:{color:"inherit"}},[` ${Ye}-handler-up-disabled, ${Ye}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Ye}-handler-up-disabled:hover &-handler-up-inner, ${Ye}-handler-down-disabled:hover &-handler-down-inner `]:{color:Nn}})}]},It=Oe=>{const{componentCls:Ye,paddingBlock:ft,paddingInline:Bt,inputAffixPadding:Ut,controlWidth:cn,borderRadiusLG:Sn,borderRadiusSM:Cn,paddingInlineLG:sn,paddingInlineSM:yn,paddingBlockLG:gn,paddingBlockSM:$n,motionDurationMid:bn}=Oe;return{[`${Ye}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ye}-input`]:{padding:`${(0,vt.unit)(ft)} 0`}},(0,Pe.ik)(Oe)),{position:"relative",display:"inline-flex",alignItems:"center",width:cn,padding:0,paddingInlineStart:Bt,"&-lg":{borderRadius:Sn,paddingInlineStart:sn,[`input${Ye}-input`]:{padding:`${(0,vt.unit)(gn)} 0`}},"&-sm":{borderRadius:Cn,paddingInlineStart:yn,[`input${Ye}-input`]:{padding:`${(0,vt.unit)($n)} 0`}},[`&:not(${Ye}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ye}-disabled`]:{background:"transparent"},[`> div${Ye}`]:{width:"100%",border:"none",outline:"none",[`&${Ye}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ye}-handler-wrap`]:{zIndex:2},[Ye]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ut},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Bt,marginInlineStart:Ut,transition:`margin ${bn}`}},[`&:hover ${Ye}-handler-wrap, &-focused ${Ye}-handler-wrap`]:{width:Oe.handleWidth,opacity:1},[`&:not(${Ye}-affix-wrapper-without-controls):hover ${Ye}-suffix`]:{marginInlineEnd:Oe.calc(Oe.handleWidth).add(Bt).equal()}})}};var Qt=(0,Kt.I$)("InputNumber",Oe=>{const Ye=(0,Vt.mergeToken)(Oe,(0,Ve.e)(Oe));return[on(Ye),It(Ye),(0,pt.c)(Ye)]},ln,{unitless:{handleOpacity:!0}}),Wt=function(Oe,Ye){var ft={};for(var Bt in Oe)Object.prototype.hasOwnProperty.call(Oe,Bt)&&Ye.indexOf(Bt)<0&&(ft[Bt]=Oe[Bt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Bt=Object.getOwnPropertySymbols(Oe);Ut{const{getPrefixCls:ft,direction:Bt}=z.useContext(ae.E_),Ut=z.useRef(null);z.useImperativeHandle(Ye,()=>Ut.current);const{className:cn,rootClassName:Sn,size:Cn,disabled:sn,prefixCls:yn,addonBefore:gn,addonAfter:$n,prefix:bn,suffix:vn,bordered:Jt,readOnly:Pn,status:mn,controls:kn,variant:jn}=Oe,Zn=Wt(Oe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),An=ft("input-number",yn),Yn=(0,oe.Z)(An),[Nn,ar,qn]=Qt(An,Yn),{compactSize:Ft,compactItemClassnames:rn}=(0,xe.ri)(An,Bt);let zn=z.createElement(ge.Z,{className:`${An}-handler-up-inner`}),nr=z.createElement(at.Z,{className:`${An}-handler-down-inner`});const Fe=typeof kn=="boolean"?kn:void 0;typeof kn=="object"&&(zn=typeof kn.upIcon=="undefined"?zn:z.createElement("span",{className:`${An}-handler-up-inner`},kn.upIcon),nr=typeof kn.downIcon=="undefined"?nr:z.createElement("span",{className:`${An}-handler-down-inner`},kn.downIcon));const{hasFeedback:ot,status:Ce,isFormItemInput:Re,feedbackIcon:Ee}=z.useContext(ne.aM),$e=(0,bt.F)(Ce,mn),ve=(0,ue.Z)(Xt=>{var qt;return(qt=Cn!=null?Cn:Ft)!==null&&qt!==void 0?qt:Xt}),Xe=z.useContext(ee.Z),qe=sn!=null?sn:Xe,[ht,et]=(0,he.Z)("inputNumber",jn,Jt),ze=ot&&z.createElement(z.Fragment,null,Ee),He=be()({[`${An}-lg`]:ve==="large",[`${An}-sm`]:ve==="small",[`${An}-rtl`]:Bt==="rtl",[`${An}-in-form-item`]:Re},ar),nt=`${An}-group`,en=z.createElement(je,Object.assign({ref:Ut,disabled:qe,className:be()(qn,Yn,cn,Sn,rn),upHandler:zn,downHandler:nr,prefixCls:An,readOnly:Pn,controls:Fe,prefix:bn,suffix:ze||vn,addonBefore:gn&&z.createElement(Gt.Z,{form:!0,space:!0},gn),addonAfter:$n&&z.createElement(Gt.Z,{form:!0,space:!0},$n),classNames:{input:He,variant:be()({[`${An}-${ht}`]:et},(0,bt.Z)(An,$e,ot)),affixWrapper:be()({[`${An}-affix-wrapper-sm`]:ve==="small",[`${An}-affix-wrapper-lg`]:ve==="large",[`${An}-affix-wrapper-rtl`]:Bt==="rtl",[`${An}-affix-wrapper-without-controls`]:kn===!1||qe},ar),wrapper:be()({[`${nt}-rtl`]:Bt==="rtl"},ar),groupWrapper:be()({[`${An}-group-wrapper-sm`]:ve==="small",[`${An}-group-wrapper-lg`]:ve==="large",[`${An}-group-wrapper-rtl`]:Bt==="rtl",[`${An}-group-wrapper-${ht}`]:et},(0,bt.Z)(`${An}-group-wrapper`,$e,ot),ar)}},Zn));return Nn(en)}),it=De,Lt=Oe=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(De,Object.assign({},Oe)));it._InternalPanelDoNotUseOrYouWillBeFired=Lt;var jt=it},49397:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return wt}});var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(36901),be=ie(8654),we=ie(62487),Ne=ie(86013),Ze=ie(82855),Me=ie(48755),fe=ie(2171),Je=ie(83397),Se=ie(31756),Pt=ie(56553),rt=ie(24971),ke=ie(70045),Le=ie(23826),Ae=ie(53075);function xt(mt){return!!(mt.prefix||mt.suffix||mt.allowClear||mt.showCount)}var Ot=function(mt,gt){var Qe={};for(var kt in mt)Object.prototype.hasOwnProperty.call(mt,kt)&>.indexOf(kt)<0&&(Qe[kt]=mt[kt]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,kt=Object.getOwnPropertySymbols(mt);st{const{prefixCls:Qe,bordered:kt=!0,status:st,size:tt,disabled:St,onBlur:We,onFocus:yt,suffix:ut,allowClear:pe,addonAfter:Tt,addonBefore:Be,className:Ge,style:At,styles:ye,rootClassName:se,onChange:Te,classNames:Ct,variant:Et}=mt,Ie=Ot(mt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:_e,direction:ct,allowClear:Yt,autoComplete:Dt,className:$t,style:je,classNames:Gt,styles:bt}=(0,Me.dj)("input"),ae=_e("input",Qe),te=(0,z.useRef)(null),ee=(0,Je.Z)(ae),[oe,ue,ne]=(0,Ae.TI)(ae,se),[he]=(0,Ae.ZP)(ae,ee),{compactSize:xe,compactItemClassnames:vt}=(0,ke.ri)(ae,ct),Pe=(0,Se.Z)(jt=>{var Oe;return(Oe=tt!=null?tt:xe)!==null&&Oe!==void 0?Oe:jt}),Ve=z.useContext(fe.Z),dt=St!=null?St:Ve,{status:Mt,hasFeedback:pt,feedbackIcon:Kt}=(0,z.useContext)(Pt.aM),Vt=(0,Ze.F)(Mt,st),zt=xt(mt)||!!pt,ln=(0,z.useRef)(zt),_t=(0,Le.Z)(te,!0),on=jt=>{_t(),We==null||We(jt)},It=jt=>{_t(),yt==null||yt(jt)},Qt=jt=>{_t(),Te==null||Te(jt)},Wt=(pt||ut)&&z.createElement(z.Fragment,null,ut,pt&&Kt),De=(0,Ne.Z)(pe!=null?pe:Yt),[it,Lt]=(0,rt.Z)("input",Et,kt);return oe(he(z.createElement(Ke.default,Object.assign({ref:(0,be.sQ)(gt,te),prefixCls:ae,autoComplete:Dt},Ie,{disabled:dt,onBlur:on,onFocus:It,style:Object.assign(Object.assign({},je),At),styles:Object.assign(Object.assign({},bt),ye),suffix:Wt,allowClear:De,className:ge()(Ge,se,ne,ee,vt,$t),onChange:Qt,addonBefore:Be&&z.createElement(we.Z,{form:!0,space:!0},Be),addonAfter:Tt&&z.createElement(we.Z,{form:!0,space:!0},Tt),classNames:Object.assign(Object.assign(Object.assign({},Ct),Gt),{input:ge()({[`${ae}-sm`]:Pe==="small",[`${ae}-lg`]:Pe==="large",[`${ae}-rtl`]:ct==="rtl"},Ct==null?void 0:Ct.input,Gt.input,ue),variant:ge()({[`${ae}-${it}`]:Lt},(0,Ze.Z)(ae,Vt)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Pe==="small",[`${ae}-affix-wrapper-lg`]:Pe==="large",[`${ae}-affix-wrapper-rtl`]:ct==="rtl"},ue),wrapper:ge()({[`${ae}-group-rtl`]:ct==="rtl"},ue),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Pe==="small",[`${ae}-group-wrapper-lg`]:Pe==="large",[`${ae}-group-wrapper-rtl`]:ct==="rtl",[`${ae}-group-wrapper-${it}`]:Lt},(0,Ze.Z)(`${ae}-group-wrapper`,Vt,pt),ue)})}))))})},79809:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return gt}});var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(22711),be=ie(86013),we=ie(82855),Ne=ie(48755),Ze=ie(2171),Me=ie(83397),fe=ie(31756),Je=ie(56553),Se=ie(24971),Pt=ie(70045),rt=ie(30292),ke=ie(53075),Le=ie(16931),Ae=ie(51636),xt=ie(64910);const Ot=Qe=>{const{componentCls:kt,paddingLG:st}=Qe,tt=`${kt}-textarea`;return{[`textarea${kt}`]:{maxWidth:"100%",height:"auto",minHeight:Qe.controlHeight,lineHeight:Qe.lineHeight,verticalAlign:"bottom",transition:`all ${Qe.motionDurationSlow}`,resize:"vertical",[`&${kt}-mouse-active`]:{transition:`all ${Qe.motionDurationSlow}, height 0s, width 0s`}},[`${kt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[tt]:{position:"relative","&-show-count":{[`> ${kt}`]:{height:"100%"},[`${kt}-data-count`]:{position:"absolute",bottom:Qe.calc(Qe.fontSize).mul(Qe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Qe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${kt}, &-affix-wrapper${tt}-has-feedback ${kt} `]:{paddingInlineEnd:st},[`&-affix-wrapper${kt}-affix-wrapper`]:{padding:0,[`> textarea${kt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Qe.calc(Qe.controlHeight).sub(Qe.calc(Qe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${kt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${kt}-clear-icon`]:{position:"absolute",insetInlineEnd:Qe.paddingInline,insetBlockStart:Qe.paddingXS},[`${tt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Qe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${kt}-affix-wrapper-sm`]:{[`${kt}-suffix`]:{[`${kt}-clear-icon`]:{insetInlineEnd:Qe.paddingInlineSM}}}}}};var Rt=(0,Le.I$)(["Input","TextArea"],Qe=>{const kt=(0,Ae.mergeToken)(Qe,(0,xt.e)(Qe));return[Ot(kt)]},xt.T,{resetFont:!1}),wt=function(Qe,kt){var st={};for(var tt in Qe)Object.prototype.hasOwnProperty.call(Qe,tt)&&kt.indexOf(tt)<0&&(st[tt]=Qe[tt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,tt=Object.getOwnPropertySymbols(Qe);St{var st;const{prefixCls:tt,bordered:St=!0,size:We,disabled:yt,status:ut,allowClear:pe,classNames:Tt,rootClassName:Be,className:Ge,style:At,styles:ye,variant:se,showCount:Te,onMouseDown:Ct,onResize:Et}=Qe,Ie=wt(Qe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:_e,direction:ct,allowClear:Yt,autoComplete:Dt,className:$t,style:je,classNames:Gt,styles:bt}=(0,Ne.dj)("textArea"),ae=z.useContext(Ze.Z),te=yt!=null?yt:ae,{status:ee,hasFeedback:oe,feedbackIcon:ue}=z.useContext(Je.aM),ne=(0,we.F)(ee,ut),he=z.useRef(null);z.useImperativeHandle(kt,()=>{var Lt;return{resizableTextArea:(Lt=he.current)===null||Lt===void 0?void 0:Lt.resizableTextArea,focus:jt=>{var Oe,Ye;(0,rt.nH)((Ye=(Oe=he.current)===null||Oe===void 0?void 0:Oe.resizableTextArea)===null||Ye===void 0?void 0:Ye.textArea,jt)},blur:()=>{var jt;return(jt=he.current)===null||jt===void 0?void 0:jt.blur()}}});const xe=_e("input",tt),vt=(0,Me.Z)(xe),[Pe,Ve,dt]=(0,ke.TI)(xe,Be),[Mt]=Rt(xe,vt),{compactSize:pt,compactItemClassnames:Kt}=(0,Pt.ri)(xe,ct),Vt=(0,fe.Z)(Lt=>{var jt;return(jt=We!=null?We:pt)!==null&&jt!==void 0?jt:Lt}),[zt,ln]=(0,Se.Z)("textArea",se,St),_t=(0,be.Z)(pe!=null?pe:Yt),[on,It]=z.useState(!1),[Qt,Wt]=z.useState(!1),De=Lt=>{It(!0),Ct==null||Ct(Lt);const jt=()=>{It(!1),document.removeEventListener("mouseup",jt)};document.addEventListener("mouseup",jt)},it=Lt=>{var jt,Oe;if(Et==null||Et(Lt),on&&typeof getComputedStyle=="function"){const Ye=(Oe=(jt=he.current)===null||jt===void 0?void 0:jt.nativeElement)===null||Oe===void 0?void 0:Oe.querySelector("textarea");Ye&&getComputedStyle(Ye).resize==="both"&&Wt(!0)}};return Pe(Mt(z.createElement(Ke.default,Object.assign({autoComplete:Dt},Ie,{style:Object.assign(Object.assign({},je),At),styles:Object.assign(Object.assign({},bt),ye),disabled:te,allowClear:_t,className:ge()(dt,vt,Ge,Be,Kt,$t,Qt&&`${xe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Tt),Gt),{textarea:ge()({[`${xe}-sm`]:Vt==="small",[`${xe}-lg`]:Vt==="large"},Ve,Tt==null?void 0:Tt.textarea,Gt.textarea,on&&`${xe}-mouse-active`),variant:ge()({[`${xe}-${zt}`]:ln},(0,we.Z)(xe,ne)),affixWrapper:ge()(`${xe}-textarea-affix-wrapper`,{[`${xe}-affix-wrapper-rtl`]:ct==="rtl",[`${xe}-affix-wrapper-sm`]:Vt==="small",[`${xe}-affix-wrapper-lg`]:Vt==="large",[`${xe}-textarea-show-count`]:Te||((st=Qe.count)===null||st===void 0?void 0:st.show)},Ve)}),prefixCls:xe,suffix:oe&&z.createElement("span",{className:`${xe}-textarea-suffix`},ue),showCount:Te,ref:he,onResize:it,onMouseDown:De}))))})},23826:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return at}});var z=ie(59301);function at(ge,Ke){const be=(0,z.useRef)([]),we=()=>{be.current.push(setTimeout(()=>{var Ne,Ze,Me,fe;!((Ne=ge.current)===null||Ne===void 0)&&Ne.input&&((Ze=ge.current)===null||Ze===void 0?void 0:Ze.input.getAttribute("type"))==="password"&&(!((Me=ge.current)===null||Me===void 0)&&Me.input.hasAttribute("value"))&&((fe=ge.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Ke&&we(),()=>be.current.forEach(Ne=>{Ne&&clearTimeout(Ne)})),[]),we}},37568:function(an,Zt,ie){"use strict";ie.d(Zt,{default:function(){return Gt}});var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(48755),be=ie(56553),we=ie(53075),Ze=bt=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Ke.E_),{prefixCls:ee,className:oe}=bt,ue=ae("input-group",ee),ne=ae("input"),[he,xe,vt]=(0,we.ZP)(ne),Pe=ge()(ue,vt,{[`${ue}-lg`]:bt.size==="large",[`${ue}-sm`]:bt.size==="small",[`${ue}-compact`]:bt.compact,[`${ue}-rtl`]:te==="rtl"},xe,oe),Ve=(0,z.useContext)(be.aM),dt=(0,z.useMemo)(()=>Object.assign(Object.assign({},Ve),{isFormItemInput:!1}),[Ve]);return he(z.createElement("span",{className:Pe,style:bt.style,onMouseEnter:bt.onMouseEnter,onMouseLeave:bt.onMouseLeave,onFocus:bt.onFocus,onBlur:bt.onBlur},z.createElement(be.aM.Provider,{value:dt},bt.children)))},Me=ie(49397),fe=ie(77654),Je=ie(6089),Se=ie(26112),Pt=ie(82855),rt=ie(31756),ke=ie(16931),Le=ie(51636),Ae=ie(64910);const xt=bt=>{const{componentCls:ae,paddingXS:te}=bt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:bt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:bt.calc(bt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:bt.paddingXS}}}};var Ot=(0,ke.I$)(["Input","OTP"],bt=>{const ae=(0,Le.mergeToken)(bt,(0,Ae.e)(bt));return[xt(ae)]},Ae.T),Rt=ie(16089),wt=function(bt,ae){var te={};for(var ee in bt)Object.prototype.hasOwnProperty.call(bt,ee)&&ae.indexOf(ee)<0&&(te[ee]=bt[ee]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(bt);oe{const{value:te,onChange:ee,onActiveChange:oe,index:ue,mask:ne}=bt,he=wt(bt,["value","onChange","onActiveChange","index","mask"]),xe=te&&typeof ne=="string"?ne:te,vt=pt=>{ee(ue,pt.target.value)},Pe=z.useRef(null);z.useImperativeHandle(ae,()=>Pe.current);const Ve=()=>{(0,Rt.Z)(()=>{var pt;const Kt=(pt=Pe.current)===null||pt===void 0?void 0:pt.input;document.activeElement===Kt&&Kt&&Kt.select()})},dt=pt=>{const{key:Kt,ctrlKey:Vt,metaKey:zt}=pt;Kt==="ArrowLeft"?oe(ue-1):Kt==="ArrowRight"?oe(ue+1):Kt==="z"&&(Vt||zt)&&pt.preventDefault(),Ve()},Mt=pt=>{pt.key==="Backspace"&&!te&&oe(ue-1),Ve()};return z.createElement(Me.Z,Object.assign({type:ne===!0?"password":"text"},he,{ref:Pe,value:xe,onInput:vt,onFocus:Ve,onKeyDown:dt,onKeyUp:Mt,onMouseDown:Ve,onMouseUp:Ve}))}),Qe=function(bt,ae){var te={};for(var ee in bt)Object.prototype.hasOwnProperty.call(bt,ee)&&ae.indexOf(ee)<0&&(te[ee]=bt[ee]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(bt);oe{const{index:ae,prefixCls:te,separator:ee}=bt,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var St=z.forwardRef((bt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:ue,value:ne,onChange:he,formatter:xe,separator:vt,variant:Pe,disabled:Ve,status:dt,autoFocus:Mt,mask:pt,type:Kt,onInput:Vt,inputMode:zt}=bt,ln=Qe(bt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:_t,direction:on}=z.useContext(Ke.E_),It=_t("otp",te),Qt=(0,Se.Z)(ln,{aria:!0,data:!0,attr:!0}),[Wt,De,it]=Ot(It),Lt=(0,rt.Z)(bn=>oe!=null?oe:bn),jt=z.useContext(be.aM),Oe=(0,Pt.F)(jt.status,dt),Ye=z.useMemo(()=>Object.assign(Object.assign({},jt),{status:Oe,hasFeedback:!1,feedbackIcon:null}),[jt,Oe]),ft=z.useRef(null),Bt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var bn;(bn=Bt.current[0])===null||bn===void 0||bn.focus()},blur:()=>{var bn;for(let vn=0;vnxe?xe(bn):bn,[cn,Sn]=z.useState(()=>kt(Ut(ue||"")));z.useEffect(()=>{ne!==void 0&&Sn(kt(ne))},[ne]);const Cn=(0,Je.Z)(bn=>{Sn(bn),Vt&&Vt(bn),he&&bn.length===ee&&bn.every(vn=>vn)&&bn.some((vn,Jt)=>cn[Jt]!==vn)&&he(bn.join(""))}),sn=(0,Je.Z)((bn,vn)=>{let Jt=(0,fe.Z)(cn);for(let mn=0;mn=0&&!Jt[mn];mn-=1)Jt.pop();const Pn=Ut(Jt.map(mn=>mn||" ").join(""));return Jt=kt(Pn).map((mn,kn)=>mn===" "&&!Jt[kn]?Jt[kn]:mn),Jt}),yn=(bn,vn)=>{var Jt;const Pn=sn(bn,vn),mn=Math.min(bn+vn.length,ee-1);mn!==bn&&Pn[bn]!==void 0&&((Jt=Bt.current[mn])===null||Jt===void 0||Jt.focus()),Cn(Pn)},gn=bn=>{var vn;(vn=Bt.current[bn])===null||vn===void 0||vn.focus()},$n={variant:Pe,disabled:Ve,status:Oe,mask:pt,type:Kt,inputMode:zt};return Wt(z.createElement("div",Object.assign({},Qt,{ref:ft,className:ge()(It,{[`${It}-sm`]:Lt==="small",[`${It}-lg`]:Lt==="large",[`${It}-rtl`]:on==="rtl"},it,De)}),z.createElement(be.aM.Provider,{value:Ye},Array.from({length:ee}).map((bn,vn)=>{const Jt=`otp-${vn}`,Pn=cn[vn]||"";return z.createElement(z.Fragment,{key:Jt},z.createElement(gt,Object.assign({ref:mn=>{Bt.current[vn]=mn},index:vn,size:Lt,htmlSize:1,className:`${It}-input`,onChange:yn,value:Pn,onActiveChange:gn,autoFocus:vn===0&&Mt},$n)),vnbt?z.createElement(yt.Z,null):z.createElement(We.Z,null),ye={click:"onClick",hover:"onMouseOver"};var Te=z.forwardRef((bt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:ue=At}=bt,ne=z.useContext(Tt.Z),he=te!=null?te:ne,xe=typeof oe=="object"&&oe.visible!==void 0,[vt,Pe]=(0,z.useState)(()=>xe?oe.visible:!1),Ve=(0,z.useRef)(null);z.useEffect(()=>{xe&&Pe(oe.visible)},[xe,oe]);const dt=(0,Be.Z)(Ve),Mt=()=>{var Lt;if(he)return;vt&&dt();const jt=!vt;Pe(jt),typeof oe=="object"&&((Lt=oe.onVisibleChange)===null||Lt===void 0||Lt.call(oe,jt))},pt=Lt=>{const jt=ye[ee]||"",Oe=ue(vt),Ye={[jt]:Mt,className:`${Lt}-icon`,key:"passwordIcon",onMouseDown:ft=>{ft.preventDefault()},onMouseUp:ft=>{ft.preventDefault()}};return z.cloneElement(z.isValidElement(Oe)?Oe:z.createElement("span",null,Oe),Ye)},{className:Kt,prefixCls:Vt,inputPrefixCls:zt,size:ln}=bt,_t=Ge(bt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:on}=z.useContext(Ke.E_),It=on("input",zt),Qt=on("input-password",Vt),Wt=oe&&pt(Qt),De=ge()(Qt,Kt,{[`${Qt}-${ln}`]:!!ln}),it=Object.assign(Object.assign({},(0,ut.Z)(_t,["suffix","iconRender","visibilityToggle"])),{type:vt?"text":"password",className:De,prefixCls:It,suffix:Wt});return ln&&(it.size=ln),z.createElement(Me.Z,Object.assign({ref:(0,pe.sQ)(ae,Ve)},it))}),Ct=ie(47472),Et=ie(22703),Ie=ie(7939),_e=ie(70045),ct=function(bt,ae){var te={};for(var ee in bt)Object.prototype.hasOwnProperty.call(bt,ee)&&ae.indexOf(ee)<0&&(te[ee]=bt[ee]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(bt);oe{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:ue,suffix:ne,enterButton:he=!1,addonAfter:xe,loading:vt,disabled:Pe,onSearch:Ve,onChange:dt,onCompositionStart:Mt,onCompositionEnd:pt}=bt,Kt=ct(bt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Vt,direction:zt}=z.useContext(Ke.E_),ln=z.useRef(!1),_t=Vt("input-search",te),on=Vt("input",ee),{compactSize:It}=(0,_e.ri)(_t,zt),Qt=(0,rt.Z)(yn=>{var gn;return(gn=ue!=null?ue:It)!==null&&gn!==void 0?gn:yn}),Wt=z.useRef(null),De=yn=>{yn!=null&&yn.target&&yn.type==="click"&&Ve&&Ve(yn.target.value,yn,{source:"clear"}),dt==null||dt(yn)},it=yn=>{var gn;document.activeElement===((gn=Wt.current)===null||gn===void 0?void 0:gn.input)&&yn.preventDefault()},Lt=yn=>{var gn,$n;Ve&&Ve(($n=(gn=Wt.current)===null||gn===void 0?void 0:gn.input)===null||$n===void 0?void 0:$n.value,yn,{source:"input"})},jt=yn=>{ln.current||vt||Lt(yn)},Oe=typeof he=="boolean"?z.createElement(Ct.Z,null):null,Ye=`${_t}-button`;let ft;const Bt=he||{},Ut=Bt.type&&Bt.type.__ANT_BUTTON===!0;Ut||Bt.type==="button"?ft=(0,Et.Tm)(Bt,Object.assign({onMouseDown:it,onClick:yn=>{var gn,$n;($n=(gn=Bt==null?void 0:Bt.props)===null||gn===void 0?void 0:gn.onClick)===null||$n===void 0||$n.call(gn,yn),Lt(yn)},key:"enterButton"},Ut?{className:Ye,size:Qt}:{})):ft=z.createElement(Ie.ZP,{className:Ye,type:he?"primary":void 0,size:Qt,disabled:Pe,key:"enterButton",onMouseDown:it,onClick:Lt,loading:vt,icon:Oe},he),xe&&(ft=[ft,(0,Et.Tm)(xe,{key:"addonAfter"})]);const cn=ge()(_t,{[`${_t}-rtl`]:zt==="rtl",[`${_t}-${Qt}`]:!!Qt,[`${_t}-with-button`]:!!he},oe),Sn=Object.assign(Object.assign({},Kt),{className:cn,prefixCls:on,type:"search"}),Cn=yn=>{ln.current=!0,Mt==null||Mt(yn)},sn=yn=>{ln.current=!1,pt==null||pt(yn)};return z.createElement(Me.Z,Object.assign({ref:(0,pe.sQ)(Wt,ae),onPressEnter:jt},Sn,{size:Qt,onCompositionStart:Cn,onCompositionEnd:sn,addonAfter:ft,suffix:ne,onChange:De,disabled:Pe}))}),$t=ie(79809);const je=Me.Z;je.Group=Ze,je.Search=Dt,je.TextArea=$t.Z,je.Password=Te,je.OTP=St;var Gt=je},24303:function(an,Zt,ie){"use strict";ie.d(Zt,{D:function(){return Qe},Z:function(){return tt}});var z=ie(59301),at=ie(60499),ge={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ke=ge,be=ie(7657),we=function(We,yt){return z.createElement(be.Z,(0,at.Z)({},We,{ref:yt,icon:Ke}))},Ne=z.forwardRef(we),Ze=Ne,Me=ie(33853),fe=ie(38819),Je=ie(92310),Se=ie.n(Je),Pt=ie(2738),rt=ie(48755),ke=ie(6989),Le=ie(36237),Ae=ie(48923),xt=ie(16931);const Ot=St=>{const{componentCls:We,siderBg:yt,motionDurationMid:ut,motionDurationSlow:pe,antCls:Tt,triggerHeight:Be,triggerColor:Ge,triggerBg:At,headerHeight:ye,zeroTriggerWidth:se,zeroTriggerHeight:Te,borderRadiusLG:Ct,lightSiderBg:Et,lightTriggerColor:Ie,lightTriggerBg:_e,bodyBg:ct}=St;return{[We]:{position:"relative",minWidth:0,background:yt,transition:`all ${ut}, background 0s`,"&-has-trigger":{paddingBottom:Be},"&-right":{order:1},[`${We}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Tt}-menu${Tt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${We}-children`]:{overflow:"hidden"},[`${We}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Be,color:Ge,lineHeight:(0,Le.unit)(Be),textAlign:"center",background:At,cursor:"pointer",transition:`all ${ut}`},[`${We}-zero-width-trigger`]:{position:"absolute",top:ye,insetInlineEnd:St.calc(se).mul(-1).equal(),zIndex:1,width:se,height:Te,color:Ge,fontSize:St.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:yt,borderRadius:`0 ${(0,Le.unit)(Ct)} ${(0,Le.unit)(Ct)} 0`,cursor:"pointer",transition:`background ${pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:St.calc(se).mul(-1).equal(),borderRadius:`${(0,Le.unit)(Ct)} 0 0 ${(0,Le.unit)(Ct)}`}},"&-light":{background:Et,[`${We}-trigger`]:{color:Ie,background:_e},[`${We}-zero-width-trigger`]:{color:Ie,background:_e,border:`1px solid ${ct}`,borderInlineStart:0}}}}};var Rt=(0,xt.I$)(["Layout","Sider"],St=>[Ot(St)],Ae.eh,{deprecatedTokens:Ae.jn}),wt=function(St,We){var yt={};for(var ut in St)Object.prototype.hasOwnProperty.call(St,ut)&&We.indexOf(ut)<0&&(yt[ut]=St[ut]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ut=Object.getOwnPropertySymbols(St);pe!Number.isNaN(Number.parseFloat(St))&&isFinite(St),Qe=z.createContext({}),kt=(()=>{let St=0;return function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return St+=1,`${We}${St}`}})();var tt=z.forwardRef((St,We)=>{const{prefixCls:yt,className:ut,trigger:pe,children:Tt,defaultCollapsed:Be=!1,theme:Ge="dark",style:At={},collapsible:ye=!1,reverseArrow:se=!1,width:Te=200,collapsedWidth:Ct=80,zeroWidthTriggerStyle:Et,breakpoint:Ie,onCollapse:_e,onBreakpoint:ct}=St,Yt=wt(St,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Dt}=(0,z.useContext)(ke.V),[$t,je]=(0,z.useState)("collapsed"in St?St.collapsed:Be),[Gt,bt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in St&&je(St.collapsed)},[St.collapsed]);const ae=(Qt,Wt)=>{"collapsed"in St||je(Qt),_e==null||_e(Qt,Wt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(rt.E_),oe=te("layout-sider",yt),[ue,ne,he]=Rt(oe),xe=(0,z.useRef)(null);xe.current=Qt=>{bt(Qt.matches),ct==null||ct(Qt.matches),$t!==Qt.matches&&ae(Qt.matches,"responsive")},(0,z.useEffect)(()=>{function Qt(De){return xe.current(De)}let Wt;if(typeof window!="undefined"){const{matchMedia:De}=window;if(De&&Ie&&Ie in mt){Wt=De(`screen and (max-width: ${mt[Ie]})`);try{Wt.addEventListener("change",Qt)}catch(it){Wt.addListener(Qt)}Qt(Wt)}}return()=>{try{Wt==null||Wt.removeEventListener("change",Qt)}catch(De){Wt==null||Wt.removeListener(Qt)}}},[Ie]),(0,z.useEffect)(()=>{const Qt=kt("ant-sider-");return Dt.addSider(Qt),()=>Dt.removeSider(Qt)},[]);const vt=()=>{ae(!$t,"clickTrigger")},Pe=(0,Pt.Z)(Yt,["collapsed"]),Ve=$t?Ct:Te,dt=gt(Ve)?`${Ve}px`:String(Ve),Mt=parseFloat(String(Ct||0))===0?z.createElement("span",{onClick:vt,className:Se()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${se?"right":"left"}`),style:Et},pe||z.createElement(Ze,null)):null,pt=ee==="rtl"==!se,zt={expanded:pt?z.createElement(fe.Z,null):z.createElement(Me.Z,null),collapsed:pt?z.createElement(Me.Z,null):z.createElement(fe.Z,null)}[$t?"collapsed":"expanded"],ln=pe!==null?Mt||z.createElement("div",{className:`${oe}-trigger`,onClick:vt,style:{width:dt}},pe||zt):null,_t=Object.assign(Object.assign({},At),{flex:`0 0 ${dt}`,maxWidth:dt,minWidth:dt,width:dt}),on=Se()(oe,`${oe}-${Ge}`,{[`${oe}-collapsed`]:!!$t,[`${oe}-has-trigger`]:ye&&pe!==null&&!Mt,[`${oe}-below`]:!!Gt,[`${oe}-zero-width`]:parseFloat(dt)===0},ut,ne,he),It=z.useMemo(()=>({siderCollapsed:$t}),[$t]);return ue(z.createElement(Qe.Provider,{value:It},z.createElement("aside",Object.assign({className:on},Pe,{style:_t,ref:We}),z.createElement("div",{className:`${oe}-children`},Tt),ye||Gt&&Mt?ln:null)))})},6989:function(an,Zt,ie){"use strict";ie.d(Zt,{V:function(){return at}});var z=ie(59301);const at=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(an,Zt,ie){"use strict";ie.d(Zt,{eh:function(){return Ke},jn:function(){return be}});var z=ie(36237),at=ie(16931);const ge=we=>{const{antCls:Ne,componentCls:Ze,colorText:Me,footerBg:fe,headerHeight:Je,headerPadding:Se,headerColor:Pt,footerPadding:rt,fontSize:ke,bodyBg:Le,headerBg:Ae}=we;return{[Ze]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Le,"&, *":{boxSizing:"border-box"},[`&${Ze}-has-sider`]:{flexDirection:"row",[`> ${Ze}, > ${Ze}-content`]:{width:0}},[`${Ze}-header, &${Ze}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ze}-header`]:{height:Je,padding:Se,color:Pt,lineHeight:(0,z.unit)(Je),background:Ae,[`${Ne}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:rt,color:Me,fontSize:ke,background:fe},[`${Ze}-content`]:{flex:"auto",color:Me,minHeight:0}}},Ke=we=>{const{colorBgLayout:Ne,controlHeight:Ze,controlHeightLG:Me,colorText:fe,controlHeightSM:Je,marginXXS:Se,colorTextLightSolid:Pt,colorBgContainer:rt}=we,ke=Me*1.25;return{colorBgHeader:"#001529",colorBgBody:Ne,colorBgTrigger:"#002140",bodyBg:Ne,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${ke}px`,headerColor:fe,footerPadding:`${Je}px ${ke}px`,footerBg:Ne,siderBg:"#001529",triggerHeight:Me+Se*2,triggerBg:"#002140",triggerColor:Pt,zeroTriggerWidth:Me,zeroTriggerHeight:Me,lightSiderBg:rt,lightTriggerBg:rt,lightTriggerColor:fe}},be=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Zt.ZP=(0,at.I$)("Layout",we=>[ge(we)],Ke,{deprecatedTokens:be})},78857:function(an,Zt,ie){"use strict";ie.d(Zt,{J:function(){return we}});var z=ie(59301),at=ie(8654),ge=ie(62487),Ke=function(Ne,Ze){var Me={};for(var fe in Ne)Object.prototype.hasOwnProperty.call(Ne,fe)&&Ze.indexOf(fe)<0&&(Me[fe]=Ne[fe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,fe=Object.getOwnPropertySymbols(Ne);Je{const{children:Me}=Ne,fe=Ke(Ne,["children"]),Je=z.useContext(be),Se=z.useMemo(()=>Object.assign(Object.assign({},Je),fe),[Je,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),Pt=(0,at.t4)(Me),rt=(0,at.x1)(Ze,Pt?(0,at.C4)(Me):null);return z.createElement(be.Provider,{value:Se},z.createElement(ge.Z,{space:!0},Pt?z.cloneElement(Me,{ref:rt}):Me))});Zt.Z=be},93041:function(an,Zt,ie){"use strict";ie.d(Zt,{default:function(){return ue}});var z=ie(59301),at=ie(28321),ge=ie(24303),Ke=ie(18785),be=ie(92310),we=ie.n(be),Ne=ie(6089),Ze=ie(2738),Me=ie(86641),fe=ie(22703),Je=ie(48755),Se=ie(83397),rt=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ke=function(ne,he){var xe={};for(var vt in ne)Object.prototype.hasOwnProperty.call(ne,vt)&&he.indexOf(vt)<0&&(xe[vt]=ne[vt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,vt=Object.getOwnPropertySymbols(ne);Pe{const{prefixCls:he,className:xe,dashed:vt}=ne,Pe=ke(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=z.useContext(Je.E_),dt=Ve("menu",he),Mt=we()({[`${dt}-item-divider-dashed`]:!!vt},xe);return z.createElement(at.iz,Object.assign({className:Mt},Pe))},xt=ie(11592),Ot=ie(25399),wt=ne=>{var he;const{className:xe,children:vt,icon:Pe,title:Ve,danger:dt,extra:Mt}=ne,{prefixCls:pt,firstLevel:Kt,direction:Vt,disableMenuItemTitleTooltip:zt,inlineCollapsed:ln}=z.useContext(rt),_t=it=>{const Lt=vt==null?void 0:vt[0],jt=z.createElement("span",{className:we()(`${pt}-title-content`,{[`${pt}-title-content-with-extra`]:!!Mt||Mt===0})},vt);return(!Pe||z.isValidElement(vt)&&vt.type==="span")&&vt&&it&&Kt&&typeof Lt=="string"?z.createElement("div",{className:`${pt}-inline-collapsed-noicon`},Lt.charAt(0)):jt},{siderCollapsed:on}=z.useContext(ge.D);let It=Ve;typeof Ve=="undefined"?It=Kt?vt:"":Ve===!1&&(It="");const Qt={title:It};!on&&!ln&&(Qt.title=null,Qt.open=!1);const Wt=(0,xt.Z)(vt).length;let De=z.createElement(at.ck,Object.assign({},(0,Ze.Z)(ne,["title","icon","danger"]),{className:we()({[`${pt}-item-danger`]:dt,[`${pt}-item-only-child`]:(Pe?Wt+1:Wt)===1},xe),title:typeof Ve=="string"?Ve:void 0}),(0,fe.Tm)(Pe,{className:we()(z.isValidElement(Pe)?(he=Pe.props)===null||he===void 0?void 0:he.className:"",`${pt}-item-icon`)}),_t(ln));return zt||(De=z.createElement(Ot.Z,Object.assign({},Qt,{placement:Vt==="rtl"?"left":"right",classNames:{root:`${pt}-inline-collapsed-tooltip`}}),De)),De},mt=ie(78857),gt=ie(36237),Qe=ie(17835),kt=ie(63356),st=ie(34961),tt=ie(46e3),St=ie(34925),We=ie(16931),yt=ie(51636),pe=ne=>{const{componentCls:he,motionDurationSlow:xe,horizontalLineHeight:vt,colorSplit:Pe,lineWidth:Ve,lineType:dt,itemPaddingInline:Mt}=ne;return{[`${he}-horizontal`]:{lineHeight:vt,border:0,borderBottom:`${(0,gt.unit)(Ve)} ${dt} ${Pe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Mt},[`> ${he}-item:hover, > ${he}-item-active, > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${xe}`,`background ${xe}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Be=ne=>{let{componentCls:he,menuArrowOffset:xe,calc:vt}=ne;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical, ${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,gt.unit)(vt(xe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,gt.unit)(xe)})`}}}}};const Ge=ne=>Object.assign({},(0,kt.oN)(ne));var ye=(ne,he)=>{const{componentCls:xe,itemColor:vt,itemSelectedColor:Pe,subMenuItemSelectedColor:Ve,groupTitleColor:dt,itemBg:Mt,subMenuItemBg:pt,itemSelectedBg:Kt,activeBarHeight:Vt,activeBarWidth:zt,activeBarBorderWidth:ln,motionDurationSlow:_t,motionEaseInOut:on,motionEaseOut:It,itemPaddingInline:Qt,motionDurationMid:Wt,itemHoverColor:De,lineType:it,colorSplit:Lt,itemDisabledColor:jt,dangerItemColor:Oe,dangerItemHoverColor:Ye,dangerItemSelectedColor:ft,dangerItemActiveBg:Bt,dangerItemSelectedBg:Ut,popupBg:cn,itemHoverBg:Sn,itemActiveBg:Cn,menuSubMenuBg:sn,horizontalItemSelectedColor:yn,horizontalItemSelectedBg:gn,horizontalItemBorderRadius:$n,horizontalItemHoverBg:bn}=ne;return{[`${xe}-${he}, ${xe}-${he} > ${xe}`]:{color:vt,background:Mt,[`&${xe}-root:focus-visible`]:Object.assign({},Ge(ne)),[`${xe}-item`]:{"&-group-title, &-extra":{color:dt}},[`${xe}-submenu-selected > ${xe}-submenu-title`]:{color:Ve},[`${xe}-item, ${xe}-submenu-title`]:{color:vt,[`&:not(${xe}-item-disabled):focus-visible`]:Object.assign({},Ge(ne))},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{color:`${jt} !important`},[`${xe}-item:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{[`&:hover, > ${xe}-submenu-title:hover`]:{color:De}},[`&:not(${xe}-horizontal)`]:{[`${xe}-item:not(${xe}-item-selected)`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Cn}},[`${xe}-submenu-title`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Cn}}},[`${xe}-item-danger`]:{color:Oe,[`&${xe}-item:hover`]:{[`&:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{color:Ye}},[`&${xe}-item:active`]:{background:Bt}},[`${xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${xe}-item-selected`]:{color:Pe,[`&${xe}-item-danger`]:{color:ft},"a, a:hover":{color:"inherit"}},[`& ${xe}-item-selected`]:{backgroundColor:Kt,[`&${xe}-item-danger`]:{backgroundColor:Ut}},[`&${xe}-submenu > ${xe}`]:{backgroundColor:sn},[`&${xe}-popup > ${xe}`]:{backgroundColor:cn},[`&${xe}-submenu-popup > ${xe}`]:{backgroundColor:cn},[`&${xe}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${xe}-item, > ${xe}-submenu`]:{top:ln,marginTop:ne.calc(ln).mul(-1).equal(),marginBottom:0,borderRadius:$n,"&::after":{position:"absolute",insetInline:Qt,bottom:0,borderBottom:`${(0,gt.unit)(Vt)} solid transparent`,transition:`border-color ${_t} ${on}`,content:'""'},"&:hover, &-active, &-open":{background:bn,"&::after":{borderBottomWidth:Vt,borderBottomColor:yn}},"&-selected":{color:yn,backgroundColor:gn,"&:hover":{backgroundColor:gn},"&::after":{borderBottomWidth:Vt,borderBottomColor:yn}}}}),[`&${xe}-root`]:{[`&${xe}-inline, &${xe}-vertical`]:{borderInlineEnd:`${(0,gt.unit)(ln)} ${it} ${Lt}`}},[`&${xe}-inline`]:{[`${xe}-sub${xe}-inline`]:{background:pt},[`${xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,gt.unit)(zt)} solid ${Pe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Wt} ${It}`,`opacity ${Wt} ${It}`].join(","),content:'""'},[`&${xe}-item-danger`]:{"&::after":{borderInlineEndColor:ft}}},[`${xe}-selected, ${xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Wt} ${on}`,`opacity ${Wt} ${on}`].join(",")}}}}}};const se=ne=>{const{componentCls:he,itemHeight:xe,itemMarginInline:vt,padding:Pe,menuArrowSize:Ve,marginXS:dt,itemMarginBlock:Mt,itemWidth:pt,itemPaddingInline:Kt}=ne,Vt=ne.calc(Ve).add(Pe).add(dt).equal();return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:xe,lineHeight:(0,gt.unit)(xe),paddingInline:Kt,overflow:"hidden",textOverflow:"ellipsis",marginInline:vt,marginBlock:Mt,width:pt},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:xe,lineHeight:(0,gt.unit)(xe)},[`${he}-item-group-list ${he}-submenu-title, ${he}-submenu-title`]:{paddingInlineEnd:Vt}}};var Ct=ne=>{const{componentCls:he,iconCls:xe,itemHeight:vt,colorTextLightSolid:Pe,dropdownWidth:Ve,controlHeightLG:dt,motionEaseOut:Mt,paddingXL:pt,itemMarginInline:Kt,fontSizeLG:Vt,motionDurationFast:zt,motionDurationSlow:ln,paddingXS:_t,boxShadowSecondary:on,collapsedWidth:It,collapsedIconSize:Qt}=ne,Wt={height:vt,lineHeight:(0,gt.unit)(vt),listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},se(ne))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},se(ne)),{boxShadow:on})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${(0,gt.unit)(ne.calc(dt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${zt} ${Mt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:Wt,[`& ${he}-item-group-title`]:{paddingInlineStart:pt}},[`${he}-item`]:Wt}},{[`${he}-inline-collapsed`]:{width:It,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Vt,textAlign:"center"}}},[`> ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title, > ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,gt.unit)(ne.calc(Qt).div(2).equal())} - ${(0,gt.unit)(Kt)})`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon `]:{opacity:0},[`${he}-item-icon, ${xe}`]:{margin:0,fontSize:Qt,lineHeight:(0,gt.unit)(vt),"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${xe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${xe}`]:{display:"none"},"a, a:hover":{color:Pe}},[`${he}-item-group-title`]:Object.assign(Object.assign({},kt.vS),{paddingInline:_t})}}]};const Et=ne=>{const{componentCls:he,motionDurationSlow:xe,motionDurationMid:vt,motionEaseInOut:Pe,motionEaseOut:Ve,iconCls:dt,iconSize:Mt,iconMarginInlineEnd:pt}=ne;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${xe}`,`background ${xe}`,`padding calc(${xe} + 0.1s) ${Pe}`].join(","),[`${he}-item-icon, ${dt}`]:{minWidth:Mt,fontSize:Mt,transition:[`font-size ${vt} ${Ve}`,`margin ${xe} ${Pe}`,`color ${xe}`].join(","),"+ span":{marginInlineStart:pt,opacity:1,transition:[`opacity ${xe} ${Pe}`,`margin ${xe}`,`color ${xe}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,kt.Ro)()),[`&${he}-item-only-child`]:{[`> ${dt}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ie=ne=>{const{componentCls:he,motionDurationSlow:xe,motionEaseInOut:vt,borderRadius:Pe,menuArrowSize:Ve,menuArrowOffset:dt}=ne;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${xe} ${vt}, opacity ${xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ve).mul(.6).equal(),height:ne.calc(Ve).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Pe,transition:[`background ${xe} ${vt}`,`transform ${xe} ${vt}`,`top ${xe} ${vt}`,`color ${xe} ${vt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,gt.unit)(ne.calc(dt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,gt.unit)(dt)})`}}}}},_e=ne=>{const{antCls:he,componentCls:xe,fontSize:vt,motionDurationSlow:Pe,motionDurationMid:Ve,motionEaseInOut:dt,paddingXS:Mt,padding:pt,colorSplit:Kt,lineWidth:Vt,zIndexPopup:zt,borderRadiusLG:ln,subMenuItemBorderRadius:_t,menuArrowSize:on,menuArrowOffset:It,lineType:Qt,groupTitleLineHeight:Wt,groupTitleFontSize:De}=ne;return[{"":{[xe]:Object.assign(Object.assign({},(0,kt.dF)()),{"&-hidden":{display:"none"}})},[`${xe}-submenu-hidden`]:{display:"none"}},{[xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(ne)),(0,kt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:vt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Pe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${xe}-item`]:{flex:"none"}},[`${xe}-item, ${xe}-submenu, ${xe}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${xe}-item-group-title`]:{padding:`${(0,gt.unit)(Mt)} ${(0,gt.unit)(pt)}`,fontSize:De,lineHeight:Wt,transition:`all ${Pe}`},[`&-horizontal ${xe}-submenu`]:{transition:[`border-color ${Pe} ${dt}`,`background ${Pe} ${dt}`].join(",")},[`${xe}-submenu, ${xe}-submenu-inline`]:{transition:[`border-color ${Pe} ${dt}`,`background ${Pe} ${dt}`,`padding ${Ve} ${dt}`].join(",")},[`${xe}-submenu ${xe}-sub`]:{cursor:"initial",transition:[`background ${Pe} ${dt}`,`padding ${Pe} ${dt}`].join(",")},[`${xe}-title-content`]:{transition:`color ${Pe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${he}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${xe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Kt,borderStyle:Qt,borderWidth:0,borderTopWidth:Vt,marginBlock:Vt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Et(ne)),{[`${xe}-item-group`]:{[`${xe}-item-group-list`]:{margin:0,padding:0,[`${xe}-item, ${xe}-submenu-title`]:{paddingInline:`${(0,gt.unit)(ne.calc(vt).mul(2).equal())} ${(0,gt.unit)(pt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zt,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${xe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${xe}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},Et(ne)),Ie(ne)),{[`${xe}-item, ${xe}-submenu > ${xe}-submenu-title`]:{borderRadius:_t},[`${xe}-submenu-title::after`]:{transition:`transform ${Pe} ${dt}`}})},"\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}}}),Ie(ne)),{[`&-inline-collapsed ${xe}-submenu-arrow, &-inline ${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,gt.unit)(It)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,gt.unit)(ne.calc(It).mul(-1).equal())})`}},[`${xe}-submenu-open${xe}-submenu-inline > ${xe}-submenu-title > ${xe}-submenu-arrow`]:{transform:`translateY(${(0,gt.unit)(ne.calc(on).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,gt.unit)(ne.calc(It).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,gt.unit)(It)})`}}})},{[`${he}-layout-header`]:{[xe]:{lineHeight:"inherit"}}}]},ct=ne=>{var he,xe,vt;const{colorPrimary:Pe,colorError:Ve,colorTextDisabled:dt,colorErrorBg:Mt,colorText:pt,colorTextDescription:Kt,colorBgContainer:Vt,colorFillAlter:zt,colorFillContent:ln,lineWidth:_t,lineWidthBold:on,controlItemBgActive:It,colorBgTextHover:Qt,controlHeightLG:Wt,lineHeight:De,colorBgElevated:it,marginXXS:Lt,padding:jt,fontSize:Oe,controlHeightSM:Ye,fontSizeLG:ft,colorTextLightSolid:Bt,colorErrorHover:Ut}=ne,cn=(he=ne.activeBarWidth)!==null&&he!==void 0?he:0,Sn=(xe=ne.activeBarBorderWidth)!==null&&xe!==void 0?xe:_t,Cn=(vt=ne.itemMarginInline)!==null&&vt!==void 0?vt:ne.marginXXS,sn=new Qe.FastColor(Bt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:pt,itemColor:pt,colorItemTextHover:pt,itemHoverColor:pt,colorItemTextHoverHorizontal:Pe,horizontalItemHoverColor:Pe,colorGroupTitle:Kt,groupTitleColor:Kt,colorItemTextSelected:Pe,itemSelectedColor:Pe,subMenuItemSelectedColor:Pe,colorItemTextSelectedHorizontal:Pe,horizontalItemSelectedColor:Pe,colorItemBg:Vt,itemBg:Vt,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:ln,itemActiveBg:It,colorSubItemBg:zt,subMenuItemBg:zt,colorItemBgSelected:It,itemSelectedBg:It,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:cn,colorActiveBarHeight:on,activeBarHeight:on,colorActiveBarBorderSize:_t,activeBarBorderWidth:Sn,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:Mt,dangerItemActiveBg:Mt,colorDangerItemBgSelected:Mt,dangerItemSelectedBg:Mt,itemMarginInline:Cn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wt,groupTitleLineHeight:De,collapsedWidth:Wt*2,popupBg:it,itemMarginBlock:Lt,itemPaddingInline:jt,horizontalLineHeight:`${Wt*1.15}px`,iconSize:Oe,iconMarginInlineEnd:Ye-Oe,collapsedIconSize:ft,groupTitleFontSize:Oe,darkItemDisabledColor:new Qe.FastColor(Bt).setA(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:Ve,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Bt,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Bt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:Bt,darkDangerItemActiveBg:Ve,itemWidth:cn?`calc(100% + ${Sn}px)`:`calc(100% - ${Cn*2}px)`}};var Yt=function(ne){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,We.I$)("Menu",Pe=>{const{colorBgElevated:Ve,controlHeightLG:dt,fontSize:Mt,darkItemColor:pt,darkDangerItemColor:Kt,darkItemBg:Vt,darkSubMenuItemBg:zt,darkItemSelectedColor:ln,darkItemSelectedBg:_t,darkDangerItemSelectedBg:on,darkItemHoverBg:It,darkGroupTitleColor:Qt,darkItemHoverColor:Wt,darkItemDisabledColor:De,darkDangerItemHoverColor:it,darkDangerItemSelectedColor:Lt,darkDangerItemActiveBg:jt,popupBg:Oe,darkPopupBg:Ye}=Pe,ft=Pe.calc(Mt).div(7).mul(5).equal(),Bt=(0,yt.mergeToken)(Pe,{menuArrowSize:ft,menuHorizontalHeight:Pe.calc(dt).mul(1.15).equal(),menuArrowOffset:Pe.calc(ft).mul(.25).equal(),menuSubMenuBg:Ve,calc:Pe.calc,popupBg:Oe}),Ut=(0,yt.mergeToken)(Bt,{itemColor:pt,itemHoverColor:Wt,groupTitleColor:Qt,itemSelectedColor:ln,subMenuItemSelectedColor:ln,itemBg:Vt,popupBg:Ye,subMenuItemBg:zt,itemActiveBg:"transparent",itemSelectedBg:_t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:It,itemDisabledColor:De,dangerItemColor:Kt,dangerItemHoverColor:it,dangerItemSelectedColor:Lt,dangerItemActiveBg:jt,dangerItemSelectedBg:on,menuSubMenuBg:zt,horizontalItemSelectedColor:ln,horizontalItemSelectedBg:_t});return[_e(Bt),pe(Bt),Ct(Bt),ye(Bt,"light"),ye(Ut,"dark"),Be(Bt),(0,st.Z)(Bt),(0,tt.oN)(Bt,"slide-up"),(0,tt.oN)(Bt,"slide-down"),(0,St._y)(Bt,"zoom-big")]},ct,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:xe,unitless:{groupTitleLineHeight:!0}})(ne,he)},Dt=ie(75030),je=ne=>{var he;const{popupClassName:xe,icon:vt,title:Pe,theme:Ve}=ne,dt=z.useContext(rt),{prefixCls:Mt,inlineCollapsed:pt,theme:Kt}=dt,Vt=(0,at.Xl)();let zt;if(!vt)zt=pt&&!Vt.length&&Pe&&typeof Pe=="string"?z.createElement("div",{className:`${Mt}-inline-collapsed-noicon`},Pe.charAt(0)):z.createElement("span",{className:`${Mt}-title-content`},Pe);else{const on=z.isValidElement(Pe)&&Pe.type==="span";zt=z.createElement(z.Fragment,null,(0,fe.Tm)(vt,{className:we()(z.isValidElement(vt)?(he=vt.props)===null||he===void 0?void 0:he.className:"",`${Mt}-item-icon`)}),on?Pe:z.createElement("span",{className:`${Mt}-title-content`},Pe))}const ln=z.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]),[_t]=(0,Dt.Cn)("Menu");return z.createElement(rt.Provider,{value:ln},z.createElement(at.Wd,Object.assign({},(0,Ze.Z)(ne,["icon"]),{title:zt,popupClassName:we()(Mt,xe,`${Mt}-${Ve||Kt}`),popupStyle:Object.assign({zIndex:_t},ne.popupStyle)})))},Gt=function(ne,he){var xe={};for(var vt in ne)Object.prototype.hasOwnProperty.call(ne,vt)&&he.indexOf(vt)<0&&(xe[vt]=ne[vt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,vt=Object.getOwnPropertySymbols(ne);Pe{var xe;const vt=z.useContext(mt.Z),Pe=vt||{},{getPrefixCls:Ve,getPopupContainer:dt,direction:Mt,menu:pt}=z.useContext(Je.E_),Kt=Ve(),{prefixCls:Vt,className:zt,style:ln,theme:_t="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:It,inlineCollapsed:Qt,siderCollapsed:Wt,rootClassName:De,mode:it,selectable:Lt,onClick:jt,overflowedIndicatorPopupClassName:Oe}=ne,Ye=Gt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ft=(0,Ze.Z)(Ye,["collapsedWidth"]);(xe=Pe.validator)===null||xe===void 0||xe.call(Pe,{mode:it});const Bt=(0,Ne.Z)(function(){var mn;jt==null||jt.apply(void 0,arguments),(mn=Pe.onClick)===null||mn===void 0||mn.call(Pe)}),Ut=Pe.mode||it,cn=Lt!=null?Lt:Pe.selectable,Sn=Qt!=null?Qt:Wt,Cn={horizontal:{motionName:`${Kt}-slide-up`},inline:(0,Me.Z)(Kt),other:{motionName:`${Kt}-zoom-big`}},sn=Ve("menu",Vt||Pe.prefixCls),yn=(0,Se.Z)(sn),[gn,$n,bn]=Yt(sn,yn,!vt),vn=we()(`${sn}-${_t}`,pt==null?void 0:pt.className,zt),Jt=z.useMemo(()=>{var mn,kn;if(typeof on=="function"||bt(on))return on||null;if(typeof Pe.expandIcon=="function"||bt(Pe.expandIcon))return Pe.expandIcon||null;if(typeof(pt==null?void 0:pt.expandIcon)=="function"||bt(pt==null?void 0:pt.expandIcon))return(pt==null?void 0:pt.expandIcon)||null;const jn=(mn=on!=null?on:Pe==null?void 0:Pe.expandIcon)!==null&&mn!==void 0?mn:pt==null?void 0:pt.expandIcon;return(0,fe.Tm)(jn,{className:we()(`${sn}-submenu-expand-icon`,z.isValidElement(jn)?(kn=jn.props)===null||kn===void 0?void 0:kn.className:void 0)})},[on,Pe==null?void 0:Pe.expandIcon,pt==null?void 0:pt.expandIcon,sn]),Pn=z.useMemo(()=>({prefixCls:sn,inlineCollapsed:Sn||!1,direction:Mt,firstLevel:!0,theme:_t,mode:Ut,disableMenuItemTitleTooltip:It}),[sn,Sn,Mt,It,_t]);return gn(z.createElement(mt.Z.Provider,{value:null},z.createElement(rt.Provider,{value:Pn},z.createElement(at.ZP,Object.assign({getPopupContainer:dt,overflowedIndicator:z.createElement(Ke.Z,null),overflowedIndicatorPopupClassName:we()(sn,`${sn}-${_t}`,Oe),mode:Ut,selectable:cn,onClick:Bt},ft,{inlineCollapsed:Sn,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),ln),className:vn,prefixCls:sn,direction:Mt,defaultMotions:Cn,expandIcon:Jt,ref:he,rootClassName:we()(De,$n,Pe.rootClassName,bn,yn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,he)=>{const xe=(0,z.useRef)(null),vt=z.useContext(ge.D);return(0,z.useImperativeHandle)(he,()=>({menu:xe.current,focus:Pe=>{var Ve;(Ve=xe.current)===null||Ve===void 0||Ve.focus(Pe)}})),z.createElement(ee,Object.assign({ref:xe},ne,vt))});oe.Item=wt,oe.SubMenu=je,oe.Divider=Ae,oe.ItemGroup=at.BW;var ue=oe},89787:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Wt}});var z=ie(59301),at=ie(17835),ge=ie(29679),Ke=ie(40001),be=ie(19248),we=ie(99267),Ne=ie(92310),Ze=ie.n(Ne),Me=ie(2738),fe=ie(48755),Je=ie(60499),Se=ie(85899),Pt=ie(42244),rt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ke=function(){var it=(0,z.useRef)([]),Lt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var jt=Date.now(),Oe=!1;it.current.forEach(function(Ye){if(Ye){Oe=!0;var ft=Ye.style;ft.transitionDuration=".3s, .3s, .3s, .06s",Lt.current&&jt-Lt.current<100&&(ft.transitionDuration="0s, 0s")}}),Oe&&(Lt.current=Date.now())}),it.current},Le=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ae=function(it){var Lt=(0,Se.Z)((0,Se.Z)({},rt),it),jt=Lt.className,Oe=Lt.percent,Ye=Lt.prefixCls,ft=Lt.strokeColor,Bt=Lt.strokeLinecap,Ut=Lt.strokeWidth,cn=Lt.style,Sn=Lt.trailColor,Cn=Lt.trailWidth,sn=Lt.transition,yn=(0,Pt.Z)(Lt,Le);delete yn.gapPosition;var gn=Array.isArray(Oe)?Oe:[Oe],$n=Array.isArray(ft)?ft:[ft],bn=ke(),vn=Ut/2,Jt=100-Ut/2,Pn="M ".concat(Bt==="round"?vn:0,",").concat(vn,` L `).concat(Bt==="round"?Jt:100,",").concat(vn),mn="0 0 100 ".concat(Ut),kn=0;return z.createElement("svg",(0,Je.Z)({className:Ze()("".concat(Ye,"-line"),jt),viewBox:mn,preserveAspectRatio:"none",style:cn},yn),z.createElement("path",{className:"".concat(Ye,"-line-trail"),d:Pn,strokeLinecap:Bt,stroke:Sn,strokeWidth:Cn||Ut,fillOpacity:"0"}),gn.map(function(jn,Zn){var An=1;switch(Bt){case"round":An=1-Ut/100;break;case"square":An=1-Ut/2/100;break;default:An=1;break}var Yn={strokeDasharray:"".concat(jn*An,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Nn=$n[Zn]||$n[$n.length-1];return kn+=jn,z.createElement("path",{key:Zn,className:"".concat(Ye,"-line-path"),d:Pn,strokeLinecap:Bt,stroke:Nn,strokeWidth:Ut,fillOpacity:"0",ref:function(qn){bn[Zn]=qn},style:Yn})}))},xt=Ae,Ot=ie(43749),Rt=ie(72190),wt=ie(47273),mt=0,gt=(0,wt.Z)();function Qe(){var De;return gt?(De=mt,mt+=1):De="TEST_OR_SSR",De}var kt=function(De){var it=z.useState(),Lt=(0,Rt.Z)(it,2),jt=Lt[0],Oe=Lt[1];return z.useEffect(function(){Oe("rc_progress_".concat(Qe()))},[]),De||jt},st=function(it){var Lt=it.bg,jt=it.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:Lt}},jt)};function tt(De,it){return Object.keys(De).map(function(Lt){var jt=parseFloat(Lt),Oe="".concat(Math.floor(jt*it),"%");return"".concat(De[Lt]," ").concat(Oe)})}var St=z.forwardRef(function(De,it){var Lt=De.prefixCls,jt=De.color,Oe=De.gradientId,Ye=De.radius,ft=De.style,Bt=De.ptg,Ut=De.strokeLinecap,cn=De.strokeWidth,Sn=De.size,Cn=De.gapDegree,sn=jt&&(0,Ot.Z)(jt)==="object",yn=sn?"#FFF":void 0,gn=Sn/2,$n=z.createElement("circle",{className:"".concat(Lt,"-circle-path"),r:Ye,cx:gn,cy:gn,stroke:yn,strokeLinecap:Ut,strokeWidth:cn,opacity:Bt===0?0:1,style:ft,ref:it});if(!sn)return $n;var bn="".concat(Oe,"-conic"),vn=Cn?"".concat(180+Cn/2,"deg"):"0deg",Jt=tt(jt,(360-Cn)/360),Pn=tt(jt,1),mn="conic-gradient(from ".concat(vn,", ").concat(Jt.join(", "),")"),kn="linear-gradient(to ".concat(Cn?"bottom":"top",", ").concat(Pn.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:bn},$n),z.createElement("foreignObject",{x:0,y:0,width:Sn,height:Sn,mask:"url(#".concat(bn,")")},z.createElement(st,{bg:kn},z.createElement(st,{bg:mn}))))}),We=St,yt=100,ut=function(it,Lt,jt,Oe,Ye,ft,Bt,Ut,cn,Sn){var Cn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,sn=jt/100*360*((360-ft)/360),yn=ft===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],gn=(100-Oe)/100*Lt;cn==="round"&&Oe!==100&&(gn+=Sn/2,gn>=Lt&&(gn=Lt-.01));var $n=yt/2;return{stroke:typeof Ut=="string"?Ut:void 0,strokeDasharray:"".concat(Lt,"px ").concat(it),strokeDashoffset:gn+Cn,transform:"rotate(".concat(Ye+sn+yn,"deg)"),transformOrigin:"".concat($n,"px ").concat($n,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Tt(De){var it=De!=null?De:[];return Array.isArray(it)?it:[it]}var Be=function(it){var Lt=(0,Se.Z)((0,Se.Z)({},rt),it),jt=Lt.id,Oe=Lt.prefixCls,Ye=Lt.steps,ft=Lt.strokeWidth,Bt=Lt.trailWidth,Ut=Lt.gapDegree,cn=Ut===void 0?0:Ut,Sn=Lt.gapPosition,Cn=Lt.trailColor,sn=Lt.strokeLinecap,yn=Lt.style,gn=Lt.className,$n=Lt.strokeColor,bn=Lt.percent,vn=(0,Pt.Z)(Lt,pe),Jt=yt/2,Pn=kt(jt),mn="".concat(Pn,"-gradient"),kn=Jt-ft/2,jn=Math.PI*2*kn,Zn=cn>0?90+cn/2:-90,An=jn*((360-cn)/360),Yn=(0,Ot.Z)(Ye)==="object"?Ye:{count:Ye,gap:2},Nn=Yn.count,ar=Yn.gap,qn=Tt(bn),Ft=Tt($n),rn=Ft.find(function(Ee){return Ee&&(0,Ot.Z)(Ee)==="object"}),zn=rn&&(0,Ot.Z)(rn)==="object",nr=zn?"butt":sn,Fe=ut(jn,An,0,100,Zn,cn,Sn,Cn,nr,ft),ot=ke(),Ce=function(){var $e=0;return qn.map(function(ve,Xe){var qe=Ft[Xe]||Ft[Ft.length-1],ht=ut(jn,An,$e,ve,Zn,cn,Sn,qe,nr,ft);return $e+=ve,z.createElement(We,{key:Xe,color:qe,ptg:ve,radius:kn,prefixCls:Oe,gradientId:mn,style:ht,strokeLinecap:nr,strokeWidth:ft,gapDegree:cn,ref:function(ze){ot[Xe]=ze},size:yt})}).reverse()},Re=function(){var $e=Math.round(Nn*(qn[0]/100)),ve=100/Nn,Xe=0;return new Array(Nn).fill(null).map(function(qe,ht){var et=ht<=$e-1?Ft[0]:Cn,ze=et&&(0,Ot.Z)(et)==="object"?"url(#".concat(mn,")"):void 0,He=ut(jn,An,Xe,ve,Zn,cn,Sn,et,"butt",ft,ar);return Xe+=(An-He.strokeDashoffset+ar)*100/An,z.createElement("circle",{key:ht,className:"".concat(Oe,"-circle-path"),r:kn,cx:Jt,cy:Jt,stroke:ze,strokeWidth:ft,opacity:1,style:He,ref:function(en){ot[ht]=en}})})};return z.createElement("svg",(0,Je.Z)({className:Ze()("".concat(Oe,"-circle"),gn),viewBox:"0 0 ".concat(yt," ").concat(yt),style:yn,id:jt,role:"presentation"},vn),!Nn&&z.createElement("circle",{className:"".concat(Oe,"-circle-trail"),r:kn,cx:Jt,cy:Jt,stroke:Cn,strokeLinecap:nr,strokeWidth:Bt||ft,style:Fe}),Nn?Re():Ce())},Ge=Be,At={Line:xt,Circle:Ge},ye=ie(25399),se=ie(68361);function Te(De){return!De||De<0?0:De>100?100:De}function Ct(De){let{success:it,successPercent:Lt}=De,jt=Lt;return it&&"progress"in it&&(jt=it.progress),it&&"percent"in it&&(jt=it.percent),jt}const Et=De=>{let{percent:it,success:Lt,successPercent:jt}=De;const Oe=Te(Ct({success:Lt,successPercent:jt}));return[Oe,Te(Te(it)-Oe)]},Ie=De=>{let{success:it={},strokeColor:Lt}=De;const{strokeColor:jt}=it;return[jt||se.presetPrimaryColors.green,Lt||null]},_e=(De,it,Lt)=>{var jt,Oe,Ye,ft;let Bt=-1,Ut=-1;if(it==="step"){const cn=Lt.steps,Sn=Lt.strokeWidth;typeof De=="string"||typeof De=="undefined"?(Bt=De==="small"?2:14,Ut=Sn!=null?Sn:8):typeof De=="number"?[Bt,Ut]=[De,De]:[Bt=14,Ut=8]=Array.isArray(De)?De:[De.width,De.height],Bt*=cn}else if(it==="line"){const cn=Lt==null?void 0:Lt.strokeWidth;typeof De=="string"||typeof De=="undefined"?Ut=cn||(De==="small"?6:8):typeof De=="number"?[Bt,Ut]=[De,De]:[Bt=-1,Ut=8]=Array.isArray(De)?De:[De.width,De.height]}else(it==="circle"||it==="dashboard")&&(typeof De=="string"||typeof De=="undefined"?[Bt,Ut]=De==="small"?[60,60]:[120,120]:typeof De=="number"?[Bt,Ut]=[De,De]:Array.isArray(De)&&(Bt=(Oe=(jt=De[0])!==null&&jt!==void 0?jt:De[1])!==null&&Oe!==void 0?Oe:120,Ut=(ft=(Ye=De[0])!==null&&Ye!==void 0?Ye:De[1])!==null&&ft!==void 0?ft:120));return[Bt,Ut]},ct=3,Yt=De=>ct/De*100;var $t=De=>{const{prefixCls:it,trailColor:Lt=null,strokeLinecap:jt="round",gapPosition:Oe,gapDegree:Ye,width:ft=120,type:Bt,children:Ut,success:cn,size:Sn=ft,steps:Cn}=De,[sn,yn]=_e(Sn,"circle");let{strokeWidth:gn}=De;gn===void 0&&(gn=Math.max(Yt(sn),6));const $n={width:sn,height:yn,fontSize:sn*.15+6},bn=z.useMemo(()=>{if(Ye||Ye===0)return Ye;if(Bt==="dashboard")return 75},[Ye,Bt]),vn=Et(De),Jt=Oe||Bt==="dashboard"&&"bottom"||void 0,Pn=Object.prototype.toString.call(De.strokeColor)==="[object Object]",mn=Ie({success:cn,strokeColor:De.strokeColor}),kn=Ze()(`${it}-inner`,{[`${it}-circle-gradient`]:Pn}),jn=z.createElement(Ge,{steps:Cn,percent:Cn?vn[1]:vn,strokeWidth:gn,trailWidth:gn,strokeColor:Cn?mn[1]:mn,strokeLinecap:jt,trailColor:Lt,prefixCls:it,gapDegree:bn,gapPosition:Jt}),Zn=sn<=20,An=z.createElement("div",{className:kn,style:$n},jn,!Zn&&Ut);return Zn?z.createElement(ye.Z,{title:Ut},An):An},je=ie(36237),Gt=ie(63356),bt=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=De=>{const it=De?"100%":"-100%";return new je.Keyframes(`antProgress${De?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${it}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${it}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ue=De=>{const{componentCls:it,iconCls:Lt}=De;return{[it]:Object.assign(Object.assign({},(0,Gt.Wf)(De)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:De.fontSize},[`${it}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${it}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:De.remainingColor,borderRadius:De.lineBorderRadius},[`${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:De.defaultColor}},[`${it}-success-bg, ${it}-bg`]:{position:"relative",background:De.defaultColor,borderRadius:De.lineBorderRadius,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOutCirc}`},[`${it}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${it}-text`]:{width:"max-content",marginInlineStart:0,marginTop:De.marginXXS}},[`${it}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${it}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${it}-text-inner`]:{color:De.colorWhite,[`&${it}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${it}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:De.colorSuccess},[`${it}-text`]:{display:"inline-block",marginInlineStart:De.marginXS,color:De.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Lt]:{fontSize:De.fontSize},[`&${it}-text-outer`]:{width:"max-content"},[`&${it}-text-outer${it}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:De.marginXS}},[`${it}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,je.unit)(De.paddingXXS)}`,[`&${it}-text-start`]:{justifyContent:"start"},[`&${it}-text-end`]:{justifyContent:"end"}},[`&${it}-status-active`]:{[`${it}-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:'""'}},[`&${it}-rtl${it}-status-active`]:{[`${it}-bg::before`]:{animationName:oe(!0)}},[`&${it}-status-exception`]:{[`${it}-bg`]:{backgroundColor:De.colorError},[`${it}-text`]:{color:De.colorError}},[`&${it}-status-exception ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:De.colorError}},[`&${it}-status-success`]:{[`${it}-bg`]:{backgroundColor:De.colorSuccess},[`${it}-text`]:{color:De.colorSuccess}},[`&${it}-status-success ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:De.colorSuccess}}})}},ne=De=>{const{componentCls:it,iconCls:Lt}=De;return{[it]:{[`${it}-circle-trail`]:{stroke:De.remainingColor},[`&${it}-circle ${it}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${it}-circle ${it}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:De.circleTextColor,fontSize:De.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Lt]:{fontSize:De.circleIconFontSize}},[`${it}-circle&-status-exception`]:{[`${it}-text`]:{color:De.colorError}},[`${it}-circle&-status-success`]:{[`${it}-text`]:{color:De.colorSuccess}}},[`${it}-inline-circle`]:{lineHeight:1,[`${it}-inner`]:{verticalAlign:"bottom"}}}},he=De=>{const{componentCls:it}=De;return{[it]:{[`${it}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:De.progressStepMinWidth,marginInlineEnd:De.progressStepMarginInlineEnd,backgroundColor:De.remainingColor,transition:`all ${De.motionDurationSlow}`,"&-active":{backgroundColor:De.defaultColor}}}}}},xe=De=>{const{componentCls:it,iconCls:Lt}=De;return{[it]:{[`${it}-small&-line, ${it}-small&-line ${it}-text ${Lt}`]:{fontSize:De.fontSizeSM}}}},vt=De=>({circleTextColor:De.colorText,defaultColor:De.colorInfo,remainingColor:De.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${De.fontSize/De.fontSizeSM}em`});var Pe=(0,bt.I$)("Progress",De=>{const it=De.calc(De.marginXXS).div(2).equal(),Lt=(0,ae.mergeToken)(De,{progressStepMarginInlineEnd:it,progressStepMinWidth:it,progressActiveMotionDuration:"2.4s"});return[ue(Lt),ne(Lt),he(Lt),xe(Lt)]},vt),Ve=function(De,it){var Lt={};for(var jt in De)Object.prototype.hasOwnProperty.call(De,jt)&&it.indexOf(jt)<0&&(Lt[jt]=De[jt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,jt=Object.getOwnPropertySymbols(De);Oe{let it=[];return Object.keys(De).forEach(Lt=>{const jt=parseFloat(Lt.replace(/%/g,""));Number.isNaN(jt)||it.push({key:jt,value:De[Lt]})}),it=it.sort((Lt,jt)=>Lt.key-jt.key),it.map(Lt=>{let{key:jt,value:Oe}=Lt;return`${Oe} ${jt}%`}).join(", ")},Mt=(De,it)=>{const{from:Lt=se.presetPrimaryColors.blue,to:jt=se.presetPrimaryColors.blue,direction:Oe=it==="rtl"?"to left":"to right"}=De,Ye=Ve(De,["from","to","direction"]);if(Object.keys(Ye).length!==0){const Bt=dt(Ye),Ut=`linear-gradient(${Oe}, ${Bt})`;return{background:Ut,[te]:Ut}}const ft=`linear-gradient(${Oe}, ${Lt}, ${jt})`;return{background:ft,[te]:ft}};var Kt=De=>{const{prefixCls:it,direction:Lt,percent:jt,size:Oe,strokeWidth:Ye,strokeColor:ft,strokeLinecap:Bt="round",children:Ut,trailColor:cn=null,percentPosition:Sn,success:Cn}=De,{align:sn,type:yn}=Sn,gn=ft&&typeof ft!="string"?Mt(ft,Lt):{[te]:ft,background:ft},$n=Bt==="square"||Bt==="butt"?0:void 0,bn=Oe!=null?Oe:[-1,Ye||(Oe==="small"?6:8)],[vn,Jt]=_e(bn,"line",{strokeWidth:Ye}),Pn={backgroundColor:cn||void 0,borderRadius:$n},mn=Object.assign(Object.assign({width:`${Te(jt)}%`,height:Jt,borderRadius:$n},gn),{[ee]:Te(jt)/100}),kn=Ct(De),jn={width:`${Te(kn)}%`,height:Jt,borderRadius:$n,backgroundColor:Cn==null?void 0:Cn.strokeColor},Zn={width:vn<0?"100%":vn},An=z.createElement("div",{className:`${it}-inner`,style:Pn},z.createElement("div",{className:Ze()(`${it}-bg`,`${it}-bg-${yn}`),style:mn},yn==="inner"&&Ut),kn!==void 0&&z.createElement("div",{className:`${it}-success-bg`,style:jn})),Yn=yn==="outer"&&sn==="start",Nn=yn==="outer"&&sn==="end";return yn==="outer"&&sn==="center"?z.createElement("div",{className:`${it}-layout-bottom`},An,Ut):z.createElement("div",{className:`${it}-outer`,style:Zn},Yn&&Ut,An,Nn&&Ut)},zt=De=>{const{size:it,steps:Lt,rounding:jt=Math.round,percent:Oe=0,strokeWidth:Ye=8,strokeColor:ft,trailColor:Bt=null,prefixCls:Ut,children:cn}=De,Sn=jt(Lt*(Oe/100)),Cn=it==="small"?2:14,sn=it!=null?it:[Cn,Ye],[yn,gn]=_e(sn,"step",{steps:Lt,strokeWidth:Ye}),$n=yn/Lt,bn=Array.from({length:Lt});for(let vn=0;vn{const{prefixCls:Lt,className:jt,rootClassName:Oe,steps:Ye,strokeColor:ft,percent:Bt=0,size:Ut="default",showInfo:cn=!0,type:Sn="line",status:Cn,format:sn,style:yn,percentPosition:gn={}}=De,$n=ln(De,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:bn="end",type:vn="outer"}=gn,Jt=Array.isArray(ft)?ft[0]:ft,Pn=typeof ft=="string"||Array.isArray(ft)?ft:void 0,mn=z.useMemo(()=>{if(Jt){const Ce=typeof Jt=="string"?Jt:Object.values(Jt)[0];return new at.FastColor(Ce).isLight()}return!1},[ft]),kn=z.useMemo(()=>{var Ce,Re;const Ee=Ct(De);return parseInt(Ee!==void 0?(Ce=Ee!=null?Ee:0)===null||Ce===void 0?void 0:Ce.toString():(Re=Bt!=null?Bt:0)===null||Re===void 0?void 0:Re.toString(),10)},[Bt,De.success,De.successPercent]),jn=z.useMemo(()=>!on.includes(Cn)&&kn>=100?"success":Cn||"normal",[Cn,kn]),{getPrefixCls:Zn,direction:An,progress:Yn}=z.useContext(fe.E_),Nn=Zn("progress",Lt),[ar,qn,Ft]=Pe(Nn),rn=Sn==="line",zn=rn&&!Ye,nr=z.useMemo(()=>{if(!cn)return null;const Ce=Ct(De);let Re;const Ee=sn||(ve=>`${ve}%`),$e=rn&&mn&&vn==="inner";return vn==="inner"||sn||jn!=="exception"&&jn!=="success"?Re=Ee(Te(Bt),Te(Ce)):jn==="exception"?Re=rn?z.createElement(be.Z,null):z.createElement(we.Z,null):jn==="success"&&(Re=rn?z.createElement(ge.Z,null):z.createElement(Ke.Z,null)),z.createElement("span",{className:Ze()(`${Nn}-text`,{[`${Nn}-text-bright`]:$e,[`${Nn}-text-${bn}`]:zn,[`${Nn}-text-${vn}`]:zn}),title:typeof Re=="string"?Re:void 0},Re)},[cn,Bt,kn,jn,Sn,Nn,sn]);let Fe;Sn==="line"?Fe=Ye?z.createElement(zt,Object.assign({},De,{strokeColor:Pn,prefixCls:Nn,steps:typeof Ye=="object"?Ye.count:Ye}),nr):z.createElement(Kt,Object.assign({},De,{strokeColor:Jt,prefixCls:Nn,direction:An,percentPosition:{align:bn,type:vn}}),nr):(Sn==="circle"||Sn==="dashboard")&&(Fe=z.createElement($t,Object.assign({},De,{strokeColor:Jt,prefixCls:Nn,progressStatus:jn}),nr));const ot=Ze()(Nn,`${Nn}-status-${jn}`,{[`${Nn}-${Sn==="dashboard"&&"circle"||Sn}`]:Sn!=="line",[`${Nn}-inline-circle`]:Sn==="circle"&&_e(Ut,"circle")[0]<=20,[`${Nn}-line`]:zn,[`${Nn}-line-align-${bn}`]:zn,[`${Nn}-line-position-${vn}`]:zn,[`${Nn}-steps`]:Ye,[`${Nn}-show-info`]:cn,[`${Nn}-${Ut}`]:typeof Ut=="string",[`${Nn}-rtl`]:An==="rtl"},Yn==null?void 0:Yn.className,jt,Oe,qn,Ft);return ar(z.createElement("div",Object.assign({ref:it,style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),yn),className:ot,role:"progressbar","aria-valuenow":kn,"aria-valuemin":0,"aria-valuemax":100},(0,Me.Z)($n,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Fe))}),Wt=Qt},82326:function(an,Zt,ie){"use strict";var z=ie(59301),at=ie(92310),ge=ie.n(at),Ke=ie(37463),be=ie(2738),we=ie(75030),Ne=ie(86641),Ze=ie(45915),Me=ie(82855),fe=ie(48755),Je=ie(38406),Se=ie(2171),Pt=ie(83397),rt=ie(31756),ke=ie(56553),Le=ie(24971),Ae=ie(70045),xt=ie(57700),Ot=ie(1722),Rt=ie(90376),wt=ie(68525),mt=ie(90005),gt=function(St,We){var yt={};for(var ut in St)Object.prototype.hasOwnProperty.call(St,ut)&&We.indexOf(ut)<0&&(yt[ut]=St[ut]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ut=Object.getOwnPropertySymbols(St);pe{var yt;const{prefixCls:ut,bordered:pe,className:Tt,rootClassName:Be,getPopupContainer:Ge,popupClassName:At,dropdownClassName:ye,listHeight:se=256,placement:Te,listItemHeight:Ct,size:Et,disabled:Ie,notFoundContent:_e,status:ct,builtinPlacements:Yt,dropdownMatchSelectWidth:Dt,popupMatchSelectWidth:$t,direction:je,style:Gt,allowClear:bt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:ue,prefix:ne}=St,he=gt(St,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:xe,getPrefixCls:vt,renderEmpty:Pe,direction:Ve,virtual:dt,popupMatchSelectWidth:Mt,popupOverflow:pt}=z.useContext(fe.E_),Kt=(0,fe.dj)("select"),[,Vt]=(0,xt.ZP)(),zt=Ct!=null?Ct:Vt==null?void 0:Vt.controlHeight,ln=vt("select",ut),_t=vt(),on=je!=null?je:Ve,{compactSize:It,compactItemClassnames:Qt}=(0,Ae.ri)(ln,on),[Wt,De]=(0,Le.Z)("select",ae,pe),it=(0,Pt.Z)(ln),[Lt,jt,Oe]=(0,Rt.Z)(ln,it),Ye=z.useMemo(()=>{const{mode:qn}=St;if(qn!=="combobox")return qn===Qe?"combobox":qn},[St.mode]),ft=Ye==="multiple"||Ye==="tags",Bt=(0,mt.Z)(St.suffixIcon,St.showArrow),Ut=(yt=$t!=null?$t:Dt)!==null&&yt!==void 0?yt:Mt,{status:cn,hasFeedback:Sn,isFormItemInput:Cn,feedbackIcon:sn}=z.useContext(ke.aM),yn=(0,Me.F)(cn,ct);let gn;_e!==void 0?gn=_e:Ye==="combobox"?gn=null:gn=(Pe==null?void 0:Pe("Select"))||z.createElement(Je.Z,{componentName:"Select"});const{suffixIcon:$n,itemIcon:bn,removeIcon:vn,clearIcon:Jt}=(0,wt.Z)(Object.assign(Object.assign({},he),{multiple:ft,hasFeedback:Sn,feedbackIcon:sn,showSuffixIcon:Bt,prefixCls:ln,componentName:"Select"})),Pn=bt===!0?{clearIcon:Jt}:bt,mn=(0,be.Z)(he,["suffixIcon","itemIcon"]),kn=ge()(At||ye,{[`${ln}-dropdown-${on}`]:on==="rtl"},Be,Oe,it,jt),jn=(0,rt.Z)(qn=>{var Ft;return(Ft=Et!=null?Et:It)!==null&&Ft!==void 0?Ft:qn}),Zn=z.useContext(Se.Z),An=Ie!=null?Ie:Zn,Yn=ge()({[`${ln}-lg`]:jn==="large",[`${ln}-sm`]:jn==="small",[`${ln}-rtl`]:on==="rtl",[`${ln}-${Wt}`]:De,[`${ln}-in-form-item`]:Cn},(0,Me.Z)(ln,yn,Sn),Qt,Kt.className,Tt,Be,Oe,it,jt),Nn=z.useMemo(()=>Te!==void 0?Te:on==="rtl"?"bottomRight":"bottomLeft",[Te,on]),[ar]=(0,we.Cn)("SelectLike",te==null?void 0:te.zIndex);return Lt(z.createElement(Ke.ZP,Object.assign({ref:We,virtual:dt,showSearch:Kt.showSearch},mn,{style:Object.assign(Object.assign({},Kt.style),Gt),dropdownMatchSelectWidth:Ut,transitionName:(0,Ne.m)(_t,"slide-up",ee),builtinPlacements:(0,Ot.Z)(Yt,pt),listHeight:se,listItemHeight:zt,mode:Ye,prefixCls:ln,placement:Nn,direction:on,prefix:ne,suffixIcon:$n,menuItemSelectedIcon:bn,removeIcon:vn,allowClear:Pn,notFoundContent:gn,className:Yn,getPopupContainer:Ge||xe,dropdownClassName:kn,disabled:An,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:ar}),maxCount:ft?ue:void 0,tagRender:ft?oe:void 0})))},st=z.forwardRef(kt),tt=(0,Ze.Z)(st,"dropdownAlign");st.SECRET_COMBOBOX_MODE_DO_NOT_USE=Qe,st.Option=Ke.Wx,st.OptGroup=Ke.Xo,st._InternalPanelDoNotUseOrYouWillBeFired=tt,Zt.default=st},1722:function(an,Zt){"use strict";const ie=at=>{const Ke={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:at==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Ke),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ke),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ke),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ke),{points:["br","tr"],offset:[0,-4]})}};function z(at,ge){return at||ie(ge)}Zt.Z=z},90376:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return ut}});var z=ie(63356),at=ie(56119),ge=ie(16931),Ke=ie(51636),be=ie(46e3),we=ie(93873);const Ne=pe=>{const{optionHeight:Tt,optionFontSize:Be,optionLineHeight:Ge,optionPadding:At}=pe;return{position:"relative",display:"block",minHeight:Tt,padding:At,color:pe.colorText,fontWeight:"normal",fontSize:Be,lineHeight:Ge,boxSizing:"border-box"}};var Me=pe=>{const{antCls:Tt,componentCls:Be}=pe,Ge=`${Be}-item`,At=`&${Tt}-slide-up-enter${Tt}-slide-up-enter-active`,ye=`&${Tt}-slide-up-appear${Tt}-slide-up-appear-active`,se=`&${Tt}-slide-up-leave${Tt}-slide-up-leave-active`,Te=`${Be}-dropdown-placement-`,Ct=`${Ge}-option-selected`;return[{[`${Be}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"absolute",top:-9999,zIndex:pe.zIndexPopup,boxSizing:"border-box",padding:pe.paddingXXS,overflow:"hidden",fontSize:pe.fontSize,fontVariant:"initial",backgroundColor:pe.colorBgElevated,borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,[` ${At}${Te}bottomLeft, ${ye}${Te}bottomLeft `]:{animationName:be.fJ},[` ${At}${Te}topLeft, ${ye}${Te}topLeft, ${At}${Te}topRight, ${ye}${Te}topRight `]:{animationName:be.Qt},[`${se}${Te}bottomLeft`]:{animationName:be.Uw},[` ${se}${Te}topLeft, ${se}${Te}topRight `]:{animationName:be.ly},"&-hidden":{display:"none"},[Ge]:Object.assign(Object.assign({},Ne(pe)),{cursor:"pointer",transition:`background ${pe.motionDurationSlow} ease`,borderRadius:pe.borderRadiusSM,"&-group":{color:pe.colorTextDescription,fontSize:pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ge}-option-disabled)`]:{backgroundColor:pe.optionActiveBg},[`&-selected:not(${Ge}-option-disabled)`]:{color:pe.optionSelectedColor,fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg,[`${Ge}-option-state`]:{color:pe.colorPrimary}},"&-disabled":{[`&${Ge}-option-selected`]:{backgroundColor:pe.colorBgContainerDisabled},color:pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:pe.calc(pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ne(pe)),{color:pe.colorTextDisabled})}),[`${Ct}:has(+ ${Ct})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ct}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,be.oN)(pe,"slide-up"),(0,be.oN)(pe,"slide-down"),(0,we.Fm)(pe,"move-up"),(0,we.Fm)(pe,"move-down")]},fe=ie(26743),Je=ie(36237);function Se(pe,Tt){const{componentCls:Be,inputPaddingHorizontalBase:Ge,borderRadius:At}=pe,ye=pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),se=Tt?`${Be}-${Tt}`:"";return{[`${Be}-single${se}`]:{fontSize:pe.fontSize,height:pe.controlHeight,[`${Be}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(pe,!0)),{display:"flex",borderRadius:At,flex:"1 1 auto",[`${Be}-selection-wrap:after`]:{lineHeight:(0,Je.unit)(ye)},[`${Be}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Be}-selection-item, ${Be}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Je.unit)(ye),transition:`all ${pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Be}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Be}-selection-item:empty:after`,`${Be}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Be}-show-arrow ${Be}-selection-item, &${Be}-show-arrow ${Be}-selection-search, &${Be}-show-arrow ${Be}-selection-placeholder `]:{paddingInlineEnd:pe.showArrowPaddingInlineEnd},[`&${Be}-open ${Be}-selection-item`]:{color:pe.colorTextPlaceholder},[`&:not(${Be}-customize-input)`]:{[`${Be}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Je.unit)(Ge)}`,[`${Be}-selection-search-input`]:{height:ye,fontSize:pe.fontSize},"&:after":{lineHeight:(0,Je.unit)(ye)}}},[`&${Be}-customize-input`]:{[`${Be}-selector`]:{"&:after":{display:"none"},[`${Be}-selection-search`]:{position:"static",width:"100%"},[`${Be}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Je.unit)(Ge)}`,"&:after":{display:"none"}}}}}}}function Pt(pe){const{componentCls:Tt}=pe,Be=pe.calc(pe.controlPaddingHorizontalSM).sub(pe.lineWidth).equal();return[Se(pe),Se((0,Ke.mergeToken)(pe,{controlHeight:pe.controlHeightSM,borderRadius:pe.borderRadiusSM}),"sm"),{[`${Tt}-single${Tt}-sm`]:{[`&:not(${Tt}-customize-input)`]:{[`${Tt}-selector`]:{padding:`0 ${(0,Je.unit)(Be)}`},[`&${Tt}-show-arrow ${Tt}-selection-search`]:{insetInlineEnd:pe.calc(Be).add(pe.calc(pe.fontSize).mul(1.5)).equal()},[` &${Tt}-show-arrow ${Tt}-selection-item, &${Tt}-show-arrow ${Tt}-selection-placeholder `]:{paddingInlineEnd:pe.calc(pe.fontSize).mul(1.5).equal()}}}},Se((0,Ke.mergeToken)(pe,{controlHeight:pe.singleItemHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG}),"lg")]}const rt=pe=>{const{fontSize:Tt,lineHeight:Be,lineWidth:Ge,controlHeight:At,controlHeightSM:ye,controlHeightLG:se,paddingXXS:Te,controlPaddingHorizontal:Ct,zIndexPopupBase:Et,colorText:Ie,fontWeightStrong:_e,controlItemBgActive:ct,controlItemBgHover:Yt,colorBgContainer:Dt,colorFillSecondary:$t,colorBgContainerDisabled:je,colorTextDisabled:Gt,colorPrimaryHover:bt,colorPrimary:ae,controlOutline:te}=pe,ee=Te*2,oe=Ge*2,ue=Math.min(At-ee,At-oe),ne=Math.min(ye-ee,ye-oe),he=Math.min(se-ee,se-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Te/2),zIndexPopup:Et+50,optionSelectedColor:Ie,optionSelectedFontWeight:_e,optionSelectedBg:ct,optionActiveBg:Yt,optionPadding:`${(At-Tt*Be)/2}px ${Ct}px`,optionFontSize:Tt,optionLineHeight:Be,optionHeight:At,selectorBg:Dt,clearBg:Dt,singleItemHeightLG:se,multipleItemBg:$t,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:ne,multipleItemHeightLG:he,multipleSelectorBgDisabled:je,multipleItemColorDisabled:Gt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(pe.fontSize*1.25),hoverBorderColor:bt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Te}},ke=(pe,Tt)=>{const{componentCls:Be,antCls:Ge,controlOutlineWidth:At}=pe;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${Tt.borderColor}`,background:pe.selectorBg},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:Tt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:Tt.activeBorderColor,boxShadow:`0 0 0 ${(0,Je.unit)(At)} ${Tt.activeOutlineColor}`,outline:0},[`${Be}-prefix`]:{color:Tt.color}}}},Le=(pe,Tt)=>({[`&${pe.componentCls}-status-${Tt.status}`]:Object.assign({},ke(pe,Tt))}),Ae=pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ke(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),Le(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),Le(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})}),xt=(pe,Tt)=>{const{componentCls:Be,antCls:Ge}=pe;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{background:Tt.bg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} transparent`,color:Tt.color},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{background:Tt.hoverBg},[`${Be}-focused& ${Be}-selector`]:{background:pe.selectorBg,borderColor:Tt.activeBorderColor,outline:0}}}},Ot=(pe,Tt)=>({[`&${pe.componentCls}-status-${Tt.status}`]:Object.assign({},xt(pe,Tt))}),Rt=pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},xt(pe,{bg:pe.colorFillTertiary,hoverBg:pe.colorFillSecondary,activeBorderColor:pe.activeBorderColor,color:pe.colorText})),Ot(pe,{status:"error",bg:pe.colorErrorBg,hoverBg:pe.colorErrorBgHover,activeBorderColor:pe.colorError,color:pe.colorError})),Ot(pe,{status:"warning",bg:pe.colorWarningBg,hoverBg:pe.colorWarningBgHover,activeBorderColor:pe.colorWarning,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{borderColor:pe.colorBorder,background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.colorBgContainer,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorSplit}`}})}),wt=pe=>({"&-borderless":{[`${pe.componentCls}-selector`]:{background:"transparent",border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} transparent`},[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`},[`&${pe.componentCls}-status-error`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorError}},[`&${pe.componentCls}-status-warning`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorWarning}}}}),mt=(pe,Tt)=>{const{componentCls:Be,antCls:Ge}=pe;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{borderWidth:`0 0 ${(0,Je.unit)(pe.lineWidth)} 0`,borderStyle:`none none ${pe.lineType} none`,borderColor:Tt.borderColor,background:pe.selectorBg,borderRadius:0},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Ge}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:Tt.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:Tt.activeBorderColor,outline:0},[`${Be}-prefix`]:{color:Tt.color}}}},gt=(pe,Tt)=>({[`&${pe.componentCls}-status-${Tt.status}`]:Object.assign({},mt(pe,Tt))}),Qe=pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},mt(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),gt(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),gt(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Je.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})});var st=pe=>({[pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ae(pe)),Rt(pe)),wt(pe)),Qe(pe))});const tt=pe=>{const{componentCls:Tt}=pe;return{position:"relative",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Tt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Tt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},St=pe=>{const{componentCls:Tt}=pe;return{[`${Tt}-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"}}}},We=pe=>{const{antCls:Tt,componentCls:Be,inputPaddingHorizontalBase:Ge,iconCls:At}=pe;return{[Be]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Be}-customize-input) ${Be}-selector`]:Object.assign(Object.assign({},tt(pe)),St(pe)),[`${Be}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${Tt}-typography`]:{display:"inline"}}),[`${Be}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Be}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${pe.motionDurationSlow} ease`,[At]:{verticalAlign:"top",transition:`transform ${pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Be}-suffix)`]:{pointerEvents:"auto"}},[`${Be}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Be}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Be}-prefix`]:{flex:"none",marginInlineEnd:pe.selectAffixPadding},[`${Be}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,zIndex:1,display:"inline-block",width:pe.fontSizeIcon,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${pe.motionDurationMid} ease, opacity ${pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:pe.colorTextTertiary}},[`&:hover ${Be}-clear`]:{opacity:1,background:pe.colorBgBase,borderRadius:"50%"}}),[`${Be}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Be}-has-feedback`]:{[`${Be}-clear`]:{insetInlineEnd:pe.calc(Ge).add(pe.fontSize).add(pe.paddingXS).equal()}}}}}},yt=pe=>{const{componentCls:Tt}=pe;return[{[Tt]:{[`&${Tt}-in-form-item`]:{width:"100%"}}},We(pe),Pt(pe),(0,fe.ZP)(pe),Me(pe),{[`${Tt}-rtl`]:{direction:"rtl"}},(0,at.c)(pe,{borderElCls:`${Tt}-selector`,focusElCls:`${Tt}-focused`})]};var ut=(0,ge.I$)("Select",(pe,Tt)=>{let{rootPrefixCls:Be}=Tt;const Ge=(0,Ke.mergeToken)(pe,{rootPrefixCls:Be,inputPaddingHorizontalBase:pe.calc(pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:pe.multipleItemHeight,selectHeight:pe.controlHeight});return[yt(Ge),st(Ge)]},rt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(an,Zt,ie){"use strict";ie.d(Zt,{_z:function(){return we},gp:function(){return Ke}});var z=ie(36237),at=ie(63356),ge=ie(51636);const Ke=fe=>{const{multipleSelectItemHeight:Je,paddingXXS:Se,lineWidth:Pt,INTERNAL_FIXED_ITEM_MARGIN:rt}=fe,ke=fe.max(fe.calc(Se).sub(Pt).equal(),0),Le=fe.max(fe.calc(ke).sub(rt).equal(),0);return{basePadding:ke,containerPadding:Le,itemHeight:(0,z.unit)(Je),itemLineHeight:(0,z.unit)(fe.calc(Je).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},be=fe=>{const{multipleSelectItemHeight:Je,selectHeight:Se,lineWidth:Pt}=fe;return fe.calc(Se).sub(Je).div(2).sub(Pt).equal()},we=fe=>{const{componentCls:Je,iconCls:Se,borderRadiusSM:Pt,motionDurationSlow:rt,paddingXS:ke,multipleItemColorDisabled:Le,multipleItemBorderColorDisabled:Ae,colorIcon:xt,colorIconHover:Ot,INTERNAL_FIXED_ITEM_MARGIN:Rt}=fe;return{[`${Je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Rt,borderRadius:Pt,cursor:"default",transition:`font-size ${rt}, line-height ${rt}, height ${rt}`,marginInlineEnd:fe.calc(Rt).mul(2).equal(),paddingInlineStart:ke,paddingInlineEnd:fe.calc(ke).div(2).equal(),[`${Je}-disabled&`]:{color:Le,borderColor:Ae,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(ke).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,at.Ro)()),{display:"inline-flex",alignItems:"center",color:xt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Se}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ot}})}}}},Ne=(fe,Je)=>{const{componentCls:Se,INTERNAL_FIXED_ITEM_MARGIN:Pt}=fe,rt=`${Se}-selection-overflow`,ke=fe.multipleSelectItemHeight,Le=be(fe),Ae=Je?`${Se}-${Je}`:"",xt=Ke(fe);return{[`${Se}-multiple${Ae}`]:Object.assign(Object.assign({},we(fe)),{[`${Se}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:xt.basePadding,paddingBlock:xt.containerPadding,borderRadius:fe.borderRadius,[`${Se}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Pt)} 0`,lineHeight:(0,z.unit)(ke),visibility:"hidden",content:'"\\a0"'}},[`${Se}-selection-item`]:{height:xt.itemHeight,lineHeight:(0,z.unit)(xt.itemLineHeight)},[`${Se}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(ke),marginBlock:Pt}},[`${Se}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(xt.basePadding).equal()},[`${rt}-item + ${rt}-item, ${Se}-prefix + ${Se}-selection-wrap `]:{[`${Se}-selection-search`]:{marginInlineStart:0},[`${Se}-selection-placeholder`]:{insetInlineStart:0}},[`${rt}-item-suffix`]:{minHeight:xt.itemHeight,marginBlock:Pt},[`${Se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Le).equal(),"\n &-input,\n &-mirror\n ":{height:ke,fontFamily:fe.fontFamily,lineHeight:(0,z.unit)(ke),transition:`all ${fe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Se}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(xt.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Ze(fe,Je){const{componentCls:Se}=fe,Pt=Je?`${Se}-${Je}`:"",rt={[`${Se}-multiple${Pt}`]:{fontSize:fe.fontSize,[`${Se}-selector`]:{[`${Se}-show-search&`]:{cursor:"text"}},[` &${Se}-show-arrow ${Se}-selector, &${Se}-allow-clear ${Se}-selector `]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Ne(fe,Je),rt]}const Me=fe=>{const{componentCls:Je}=fe,Se=(0,ge.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),Pt=(0,ge.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Ze(fe),Ze(Se,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${Je}-selection-search`]:{marginInlineStart:2}}},Ze(Pt,"lg")]};Zt.ZP=Me},68525:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});var z=ie(59301),at=ie(40001),ge=ie(19248),Ke=ie(99267),be=ie(84105),we=ie(58617),Ne=ie(47472);function Ze(Me){let{suffixIcon:fe,clearIcon:Je,menuItemSelectedIcon:Se,removeIcon:Pt,loading:rt,multiple:ke,hasFeedback:Le,prefixCls:Ae,showSuffixIcon:xt,feedbackIcon:Ot,showArrow:Rt,componentName:wt}=Me;const mt=Je!=null?Je:z.createElement(ge.Z,null),gt=tt=>fe===null&&!Le&&!Rt?null:z.createElement(z.Fragment,null,xt!==!1&&tt,Le&&Ot);let Qe=null;if(fe!==void 0)Qe=gt(fe);else if(rt)Qe=gt(z.createElement(we.Z,{spin:!0}));else{const tt=`${Ae}-suffix`;Qe=St=>{let{open:We,showSearch:yt}=St;return gt(We&&yt?z.createElement(Ne.Z,{className:tt}):z.createElement(be.Z,{className:tt}))}}let kt=null;Se!==void 0?kt=Se:ke?kt=z.createElement(at.Z,null):kt=null;let st=null;return Pt!==void 0?st=Pt:st=z.createElement(Ke.Z,null),{clearIcon:mt,suffixIcon:Qe,itemIcon:kt,removeIcon:st}}},90005:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return z}});function z(at,ge){return ge!==void 0?ge:at!==null}},58755:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Tt}});var z=ie(59301),at=ie(58617),ge=ie(92310),Ke=ie.n(ge),be=ie(60499),we=ie(18642),Ne=ie(72190),Ze=ie(42244),Me=ie(18929),fe=ie(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Se=z.forwardRef(function(Be,Ge){var At,ye=Be.prefixCls,se=ye===void 0?"rc-switch":ye,Te=Be.className,Ct=Be.checked,Et=Be.defaultChecked,Ie=Be.disabled,_e=Be.loadingIcon,ct=Be.checkedChildren,Yt=Be.unCheckedChildren,Dt=Be.onClick,$t=Be.onChange,je=Be.onKeyDown,Gt=(0,Ze.Z)(Be,Je),bt=(0,Me.Z)(!1,{value:Ct,defaultValue:Et}),ae=(0,Ne.Z)(bt,2),te=ae[0],ee=ae[1];function oe(xe,vt){var Pe=te;return Ie||(Pe=xe,ee(Pe),$t==null||$t(Pe,vt)),Pe}function ue(xe){xe.which===fe.Z.LEFT?oe(!1,xe):xe.which===fe.Z.RIGHT&&oe(!0,xe),je==null||je(xe)}function ne(xe){var vt=oe(!te,xe);Dt==null||Dt(vt,xe)}var he=Ke()(se,Te,(At={},(0,we.Z)(At,"".concat(se,"-checked"),te),(0,we.Z)(At,"".concat(se,"-disabled"),Ie),At));return z.createElement("button",(0,be.Z)({},Gt,{type:"button",role:"switch","aria-checked":te,disabled:Ie,className:he,ref:Ge,onKeyDown:ue,onClick:ne}),_e,z.createElement("span",{className:"".concat(se,"-inner")},z.createElement("span",{className:"".concat(se,"-inner-checked")},ct),z.createElement("span",{className:"".concat(se,"-inner-unchecked")},Yt)))});Se.displayName="Switch";var Pt=Se,rt=ie(12919),ke=ie(48755),Le=ie(2171),Ae=ie(31756),xt=ie(36237),Ot=ie(17835),Rt=ie(63356),wt=ie(16931),mt=ie(51636);const gt=Be=>{const{componentCls:Ge,trackHeightSM:At,trackPadding:ye,trackMinWidthSM:se,innerMinMarginSM:Te,innerMaxMarginSM:Ct,handleSizeSM:Et,calc:Ie}=Be,_e=`${Ge}-inner`,ct=(0,xt.unit)(Ie(Et).add(Ie(ye).mul(2)).equal()),Yt=(0,xt.unit)(Ie(Ct).mul(2).equal());return{[Ge]:{[`&${Ge}-small`]:{minWidth:se,height:At,lineHeight:(0,xt.unit)(At),[`${Ge}-inner`]:{paddingInlineStart:Ct,paddingInlineEnd:Te,[`${_e}-checked, ${_e}-unchecked`]:{minHeight:At},[`${_e}-checked`]:{marginInlineStart:`calc(-100% + ${ct} - ${Yt})`,marginInlineEnd:`calc(100% - ${ct} + ${Yt})`},[`${_e}-unchecked`]:{marginTop:Ie(At).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ge}-handle`]:{width:Et,height:Et},[`${Ge}-loading-icon`]:{top:Ie(Ie(Et).sub(Be.switchLoadingIconSize)).div(2).equal(),fontSize:Be.switchLoadingIconSize},[`&${Ge}-checked`]:{[`${Ge}-inner`]:{paddingInlineStart:Te,paddingInlineEnd:Ct,[`${_e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${_e}-unchecked`]:{marginInlineStart:`calc(100% - ${ct} + ${Yt})`,marginInlineEnd:`calc(-100% + ${ct} - ${Yt})`}},[`${Ge}-handle`]:{insetInlineStart:`calc(100% - ${(0,xt.unit)(Ie(Et).add(ye).equal())})`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${_e}`]:{[`${_e}-unchecked`]:{marginInlineStart:Ie(Be.marginXXS).div(2).equal(),marginInlineEnd:Ie(Be.marginXXS).mul(-1).div(2).equal()}},[`&${Ge}-checked ${_e}`]:{[`${_e}-checked`]:{marginInlineStart:Ie(Be.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ie(Be.marginXXS).div(2).equal()}}}}}}},Qe=Be=>{const{componentCls:Ge,handleSize:At,calc:ye}=Be;return{[Ge]:{[`${Ge}-loading-icon${Be.iconCls}`]:{position:"relative",top:ye(ye(At).sub(Be.fontSize)).div(2).equal(),color:Be.switchLoadingIconColor,verticalAlign:"top"},[`&${Ge}-checked ${Ge}-loading-icon`]:{color:Be.switchColor}}}},kt=Be=>{const{componentCls:Ge,trackPadding:At,handleBg:ye,handleShadow:se,handleSize:Te,calc:Ct}=Be,Et=`${Ge}-handle`;return{[Ge]:{[Et]:{position:"absolute",top:At,insetInlineStart:At,width:Te,height:Te,transition:`all ${Be.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ye,borderRadius:Ct(Te).div(2).equal(),boxShadow:se,transition:`all ${Be.switchDuration} ease-in-out`,content:'""'}},[`&${Ge}-checked ${Et}`]:{insetInlineStart:`calc(100% - ${(0,xt.unit)(Ct(Te).add(At).equal())})`},[`&:not(${Ge}-disabled):active`]:{[`${Et}::before`]:{insetInlineEnd:Be.switchHandleActiveInset,insetInlineStart:0},[`&${Ge}-checked ${Et}::before`]:{insetInlineEnd:0,insetInlineStart:Be.switchHandleActiveInset}}}}},st=Be=>{const{componentCls:Ge,trackHeight:At,trackPadding:ye,innerMinMargin:se,innerMaxMargin:Te,handleSize:Ct,calc:Et}=Be,Ie=`${Ge}-inner`,_e=(0,xt.unit)(Et(Ct).add(Et(ye).mul(2)).equal()),ct=(0,xt.unit)(Et(Te).mul(2).equal());return{[Ge]:{[Ie]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Te,paddingInlineEnd:se,transition:`padding-inline-start ${Be.switchDuration} ease-in-out, padding-inline-end ${Be.switchDuration} ease-in-out`,[`${Ie}-checked, ${Ie}-unchecked`]:{display:"block",color:Be.colorTextLightSolid,fontSize:Be.fontSizeSM,transition:`margin-inline-start ${Be.switchDuration} ease-in-out, margin-inline-end ${Be.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:At},[`${Ie}-checked`]:{marginInlineStart:`calc(-100% + ${_e} - ${ct})`,marginInlineEnd:`calc(100% - ${_e} + ${ct})`},[`${Ie}-unchecked`]:{marginTop:Et(At).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ge}-checked ${Ie}`]:{paddingInlineStart:se,paddingInlineEnd:Te,[`${Ie}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ie}-unchecked`]:{marginInlineStart:`calc(100% - ${_e} + ${ct})`,marginInlineEnd:`calc(-100% + ${_e} - ${ct})`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${Ie}`]:{[`${Ie}-unchecked`]:{marginInlineStart:Et(ye).mul(2).equal(),marginInlineEnd:Et(ye).mul(-1).mul(2).equal()}},[`&${Ge}-checked ${Ie}`]:{[`${Ie}-checked`]:{marginInlineStart:Et(ye).mul(-1).mul(2).equal(),marginInlineEnd:Et(ye).mul(2).equal()}}}}}},tt=Be=>{const{componentCls:Ge,trackHeight:At,trackMinWidth:ye}=Be;return{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(Be)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ye,height:At,lineHeight:(0,xt.unit)(At),verticalAlign:"middle",background:Be.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Be.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ge}-disabled)`]:{background:Be.colorTextTertiary}}),(0,Rt.Qy)(Be)),{[`&${Ge}-checked`]:{background:Be.switchColor,[`&:hover:not(${Ge}-disabled)`]:{background:Be.colorPrimaryHover}},[`&${Ge}-loading, &${Ge}-disabled`]:{cursor:"not-allowed",opacity:Be.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ge}-rtl`]:{direction:"rtl"}})}},St=Be=>{const{fontSize:Ge,lineHeight:At,controlHeight:ye,colorWhite:se}=Be,Te=Ge*At,Ct=ye/2,Et=2,Ie=Te-Et*2,_e=Ct-Et*2;return{trackHeight:Te,trackHeightSM:Ct,trackMinWidth:Ie*2+Et*4,trackMinWidthSM:_e*2+Et*2,trackPadding:Et,handleBg:se,handleSize:Ie,handleSizeSM:_e,handleShadow:`0 2px 4px 0 ${new Ot.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ie/2,innerMaxMargin:Ie+Et+Et*2,innerMinMarginSM:_e/2,innerMaxMarginSM:_e+Et+Et*2}};var We=(0,wt.I$)("Switch",Be=>{const Ge=(0,mt.mergeToken)(Be,{switchDuration:Be.motionDurationMid,switchColor:Be.colorPrimary,switchDisabledOpacity:Be.opacityLoading,switchLoadingIconSize:Be.calc(Be.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Be.opacityLoading})`,switchHandleActiveInset:"-30%"});return[tt(Ge),st(Ge),kt(Ge),Qe(Ge),gt(Ge)]},St),yt=function(Be,Ge){var At={};for(var ye in Be)Object.prototype.hasOwnProperty.call(Be,ye)&&Ge.indexOf(ye)<0&&(At[ye]=Be[ye]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ye=Object.getOwnPropertySymbols(Be);se{const{prefixCls:At,size:ye,disabled:se,loading:Te,className:Ct,rootClassName:Et,style:Ie,checked:_e,value:ct,defaultChecked:Yt,defaultValue:Dt,onChange:$t}=Be,je=yt(Be,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Gt,bt]=(0,Me.Z)(!1,{value:_e!=null?_e:ct,defaultValue:Yt!=null?Yt:Dt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(ke.E_),oe=z.useContext(Le.Z),ue=(se!=null?se:oe)||Te,ne=ae("switch",At),he=z.createElement("div",{className:`${ne}-handle`},Te&&z.createElement(at.Z,{className:`${ne}-loading-icon`})),[xe,vt,Pe]=We(ne),Ve=(0,Ae.Z)(ye),dt=Ke()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ve==="small",[`${ne}-loading`]:Te,[`${ne}-rtl`]:te==="rtl"},Ct,Et,vt,Pe),Mt=Object.assign(Object.assign({},ee==null?void 0:ee.style),Ie),pt=function(){bt(arguments.length<=0?void 0:arguments[0]),$t==null||$t.apply(void 0,arguments)};return xe(z.createElement(rt.Z,{component:"Switch"},z.createElement(Pt,Object.assign({},je,{checked:Gt,onChange:pt,prefixCls:ne,className:dt,style:Mt,disabled:ue,ref:Ge,loadingIcon:he}))))});pe.__ANT_SWITCH=!0;var Tt=pe},94968:function(an,Zt,ie){"use strict";ie.d(Zt,{default:function(){return $e}});var z=ie(59301),at=ie(77654),ge=ie(4676),Ke=ie(92310),be=ie.n(Ke),we=ie(60499),Ne=ie(38705),Ze=ie(17212),Me=ie(15793),fe=ie(39153),Je=ie(55401),Se=ie(18642),Pt=ie(85899),rt=ie(42244),ke=ie(43749),Le=ie(73001),Ae=ie(11576),xt=ie(26112),Ot=ie(48736),Rt=function(ve,Xe){if(ve&&Xe){var qe=Array.isArray(Xe)?Xe:Xe.split(","),ht=ve.name||"",et=ve.type||"",ze=et.replace(/\/.*$/,"");return qe.some(function(He){var nt=He.trim();if(/^\*(\/\*)?$/.test(He))return!0;if(nt.charAt(0)==="."){var en=ht.toLowerCase(),Xt=nt.toLowerCase(),qt=[Xt];return(Xt===".jpg"||Xt===".jpeg")&&(qt=[".jpg",".jpeg"]),qt.some(function(Dn){return en.endsWith(Dn)})}return/\/\*$/.test(nt)?ze===nt.replace(/\/.*$/,""):et===nt?!0:/^\w+$/.test(nt)?((0,Ot.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(nt,"'.Skip for check.")),!0):!1})}return!0};function wt(ve,Xe){var qe="cannot ".concat(ve.method," ").concat(ve.action," ").concat(Xe.status,"'"),ht=new Error(qe);return ht.status=Xe.status,ht.method=ve.method,ht.url=ve.action,ht}function mt(ve){var Xe=ve.responseText||ve.response;if(!Xe)return Xe;try{return JSON.parse(Xe)}catch(qe){return Xe}}function gt(ve){var Xe=new XMLHttpRequest;ve.onProgress&&Xe.upload&&(Xe.upload.onprogress=function(ze){ze.total>0&&(ze.percent=ze.loaded/ze.total*100),ve.onProgress(ze)});var qe=new FormData;ve.data&&Object.keys(ve.data).forEach(function(et){var ze=ve.data[et];if(Array.isArray(ze)){ze.forEach(function(He){qe.append("".concat(et,"[]"),He)});return}qe.append(et,ze)}),ve.file instanceof Blob?qe.append(ve.filename,ve.file,ve.file.name):qe.append(ve.filename,ve.file),Xe.onerror=function(ze){ve.onError(ze)},Xe.onload=function(){return Xe.status<200||Xe.status>=300?ve.onError(wt(ve,Xe),mt(Xe)):ve.onSuccess(mt(Xe),Xe)},Xe.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in Xe&&(Xe.withCredentials=!0);var ht=ve.headers||{};return ht["X-Requested-With"]!==null&&Xe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ht).forEach(function(et){ht[et]!==null&&Xe.setRequestHeader(et,ht[et])}),Xe.send(qe),{abort:function(){Xe.abort()}}}var Qe=function(){var ve=(0,Ae.Z)((0,Le.Z)().mark(function Xe(qe,ht){var et,ze,He,nt,en,Xt,qt,Dn;return(0,Le.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:Xt=function(){return Xt=(0,Ae.Z)((0,Le.Z)().mark(function xn(On){return(0,Le.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return _n.abrupt("return",new Promise(function(Vn){On.file(function(Xn){ht(Xn)?(On.fullPath&&!Xn.webkitRelativePath&&(Object.defineProperties(Xn,{webkitRelativePath:{writable:!0}}),Xn.webkitRelativePath=On.fullPath.replace(/^\//,""),Object.defineProperties(Xn,{webkitRelativePath:{writable:!1}})),Vn(Xn)):Vn(null)})}));case 1:case"end":return _n.stop()}},xn)})),Xt.apply(this,arguments)},en=function(xn){return Xt.apply(this,arguments)},nt=function(){return nt=(0,Ae.Z)((0,Le.Z)().mark(function xn(On){var Fn,_n,Vn,Xn,wn;return(0,Le.Z)().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:Fn=On.createReader(),_n=[];case 2:return Wn.next=5,new Promise(function(dr){Fn.readEntries(dr,function(){return dr([])})});case 5:if(Vn=Wn.sent,Xn=Vn.length,Xn){Wn.next=9;break}return Wn.abrupt("break",12);case 9:for(wn=0;wn{const{componentCls:Xe,iconCls:qe}=ve;return{[`${Xe}-wrapper`]:{[`${Xe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ve.colorFillAlter,border:`${(0,Yt.unit)(ve.lineWidth)} dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[Xe]:{padding:ve.padding},[`${Xe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ve.borderRadiusLG,"&:focus-visible":{outline:`${(0,Yt.unit)(ve.lineWidthFocus)} solid ${ve.colorPrimaryBorder}`}},[`${Xe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${Xe}-disabled):hover, &-hover:not(${Xe}-disabled) `]:{borderColor:ve.colorPrimaryHover},[`p${Xe}-drag-icon`]:{marginBottom:ve.margin,[qe]:{color:ve.colorPrimary,fontSize:ve.uploadThumbnailSize}},[`p${Xe}-text`]:{margin:`0 0 ${(0,Yt.unit)(ve.marginXXS)}`,color:ve.colorTextHeading,fontSize:ve.fontSizeLG},[`p${Xe}-hint`]:{color:ve.colorTextDescription,fontSize:ve.fontSize},[`&${Xe}-disabled`]:{[`p${Xe}-drag-icon ${qe}, p${Xe}-text, p${Xe}-hint `]:{color:ve.colorTextDisabled}}}}}},Gt=ve=>{const{componentCls:Xe,iconCls:qe,fontSize:ht,lineHeight:et,calc:ze}=ve,He=`${Xe}-list-item`,nt=`${He}-actions`,en=`${He}-action`;return{[`${Xe}-wrapper`]:{[`${Xe}-list`]:Object.assign(Object.assign({},(0,Et.dF)()),{lineHeight:ve.lineHeight,[He]:{position:"relative",height:ze(ve.lineHeight).mul(ht).equal(),marginTop:ve.marginXS,fontSize:ht,display:"flex",alignItems:"center",transition:`background-color ${ve.motionDurationSlow}`,borderRadius:ve.borderRadiusSM,"&:hover":{backgroundColor:ve.controlItemBgHover},[`${He}-name`]:Object.assign(Object.assign({},Et.vS),{padding:`0 ${(0,Yt.unit)(ve.paddingXS)}`,lineHeight:et,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[nt]:{whiteSpace:"nowrap",[en]:{opacity:0},[qe]:{color:ve.actionsColor,transition:`all ${ve.motionDurationSlow}`},[` ${en}:focus-visible, &.picture ${en} `]:{opacity:1}},[`${Xe}-icon ${qe}`]:{color:ve.colorTextDescription,fontSize:ht},[`${He}-progress`]:{position:"absolute",bottom:ve.calc(ve.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:ze(ht).add(ve.paddingXS).equal(),fontSize:ht,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${He}:hover ${en}`]:{opacity:1},[`${He}-error`]:{color:ve.colorError,[`${He}-name, ${Xe}-icon ${qe}`]:{color:ve.colorError},[nt]:{[`${qe}, ${qe}:hover`]:{color:ve.colorError},[en]:{opacity:1}}},[`${Xe}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},bt=ie(99495),te=ve=>{const{componentCls:Xe}=ve,qe=new Yt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ve.calc(ve.marginXS).div(-2).equal()}}),ht=new Yt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ve.calc(ve.marginXS).div(-2).equal()}}),et=`${Xe}-animate-inline`;return[{[`${Xe}-wrapper`]:{[`${et}-appear, ${et}-enter, ${et}-leave`]:{animationDuration:ve.motionDurationSlow,animationTimingFunction:ve.motionEaseInOutCirc,animationFillMode:"forwards"},[`${et}-appear, ${et}-enter`]:{animationName:qe},[`${et}-leave`]:{animationName:ht}}},{[`${Xe}-wrapper`]:(0,bt.J$)(ve)},qe,ht]},ee=ie(68361);const oe=ve=>{const{componentCls:Xe,iconCls:qe,uploadThumbnailSize:ht,uploadProgressOffset:et,calc:ze}=ve,He=`${Xe}-list`,nt=`${He}-item`;return{[`${Xe}-wrapper`]:{[` ${He}${He}-picture, ${He}${He}-picture-card, ${He}${He}-picture-circle `]:{[nt]:{position:"relative",height:ze(ht).add(ze(ve.lineWidth).mul(2)).add(ze(ve.paddingXS).mul(2)).equal(),padding:ve.paddingXS,border:`${(0,Yt.unit)(ve.lineWidth)} ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,"&:hover":{background:"transparent"},[`${nt}-thumbnail`]:Object.assign(Object.assign({},Et.vS),{width:ht,height:ht,lineHeight:(0,Yt.unit)(ze(ht).add(ve.paddingSM).equal()),textAlign:"center",flex:"none",[qe]:{fontSize:ve.fontSizeHeading2,color:ve.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${nt}-progress`]:{bottom:et,width:`calc(100% - ${(0,Yt.unit)(ze(ve.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:ze(ht).add(ve.paddingXS).equal()}},[`${nt}-error`]:{borderColor:ve.colorError,[`${nt}-thumbnail ${qe}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ve.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ve.colorError}}},[`${nt}-uploading`]:{borderStyle:"dashed",[`${nt}-name`]:{marginBottom:et}}},[`${He}${He}-picture-circle ${nt}`]:{[`&, &::before, ${nt}-thumbnail`]:{borderRadius:"50%"}}}}},ue=ve=>{const{componentCls:Xe,iconCls:qe,fontSizeLG:ht,colorTextLightSolid:et,calc:ze}=ve,He=`${Xe}-list`,nt=`${He}-item`,en=ve.uploadPicCardSize;return{[` ${Xe}-wrapper${Xe}-picture-card-wrapper, ${Xe}-wrapper${Xe}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,Et.dF)()),{display:"block",[`${Xe}${Xe}-select`]:{width:en,height:en,textAlign:"center",verticalAlign:"top",backgroundColor:ve.colorFillAlter,border:`${(0,Yt.unit)(ve.lineWidth)} dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[`> ${Xe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Xe}-disabled):hover`]:{borderColor:ve.colorPrimary}},[`${He}${He}-picture-card, ${He}${He}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ve.marginXS,marginInlineEnd:ve.marginXS}},"@supports (gap: 1px)":{gap:ve.marginXS},[`${He}-item-container`]:{display:"inline-block",width:en,height:en,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[nt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Yt.unit)(ze(ve.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Yt.unit)(ze(ve.paddingXS).mul(2).equal())})`,backgroundColor:ve.colorBgMask,opacity:0,transition:`all ${ve.motionDurationSlow}`,content:'" "'}},[`${nt}:hover`]:{[`&::before, ${nt}-actions`]:{opacity:1}},[`${nt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ve.motionDurationSlow}`,[` ${qe}-eye, ${qe}-download, ${qe}-delete `]:{zIndex:10,width:ht,margin:`0 ${(0,Yt.unit)(ve.marginXXS)}`,fontSize:ht,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,color:et,"&:hover":{color:et},svg:{verticalAlign:"baseline"}}},[`${nt}-thumbnail, ${nt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${nt}-name`]:{display:"none",textAlign:"center"},[`${nt}-file + ${nt}-name`]:{position:"absolute",bottom:ve.margin,display:"block",width:`calc(100% - ${(0,Yt.unit)(ze(ve.paddingXS).mul(2).equal())})`},[`${nt}-uploading`]:{[`&${nt}`]:{backgroundColor:ve.colorFillAlter},[`&::before, ${qe}-eye, ${qe}-download, ${qe}-delete`]:{display:"none"}},[`${nt}-progress`]:{bottom:ve.marginXL,width:`calc(100% - ${(0,Yt.unit)(ze(ve.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Xe}-wrapper${Xe}-picture-circle-wrapper`]:{[`${Xe}${Xe}-select`]:{borderRadius:"50%"}}}};var he=ve=>{const{componentCls:Xe}=ve;return{[`${Xe}-rtl`]:{direction:"rtl"}}};const xe=ve=>{const{componentCls:Xe,colorTextDisabled:qe}=ve;return{[`${Xe}-wrapper`]:Object.assign(Object.assign({},(0,Et.Wf)(ve)),{[Xe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Xe}-select`]:{display:"inline-block"},[`${Xe}-hidden`]:{display:"none"},[`${Xe}-disabled`]:{color:qe,cursor:"not-allowed"}})}},vt=ve=>({actionsColor:ve.colorTextDescription});var Pe=(0,_e.I$)("Upload",ve=>{const{fontSizeHeading3:Xe,fontHeight:qe,lineWidth:ht,controlHeightLG:et,calc:ze}=ve,He=(0,ct.mergeToken)(ve,{uploadThumbnailSize:ze(Xe).mul(2).equal(),uploadProgressOffset:ze(ze(qe).div(2)).add(ht).equal(),uploadPicCardSize:ze(et).mul(2.55).equal()});return[xe(He),$t(He),oe(He),ue(He),Gt(He),te(He),he(He),(0,Ie.Z)(He)]},vt),Ve={icon:function(Xe,qe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:qe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Xe}}]}},name:"file",theme:"twotone"},dt=Ve,Mt=ie(7657),pt=function(Xe,qe){return z.createElement(Mt.Z,(0,we.Z)({},Xe,{ref:qe,icon:dt}))},Kt=z.forwardRef(pt),Vt=Kt,zt=ie(58617),ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},_t=ln,on=function(Xe,qe){return z.createElement(Mt.Z,(0,we.Z)({},Xe,{ref:qe,icon:_t}))},It=z.forwardRef(on),Qt=It,Wt={icon:function(Xe,qe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Xe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:qe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:qe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:qe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Xe}}]}},name:"picture",theme:"twotone"},De=Wt,it=function(Xe,qe){return z.createElement(Mt.Z,(0,we.Z)({},Xe,{ref:qe,icon:De}))},Lt=z.forwardRef(it),jt=Lt,Oe=ie(77900),Ye=ie(2738),ft=ie(40192),Bt=ie(86641),Ut=ie(22703),cn=ie(7939);function Sn(ve){return Object.assign(Object.assign({},ve),{lastModified:ve.lastModified,lastModifiedDate:ve.lastModifiedDate,name:ve.name,size:ve.size,type:ve.type,uid:ve.uid,percent:0,originFileObj:ve})}function Cn(ve,Xe){const qe=(0,at.Z)(Xe),ht=qe.findIndex(et=>{let{uid:ze}=et;return ze===ve.uid});return ht===-1?qe.push(ve):qe[ht]=ve,qe}function sn(ve,Xe){const qe=ve.uid!==void 0?"uid":"name";return Xe.filter(ht=>ht[qe]===ve[qe])[0]}function yn(ve,Xe){const qe=ve.uid!==void 0?"uid":"name",ht=Xe.filter(et=>et[qe]!==ve[qe]);return ht.length===Xe.length?null:ht}const gn=function(){const Xe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ht=Xe[Xe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ht)||[""])[0]},$n=ve=>ve.indexOf("image/")===0,bn=ve=>{if(ve.type&&!ve.thumbUrl)return $n(ve.type);const Xe=ve.thumbUrl||ve.url||"",qe=gn(Xe);return/^data:image\//.test(Xe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(qe)?!0:!(/^data:/.test(Xe)||qe)},vn=200;function Jt(ve){return new Promise(Xe=>{if(!ve.type||!$n(ve.type)){Xe("");return}const qe=document.createElement("canvas");qe.width=vn,qe.height=vn,qe.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(qe);const ht=qe.getContext("2d"),et=new Image;if(et.onload=()=>{const{width:ze,height:He}=et;let nt=vn,en=vn,Xt=0,qt=0;ze>He?(en=He*(vn/ze),qt=-(en-nt)/2):(nt=ze*(vn/He),Xt=-(nt-en)/2),ht.drawImage(et,Xt,qt,nt,en);const Dn=qe.toDataURL();document.body.removeChild(qe),window.URL.revokeObjectURL(et.src),Xe(Dn)},et.crossOrigin="anonymous",ve.type.startsWith("image/svg+xml")){const ze=new FileReader;ze.onload=()=>{ze.result&&typeof ze.result=="string"&&(et.src=ze.result)},ze.readAsDataURL(ve)}else if(ve.type.startsWith("image/gif")){const ze=new FileReader;ze.onload=()=>{ze.result&&Xe(ze.result)},ze.readAsDataURL(ve)}else et.src=window.URL.createObjectURL(ve)})}var Pn=ie(26227),mn=ie(41464),kn=ie(15277),jn=ie(89787),Zn=ie(25399),Yn=z.forwardRef((ve,Xe)=>{let{prefixCls:qe,className:ht,style:et,locale:ze,listType:He,file:nt,items:en,progress:Xt,iconRender:qt,actionIconRender:Dn,itemRender:Ln,isImgUrl:Hn,showPreviewIcon:Mn,showRemoveIcon:xn,showDownloadIcon:On,previewIcon:Fn,removeIcon:_n,downloadIcon:Vn,extra:Xn,onPreview:wn,onDownload:er,onClose:Wn}=ve;var dr,pr;const{status:sr}=nt,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const nn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(nn)}},[]);const Qn=qt(nt);let mr=z.createElement("div",{className:`${qe}-icon`},Qn);if(He==="picture"||He==="picture-card"||He==="picture-circle")if(ur==="uploading"||!nt.thumbUrl&&!nt.url){const nn=be()(`${qe}-list-item-thumbnail`,{[`${qe}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:nn},Qn)}else{const nn=Hn!=null&&Hn(nt)?z.createElement("img",{src:nt.thumbUrl||nt.url,alt:nt.name,className:`${qe}-list-item-image`,crossOrigin:nt.crossOrigin}):Qn,En=be()(`${qe}-list-item-thumbnail`,{[`${qe}-list-item-file`]:Hn&&!Hn(nt)});mr=z.createElement("a",{className:En,onClick:Tn=>wn(nt,Tn),href:nt.url||nt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},nn)}const br=be()(`${qe}-list-item`,`${qe}-list-item-${ur}`),zr=typeof nt.linkProps=="string"?JSON.parse(nt.linkProps):nt.linkProps,Er=(typeof xn=="function"?xn(nt):xn)?Dn((typeof _n=="function"?_n(nt):_n)||z.createElement(Pn.Z,null),()=>Wn(nt),qe,ze.removeFile,!0):null,Br=(typeof On=="function"?On(nt):On)&&ur==="done"?Dn((typeof Vn=="function"?Vn(nt):Vn)||z.createElement(mn.Z,null),()=>er(nt),qe,ze.downloadFile):null,Ir=He!=="picture-card"&&He!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:be()(`${qe}-list-item-actions`,{picture:He==="picture"})},Br,Er),Mr=typeof Xn=="function"?Xn(nt):Xn,ir=Mr&&z.createElement("span",{className:`${qe}-list-item-extra`},Mr),rr=be()(`${qe}-list-item-name`),Jn=nt.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:rr,title:nt.name},zr,{href:nt.url,onClick:nn=>wn(nt,nn)}),nt.name,ir):z.createElement("span",{key:"view",className:rr,onClick:nn=>wn(nt,nn),title:nt.name},nt.name,ir),un=(typeof Mn=="function"?Mn(nt):Mn)&&(nt.url||nt.thumbUrl)?z.createElement("a",{href:nt.url||nt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:nn=>wn(nt,nn),title:ze.previewFile},typeof Fn=="function"?Fn(nt):Fn||z.createElement(kn.Z,null)):null,pn=(He==="picture-card"||He==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${qe}-list-item-actions`},un,ur==="done"&&Br,Er),{getPrefixCls:hn}=z.useContext(ye.E_),tn=hn(),Bn=z.createElement("div",{className:br},mr,Jn,Ir,pn,lr&&z.createElement(Oe.default,{motionName:`${tn}-fade`,visible:ur==="uploading",motionDeadline:2e3},nn=>{let{className:En}=nn;const Tn="percent"in nt?z.createElement(jn.Z,Object.assign({},Xt,{type:"line",percent:nt.percent,"aria-label":nt["aria-label"],"aria-labelledby":nt["aria-labelledby"]})):null;return z.createElement("div",{className:be()(`${qe}-list-item-progress`,En)},Tn)})),Gn=nt.response&&typeof nt.response=="string"?nt.response:((dr=nt.error)===null||dr===void 0?void 0:dr.statusText)||((pr=nt.error)===null||pr===void 0?void 0:pr.message)||ze.uploadError,dn=ur==="error"?z.createElement(Zn.Z,{title:Gn,getPopupContainer:nn=>nn.parentNode},Bn):Bn;return z.createElement("div",{className:be()(`${qe}-list-item-container`,ht),style:et,ref:Xe},Ln?Ln(dn,nt,en,{download:er.bind(null,nt),preview:wn.bind(null,nt),remove:Wn.bind(null,nt)}):dn)});const Nn=(ve,Xe)=>{const{listType:qe="text",previewFile:ht=Jt,onPreview:et,onDownload:ze,onRemove:He,locale:nt,iconRender:en,isImageUrl:Xt=bn,prefixCls:qt,items:Dn=[],showPreviewIcon:Ln=!0,showRemoveIcon:Hn=!0,showDownloadIcon:Mn=!1,removeIcon:xn,previewIcon:On,downloadIcon:Fn,extra:_n,progress:Vn={size:[-1,2],showInfo:!1},appendAction:Xn,appendActionVisible:wn=!0,itemRender:er,disabled:Wn}=ve,dr=(0,ft.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(qe);z.useEffect(()=>{qe.startsWith("picture")&&(Dn||[]).forEach(ir=>{!(ir.originFileObj instanceof File||ir.originFileObj instanceof Blob)||ir.thumbUrl!==void 0||(ir.thumbUrl="",ht==null||ht(ir.originFileObj).then(rr=>{ir.thumbUrl=rr||"",dr()}))})},[qe,Dn,ht]),z.useEffect(()=>{sr(!0)},[]);const yr=(ir,rr)=>{if(et)return rr==null||rr.preventDefault(),et(ir)},lr=ir=>{typeof ze=="function"?ze(ir):ir.url&&window.open(ir.url)},fr=ir=>{He==null||He(ir)},Qn=ir=>{if(en)return en(ir,qe);const rr=ir.status==="uploading";if(qe.startsWith("picture")){const Jn=qe==="picture"?z.createElement(zt.Z,null):nt.uploading,un=Xt!=null&&Xt(ir)?z.createElement(jt,null):z.createElement(Vt,null);return rr?Jn:un}return rr?z.createElement(zt.Z,null):z.createElement(Qt,null)},mr=(ir,rr,Jn,un,pn)=>{const hn={type:"text",size:"small",title:un,onClick:tn=>{var Bn,Gn;rr(),z.isValidElement(ir)&&((Gn=(Bn=ir.props).onClick)===null||Gn===void 0||Gn.call(Bn,tn))},className:`${Jn}-list-item-action`};return pn&&(hn.disabled=Wn),z.isValidElement(ir)?z.createElement(cn.ZP,Object.assign({},hn,{icon:(0,Ut.Tm)(ir,Object.assign(Object.assign({},ir.props),{onClick:()=>{}}))})):z.createElement(cn.ZP,Object.assign({},hn),z.createElement("span",null,ir))};z.useImperativeHandle(Xe,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(ye.E_),zr=br("upload",qt),Er=br(),Br=be()(`${zr}-list`,`${zr}-list-${qe}`),Ir=z.useMemo(()=>(0,Ye.Z)((0,Bt.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Mr=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${zr}-${ur?"animate-inline":"animate"}`,keys:(0,at.Z)(Dn.map(ir=>({key:ir.uid,file:ir}))),motionAppear:pr});return z.createElement("div",{className:Br},z.createElement(Oe.CSSMotionList,Object.assign({},Mr,{component:!1}),ir=>{let{key:rr,file:Jn,className:un,style:pn}=ir;return z.createElement(Yn,{key:rr,locale:nt,prefixCls:zr,className:un,style:pn,file:Jn,items:Dn,progress:Vn,listType:qe,isImgUrl:Xt,showPreviewIcon:Ln,showRemoveIcon:Hn,showDownloadIcon:Mn,removeIcon:xn,previewIcon:On,downloadIcon:Fn,extra:_n,iconRender:Qn,actionIconRender:mr,itemRender:er,onPreview:yr,onDownload:lr,onClose:fr})}),Xn&&z.createElement(Oe.default,Object.assign({},Mr,{visible:wn,forceRender:!0}),ir=>{let{className:rr,style:Jn}=ir;return(0,Ut.Tm)(Xn,un=>({className:be()(un.className,rr),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:rr?"none":void 0}),un.style)}))}))};var qn=z.forwardRef(Nn),Ft=function(ve,Xe,qe,ht){function et(ze){return ze instanceof qe?ze:new qe(function(He){He(ze)})}return new(qe||(qe=Promise))(function(ze,He){function nt(qt){try{Xt(ht.next(qt))}catch(Dn){He(Dn)}}function en(qt){try{Xt(ht.throw(qt))}catch(Dn){He(Dn)}}function Xt(qt){qt.done?ze(qt.value):et(qt.value).then(nt,en)}Xt((ht=ht.apply(ve,Xe||[])).next())})};const rn=`__LIST_IGNORE_${Date.now()}__`,zn=(ve,Xe)=>{const{fileList:qe,defaultFileList:ht,onRemove:et,showUploadList:ze=!0,listType:He="text",onPreview:nt,onDownload:en,onChange:Xt,onDrop:qt,previewFile:Dn,disabled:Ln,locale:Hn,iconRender:Mn,isImageUrl:xn,progress:On,prefixCls:Fn,className:_n,type:Vn="select",children:Xn,style:wn,itemRender:er,maxCount:Wn,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=ve,Qn=z.useContext(se.Z),mr=Ln!=null?Ln:Qn,[br,zr]=(0,At.Z)(ht||[],{value:qe,postState:xr=>xr!=null?xr:[]}),[Er,Br]=z.useState("drop"),Ir=z.useRef(null),Mr=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(qe||[]).forEach(($r,Gr)=>{!$r.uid&&!Object.isFrozen($r)&&($r.uid=`__AUTO__${xr}_${Gr}__`)})},[qe]);const ir=(xr,$r,Gr)=>{let Sr=(0,at.Z)($r),Nr=!1;Wn===1?Sr=Sr.slice(-1):Wn&&(Nr=Sr.length>Wn,Sr=Sr.slice(0,Wn)),(0,ge.flushSync)(()=>{zr(Sr)});const Tr={file:xr,fileList:Sr};Gr&&(Tr.event=Gr),(!Nr||xr.status==="removed"||Sr.some(ui=>ui.uid===xr.uid))&&(0,ge.flushSync)(()=>{Xt==null||Xt(Tr)})},rr=(xr,$r)=>Ft(void 0,void 0,void 0,function*(){const{beforeUpload:Gr,transformFile:Sr}=ve;let Nr=xr;if(Gr){const Tr=yield Gr(xr,$r);if(Tr===!1)return!1;if(delete xr[rn],Tr===rn)return Object.defineProperty(xr,rn,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(Nr=Tr)}return Sr&&(Nr=yield Sr(Nr)),Nr}),Jn=xr=>{const $r=xr.filter(Nr=>!Nr.file[rn]);if(!$r.length)return;const Gr=$r.map(Nr=>Sn(Nr.file));let Sr=(0,at.Z)(br);Gr.forEach(Nr=>{Sr=Cn(Nr,Sr)}),Gr.forEach((Nr,Tr)=>{let ui=Nr;if($r[Tr].parsedFile)Nr.status="uploading";else{const{originFileObj:Mi}=Nr;let fi;try{fi=new File([Mi],Mi.name,{type:Mi.type})}catch(ni){fi=new Blob([Mi],{type:Mi.type}),fi.name=Mi.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}ir(ui,Sr)})},un=(xr,$r,Gr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Tr){}if(!sn($r,br))return;const Sr=Sn($r);Sr.status="done",Sr.percent=100,Sr.response=xr,Sr.xhr=Gr;const Nr=Cn(Sr,br);ir(Sr,Nr)},pn=(xr,$r)=>{if(!sn($r,br))return;const Gr=Sn($r);Gr.status="uploading",Gr.percent=xr.percent;const Sr=Cn(Gr,br);ir(Gr,Sr,xr)},hn=(xr,$r,Gr)=>{if(!sn(Gr,br))return;const Sr=Sn(Gr);Sr.error=xr,Sr.response=$r,Sr.status="error";const Nr=Cn(Sr,br);ir(Sr,Nr)},tn=xr=>{let $r;Promise.resolve(typeof et=="function"?et(xr):et).then(Gr=>{var Sr;if(Gr===!1)return;const Nr=yn(xr,br);Nr&&($r=Object.assign(Object.assign({},xr),{status:"removed"}),br==null||br.forEach(Tr=>{const ui=$r.uid!==void 0?"uid":"name";Tr[ui]===$r[ui]&&!Object.isFrozen(Tr)&&(Tr.status="removed")}),(Sr=Ir.current)===null||Sr===void 0||Sr.abort($r),ir($r,Nr))})},Bn=xr=>{Br(xr.type),xr.type==="drop"&&(qt==null||qt(xr))};z.useImperativeHandle(Xe,()=>({onBatchStart:Jn,onSuccess:un,onProgress:pn,onError:hn,fileList:br,upload:Ir.current,nativeElement:Mr.current}));const{getPrefixCls:Gn,direction:dn,upload:nn}=z.useContext(ye.E_),En=Gn("upload",Fn),Tn=Object.assign(Object.assign({onBatchStart:Jn,onError:hn,onProgress:pn,onSuccess:un},ve),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:En,disabled:mr,beforeUpload:rr,onChange:void 0,hasControlInside:sr});delete Tn.className,delete Tn.style,(!Xn||mr)&&delete Tn.id;const cr=`${En}-wrapper`,[kr,Or,Rr]=Pe(En,cr),[Ar]=(0,Te.Z)("Upload",Ct.Z.Upload),{showRemoveIcon:Fr,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Xr,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof ze=="boolean"?{}:ze,xi=typeof Fr=="undefined"?!mr:Fr,si=(xr,$r)=>ze?z.createElement(qn,{prefixCls:En,listType:He,items:br,previewFile:Dn,onPreview:nt,onDownload:en,onRemove:tn,showRemoveIcon:xi,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Xr,previewIcon:ti,downloadIcon:Ei,iconRender:Mn,extra:Ni,locale:Object.assign(Object.assign({},Ar),Hn),isImageUrl:xn,progress:On,appendAction:xr,appendActionVisible:$r,itemRender:er,disabled:mr}):xr,Ri=be()(cr,_n,fr,Or,Rr,nn==null?void 0:nn.className,{[`${En}-rtl`]:dn==="rtl",[`${En}-picture-card-wrapper`]:He==="picture-card",[`${En}-picture-circle-wrapper`]:He==="picture-circle"}),jr=Object.assign(Object.assign({},nn==null?void 0:nn.style),wn);if(Vn==="drag"){const xr=be()(Or,En,`${En}-drag`,{[`${En}-drag-uploading`]:br.some($r=>$r.status==="uploading"),[`${En}-drag-hover`]:Er==="dragover",[`${En}-disabled`]:mr,[`${En}-rtl`]:dn==="rtl"});return kr(z.createElement("span",{className:Ri,ref:Mr},z.createElement("div",{className:xr,style:jr,onDrop:Bn,onDragOver:Bn,onDragLeave:Bn},z.createElement(Ge,Object.assign({},Tn,{ref:Ir,className:`${En}-btn`}),z.createElement("div",{className:`${En}-drag-container`},Xn))),si()))}const Ki=be()(En,`${En}-select`,{[`${En}-disabled`]:mr,[`${En}-hidden`]:!Xn}),qr=z.createElement("div",{className:Ki},z.createElement(Ge,Object.assign({},Tn,{ref:Ir})));return kr(He==="picture-card"||He==="picture-circle"?z.createElement("span",{className:Ri,ref:Mr},si(qr,!!Xn)):z.createElement("span",{className:Ri,ref:Mr},qr,si()))};var Fe=z.forwardRef(zn),ot=function(ve,Xe){var qe={};for(var ht in ve)Object.prototype.hasOwnProperty.call(ve,ht)&&Xe.indexOf(ht)<0&&(qe[ht]=ve[ht]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,ht=Object.getOwnPropertySymbols(ve);et{var{style:qe,height:ht,hasControlInside:et=!1}=ve,ze=ot(ve,["style","height","hasControlInside"]);return z.createElement(Fe,Object.assign({ref:Xe,hasControlInside:et},ze,{type:"drag",style:Object.assign(Object.assign({},qe),{height:ht})}))});const Ee=Fe;Ee.Dragger=Re,Ee.LIST_IGNORE=rn;var $e=Ee},99498:function(an,Zt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Ze,Me,fe){var Je=fe&&fe!=z.Init;if(Me&&!Je)Ze.on("blur",be),Ze.on("change",we),Ze.on("swapDoc",we),z.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){Ke(Ze)}),we(Ze);else if(!Me&&Je){Ze.off("blur",be),Ze.off("change",we),Ze.off("swapDoc",we),z.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),at(Ze);var Se=Ze.getWrapperElement();Se.className=Se.className.replace(" CodeMirror-empty","")}Me&&!Ze.hasFocus()&&be(Ze)});function at(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function ge(Ze){at(Ze);var Me=Ze.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=Ze.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Ze.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Me.appendChild(fe),Ze.display.lineSpace.insertBefore(Me,Ze.display.lineSpace.firstChild)}function Ke(Ze){setTimeout(function(){var Me=!1,fe=Ze.getInputField();fe.nodeName=="TEXTAREA"?Me=!fe.value:Ze.lineCount()==1&&(Me=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Me?ge(Ze):at(Ze)},20)}function be(Ze){Ne(Ze)&&ge(Ze)}function we(Ze){var Me=Ze.getWrapperElement(),fe=Ne(Ze);Me.className=Me.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ge(Ze):at(Ze)}function Ne(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(an,Zt,ie){(function(z){z(ie(89780))})(function(z){var at={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=z.Pos;z.defineOption("autoCloseBrackets",!1,function(ke,Le,Ae){Ae&&Ae!=z.Init&&(ke.removeKeyMap(be),ke.state.closeBrackets=null),Le&&(we(Ke(Le,"pairs")),ke.state.closeBrackets=Le,ke.addKeyMap(be))});function Ke(ke,Le){return Le=="pairs"&&typeof ke=="string"?ke:typeof ke=="object"&&ke[Le]!=null?ke[Le]:at[Le]}var be={Backspace:Me,Enter:fe};function we(ke){for(var Le=0;Le=0;Ot--){var wt=xt[Ot].head;ke.replaceRange("",ge(wt.line,wt.ch-1),ge(wt.line,wt.ch+1),"+delete")}}function fe(ke){var Le=Ze(ke),Ae=Le&&Ke(Le,"explode");if(!Ae||ke.getOption("disableInput"))return z.Pass;for(var xt=ke.listSelections(),Ot=0;Ot0;return{anchor:new ge(ke.anchor.line,ke.anchor.ch+(Le?-1:1)),head:new ge(ke.head.line,ke.head.ch+(Le?1:-1))}}function Se(ke,Le){var Ae=Ze(ke);if(!Ae||ke.getOption("disableInput"))return z.Pass;var xt=Ke(Ae,"pairs"),Ot=xt.indexOf(Le);if(Ot==-1)return z.Pass;for(var Rt=Ke(Ae,"closeBefore"),wt=Ke(Ae,"triples"),mt=xt.charAt(Ot+1)==Le,gt=ke.listSelections(),Qe=Ot%2==0,kt,st=0;st=0&&ke.getRange(St,ge(St.line,St.ch+3))==Le+Le+Le?We="skipThree":We="skip";else if(mt&&St.ch>1&&wt.indexOf(Le)>=0&&ke.getRange(ge(St.line,St.ch-2),St)==Le+Le){if(St.ch>2&&/\bstring/.test(ke.getTokenTypeAt(ge(St.line,St.ch-2))))return z.Pass;We="addFour"}else if(mt){var ut=St.ch==0?" ":ke.getRange(ge(St.line,St.ch-1),St);if(!z.isWordChar(yt)&&ut!=Le&&!z.isWordChar(ut))We="both";else return z.Pass}else if(Qe&&(yt.length===0||/\s/.test(yt)||Rt.indexOf(yt)>-1))We="both";else return z.Pass;if(!kt)kt=We;else if(kt!=We)return z.Pass}var pe=Ot%2?xt.charAt(Ot-1):Le,Tt=Ot%2?Le:xt.charAt(Ot+1);ke.operation(function(){if(kt=="skip")ke.execCommand("goCharRight");else if(kt=="skipThree")for(var Be=0;Be<3;Be++)ke.execCommand("goCharRight");else if(kt=="surround"){for(var Ge=ke.getSelections(),Be=0;Be'"]=function(Pt){return Ke(Pt)}),Me.addKeyMap(Se)}});var at=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ge=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ke(Me){if(Me.getOption("disableInput"))return z.Pass;for(var fe=Me.listSelections(),Je=[],Se=Me.getOption("autoCloseTags"),Pt=0;Ptrt.ch&&(Ot=Ot.slice(0,Ot.length-ke.end+rt.ch));var gt=Ot.toLowerCase();if(!Ot||ke.type=="string"&&(ke.end!=rt.ch||!/[\"\']/.test(ke.string.charAt(ke.string.length-1))||ke.string.length==1)||ke.type=="tag"&&xt.close||ke.string.indexOf("/")==rt.ch-ke.start-1||wt&&Ne(wt,gt)>-1||Ze(Me,Le.mode.xmlCurrentContext&&Le.mode.xmlCurrentContext(Ae)||[],Ot,rt,!0))return z.Pass;var Qe=typeof Se=="object"&&Se.emptyTags;if(Qe&&Ne(Qe,Ot)>-1){Je[Pt]={text:"/>",newPos:z.Pos(rt.line,rt.ch+2)};continue}var kt=mt&&Ne(mt,gt)>-1;Je[Pt]={indent:kt,text:">"+(kt?` `:"")+"",newPos:kt?z.Pos(rt.line+1,0):z.Pos(rt.line,rt.ch+1)}}for(var st=typeof Se=="object"&&Se.dontIndentOnAutoClose,Pt=fe.length-1;Pt>=0;Pt--){var tt=Je[Pt];Me.replaceRange(tt.text,fe[Pt].head,fe[Pt].anchor,"+insert");var St=Me.listSelections().slice(0);St[Pt]={head:tt.newPos,anchor:tt.newPos},Me.setSelections(St),!st&&tt.indent&&(Me.indentLine(tt.newPos.line,null,!0),Me.indentLine(tt.newPos.line+1,null,!0))}}function be(Me,fe){for(var Je=Me.listSelections(),Se=[],Pt=fe?"/":""&&(wt+=">"),Se[Le]=wt}if(Me.replaceSelections(Se),Je=Me.listSelections(),!ke)for(var Le=0;Le=0&&fe[Ae]==Je;Ae--)++Le;Se=ke.to;for(var Ae=1;Ae=Ae.max))return Ae.ch=0,Ae.text=Ae.cm.getLine(++Ae.line),!0}function fe(Ae){if(!(Ae.line<=Ae.min))return Ae.text=Ae.cm.getLine(--Ae.line),Ae.ch=Ae.text.length,!0}function Je(Ae){for(;;){var xt=Ae.text.indexOf(">",Ae.ch);if(xt==-1){if(Me(Ae))continue;return}if(!Ze(Ae,xt+1)){Ae.ch=xt+1;continue}var Ot=Ae.text.lastIndexOf("/",xt),Rt=Ot>-1&&!/\S/.test(Ae.text.slice(Ot+1,xt));return Ae.ch=xt+1,Rt?"selfClose":"regular"}}function Se(Ae){for(;;){var xt=Ae.ch?Ae.text.lastIndexOf("<",Ae.ch-1):-1;if(xt==-1){if(fe(Ae))continue;return}if(!Ze(Ae,xt+1)){Ae.ch=xt;continue}we.lastIndex=xt,Ae.ch=xt;var Ot=we.exec(Ae.text);if(Ot&&Ot.index==xt)return Ot}}function Pt(Ae){for(;;){we.lastIndex=Ae.ch;var xt=we.exec(Ae.text);if(!xt){if(Me(Ae))continue;return}if(!Ze(Ae,xt.index+1)){Ae.ch=xt.index+1;continue}return Ae.ch=xt.index+xt[0].length,xt}}function rt(Ae){for(;;){var xt=Ae.ch?Ae.text.lastIndexOf(">",Ae.ch-1):-1;if(xt==-1){if(fe(Ae))continue;return}if(!Ze(Ae,xt+1)){Ae.ch=xt;continue}var Ot=Ae.text.lastIndexOf("/",xt),Rt=Ot>-1&&!/\S/.test(Ae.text.slice(Ot+1,xt));return Ae.ch=xt+1,Rt?"selfClose":"regular"}}function ke(Ae,xt){for(var Ot=[];;){var Rt=Pt(Ae),wt,mt=Ae.line,gt=Ae.ch-(Rt?Rt[0].length:0);if(!Rt||!(wt=Je(Ae)))return;if(wt!="selfClose")if(Rt[1]){for(var Qe=Ot.length-1;Qe>=0;--Qe)if(Ot[Qe]==Rt[2]){Ot.length=Qe;break}if(Qe<0&&(!xt||xt==Rt[2]))return{tag:Rt[2],from:at(mt,gt),to:at(Ae.line,Ae.ch)}}else Ot.push(Rt[2])}}function Le(Ae,xt){for(var Ot=[];;){var Rt=rt(Ae);if(!Rt)return;if(Rt=="selfClose"){Se(Ae);continue}var wt=Ae.line,mt=Ae.ch,gt=Se(Ae);if(!gt)return;if(gt[1])Ot.push(gt[2]);else{for(var Qe=Ot.length-1;Qe>=0;--Qe)if(Ot[Qe]==gt[2]){Ot.length=Qe;break}if(Qe<0&&(!xt||xt==gt[2]))return{tag:gt[2],from:at(Ae.line,Ae.ch),to:at(wt,mt)}}}}z.registerHelper("fold","xml",function(Ae,xt){for(var Ot=new Ne(Ae,xt.line,0);;){var Rt=Pt(Ot);if(!Rt||Ot.line!=xt.line)return;var wt=Je(Ot);if(!wt)return;if(!Rt[1]&&wt!="selfClose"){var mt=at(Ot.line,Ot.ch),gt=ke(Ot,Rt[2]);return gt&&ge(gt.from,mt)>0?{from:mt,to:gt.from}:null}}}),z.findMatchingTag=function(Ae,xt,Ot){var Rt=new Ne(Ae,xt.line,xt.ch,Ot);if(!(Rt.text.indexOf(">")==-1&&Rt.text.indexOf("<")==-1)){var wt=Je(Rt),mt=wt&&at(Rt.line,Rt.ch),gt=wt&&Se(Rt);if(!(!wt||!gt||ge(Rt,xt)>0)){var Qe={from:at(Rt.line,Rt.ch),to:mt,tag:gt[2]};return wt=="selfClose"?{open:Qe,close:null,at:"open"}:gt[1]?{open:Le(Rt,gt[2]),close:Qe,at:"close"}:(Rt=new Ne(Ae,mt.line,mt.ch,Ot),{open:Qe,close:ke(Rt,gt[2]),at:"open"})}}},z.findEnclosingTag=function(Ae,xt,Ot,Rt){for(var wt=new Ne(Ae,xt.line,xt.ch,Ot);;){var mt=Le(wt,Rt);if(!mt)break;var gt=new Ne(Ae,xt.line,xt.ch,Ot),Qe=ke(gt,mt.tag);if(Qe)return{open:mt,close:Qe}}},z.scanForClosingTag=function(Ae,xt,Ot,Rt){var wt=new Ne(Ae,xt.line,xt.ch,Rt?{from:0,to:Rt}:null);return ke(wt,Ot)}})},89780:function(an){(function(Zt,ie){an.exports=ie()})(this,function(){"use strict";var Zt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Zt),at=/MSIE \d/.test(Zt),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),Ke=/Edge\/(\d+)/.exec(Zt),be=at||ge||Ke,we=be&&(at?document.documentMode||6:+(Ke||ge)[1]),Ne=!Ke&&/WebKit\//.test(Zt),Ze=Ne&&/Qt\/\d+\.\d+/.test(Zt),Me=!Ke&&/Chrome\//.test(Zt),fe=/Opera\//.test(Zt),Je=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zt),Pt=/PhantomJS/.test(Zt),rt=!Ke&&/AppleWebKit/.test(Zt)&&/Mobile\/\w+/.test(Zt),ke=/Android/.test(Zt),Le=rt||ke||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zt),Ae=rt||/Mac/.test(ie),xt=/\bCrOS\b/.test(Zt),Ot=/win/i.test(ie),Rt=fe&&Zt.match(/Version\/(\d*\.\d*)/);Rt&&(Rt=Number(Rt[1])),Rt&&Rt>=15&&(fe=!1,Ne=!0);var wt=Ae&&(Ze||fe&&(Rt==null||Rt<12.11)),mt=z||be&&we>=9;function gt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Qe=function(a,y){var x=a.className,b=gt(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 kt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function st(a,y){return kt(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)return le+(y-re);le+=ce-re,le+=x-le%x,re=ce+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=Ge(this.onTimeout,this)};se.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},se.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var Dt=[""];function $t(a){for(;Dt.length<=a;)Dt.push(je(Dt)+" ");return Dt[a]}function je(a){return a[a.length-1]}function Gt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function ue(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 he=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xe(a){return a.charCodeAt(0)>=768&&he.test(a)}function vt(a,y,x){for(;(x<0?y>0:yx?-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 Ve(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;rey||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 dt=null;function Mt(a,y,x){var b;dt=null;for(var E=0;Ey)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:dt=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:dt=E)}return b!=null?b:dt}var pt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(me){return me<=247?a.charAt(me):1424<=me&&me<=1524?"R":1536<=me&&me<=1785?y.charAt(me-1536):1774<=me&&me<=2220?"r":8192<=me&&me<=8203?"w":me==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function de(me,Ue,lt){this.level=me,this.from=Ue,this.to=lt}return function(me,Ue){var lt=Ue=="ltr"?"L":"R";if(me.length==0||Ue=="ltr"&&!b.test(me))return!1;for(var Ht=me.length,Nt=[],fn=0;fn-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function on(a,y){var x=ln(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function De(a){a.prototype.on=function(y,x){zt(this,y,x)},a.prototype.off=function(y,x){_t(this,y,x)}}function it(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Lt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function jt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Oe(a){it(a),Lt(a)}function Ye(a){return a.target||a.srcElement}function ft(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ae&&a.ctrlKey&&y==1&&(y=3),y}var Bt=function(){if(be&&we<9)return!1;var a=tt("div");return"draggable"in a||"dragDrop"in a}(),Ut;function cn(a){if(Ut==null){var y=tt("span","\u200B");st(a,tt("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Ut=y.offsetWidth<=1&&y.offsetHeight>2&&!(be&&we<8))}var x=Ut?tt("span","\u200B"):tt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Sn;function Cn(a){if(Sn!=null)return Sn;var y=st(a,document.createTextNode("A\u062EA")),x=We(y,0,1).getBoundingClientRect(),b=We(y,1,2).getBoundingClientRect();return kt(a),!x||x.left==x.right?!1:Sn=b.right-x.right<3}var sn=` 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/)},yn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},gn=function(){var a=tt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),$n=null;function bn(a){if($n!=null)return $n;var y=st(a,tt("span","x")),x=y.getBoundingClientRect(),b=We(y,0,1).getBoundingClientRect();return $n=Math.abs(x.left-b.left)>1}var vn={},Jt={};function Pn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),vn[a]=y}function mn(a,y){Jt[a]=y}function kn(a){if(typeof a=="string"&&Jt.hasOwnProperty(a))a=Jt[a];else if(a&&typeof a.name=="string"&&Jt.hasOwnProperty(a.name)){var y=Jt[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 kn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return kn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function jn(a,y){y=kn(y);var x=vn[y.name];if(!x)return jn(a,"text/plain");var b=x(a,y);if(Zn.hasOwnProperty(y.name)){var E=Zn[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 Zn={};function An(a,y){var x=Zn.hasOwnProperty(a)?Zn[a]:Zn[a]={};At(y,x)}function Yn(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 Nn(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 ar(a,y,x){return a.startState?a.startState(y,x):!0}var qn=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};qn.prototype.eol=function(){return this.pos>=this.string.length},qn.prototype.sol=function(){return this.pos==this.lineStart},qn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qn.prototype.next=function(){if(this.posy},qn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},qn.prototype.skipToEnd=function(){this.pos=this.string.length},qn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},qn.prototype.backUp=function(a){this.pos-=a},qn.prototype.column=function(){return this.lastColumnPos0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},qn.prototype.current=function(){return this.string.slice(this.start,this.pos)},qn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},qn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},qn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Ft(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=a.first&&yx?Ee(x,Ft(a,x).text.length):He(y,Ft(a,y.line).text.length)}function He(a,y){var x=a.ch;return x==null||x>y?Ee(a.line,y):x<0?Ee(a.line,0):a}function nt(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},Xt.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}},Xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xt.fromSaved=function(a,y,x){return y instanceof en?new Xt(a,Yn(a.mode,y.state),x,y.lookAhead):new Xt(a,Yn(a.mode,y),x)},Xt.prototype.save=function(a){var y=a!==!1?Yn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new en(y,this.maxLookAhead):y};function qt(a,y,x,b){var E=[a.state.modeGen],re={};Vn(a,y.text,a.doc.mode,x,function(me,Ue){return E.push(me,Ue)},re,b);for(var le=x.state,ce=function(me){x.baseTokens=E;var Ue=a.state.overlays[me],lt=1,Ht=0;x.state=!0,Vn(a,y.text,Ue.mode,x,function(Nt,fn){for(var In=lt;HtNt&&E.splice(lt,1,Nt,E[lt+1],Rn),lt+=2,Ht=Math.min(Nt,Rn)}if(fn)if(Ue.opaque)E.splice(In,lt-In,Nt,"overlay "+fn),lt=In+2;else for(;Ina.options.maxHighlightLength&&Yn(a.doc.mode,b.state),re=qt(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 Ln(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new Xt(b,!0,y);var re=Xn(a,y,x),le=re>b.first&&Ft(b,re-1).stateAfter,ce=le?Xt.fromSaved(b,le,re):new Xt(b,ar(b.mode),re);return b.iter(re,y,function(de){Hn(a,de.text,ce);var me=ce.line;de.stateAfter=me==y-1||me%5==0||me>=E.viewFrom&&mey.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var On=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Fn(a,y,x,b){var E=a.doc,re=E.mode,le;y=ze(E,y);var ce=Ft(E,y.line),de=Ln(a,y.line,x),me=new qn(ce.text,a.options.tabSize,de),Ue;for(b&&(Ue=[]);(b||me.posa.options.maxHighlightLength?(ce=!1,le&&Hn(a,y,b,Ue.pos),Ue.pos=y.length,lt=null):lt=_n(xn(x,Ue,b.state,Ht),re),Ht){var Nt=Ht[0].name;Nt&&(lt="m-"+(lt?Nt+" "+lt:Nt))}if(!ce||me!=lt){for(;dele;--ce){if(ce<=re.first)return re.first;var de=Ft(re,ce-1),me=de.stateAfter;if(me&&(!x||ce+(me instanceof en?me.lookAhead:0)<=re.modeFrontier))return ce;var Ue=ye(de.text,null,a.options.tabSize);(E==null||b>Ue)&&(E=ce-1,b=Ue)}return E}function wn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=Ft(a,b).stateAfter;if(E&&(!(E instanceof en)||b+E.lookAhead=y:re.to>y);(b||(b=[])).push(new sr(le,re.from,de?null:re.to))}}return b}function Qn(a,y,x){var b;if(a)for(var E=0;E=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.from0&&ce)for(var or=0;or0)){var Ue=[de,1],lt=$e(me.from,ce.from),Ht=$e(me.to,ce.to);(lt<0||!le.inclusiveLeft&&!lt)&&Ue.push({from:me.from,to:ce.from}),(Ht>0||!le.inclusiveRight&&!Ht)&&Ue.push({from:ce.to,to:me.to}),E.splice.apply(E,Ue),de+=Ue.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||ir(b,re.marker)<0)&&(b=re.marker)}return b}function hn(a,y,x,b,E){var re=Ft(a,y),le=Wn&&re.markedSpans;if(le)for(var ce=0;ce=0&<<=0||Ue<=0&<>=0)&&(Ue<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?$e(me.to,x)>=0:$e(me.to,x)>0)||Ue>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?$e(me.from,b)<=0:$e(me.from,b)<0)))return!0}}}function tn(a){for(var y;y=Jn(a);)a=y.find(-1,!0).line;return a}function Bn(a){for(var y;y=un(a);)a=y.find(1,!0).line;return a}function Gn(a){for(var y,x;y=un(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function dn(a,y){var x=Ft(a,y),b=tn(x);return x==b?y:Fe(b)}function nn(a,y){if(y>a.lastLine())return y;var x=Ft(a,y),b;if(!En(a,x))return y;for(;b=un(x);)x=b.find(1,!0).line;return Fe(x)+1}function En(a,y){var x=Wn&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Rr=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};Rr.prototype.lineNo=function(){return Fe(this)},De(Rr);function Ar(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),Br(a,x);var E=b?b(a):1;E!=a.height&&nr(a,E)}function Fr(a){a.parent=null,Er(a)}var Vr={},Hr={};function Xr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Hr:Vr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=St("span",null,null,Ne?"padding-right: .1px":null),b={pre:St("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Cn(a.display.measure)&&(le=Kt(re,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Fe(re);jr(re,b,Dn(a,re,ce)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=Tt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=Tt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(cn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ne){var de=b.content.lastChild;(/\bcm-tab\b/.test(de.className)||de.querySelector&&de.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return on(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Tt(b.pre.className,b.textClass||"")),b}function Ei(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 Ni(a,y,x,b,E,re,le){if(y){var ce=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,me=!1,Ue;if(!de.test(y))a.col+=y.length,Ue=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,Ue),be&&we<9&&(me=!0),a.pos+=y.length;else{Ue=document.createDocumentFragment();for(var lt=0;;){de.lastIndex=lt;var Ht=de.exec(y),Nt=Ht?Ht.index-lt:y.length-lt;if(Nt){var fn=document.createTextNode(ce.slice(lt,lt+Nt));be&&we<9?Ue.appendChild(tt("span",[fn])):Ue.appendChild(fn),a.map.push(a.pos,a.pos+Nt,fn),a.col+=Nt,a.pos+=Nt}if(!Ht)break;lt+=Nt+1;var In=void 0;if(Ht[0]==" "){var Rn=a.cm.options.tabSize,Un=Rn-a.col%Rn;In=Ue.appendChild(tt("span",$t(Un),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),a.col+=Un}else Ht[0]=="\r"||Ht[0]==` `?(In=Ue.appendChild(tt("span",Ht[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Ht[0]),a.col+=1):(In=a.cm.options.specialCharPlaceholder(Ht[0]),In.setAttribute("cm-text",Ht[0]),be&&we<9?Ue.appendChild(tt("span",[In])):Ue.appendChild(In),a.col+=1);a.map.push(a.pos,a.pos+1,In),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||me||re||le){var tr=x||"";b&&(tr+=b),E&&(tr+=E);var Kn=tt("span",[Ue],tr,re);if(le)for(var or in le)le.hasOwnProperty(or)&&or!="style"&&or!="class"&&Kn.setAttribute(or,le[or]);return a.content.appendChild(Kn)}a.content.appendChild(Ue)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Eme&<.from<=me));Ht++);if(lt.to>=Ue)return a(x,b,E,re,le,ce,de);a(x,b.slice(0,lt.to-me),E,re,null,ce,de),re=null,b=b.slice(lt.to-me),me=lt.to}}}function Ri(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function jr(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;lede||Lr.collapsed&&hr.to==de&&hr.from==de)){if(hr.to!=null&&hr.to!=de&&Nt>hr.to&&(Nt=hr.to,In=""),Lr.className&&(fn+=" "+Lr.className),Lr.css&&(Ht=(Ht?Ht+";":"")+Lr.css),Lr.startStyle&&hr.from==de&&(Rn+=" "+Lr.startStyle),Lr.endStyle&&hr.to==Nt&&(or||(or=[])).push(Lr.endStyle,hr.to),Lr.title&&((tr||(tr={})).title=Lr.title),Lr.attributes)for(var _r in Lr.attributes)(tr||(tr={}))[_r]=Lr.attributes[_r];Lr.collapsed&&(!Un||ir(Un.marker,Lr)<0)&&(Un=hr)}else hr.from>de&&Nt>hr.from&&(Nt=hr.from)}if(or)for(var mi=0;mi=ce)break;for(var ji=Math.min(ce,Nt);;){if(Ue){var Li=de+Ue.length;if(!Un){var ai=Li>ji?Ue.slice(0,ji-de):Ue;y.addToken(y,ai,lt?lt+fn:fn,Rn,de+ai.length==Nt?In:"",Ht,tr)}if(Li>=ji){Ue=Ue.slice(ji-de),de=ji;break}de=Li,Rn=""}Ue=E.slice(re,re=x[me++]),lt=Xr(x[me++],y.cm.options)}}}function Ki(a,y,x){this.line=y,this.rest=Gn(y),this.size=this.rest?Fe(je(this.rest))-x+1:1,this.node=this.text=null,this.hidden=En(a,y)}function qr(a,y,x){for(var b=[],E,re=y;re2&&re.push((de.bottom+me.top)/2-x.top)}}re.push(x.bottom-x.top)}}function ko(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Ga(a,y){y=tn(y);var x=Fe(y),b=a.display.externalMeasured=new Ki(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,st(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Vi(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(re=de-ce,E=re-1,y>=de&&(le="right")),E!=null){if(b=a[me+2],ce==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;me&&a[me-2]==a[me-3]&&a[me-1].insertLeft;)b=a[(me-=3)+2],le="left";if(x=="right"&&E==de-ce)for(;me=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,me;if(re.nodeType==3){for(var Ue=0;Ue<4;Ue++){for(;le&&xe(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce0&&(de=b="right");var lt;a.options.lineWrapping&&(lt=re.getClientRects()).length>1?me=lt[b=="right"?lt.length-1:0]:me=re.getBoundingClientRect()}if(be&&we<9&&!le&&(!me||!me.left&&!me.right)){var Ht=re.parentNode.getClientRects()[0];Ht?me={left:Ht.left,right:Ht.left+Ji(a.display),top:Ht.top,bottom:Ht.bottom}:me=ba}for(var Nt=me.top-y.rect.top,fn=me.bottom-y.rect.top,In=(Nt+fn)/2,Rn=y.view.measure.heights,Un=0;Un=b.text.length?(de=b.text.length,me="before"):de<=0&&(de=0,me="after"),!ce)return le(me=="before"?de-1:de,me=="before");function Ue(fn,In,Rn){var Un=ce[In],tr=Un.level==1;return le(Rn?fn-1:fn,tr!=Rn)}var lt=Mt(ce,de,me),Ht=dt,Nt=Ue(de,lt,me=="before");return Ht!=null&&(Nt.other=Ue(de,Ht,me!="before")),Nt}function Wr(a,y){var x=0;y=ze(a.doc,y),a.options.lineWrapping||(x=Ji(a.display)*y.ch);var b=Ft(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Dr(a,y,x,b,E){var re=Ee(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Dr(b.first,0,null,-1,-1);var E=ot(b,x),re=b.first+b.size-1;if(E>re)return Dr(b.first+b.size-1,Ft(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=Ft(b,E);;){var ce=_i(a,le,E,y,x),de=pn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!de)return ce;var me=de.find(1);if(me.line==E)return me;le=Ft(b,E=me.line)}}function Ci(a,y,x,b){b-=_o(y);var E=y.text.length,re=Pe(function(le){return Vi(a,x,le-1).bottom<=b},E,0);return E=Pe(function(le){return Vi(a,x,le).top>b},re,E),{begin:re,end:E}}function ii(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Vi(a,x,b),"line").top;return Ci(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function _i(a,y,x,b,E){E-=cr(y);var re=uo(a,y),le=_o(y),ce=0,de=y.text.length,me=!0,Ue=Kt(y,a.doc.direction);if(Ue){var lt=(a.options.lineWrapping?oo:Ui)(a,y,x,re,Ue,b,E);me=lt.level!=1,ce=me?lt.from:lt.to-1,de=me?lt.to:lt.from-1}var Ht=null,Nt=null,fn=Pe(function(vr){var hr=Vi(a,re,vr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(Ht=vr,Nt=hr),!0):!1},ce,de),In,Rn,Un=!1;if(Nt){var tr=b-Nt.left=or.bottom?1:0}return fn=vt(y.text,fn,1),Dr(x,fn,Rn,Un,b-In)}function Ui(a,y,x,b,E,re,le){var ce=Pe(function(lt){var Ht=E[lt],Nt=Ht.level!=1;return ci(Di(a,Ee(x,Nt?Ht.to:Ht.from,Nt?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ce];if(ce>0){var me=de.level!=1,Ue=Di(a,Ee(x,me?de.from:de.to,me?"after":"before"),"line",y,b);ci(Ue,re,le,!0)&&Ue.top>le&&(de=E[ce-1])}return de}function oo(a,y,x,b,E,re,le){var ce=Ci(a,y,b,le),de=ce.begin,me=ce.end;/\s/.test(y.text.charAt(me-1))&&me--;for(var Ue=null,lt=null,Ht=0;Ht=me||Nt.to<=de)){var fn=Nt.level!=1,In=Vi(a,b,fn?Math.min(me,Nt.to)-1:Math.max(de,Nt.from)).right,Rn=InRn)&&(Ue=Nt,lt=Rn)}}return Ue||(Ue=E[E.length-1]),Ue.fromme&&(Ue={from:Ue.from,to:me,level:Ue.level}),Ue}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=tt("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(tt("br"));$i.appendChild(document.createTextNode("x"))}st(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),kt(a.measure),x||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=tt("span","xxxxxxxxxx"),x=tt("pre",[y],"CodeMirror-line-like");st(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:Ka(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ka(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=zi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ji(a.display)-3);return function(E){if(En(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le0&&(me=Ft(a.doc,de.line).text).length==de.ch){var Ue=ye(me,me.length,a.options.tabSize)-me.length;de=Ee(de.line,Math.max(0,Math.round((re-eo(a.display).left)/Ji(a.display))-Ue))}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;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Wn&&dn(a.doc,y)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(qr(a,ce.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var me=E.externalMeasured;me&&(x=E.lineN&&y=b.viewTo)){var re=b.view[wo(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);Te(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(!Wn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,de=0;de0){if(E==le.length-1)return null;re=ce+le[E].size-y,E++}else re=ce-y;y+=re,x+=re}for(;dn(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 zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(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=a.display.viewTo||ce.to().line0?y.blinker=setInterval(function(){a.hasFocus()||Bo(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(),_a(a))}function Ol(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Bo(a))},100)}function _a(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(on(a,"focus",a,y),a.state.focused=!0,pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ne&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ya(a))}function Bo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(on(a,"blur",a,y),a.state.focused=!1,Qe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Oa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||Ue<-.005)&&(nr(E.line,le),Pl(E.line),E.rest))for(var lt=0;lta.display.sizerWidth){var Ht=Math.ceil(ce/Ji(a.display));Ht>a.display.maxLineLength&&(a.display.maxLineLength=Ht,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Pl(a){if(a.widgets)for(var y=0;y=le&&(re=ot(y,cr(Ft(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function js(a,y){if(!It(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&&!Pt){var re=tt("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-ri(a.display))+`px; height: `+(y.bottom-y.top+Fi(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Ee(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Ee(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ce=Di(a,y),de=!x||x==y?ce:Di(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 me=Ja(a,E),Ue=a.doc.scrollTop,lt=a.doc.scrollLeft;if(me.scrollTop!=null&&(qo(a,me.scrollTop),Math.abs(a.doc.scrollTop-Ue)>1&&(le=!0)),me.scrollLeft!=null&&(Eo(a,me.scrollLeft),Math.abs(a.doc.scrollLeft-lt)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=zi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=io(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ce=a.doc.height+Gi(x),de=y.topce-b;if(y.topE+re){var Ue=Math.min(y.top,(me?ce:y.bottom)-re);Ue!=E&&(le.scrollTop=Ue)}var lt=a.options.fixedGutter?0:x.gutters.offsetWidth,Ht=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-lt,Nt=to(a)-x.gutters.offsetWidth,fn=y.right-y.left>Nt;return fn&&(y.right=y.left+Nt),y.left<10?le.scrollLeft=0:y.leftNt+Ht-3&&(le.scrollLeft=y.right+(fn?0:10)-Nt),le}function Qa(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 Qo(a,y,x){(y!=null||x!=null)&&Ma(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gs(a,y){Ma(a),a.curOp.scrollToPos=y}function Ma(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Wr(a,y.from),b=Wr(a,y.to);Ml(a,x,b,y.margin)}}function Ml(a,y,x,b){var E=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Dl(a,y,!0),z&&el(a),na(a,100))}function Dl(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+Gi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Fi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=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),zt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),zt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&we<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=Ae&&!Se?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new se,this.disableVert=new se},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;kl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Oa(a),kl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function kl(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 Ll(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Qe(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),zt(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&&pe(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Oo(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},$r(a.curOp)}function Po(a){var y=a.curOp;y&&Sr(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Da(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Xs(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Ys(a){var y=a.cm,x=y.display;a.updatedDisplay&&Oa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Fi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function _s(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Ln(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?Yn(y.mode,b.state):null,de=qt(a,re,b,!0);ce&&(b.state=ce),re.styles=de.styles;var me=re.styleClasses,Ue=de.classes;Ue?re.styleClasses=Ue:me&&(re.styleClasses=null);for(var lt=!le||le.length!=re.styles.length||me!=Ue&&(!me||!Ue||me.bgClass!=Ue.bgClass||me.textClass!=Ue.textClass),Ht=0;!lt&&Htx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Hi(a,function(){for(var re=0;re=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.viewFromle&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),Wn&&(re=dn(a.doc,re),le=nn(a.doc,le));var ce=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=cr(Ft(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 me=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(me),kt(x.cursorDiv),kt(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 Bl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Gi(a.display)-io(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;Oa(a);var E=ea(a);Jo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Da(a,y);if(qa(a,x)){Oa(a),Bl(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ce(fn){var In=fn.nextSibling;return Ne&&Ae&&a.display.currentWheelTarget==fn?fn.style.display="none":fn.parentNode.removeChild(fn),In}for(var de=b.view,me=b.viewFrom,Ue=0;Ue-1&&(Nt=!1),Mi(a,lt,me,x)),Nt&&(kt(lt.lineNumber),lt.lineNumber.appendChild(document.createTextNode(Re(a.options,me)))),le=lt.node.nextSibling}me+=lt.size}for(;le;)le=ce(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Fi(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ka(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,re=b+"px",le=0;lele.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ce||E&&de){if(E&&Ae&&Ne){e:for(var me=y.target,Ue=re.view;me!=le;me=me.parentNode)for(var lt=0;lt=0&&$e(a,b.to())<=0)return x}return-1};var Ur=function(a,y){this.anchor=a,this.head=y};Ur.prototype.from=function(){return ht(this.anchor,this.head)},Ur.prototype.to=function(){return qe(this.anchor,this.head)},Ur.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Ht,Nt){return $e(Ht.from(),Nt.from())}),x=Te(y,E);for(var re=1;re0:de>=0){var me=ht(ce.from(),le.from()),Ue=qe(ce.to(),le.to()),lt=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Ur(lt?Ue:me,lt?me:Ue))}}return new Zi(y,x)}function po(a,y){return new Zi([new Ur(a,y||a)],0)}function mo(a){return a.text?Ee(a.from.line+a.text.length-1,je(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if($e(a,y.from)<0)return a;if($e(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),Ee(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ce.line+1,fn-1),a.insert(ce.line+1,Un)}Tr(a,"change",a,y)}function go(a,y,x){function b(E,re,le){if(E.linked)for(var ce=0;ce1&&!a.done[a.done.length-2].ranges)return a.done.pop(),je(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=je(le.changes),$e(y.from,y.to)==0&&$e(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var de=je(E.done);for((!de||!de.ranges)&&La(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||on(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,je(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gl(E.undone)}function La(a,y){var x=je(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Ul(a,y,x,b){var E=y["spans_"+a.id],re=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(je(ce)[lt]=me[lt],delete me[lt])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=$e(y,E)<0;re!=$e(x,E)<0?(E=y,y=x):re!=$e(y,x)<0&&(y=x)}return new Ur(E,y)}else return new Ur(x||y,y)}function Ba(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Si(a,new Zi([sl(a.sel.primary(),y,x,E)],0),b)}function Xl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re=y.ch:ce.to>y.ch))){if(E&&(on(de,"beforeCursorEnter"),de.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var lt=de.find(b<0?1:-1),Ht=void 0;if((b<0?Ue:me)&&(lt=es(a,lt,-b,lt&<.line==y.line?re:null)),lt&<.line==y.line&&(Ht=$e(lt,x))&&(b<0?Ht<0:Ht>0))return Fo(a,lt,y,b,E)}var Nt=de.find(b<0?-1:1);return(b<0?me:Ue)&&(Nt=es(a,Nt,b,Nt.line==y.line?re:null)),Nt?Fo(a,Nt,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,Ee(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?ze(a,Ee(y.line-1)):null:x>0&&y.ch==(b||Ft(a,y.line)).text.length?y.line=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]==""&&$e(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,mr(a,y));var b=[];go(a,function(E,re){!re&&Te(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ce=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,me=0;me=0;--Nt){var fn=Ht(Nt);if(fn)return fn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Zi(Gt(a.sel.ranges,function(E){return new Ur(Ee(E.anchor.line+y,E.anchor.ch),Ee(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){ki(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.linere&&(y={from:y.from,to:Ee(re,Ft(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=rn(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,Ie),a.cantEdit&&Na(a,Ee(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=Fe(tn(Ft(b,re.line))),b.iter(de,le.line+1,function(Nt){if(Nt==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(Nt){var fn=kr(Nt);fn>E.maxLineLength&&(E.maxLine=Nt,E.maxLineLength=fn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),wn(b,re.line),na(a,400);var me=y.text.length-(le.line-re.line)-1;y.full?ki(a):re.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,re.line,"text"):ki(a,re.line,le.line+1,me);var Ue=Wt(a,"changes"),lt=Wt(a,"change");if(lt||Ue){var Ht={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};lt&&Tr(a,"change",a,Ht),Ue&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ht)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var re;b||(b=x),$e(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x1||!(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;y50){for(var le=E.lines.length%25+25,ce=le;ce10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=me,a.display.maxLineLength=Ue,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&ki(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Tr(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;E0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=St("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(hn(a,y.line,y,x,re)||y.line!=x.line&&hn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}re.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,de=a.cm,me;if(a.iter(ce,x.line+1,function(lt){de&&re.collapsed&&!de.options.lineWrapping&&tn(lt)==de.display.maxLine&&(me=!0),re.collapsed&&ce!=y.line&&nr(lt,0),lr(lt,new sr(re,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),re.collapsed&&a.iter(y.line,x.line+1,function(lt){En(a,lt)&&nr(lt,0)}),re.clearOnEnter&&zt(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),de){if(me&&(de.curOp.updateMaxLine=!0),re.collapsed)ki(de,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ue=y.line;Ue<=x.line;Ue++)fo(de,Ue,"text");re.atomic&&Ql(de.doc),Tr(de,"markerAdded",de,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;de--)$o(this,b[de]);ce?_l(this,ce):this.cm&&Ao(this.cm)}),undo:pi(function(){Ra(this,"undo")}),redo:pi(function(){Ra(this,"redo")}),undoSelection:pi(function(){Ra(this,"undo",!0)}),redoSelection:pi(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=ze(this,a),y=ze(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ce=0;ce=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;ba)return y=a,!0;a-=re,++x}),ze(this,Ee(x,y))},indexFromPos:function(a){a=ze(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ue=a.dataTransfer.getData("Text");if(Ue){var lt;if(y.state.draggingText&&!y.state.draggingText.copy&&(lt=y.listSelections()),Aa(y.doc,po(x,x)),lt)for(var Ht=0;Ht=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");Ao(a)})}function cl(a,y,x){var b=vt(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 Ee(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?je(re):re[0],ce=E<0==(le.level==1),de=ce?"after":"before",me;if(le.level>0||y.doc.direction=="rtl"){var Ue=uo(y,x);me=E<0?x.text.length-1:0;var lt=Vi(y,Ue,me).top;me=Pe(function(Ht){return Vi(y,Ue,Ht).top==lt},E<0==(le.level==1)?le.from:le.to-1,me),de=="before"&&(me=cl(x,me,1))}else me=E<0?le.to:le.from;return new Ee(b,me,de)}}return new Ee(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=Mt(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=le.from&&Ht>=Ue.begin)){var Nt=lt?"before":"after";return new Ee(x.line,Ht,Nt)}}var fn=function(Un,tr,Kn){for(var or=function(_r,mi){return mi?new Ee(x.line,ce(_r,1),"before"):new Ee(x.line,_r,"after")};Un>=0&&Un0==(vr.level!=1),Lr=hr?Kn.begin:ce(Kn.end,-1);if(vr.from<=Lr&&Lr0?Ue.end:ce(Ue.begin,-1);return Rn!=null&&!(b>0&&Rn==y.text.length)&&(In=fn(b>0?0:E.length-1,b,me(Rn)),In)?In:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ie)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=Ft(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new Ee(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Ee(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Ft(a.doc,E.line-1).text;le&&(E=new Ee(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Ee(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Ur(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Hi(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;ba&&$e(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(!(It(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,vi(x,a)){Ne||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=ft(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):Ye(a)==x.scroller&&it(a):E==2?(b&&Ba(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(mt?y.display.input.onContextMenu(a):Ol(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)!=Et}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=xt?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=Ae?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Ae?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){be?setTimeout(Ge(Il,a),0):a.curOp.focus=ut();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&Bt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&($e((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&($e(le.to(),y)>0||y.xRel<0)?$u(a,b,y,E):zu(a,b,y,E)}function $u(a,y,x,b){var E=a.display,re=!1,le=hi(a,function(me){Ne&&(E.scroller.draggable=!1),a.state.draggingText=!1,_t(E.wrapper.ownerDocument,"mouseup",le),_t(E.wrapper.ownerDocument,"mousemove",ce),_t(E.scroller,"dragstart",de),_t(E.scroller,"drop",le),re||(it(me),b.addNew||Ba(a.doc,x,null,null,b.extend),Ne&&!Je||be&&we==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(me){re=re||Math.abs(y.clientX-me.clientX)+Math.abs(y.clientY-me.clientY)>=10},de=function(){return re=!0};Ne&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),zt(E.wrapper.ownerDocument,"mouseup",le),zt(E.wrapper.ownerDocument,"mousemove",ce),zt(E.scroller,"dragstart",de),zt(E.scroller,"drop",le),Ol(a),setTimeout(function(){return E.input.focus()},20)}function Os(a,y,x){if(x=="char")return new Ur(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Ur(Ee(y.line,0),ze(a.doc,Ee(y.line+1,0)));var b=x(a,y);return new Ur(b.from,b.to)}function zu(a,y,x,b){var E=a.display,re=a.doc;it(y);var le,ce,de=re.sel,me=de.ranges;if(b.addNew&&!b.extend?(ce=re.sel.contains(x),ce>-1?le=me[ce]:le=new Ur(x,x)):(le=re.sel.primary(),ce=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Ur(x,x)),x=So(a,y,!0,!0),ce=-1;else{var Ue=Os(a,x,b.unit);b.extend?le=sl(le,Ue.anchor,Ue.head,b.extend):le=Ue}b.addNew?ce==-1?(ce=me.length,Si(re,Qi(a,me.concat([le]),ce),{scroll:!1,origin:"*mouse"})):me.length>1&&me[ce].empty()&&b.unit=="char"&&!b.extend?(Si(re,Qi(a,me.slice(0,ce).concat(me.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),de=re.sel):ul(re,ce,le,_e):(ce=0,Si(re,new Zi([le],0),_e),de=re.sel);var lt=x;function Ht(Kn){if($e(lt,Kn)!=0)if(lt=Kn,b.unit=="rectangle"){for(var or=[],vr=a.options.tabSize,hr=ye(Ft(re,x.line).text,x.ch,vr),Lr=ye(Ft(re,Kn.line).text,Kn.ch,vr),_r=Math.min(hr,Lr),mi=Math.max(hr,Lr),Qr=Math.min(x.line,Kn.line),ji=Math.min(a.lastLine(),Math.max(x.line,Kn.line));Qr<=ji;Qr++){var Li=Ft(re,Qr).text,ai=Yt(Li,_r,vr);_r==mi?or.push(new Ur(Ee(Qr,ai),Ee(Qr,ai))):Li.length>ai&&or.push(new Ur(Ee(Qr,ai),Ee(Qr,Yt(Li,mi,vr))))}or.length||or.push(new Ur(x,x)),Si(re,Qi(a,de.ranges.slice(0,ce).concat(or),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Kn)}else{var Bi=le,bi=Os(a,Kn,b.unit),di=Bi.anchor,li;$e(bi.anchor,di)>0?(li=bi.head,di=ht(Bi.from(),bi.anchor)):(li=bi.anchor,di=qe(Bi.to(),bi.head));var ei=de.ranges.slice(0);ei[ce]=Hu(a,new Ur(ze(re,di),li)),Si(re,Qi(a,ei,ce),_e)}}var Nt=E.wrapper.getBoundingClientRect(),fn=0;function In(Kn){var or=++fn,vr=So(a,Kn,!0,b.unit=="rectangle");if(vr)if($e(vr,lt)!=0){a.curOp.focus=ut(),Ht(vr);var hr=Pa(E,re);(vr.line>=hr.to||vr.lineNt.bottom?20:0;Lr&&setTimeout(hi(a,function(){fn==or&&(E.scroller.scrollTop+=Lr,In(Kn))}),50)}}function Rn(Kn){a.state.selectingText=!1,fn=1/0,Kn&&(it(Kn),E.input.focus()),_t(E.wrapper.ownerDocument,"mousemove",Un),_t(E.wrapper.ownerDocument,"mouseup",tr),re.history.lastSelOrigin=null}var Un=hi(a,function(Kn){Kn.buttons===0||!ft(Kn)?Rn(Kn):In(Kn)}),tr=hi(a,Rn);a.state.selectingText=tr,zt(E.wrapper.ownerDocument,"mousemove",Un),zt(E.wrapper.ownerDocument,"mouseup",tr)}function Hu(a,y){var x=y.anchor,b=y.head,E=Ft(a.doc,x.line);if($e(x,b)==0&&x.sticky==b.sticky)return y;var re=Kt(E);if(!re)return y;var le=Mt(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 me;if(b.line!=x.line)me=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ue=Mt(re,b.ch,b.sticky),lt=Ue-le||(b.ch-x.ch)*(ce.level==1?-1:1);Ue==de-1||Ue==de?me=lt<0:me=lt>0}var Ht=re[de+(me?-1:0)],Nt=me==(Ht.level==1),fn=Nt?Ht.from:Ht.to,In=Nt?"after":"before";return x.ch==fn&&x.sticky==In?y:new Ur(new Ee(x.line,fn,In),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(Ht){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&it(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(re>ce.bottom||!Wt(a,x))return jt(y);re-=ce.top-le.viewOffset;for(var de=0;de=E){var Ue=ot(a.doc,re),lt=a.display.gutterSpecs[de];return on(a,x,a,Ue,lt.className,y),jt(y)}}}function ml(a,y){return Ps(a,y,"gutterClick",!0)}function Ms(a,y){vi(a.display,y)||ju(a,y)||It(a,y,"contextmenu")||mt||a.display.input.onContextMenu(y)}function ju(a,y){return Wt(a,"gutterContextMenu")?Ps(a,y,"gutterContextMenu",!1):!1}function Ds(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 Zo={toString:function(){return"CodeMirror.Init"}},ks={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ce,de,me){me!=Zo&&re(ce,de,me)}:re)}a.defineOption=x,a.Init=Zo,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),ki(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 me=0;;){var Ue=de.text.indexOf(E,me);if(Ue==-1)break;me=Ue+E.length,re.push(Ee(le,Ue))}le++});for(var ce=re.length-1;ce>=0;ce--)zo(b.doc,E,re[ce],Ee(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!=Zo&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Le?"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",!Ot),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ds(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=$a(E),ce=re!=Zo&&$a(re);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Gu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ka(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ll(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Bo(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,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,re=y?zt:_t;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 Gu(a){a.options.lineWrapping?(pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Qe(a.display.wrapper,"CodeMirror-wrap"),Or(a)),Xa(a),ki(a),Co(a),setTimeout(function(){return No(a)},100)}function Jr(a,y){var x=this;if(!(this instanceof Jr))return new Jr(a,y);this.options=y=y?At(y):{},At(ks,y,!1);var b=y.value;typeof b=="string"?b=new Ti(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Jr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Ds(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ll(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 se,keySeq:null,specialChars:null},y.autofocus&&!Le&&re.input.focus(),be&&we<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Oo(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Le||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&_a(x)},20):Bo(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce20*20}zt(y.scroller,"touchstart",function(de){if(!It(a,de)&&!re(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var me=+new Date;y.activeTouch={start:me,moved:!1,prev:me-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),zt(y.scroller,"touchend",function(de){var me=y.activeTouch;if(me&&!vi(y,de)&&me.left!=null&&!me.moved&&new Date-me.start<300){var Ue=a.coordsChar(y.activeTouch,"page"),lt;!me.prev||le(me,me.prev)?lt=new Ur(Ue,Ue):!me.prev.prev||le(me,me.prev.prev)?lt=a.findWordAt(Ue):lt=new Ur(Ee(Ue.line,0),ze(a.doc,Ee(Ue.line+1,0))),a.setSelection(lt.anchor,lt.head),a.focus(),it(de)}E()}),zt(y.scroller,"touchcancel",E),zt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),on(a,"scroll",a))}),zt(y.scroller,"mousewheel",function(de){return $l(a,de)}),zt(y.scroller,"DOMMouseScroll",function(de){return $l(a,de)}),zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){It(a,de)||Oe(de)},over:function(de){It(a,de)||(Cu(a,de),Oe(de))},start:function(de){return xu(a,de)},drop:hi(a,bu),leave:function(de){It(a,de)||fs(a)}};var ce=y.input.getField();zt(ce,"keyup",function(de){return ws.call(a,de)}),zt(ce,"keydown",hi(a,Ss)),zt(ce,"keypress",hi(a,Es)),zt(ce,"focus",function(de){return _a(a,de)}),zt(ce,"blur",function(de){return Bo(a,de)})}var gl=[];Jr.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=Ln(a,y).state:x="prev");var le=a.options.tabSize,ce=Ft(E,y),de=ye(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var me=ce.text.match(/^\s*/)[0],Ue;if(!b&&!/\S/.test(ce.text))Ue=0,x="not";else if(x=="smart"&&(Ue=E.mode.indent(re,ce.text.slice(me.length),ce.text),Ue==Et||Ue>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ue=ye(Ft(E,y-1).text,null,le):Ue=0:x=="add"?Ue=de+a.options.indentUnit:x=="subtract"?Ue=de-a.options.indentUnit:typeof x=="number"&&(Ue=de+x),Ue=Math.max(0,Ue);var lt="",Ht=0;if(a.options.indentWithTabs)for(var Nt=Math.floor(Ue/le);Nt;--Nt)Ht+=le,lt+=" ";if(Htle,de=sn(y),me=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(` `)==y){if(b.ranges.length%qi.text.length==0){me=[];for(var Ue=0;Ue=0;Ht--){var Nt=b.ranges[Ht],fn=Nt.from(),In=Nt.to();Nt.empty()&&(x&&x>0?fn=Ee(fn.line,fn.ch-x):a.state.overwrite&&!ce?In=Ee(In.line,Math.min(Ft(re,In.line).text.length,In.ch+je(de).length)):ce&&qi&&qi.lineWise&&qi.text.join(` `)==de.join(` `)&&(fn=In=Ee(fn.line,0)));var Rn={from:fn,to:In,text:me?me[Ht%me.length]:de,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Rn),Tr(a,"inputRead",a,Rn)}y&&!ce&&Ls(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=lt),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&&Hi(y,function(){return vl(y,x,0,null,"paste")}),!0}function Ls(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-1){le=va(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(Ft(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Tr(a,"electricInput",a,E.head.line)}}}function Bs(a){for(var y=[],x=[],b=0;bre&&(va(this,ce.head.line,b,!0),re=ce.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ce.from(),me=ce.to(),Ue=Math.max(re,de.line);re=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var lt=Ue;lt0&&ul(this.doc,le,new Ur(de,Ht[le].to()),Ie)}}}),getTokenAt:function(b,E){return Fn(this,b,E)},getLineTokens:function(b,E){return Fn(this,Ee(b),E,!0)},getTokenTypeAt:function(b){b=ze(this.doc,b);var E=Dn(this,Ft(this.doc,b.line)),re=0,le=(E.length-1)/2,ce=b.ch,de;if(ce==0)de=E[2];else for(;;){var me=re+le>>1;if((me?E[me*2-1]:0)>=ce)le=me;else if(E[me*2+1]de&&(b=de,le=!0),ce=Ft(this.doc,b)}else ce=b;return To(this,ce,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-cr(ce):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Ji(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=Di(this,ze(this.doc,b));var me=b.bottom,Ue=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")me=b.top;else if(le=="above"||le=="near"){var lt=Math.max(de.wrapper.clientHeight,this.doc.height),Ht=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>lt)&&b.top>E.offsetHeight?me=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=lt&&(me=b.bottom),Ue+E.offsetWidth>Ht&&(Ue=Ht-E.offsetWidth)}E.style.top=me+"px",E.style.left=E.style.right="",ce=="right"?(Ue=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?Ue=0:ce=="middle"&&(Ue=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ue+"px"),re&&Zs(this,{left:Ue,top:me,right:Ue+E.offsetWidth,bottom:me+E.offsetHeight})},triggerOnKeyDown:Oi(Ss),triggerOnKeyPress:Oi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Oi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Oi(function(b){Ls(this,b)}),findPosH:function(b,E,re,le){var ce=1;E<0&&(ce=-1,E=-E);for(var de=ze(this.doc,b),me=0;me0&&Ue(re.charAt(le-1));)--le;for(;ce.5||this.options.lineWrapping)&&Xa(this),on(this,"refresh",this)}),swapDoc:Oi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Tr(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=Ft(a,y.line),de=E&&a.direction=="rtl"?-x:x;function me(){var tr=y.line+de;return tr=a.first+a.size?!1:(y=new Ee(tr,y.ch,y.sticky),ce=Ft(a,tr))}function Ue(tr){var Kn;if(b=="codepoint"){var or=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(or)?Kn=null:Kn=new Ee(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(or>=55296&&or<56320?2:1))),-x)}else E?Kn=Pu(a.cm,ce,y,x):Kn=dl(ce,y,x);if(Kn==null)if(!tr&&me())y=fl(E,a.cm,ce,y.line,de);else return!1;else y=Kn;return!0}if(b=="char"||b=="codepoint")Ue();else if(b=="column")Ue(!0);else if(b=="word"||b=="group")for(var lt=null,Ht=b=="group",Nt=a.cm&&a.cm.getHelper(y,"wordChars"),fn=!0;!(x<0&&!Ue(!fn));fn=!1){var In=ce.text.charAt(y.ch)||` `,Rn=ue(In,Nt)?"w":Ht&&In==` `?"n":!Ht||/\s/.test(In)?null:"p";if(Ht&&!fn&&!Rn&&(Rn="s"),lt&<!=Rn){x<0&&(x=1,Ue(),y.sticky="after");break}if(Rn&&(lt=Rn),x>0&&!Ue(!fn))break}var Un=Na(a,y,re,le,!0);return ve(re,Un)&&(Un.hitSide=!0),Un}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*zi(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 me;me=yi(a,re,le),!!me.outside;){if(x<0?le<=0:le>=E.height){me.hitSide=!0;break}le+=x*5}return me}var Kr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Kr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;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}zt(E,"paste",function(ce){!re(ce)||It(b,ce)||Ts(ce,b)||we<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),zt(E,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),zt(E,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),zt(E,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),zt(E,"touchstart",function(){return x.forceCompositionEnd()}),zt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!re(ce)||It(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Bs(b);ja({lineWise:!0,text:de.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,Ie),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var me=qi.text.join(` `);if(ce.clipboardData.setData("Text",me),ce.clipboardData.getData("Text")==me){ce.preventDefault();return}}var Ue=Ns(),lt=Ue.firstChild;b.display.lineSpace.insertBefore(Ue,b.display.lineSpace.firstChild),lt.value=qi.text.join(` `);var Ht=document.activeElement;Be(lt),setTimeout(function(){b.display.lineSpace.removeChild(Ue),Ht.focus(),Ht==E&&x.showPrimarySelection()},50)}}zt(E,"copy",le),zt(E,"cut",le)},Kr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Kr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Kr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Kr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Kr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line=y.display.viewFrom&&Fs(y,b)||{node:ce[0].measure.map[2],offset:0},me=E.linea.firstLine()&&(b=Ee(b.line-1,Ft(a.doc,b.line-1).length)),E.ch==Ft(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var re,le,ce;b.line==y.viewFrom||(re=wo(a,b.line))==0?(le=Fe(y.view[0].line),ce=y.view[0].node):(le=Fe(y.view[re].line),ce=y.view[re-1].node.nextSibling);var de=wo(a,E.line),me,Ue;if(de==y.view.length-1?(me=y.viewTo-1,Ue=y.lineDiv.lastChild):(me=Fe(y.view[de+1].line)-1,Ue=y.view[de+1].node.previousSibling),!ce)return!1;for(var lt=a.doc.splitLines(Xu(a,ce,Ue,le,me)),Ht=rn(a.doc,Ee(le,0),Ee(me,Ft(a.doc,me).text.length));lt.length>1&&Ht.length>1;)if(je(lt)==je(Ht))lt.pop(),Ht.pop(),me--;else if(lt[0]==Ht[0])lt.shift(),Ht.shift(),le++;else break;for(var Nt=0,fn=0,In=lt[0],Rn=Ht[0],Un=Math.min(In.length,Rn.length);Ntb.ch&&tr.charCodeAt(tr.length-fn-1)==Kn.charCodeAt(Kn.length-fn-1);)Nt--,fn++;lt[lt.length-1]=tr.slice(0,tr.length-fn).replace(/^\u200b+/,""),lt[0]=lt[0].slice(Nt).replace(/\u200b+$/,"");var vr=Ee(le,Nt),hr=Ee(me,Ht.length?je(Ht).length-fn:0);if(lt.length>1||lt[0]||$e(vr,hr))return zo(a.doc,lt,vr,hr,"+input"),!0},Kr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Kr.prototype.reset=function(){this.forceCompositionEnd()},Kr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Kr.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Kr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return ki(a.cm)})},Kr.prototype.setUneditable=function(a){a.contentEditable="false"},Kr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Kr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Kr.prototype.onContextMenu=function(){},Kr.prototype.resetPosition=function(){},Kr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=Ft(a.doc,y.line),E=ko(x,b,y.line),re=Kt(b,a.doc.direction),le="left";if(re){var ce=Mt(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 Ku(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Go(a,y){return y&&(a.bad=!0),a}function Xu(a,y,x,b,E){var re="",le=!1,ce=a.doc.lineSeparator(),de=!1;function me(Nt){return function(fn){return fn.id==Nt}}function Ue(){le&&(re+=ce,de&&(re+=ce),le=de=!1)}function lt(Nt){Nt&&(Ue(),re+=Nt)}function Ht(Nt){if(Nt.nodeType==1){var fn=Nt.getAttribute("cm-text");if(fn){lt(fn);return}var In=Nt.getAttribute("cm-marker"),Rn;if(In){var Un=a.findMarks(Ee(b,0),Ee(E+1,0),me(+In));Un.length&&(Rn=Un[0].find(0))&<(rn(a.doc,Rn.from,Rn.to).join(ce));return}if(Nt.getAttribute("contenteditable")=="false")return;var tr=/^(pre|div|p|li|table|br)$/i.test(Nt.nodeName);if(!/^br$/i.test(Nt.nodeName)&&Nt.textContent.length==0)return;tr&&Ue();for(var Kn=0;Kn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),zt(E,"paste",function(le){It(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!It(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=Bs(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,Ie):(x.prevInput="",E.value=ce.text.join(` `),Be(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}zt(E,"cut",re),zt(E,"copy",re),zt(a.scroller,"paste",function(le){if(!(vi(a,le)||It(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)}}),zt(a.lineSpace,"selectstart",function(le){vi(a,le)||it(le)}),zt(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"})}}),zt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},oi.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=Di(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;st(x.cursorDiv,a.cursors),st(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},oi.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Be(this.textarea),be&&we>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",be&&we>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Le||ut()!=this.textarea))try{this.textarea.focus()}catch(a){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},oi.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},oi.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||yn(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(be&&we>=9&&this.hasSelection===E||Ae&&/[\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);le1e3||E.indexOf(` `)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){be&&we>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=So(x,a),le=b.scroller.scrollTop;if(!re||fe)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(re)==-1&&hi(x,Si)(x.doc,po(re),Ie);var de=E.style.cssText,me=y.wrapper.style.cssText,Ue=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Ue.top-5)+"px; left: "+(a.clientX-Ue.left-5)+`px; z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var lt;Ne&&(lt=window.scrollY),b.input.focus(),Ne&&window.scrollTo(null,lt),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Nt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ht(){if(E.selectionStart!=null){var In=x.somethingSelected(),Rn="\u200B"+(In?E.value:"");E.value="\u21DA",E.value=Rn,y.prevInput=In?"":"\u200B",E.selectionStart=1,E.selectionEnd=Rn.length,b.selForContextMenu=x.doc.sel}}function Nt(){if(y.contextMenuPending==Nt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=me,E.style.cssText=de,be&&we<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!be||be&&we<9)&&Ht();var In=0,Rn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):In++<10?b.detectingSelectAll=setTimeout(Rn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Rn,200)}}if(be&&we>=9&&Ht(),mt){Oe(a);var fn=function(){_t(window,"mouseup",fn),setTimeout(Nt,20)};zt(window,"mouseup",fn)}else setTimeout(Nt,50)},oi.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function _u(a,y){if(y=y?At(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=ut();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var E;if(a.form&&(zt(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&&(_t(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=Jr(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ce}function Ju(a){a.off=_t,a.on=zt,a.wheelEventPixels=iu,a.Doc=Ti,a.splitLines=sn,a.countColumn=ye,a.findColumn=Yt,a.isWordChar=oe,a.Pass=Et,a.signal=on,a.Line=Rr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=Ee,a.cmpPos=$e,a.modes=vn,a.mimeModes=Jt,a.resolveMode=kn,a.getMode=jn,a.modeExtensions=Zn,a.extendMode=An,a.copyState=Yn,a.startState=ar,a.innerMode=Nn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Ou,a.StringStream=qn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=it,a.e_stopPropagation=Lt,a.e_stop=Oe,a.addClass=pe,a.contains=yt,a.rmClass=Qe,a.keyNames=yo}Wu(Jr),Uu(Jr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ti.prototype)Ti.prototype.hasOwnProperty(Za)&&Te(Qu,Za)<0&&(Jr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Za]));return De(Ti),Jr.inputStyles={textarea:oi,contenteditable:Kr},Jr.defineMode=function(a){!Jr.defaults.mode&&a!="null"&&(Jr.defaults.mode=a),Pn.apply(this,arguments)},Jr.defineMIME=mn,Jr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Jr.defineMIME("text/plain","null"),Jr.defineExtension=function(a,y){Jr.prototype[a]=y},Jr.defineDocExtension=function(a,y){Ti.prototype[a]=y},Jr.fromTextArea=_u,Ju(Jr),Jr.version="5.58.2",Jr})},25419:function(an,Zt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(at,ge){var Ke=z.getMode(at,"text/html"),be=Ke.name=="null";function we(ye){if(z.findModeByName){var se=z.findModeByName(ye);se&&(ye=se.mime||se.mimes[0])}var Te=z.getMode(at,ye);return Te.name=="null"?null:Te}ge.highlightFormatting===void 0&&(ge.highlightFormatting=!1),ge.maxBlockquoteDepth===void 0&&(ge.maxBlockquoteDepth=0),ge.taskLists===void 0&&(ge.taskLists=!1),ge.strikethrough===void 0&&(ge.strikethrough=!1),ge.emoji===void 0&&(ge.emoji=!1),ge.fencedCodeBlockHighlighting===void 0&&(ge.fencedCodeBlockHighlighting=!0),ge.fencedCodeBlockDefaultMode===void 0&&(ge.fencedCodeBlockDefaultMode="text/plain"),ge.xml===void 0&&(ge.xml=!0),ge.tokenTypeOverrides===void 0&&(ge.tokenTypeOverrides={});var Ne={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ze in Ne)Ne.hasOwnProperty(Ze)&&ge.tokenTypeOverrides[Ze]&&(Ne[Ze]=ge.tokenTypeOverrides[Ze]);var Me=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,Se=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Pt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,rt=/^[^#!\[\]*_\\<>` "'(~:]+/,ke=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Le=/^\s*\[[^\]]+?\]:.*$/,Ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,xt=" ";function Ot(ye,se,Te){return se.f=se.inline=Te,Te(ye,se)}function Rt(ye,se,Te){return se.f=se.block=Te,Te(ye,se)}function wt(ye){return!ye||!/\S/.test(ye.string)}function mt(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Qe){var se=be;if(!se){var Te=z.innerMode(Ke,ye.htmlState);se=Te.mode.name=="xml"&&Te.state.tagStart===null&&!Te.state.context&&Te.state.tokenize.isInText}se&&(ye.f=St,ye.block=gt,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function gt(ye,se){var Te=ye.column()===se.indentation,Ct=wt(se.prevLine.stream),Et=se.indentedCode,Ie=se.prevLine.hr,_e=se.list!==!1,ct=(se.listStack[se.listStack.length-1]||0)+3;se.indentedCode=!1;var Yt=se.indentation;if(se.indentationDiff===null&&(se.indentationDiff=se.indentation,_e)){for(se.list=null;Yt=4&&(Et||se.prevLine.fencedCodeEnd||se.prevLine.header||Ct))return ye.skipToEnd(),se.indentedCode=!0,Ne.code;if(ye.eatSpace())return null;if(Te&&se.indentation<=ct&&(je=ye.match(Se))&&je[1].length<=6)return se.quote=0,se.header=je[1].length,se.thisLine.header=!0,ge.highlightFormatting&&(se.formatting="header"),se.f=se.inline,st(se);if(se.indentation<=ct&&ye.eat(">"))return se.quote=Te?1:se.quote+1,ge.highlightFormatting&&(se.formatting="quote"),ye.eatSpace(),st(se);if(!$t&&!se.setext&&Te&&se.indentation<=ct&&(je=ye.match(fe))){var Gt=je[1]?"ol":"ul";return se.indentation=Yt+ye.current().length,se.list=!0,se.quote=0,se.listStack.push(se.indentation),se.em=!1,se.strong=!1,se.code=!1,se.strikethrough=!1,ge.taskLists&&ye.match(Je,!1)&&(se.taskList=!0),se.f=se.inline,ge.highlightFormatting&&(se.formatting=["list","list-"+Gt]),st(se)}else{if(Te&&se.indentation<=ct&&(je=ye.match(ke,!0)))return se.quote=0,se.fencedEndRE=new RegExp(je[1]+"+ *$"),se.localMode=ge.fencedCodeBlockHighlighting&&we(je[2]||ge.fencedCodeBlockDefaultMode),se.localMode&&(se.localState=z.startState(se.localMode)),se.f=se.block=kt,ge.highlightFormatting&&(se.formatting="code-block"),se.code=-1,st(se);if(se.setext||(!Dt||!_e)&&!se.quote&&se.list===!1&&!se.code&&!$t&&!Le.test(ye.string)&&(je=ye.lookAhead(1))&&(je=je.match(Pt)))return se.setext?(se.header=se.setext,se.setext=0,ye.skipToEnd(),ge.highlightFormatting&&(se.formatting="header")):(se.header=je[0].charAt(0)=="="?1:2,se.setext=se.header),se.thisLine.header=!0,se.f=se.inline,st(se);if($t)return ye.skipToEnd(),se.hr=!0,se.thisLine.hr=!0,Ne.hr;if(ye.peek()==="[")return Ot(ye,se,Tt)}return Ot(ye,se,se.inline)}function Qe(ye,se){var Te=Ke.token(ye,se.htmlState);if(!be){var Ct=z.innerMode(Ke,se.htmlState);(Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText||se.md_inside&&ye.current().indexOf(">")>-1)&&(se.f=St,se.block=gt,se.htmlState=null)}return Te}function kt(ye,se){var Te=se.listStack[se.listStack.length-1]||0,Ct=se.indentation=ye.quote?se.push(Ne.formatting+"-"+ye.formatting[Te]+"-"+ye.quote):se.push("error"))}if(ye.taskOpen)return se.push("meta"),se.length?se.join(" "):null;if(ye.taskClosed)return se.push("property"),se.length?se.join(" "):null;if(ye.linkHref?se.push(Ne.linkHref,"url"):(ye.strong&&se.push(Ne.strong),ye.em&&se.push(Ne.em),ye.strikethrough&&se.push(Ne.strikethrough),ye.emoji&&se.push(Ne.emoji),ye.linkText&&se.push(Ne.linkText),ye.code&&se.push(Ne.code),ye.image&&se.push(Ne.image),ye.imageAltText&&se.push(Ne.imageAltText,"link"),ye.imageMarker&&se.push(Ne.imageMarker)),ye.header&&se.push(Ne.header,Ne.header+"-"+ye.header),ye.quote&&(se.push(Ne.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=ye.quote?se.push(Ne.quote+"-"+ye.quote):se.push(Ne.quote+"-"+ge.maxBlockquoteDepth)),ye.list!==!1){var Ct=(ye.listStack.length-1)%3;Ct?Ct===1?se.push(Ne.list2):se.push(Ne.list3):se.push(Ne.list1)}return ye.trailingSpaceNewLine?se.push("trailing-space-new-line"):ye.trailingSpace&&se.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),se.length?se.join(" "):null}function tt(ye,se){if(ye.match(rt,!0))return st(se)}function St(ye,se){var Te=se.text(ye,se);if(typeof Te!="undefined")return Te;if(se.list)return se.list=null,st(se);if(se.taskList){var Ct=ye.match(Je,!0)[1]===" ";return Ct?se.taskOpen=!0:se.taskClosed=!0,ge.highlightFormatting&&(se.formatting="task"),se.taskList=!1,st(se)}if(se.taskOpen=!1,se.taskClosed=!1,se.header&&ye.match(/^#+$/,!0))return ge.highlightFormatting&&(se.formatting="header"),st(se);var Et=ye.next();if(se.linkTitle){se.linkTitle=!1;var Ie=Et;Et==="("&&(Ie=")"),Ie=(Ie+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var _e="^\\s*(?:[^"+Ie+"\\\\]+|\\\\\\\\|\\\\.)"+Ie;if(ye.match(new RegExp(_e),!0))return Ne.linkHref}if(Et==="`"){var ct=se.formatting;ge.highlightFormatting&&(se.formatting="code"),ye.eatWhile("`");var Yt=ye.current().length;if(se.code==0&&(!se.quote||Yt==1))return se.code=Yt,st(se);if(Yt==se.code){var Dt=st(se);return se.code=0,Dt}else return se.formatting=ct,st(se)}else if(se.code)return st(se);if(Et==="\\"&&(ye.next(),ge.highlightFormatting)){var $t=st(se),je=Ne.formatting+"-escape";return $t?$t+" "+je:je}if(Et==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return se.imageMarker=!0,se.image=!0,ge.highlightFormatting&&(se.formatting="image"),st(se);if(Et==="["&&se.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return se.imageMarker=!1,se.imageAltText=!0,ge.highlightFormatting&&(se.formatting="image"),st(se);if(Et==="]"&&se.imageAltText){ge.highlightFormatting&&(se.formatting="image");var $t=st(se);return se.imageAltText=!1,se.image=!1,se.inline=se.f=yt,$t}if(Et==="["&&!se.image)return se.linkText&&ye.match(/^.*?\]/)||(se.linkText=!0,ge.highlightFormatting&&(se.formatting="link")),st(se);if(Et==="]"&&se.linkText){ge.highlightFormatting&&(se.formatting="link");var $t=st(se);return se.linkText=!1,se.inline=se.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?yt:St,$t}if(Et==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=We,ge.highlightFormatting&&(se.formatting="link");var $t=st(se);return $t?$t+=" ":$t="",$t+Ne.linkInline}if(Et==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){se.f=se.inline=We,ge.highlightFormatting&&(se.formatting="link");var $t=st(se);return $t?$t+=" ":$t="",$t+Ne.linkEmail}if(ge.xml&&Et==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Gt=ye.string.indexOf(">",ye.pos);if(Gt!=-1){var bt=ye.string.substring(ye.start,Gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(bt)&&(se.md_inside=!0)}return ye.backUp(1),se.htmlState=z.startState(Ke),Rt(ye,se,Qe)}if(ge.xml&&Et==="<"&&ye.match(/^\/\w*?>/))return se.md_inside=!1,"tag";if(Et==="*"||Et==="_"){for(var ae=1,te=ye.pos==1?" ":ye.string.charAt(ye.pos-2);ae<3&&ye.eat(Et);)ae++;var ee=ye.peek()||" ",oe=!/\s/.test(ee)&&(!Ae.test(ee)||/\s/.test(te)||Ae.test(te)),ue=!/\s/.test(te)&&(!Ae.test(te)||/\s/.test(ee)||Ae.test(ee)),ne=null,he=null;if(ae%2&&(!se.em&&oe&&(Et==="*"||!ue||Ae.test(te))?ne=!0:se.em==Et&&ue&&(Et==="*"||!oe||Ae.test(ee))&&(ne=!1)),ae>1&&(!se.strong&&oe&&(Et==="*"||!ue||Ae.test(te))?he=!0:se.strong==Et&&ue&&(Et==="*"||!oe||Ae.test(ee))&&(he=!1)),he!=null||ne!=null){ge.highlightFormatting&&(se.formatting=ne==null?"strong":he==null?"em":"strong em"),ne===!0&&(se.em=Et),he===!0&&(se.strong=Et);var Dt=st(se);return ne===!1&&(se.em=!1),he===!1&&(se.strong=!1),Dt}}else if(Et===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return st(se);ye.backUp(1)}if(ge.strikethrough){if(Et==="~"&&ye.eatWhile(Et)){if(se.strikethrough){ge.highlightFormatting&&(se.formatting="strikethrough");var Dt=st(se);return se.strikethrough=!1,Dt}else if(ye.match(/^[^\s]/,!1))return se.strikethrough=!0,ge.highlightFormatting&&(se.formatting="strikethrough"),st(se)}else if(Et===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return st(se);ye.backUp(2)}}if(ge.emoji&&Et===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){se.emoji=!0,ge.highlightFormatting&&(se.formatting="emoji");var xe=st(se);return se.emoji=!1,xe}return Et===" "&&(ye.match(/^ +$/,!1)?se.trailingSpace++:se.trailingSpace&&(se.trailingSpaceNewLine=!0)),st(se)}function We(ye,se){var Te=ye.next();if(Te===">"){se.f=se.inline=St,ge.highlightFormatting&&(se.formatting="link");var Ct=st(se);return Ct?Ct+=" ":Ct="",Ct+Ne.linkInline}return ye.match(/^[^>]+/,!0),Ne.linkInline}function yt(ye,se){if(ye.eatSpace())return null;var Te=ye.next();return Te==="("||Te==="["?(se.f=se.inline=pe(Te==="("?")":"]"),ge.highlightFormatting&&(se.formatting="link-string"),se.linkHref=!0,st(se)):"error"}var ut={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pe(ye){return function(se,Te){var Ct=se.next();if(Ct===ye){Te.f=Te.inline=St,ge.highlightFormatting&&(Te.formatting="link-string");var Et=st(Te);return Te.linkHref=!1,Et}return se.match(ut[ye]),Te.linkHref=!0,st(Te)}}function Tt(ye,se){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(se.f=Be,ye.next(),ge.highlightFormatting&&(se.formatting="link"),se.linkText=!0,st(se)):Ot(ye,se,St)}function Be(ye,se){if(ye.match(/^\]:/,!0)){se.f=se.inline=Ge,ge.highlightFormatting&&(se.formatting="link");var Te=st(se);return se.linkText=!1,Te}return ye.match(/^([^\]\\]|\\.)+/,!0),Ne.linkText}function Ge(ye,se){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?se.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),se.f=se.inline=St,Ne.linkHref+" url")}var At={startState:function(){return{f:gt,prevLine:{stream:null},thisLine:{stream:null},block:gt,htmlState:null,indentation:0,inline:St,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(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&z.copyState(Ke,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?z.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,se){if(se.formatting=!1,ye!=se.thisLine.stream){if(se.header=0,se.hr=!1,ye.match(/^\s*$/,!0))return mt(se),null;if(se.prevLine=se.thisLine,se.thisLine={stream:ye},se.taskList=!1,se.trailingSpace=0,se.trailingSpaceNewLine=!1,!se.localState&&(se.f=se.block,se.f!=Qe)){var Te=ye.match(/^\s*/,!0)[0].replace(/\t/g,xt).length;if(se.indentation=Te,se.indentationDiff=null,Te>0)return null}}return se.f(ye,se)},innerMode:function(ye){return ye.block==Qe?{state:ye.htmlState,mode:Ke}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:At}},indent:function(ye,se,Te){return ye.block==Qe&&Ke.indent?Ke.indent(ye.htmlState,se,Te):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,se,Te):z.Pass},blankLine:mt,getType:st,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return At},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(an,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 at=0;at-1&&Ke.substring(Ne+1,Ke.length);if(Ze)return z.findModeByExtension(Ze)},z.findModeByName=function(Ke){Ke=Ke.toLowerCase();for(var be=0;be0?rt.cmdState[rt.cmdState.length-1]:null}function we(rt){var ke=rt.cmdState.pop();ke&&ke.closeBracket()}function Ne(rt){for(var ke=rt.cmdState,Le=ke.length-1;Le>=0;Le--){var Ae=ke[Le];if(Ae.name!="DEFAULT")return Ae}return{styleIdentifier:function(){return null}}}function Ze(rt,ke,Le){return function(){this.name=rt,this.bracketNo=0,this.style=ke,this.styles=Le,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Me={};Me.importmodule=Ze("importmodule","tag",["string","builtin"]),Me.documentclass=Ze("documentclass","tag",["","atom"]),Me.usepackage=Ze("usepackage","tag",["atom"]),Me.begin=Ze("begin","tag",["atom"]),Me.end=Ze("end","tag",["atom"]),Me.label=Ze("label","tag",["atom"]),Me.ref=Ze("ref","tag",["atom"]),Me.eqref=Ze("eqref","tag",["atom"]),Me.cite=Ze("cite","tag",["atom"]),Me.bibitem=Ze("bibitem","tag",["atom"]),Me.Bibitem=Ze("Bibitem","tag",["atom"]),Me.RBibitem=Ze("RBibitem","tag",["atom"]),Me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(rt,ke){rt.f=ke}function Je(rt,ke){var Le;if(rt.match(/^\\[a-zA-Z@]+/)){var Ae=rt.current().slice(1);return Le=Me.hasOwnProperty(Ae)?Me[Ae]:Me.DEFAULT,Le=new Le,Ke(ke,Le),fe(ke,Pt),Le.style}if(rt.match(/^\\[$&%#{}_]/)||rt.match(/^\\[,;!\/\\]/))return"tag";if(rt.match("\\["))return fe(ke,function(Ot,Rt){return Se(Ot,Rt,"\\]")}),"keyword";if(rt.match("\\("))return fe(ke,function(Ot,Rt){return Se(Ot,Rt,"\\)")}),"keyword";if(rt.match("$$"))return fe(ke,function(Ot,Rt){return Se(Ot,Rt,"$$")}),"keyword";if(rt.match("$"))return fe(ke,function(Ot,Rt){return Se(Ot,Rt,"$")}),"keyword";var xt=rt.next();if(xt=="%")return rt.skipToEnd(),"comment";if(xt=="}"||xt=="]"){if(Le=be(ke),Le)Le.closeBracket(xt),fe(ke,Pt);else return"error";return"bracket"}else return xt=="{"||xt=="["?(Le=Me.DEFAULT,Le=new Le,Ke(ke,Le),"bracket"):/\d/.test(xt)?(rt.eatWhile(/[\w.%]/),"atom"):(rt.eatWhile(/[\w\-_]/),Le=Ne(ke),Le.name=="begin"&&(Le.argument=rt.current()),Le.styleIdentifier())}function Se(rt,ke,Le){if(rt.eatSpace())return null;if(Le&&rt.match(Le))return fe(ke,Je),"keyword";if(rt.match(/^\\[a-zA-Z@]+/))return"tag";if(rt.match(/^[a-zA-Z]+/))return"variable-2";if(rt.match(/^\\[$&%#{}_]/)||rt.match(/^\\[,;!\/]/)||rt.match(/^[\^_&]/))return"tag";if(rt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(rt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ae=rt.next();return Ae=="{"||Ae=="}"||Ae=="["||Ae=="]"||Ae=="("||Ae==")"?"bracket":Ae=="%"?(rt.skipToEnd(),"comment"):"error"}function Pt(rt,ke){var Le=rt.peek(),Ae;return Le=="{"||Le=="["?(Ae=be(ke),Ae.openBracket(Le),rt.eat(Le),fe(ke,Je),"bracket"):/[ \t\r]/.test(Le)?(rt.eat(Le),null):(fe(ke,Je),we(ke),Je(rt,ke))}return{startState:function(){var rt=ge.inMathMode?function(ke,Le){return Se(ke,Le)}:Je;return{cmdState:[],f:rt}},copyState:function(rt){return{cmdState:rt.cmdState.slice(),f:rt.f}},token:function(rt,ke){return ke.f(rt,ke)},blankLine:function(rt){rt.f=Je,rt.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(an,Zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var at={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Ke,be){var we=Ke.indentUnit,Ne={},Ze=be.htmlMode?at:ge;for(var Me in Ze)Ne[Me]=Ze[Me];for(var Me in be)Ne[Me]=be[Me];var fe,Je;function Se(We,yt){function ut(Be){return yt.tokenize=Be,Be(We,yt)}var pe=We.next();if(pe=="<")return We.eat("!")?We.eat("[")?We.match("CDATA[")?ut(ke("atom","]]>")):null:We.match("--")?ut(ke("comment","-->")):We.match("DOCTYPE",!0,!0)?(We.eatWhile(/[\w\._\-]/),ut(Le(1))):null:We.eat("?")?(We.eatWhile(/[\w\._\-]/),yt.tokenize=ke("meta","?>"),"meta"):(fe=We.eat("/")?"closeTag":"openTag",yt.tokenize=Pt,"tag bracket");if(pe=="&"){var Tt;return We.eat("#")?We.eat("x")?Tt=We.eatWhile(/[a-fA-F\d]/)&&We.eat(";"):Tt=We.eatWhile(/[\d]/)&&We.eat(";"):Tt=We.eatWhile(/[\w\.\-:]/)&&We.eat(";"),Tt?"atom":"error"}else return We.eatWhile(/[^&<]/),null}Se.isInText=!0;function Pt(We,yt){var ut=We.next();if(ut==">"||ut=="/"&&We.eat(">"))return yt.tokenize=Se,fe=ut==">"?"endTag":"selfcloseTag","tag bracket";if(ut=="=")return fe="equals",null;if(ut=="<"){yt.tokenize=Se,yt.state=Rt,yt.tagName=yt.tagStart=null;var pe=yt.tokenize(We,yt);return pe?pe+" tag error":"tag error"}else return/[\'\"]/.test(ut)?(yt.tokenize=rt(ut),yt.stringStartCol=We.column(),yt.tokenize(We,yt)):(We.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function rt(We){var yt=function(ut,pe){for(;!ut.eol();)if(ut.next()==We){pe.tokenize=Pt;break}return"string"};return yt.isInAttribute=!0,yt}function ke(We,yt){return function(ut,pe){for(;!ut.eol();){if(ut.match(yt)){pe.tokenize=Se;break}ut.next()}return We}}function Le(We){return function(yt,ut){for(var pe;(pe=yt.next())!=null;){if(pe=="<")return ut.tokenize=Le(We+1),ut.tokenize(yt,ut);if(pe==">")if(We==1){ut.tokenize=Se;break}else return ut.tokenize=Le(We-1),ut.tokenize(yt,ut)}return"meta"}}function Ae(We,yt,ut){this.prev=We.context,this.tagName=yt,this.indent=We.indented,this.startOfLine=ut,(Ne.doNotIndent.hasOwnProperty(yt)||We.context&&We.context.noIndent)&&(this.noIndent=!0)}function xt(We){We.context&&(We.context=We.context.prev)}function Ot(We,yt){for(var ut;;){if(!We.context||(ut=We.context.tagName,!Ne.contextGrabbers.hasOwnProperty(ut)||!Ne.contextGrabbers[ut].hasOwnProperty(yt)))return;xt(We)}}function Rt(We,yt,ut){return We=="openTag"?(ut.tagStart=yt.column(),wt):We=="closeTag"?mt:Rt}function wt(We,yt,ut){return We=="word"?(ut.tagName=yt.current(),Je="tag",kt):Ne.allowMissingTagName&&We=="endTag"?(Je="tag bracket",kt(We,yt,ut)):(Je="error",wt)}function mt(We,yt,ut){if(We=="word"){var pe=yt.current();return ut.context&&ut.context.tagName!=pe&&Ne.implicitlyClosed.hasOwnProperty(ut.context.tagName)&&xt(ut),ut.context&&ut.context.tagName==pe||Ne.matchClosing===!1?(Je="tag",gt):(Je="tag error",Qe)}else return Ne.allowMissingTagName&&We=="endTag"?(Je="tag bracket",gt(We,yt,ut)):(Je="error",Qe)}function gt(We,yt,ut){return We!="endTag"?(Je="error",gt):(xt(ut),Rt)}function Qe(We,yt,ut){return Je="error",gt(We,yt,ut)}function kt(We,yt,ut){if(We=="word")return Je="attribute",st;if(We=="endTag"||We=="selfcloseTag"){var pe=ut.tagName,Tt=ut.tagStart;return ut.tagName=ut.tagStart=null,We=="selfcloseTag"||Ne.autoSelfClosers.hasOwnProperty(pe)?Ot(ut,pe):(Ot(ut,pe),ut.context=new Ae(ut,pe,Tt==ut.indented)),Rt}return Je="error",kt}function st(We,yt,ut){return We=="equals"?tt:(Ne.allowMissing||(Je="error"),kt(We,yt,ut))}function tt(We,yt,ut){return We=="string"?St:We=="word"&&Ne.allowUnquoted?(Je="string",kt):(Je="error",kt(We,yt,ut))}function St(We,yt,ut){return We=="string"?St:kt(We,yt,ut)}return{startState:function(We){var yt={tokenize:Se,state:Rt,indented:We||0,tagName:null,tagStart:null,context:null};return We!=null&&(yt.baseIndent=We),yt},token:function(We,yt){if(!yt.tagName&&We.sol()&&(yt.indented=We.indentation()),We.eatSpace())return null;fe=null;var ut=yt.tokenize(We,yt);return(ut||fe)&&ut!="comment"&&(Je=null,yt.state=yt.state(fe||ut,We,yt),Je&&(ut=Je=="error"?ut+" error":Je)),ut},indent:function(We,yt,ut){var pe=We.context;if(We.tokenize.isInAttribute)return We.tagStart==We.indented?We.stringStartCol+1:We.indented+we;if(pe&&pe.noIndent)return z.Pass;if(We.tokenize!=Pt&&We.tokenize!=Se)return ut?ut.match(/^(\s*)/)[0].length:0;if(We.tagName)return Ne.multilineTagIndentPastTag!==!1?We.tagStart+We.tagName.length+2:We.tagStart+we*(Ne.multilineTagIndentFactor||1);if(Ne.alignCDATA&&/$/,blockCommentStart:"",configuration:Ne.htmlMode?"html":"xml",helperType:Ne.htmlMode?"html":"xml",skipAttribute:function(We){We.state==tt&&(We.state=kt)},xmlCurrentTag:function(We){return We.tagName?{name:We.tagName,close:We.type=="closeTag"}:null},xmlCurrentContext:function(We){for(var yt=[],ut=We.context;ut;ut=ut.prev)ut.tagName&&yt.push(ut.tagName);return yt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(an,Zt,ie){"use strict";ie.d(Zt,{hP:function(){return bt}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(ee[ue]=oe[ue])})(ae,te)};function at(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ge(ae,te,ee,oe){return new(ee||(ee=Promise))(function(ue,ne){function he(Pe){try{vt(oe.next(Pe))}catch(Ve){ne(Ve)}}function xe(Pe){try{vt(oe.throw(Pe))}catch(Ve){ne(Ve)}}function vt(Pe){var Ve;Pe.done?ue(Pe.value):(Ve=Pe.value,Ve instanceof ee?Ve:new ee(function(dt){dt(Ve)})).then(he,xe)}vt((oe=oe.apply(ae,te||[])).next())})}function Ke(ae,te){var ee,oe,ue,ne,he={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ne={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function xe(vt){return function(Pe){return function(Ve){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,oe&&(ue=2&Ve[0]?oe.return:Ve[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ve[1])).done)return ue;switch(oe=0,ue&&(Ve=[2&Ve[0],ue.value]),Ve[0]){case 0:case 1:ue=Ve;break;case 4:return he.label++,{value:Ve[1],done:!1};case 5:he.label++,oe=Ve[1],Ve=[0];continue;case 7:Ve=he.ops.pop(),he.trys.pop();continue;default:if(ue=he.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ve[0]!==6&&Ve[0]!==2)){he=0;continue}if(Ve[0]===3&&(!ue||Ve[1]>ue[0]&&Ve[1]',"select"),this.addActionButton(oe,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'',"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 he=document.createElement("div");he.className=""+ee.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",ne.typeName),he.innerHTML=ne.icon,he.addEventListener("click",function(){ee.markerToolbarButtonClicked(he,ne)}),ee.buttons.push(he),ee.markerButtons.push(he)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'',"render"),this.addActionButton(ue,'',"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;ee0&&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}(),rt=function(){function ae(te,ee,oe,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Se("toolbox",` width: 100%; flex-shrink: 0; display: flex; flex-direction: column; font-family: sans-serif; `+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+` box-sizing: content-box; `+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+` `+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` `+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` overflow: hidden; `)),this.toolboxStyleColorsClass=this.styles.addClass(new Se("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Se("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Se("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Se("toolbox-panel-row",` display: flex; `+(this.displayMode==="inline"?"position: absolute;":"")+` `+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+` cursor: default; height: `+1.5*this.uiStyleSettings.toolbarHeight+`px; `+(this.displayMode==="inline"?"width: 100%;":"")+` box-sizing: content-box; `)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Se("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Se("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; padding: `+ee+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Je("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Je("."+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,ue=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 he;ne.uiStyleSettings=ue.uiStyleSettings;var xe=document.createElement("div");xe.className=ue.toolboxButtonStyleClass.name+" "+((he=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:ue.toolboxButtonStyleColorsClass.name),xe.innerHTML=ne.icon,xe.title=ne.title,xe.addEventListener("click",function(){ue.panelButtonClick(ne)}),ue.panelButtons.push(xe),ue.buttonRow.appendChild(xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var ue=te.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),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,he){var xe,vt;ne.className=ee.toolboxButtonStyleClass.name+" "+(he===oe?""+((xe=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&xe!==void 0?xe:ee.toolboxActiveButtonStyleColorsClass.name):""+((vt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:ee.toolboxButtonStyleColorsClass.name))})},ae}(),ke=function(ae,te){this.title=ae,this.icon=te},Le=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=oe,he.currentColor=ue,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return at(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(ue){var ne=ee.getColorBox(ue);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,ue=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ue,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=ne-2+"px",he.style.height=ne-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(ne+2)/2+"px",he.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){oe.setCurrentColor(ee,he)});var xe=document.createElement("div");return xe.style.display="inline-block",xe.style.width=ne-2+"px",xe.style.height=ne-2+"px",xe.style.backgroundColor=ee,xe.style.borderRadius=ne/2+"px",ee==="transparent"&&(xe.style.fill=this.uiStyleSettings.toolboxAccentColor,xe.innerHTML=` `),he.appendChild(xe),he},te.prototype.setCurrentColor=function(ee,oe){var ue=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(ke),Ae=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}(),xt=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}(),Ot=function(){function ae(){this.GRIP_SIZE=10,this.visual=we.createGroup(),this.visual.appendChild(we.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(we.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}(),Rt=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),wt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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(we.createTransform()),ne.setupControlBox(),ne}return at(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=we.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 ue=this.unrotatePoint(ee);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.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 he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,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,ue=this.manipulationStartWidth,ne=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=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,he=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+ee.y-this.manipulationStartY}ue>=0?(this.left=oe,this.width=ue):(this.left=oe+ue,this.width=-ue),he>=0?(this.top=ne,this.height=he):(this.top=ne+he,this.height=-he),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(),ue=we.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var ue=we.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.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=we.createGroup();var ee=we.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=we.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=we.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 xt,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 Ot;return ee.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,ue=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,he=(this.height+this.CB_DISTANCE)/2-ee/2,xe=this.height+this.CB_DISTANCE-ee/2,vt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ue),this.positionGrip(this.controlGrips.topCenter.visual,ne,ue),this.positionGrip(this.controlGrips.topRight.visual,vt,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,he),this.positionGrip(this.controlGrips.centerRight.visual,vt,he),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,xe),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,xe),this.positionGrip(this.controlGrips.bottomRight.visual,vt,xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),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:Rt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Rt.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(Rt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Rt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var ue=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ue.x*ee,y:ue.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(Ae),mt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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 at(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=we.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),we.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&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(wt),gt=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.widths=[],he.widthBoxes=[],he.widths=oe,he.currentWidth=ue,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return at(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(ue){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=ue===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=ue.toString(),he.style.marginRight="5px",ne.appendChild(he);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.display="flex",xe.style.alignItems="center";var vt=document.createElement("hr");vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop=ue+"px solid "+ee.uiStyleSettings.toolboxColor,vt.style.flexGrow="2",xe.appendChild(vt),ne.appendChild(xe),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var ue=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(ke),Qe=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.styles=[],he.styleBoxes=[],he.styles=oe,he.currentStyle=ue,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return at(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(ue){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=ue===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var xe=` `;he.innerHTML=xe,ne.appendChild(he),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var ue=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(ke),kt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Le("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new gt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return at(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='',te}(mt),st=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,ue){var ne=ae.call(this,ee,oe,ue)||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 at(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=we.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 Ot;return ee.visual.transform.baseVal.appendItem(we.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,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),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}(Ae),St=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Le("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new gt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return at(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=we.createGroup(),this.selectorLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=we.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()),we.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),we.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='',te}(tt),We=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=oe,he.currentFont=ue,he.setCurrentFont=he.setCurrentFont.bind(he),he}return at(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(ue){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=ue===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=ue,he.style.overflow="hidden";var xe=document.createElement("div");xe.style.whiteSpace="nowrap",xe.style.overflow="hidden",xe.style.textOverflow="ellipsis",xe.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(xe),ne.appendChild(he),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var ue=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(ke),yt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.fontFamily=ue.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 Le("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new We("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return at(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(ue){ue===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=we.createGroup(),this.bgRectangle=we.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=we.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.textElement.transform.baseVal.appendItem(we.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(we.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 ue=(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(ue,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),ue=0,ne=0;return oe.width>0&&oe.height>0&&(ue=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:ue,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),ue=this.getTextPosition(oe);ue.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.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&&(we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.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 ue=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ue)),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}),ue=this.textElement.getBBox(),ne={x:ue.width*ee,y:ue.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&&we.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&&we.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='',te}(wt),ut=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ue.defaultColor,ne.lineWidth=ue.defaultStrokeWidth,ne.pixelRatio=ue.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 Le("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new gt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return at(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=we.createGroup(),this.drawingImage=we.createImage(),this.visual.appendChild(this.drawingImage);var ee=we.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),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.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],ue=oe[0],ne=oe[1],he=oe[2],xe=oe[3],vt=!1,Pe=0;Pe0&&(vt=!0,Pexe&&(xe=Pe),Ve>he&&(he=Ve));if(vt){this.left=ue/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(he-ue)/this.pixelRatio,this.height=(xe-ne)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=he-ue,dt.height=xe-ne,dt.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ne,he-ue,xe-ne),0,0),this.drawingImgUrl=dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),we.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='',te}(wt),pe=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,ue||'')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return at(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 ue=function(xe){var vt="both";switch(xe){case 0:vt="both";break;case 1:vt="start";break;case 2:vt="end";break;case 3:vt="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=vt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){ee.setCurrentType(vt,Pe)}),oe.appendChild(Pe),vt==="both"||vt==="start"){var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.innerHTML=` `,Ve.style.marginLeft="5px",Pe.appendChild(Ve)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var Mt=document.createElement("hr");if(Mt.style.minWidth="20px",Mt.style.border="0px",Mt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Mt.style.flexGrow="2",dt.appendChild(Mt),Pe.appendChild(dt),vt==="both"||vt==="end"){var pt=document.createElement("div");pt.style.display="flex",pt.style.alignItems="center",pt.style.minHeight="20px",pt.innerHTML=` `,pt.style.marginRight="5px",Pe.appendChild(pt)}ne.typeBoxes.push(Pe)},ne=this,he=0;he<4;he++)ue(he);return oe},te.prototype.setCurrentType=function(ee,oe){var ue=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(ke),Tt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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 pe("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return at(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 ue=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-ue/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+ue/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=we.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=we.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(we.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",we.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),we.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 ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,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='',te}(St),Be=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor=ue.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Le("Color",ue.defaultColorSet,ue.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return at(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='',te}(mt),Ge=function(ae){function te(ee,oe,ue,ne){var he=ae.call(this,ee,ne||'')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=oe,he.currentOpacity=ue,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return at(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(ue){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=ue===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(ue,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=100*ue+"%",ne.appendChild(he),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var ue=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(ke),At=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ue.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ue.defaultHighlightOpacity,ne.fillPanel=new Le("Color",ue.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Ge("Opacity",ue.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return at(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&we.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='',te}(Be),ye='',se='',Te=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultStrokeColor,ne.bgColor=ue.defaultFillColor,ne.fontFamily=ue.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 Le("Text color",ue.defaultColorSet,ne.color,ye),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Le("Fill color",ue.defaultColorSet,ne.bgColor,se),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new We("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Ot,ne.tipGrip.visual.transform.baseVal.appendItem(we.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return at(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(){we.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=we.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&&(we.setAttributes(this.bgRectangle,[["fill",ee]]),we.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),ue=this.height/5;ee&&(this.tipPosition={x:oe+ue/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.width/2&&this.tipPosition.y>=this.height/2?ne.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 ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,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='',te}(St),Ie=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokePanel.colors=ue.defaultColorSet,ne.fillColor="transparent",ne}return at(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='',te}(Ct),_e=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}(),ct=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Le("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new gt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return at(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=we.createGroup(),this.selectorCurve=we.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=we.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()),we.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=we.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=we.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='',te}(tt),Yt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.fillColor=ue.defaultFillColor,ne.textColor=ue.defaultStrokeColor,ne.fontFamily=ue.defaultFontFamily,ne.fontSize=ue.defaultCaptionFontSize,ne.captionText=ue.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 Le("Line color",be(ue.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Le("Fill color",be(ue.defaultColorSet,["transparent"]),ne.fillColor,se),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new gt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Qe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new We("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Le("Text color",ue.defaultColorSet,ne.textColor,ye),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return at(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=we.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=we.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=we.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=we.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),we.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')"]]),we.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&&we.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&&we.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),we.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&&we.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&we.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&we.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&we.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='',te}(wt),Dt=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}(),$t=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=ue,ne}return at(te,ae),te}(Dt),je=function(ae){function te(ee,oe,ue){ue===void 0&&(ue=!1);var ne=ae.call(this,ee,ue)||this;return ne.marker=oe,ne}return at(te,ae),te}(Dt),Gt=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}(),bt=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 st,this._isOpen=!1,this.undoRedoManager=new _e,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 Gt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(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[kt,ut,Tt,yt,Ie,Ct,At,Te,Et,Be,St,ct,Yt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[kt,ut,Tt,yt,Ct,At,Te]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[kt,ut,Tt,yt,At]},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 ue=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});ue!==void 0&&ee._availableMarkerTypes.push(ue)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ne.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Dt(te))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var te;return Ke(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Ze).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(ue){var ne=new Dt(ee,!0);ue(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(ue){return ue(new Dt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee',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 Pt(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-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(ue){var ne=new je(te,te._currentMarker,!0);ue(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(ue){return ue(new je(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var xe=new je(te,void 0,!0);he(xe),xe.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(he){var xe=ue.markers[he];ue.setCurrentMarker(ue.markers[he]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(vt){return vt(new je(te,xe))})},ue=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 ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ue1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Ne.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new Dt(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 Dt(te))}))},ae.instanceCounter=0,ae}()},6551:function(an,Zt,ie){"use strict";ie.d(Zt,{ZP:function(){return Ne}});var z=ie(72190),at=ie(59301),ge=ie(47273),Ke=0,be=(0,ge.Z)();function we(){var Ze;return be?(Ze=Ke,Ke+=1):Ze="TEST_OR_SSR",Ze}function Ne(Ze){var Me=at.useState(),fe=(0,z.Z)(Me,2),Je=fe[0],Se=fe[1];return at.useEffect(function(){Se("rc_select_".concat(we()))},[]),Ze||Je}},37463:function(an,Zt,ie){"use strict";ie.d(Zt,{Ac:function(){return It},Xo:function(){return Wt},Wx:function(){return it},ZP:function(){return nr},lk:function(){return Rt}});var z=ie(60499),at=ie(77654),ge=ie(18642),Ke=ie(85899),be=ie(72190),we=ie(42244),Ne=ie(43749),Ze=ie(18929),Me=ie(48736),fe=ie(59301),Je=ie(92310),Se=ie.n(Je),Pt=ie(34280),rt=ie(49658),ke=ie(8654),Le=function(ot){var Ce=ot.className,Re=ot.customizeIcon,Ee=ot.customizeIconProps,$e=ot.children,ve=ot.onMouseDown,Xe=ot.onClick,qe=typeof Re=="function"?Re(Ee):Re;return fe.createElement("span",{className:Ce,onMouseDown:function(et){et.preventDefault(),ve==null||ve(et)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Xe,"aria-hidden":!0},qe!==void 0?qe:fe.createElement("span",{className:Se()(Ce.split(/\s+/).map(function(ht){return"".concat(ht,"-icon")}))},$e))},Ae=Le,xt=function(ot,Ce,Re,Ee,$e){var ve=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Xe=arguments.length>6?arguments[6]:void 0,qe=arguments.length>7?arguments[7]:void 0,ht=fe.useMemo(function(){if((0,Ne.Z)(Ee)==="object")return Ee.clearIcon;if($e)return $e},[Ee,$e]),et=fe.useMemo(function(){return!!(!ve&&Ee&&(Re.length||Xe)&&!(qe==="combobox"&&Xe===""))},[Ee,ve,Re.length,Xe,qe]);return{allowClear:et,clearIcon:fe.createElement(Ae,{className:"".concat(ot,"-clear"),onMouseDown:Ce,customizeIcon:ht},"\xD7")}},Ot=fe.createContext(null);function Rt(){return fe.useContext(Ot)}function wt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ot=fe.useState(!1),Ce=(0,be.Z)(ot,2),Re=Ce[0],Ee=Ce[1],$e=fe.useRef(null),ve=function(){window.clearTimeout($e.current)};fe.useEffect(function(){return ve},[]);var Xe=function(ht,et){ve(),$e.current=window.setTimeout(function(){Ee(ht),et&&et()},Fe)};return[Re,Xe,ve]}function mt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ot=fe.useRef(null),Ce=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(Ce.current)}},[]);function Re(Ee){(Ee||ot.current===null)&&(ot.current=Ee),window.clearTimeout(Ce.current),Ce.current=window.setTimeout(function(){ot.current=null},Fe)}return[function(){return ot.current},Re]}function gt(Fe,ot,Ce,Re){var Ee=fe.useRef(null);Ee.current={open:ot,triggerOpen:Ce,customizedTrigger:Re},fe.useEffect(function(){function $e(ve){var Xe;if(!((Xe=Ee.current)!==null&&Xe!==void 0&&Xe.customizedTrigger)){var qe=ve.target;qe.shadowRoot&&ve.composed&&(qe=ve.composedPath()[0]||qe),Ee.current.open&&Fe().filter(function(ht){return ht}).every(function(ht){return!ht.contains(qe)&&ht!==qe})&&Ee.current.triggerOpen(!1)}}return window.addEventListener("mousedown",$e),function(){return window.removeEventListener("mousedown",$e)}},[])}var Qe=ie(10228);function kt(Fe){return Fe&&![Qe.Z.ESC,Qe.Z.SHIFT,Qe.Z.BACKSPACE,Qe.Z.TAB,Qe.Z.WIN_KEY,Qe.Z.ALT,Qe.Z.META,Qe.Z.WIN_KEY_RIGHT,Qe.Z.CTRL,Qe.Z.SEMICOLON,Qe.Z.EQUALS,Qe.Z.CAPS_LOCK,Qe.Z.CONTEXT_MENU,Qe.Z.F1,Qe.Z.F2,Qe.Z.F3,Qe.Z.F4,Qe.Z.F5,Qe.Z.F6,Qe.Z.F7,Qe.Z.F8,Qe.Z.F9,Qe.Z.F10,Qe.Z.F11,Qe.Z.F12].includes(Fe)}var st=ie(26112),tt=ie(83836);function St(Fe,ot,Ce){var Re=(0,Ke.Z)((0,Ke.Z)({},Fe),Ce?ot:{});return Object.keys(ot).forEach(function(Ee){var $e=ot[Ee];typeof $e=="function"&&(Re[Ee]=function(){for(var ve,Xe=arguments.length,qe=new Array(Xe),ht=0;htHn&&(En="".concat(Tn.slice(0,Hn),"..."))}var cr=function(Or){Or&&Or.stopPropagation(),_n(tn)};return typeof On=="function"?ir(dn,En,Bn,nn,cr):Mr(tn,En,Bn,nn,cr)},Jn=function(tn){if(!Ee.length)return null;var Bn=typeof xn=="function"?xn(tn):xn;return typeof On=="function"?ir(void 0,Bn,!1,!1,void 0,!0):Mr({title:Bn},Bn,!1)},un=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},fe.createElement(Tt,{ref:qe,open:$e,prefixCls:Re,id:Ce,inputElement:null,disabled:et,autoFocus:nt,autoComplete:en,editable:Ir,activeDescendantId:Xt,value:Br,onKeyDown:wn,onMouseDown:er,onChange:Vn,onPaste:Xn,onCompositionStart:Wn,onCompositionEnd:dr,onBlur:pr,tabIndex:qt,attrs:(0,st.Z)(ot,!0)}),fe.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),pn=fe.createElement(tt.Z,{prefixCls:"".concat(Er,"-overflow"),data:Ee,renderItem:rr,renderRest:Jn,suffix:un,itemKey:Ie,maxCount:Ln});return fe.createElement("span",{className:"".concat(Er,"-wrap")},pn,!Ee.length&&!Br&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},ht))},Yt=ct,Dt=function(ot){var Ce=ot.inputElement,Re=ot.prefixCls,Ee=ot.id,$e=ot.inputRef,ve=ot.disabled,Xe=ot.autoFocus,qe=ot.autoComplete,ht=ot.activeDescendantId,et=ot.mode,ze=ot.open,He=ot.values,nt=ot.placeholder,en=ot.tabIndex,Xt=ot.showSearch,qt=ot.searchValue,Dn=ot.activeValue,Ln=ot.maxLength,Hn=ot.onInputKeyDown,Mn=ot.onInputMouseDown,xn=ot.onInputChange,On=ot.onInputPaste,Fn=ot.onInputCompositionStart,_n=ot.onInputCompositionEnd,Vn=ot.onInputBlur,Xn=ot.title,wn=fe.useState(!1),er=(0,be.Z)(wn,2),Wn=er[0],dr=er[1],pr=et==="combobox",sr=pr||Xt,ur=He[0],yr=qt||"";pr&&Dn&&!Wn&&(yr=Dn),fe.useEffect(function(){pr&&dr(!1)},[pr,Dn]);var lr=et!=="combobox"&&!ze&&!Xt?!1:!!yr,fr=Xn===void 0?Ct(ur):Xn,Qn=fe.useMemo(function(){return ur?null:fe.createElement("span",{className:"".concat(Re,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},nt)},[ur,lr,nt,Re]);return fe.createElement("span",{className:"".concat(Re,"-selection-wrap")},fe.createElement("span",{className:"".concat(Re,"-selection-search")},fe.createElement(Tt,{ref:$e,prefixCls:Re,id:Ee,open:ze,inputElement:Ce,disabled:ve,autoFocus:Xe,autoComplete:qe,editable:sr,activeDescendantId:ht,value:yr,onKeyDown:Hn,onMouseDown:Mn,onChange:function(br){dr(!0),xn(br)},onPaste:On,onCompositionStart:Fn,onCompositionEnd:_n,onBlur:Vn,tabIndex:en,attrs:(0,st.Z)(ot,!0),maxLength:pr?Ln:void 0})),!pr&&ur?fe.createElement("span",{className:"".concat(Re,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,Qn)},$t=Dt,je=function(ot,Ce){var Re=(0,fe.useRef)(null),Ee=(0,fe.useRef)(!1),$e=ot.prefixCls,ve=ot.open,Xe=ot.mode,qe=ot.showSearch,ht=ot.tokenWithEnter,et=ot.disabled,ze=ot.prefix,He=ot.autoClearSearchValue,nt=ot.onSearch,en=ot.onSearchSubmit,Xt=ot.onToggleOpen,qt=ot.onInputKeyDown,Dn=ot.onInputBlur,Ln=ot.domRef;fe.useImperativeHandle(Ce,function(){return{focus:function(fr){Re.current.focus(fr)},blur:function(){Re.current.blur()}}});var Hn=mt(0),Mn=(0,be.Z)(Hn,2),xn=Mn[0],On=Mn[1],Fn=function(fr){var Qn=fr.which,mr=Re.current instanceof HTMLTextAreaElement;!mr&&ve&&(Qn===Qe.Z.UP||Qn===Qe.Z.DOWN)&&fr.preventDefault(),qt&&qt(fr),Qn===Qe.Z.ENTER&&Xe==="tags"&&!Ee.current&&!ve&&(en==null||en(fr.target.value)),!(mr&&!ve&&~[Qe.Z.UP,Qe.Z.DOWN,Qe.Z.LEFT,Qe.Z.RIGHT].indexOf(Qn))&&kt(Qn)&&Xt(!0)},_n=function(){On(!0)},Vn=(0,fe.useRef)(null),Xn=function(fr){nt(fr,!0,Ee.current)!==!1&&Xt(!0)},wn=function(){Ee.current=!0},er=function(fr){Ee.current=!1,Xe!=="combobox"&&Xn(fr.target.value)},Wn=function(fr){var Qn=fr.target.value;if(ht&&Vn.current&&/[\r\n]/.test(Vn.current)){var mr=Vn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Qn=Qn.replace(mr,Vn.current)}Vn.current=null,Xn(Qn)},dr=function(fr){var Qn=fr.clipboardData,mr=Qn==null?void 0:Qn.getData("text");Vn.current=mr||""},pr=function(fr){var Qn=fr.target;if(Qn!==Re.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){Re.current.focus()}):Re.current.focus()}},sr=function(fr){var Qn=xn();fr.target!==Re.current&&!Qn&&!(Xe==="combobox"&&et)&&fr.preventDefault(),(Xe!=="combobox"&&(!qe||!Qn)||!ve)&&(ve&&He!==!1&&nt("",!0,!1),Xt())},ur={inputRef:Re,onInputKeyDown:Fn,onInputMouseDown:_n,onInputChange:Wn,onInputPaste:dr,onInputCompositionStart:wn,onInputCompositionEnd:er,onInputBlur:Dn},yr=Xe==="multiple"||Xe==="tags"?fe.createElement(Yt,(0,z.Z)({},ot,ur)):fe.createElement($t,(0,z.Z)({},ot,ur));return fe.createElement("div",{ref:Ln,className:"".concat($e,"-selector"),onClick:pr,onMouseDown:sr},ze&&fe.createElement("div",{className:"".concat($e,"-prefix")},ze),yr)},Gt=fe.forwardRef(je),bt=Gt,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(ot){var Ce=ot===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"}}},oe=function(ot,Ce){var Re=ot.prefixCls,Ee=ot.disabled,$e=ot.visible,ve=ot.children,Xe=ot.popupElement,qe=ot.animation,ht=ot.transitionName,et=ot.dropdownStyle,ze=ot.dropdownClassName,He=ot.direction,nt=He===void 0?"ltr":He,en=ot.placement,Xt=ot.builtinPlacements,qt=ot.dropdownMatchSelectWidth,Dn=ot.dropdownRender,Ln=ot.dropdownAlign,Hn=ot.getPopupContainer,Mn=ot.empty,xn=ot.getTriggerDOMNode,On=ot.onPopupVisibleChange,Fn=ot.onPopupMouseEnter,_n=(0,we.Z)(ot,te),Vn="".concat(Re,"-dropdown"),Xn=Xe;Dn&&(Xn=Dn(Xe));var wn=fe.useMemo(function(){return Xt||ee(qt)},[Xt,qt]),er=qe?"".concat(Vn,"-").concat(qe):ht,Wn=typeof qt=="number",dr=fe.useMemo(function(){return Wn?null:qt===!1?"minWidth":"width"},[qt,Wn]),pr=et;Wn&&(pr=(0,Ke.Z)((0,Ke.Z)({},pr),{},{width:qt}));var sr=fe.useRef(null);return fe.useImperativeHandle(Ce,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),fe.createElement(ae.Z,(0,z.Z)({},_n,{showAction:On?["click"]:[],hideAction:On?["click"]:[],popupPlacement:en||(nt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:wn,prefixCls:Vn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Fn},Xn),ref:sr,stretch:dr,popupAlign:Ln,popupVisible:$e,getPopupContainer:Hn,popupClassName:Se()(ze,(0,ge.Z)({},"".concat(Vn,"-empty"),Mn)),popupStyle:pr,getTriggerDOMNode:xn,onPopupVisibleChange:On}),ve)},ue=fe.forwardRef(oe),ne=ue,he=ie(48745);function xe(Fe,ot){var Ce=Fe.key,Re;return"value"in Fe&&(Re=Fe.value),Ce!=null?Ce:Re!==void 0?Re:"rc-index-key-".concat(ot)}function vt(Fe){return typeof Fe!="undefined"&&!Number.isNaN(Fe)}function Pe(Fe,ot){var Ce=Fe||{},Re=Ce.label,Ee=Ce.value,$e=Ce.options,ve=Ce.groupLabel,Xe=Re||(ot?"children":"label");return{label:Xe,value:Ee||"value",options:$e||"options",groupLabel:ve||Xe}}function Ve(Fe){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=ot.fieldNames,Re=ot.childrenAsData,Ee=[],$e=Pe(Ce,!1),ve=$e.label,Xe=$e.value,qe=$e.options,ht=$e.groupLabel;function et(ze,He){Array.isArray(ze)&&ze.forEach(function(nt){if(He||!(qe in nt)){var en=nt[Xe];Ee.push({key:xe(nt,Ee.length),groupOption:He,data:nt,label:nt[ve],value:en})}else{var Xt=nt[ht];Xt===void 0&&Re&&(Xt=nt.label),Ee.push({key:xe(nt,Ee.length),group:!0,data:nt,label:Xt}),et(nt[qe],!0)}})}return et(Fe,!1),Ee}function dt(Fe){var ot=(0,Ke.Z)({},Fe);return"props"in ot||Object.defineProperty(ot,"props",{get:function(){return(0,Me.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ot}}),ot}var Mt=function(ot,Ce,Re){if(!Ce||!Ce.length)return null;var Ee=!1,$e=function Xe(qe,ht){var et=(0,he.Z)(ht),ze=et[0],He=et.slice(1);if(!ze)return[qe];var nt=qe.split(ze);return Ee=Ee||nt.length>1,nt.reduce(function(en,Xt){return[].concat((0,at.Z)(en),(0,at.Z)(Xe(Xt,He)))},[]).filter(Boolean)},ve=$e(ot,Ce);return Ee?typeof Re!="undefined"?ve.slice(0,Re):ve:null},pt=fe.createContext(null),Kt=pt;function Vt(Fe){var ot=Fe.visible,Ce=Fe.values;if(!ot)return null;var Re=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ce.slice(0,Re).map(function(Ee){var $e=Ee.label,ve=Ee.value;return["number","string"].includes((0,Ne.Z)($e))?$e:ve}).join(", ")),Ce.length>Re?", ...":null)}var zt=["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"],ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],_t=function(ot){return ot==="tags"||ot==="multiple"},on=fe.forwardRef(function(Fe,ot){var Ce,Re=Fe.id,Ee=Fe.prefixCls,$e=Fe.className,ve=Fe.showSearch,Xe=Fe.tagRender,qe=Fe.direction,ht=Fe.omitDomProps,et=Fe.displayValues,ze=Fe.onDisplayValuesChange,He=Fe.emptyOptions,nt=Fe.notFoundContent,en=nt===void 0?"Not Found":nt,Xt=Fe.onClear,qt=Fe.mode,Dn=Fe.disabled,Ln=Fe.loading,Hn=Fe.getInputElement,Mn=Fe.getRawInputElement,xn=Fe.open,On=Fe.defaultOpen,Fn=Fe.onDropdownVisibleChange,_n=Fe.activeValue,Vn=Fe.onActiveValueChange,Xn=Fe.activeDescendantId,wn=Fe.searchValue,er=Fe.autoClearSearchValue,Wn=Fe.onSearch,dr=Fe.onSearchSplit,pr=Fe.tokenSeparators,sr=Fe.allowClear,ur=Fe.prefix,yr=Fe.suffixIcon,lr=Fe.clearIcon,fr=Fe.OptionList,Qn=Fe.animation,mr=Fe.transitionName,br=Fe.dropdownStyle,zr=Fe.dropdownClassName,Er=Fe.dropdownMatchSelectWidth,Br=Fe.dropdownRender,Ir=Fe.dropdownAlign,Mr=Fe.placement,ir=Fe.builtinPlacements,rr=Fe.getPopupContainer,Jn=Fe.showAction,un=Jn===void 0?[]:Jn,pn=Fe.onFocus,hn=Fe.onBlur,tn=Fe.onKeyUp,Bn=Fe.onKeyDown,Gn=Fe.onMouseDown,dn=(0,we.Z)(Fe,zt),nn=_t(qt),En=(ve!==void 0?ve:nn)||qt==="combobox",Tn=(0,Ke.Z)({},dn);ln.forEach(function(Wr){delete Tn[Wr]}),ht==null||ht.forEach(function(Wr){delete Tn[Wr]});var cr=fe.useState(!1),kr=(0,be.Z)(cr,2),Or=kr[0],Rr=kr[1];fe.useEffect(function(){Rr((0,rt.Z)())},[]);var Ar=fe.useRef(null),Fr=fe.useRef(null),Vr=fe.useRef(null),Hr=fe.useRef(null),Xr=fe.useRef(null),ti=fe.useRef(!1),Ei=wt(),Ni=(0,be.Z)(Ei,3),xi=Ni[0],si=Ni[1],Ri=Ni[2];fe.useImperativeHandle(ot,function(){var Wr,Dr;return{focus:(Wr=Hr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Dr=Hr.current)===null||Dr===void 0?void 0:Dr.blur,scrollTo:function(Ci){var ii;return(ii=Xr.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Ar.current||Fr.current}});var jr=fe.useMemo(function(){var Wr;if(qt!=="combobox")return wn;var Dr=(Wr=et[0])===null||Wr===void 0?void 0:Wr.value;return typeof Dr=="string"||typeof Dr=="number"?String(Dr):""},[wn,qt,et]),Ki=qt==="combobox"&&typeof Hn=="function"&&Hn()||null,qr=typeof Mn=="function"&&Mn(),xr=(0,ke.x1)(Fr,qr==null||(Ce=qr.props)===null||Ce===void 0?void 0:Ce.ref),$r=fe.useState(!1),Gr=(0,be.Z)($r,2),Sr=Gr[0],Nr=Gr[1];(0,Pt.Z)(function(){Nr(!0)},[]);var Tr=(0,Ze.Z)(!1,{defaultValue:On,value:xn}),ui=(0,be.Z)(Tr,2),Mi=ui[0],fi=ui[1],ni=Sr?Mi:!1,xo=!en&&He;(Dn||xo&&ni&&qt==="combobox")&&(ni=!1);var so=xo?!1:ni,gr=fe.useCallback(function(Wr){var Dr=Wr!==void 0?Wr:!ni;Dn||(fi(Dr),ni!==Dr&&(Fn==null||Fn(Dr)))},[Dn,ni,fi,Fn]),Pr=fe.useMemo(function(){return(pr||[]).some(function(Wr){return[` `,`\r `].includes(Wr)})},[pr]),Cr=fe.useContext(Kt)||{},wr=Cr.maxCount,Zr=Cr.rawValues,Yr=function(Dr,yi,Ci){if(!(nn&&vt(wr)&&(Zr==null?void 0:Zr.size)>=wr)){var ii=!0,ci=Dr;Vn==null||Vn(null);var _i=Mt(Dr,pr,vt(wr)?wr-Zr.size:void 0),Ui=Ci?null:_i;return qt!=="combobox"&&Ui&&(ci="",dr==null||dr(Ui),gr(!1),ii=!1),Wn&&jr!==ci&&Wn(ci,{source:yi?"typing":"effect"}),ii}},Xi=function(Dr){!Dr||!Dr.trim()||Wn(Dr,{source:"submit"})};fe.useEffect(function(){!ni&&!nn&&qt!=="combobox"&&Yr("",!1,!1)},[ni]),fe.useEffect(function(){Mi&&Dn&&fi(!1),Dn&&!ti.current&&si(!1)},[Dn]);var Ii=mt(),vi=(0,be.Z)(Ii,2),ri=vi[0],Gi=vi[1],eo=fe.useRef(!1),Fi=function(Dr){var yi=ri(),Ci=Dr.key,ii=Ci==="Enter";if(ii&&(qt!=="combobox"&&Dr.preventDefault(),ni||gr(!0)),Gi(!!jr),Ci==="Backspace"&&!yi&&nn&&!jr&&et.length){for(var ci=(0,at.Z)(et),_i=null,Ui=ci.length-1;Ui>=0;Ui-=1){var oo=ci[Ui];if(!oo.disabled){ci.splice(Ui,1),_i=oo;break}}_i&&ze(ci,{type:"remove",values:[_i]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Ji=1;Ji<$i;Ji++)zi[Ji-1]=arguments[Ji];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Xr.current)===null||co===void 0||co.onKeyDown.apply(co,[Dr].concat(zi))}Bn==null||Bn.apply(void 0,[Dr].concat(zi))},to=function(Dr){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii1?_i-1:0),oo=1;oo<_i;oo++)Ui[oo-1]=arguments[oo];Gn==null||Gn.apply(void 0,[Dr].concat(Ui))},Vi=fe.useState({}),ba=(0,be.Z)(Vi,2),xa=ba[1];function Va(){xa({})}var Ca;qr&&(Ca=function(Dr){gr(Dr)}),gt(function(){var Wr;return[Ar.current,(Wr=Vr.current)===null||Wr===void 0?void 0:Wr.getPopupElement()]},so,gr,!!qr);var Ua=fe.useMemo(function(){return(0,Ke.Z)((0,Ke.Z)({},Fe),{},{notFoundContent:en,open:ni,triggerOpen:so,id:Re,showSearch:En,multiple:nn,toggleOpen:gr})},[Fe,en,so,ni,Re,En,nn,gr]),Ko=!!yr||Ln,Xo;Ko&&(Xo=fe.createElement(Ae,{className:Se()("".concat(Ee,"-arrow"),(0,ge.Z)({},"".concat(Ee,"-arrow-loading"),Ln)),customizeIcon:yr,customizeIconProps:{loading:Ln,searchValue:jr,open:ni,focused:xi,showSearch:En}}));var Co=function(){var Dr;Xt==null||Xt(),(Dr=Hr.current)===null||Dr===void 0||Dr.focus(),ze([],{type:"clear",values:et}),Yr("",!1,!1)},Yo=xt(Ee,Co,et,sr,lr,Dn,jr,qt),Sa=Yo.allowClear,_o=Yo.clearIcon,To=fe.createElement(fr,{ref:Xr}),wa=Se()(Ee,$e,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Ee,"-focused"),xi),"".concat(Ee,"-multiple"),nn),"".concat(Ee,"-single"),!nn),"".concat(Ee,"-allow-clear"),sr),"".concat(Ee,"-show-arrow"),Ko),"".concat(Ee,"-disabled"),Dn),"".concat(Ee,"-loading"),Ln),"".concat(Ee,"-open"),ni),"".concat(Ee,"-customize-input"),Ki),"".concat(Ee,"-show-search"),En)),Lo=fe.createElement(ne,{ref:Vr,disabled:Dn,prefixCls:Ee,visible:so,popupElement:To,animation:Qn,transitionName:mr,dropdownStyle:br,dropdownClassName:zr,direction:qe,dropdownMatchSelectWidth:Er,dropdownRender:Br,dropdownAlign:Ir,placement:Mr,builtinPlacements:ir,getPopupContainer:rr,empty:He,getTriggerDOMNode:function(Dr){return Fr.current||Dr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},qr?fe.cloneElement(qr,{ref:xr}):fe.createElement(bt,(0,z.Z)({},Fe,{domRef:Fr,prefixCls:Ee,inputElement:Ki,ref:Hr,id:Re,prefix:ur,showSearch:En,autoClearSearchValue:er,mode:qt,activeDescendantId:Xn,tagRender:Xe,values:et,open:ni,onToggleOpen:gr,activeValue:_n,searchValue:jr,onSearch:Yr,onSearchSubmit:Xi,onRemove:io,tokenWithEnter:Pr,onInputBlur:Yi}))),Di;return qr?Di=Lo:Di=fe.createElement("div",(0,z.Z)({className:wa},Tn,{ref:Ar,onMouseDown:uo,onKeyDown:Fi,onKeyUp:to,onFocus:Ga,onBlur:ya}),fe.createElement(Vt,{visible:xi&&!ni,values:et}),Lo,Xo,Sa&&_o),fe.createElement(Ot.Provider,{value:Ua},Di)}),It=on,Qt=function(){return null};Qt.isSelectOptGroup=!0;var Wt=Qt,De=function(){return null};De.isSelectOption=!0;var it=De,Lt=ie(80547),jt=ie(2738),Oe=ie(48911);function Ye(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ft=["disabled","title","children","style","className"];function Bt(Fe){return typeof Fe=="string"||typeof Fe=="number"}var Ut=function(ot,Ce){var Re=Rt(),Ee=Re.prefixCls,$e=Re.id,ve=Re.open,Xe=Re.multiple,qe=Re.mode,ht=Re.searchValue,et=Re.toggleOpen,ze=Re.notFoundContent,He=Re.onPopupScroll,nt=fe.useContext(Kt),en=nt.maxCount,Xt=nt.flattenOptions,qt=nt.onActiveValue,Dn=nt.defaultActiveFirstOption,Ln=nt.onSelect,Hn=nt.menuItemSelectedIcon,Mn=nt.rawValues,xn=nt.fieldNames,On=nt.virtual,Fn=nt.direction,_n=nt.listHeight,Vn=nt.listItemHeight,Xn=nt.optionRender,wn="".concat(Ee,"-item"),er=(0,Lt.Z)(function(){return Xt},[ve,Xt],function(Jn,un){return un[0]&&Jn[1]!==un[1]}),Wn=fe.useRef(null),dr=fe.useMemo(function(){return Xe&&vt(en)&&(Mn==null?void 0:Mn.size)>=en},[Xe,en,Mn==null?void 0:Mn.size]),pr=function(un){un.preventDefault()},sr=function(un){var pn;(pn=Wn.current)===null||pn===void 0||pn.scrollTo(typeof un=="number"?{index:un}:un)},ur=fe.useCallback(function(Jn){return qe==="combobox"?!1:Mn.has(Jn)},[qe,(0,at.Z)(Mn).toString(),Mn.size]),yr=function(un){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=er.length,tn=0;tn1&&arguments[1]!==void 0?arguments[1]:!1;mr(un);var hn={source:pn?"keyboard":"mouse"},tn=er[un];if(!tn){qt(null,-1,hn);return}qt(tn.value,un,hn)};(0,fe.useEffect)(function(){br(Dn!==!1?yr(0):-1)},[er.length,ht]);var zr=fe.useCallback(function(Jn){return qe==="combobox"?String(Jn).toLowerCase()===ht.toLowerCase():Mn.has(Jn)},[qe,ht,(0,at.Z)(Mn).toString(),Mn.size]);(0,fe.useEffect)(function(){var Jn=setTimeout(function(){if(!Xe&&ve&&Mn.size===1){var pn=Array.from(Mn)[0],hn=er.findIndex(function(tn){var Bn=tn.data;return ht?String(Bn.value).startsWith(ht):Bn.value===pn});hn!==-1&&(br(hn),sr(hn))}});if(ve){var un;(un=Wn.current)===null||un===void 0||un.scrollTo(void 0)}return function(){return clearTimeout(Jn)}},[ve,ht]);var Er=function(un){un!==void 0&&Ln(un,{selected:!Mn.has(un)}),Xe||et(!1)};if(fe.useImperativeHandle(Ce,function(){return{onKeyDown:function(un){var pn=un.which,hn=un.ctrlKey;switch(pn){case Qe.Z.N:case Qe.Z.P:case Qe.Z.UP:case Qe.Z.DOWN:{var tn=0;if(pn===Qe.Z.UP?tn=-1:pn===Qe.Z.DOWN?tn=1:Ye()&&hn&&(pn===Qe.Z.N?tn=1:pn===Qe.Z.P&&(tn=-1)),tn!==0){var Bn=yr(Qn+tn,tn);sr(Bn),br(Bn,!0)}break}case Qe.Z.TAB:case Qe.Z.ENTER:{var Gn,dn=er[Qn];dn&&!(dn!=null&&(Gn=dn.data)!==null&&Gn!==void 0&&Gn.disabled)&&!dr?Er(dn.value):Er(void 0),ve&&un.preventDefault();break}case Qe.Z.ESC:et(!1),ve&&un.stopPropagation()}},onKeyUp:function(){},scrollTo:function(un){sr(un)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat($e,"_list"),className:"".concat(wn,"-empty"),onMouseDown:pr},ze);var Br=Object.keys(xn).map(function(Jn){return xn[Jn]}),Ir=function(un){return un.label};function Mr(Jn,un){var pn=Jn.group;return{role:pn?"presentation":"option",id:"".concat($e,"_list_").concat(un)}}var ir=function(un){var pn=er[un];if(!pn)return null;var hn=pn.data||{},tn=hn.value,Bn=pn.group,Gn=(0,st.Z)(hn,!0),dn=Ir(pn);return pn?fe.createElement("div",(0,z.Z)({"aria-label":typeof dn=="string"&&!Bn?dn:null},Gn,{key:un},Mr(pn,un),{"aria-selected":zr(tn)}),tn):null},rr={role:"listbox",id:"".concat($e,"_list")};return fe.createElement(fe.Fragment,null,On&&fe.createElement("div",(0,z.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),ir(Qn-1),ir(Qn),ir(Qn+1)),fe.createElement(Oe.Z,{itemKey:"key",ref:Wn,data:er,height:_n,itemHeight:Vn,fullHeight:!1,onMouseDown:pr,onScroll:He,virtual:On,direction:Fn,innerProps:On?null:rr},function(Jn,un){var pn=Jn.group,hn=Jn.groupOption,tn=Jn.data,Bn=Jn.label,Gn=Jn.value,dn=tn.key;if(pn){var nn,En=(nn=tn.title)!==null&&nn!==void 0?nn:Bt(Bn)?Bn.toString():void 0;return fe.createElement("div",{className:Se()(wn,"".concat(wn,"-group"),tn.className),title:En},Bn!==void 0?Bn:dn)}var Tn=tn.disabled,cr=tn.title,kr=tn.children,Or=tn.style,Rr=tn.className,Ar=(0,we.Z)(tn,ft),Fr=(0,jt.Z)(Ar,Br),Vr=ur(Gn),Hr=Tn||!Vr&&dr,Xr="".concat(wn,"-option"),ti=Se()(wn,Xr,Rr,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Xr,"-grouped"),hn),"".concat(Xr,"-active"),Qn===un&&!Hr),"".concat(Xr,"-disabled"),Hr),"".concat(Xr,"-selected"),Vr)),Ei=Ir(Jn),Ni=!Hn||typeof Hn=="function"||Vr,xi=typeof Ei=="number"?Ei:Ei||Gn,si=Bt(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),fe.createElement("div",(0,z.Z)({},(0,st.Z)(Fr),On?{}:Mr(Jn,un),{"aria-selected":zr(Gn),className:ti,title:si,onMouseMove:function(){Qn===un||Hr||br(un)},onClick:function(){Hr||Er(Gn)},style:Or}),fe.createElement("div",{className:"".concat(Xr,"-content")},typeof Xn=="function"?Xn(Jn,{index:un}):xi),fe.isValidElement(Hn)||Vr,Ni&&fe.createElement(Ae,{className:"".concat(wn,"-option-state"),customizeIcon:Hn,customizeIconProps:{value:Gn,disabled:Hr,isSelected:Vr}},Vr?"\u2713":null))}))},cn=fe.forwardRef(Ut),Sn=cn,Cn=function(Fe,ot){var Ce=fe.useRef({values:new Map,options:new Map}),Re=fe.useMemo(function(){var $e=Ce.current,ve=$e.values,Xe=$e.options,qe=Fe.map(function(ze){if(ze.label===void 0){var He;return(0,Ke.Z)((0,Ke.Z)({},ze),{},{label:(He=ve.get(ze.value))===null||He===void 0?void 0:He.label})}return ze}),ht=new Map,et=new Map;return qe.forEach(function(ze){ht.set(ze.value,ze),et.set(ze.value,ot.get(ze.value)||Xe.get(ze.value))}),Ce.current.values=ht,Ce.current.options=et,qe},[Fe,ot]),Ee=fe.useCallback(function($e){return ot.get($e)||Ce.current.options.get($e)},[ot]);return[Re,Ee]};function sn(Fe,ot){return Be(Fe).join("").toUpperCase().includes(ot)}var yn=function(Fe,ot,Ce,Re,Ee){return fe.useMemo(function(){if(!Ce||Re===!1)return Fe;var $e=ot.options,ve=ot.label,Xe=ot.value,qe=[],ht=typeof Re=="function",et=Ce.toUpperCase(),ze=ht?Re:function(nt,en){return Ee?sn(en[Ee],et):en[$e]?sn(en[ve!=="children"?ve:"label"],et):sn(en[Xe],et)},He=ht?function(nt){return dt(nt)}:function(nt){return nt};return Fe.forEach(function(nt){if(nt[$e]){var en=ze(Ce,He(nt));if(en)qe.push(nt);else{var Xt=nt[$e].filter(function(qt){return ze(Ce,He(qt))});Xt.length&&qe.push((0,Ke.Z)((0,Ke.Z)({},nt),{},(0,ge.Z)({},$e,Xt)))}return}ze(Ce,He(nt))&&qe.push(nt)}),qe},[Fe,Re,Ee,Ce,ot])},gn=ie(6551),$n=ie(11592),bn=["children","value"],vn=["children"];function Jt(Fe){var ot=Fe,Ce=ot.key,Re=ot.props,Ee=Re.children,$e=Re.value,ve=(0,we.Z)(Re,bn);return(0,Ke.Z)({key:Ce,value:$e!==void 0?$e:Ce,children:Ee},ve)}function Pn(Fe){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,$n.Z)(Fe).map(function(Ce,Re){if(!fe.isValidElement(Ce)||!Ce.type)return null;var Ee=Ce,$e=Ee.type.isSelectOptGroup,ve=Ee.key,Xe=Ee.props,qe=Xe.children,ht=(0,we.Z)(Xe,vn);return ot||!$e?Jt(Ce):(0,Ke.Z)((0,Ke.Z)({key:"__RC_SELECT_GRP__".concat(ve===null?Re:ve,"__"),label:ve},ht),{},{options:Pn(qe)})}).filter(function(Ce){return Ce})}var mn=function(ot,Ce,Re,Ee,$e){return fe.useMemo(function(){var ve=ot,Xe=!ot;Xe&&(ve=Pn(Ce));var qe=new Map,ht=new Map,et=function(nt,en,Xt){Xt&&typeof Xt=="string"&&nt.set(en[Xt],en)},ze=function He(nt){for(var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=0;Xt1&&arguments[1]!==void 0?arguments[1]:!1,ve=0;ve0?gr(wr.options):wr.options}):wr})},Ni=fe.useMemo(function(){return Ln?Ei(ti):ti},[ti,Ln,rr]),xi=fe.useMemo(function(){return Ve(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Pr){var Cr=Bn(Pr);if(En(Cr),fr&&(Cr.length!==Or.length||Cr.some(function(Yr,Xi){var Ii;return((Ii=Or[Xi])===null||Ii===void 0?void 0:Ii.value)!==(Yr==null?void 0:Yr.value)}))){var wr=lr?Cr:Cr.map(function(Yr){return Yr.value}),Zr=Cr.map(function(Yr){return dt(Rr(Yr.value))});fr(zr?wr:wr[0],zr?Zr:Zr[0])}},Ri=fe.useState(null),jr=(0,be.Z)(Ri,2),Ki=jr[0],qr=jr[1],xr=fe.useState(0),$r=(0,be.Z)(xr,2),Gr=$r[0],Sr=$r[1],Nr=_n!==void 0?_n:Re!=="combobox",Tr=fe.useCallback(function(gr,Pr){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},wr=Cr.source,Zr=wr===void 0?"keyboard":wr;Sr(Pr),ve&&Re==="combobox"&&gr!==null&&Zr==="keyboard"&&qr(String(gr))},[ve,Re]),ui=function(Pr,Cr,wr){var Zr=function(){var io,Yi=Rr(Pr);return[lr?{label:Yi==null?void 0:Yi[Ir.label],value:Pr,key:(io=Yi==null?void 0:Yi.key)!==null&&io!==void 0?io:Pr}:Pr,dt(Yi)]};if(Cr&&nt){var Yr=Zr(),Xi=(0,be.Z)(Yr,2),Ii=Xi[0],vi=Xi[1];nt(Ii,vi)}else if(!Cr&&en&&wr!=="clear"){var ri=Zr(),Gi=(0,be.Z)(ri,2),eo=Gi[0],Fi=Gi[1];en(eo,Fi)}},Mi=jn(function(gr,Pr){var Cr,wr=zr?Pr.selected:!0;wr?Cr=zr?[].concat((0,at.Z)(Or),[gr]):[gr]:Cr=Or.filter(function(Zr){return Zr.value!==gr}),si(Cr),ui(gr,wr),Re==="combobox"?qr(""):(!_t||He)&&(Jn(""),qr(""))}),fi=function(Pr,Cr){si(Pr);var wr=Cr.type,Zr=Cr.values;(wr==="remove"||wr==="clear")&&Zr.forEach(function(Yr){ui(Yr.value,!1,wr)})},ni=function(Pr,Cr){if(Jn(Pr),qr(null),Cr.source==="submit"){var wr=(Pr||"").trim();if(wr){var Zr=Array.from(new Set([].concat((0,at.Z)(Fr),[wr])));si(Zr),ui(wr,!0),Jn("")}return}Cr.source!=="blur"&&(Re==="combobox"&&si(Pr),et==null||et(Pr))},xo=function(Pr){var Cr=Pr;Re!=="tags"&&(Cr=Pr.map(function(Zr){var Yr=hn.get(Zr);return Yr==null?void 0:Yr.value}).filter(function(Zr){return Zr!==void 0}));var wr=Array.from(new Set([].concat((0,at.Z)(Fr),(0,at.Z)(Cr))));si(wr),wr.forEach(function(Zr){ui(Zr,!0)})},so=fe.useMemo(function(){var gr=Xn!==!1&&qt!==!1;return(0,Ke.Z)((0,Ke.Z)({},un),{},{flattenOptions:xi,onActiveValue:Tr,defaultActiveFirstOption:Nr,onSelect:Mi,menuItemSelectedIcon:Vn,rawValues:Fr,fieldNames:Ir,virtual:gr,direction:wn,listHeight:Wn,listItemHeight:pr,childrenAsData:Er,maxCount:Qn,optionRender:On})},[Qn,un,xi,Tr,Nr,Mi,Vn,Fr,Ir,Xn,qt,wn,Wn,pr,Er,On]);return fe.createElement(Kt.Provider,{value:so},fe.createElement(It,(0,z.Z)({},mr,{id:br,prefixCls:$e,ref:ot,omitDomProps:ar,mode:Re,displayValues:Ar,onDisplayValuesChange:fi,direction:wn,searchValue:rr,onSearch:ni,autoClearSearchValue:He,onSearchSplit:xo,dropdownMatchSelectWidth:qt,OptionList:Sn,emptyOptions:!xi.length,activeValue:Ki,activeDescendantId:"".concat(br,"_list_").concat(Gr)})))}),rn=Ft;rn.Option=it,rn.OptGroup=Wt;var zn=rn,nr=zn},22711:function(an,Zt,ie){"use strict";ie.r(Zt),ie.d(Zt,{ResizableTextArea:function(){return We},default:function(){return Tt}});var z=ie(60499),at=ie(18642),ge=ie(85899),Ke=ie(77654),be=ie(72190),we=ie(42244),Ne=ie(92310),Ze=ie.n(Ne),Me=ie(36901),fe=ie(66003),Je=ie(30292),Se=ie(18929),Pt=ie(59301),rt=ie(43749),ke=ie(29301),Le=ie(34280),Ae=ie(16089),xt=` 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; `,Ot=["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"],Rt={},wt;function mt(Be){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=Be.getAttribute("id")||Be.getAttribute("data-reactid")||Be.getAttribute("name");if(Ge&&Rt[At])return Rt[At];var ye=window.getComputedStyle(Be),se=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),Te=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),Ct=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),Et=Ot.map(function(_e){return"".concat(_e,":").concat(ye.getPropertyValue(_e))}).join(";"),Ie={sizingStyle:Et,paddingSize:Te,borderSize:Ct,boxSizing:se};return Ge&&At&&(Rt[At]=Ie),Ie}function gt(Be){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;wt||(wt=document.createElement("textarea"),wt.setAttribute("tab-index","-1"),wt.setAttribute("aria-hidden","true"),wt.setAttribute("name","hiddenTextarea"),document.body.appendChild(wt)),Be.getAttribute("wrap")?wt.setAttribute("wrap",Be.getAttribute("wrap")):wt.removeAttribute("wrap");var se=mt(Be,Ge),Te=se.paddingSize,Ct=se.borderSize,Et=se.boxSizing,Ie=se.sizingStyle;wt.setAttribute("style","".concat(Ie,";").concat(xt)),wt.value=Be.value||Be.placeholder||"";var _e=void 0,ct=void 0,Yt,Dt=wt.scrollHeight;if(Et==="border-box"?Dt+=Ct:Et==="content-box"&&(Dt-=Te),At!==null||ye!==null){wt.value=" ";var $t=wt.scrollHeight-Te;At!==null&&(_e=$t*At,Et==="border-box"&&(_e=_e+Te+Ct),Dt=Math.max(_e,Dt)),ye!==null&&(ct=$t*ye,Et==="border-box"&&(ct=ct+Te+Ct),Yt=Dt>ct?"":"hidden",Dt=Math.min(ct,Dt))}var je={height:Dt,overflowY:Yt,resize:"none"};return _e&&(je.minHeight=_e),ct&&(je.maxHeight=ct),je}var Qe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kt=0,st=1,tt=2,St=Pt.forwardRef(function(Be,Ge){var At=Be,ye=At.prefixCls,se=At.defaultValue,Te=At.value,Ct=At.autoSize,Et=At.onResize,Ie=At.className,_e=At.style,ct=At.disabled,Yt=At.onChange,Dt=At.onInternalAutoSize,$t=(0,we.Z)(At,Qe),je=(0,Se.Z)(se,{value:Te,postState:function(it){return it!=null?it:""}}),Gt=(0,be.Z)(je,2),bt=Gt[0],ae=Gt[1],te=function(it){ae(it.target.value),Yt==null||Yt(it)},ee=Pt.useRef();Pt.useImperativeHandle(Ge,function(){return{textArea:ee.current}});var oe=Pt.useMemo(function(){return Ct&&(0,rt.Z)(Ct)==="object"?[Ct.minRows,Ct.maxRows]:[]},[Ct]),ue=(0,be.Z)(oe,2),ne=ue[0],he=ue[1],xe=!!Ct,vt=function(){try{if(document.activeElement===ee.current){var it=ee.current,Lt=it.selectionStart,jt=it.selectionEnd,Oe=it.scrollTop;ee.current.setSelectionRange(Lt,jt),ee.current.scrollTop=Oe}}catch(Ye){}},Pe=Pt.useState(tt),Ve=(0,be.Z)(Pe,2),dt=Ve[0],Mt=Ve[1],pt=Pt.useState(),Kt=(0,be.Z)(pt,2),Vt=Kt[0],zt=Kt[1],ln=function(){Mt(kt)};(0,Le.Z)(function(){xe&&ln()},[Te,ne,he,xe]),(0,Le.Z)(function(){if(dt===kt)Mt(st);else if(dt===st){var De=gt(ee.current,!1,ne,he);Mt(tt),zt(De)}else vt()},[dt]);var _t=Pt.useRef(),on=function(){Ae.Z.cancel(_t.current)},It=function(it){dt===tt&&(Et==null||Et(it),Ct&&(on(),_t.current=(0,Ae.Z)(function(){ln()})))};Pt.useEffect(function(){return on},[]);var Qt=xe?Vt:null,Wt=(0,ge.Z)((0,ge.Z)({},_e),Qt);return(dt===kt||dt===st)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),Pt.createElement(ke.Z,{onResize:It,disabled:!(Ct||Et)},Pt.createElement("textarea",(0,z.Z)({},$t,{ref:ee,style:Wt,className:Ze()(ye,Ie,(0,at.Z)({},"".concat(ye,"-disabled"),ct)),disabled:ct,value:bt,onChange:te})))}),We=St,yt=["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"],ut=Pt.forwardRef(function(Be,Ge){var At,ye=Be.defaultValue,se=Be.value,Te=Be.onFocus,Ct=Be.onBlur,Et=Be.onChange,Ie=Be.allowClear,_e=Be.maxLength,ct=Be.onCompositionStart,Yt=Be.onCompositionEnd,Dt=Be.suffix,$t=Be.prefixCls,je=$t===void 0?"rc-textarea":$t,Gt=Be.showCount,bt=Be.count,ae=Be.className,te=Be.style,ee=Be.disabled,oe=Be.hidden,ue=Be.classNames,ne=Be.styles,he=Be.onResize,xe=Be.onClear,vt=Be.onPressEnter,Pe=Be.readOnly,Ve=Be.autoSize,dt=Be.onKeyDown,Mt=(0,we.Z)(Be,yt),pt=(0,Se.Z)(ye,{value:se,defaultValue:ye}),Kt=(0,be.Z)(pt,2),Vt=Kt[0],zt=Kt[1],ln=Vt==null?"":String(Vt),_t=Pt.useState(!1),on=(0,be.Z)(_t,2),It=on[0],Qt=on[1],Wt=Pt.useRef(!1),De=Pt.useState(null),it=(0,be.Z)(De,2),Lt=it[0],jt=it[1],Oe=(0,Pt.useRef)(null),Ye=(0,Pt.useRef)(null),ft=function(){var rn;return(rn=Ye.current)===null||rn===void 0?void 0:rn.textArea},Bt=function(){ft().focus()};(0,Pt.useImperativeHandle)(Ge,function(){var Ft;return{resizableTextArea:Ye.current,focus:Bt,blur:function(){ft().blur()},nativeElement:((Ft=Oe.current)===null||Ft===void 0?void 0:Ft.nativeElement)||ft()}}),(0,Pt.useEffect)(function(){Qt(function(Ft){return!ee&&Ft})},[ee]);var Ut=Pt.useState(null),cn=(0,be.Z)(Ut,2),Sn=cn[0],Cn=cn[1];Pt.useEffect(function(){if(Sn){var Ft;(Ft=ft()).setSelectionRange.apply(Ft,(0,Ke.Z)(Sn))}},[Sn]);var sn=(0,fe.Z)(bt,Gt),yn=(At=sn.max)!==null&&At!==void 0?At:_e,gn=Number(yn)>0,$n=sn.strategy(ln),bn=!!yn&&$n>yn,vn=function(rn,zn){var nr=zn;!Wt.current&&sn.exceedFormatter&&sn.max&&sn.strategy(zn)>sn.max&&(nr=sn.exceedFormatter(zn,{max:sn.max}),zn!==nr&&Cn([ft().selectionStart||0,ft().selectionEnd||0])),zt(nr),(0,Je.rJ)(rn.currentTarget,rn,Et,nr)},Jt=function(rn){Wt.current=!0,ct==null||ct(rn)},Pn=function(rn){Wt.current=!1,vn(rn,rn.currentTarget.value),Yt==null||Yt(rn)},mn=function(rn){vn(rn,rn.target.value)},kn=function(rn){rn.key==="Enter"&&vt&&vt(rn),dt==null||dt(rn)},jn=function(rn){Qt(!0),Te==null||Te(rn)},Zn=function(rn){Qt(!1),Ct==null||Ct(rn)},An=function(rn){zt(""),Bt(),(0,Je.rJ)(ft(),rn,Et)},Yn=Dt,Nn;sn.show&&(sn.showFormatter?Nn=sn.showFormatter({value:ln,count:$n,maxLength:yn}):Nn="".concat($n).concat(gn?" / ".concat(yn):""),Yn=Pt.createElement(Pt.Fragment,null,Yn,Pt.createElement("span",{className:Ze()("".concat(je,"-data-count"),ue==null?void 0:ue.count),style:ne==null?void 0:ne.count},Nn)));var ar=function(rn){var zn;he==null||he(rn),(zn=ft())!==null&&zn!==void 0&&zn.style.height&&jt(!0)},qn=!Ve&&!Gt&&!Ie;return Pt.createElement(Me.BaseInput,{ref:Oe,value:ln,allowClear:Ie,handleReset:An,suffix:Yn,prefixCls:je,classNames:(0,ge.Z)((0,ge.Z)({},ue),{},{affixWrapper:Ze()(ue==null?void 0:ue.affixWrapper,(0,at.Z)((0,at.Z)({},"".concat(je,"-show-count"),Gt),"".concat(je,"-textarea-allow-clear"),Ie))}),disabled:ee,focused:It,className:Ze()(ae,bn&&"".concat(je,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},te),Lt&&!qn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Nn=="string"?Nn:void 0}},hidden:oe,readOnly:Pe,onClear:xe},Pt.createElement(We,(0,z.Z)({},Mt,{autoSize:Ve,maxLength:_e,onKeyDown:kn,onChange:mn,onFocus:jn,onBlur:Zn,onCompositionStart:Jt,onCompositionEnd:Pn,className:Ze()(ue==null?void 0:ue.textarea),style:(0,ge.Z)((0,ge.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:je,onResize:ar,ref:Ye,readOnly:Pe})))}),pe=ut,Tt=pe},48911:function(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return bt}});var z=ie(60499),at=ie(43749),ge=ie(85899),Ke=ie(18642),be=ie(72190),we=ie(42244),Ne=ie(92310),Ze=ie.n(Ne),Me=ie(29301),fe=ie(70425),Je=ie(34280),Se=ie(59301),Pt=ie(4676),rt=Se.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,ue=ae.offsetX,ne=ae.children,he=ae.prefixCls,xe=ae.onInnerResize,vt=ae.innerProps,Pe=ae.rtl,Ve=ae.extra,dt={},Mt={display:"flex",flexDirection:"column"};return oe!==void 0&&(dt={height:ee,position:"relative",overflow:"hidden"},Mt=(0,ge.Z)((0,ge.Z)({},Mt),{},(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({transform:"translateY(".concat(oe,"px)")},Pe?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),Se.createElement("div",{style:dt},Se.createElement(Me.Z,{onResize:function(Kt){var Vt=Kt.offsetHeight;Vt&&xe&&xe()}},Se.createElement("div",(0,z.Z)({style:Mt,className:Ze()((0,Ke.Z)({},"".concat(he,"-holder-inner"),he)),ref:te},vt),ne,Ve)))});rt.displayName="Filler";var ke=rt;function Le(ae){var te=ae.children,ee=ae.setRef,oe=Se.useCallback(function(ue){ee(ue)},[]);return Se.cloneElement(te,{ref:oe})}function Ae(ae,te,ee,oe,ue,ne,he,xe){var vt=xe.getKey;return ae.slice(te,ee+1).map(function(Pe,Ve){var dt=te+Ve,Mt=he(Pe,dt,{style:{width:oe},offsetX:ue}),pt=vt(Pe);return Se.createElement(Le,{key:pt,setRef:function(Vt){return ne(Pe,Vt)}},Mt)})}function xt(ae,te,ee,oe){var ue=ee-ae,ne=te-ee,he=Math.min(ue,ne)*2;if(oe<=he){var xe=Math.floor(oe/2);return oe%2?ee+xe+1:ee-xe}return ue>ne?ee-(oe-ne):ee+(oe-ue)}function Ot(ae,te,ee){var oe=ae.length,ue=te.length,ne,he;if(oe===0&&ue===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,dt=vt?Pe<0&&xe.current.left||Pe>0&&xe.current.right:Pe<0&&xe.current.top||Pe>0&&xe.current.bottom;return Ve&&dt?(clearTimeout(ne.current),ue.current=!1):(!dt||ue.current)&&he(),!ue.current&&dt}};function kt(ae,te,ee,oe,ue,ne,he){var xe=(0,Se.useRef)(0),vt=(0,Se.useRef)(null),Pe=(0,Se.useRef)(null),Ve=(0,Se.useRef)(!1),dt=Qe(te,ee,oe,ue);function Mt(_t,on){if(wt.Z.cancel(vt.current),!dt(!1,on)){var It=_t;if(!It._virtualHandled)It._virtualHandled=!0;else return;xe.current+=on,Pe.current=on,gt||It.preventDefault(),vt.current=(0,wt.Z)(function(){var Qt=Ve.current?10:1;he(xe.current*Qt,!1),xe.current=0})}}function pt(_t,on){he(on,!0),gt||_t.preventDefault()}var Kt=(0,Se.useRef)(null),Vt=(0,Se.useRef)(null);function zt(_t){if(ae){wt.Z.cancel(Vt.current),Vt.current=(0,wt.Z)(function(){Kt.current=null},2);var on=_t.deltaX,It=_t.deltaY,Qt=_t.shiftKey,Wt=on,De=It;(Kt.current==="sx"||!Kt.current&&Qt&&It&&!on)&&(Wt=It,De=0,Kt.current="sx");var it=Math.abs(Wt),Lt=Math.abs(De);Kt.current===null&&(Kt.current=ne&&it>Lt?"x":"y"),Kt.current==="y"?Mt(_t,De):pt(_t,Wt)}}function ln(_t){ae&&(Ve.current=_t.detail===Pe.current)}return[zt,ln]}function st(ae,te,ee,oe){var ue=Se.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,be.Z)(ue,2),he=ne[0],xe=ne[1],vt=function(Ve){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve,Mt=he.get(Ve),pt=he.get(dt);if(Mt===void 0||pt===void 0)for(var Kt=ae.length,Vt=xe.length;Vt0&&arguments[0]!==void 0?arguments[0]:!1;Ve();var Kt=function(){var ln=!1;xe.current.forEach(function(_t,on){if(_t&&_t.offsetParent){var It=_t.offsetHeight,Qt=getComputedStyle(_t),Wt=Qt.marginTop,De=Qt.marginBottom,it=ut(Wt),Lt=ut(De),jt=It+it+Lt;vt.current.get(on)!==jt&&(vt.current.set(on,jt),ln=!0)}}),ln&&he(function(_t){return _t+1})};if(pt)Kt();else{Pe.current+=1;var Vt=Pe.current;Promise.resolve().then(function(){Vt===Pe.current&&Kt()})}}function Mt(pt,Kt){var Vt=ae(pt),zt=xe.current.get(Vt);Kt?(xe.current.set(Vt,Kt),dt()):xe.current.delete(Vt),!zt!=!Kt&&(Kt?te==null||te(pt):ee==null||ee(pt))}return(0,Se.useEffect)(function(){return Ve},[]),[Mt,dt,vt.current,ne]}var Tt=14/15;function Be(ae,te,ee){var oe=(0,Se.useRef)(!1),ue=(0,Se.useRef)(0),ne=(0,Se.useRef)(0),he=(0,Se.useRef)(null),xe=(0,Se.useRef)(null),vt,Pe=function(pt){if(oe.current){var Kt=Math.ceil(pt.touches[0].pageX),Vt=Math.ceil(pt.touches[0].pageY),zt=ue.current-Kt,ln=ne.current-Vt,_t=Math.abs(zt)>Math.abs(ln);_t?ue.current=Kt:ne.current=Vt;var on=ee(_t,_t?zt:ln,!1,pt);on&&pt.preventDefault(),clearInterval(xe.current),on&&(xe.current=setInterval(function(){_t?zt*=Tt:ln*=Tt;var It=Math.floor(_t?zt:ln);(!ee(_t,It,!0)||Math.abs(It)<=.1)&&clearInterval(xe.current)},16))}},Ve=function(){oe.current=!1,vt()},dt=function(pt){vt(),pt.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(pt.touches[0].pageX),ne.current=Math.ceil(pt.touches[0].pageY),he.current=pt.target,he.current.addEventListener("touchmove",Pe,{passive:!1}),he.current.addEventListener("touchend",Ve,{passive:!0}))};vt=function(){he.current&&(he.current.removeEventListener("touchmove",Pe),he.current.removeEventListener("touchend",Ve))},(0,Je.Z)(function(){return ae&&te.current.addEventListener("touchstart",dt,{passive:!0}),function(){var Mt;(Mt=te.current)===null||Mt===void 0||Mt.removeEventListener("touchstart",dt),vt(),clearInterval(xe.current)}},[ae])}function Ge(ae){return Math.floor(Math.pow(ae,.5))}function At(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ye(ae,te,ee){Se.useEffect(function(){var oe=te.current;if(ae&&oe){var ue=!1,ne,he,xe=function(){wt.Z.cancel(ne)},vt=function Mt(){xe(),ne=(0,wt.Z)(function(){ee(he),Mt()})},Pe=function(){ue=!1,xe()},Ve=function(pt){if(!(pt.target.draggable||pt.button!==0)){var Kt=pt;Kt._virtualHandled||(Kt._virtualHandled=!0,ue=!0)}},dt=function(pt){if(ue){var Kt=At(pt,!1),Vt=oe.getBoundingClientRect(),zt=Vt.top,ln=Vt.bottom;if(Kt<=zt){var _t=zt-Kt;he=-Ge(_t),vt()}else if(Kt>=ln){var on=Kt-ln;he=Ge(on),vt()}else xe()}};return oe.addEventListener("mousedown",Ve),oe.ownerDocument.addEventListener("mouseup",Pe),oe.ownerDocument.addEventListener("mousemove",dt),oe.ownerDocument.addEventListener("dragend",Pe),function(){oe.removeEventListener("mousedown",Ve),oe.ownerDocument.removeEventListener("mouseup",Pe),oe.ownerDocument.removeEventListener("mousemove",dt),oe.ownerDocument.removeEventListener("dragend",Pe),xe()}}},[ae])}var se=10;function Te(ae,te,ee,oe,ue,ne,he,xe){var vt=Se.useRef(),Pe=Se.useState(null),Ve=(0,be.Z)(Pe,2),dt=Ve[0],Mt=Ve[1];return(0,Je.Z)(function(){if(dt&&dt.times=0;Bt-=1){var Ut=ue(te[Bt]),cn=ee.get(Ut);if(cn===void 0){_t=!0;break}if(ft-=cn,ft<=0)break}switch(Qt){case"top":It=De-zt;break;case"bottom":It=it-ln+zt;break;default:{var Sn=ae.current.scrollTop,Cn=Sn+ln;DeCn&&(on="bottom")}}It!==null&&he(It),It!==dt.lastTop&&(_t=!0)}_t&&Mt((0,ge.Z)((0,ge.Z)({},dt),{},{times:dt.times+1,targetAlign:on,lastTop:It}))}},[dt,ae.current]),function(pt){if(pt==null){xe();return}if(wt.Z.cancel(vt.current),typeof pt=="number")he(pt);else if(pt&&(0,at.Z)(pt)==="object"){var Kt,Vt=pt.align;"index"in pt?Kt=pt.index:Kt=te.findIndex(function(_t){return ue(_t)===pt.key});var zt=pt.offset,ln=zt===void 0?0:zt;Mt({times:0,index:Kt,offset:ln,originAlign:Vt})}}}var Ct=Se.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,ne=ae.scrollRange,he=ae.onStartMove,xe=ae.onStopMove,vt=ae.onScroll,Pe=ae.horizontal,Ve=ae.spinSize,dt=ae.containerSize,Mt=ae.style,pt=ae.thumbStyle,Kt=ae.showScrollBar,Vt=Se.useState(!1),zt=(0,be.Z)(Vt,2),ln=zt[0],_t=zt[1],on=Se.useState(null),It=(0,be.Z)(on,2),Qt=It[0],Wt=It[1],De=Se.useState(null),it=(0,be.Z)(De,2),Lt=it[0],jt=it[1],Oe=!oe,Ye=Se.useRef(),ft=Se.useRef(),Bt=Se.useState(Kt),Ut=(0,be.Z)(Bt,2),cn=Ut[0],Sn=Ut[1],Cn=Se.useRef(),sn=function(){Kt===!0||Kt===!1||(clearTimeout(Cn.current),Sn(!0),Cn.current=setTimeout(function(){Sn(!1)},3e3))},yn=ne-dt||0,gn=dt-Ve||0,$n=Se.useMemo(function(){if(ue===0||yn===0)return 0;var An=ue/yn;return An*gn},[ue,yn,gn]),bn=function(Yn){Yn.stopPropagation(),Yn.preventDefault()},vn=Se.useRef({top:$n,dragging:ln,pageY:Qt,startTop:Lt});vn.current={top:$n,dragging:ln,pageY:Qt,startTop:Lt};var Jt=function(Yn){_t(!0),Wt(At(Yn,Pe)),jt(vn.current.top),he(),Yn.stopPropagation(),Yn.preventDefault()};Se.useEffect(function(){var An=function(qn){qn.preventDefault()},Yn=Ye.current,Nn=ft.current;return Yn.addEventListener("touchstart",An,{passive:!1}),Nn.addEventListener("touchstart",Jt,{passive:!1}),function(){Yn.removeEventListener("touchstart",An),Nn.removeEventListener("touchstart",Jt)}},[]);var Pn=Se.useRef();Pn.current=yn;var mn=Se.useRef();mn.current=gn,Se.useEffect(function(){if(ln){var An,Yn=function(qn){var Ft=vn.current,rn=Ft.dragging,zn=Ft.pageY,nr=Ft.startTop;wt.Z.cancel(An);var Fe=Ye.current.getBoundingClientRect(),ot=dt/(Pe?Fe.width:Fe.height);if(rn){var Ce=(At(qn,Pe)-zn)*ot,Re=nr;!Oe&&Pe?Re-=Ce:Re+=Ce;var Ee=Pn.current,$e=mn.current,ve=$e?Re/$e:0,Xe=Math.ceil(ve*Ee);Xe=Math.max(Xe,0),Xe=Math.min(Xe,Ee),An=(0,wt.Z)(function(){vt(Xe,Pe)})}},Nn=function(){_t(!1),xe()};return window.addEventListener("mousemove",Yn,{passive:!0}),window.addEventListener("touchmove",Yn,{passive:!0}),window.addEventListener("mouseup",Nn,{passive:!0}),window.addEventListener("touchend",Nn,{passive:!0}),function(){window.removeEventListener("mousemove",Yn),window.removeEventListener("touchmove",Yn),window.removeEventListener("mouseup",Nn),window.removeEventListener("touchend",Nn),wt.Z.cancel(An)}}},[ln]),Se.useEffect(function(){return sn(),function(){clearTimeout(Cn.current)}},[ue]),Se.useImperativeHandle(te,function(){return{delayHidden:sn}});var kn="".concat(ee,"-scrollbar"),jn={position:"absolute",visibility:cn?null:"hidden"},Zn={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(jn,{height:8,left:0,right:0,bottom:0}),Object.assign(Zn,(0,Ke.Z)({height:"100%",width:Ve},Oe?"left":"right",$n))):(Object.assign(jn,(0,Ke.Z)({width:8,top:0,bottom:0},Oe?"right":"left",0)),Object.assign(Zn,{width:"100%",height:Ve,top:$n})),Se.createElement("div",{ref:Ye,className:Ze()(kn,(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},"".concat(kn,"-horizontal"),Pe),"".concat(kn,"-vertical"),!Pe),"".concat(kn,"-visible"),cn)),style:(0,ge.Z)((0,ge.Z)({},jn),Mt),onMouseDown:bn,onMouseMove:sn},Se.createElement("div",{ref:ft,className:Ze()("".concat(kn,"-thumb"),(0,Ke.Z)({},"".concat(kn,"-thumb-moving"),ln)),style:(0,ge.Z)((0,ge.Z)({},Zn),pt),onMouseDown:Jt}))}),Et=Ct,Ie=20;function _e(){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,Ie),Math.floor(ee)}var ct=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Yt=[],Dt={overflowY:"auto",overflowAnchor:"none"};function $t(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,ue=ae.className,ne=ae.height,he=ae.itemHeight,xe=ae.fullHeight,vt=xe===void 0?!0:xe,Pe=ae.style,Ve=ae.data,dt=ae.children,Mt=ae.itemKey,pt=ae.virtual,Kt=ae.direction,Vt=ae.scrollWidth,zt=ae.component,ln=zt===void 0?"div":zt,_t=ae.onScroll,on=ae.onVirtualScroll,It=ae.onVisibleChange,Qt=ae.innerProps,Wt=ae.extraRender,De=ae.styles,it=ae.showScrollBar,Lt=it===void 0?"optional":it,jt=(0,we.Z)(ae,ct),Oe=Se.useCallback(function(un){return typeof Mt=="function"?Mt(un):un==null?void 0:un[Mt]},[Mt]),Ye=pe(Oe,null,null),ft=(0,be.Z)(Ye,4),Bt=ft[0],Ut=ft[1],cn=ft[2],Sn=ft[3],Cn=!!(pt!==!1&&ne&&he),sn=Se.useMemo(function(){return Object.values(cn.maps).reduce(function(un,pn){return un+pn},0)},[cn.id,cn.maps]),yn=Cn&&Ve&&(Math.max(he*Ve.length,sn)>ne||!!Vt),gn=Kt==="rtl",$n=Ze()(oe,(0,Ke.Z)({},"".concat(oe,"-rtl"),gn),ue),bn=Ve||Yt,vn=(0,Se.useRef)(),Jt=(0,Se.useRef)(),Pn=(0,Se.useRef)(),mn=(0,Se.useState)(0),kn=(0,be.Z)(mn,2),jn=kn[0],Zn=kn[1],An=(0,Se.useState)(0),Yn=(0,be.Z)(An,2),Nn=Yn[0],ar=Yn[1],qn=(0,Se.useState)(!1),Ft=(0,be.Z)(qn,2),rn=Ft[0],zn=Ft[1],nr=function(){zn(!0)},Fe=function(){zn(!1)},ot={getKey:Oe};function Ce(un){Zn(function(pn){var hn;typeof un=="function"?hn=un(pn):hn=un;var tn=_n(hn);return vn.current.scrollTop=tn,tn})}var Re=(0,Se.useRef)({start:0,end:bn.length}),Ee=(0,Se.useRef)(),$e=Rt(bn,Oe),ve=(0,be.Z)($e,1),Xe=ve[0];Ee.current=Xe;var qe=Se.useMemo(function(){if(!Cn)return{scrollHeight:void 0,start:0,end:bn.length-1,offset:void 0};if(!yn){var un;return{scrollHeight:((un=Jt.current)===null||un===void 0?void 0:un.offsetHeight)||0,start:0,end:bn.length-1,offset:void 0}}for(var pn=0,hn,tn,Bn,Gn=bn.length,dn=0;dn=jn&&hn===void 0&&(hn=dn,tn=pn),cr>jn+ne&&Bn===void 0&&(Bn=dn),pn=cr}return hn===void 0&&(hn=0,tn=0,Bn=Math.ceil(ne/he)),Bn===void 0&&(Bn=bn.length-1),Bn=Math.min(Bn+1,bn.length-1),{scrollHeight:pn,start:hn,end:Bn,offset:tn}},[yn,Cn,jn,bn,Sn,ne]),ht=qe.scrollHeight,et=qe.start,ze=qe.end,He=qe.offset;Re.current.start=et,Re.current.end=ze,Se.useLayoutEffect(function(){var un=cn.getRecord();if(un.size===1){var pn=Array.from(un.keys())[0],hn=un.get(pn),tn=bn[et];if(tn&&hn===void 0){var Bn=Oe(tn);if(Bn===pn){var Gn=cn.get(pn),dn=Gn-he;Ce(function(nn){return nn+dn})}}}cn.resetRecord()},[ht]);var nt=Se.useState({width:0,height:ne}),en=(0,be.Z)(nt,2),Xt=en[0],qt=en[1],Dn=function(pn){qt({width:pn.offsetWidth,height:pn.offsetHeight})},Ln=(0,Se.useRef)(),Hn=(0,Se.useRef)(),Mn=Se.useMemo(function(){return _e(Xt.width,Vt)},[Xt.width,Vt]),xn=Se.useMemo(function(){return _e(Xt.height,ht)},[Xt.height,ht]),On=ht-ne,Fn=(0,Se.useRef)(On);Fn.current=On;function _n(un){var pn=un;return Number.isNaN(Fn.current)||(pn=Math.min(pn,Fn.current)),pn=Math.max(pn,0),pn}var Vn=jn<=0,Xn=jn>=On,wn=Nn<=0,er=Nn>=Vt,Wn=Qe(Vn,Xn,wn,er),dr=function(){return{x:gn?-Nn:Nn,y:jn}},pr=(0,Se.useRef)(dr()),sr=(0,fe.zX)(function(un){if(on){var pn=(0,ge.Z)((0,ge.Z)({},dr()),un);(pr.current.x!==pn.x||pr.current.y!==pn.y)&&(on(pn),pr.current=pn)}});function ur(un,pn){var hn=un;pn?((0,Pt.flushSync)(function(){ar(hn)}),sr()):Ce(hn)}function yr(un){var pn=un.currentTarget.scrollTop;pn!==jn&&Ce(pn),_t==null||_t(un),sr()}var lr=function(pn){var hn=pn,tn=Vt?Vt-Xt.width:0;return hn=Math.max(hn,0),hn=Math.min(hn,tn),hn},fr=(0,fe.zX)(function(un,pn){pn?((0,Pt.flushSync)(function(){ar(function(hn){var tn=hn+(gn?-un:un);return lr(tn)})}),sr()):Ce(function(hn){var tn=hn+un;return tn})}),Qn=kt(Cn,Vn,Xn,wn,er,!!Vt,fr),mr=(0,be.Z)(Qn,2),br=mr[0],zr=mr[1];Be(Cn,vn,function(un,pn,hn,tn){var Bn=tn;return Wn(un,pn,hn)?!1:!Bn||!Bn._virtualHandled?(Bn&&(Bn._virtualHandled=!0),br({preventDefault:function(){},deltaX:un?pn:0,deltaY:un?0:pn}),!0):!1}),ye(yn,vn,function(un){Ce(function(pn){return pn+un})}),(0,Je.Z)(function(){function un(hn){var tn=Vn&&hn.detail<0,Bn=Xn&&hn.detail>0;Cn&&!tn&&!Bn&&hn.preventDefault()}var pn=vn.current;return pn.addEventListener("wheel",br,{passive:!1}),pn.addEventListener("DOMMouseScroll",zr,{passive:!0}),pn.addEventListener("MozMousePixelScroll",un,{passive:!1}),function(){pn.removeEventListener("wheel",br),pn.removeEventListener("DOMMouseScroll",zr),pn.removeEventListener("MozMousePixelScroll",un)}},[Cn,Vn,Xn]),(0,Je.Z)(function(){if(Vt){var un=lr(Nn);ar(un),sr({x:un})}},[Xt.width,Vt]);var Er=function(){var pn,hn;(pn=Ln.current)===null||pn===void 0||pn.delayHidden(),(hn=Hn.current)===null||hn===void 0||hn.delayHidden()},Br=Te(vn,bn,cn,he,Oe,function(){return Ut(!0)},Ce,Er);Se.useImperativeHandle(te,function(){return{nativeElement:Pn.current,getScrollInfo:dr,scrollTo:function(pn){function hn(tn){return tn&&(0,at.Z)(tn)==="object"&&("left"in tn||"top"in tn)}hn(pn)?(pn.left!==void 0&&ar(lr(pn.left)),Br(pn.top)):Br(pn)}}}),(0,Je.Z)(function(){if(It){var un=bn.slice(et,ze+1);It(un,bn)}},[et,ze,bn]);var Ir=st(bn,Oe,cn,he),Mr=Wt==null?void 0:Wt({start:et,end:ze,virtual:yn,offsetX:Nn,offsetY:He,rtl:gn,getSize:Ir}),ir=Ae(bn,et,ze,Vt,Nn,Bt,dt,ot),rr=null;ne&&(rr=(0,ge.Z)((0,Ke.Z)({},vt?"height":"maxHeight",ne),Dt),Cn&&(rr.overflowY="hidden",Vt&&(rr.overflowX="hidden"),rn&&(rr.pointerEvents="none")));var Jn={};return gn&&(Jn.dir="rtl"),Se.createElement("div",(0,z.Z)({ref:Pn,style:(0,ge.Z)((0,ge.Z)({},Pe),{},{position:"relative"}),className:$n},Jn,jt),Se.createElement(Me.Z,{onResize:Dn},Se.createElement(ln,{className:"".concat(oe,"-holder"),style:rr,ref:vn,onScroll:yr,onMouseEnter:Er},Se.createElement(ke,{prefixCls:oe,height:ht,offsetX:Nn,offsetY:He,scrollWidth:Vt,onInnerResize:Ut,ref:Jt,innerProps:Qt,rtl:gn,extra:Mr},ir))),yn&&ht>ne&&Se.createElement(Et,{ref:Ln,prefixCls:oe,scrollOffset:jn,scrollRange:ht,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Fe,spinSize:xn,containerSize:Xt.height,style:De==null?void 0:De.verticalScrollBar,thumbStyle:De==null?void 0:De.verticalScrollBarThumb,showScrollBar:Lt}),yn&&Vt>Xt.width&&Se.createElement(Et,{ref:Hn,prefixCls:oe,scrollOffset:Nn,scrollRange:Vt,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Fe,spinSize:Mn,containerSize:Xt.width,horizontal:!0,style:De==null?void 0:De.horizontalScrollBar,thumbStyle:De==null?void 0:De.horizontalScrollBarThumb,showScrollBar:Lt}))}var je=Se.forwardRef($t);je.displayName="List";var Gt=je,bt=Gt},4977:function(an){"use strict";an.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(an,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ze}});const z=Me=>typeof Me=="object"&&Me!=null&&Me.nodeType===1,at=(Me,fe)=>(!fe||Me!=="hidden")&&Me!=="visible"&&Me!=="clip",ge=(Me,fe)=>{if(Me.clientHeight{const Pt=(rt=>{if(!rt.ownerDocument||!rt.ownerDocument.defaultView)return null;try{return rt.ownerDocument.defaultView.frameElement}catch(ke){return null}})(Se);return!!Pt&&(Pt.clientHeightrtfe||rt>Me&&ke=fe&&Le>=Je?rt-Me-Se:ke>fe&&LeJe?ke-fe+Pt:0,be=Me=>{const fe=Me.parentElement;return fe==null?Me.getRootNode().host||null:fe},we=(Me,fe)=>{var Je,Se,Pt,rt;if(typeof document=="undefined")return[];const{scrollMode:ke,block:Le,inline:Ae,boundary:xt,skipOverflowHiddenElements:Ot}=fe,Rt=typeof xt=="function"?xt:Et=>Et!==xt;if(!z(Me))throw new TypeError("Invalid target");const wt=document.scrollingElement||document.documentElement,mt=[];let gt=Me;for(;z(gt)&&Rt(gt);){if(gt=be(gt),gt===wt){mt.push(gt);break}gt!=null&>===document.body&&ge(gt)&&!ge(document.documentElement)||gt!=null&&ge(gt,Ot)&&mt.push(gt)}const Qe=(Se=(Je=window.visualViewport)==null?void 0:Je.width)!=null?Se:innerWidth,kt=(rt=(Pt=window.visualViewport)==null?void 0:Pt.height)!=null?rt:innerHeight,{scrollX:st,scrollY:tt}=window,{height:St,width:We,top:yt,right:ut,bottom:pe,left:Tt}=Me.getBoundingClientRect(),{top:Be,right:Ge,bottom:At,left:ye}=(Et=>{const Ie=window.getComputedStyle(Et);return{top:parseFloat(Ie.scrollMarginTop)||0,right:parseFloat(Ie.scrollMarginRight)||0,bottom:parseFloat(Ie.scrollMarginBottom)||0,left:parseFloat(Ie.scrollMarginLeft)||0}})(Me);let se=Le==="start"||Le==="nearest"?yt-Be:Le==="end"?pe+At:yt+St/2-Be+At,Te=Ae==="center"?Tt+We/2-ye+Ge:Ae==="end"?ut+Ge:Tt-ye;const Ct=[];for(let Et=0;Et=0&&Tt>=0&&pe<=kt&&ut<=Qe&&(Ie===wt&&!ge(Ie)||yt>=Yt&&pe<=$t&&Tt>=je&&ut<=Dt))return Ct;const Gt=getComputedStyle(Ie),bt=parseInt(Gt.borderLeftWidth,10),ae=parseInt(Gt.borderTopWidth,10),te=parseInt(Gt.borderRightWidth,10),ee=parseInt(Gt.borderBottomWidth,10);let oe=0,ue=0;const ne="offsetWidth"in Ie?Ie.offsetWidth-Ie.clientWidth-bt-te:0,he="offsetHeight"in Ie?Ie.offsetHeight-Ie.clientHeight-ae-ee:0,xe="offsetWidth"in Ie?Ie.offsetWidth===0?0:ct/Ie.offsetWidth:0,vt="offsetHeight"in Ie?Ie.offsetHeight===0?0:_e/Ie.offsetHeight:0;if(wt===Ie)oe=Le==="start"?se:Le==="end"?se-kt:Le==="nearest"?Ke(tt,tt+kt,kt,ae,ee,tt+se,tt+se+St,St):se-kt/2,ue=Ae==="start"?Te:Ae==="center"?Te-Qe/2:Ae==="end"?Te-Qe:Ke(st,st+Qe,Qe,bt,te,st+Te,st+Te+We,We),oe=Math.max(0,oe+tt),ue=Math.max(0,ue+st);else{oe=Le==="start"?se-Yt-ae:Le==="end"?se-$t+ee+he:Le==="nearest"?Ke(Yt,$t,_e,ae,ee+he,se,se+St,St):se-(Yt+_e/2)+he/2,ue=Ae==="start"?Te-je-bt:Ae==="center"?Te-(je+ct/2)+ne/2:Ae==="end"?Te-Dt+te+ne:Ke(je,Dt,ct,bt,te+ne,Te,Te+We,We);const{scrollLeft:Pe,scrollTop:Ve}=Ie;oe=vt===0?0:Math.max(0,Math.min(Ve+oe/vt,Ie.scrollHeight-_e/vt+he)),ue=xe===0?0:Math.max(0,Math.min(Pe+ue/xe,Ie.scrollWidth-ct/xe+ne)),se+=Ve-oe,Te+=Pe-ue}Ct.push({el:Ie,top:oe,left:ue})}return Ct},Ne=Me=>Me===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Me)?Me:{block:"start",inline:"nearest"};function Ze(Me,fe){if(!Me.isConnected||!(Pt=>{let rt=Pt;for(;rt&&rt.parentNode;){if(rt.parentNode===document)return!0;rt=rt.parentNode instanceof ShadowRoot?rt.parentNode.host:rt.parentNode}return!1})(Me))return;const Je=(Pt=>{const rt=window.getComputedStyle(Pt);return{top:parseFloat(rt.scrollMarginTop)||0,right:parseFloat(rt.scrollMarginRight)||0,bottom:parseFloat(rt.scrollMarginBottom)||0,left:parseFloat(rt.scrollMarginLeft)||0}})(Me);if((Pt=>typeof Pt=="object"&&typeof Pt.behavior=="function")(fe))return fe.behavior(we(Me,fe));const Se=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:Pt,top:rt,left:ke}of we(Me,Ne(fe))){const Le=rt-Je.top+Je.bottom,Ae=ke-Je.left+Je.right;Pt.scroll({top:Le,left:Ae,behavior:Se})}}}}]);