!(function(){var Il=Math.pow;var gc=(Ln,qt,ce)=>new Promise((fe,tt)=>{var Fe=_e=>{try{be(ce.next(_e))}catch(Le){tt(Le)}},Ye=_e=>{try{be(ce.throw(_e))}catch(Le){tt(Le)}},be=_e=>_e.done?fe(_e.value):Promise.resolve(_e.value).then(Fe,Ye);be((ce=ce.apply(Ln,qt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[64496],{18299:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},84249:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={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"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},42922:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},90674:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={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"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},25877:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},63237:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},99569:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},38308:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},17663:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},72395:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},53978:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Le}});var fe=ce(87462),tt=ce(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Ye=Fe,be=ce(84089),_e=function(pe,Te){return tt.createElement(be.Z,(0,fe.Z)({},pe,{ref:Te,icon:Ye}))},Le=tt.forwardRef(_e)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(Ln,qt){"use strict";qt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ln={},qt="5.0",ce={},fe=null,tt=!1,Fe=!1,Ye=null,be=!1,_e=null,Le=null,Se=0;Se4?parseFloat(at):5};Ln.setHTML5Codebase=function(at,ft){Le=at,$t(at,ft)},Ln.setJavaCodebase=Ln.setJavaCodebaseVersion=Ln.isCompiledInstalled=Ln.setPreCompiledScriptPath=Ln.setPreCompiledResourcePath=function(){},Ln.setHTML5CodebaseVersion=function(at,ft){var Gt=parseFloat(at);if(Gt!==NaN&&Gt<5){console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead.");return}_e=at,Ae(at,ft)},Ln.getHTML5CodebaseVersion=function(){return kt},Ln.getParameters=function(){return ce},Ln.setFontsCSSURL=function(at){nt=at},Ln.setGiacJSURL=function(at){},Ln.setJNLPFile=function(at){Te=at},Ln.setJNLPBaseDir=function(at){},Ln.inject=function(){function at(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ft="auto",Gt=ce.id,zn,mn=!1,nn=0;nn=5)return!0;var at=Ln.getAppletObject();return at&&typeof at.recalculateEnvironments=="function"?(at.recalculateEnvironments(),!0):!1},Ln.startAnimation=function(){var at=Ln.getAppletObject();return at&&typeof at.startAnimation=="function"?(at.startAnimation(),!0):!1},Ln.stopAnimation=function(){var at=Ln.getAppletObject();return at&&typeof at.stopAnimation=="function"?(at.stopAnimation(),!0):!1},Ln.getAppletObject=function(){var at=ce.id!==void 0?ce.id:"ggbApplet";return window[at]},Ln.resize=function(){};var Mt=function(at,ft,Gt){var zn=document.createElement("param");zn.setAttribute("name",ft),zn.setAttribute("value",Gt),at.appendChild(zn)},je=function(at){return at&&at!=="false"},Rt=function(at,ft,Gt){Ie(kt)<=4.2&&(Gt=!0);var zn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==kt||ggbHTML5LoadedCodebaseIsWebSimple&&!Je)&&(zn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var mn=document.createElement("div");mn.classList.add("appletParameters","notranslate");var nn=ft.width,Ft=ft.height;if(ft.disableAutoScale=ft.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ft.disableAutoScale,ft.width!==void 0)if(Ie(kt)<=4.4)je(ft.showToolBar)&&(ft.height-=7),je(ft.showAlgebraInput)&&(ft.height-=37),ft.width<605&&je(ft.showToolBar)&&(ft.width=605,nn=605);else{var Pn=100;(je(ft.showToolBar)||je(ft.showMenuBar))&&(ft.hasOwnProperty("customToolBar")&&(ft.customToolbar=ft.customToolBar),Pn=je(ft.showMenuBar)?245:155),nn=5?(ft.appletOnLoad=function(ln){var yr=at.querySelector(".ggb_preview");yr&&yr.parentNode.removeChild(yr),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),Ee(ln)},se||ue.appendChild(ye)):mn.appendChild(ye),ue.appendChild(mn),se||at.appendChild(ue),setTimeout(function(){Ln.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(mn),at.appendChild(ve),ft.appletOnLoad=function(ln){Ln.resize(),Ee(ln)}}function le(ln,yr){yr&&typeof yr.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ln,yr.appletOnLoad):renderGGBElement(ln),Hn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",yr)}function We(ln,yr){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ln,params:yr}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Fr){le(Fr.article,Fr.params)}),html5AppletsToProcess=null)},Ie(kt)<5&&(ln.className+=" geogebraweb")):le(ln,yr)}if(zn){scriptLoadStarted=!0;for(var Lt=0;Lt0?(_n.remove(),ue.attr("id","fullscreencontent").show(),jQuery(Ee).append(ue),window.dispatchEvent(new Event("resize"))):Rt(_n,ft,!1),window.GGBT_wsf_view.launchFullScreen(Ee)}else Pt=zn,Rt(at,ft,!1);if(!window.GGBT_wsf_view)for(Ft=0;Ftat/4*3&&(_n=at/4*3),Ee=_n/5.8,Pn.setAttribute("src",Dt),Pn.setAttribute("width",_n),Pn.setAttribute("height",Ee);var ue=(at-_n)/2,se=(ft-Ee)/2;Pn.style.left=ue+"px",Pn.style.top=se+"px",mn.appendChild(Pn)}}return mn.appendChild(Ft),mn},Sr=function(at){return at=at.toLowerCase(),at==="html5"||at==="screenshot"?at:"html5"},qe=["web","webSimple","web3d","tablet","tablet3d","phone"],Ae=function(at,ft){if(kt=at,ft){$t(kt,!0);return}var Gt=!tt;if(Gt){var zn=Ie(kt);!isNaN(zn)&&zn<4.4&&(Gt=!1)}var mn,nn;window.location.protocol.substr(0,4)==="http"?mn=window.location.protocol:mn="http:";var Ft=kt.indexOf("//");Ft>0?nn=kt:Ft===0?nn=mn+kt:nn="https://www.geogebra.org/apps/5.2.814.0/";for(var Pn in qe)if(kt.slice(qe[Pn].length*-1)===qe[Pn]||kt.slice((qe[Pn].length+1)*-1)===qe[Pn]+"/"){$t(nn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Gt&&!fe.is3D&&!fe.AV&&!fe.SV&&!fe.CV&&!fe.EV2&&!fe.CP&&!fe.PC&&!fe.DA&&!fe.FI&&!fe.PV&&!je(ce.showToolBar)&&!je(ce.showMenuBar)&&!je(ce.showAlgebraInput)&&!je(ce.enableRightClick)&&(!ce.appName||ce.appName=="classic")?nn+="webSimple/":nn+="web3d/",$t(nn,!1)},$t=function(at,ft){if(at.requirejs){gt=at;return}at.slice(-1)!=="/"&&(at+="/"),gt=at,ft===null&&(ft=at.indexOf("http")===-1),ze=ft,pt="web.nocache.js",Je=!1;var Gt=gt.split("/");Gt.length>1&&(!ft&&Gt[Gt.length-2]==="webSimple"?(pt="webSimple.nocache.js",Je=!0):qe.indexOf(Gt[Gt.length-2])>=0&&(pt=Gt[Gt.length-2]+".nocache.js")),Gt=at.split("/"),kt=Gt[Gt.length-3],kt.substr(0,4)==="test"?kt=kt.substr(4,1)+"."+kt.substr(5,1):(kt.substr(0,3)==="war"||kt.substr(0,4)==="beta")&&(kt="5.0");var zn=parseFloat(kt);zn!==NaN&&zn<5&&at.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+zn+" is deprecated. Using version latest instead."),Ae("5.0",ft))},Hn=function(at,ft){window.console&&window.console.log&&(!ft||typeof ft.showLogging=="undefined"||ft.showLogging&&ft.showLogging!=="false")&&console.log(at)};ce.material_id!==void 0?Xe(bn):bn();function bn(){var at=qt;_e!==null?at=_e:parseFloat(at)<5&&(at="5.0"),Ae(at,!1),Le!==null&&$t(Le,ze),be=!0}return Ln},GGBAppletUtils=function(){"use strict";function Ln(){return window.GGBT_wsf_edit!==void 0}function qt(be,_e){_e!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+_e+","+_e+")",be.style.webkitTransform="scale("+_e+","+_e+")",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 ce(be,_e,Le,Se,pe,Te){var gt=null;if(Te!=null&&Te!="")for(var ze=be.parentNode;ze!=null;)if((" "+ze.className+" ").indexOf(" "+Te+" ")>-1){gt=ze;break}else ze=ze.parentNode;var Pt=0,kt=0,pt=0,Je=0,De=0,Dt=0,Yt=0;if(gt)Pt=gt.offsetWidth,kt=Math.max(Se?gt.offsetWidth:0,gt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Pt=Math.min(window.innerWidth,document.documentElement.clientWidth),kt=Math.min(window.innerHeight,document.documentElement.clientHeight),pt=Pt):(Pt=window.innerWidth,kt=window.innerHeight,pt=window.innerWidth),be){var nt=be.getBoundingClientRect();nt.left>0&&nt.left<=Pt&&(pe===void 0||!pe)&&(document.dir==="rtl"?(De=Pt-nt.width-nt.left,Dt=pt<=480?10:30):(Dt=nt.left,De=pt<=480?10:30),Je=Dt+De)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ct=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Je=40,Yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Je=0,Yt=40)}}return be&&((Le===void 0||!Le)&&_e>0&&_e+Je1&&(Te=!0)),_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))pe=fe(be,_e,Te,Le,be.scaleContainerClass);else return Se;return Te&&(!be.hasOwnProperty("scale")||Se===1)?pe:Math.min(Se,pe)}function Fe(be){var _e=Math.min(window.innerWidth,document.documentElement.clientWidth),Le=Math.min(window.innerHeight,document.documentElement.clientHeight),Se=be.getBoundingClientRect(),pe=(_e-Se.width)/2,Te=(Le-Se.height)/2;Te<0&&(Te=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(pe<40?be.style.left="40px":be.style.left=pe+"px",be.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?be.style.top="40px":be.style.top=Te+"px",be.style.left=pe+"px")}function Ye(be,_e){var Le=be.querySelector(".appletParameters");if(Le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(_e.id!==Le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Le.parentElement&&/fullscreen/.test(Le.parentElement.className))return;var Se=tt(_e,be);Ln()&&Le.setAttribute("data-param-scale",Se);for(var pe=null,Te=0;Te=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ln){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ln){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ln){var qt=c[Ln];return qt==null?null:qt},r=d,webModule.__errFn=e}function B(){function Ln(be){var _e=be.lastIndexOf(rb);_e==-1&&(_e=be.length);var Le=be.indexOf(sb);Le==-1&&(Le=be.length);var Se=be.lastIndexOf(tb,Math.min(Le,_e));return Se>=O?be.substring(O,Se+P):W}function qt(be){if(!be.match(/^\w+:\/\//)){var _e=o.createElement(ub);_e.src=be+vb,be=Ln(_e.src)}return be}function ce(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function fe(){for(var be=o.getElementsByTagName(_),_e=O;_eO?be[be.length-P].href:W}function Fe(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ye=ce();return Ye==W&&(Ye=fe()),Ye==W&&(Ye=tt()),Ye==W&&Fe()&&(Ye=Ln(o.location.href)),Ye=qt(Ye),Ye}function C(Ln){return Ln.match(/^\//)||Ln.match(/^[a-zA-Z]+:\/\//)?Ln:webModule.__moduleBase+Ln}function D(){var Ln=[],qt=O,ce=[],fe=[];function tt(be){var _e=fe[be](),Le=ce[be];if(_e in Le)return _e;var Se=[];for(var pe in Le)Se[Le[pe]]=pe;throw r&&r(be,Se,_e),null}if(__gwt_isKnownPropertyValue=function(be,_e){return _e in ce[be]},webModule.__getPropMap=function(){var be={};for(var _e in ce)ce.hasOwnProperty(_e)&&(be[_e]=tt(_e));return be},webModule.__computePropValue=tt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Fe;try{Fe=Cb;var Ye=Fe.indexOf(Db);Ye!=-1&&(qt=parseInt(Fe.substring(Ye+P),$),Fe=Fe.substring(O,Ye))}catch(be){}return webModule.__softPermutationId=qt,C(Fe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},15476:function(Ln,qt,ce){"use strict";ce.d(qt,{Ax:function(){return Ye},Ds:function(){return be},KI:function(){return Le},SI:function(){return Fe},f1:function(){return tt}});var fe=ce(11320);function tt(Se){let pe=!0;if(Se.length>0){for(let Te=0;Tenew Promise((pt,Je)=>{var De=nt=>{try{Yt(kt.next(nt))}catch(ct){Je(ct)}},Dt=nt=>{try{Yt(kt.throw(nt))}catch(ct){Je(ct)}},Yt=nt=>nt.done?pt(nt.value):Promise.resolve(nt.value).then(De,Dt);Yt((kt=kt.apply(ze,Pt)).next())}),gt=({data:ze,className:Pt,fullWidth:kt,style:pt={},onClose:Je,onOk:De,showFullTools:Dt,noAssociationId:Yt})=>{const nt=(0,fe.useRef)(null),ct=(0,fe.useRef)(null),Ie=(0,fe.useRef)(null),Me=(0,fe.useRef)(null),[Ve,Xe]=(0,fe.useState)(!1),[Ct,wt]=(0,fe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,fe.useEffect)(()=>{Ie.current||(Ie.current=document.createElement("style"),document.head.appendChild(Ie.current)),ze!=null&&ze.visible?(document.body.setAttribute("data-custom","y-hidden"),Ie.current.innerHTML=" html { overflow-y: hidden; }",ze!=null&&ze.src&&Mt()):(document.body.removeAttribute("data-custom"),Ie.current&&(document.head.removeChild(Ie.current),Ie.current=null))},[ze==null?void 0:ze.visible]);const Mt=()=>pe(void 0,null,function*(){Xe(!0),wt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const jt=yield(0,Se.ZJ)(ze==null?void 0:ze.src);nt.current.src="",nt.current.src=jt,nt.current.onload=function(){xn()},Xe(!1),wt("")}),je=()=>{document.body.removeAttribute("data-custom"),Ie.current.innerHTML=" ",Je()},Rt=jt=>pe(void 0,null,function*(){Xe(!0),wt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const vn=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:jt.dataUrl}});vn!=null&&vn.id&&!Yt?(yield(0,Le.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:vn==null?void 0:vn.id,settings:JSON.stringify(jt.state)}})).status===0&&De():vn!=null&&vn.id&&De(vn),document.body.removeAttribute("data-custom"),Ie.current.innerHTML=" ",Xe(!1),wt("")}),At=()=>{const jt=document.querySelector('a[href="https://markerjs.com/"]');jt&&jt.parentNode&&(jt.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(er=>{const Sr=document.querySelector(er.name);Sr&&Sr.setAttribute("title",er.title)})},xn=()=>{ct.current=new _e.hP(nt.current),ct.current.targetRoot=Me.current,ct.current.addEventListener("render",Rt),ct.current.addEventListener("beforeclose",je),Dt&&(ct.current.availableMarkerTypes=ct.current.ALL_MARKER_TYPES,ct.current.uiStyleSettings.redoButtonVisible=!0,ct.current.uiStyleSettings.notesButtonVisible=!0,ct.current.uiStyleSettings.zoomButtonVisible=!0,ct.current.uiStyleSettings.zoomOutButtonVisible=!0,ct.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ct.current.uiStyleSettings,ct.current.show(),ze!=null&&ze.snapshotData&&ct.current.restoreState(ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),At()},300)};return fe.createElement(fe.Fragment,null,(ze==null?void 0:ze.visible)&&fe.createElement(be.Z,{spinning:Ve,tip:Ct,style:{position:"absolute"}},fe.createElement("div",{ref:Me,className:Ye()(tt.imageDimensions,Pt,kt?tt.fullWidth:""),style:pt},fe.createElement("img",{className:tt.img,ref:nt}))))}},36527:function(Ln,qt,ce){"use strict";var fe=ce(67294),tt=ce(71230),Fe=ce(15746),Ye=ce(66368),be=ce(71577),_e=ce(35598),Le=ce(71736),Se=ce(84279),pe=ce(67294);const Te=(0,fe.forwardRef)(({callback:gt,showSaveButton:ze,value:Pt=""},kt)=>{const pt=(0,fe.useRef)(),Je=[{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 "}]}]}],De=[{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}`}]}]}],Dt=ct=>{pt.current.setValue(pt.current.getValue()+" "+ct.value+" ")},Yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:pe.createElement(tt.Z,{className:Le.Z.lists,gutter:[10,10]},Je.map((ct,Ie)=>pe.createElement(Fe.Z,{flex:"110px",className:Le.Z.item},pe.createElement("div",null,pe.createElement(_e.Z,{value:`$$${ct.value}$$`}),ct.name),pe.createElement("div",{className:Le.Z.children},ct.children.map((Me,Ve)=>pe.createElement("div",{key:Ve},pe.createElement("h1",null,Me.name),pe.createElement(tt.Z,{gutter:[10,10]},Me.data.map((Xe,Ct)=>pe.createElement(Fe.Z,{key:Ct,onClick:()=>Dt(Xe),className:Le.Z.diamond},pe.createElement(_e.Z,{value:"`$$"+Xe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:pe.createElement(tt.Z,{className:Le.Z.lists,gutter:[10,10]},De.map((ct,Ie)=>pe.createElement(Fe.Z,{flex:"110px",className:Le.Z.item},pe.createElement("div",null,pe.createElement(_e.Z,{value:"`$$"+ct.value+"$$`"}),ct.name),pe.createElement("div",{className:Le.Z.children},ct.children.map((Me,Ve)=>pe.createElement("div",{key:Ve},Me.name&&pe.createElement("h1",null,Me.name),pe.createElement(tt.Z,{gutter:[10,10]},Me.data.map((Xe,Ct)=>pe.createElement(Fe.Z,{key:Ct,onClick:()=>Dt(Xe),className:Le.Z.diamond},pe.createElement(_e.Z,{value:"`$$"+Xe.value+"$$`"}))))))))))}],nt=()=>{var ct=document.createElement("div");ct.innerHTML=pt.current.getValue();var Ie=ct.innerText;return gt&>(Ie),Ie};return(0,fe.useImperativeHandle)(kt,()=>({getData:nt})),pe.createElement("div",{className:Le.Z.mathWrap},pe.createElement(Ye.default,{defaultActiveKey:"1",items:Yt}),pe.createElement("math-field",{locale:"zh_cn",className:Le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:pt,style:{width:800,marginTop:30,fontSize:18}},Pt||""),ze&&pe.createElement("div",{className:Le.Z.button},pe.createElement(be.ZP,{size:"large",onClick:nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});qt.Z=Te},57444:function(Ln,qt,ce){"use strict";ce.d(qt,{h:function(){return ct}});var fe=ce(67294),tt=ce(11713),Fe=ce(22150),Ye=ce(71577),be=ce(4631),_e=ce.n(be),Le=ce(71749),Se=ce(30483),pe=Object.defineProperty,Te=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,pt=(Ie,Me,Ve)=>Me in Ie?pe(Ie,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ie[Me]=Ve,Je=(Ie,Me)=>{for(var Ve in Me||(Me={}))Pt.call(Me,Ve)&&pt(Ie,Ve,Me[Ve]);if(ze)for(var Ve of ze(Me))kt.call(Me,Ve)&&pt(Ie,Ve,Me[Ve]);return Ie},De=(Ie,Me)=>Te(Ie,gt(Me));const Dt=tt.default.Option,Yt={labelCol:{span:4},wrapperCol:{span:20}},nt={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"]};qt.Z=({callback:Ie,onCancel:Me})=>{const[Ve,Xe]=(0,fe.useState)("python");function Ct(Mt){Xe(nt[Mt][1])}function wt(Mt){Ie(Mt)}return fe.createElement(Fe.default,De(Je({},Yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:wt,style:{width:500}}),fe.createElement(Fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},fe.createElement(tt.default,{getPopupContainer:Mt=>Mt.parentNode,onChange:Ct},Object.keys(nt).map(Mt=>fe.createElement(Dt,{key:Mt,value:Mt},nt[Mt][0])))),fe.createElement(Fe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},fe.createElement(ct,{mode:Ve})),fe.createElement("div",{className:"flex-container flex-end"},fe.createElement(Ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Ye.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function ct({value:Ie,onChange:Me,mode:Ve,options:Xe={}}){const Ct=(0,fe.useRef)(),[wt,Mt]=(0,fe.useState)();return(0,fe.useEffect)(()=>{if(wt){let je=function(Rt){const At=Rt.getValue();Me&&Me(At)};return wt.on("change",je),()=>{wt.off("change",je)}}},[wt,Me]),(0,fe.useEffect)(()=>{wt&&wt.setOption("mode",Ve)},[wt,Ve]),(0,fe.useEffect)(()=>{wt&&(Ie!==wt.getValue()||Ie==="")&&setTimeout(()=>{wt.setValue(Ie||"")},300)},[wt,Ie]),(0,fe.useEffect)(()=>{if(Ct.current&&!wt){const je=_e().fromTextArea(Ct.current,Je({mode:Ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Xe));Mt(je)}},[Ct.current,wt]),fe.createElement("div",{className:"my-codemirror-container"},fe.createElement("textarea",{ref:Ct}))}},91304:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return pr}});var fe=ce(67294),tt=ce(4631),Fe=ce.n(tt),Ye=ce(91033),be=ce(71749),_e=ce(57341),Le=ce(82801),Se=ce(88386),pe=ce(49047),Te=ce(80785),gt=ce(35598),ze=({value:Kn="",className:Ue,showTextOnly:it,showLines:_t,style:Ut={}})=>{const Ke=(0,fe.useMemo)(()=>"",[Kn]);return fe.createElement(fe.Fragment,null,fe.createElement("div",{dangerouslySetInnerHTML:{__html:Ke}}))},Pt=ce(67294),kt=Object.defineProperty,pt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,nt=(Kn,Ue,it)=>Ue in Kn?kt(Kn,Ue,{enumerable:!0,configurable:!0,writable:!0,value:it}):Kn[Ue]=it,ct=(Kn,Ue)=>{for(var it in Ue||(Ue={}))Dt.call(Ue,it)&&nt(Kn,it,Ue[it]);if(De)for(var it of De(Ue))Yt.call(Ue,it)&&nt(Kn,it,Ue[it]);return Kn},Ie=(Kn,Ue)=>pt(Kn,Je(Ue));let Me=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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 Ve({onActionCallback:Kn,title:Ue,icon:it,actionName:_t,className:Ut="",children:Ke}){function ut(){Kn(_t)}return Pt.createElement("a",{title:Ue,className:Ut,onClick:ut},Pt.createElement("i",{className:`${it}`}),Ke)}var Xe=({watch:Kn,showNullButton:Ue,showNullProgramButton:it,onActionCallback:_t,fullScreen:Ut,insertTemp:Ke,hidetoolBar:ut,extraUse:Ot})=>{const Tt=[...Me,{title:`${Kn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Kn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Pt.createElement("ul",{className:"markdown-toolbar-container"},!ut&&Tt.map((zt,Ht)=>Pt.createElement("li",{key:Ht},zt.actionName?Pt.createElement(Ve,Ie(ct({},zt),{onActionCallback:_t})):Pt.createElement("span",{className:"v-line"}))),Ue?Pt.createElement("li",null,Pt.createElement(Ve,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_t},Pt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,it?Pt.createElement(Pt.Fragment,null,Pt.createElement("li",null,Pt.createElement(Ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_t},Pt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Pt.createElement("li",null,Pt.createElement(Ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_t},Pt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ke&&Pt.createElement("li",null,Pt.createElement(Ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ke}`,onActionCallback:_t},Pt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ot&&Pt.createElement("li",null,Ot),Pt.createElement("li",{className:"btn-full-screen"},Pt.createElement(Ve,{icon:`${Ut?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ut?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_t})))},Ct=ce(76621),wt=ce(22150),Mt=ce(69677),je=ce(71577),Rt=Object.defineProperty,At=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,Sr=(Kn,Ue,it)=>Ue in Kn?Rt(Kn,Ue,{enumerable:!0,configurable:!0,writable:!0,value:it}):Kn[Ue]=it,qe=(Kn,Ue)=>{for(var it in Ue||(Ue={}))vn.call(Ue,it)&&Sr(Kn,it,Ue[it]);if(jt)for(var it of jt(Ue))er.call(Ue,it)&&Sr(Kn,it,Ue[it]);return Kn},Ae=(Kn,Ue)=>At(Kn,xn(Ue));const $t={labelCol:{span:4},wrapperCol:{span:20}};var Hn=({callback:Kn,onCancel:Ue})=>{function it(_t){Kn(_t)}return fe.createElement(wt.default,Ae(qe({},$t),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:it,style:{width:500}}),fe.createElement(wt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},fe.createElement(Mt.default,null)),fe.createElement(wt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},fe.createElement(Mt.default,null)),fe.createElement("div",{className:"flex-container flex-end"},fe.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(je.ZP,{type:"ghost",onClick:Ue},"\u53D6\u6D88")))},bn=ce(57444),at=ce(70859),ft=ce(14446),Gt=ce(71230),zn=ce(63205),mn=ce(67294),nn=({callback:Kn,onCancel:Ue})=>{const it=document.createElement("canvas"),_t=it.getContext("2d");it.width=1e3,it.height=800,_t.fillStyle="#ffffff",_t.fillRect(0,0,it.width,it.height);const Ut=it.toDataURL("image/png");return mn.createElement(ft.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},mn.createElement(Gt.Z,{style:{height:"100vh"}},mn.createElement(zn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ut,visible:!0,title:String(Date.now())},onOk:Ke=>{Kn({src:Ke.url})},onClose:Ue})))},Ft=ce(72565),Pn=ce(15746),_n=ce(2453),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=ce(67294),ye=(0,fe.forwardRef)(({onCancel:Kn,editImgId:Ue,callback:it},_t)=>{let Ut=(0,fe.useRef)(),Ke=(0,fe.useRef)(),ut=(0,fe.useRef)(),Ot=(0,fe.useRef)(!1);const Tt=(0,fe.useRef)(!1);console.log("ref:",_t);const[zt,Ht]=(0,fe.useState)(0),[$n,Cr]=(0,fe.useState)("100vh");return(0,fe.useEffect)(()=>{Ht(1);try{indexedDB.databases().then(Yn=>{Yn.forEach(qn=>indexedDB.deleteDatabase(qn.name))})}catch(Yn){}},[]),(0,fe.useImperativeHandle)(_t,()=>({setHeight:Cr})),ue.createElement("div",{ref:Tt,className:"body-overflow-initial"},ue.createElement(Ft.Z,{width:"100vw",height:$n,footer:null,closable:!0,placement:"bottom",open:!!zt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ee.drawerWrap}`,onClose:()=>{window.saveDrawData(Yn=>{it({src:`/api/attachments/${Yn}`,id:Yn})})},title:ue.createElement(Gt.Z,{align:"middle"},ue.createElement(Pn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(Pn.Z,{onClick:()=>{Cr($n==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(Pn.Z,{onClick:()=>{window.saveDrawData(Yn=>{if(Yn===null){_n.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}_n.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),it({src:`/api/attachments/${Yn}`,id:Yn,disabledClose:!0})})}},ue.createElement(je.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Ue||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ke})))}),ve=ce(11320),le=ce(78045),We=ce(31795);const Lt=le.ZP.Group,tn={margin:"0 8px"};var hn=({callback:Kn,onCancel:Ue})=>{function it(_t){Kn(_t)}return fe.createElement(wt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:it},fe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},fe.createElement("span",{style:tn},"\u5355\u5143\u683C\u6570\uFF1A"),fe.createElement("span",{style:tn},"\u884C\u6570"),fe.createElement(wt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},fe.createElement(We.Z,null)),fe.createElement("span",{style:tn},"\u5217\u6570"),fe.createElement(wt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},fe.createElement(We.Z,null))),fe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},fe.createElement("span",{style:tn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),fe.createElement(wt.default.Item,{name:"align"},fe.createElement(Lt,null,fe.createElement(le.ZP,{value:"default"},fe.createElement("i",{className:"fa fa-align-justify"})),fe.createElement(le.ZP,{value:"left"},fe.createElement("i",{className:"fa fa-align-left"})),fe.createElement(le.ZP,{value:"center"},fe.createElement("i",{className:"fa fa-align-center"})),fe.createElement(le.ZP,{value:"right"},fe.createElement("i",{className:"fa fa-align-right"}))))),fe.createElement("div",{className:"flex-container flex-end"},fe.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(je.ZP,{type:"ghost",onClick:Ue},"\u53D6\u6D88")))},sn=ce(47897),yn=ce(61016),ln=ce.n(yn),Fr=(0,fe.forwardRef)(({use3d:Kn,width:Ue,height:it,callback:_t,showSaveButton:Ut},Ke)=>{const ut=(0,fe.useRef)(),Ot=(0,fe.useRef)(),[Tt,zt]=(0,fe.useState)(!1),Ht=(0,fe.useRef)({id:ut,appName:"graphing",width:Ue||1e3,height:it||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,fe.useEffect)(()=>{Ot.current=new(ln())(Ht.current,!0),window.onload=function(){Ot.current.inject("applet_container")}},[]);const $n=()=>{var Cr=window.ggbApplet.getPNGBase64(1,!0,72);return _t&&_t(Cr),Cr};return(0,fe.useEffect)(()=>{Ht.current.appName=Tt?"3D":"graphing",Ot.current.inject("applet_container")},[Tt]),(0,fe.useEffect)(()=>{zt(Kn)},[Kn]),(0,fe.useImperativeHandle)(Ke,()=>({getImgData:$n})),fe.createElement(fe.Fragment,null,fe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ut}),fe.createElement(Gt.Z,{align:"middle"},fe.createElement(Pn.Z,{flex:1},fe.createElement(sn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Tt,onChange:Cr=>zt(Cr)})),fe.createElement(Pn.Z,null,fe.createElement(je.ZP,{size:"large",onClick:$n,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Nt=ce(36527),Rn=ce(25934);const Gr="link",li="upload-image",st="add-flowchart",Wt="draw-image",Vn="add-flowchart",ir="code-block",gr="add-table",Pr="------------",Ur={default:Pr,left:`:${Pr}`,center:`:${Pr}:`,right:`${Pr}:`};var Xr=ce(99914),qr=(Kn,Ue,it)=>new Promise((_t,Ut)=>{var Ke=Tt=>{try{Ot(it.next(Tt))}catch(zt){Ut(zt)}},ut=Tt=>{try{Ot(it.throw(Tt))}catch(zt){Ut(zt)}},Ot=Tt=>Tt.done?_t(Tt.value):Promise.resolve(Tt.value).then(Ke,ut);Ot((it=it.apply(Kn,Ue)).next())});function ui(){}let br=0;const Ei=1e4,sa="\u2581",Ji="@\u2581\u2581@",Qi="@\u2581@",Ci=` **\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`,mt=["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 Mn(Kn){return/^\d+$/.test(Kn)?`${Kn}px`:Kn}const An=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",sr={[An+"-B"]:"bold",[An+"-I"]:"italic"},nr={[Gr]:"\u6DFB\u52A0\u94FE\u63A5",[ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[li]:"\u6DFB\u52A0\u56FE\u7247",[Wt]:"\u6DFB\u52A0\u753B\u56FE",[st]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[gr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var pr=({defaultValue:Kn="",onChange:Ue,width:it="100%",height:_t=400,miniToolbar:Ut=!1,isFocus:Ke=!1,watch:ut,insertTemp:Ot,mode:Tt="markdown",id:zt="markdown-editor-id",showResizeBar:Ht=!1,noStorage:$n=!1,showNullButton:Cr=!1,showNullProgramButton:Yn=!1,hidetoolBar:qn=!1,fullScreen:rr=!1,onBlur:ar,onCMBeforeChange:ot,onFullScreen:Qe,className:vt="",disablePaste:Qt=!1,disabled:Tn=!1,disabledFill:en=!1,placeholder:cn="",values:un="",extraUse:Dn,onAddBlank:or})=>{const[Kt,Yr]=(0,fe.useState)(null),[$r,Ri]=(0,fe.useState)(Kn),[Li,pi]=(0,fe.useState)(ut),[Gi,yi]=(0,fe.useState)(rr),[ii,Ni]=(0,fe.useState)(""),[Zi,Vr]=(0,fe.useState)(0),[mi,Wi]=(0,fe.useState)(_t),[la,ea]=(0,fe.useState)(!1),ti=(0,fe.useRef)((0,Rn.Z)()),yt=(0,fe.useRef)(!1),ht=(0,fe.useRef)(),[Bt,an]=(0,fe.useState)(0),[kn,ur]=(0,fe.useState)(0),Er=(0,fe.useRef)(),Br=(0,fe.useRef)(),Hr=(0,fe.useRef)(),Nr=(0,fe.useRef)(),ei=(0,fe.useRef)(),gi=(0,fe.useRef)(),Mr=()=>qr(void 0,null,function*(){var pn;const dn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ti.current}});(pn=dn==null?void 0:dn.attachments)!=null&&pn.length&&(console.log("cm:",Kt,Er),dn.attachments.map(Cn=>{Cn.content_type.indexOf("image")>-1?Kt.replaceSelection(`![,](/api/attachments/${Cn.id}?type=${Cn.content_type})`):Cn.content_type.indexOf("video")>-1?Kt.replaceSelection(``):Cn.content_type.indexOf("pdf")>-1?Kt.replaceSelection(`${Cn.name}`):Kt.replaceSelection(`[${Cn.name}](${ve.Z.API_SERVER}/api/attachments/${Cn.id}?type=${Cn.content_type})`)}))});(0,fe.useEffect)(()=>{const pn=window.scrollY||window.pageYOffset;Ri(un),Kt==null||Kt.setValue(un),window.scrollTo(0,pn)},[un]),(0,fe.useEffect)(()=>{Qe==null||Qe(Gi)},[Gi]),(0,fe.useEffect)(()=>{if(Er.current){let pn=function(Cn,In){var cr;if(Qt){In.preventDefault();return}const jn=In.clipboardData;if(jn){const Zn=jn.types.toString(),Jn=jn.items;if(Zn==="Files"||jn.types.indexOf("Files")>-1){if(In.preventDefault(),Tt=="stex")return;try{let Qn=Jn[1];((cr=Jn[0])==null?void 0:cr.kind)==="file"&&(Qn=Jn[0]);const hr=Qn.getAsFile(),Pe=hr.name.split(".").pop();(0,at.I)(hr,$e=>{var xt,rt,It;$e.id?((xt=hr==null?void 0:hr.type)==null?void 0:xt.indexOf("image"))>-1?dn.replaceSelection(``):((rt=hr==null?void 0:hr.type)==null?void 0:rt.indexOf("video"))>-1?dn.replaceSelection(``):((It=hr==null?void 0:hr.type)==null?void 0:It.indexOf("pdf"))>-1?dn.replaceSelection(`${hr.name}`):mt.includes(Pe)?dn.replaceSelection(`${hr.name}`):dn.replaceSelection(`[${hr.name}](/api/attachments/${$e.id}?type=${$e.content_type})`):($e==null?void 0:$e.status)===401&&(_n.ZP.warning(($e==null?void 0:$e.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Qn){_n.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const dn=Fe().fromTextArea(Er.current,{mode:Tt,lineNumbers:!Ut,lineWrapping:!0,value:Kn,autoCloseTags:!Yn,autoCloseBrackets:!0});return dn.on("keyup",function(Cn,In){In.keyCode===8&&(Cn.getValue()==""?dn.setOption("placeholder",cn):dn.setOption("placeholder",null))}),dn.on("keydown",function(Cn,In){if(In.keyCode===8){var cr=Ai(Cn);cr&&In.preventDefault()}}),Ke&&dn.focus(),dn.on("paste",pn),dn.on("dragleave",function(Cn,In){Br.current.classList.remove("mouse-hover-md")}),Tn&&dn.on("beforeChange",function(Cn,In){(In.origin==="paste"||In.origin==="+input")&&In.cancel()}),Yr(dn),()=>{dn.off("paste",pn)}}},[]);const fi=(0,fe.useCallback)(()=>{if(Br.current)try{}catch(pn){console.log(pn,"---- to set md editor body height")}},[mi,Br,Gi]);(0,fe.useEffect)(()=>{function pn(){let dn=new Ye.Z(Cn=>{for(let In of Cn)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&(fi(),Kt.setSize("100%","100%"),Kt.refresh())});return dn.observe(Er.current.parentElement),dn}if(Kt){const dn=pn();return()=>{var Cn,In;(Cn=Er.current)!=null&&Cn.parentElement&&dn.unobserve((In=Er.current)==null?void 0:In.parentElement)}}},[Kt,fi]),(0,fe.useEffect)(()=>{if(Kt){let pn=[];for(const[dn,Cn]of Object.entries(sr)){let In={[dn]:()=>{Si(Cn)}};pn.push(In),Kt.addKeyMap(In)}return ht.current=setInterval(()=>{yt.current&&Mr()},4e3),()=>{clearInterval(ht.current);for(let dn of pn)Kt.removeKeyMap(dn)}}},[Kt]),(0,fe.useEffect)(()=>{rr!==Gi&&yi(rr)},[rr]),(0,Xr.Z)(()=>{if(!$n&&Zi>0){let pn=new Date().getTime(),dn=window.sessionStorage.getItem(zt);pn>=Zi+Ei&&(!dn||dn!==$r)&&(window.sessionStorage.setItem(zt,$r),ea(!0))}},Ei),(0,fe.useEffect)(()=>{pi(ut)},[Kt,ut]),(0,fe.useEffect)(()=>{Kt&&Ke&&Kt.focus()},[Kt,Ke]),(0,fe.useEffect)(()=>{if(Li&&Kt){let pn=function(Cn){let In=Cn.target;if(Nr.current){let cr=In.scrollTop/In.scrollHeight;Nr.current.scrollTop=Nr.current.scrollHeight*cr}};const dn=Kt.getScrollerElement();return dn.addEventListener("scroll",pn),()=>{dn.removeEventListener("scroll",pn)}}},[Kt,Li]),(0,fe.useEffect)(()=>{if(Kt&&ot){let pn=function(dn,Cn){ot(dn,Cn)};return Kt.on("beforeChange",pn),()=>{Kt.off("beforeChange",pn)}}},[Kt,ot]),(0,fe.useEffect)(()=>{if(Kt&&ar){let pn=function(){ar(Kt.getValue())};return Kt.on("blur",pn),()=>{Kt.off("blur",pn)}}},[Kt,ar]);function Ai(pn,dn){var Cn=pn.getDoc(),In=Cn.getCursor(),cr=Cn.getLine(In.line),jn=cr.charAt(In.ch-1),Zn=cr.lastIndexOf("@\u2581@",In.ch),Jn=cr.lastIndexOf("@\u2581\u2581@",In.ch),Qn=Zn>Jn?Zn:Jn,hr=Zn>Jn?3:4;if(Ji.indexOf(jn)===-1)return null;if(console.log("change1:",dn,pn,cr,In,Qn,Zn,Jn,jn),Qn>=0&&In.ch-Qn<5){var Pe=Qn+hr;return Cn.replaceRange("",{line:In.line,ch:Qn},{line:In.line,ch:Pe}),{line:In.line,ch:Pe}}return null}(0,fe.useEffect)(()=>{if(Kt){let pn=function(dn,Cn){const In=dn.getValue();Ri(In),Vr(new Date().getTime()),dn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ue&&(Yn?Ue(In,Zt(In)):Ue(In))};return Kt.on("change",pn),()=>{Kt.off("change",pn)}}},[Kt,Ue]),(0,fe.useEffect)(()=>{if(Kt)if(Kn==null)Kt.setValue(""),Ri("");else{const pn=window.scrollY||window.pageYOffset;Kn!==Kt.getValue()&&(Kt.setValue(Kn),Ri(Kn),Kt.setCursor(Tn?1:Kt.lineCount(),0),window.scrollTo(0,pn))}},[Kt,Kn]);const Si=(0,fe.useCallback)(pn=>{const dn=Kt.getCursor(),Cn=Kt.getSelection();let In=Cn.split(` `);switch(pn){case"bold":return Kt.replaceSelection("**"+Cn+"**"),Cn===""&&Kt.setCursor(dn.line,dn.ch+2),Kt.focus();case"italic":return Kt.replaceSelection("*"+Cn+"*"),Cn===""&&Kt.setCursor(dn.line,dn.ch+1),Kt.focus();case"code":return Kt.replaceSelection("`"+Cn+"`"),Cn===""&&Kt.setCursor(dn.line,dn.ch+1),Kt.focus();case"inline-latex":return Ni("inline-latex"),Kt.focus();case"latex":return Kt.replaceSelection("```latex\n"+Cn+"\n```"),Kt.setCursor(dn.line+1,Cn.length+1),Kt.focus();case"line-break":return Kt.replaceSelection(`
`),Kt.focus();case"list-ul":return Cn===""?Kt.replaceSelection("- "+Cn):Kt.replaceSelection(In.map(cr=>cr===""?"":`- ${cr}`).join(` `)),Kt.focus();case"list-ol":return Cn===""?Kt.replaceSelection("1. "+Cn):Kt.replaceSelection(In.map((cr,jn)=>cr===""?"":`${jn+1}. ${cr}`).join(` `)),Kt.focus();case"add-null-ch":or==null||or();return;case"add-signal":return Cn===""&&Kt.setCursor(dn.line,dn.ch),Kt.replaceSelection(Qi),Kt.focus();case"add-multiple":return Cn===""&&Kt.setCursor(dn.line,dn.ch),Kt.replaceSelection(Ji),Kt.focus();case"inster-template-1":return Cn===""&&Kt.setCursor(dn.line,dn.ch),Kt.replaceSelection(Ci),Kt.focus();case"eraser":return Kt.setValue(""),Kt.focus();case"trigger-watch":return pi(!Li),Kt.focus();case"trigger-full-screen":return yi(!Gi),Kt.focus();case Gr:Ni(Gr);return;case ir:Ni(ir);return;case li:Ni(li);return;case Wt:Ni(Wt);return;case"maths-latex":Ni("maths-latex");return;case st:ei.current="",sessionStorage.removeItem("file_id"),Ni(st);return;case gr:Ni(gr);return;default:throw new Error}},[Kt,Li,Gi]),Ce=(0,fe.useCallback)((pn,dn)=>{var Cn,In,cr,jn,Zn,Jn;Ni("");const{src:Qn,alt:hr,id:Pe}=pn||{};switch(ii){case Gr:const{title:rn,link:fn}=pn;return Kt.replaceSelection(`[${rn}](${fn})`),Kt.focus();case ir:const{language:On,content:wn}=pn;return Kt.replaceSelection(["```"+On,wn,"```"].join(` `)),Kt.focus();case"maths-latex":for(var $e=atob(pn),xt=new Uint8Array($e.length),rt=0;rt<$e.length;rt++)xt[rt]=$e.charCodeAt(rt);var It=new Blob([xt],{type:"image/png"});(0,at.I)(It,Zr=>{Zr.id?Kt.replaceSelection(`![,](/api/attachments/${Zr.id}?type=${Zr.content_type})`):(Zr==null?void 0:Zr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Kt.replaceSelection("`$$"+pn+"$$`");break;case Vn:if(!Pe)return;Kt.focus(),Kt.getValue().indexOf(Qn)===-1?Kt.replaceSelection(`
${hr||
`):document.getElementById(Pe).src=ve.Z.API_SERVER+Qn+"?t="+Date.now();try{setTimeout(()=>{ar(Kt.getValue())},100)}catch(Zr){}break;case li:case Wt:const Xt=dn,Nn=(cr=(In=(Cn=Xt==null?void 0:Xt.name)==null?void 0:Cn.split("."))==null?void 0:In.pop)==null?void 0:cr.call(In);return((jn=Xt==null?void 0:Xt.type)==null?void 0:jn.indexOf("image"))>-1||!(Xt!=null&&Xt.type)?Xt!=null&&Xt.align||Xt!=null&&Xt.width?Kt.replaceSelection(`

${hr||

`):Kt.replaceSelection(`${hr||`):((Zn=Xt==null?void 0:Xt.type)==null?void 0:Zn.indexOf("video"))>-1?Kt.replaceSelection(``):((Jn=Xt==null?void 0:Xt.type)==null?void 0:Jn.indexOf("pdf"))>-1?Kt.replaceSelection(`${Xt.name}`):mt.includes(Nn)?Kt.replaceSelection(`${Xt.name}`):Kt.replaceSelection(`[${Xt.name}](${Qn})`),Kt.focus();case gr:const{row:Fn,col:mr,align:Bn}=pn;let Lr=` `;for(let Zr=0;Zr{switch(ii){case Gr:return fe.createElement(Hn,{callback:Ce,onCancel:Be});case ir:return fe.createElement(bn.Z,{callback:Ce,onCancel:Be});case li:return fe.createElement(at.Z,{callback:Ce,onCancel:Be});case st:return fe.createElement(ye,{editImgId:ei.current,callback:Ce,onCancel:Be});case gr:return fe.createElement(hn,{callback:Ce,onCancel:Be});case"maths-latex":return fe.createElement(Fr,{showSaveButton:!0,callback:Ce});case"inline-latex":return fe.createElement(Nt.Z,{showSaveButton:!0,callback:Ce});default:return null}},[ii]);function Be(){Ni("")}(0,fe.useEffect)(()=>{if(Hr.current){let pn=function(Zn){cr=!0,jn=Zn.pageY},dn=function(){cr=!1},Cn=function(Zn){if(cr){let Jn=Zn.pageY-jn;Jn<0&&(Jn=0),Jn>300&&(Jn=300);let Qn=_t+Jn+"px";Wi(Qn)}},In=Hr.current,cr=!1,jn=0;return In.addEventListener("mousedown",pn),document.addEventListener("mousemove",Cn),document.addEventListener("mouseup",dn),()=>{In.removeEventListener("mousedown",pn),document.removeEventListener("mousemove",Cn),document.removeEventListener("mouseup",dn)}}},[Kt,Hr]),(0,fe.useEffect)(()=>{Wi(_t)},[_t]);const He=Mn(it),Ge=Mn(mi),et={width:He,height:Ge},bt=(0,fe.useMemo)(()=>{if(Zi){let pn=new Date(Zi),dn=pn.getHours(),Cn=pn.getMinutes(),In=pn.getSeconds();return dn=dn<10?"0"+dn:dn,Cn=Cn<10?"0"+Cn:Cn,In=In<10?"0"+In:In,`${dn}:${Cn}:${In}`}return 0},[Zi]),Zt=pn=>{const dn=[];if(Yn){let Cn=-1;pn=pn.replace(/(@▁▁@|@▁@)/g,function(In,cr,jn){dn.push({multiLine:In!==Qi})})}return dn};function Jt(){window.sessionStorage.removeItem(zt),ea(!1),Vr(0)}function Gn(){ea(!1),Vr(0),Kt.setValue(window.sessionStorage.getItem(zt))}(0,fe.useEffect)(()=>{nr[ii]&&ii!==Wt&&ii!==st&&setTimeout(()=>{const pn=document.getElementsByClassName("markdown-popup-form")[0],dn=window.innerWidth/2-pn.offsetWidth/2,Cn=window.innerHeight/2-pn.offsetHeight/2;an(dn),ur(Cn)},0)},[ii]);const fr=pn=>{pn.preventDefault();const dn=pn.clientX-Bt,Cn=pn.clientY-kn;document.body.onmousemove=In=>{let cr=In.clientX-dn,jn=In.clientY-Cn;const Zn=document.getElementsByClassName("markdown-popup-form")[0],Jn=window.innerWidth-Zn.offsetWidth,Qn=window.innerHeight-Zn.offsetHeight;cr=Math.max(0,Math.min(cr,Jn)),jn=Math.max(0,Math.min(jn,Qn)),Wn(In.clientX,In.clientY,dn,Cn)&&(an(cr),ur(jn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Wn=(pn,dn,Cn,In)=>{const cr=document.body.clientHeight,jn=document.body.clientWidth;return pn<20&&Cn>pn||pn>jn-20&&Cndn||dn>cr-20&&In{var dn;ei.current=pn,(dn=gi.current)==null||dn.setHeight("100vh"),setTimeout(()=>{Ni("add-flowchart")},150)}})):null))),Ht?fe.createElement("a",{ref:Hr,className:"editor-resize"}):null,ii===Wt&&fe.createElement(nn,{callback:Ce,onCancel:Be}),ii===st&&fe.createElement(ye,{ref:gi,editImgId:ei.current,callback:Ce,onCancel:Be}),fe.createElement(Ct.Z,null,nr[ii]&&ii!==Wt&&ii!==st?fe.createElement(ft.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Bt,top:kn},title:fe.createElement("div",{style:{cursor:"move"},onMouseDown:fr},nr[ii]),open:!0,onCancel:Be,footer:null,destroyOnClose:!0,width:ii===st?"1200px":null,height:ii===st?"80vh":null,className:"markdown-popup-form"},Ne):null))}},70859:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Ve},I:function(){return Ct}});var fe=ce(22150),tt=ce(2453),Fe=ce(69677),Ye=ce(93421),be=ce(31795),_e=ce(78045),Le=ce(71577),Se=ce(15476),pe=ce(67294),Te=ce(52262),gt=ce(67294),ze=Object.defineProperty,Pt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Dt=(wt,Mt,je)=>Mt in wt?ze(wt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:je}):wt[Mt]=je,Yt=(wt,Mt)=>{for(var je in Mt||(Mt={}))Je.call(Mt,je)&&Dt(wt,je,Mt[je]);if(pt)for(var je of pt(Mt))De.call(Mt,je)&&Dt(wt,je,Mt[je]);return wt},nt=(wt,Mt)=>Pt(wt,kt(Mt));const{useForm:ct}=fe.default,Ie={width:280,marginRight:10},Me={labelCol:{span:5},wrapperCol:{span:19}};var Ve=({callback:wt,onCancel:Mt})=>{const[je]=ct();let Rt=(0,pe.useRef)();function At(vn){Rt.current.width=je.getFieldValue("width"),Rt.current.align=je.getFieldValue("align"),wt(vn,Rt.current)}function xn(vn,er){if(vn.status===-1){tt.ZP.error(vn.message);return}je.setFieldsValue({src:`/api/attachments/${vn.id}`,type:er.type})}function jt(vn){let er=vn.target.files[0];Rt.current=er,Ct(er,xn)}return gt.createElement(fe.default,nt(Yt({form:je},Me),{className:"upload-image-panel",onFinish:At,style:{width:470,overflow:"hidden"}}),gt.createElement(fe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},gt.createElement("div",{className:"flex-container"},gt.createElement(fe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},gt.createElement(Fe.default,{style:Ie})),gt.createElement(Xe,{onFileChange:jt}))),gt.createElement(fe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},gt.createElement(Fe.default,{style:{width:264}})),gt.createElement(fe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},gt.createElement(Ye.Z,null,gt.createElement(fe.default.Item,{name:"width",style:{margin:0}},gt.createElement(be.Z,{style:{width:264}})),gt.createElement("span",{className:"ml8"},"%"))),gt.createElement(fe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},gt.createElement(_e.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"}]})),gt.createElement("aside",null,gt.createElement(fe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},gt.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),gt.createElement(Le.ZP,{type:"default",onClick:Mt},"\u53D6\u6D88"))))};function Xe({onFileChange:wt}){return gt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",gt.createElement("input",{type:"file",onChange:wt}))}function Ct(wt,Mt){if(!wt)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw tt.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let je=new FormData;je.append("editormd-image-file",wt),je.append("file_param_name","editormd-image-file"),je.append("byxhr","true");var Rt=new window.XMLHttpRequest;Rt.withCredentials=!0,Rt.addEventListener("load",function(At){Mt(JSON.parse(At.target.responseText),wt)},!1),Rt.addEventListener("error",function(At){console.error(At)},!1),Rt.open("POST",`${Se.KI}/api/attachments.json`),Rt.send(je)}},76621:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Fe}});var fe=ce(67294),tt=ce(73935);class Fe extends fe.Component{constructor(be){super(be);const _e=window.document;this.node=_e.createElement("div"),_e.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,tt.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return tt}});var fe=ce(67294);function tt(Fe,Ye){const be=(0,fe.useRef)();(0,fe.useEffect)(()=>{be.current=Fe}),(0,fe.useEffect)(()=>{function _e(){be.current()}if(Ye!==null){let Le=setInterval(_e,Ye);return()=>clearInterval(Le)}},[Ye])}},87494:function(Ln,qt,ce){"use strict";ce.r(qt),ce.d(qt,{default:function(){return Xe}});var fe=ce(67294),tt=ce(91304),Fe=ce(2453),Ye=ce(69677),be=ce(71577),_e=ce(33170),Le=(Ct,wt,Mt)=>new Promise((je,Rt)=>{var At=vn=>{try{jt(Mt.next(vn))}catch(er){Rt(er)}},xn=vn=>{try{jt(Mt.throw(vn))}catch(er){Rt(er)}},jt=vn=>vn.done?je(vn.value):Promise.resolve(vn.value).then(At,xn);jt((Mt=Mt.apply(Ct,wt)).next())});function Se({setIscreate:Ct,init:wt,UpdateItem:Mt}){const[je,Rt]=(0,fe.useState)(""),[At,xn]=(0,fe.useState)("");(0,fe.useEffect)(()=>{Mt&&(Rt(Mt&&Mt.name),xn(Mt&&Mt.description))},[Mt]);function jt(){return Le(this,null,function*(){if(!je){Fe.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!At){Fe.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(Mt){vn();return}(yield(0,_e.ZP)("/api/hpc_courses.json",{method:"post",body:{name:je,description:At,container_type:window.location.pathname.split("/")[1]}}))&&(Fe.ZP.info("\u521B\u5EFA\u6210\u529F"),Ct(!1),wt("add"))})}function vn(){return Le(this,null,function*(){(yield(0,_e.ZP)(`/api/hpc_courses/${Mt.id}.json`,{method:"put",body:{name:je,description:At,container_type:window.location.pathname.split("/")[1]}}))&&(Fe.ZP.info("\u7F16\u8F91\u6210\u529F"),Ct(!1),wt(""))})}return fe.createElement("div",null,fe.createElement(Ye.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:je,maxLength:60,addonAfter:String(je.length)+"/60",onChange:er=>Rt(er.target.value)}),fe.createElement(tt.Z,{id:"courseContentMD",defaultValue:At,onChange:er=>xn(er)}),fe.createElement("div",{className:"clearfix mt30 mb30"},fe.createElement(be.ZP,{type:"primary",onClick:()=>jt(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),fe.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>Ct(!1)},"\u53D6\u6D88")))}var pe=Se,Te=ce(35598),gt=(Ct,wt,Mt)=>new Promise((je,Rt)=>{var At=vn=>{try{jt(Mt.next(vn))}catch(er){Rt(er)}},xn=vn=>{try{jt(Mt.throw(vn))}catch(er){Rt(er)}},jt=vn=>vn.done?je(vn.value):Promise.resolve(vn.value).then(At,xn);jt((Mt=Mt.apply(Ct,wt)).next())});function ze({CourseItem:Ct,userId:wt,init:Mt,ItemUpdate:je,setSee:Rt,UserInfo:At}){function xn(){return gt(this,null,function*(){(yield(0,_e.ZP)(`/api/hpc_courses/${Ct.id}.json`,{method:"delete"}))&&(Fe.ZP.info("\u5220\u9664\u6210\u529F"),Mt("delete"),Rt(!1))})}function jt(){je(Ct)}return fe.createElement("div",null,wt===299635||wt===301458||At!=null&&At.admin||At!=null&&At.business?fe.createElement("div",{style:{textAlign:"right"}},fe.createElement(be.ZP,{onClick:()=>jt()},"\u7F16\u8F91"),fe.createElement(be.ZP,{onClick:()=>xn(),style:{marginLeft:"30px"}},"\u5220\u9664")):null,fe.createElement("h1",null,Ct==null?void 0:Ct.name),fe.createElement(Te.Z,{value:Ct==null?void 0:Ct.description}))}var Pt=ze,kt=ce(59810),pt=ce(11320),Je=ce(35973),De=Object.defineProperty,Dt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ct=(Ct,wt,Mt)=>wt in Ct?De(Ct,wt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Ct[wt]=Mt,Ie=(Ct,wt)=>{for(var Mt in wt||(wt={}))Yt.call(wt,Mt)&&ct(Ct,Mt,wt[Mt]);if(Dt)for(var Mt of Dt(wt))nt.call(wt,Mt)&&ct(Ct,Mt,wt[Mt]);return Ct},Me=(Ct,wt,Mt)=>new Promise((je,Rt)=>{var At=vn=>{try{jt(Mt.next(vn))}catch(er){Rt(er)}},xn=vn=>{try{jt(Mt.throw(vn))}catch(er){Rt(er)}},jt=vn=>vn.done?je(vn.value):Promise.resolve(vn.value).then(At,xn);jt((Mt=Mt.apply(Ct,wt)).next())});function Ve({user:Ct,dispatch:wt}){var Mt,je,Rt,At,xn,jt,vn,er,Sr;const[qe,Ae]=(0,fe.useState)(1),[$t,Hn]=(0,fe.useState)(100),[bn,at]=(0,fe.useState)([]),[ft,Gt]=(0,fe.useState)(!1),[zn,mn]=(0,fe.useState)(!1),[nn,Ft]=(0,fe.useState)(""),[Pn,_n]=(0,fe.useState)(""),[Ee,ue]=(0,fe.useState)("");let{itemname:se}=(0,Je.useParams)();const[ye,ve]=(0,fe.useState)("");(0,fe.useEffect)(()=>{wt({type:"globalSetting/headerToggle",payload:!1}),qe&&le("")},[qe]);function le(sn){return Me(this,null,function*(){var yn,ln;const yr=yield(0,_e.ZP)("/api/hpc_courses.json",{method:"get",params:{page:qe,per_page:$t,container_type:window.location.pathname.split("/")[1]}});if(yr){let Fr=yr.data.hpc_courses.length;if(at(yr.data.hpc_courses),ue(yr.data.file_url),_n(""),!Fr)return;if(ye)if(sn==="delete"){if(Fr===0){mn(!1);return}Ft(yr.data.hpc_courses[0]),mn(!0),ve(yr.data.hpc_courses[0].id)}else sn==="add"?(Ft(yr.data.hpc_courses[Fr-1]),mn(!0),ve(yr.data.hpc_courses[Fr-1].id)):(Ft(yr.data.hpc_courses.filter(Nt=>Nt.id===ye)[0]),mn(!0),ve(ye));else if(se){let Nt=0;(ln=(yn=yr==null?void 0:yr.data)==null?void 0:yn.hpc_courses)==null||ln.map((Rn,Gr)=>{var li;(se==null?void 0:se.toLocaleLowerCase())===((li=Rn==null?void 0:Rn.name)==null?void 0:li.toLocaleLowerCase())&&(Nt=Gr)}),Ft(yr.data.hpc_courses[Nt]),mn(!0),ve(yr.data.hpc_courses[Nt].id),(se==null?void 0:se.toLocaleLowerCase())==="resources"&&(Ft(yr.data.hpc_courses.filter(Rn=>Rn.id===15)[0]),mn(!0),ve(15))}else Ft(yr.data.hpc_courses[0]),mn(!0),ve(yr.data.hpc_courses[0].id)}})}function We(sn){Gt(!1),mn(!0),Ft(sn),ve(sn.id)}function Lt(sn){_n(sn),Gt(!0),mn(!1)}function tn(){_n(""),Gt(!0),mn(!1)}const hn={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(sn){const{status:yn}=sn.file;yn==="done"?(Fe.ZP.success(`${sn.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),le("")):yn==="error"&&Fe.ZP.error(`${sn.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:sn=>{const yn=sn.size/1024/1024<150;return yn||Fe.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),yn}};return fe.createElement("div",{style:{marginBottom:"40px"}},fe.createElement("div",{className:"bannterdiv",style:{background:`url(${pt.Z.IMG_SERVER+`/${Ee}`})`}}),fe.createElement("img",{style:{width:"100%"},src:pt.Z.IMG_SERVER+`/${Ee}`}),fe.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},fe.createElement("div",{style:{flex:"1",marginTop:"17px"}},bn&&bn.map((sn,yn)=>fe.createElement("p",{key:yn,onClick:()=>We(sn),className:ye===sn.id?"menuitemselect":"menuitem task-hide"},sn.name)),((Mt=Ct==null?void 0:Ct.userInfo)==null?void 0:Mt.user_id)===299635||((je=Ct==null?void 0:Ct.userInfo)==null?void 0:je.user_id)===301458||(Rt=Ct==null?void 0:Ct.userInfo)!=null&&Rt.admin||(At=Ct==null?void 0:Ct.userInfo)!=null&&At.business?fe.createElement("p",{onClick:()=>tn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},fe.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),fe.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},ft?fe.createElement(pe,{UpdateItem:Pn,setIscreate:Gt,init:le}):null,zn?fe.createElement(Pt,{UserInfo:Ct==null?void 0:Ct.userInfo,setSee:mn,userId:(xn=Ct==null?void 0:Ct.userInfo)==null?void 0:xn.user_id,ItemUpdate:Lt,CourseItem:nn,init:le}):null)),((jt=Ct==null?void 0:Ct.userInfo)==null?void 0:jt.user_id)===299635||((vn=Ct==null?void 0:Ct.userInfo)==null?void 0:vn.user_id)===301458||(er=Ct==null?void 0:Ct.userInfo)!=null&&er.admin||(Sr=Ct==null?void 0:Ct.userInfo)!=null&&Sr.business?fe.createElement(kt.default,Ie({},hn),fe.createElement(be.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var Xe=(0,Je.connect)(({user:Ct})=>({user:Ct}))(Ve)},57838:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return tt}});var fe=ce(67294);function tt(){const[,Fe]=fe.useReducer(Ye=>Ye+1,0);return Fe}},9708:function(Ln,qt,ce){"use strict";ce.d(qt,{F:function(){return be},Z:function(){return Ye}});var fe=ce(94184),tt=ce.n(fe);const Fe=null;function Ye(_e,Le,Se){return tt()({[`${_e}-status-success`]:Le==="success",[`${_e}-status-warning`]:Le==="warning",[`${_e}-status-error`]:Le==="error",[`${_e}-status-validating`]:Le==="validating",[`${_e}-has-feedback`]:Se})}const be=(_e,Le)=>Le||_e},88258:function(Ln,qt,ce){"use strict";var fe=ce(67294),tt=ce(53124),Fe=ce(32983);const Ye=be=>{const{componentName:_e}=be,{getPrefixCls:Le}=(0,fe.useContext)(tt.E_),Se=Le("empty");switch(_e){case"Table":case"List":return fe.createElement(Fe.Z,{image:Fe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return fe.createElement(Fe.Z,{image:Fe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Se}-small`});default:return fe.createElement(Fe.Z,null)}};qt.Z=Ye},72565:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return ti}});var fe=ce(94184),tt=ce.n(fe),Fe=ce(1413),Ye=ce(97685),be=ce(67294),_e=ce(73935);function Le(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Se={};function pe(yt,ht){}function Te(yt,ht){}function gt(){Se={}}function ze(yt,ht,Bt){!ht&&!Se[Bt]&&(yt(!1,Bt),Se[Bt]=!0)}function Pt(yt,ht){ze(pe,yt,ht)}function kt(yt,ht){ze(Te,yt,ht)}var pt=null,Je=ce(71002),De=ce(18459);function Dt(yt,ht,Bt){var an=be.useRef({});return(!("value"in an.current)||Bt(an.current.condition,ht))&&(an.current.value=yt(),an.current.condition=ht),an.current.value}function Yt(yt,ht){typeof yt=="function"?yt(ht):(0,Je.Z)(yt)==="object"&&yt&&"current"in yt&&(yt.current=ht)}function nt(){for(var yt=arguments.length,ht=new Array(yt),Bt=0;Bt0&&arguments[0]!==void 0?arguments[0]:{},ht=yt.mark;return ht?ht.startsWith("data-")?ht:"data-".concat(ht):jt}function Sr(yt){if(yt.attachTo)return yt.attachTo;var ht=document.querySelector("head");return ht||document.body}function qe(yt){return yt==="queue"?"prependQueue":yt?"prepend":"append"}function Ae(yt){return Array.from((vn.get(yt)||yt).children).filter(function(ht){return ht.tagName==="STYLE"})}function $t(yt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Le())return null;var Bt=ht.csp,an=ht.prepend,kn=document.createElement("style");kn.setAttribute(xn,qe(an)),Bt!=null&&Bt.nonce&&(kn.nonce=Bt==null?void 0:Bt.nonce),kn.innerHTML=yt;var ur=Sr(ht),Er=ur.firstChild;if(an){if(an==="queue"){var Br=Ae(ur).filter(function(Hr){return["prepend","prependQueue"].includes(Hr.getAttribute(xn))});if(Br.length)return ur.insertBefore(kn,Br[Br.length-1].nextSibling),kn}ur.insertBefore(kn,Er)}else ur.appendChild(kn);return kn}function Hn(yt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=Sr(ht);return Ae(Bt).find(function(an){return an.getAttribute(er(ht))===yt})}function bn(yt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=Hn(yt,ht);if(Bt){var an=Sr(ht);an.removeChild(Bt)}}function at(yt,ht){var Bt=vn.get(yt);if(!Bt||!At(document,Bt)){var an=$t("",ht),kn=an.parentNode;vn.set(yt,kn),yt.removeChild(an)}}function ft(){vn.clear()}function Gt(yt,ht){var Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},an=Sr(Bt);at(an,Bt);var kn=Hn(ht,Bt);if(kn){var ur,Er;if((ur=Bt.csp)!==null&&ur!==void 0&&ur.nonce&&kn.nonce!==((Er=Bt.csp)===null||Er===void 0?void 0:Er.nonce)){var Br;kn.nonce=(Br=Bt.csp)===null||Br===void 0?void 0:Br.nonce}return kn.innerHTML!==yt&&(kn.innerHTML=yt),kn}var Hr=$t(yt,Bt);return Hr.setAttribute(er(Bt),ht),Hr}var zn;function mn(yt){if(typeof document=="undefined")return 0;if(yt||zn===void 0){var ht=document.createElement("div");ht.style.width="100%",ht.style.height="200px";var Bt=document.createElement("div"),an=Bt.style;an.position="absolute",an.top="0",an.left="0",an.pointerEvents="none",an.visibility="hidden",an.width="200px",an.height="150px",an.overflow="hidden",Bt.appendChild(ht),document.body.appendChild(Bt);var kn=ht.offsetWidth;Bt.style.overflow="scroll";var ur=ht.offsetWidth;kn===ur&&(ur=Bt.clientWidth),document.body.removeChild(Bt),zn=kn-ur}return zn}function nn(yt){var ht=yt.match(/^(.*)px$/),Bt=Number(ht==null?void 0:ht[1]);return Number.isNaN(Bt)?mn():Bt}function Ft(yt){if(typeof document=="undefined"||!yt||!(yt instanceof Element))return{width:0,height:0};var ht=getComputedStyle(yt,"::-webkit-scrollbar"),Bt=ht.width,an=ht.height;return{width:nn(Bt),height:nn(an)}}function Pn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _n="rc-util-locker-".concat(Date.now()),Ee=0;function ue(yt){var ht=!!yt,Bt=be.useState(function(){return Ee+=1,"".concat(_n,"_").concat(Ee)}),an=(0,Ye.Z)(Bt,1),kn=an[0];wt(function(){if(ht){var ur=Ft(document.body).width,Er=Pn();Gt(` html body { overflow-y: hidden; `.concat(Er?"width: calc(100% - ".concat(ur,"px);"):"",` }`),kn)}else bn(kn);return function(){bn(kn)}},[ht,kn])}var se=!1;function ye(yt){return typeof yt=="boolean"&&(se=yt),se}var ve=function(ht){return ht===!1?!1:!Le()||!ht?null:typeof ht=="string"?document.querySelector(ht):typeof ht=="function"?ht():ht},le=be.forwardRef(function(yt,ht){var Bt=yt.open,an=yt.autoLock,kn=yt.getContainer,ur=yt.debug,Er=yt.autoDestroy,Br=Er===void 0?!0:Er,Hr=yt.children,Nr=be.useState(Bt),ei=(0,Ye.Z)(Nr,2),gi=ei[0],Mr=ei[1],fi=gi||Bt;be.useEffect(function(){(Br||Bt)&&Mr(Bt)},[Bt,Br]);var Ai=be.useState(function(){return ve(kn)}),Si=(0,Ye.Z)(Ai,2),Ce=Si[0],Ne=Si[1];be.useEffect(function(){var pn=ve(kn);Ne(pn!=null?pn:null)});var Be=Rt(fi&&!Ce,ur),He=(0,Ye.Z)(Be,2),Ge=He[0],et=He[1],bt=Ce!=null?Ce:Ge;ue(an&&Bt&&Le()&&(bt===Ge||bt===document.body));var Zt=null;if(Hr&&Ie(Hr)&&ht){var Jt=Hr;Zt=Jt.ref}var Gn=ct(Zt,ht);if(!fi||!Le()||Ce===void 0)return null;var fr=bt===!1||ye(),Wn=Hr;return ht&&(Wn=be.cloneElement(Hr,{ref:Gn})),be.createElement(Ve.Provider,{value:et},fr?Wn:(0,_e.createPortal)(Wn,bt))}),We=le,Lt=We;function tn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var hn=tn()?be.useLayoutEffect:be.useEffect,sn=function(ht,Bt){var an=be.useRef(!0);hn(function(){return ht(an.current)},Bt),hn(function(){return an.current=!1,function(){an.current=!0}},[])},yn=function(ht,Bt){sn(function(an){if(!an)return ht()},Bt)},ln=sn,yr=be.createContext(null),Fr=be.createContext({}),Nt=yr,Rn=ce(4942),Gr=ce(87462),li=ce(62874),st={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ht){var Bt=ht.keyCode;if(ht.altKey&&!ht.ctrlKey||ht.metaKey||Bt>=st.F1&&Bt<=st.F12)return!1;switch(Bt){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ht){if(ht>=st.ZERO&&ht<=st.NINE||ht>=st.NUM_ZERO&&ht<=st.NUM_MULTIPLY||ht>=st.A&&ht<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ht===0)return!0;switch(ht){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Wt=st,Vn=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,ir=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,gr="".concat(Vn," ").concat(ir).split(/[\s\n]+/),Pr="aria-",Ur="data-";function Xr(yt,ht){return yt.indexOf(ht)===0}function qr(yt){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt;ht===!1?Bt={aria:!0,data:!0,attr:!0}:ht===!0?Bt={aria:!0}:Bt=(0,Fe.Z)({},ht);var an={};return Object.keys(yt).forEach(function(kn){(Bt.aria&&(kn==="role"||Xr(kn,Pr))||Bt.data&&Xr(kn,Ur)||Bt.attr&&gr.includes(kn))&&(an[kn]=yt[kn])}),an}function ui(yt){var ht=React.useRef();ht.current=yt;var Bt=React.useCallback(function(){for(var an,kn=arguments.length,ur=new Array(kn),Er=0;Er3&&arguments[3]!==void 0?arguments[3]:!1;return ht.length&&an&&Bt===void 0&&!get(yt,ht.slice(0,-1))?yt:sr(yt,ht,Bt,an)}function pr(yt){return _typeof(yt)==="object"&&yt!==null&&Object.getPrototypeOf(yt)===Object.prototype}function Kn(yt){return Array.isArray(yt)?[]:{}}var Ue=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function it(){for(var yt=arguments.length,ht=new Array(yt),Bt=0;Bt{const{prefixCls:ht,title:Bt,footer:an,extra:kn,closeIcon:ur,closable:Er,onClose:Br,headerStyle:Hr,drawerStyle:Nr,bodyStyle:ei,footerStyle:gi,children:Mr}=yt,fi=be.useCallback(Be=>be.createElement("button",{type:"button",onClick:Br,"aria-label":"Close",className:`${ht}-close`},Be),[Br]),[Ai,Si]=(0,Kt.Z)(Er,ur,fi,void 0,!0),Ce=be.useMemo(()=>!Bt&&!Ai?null:be.createElement("div",{style:Hr,className:tt()(`${ht}-header`,{[`${ht}-header-close-only`]:Ai&&!Bt&&!kn})},be.createElement("div",{className:`${ht}-header-title`},Si,Bt&&be.createElement("div",{className:`${ht}-title`},Bt)),kn&&be.createElement("div",{className:`${ht}-extra`},kn)),[Ai,Si,kn,Hr,ht,Bt]),Ne=be.useMemo(()=>{if(!an)return null;const Be=`${ht}-footer`;return be.createElement("div",{className:Be,style:gi},an)},[an,gi,ht]);return be.createElement("div",{className:`${ht}-wrapper-body`,style:Nr},Ce,be.createElement("div",{className:`${ht}-body`,style:ei},Mr),Ne)},Ri=ce(4173),Li=ce(67968),pi=ce(45503),yi=yt=>{const{componentCls:ht,motionDurationSlow:Bt}=yt,an={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Bt}`}}};return{[ht]:{[`${ht}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Bt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ht}-panel-motion`]:{"&-left":[an,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[an,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[an,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[an,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const ii=yt=>{const{componentCls:ht,zIndexPopup:Bt,colorBgMask:an,colorBgElevated:kn,motionDurationSlow:ur,motionDurationMid:Er,padding:Br,paddingLG:Hr,fontSizeLG:Nr,lineHeightLG:ei,lineWidth:gi,lineType:Mr,colorSplit:fi,marginSM:Ai,colorIcon:Si,colorIconHover:Ce,colorText:Ne,fontWeightStrong:Be,footerPaddingBlock:He,footerPaddingInline:Ge}=yt,et=`${ht}-content-wrapper`;return{[ht]:{position:"fixed",inset:0,zIndex:Bt,pointerEvents:"none","&-pure":{position:"relative",background:kn,[`&${ht}-left`]:{boxShadow:yt.boxShadowDrawerLeft},[`&${ht}-right`]:{boxShadow:yt.boxShadowDrawerRight},[`&${ht}-top`]:{boxShadow:yt.boxShadowDrawerUp},[`&${ht}-bottom`]:{boxShadow:yt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ht}-mask`]:{position:"absolute",inset:0,zIndex:Bt,background:an,pointerEvents:"auto"},[et]:{position:"absolute",zIndex:Bt,maxWidth:"100vw",transition:`all ${ur}`,"&-hidden":{display:"none"}},[`&-left > ${et}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:yt.boxShadowDrawerLeft},[`&-right > ${et}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:yt.boxShadowDrawerRight},[`&-top > ${et}`]:{top:0,insetInline:0,boxShadow:yt.boxShadowDrawerUp},[`&-bottom > ${et}`]:{bottom:0,insetInline:0,boxShadow:yt.boxShadowDrawerDown},[`${ht}-content`]:{width:"100%",height:"100%",overflow:"auto",background:kn,pointerEvents:"auto"},[`${ht}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ht}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Br}px ${Hr}px`,fontSize:Nr,lineHeight:ei,borderBottom:`${gi}px ${Mr} ${fi}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ht}-extra`]:{flex:"none"},[`${ht}-close`]:{display:"inline-block",marginInlineEnd:Ai,color:Si,fontWeight:Be,fontSize:Nr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Er}`,textRendering:"auto","&:focus, &:hover":{color:Ce,textDecoration:"none"}},[`${ht}-title`]:{flex:1,margin:0,color:Ne,fontWeight:yt.fontWeightStrong,fontSize:Nr,lineHeight:ei},[`${ht}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Hr,overflow:"auto"},[`${ht}-footer`]:{flexShrink:0,padding:`${He}px ${Ge}px`,borderTop:`${gi}px ${Mr} ${fi}`},"&-rtl":{direction:"rtl"}}}};var Ni=(0,Li.Z)("Drawer",yt=>{const ht=(0,pi.TS)(yt,{});return[ii(ht),yi(ht)]},yt=>({zIndexPopup:yt.zIndexPopupBase,footerPaddingBlock:yt.paddingXS,footerPaddingInline:yt.padding})),Zi=ce(16569),Vr=function(yt,ht){var Bt={};for(var an in yt)Object.prototype.hasOwnProperty.call(yt,an)&&ht.indexOf(an)<0&&(Bt[an]=yt[an]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,an=Object.getOwnPropertySymbols(yt);kn{var ht;const{rootClassName:Bt,width:an,height:kn,size:ur="default",mask:Er=!0,push:Br=Wi,open:Hr,afterOpenChange:Nr,onClose:ei,prefixCls:gi,getContainer:Mr,style:fi,className:Ai,visible:Si,afterVisibleChange:Ce}=yt,Ne=Vr(yt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Be,getPrefixCls:He,direction:Ge,drawer:et}=be.useContext(Dn.E_),bt=He("drawer",gi),[Zt,Jt]=Ni(bt),Gn=Mr===void 0&&Be?()=>Be(document.body):Mr,fr=tt()({"no-mask":!Er,[`${bt}-rtl`]:Ge==="rtl"},Bt,Jt),Wn=be.useMemo(()=>an!=null?an:ur==="large"?736:378,[an,ur]),pn=be.useMemo(()=>kn!=null?kn:ur==="large"?736:378,[kn,ur]),dn={motionName:(0,un.m)(bt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Cn=cr=>({motionName:(0,un.m)(bt,`panel-motion-${cr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),In=(0,Zi.H)();return Zt(be.createElement(Ri.BR,null,be.createElement(or.Ux,{status:!0,override:!0},be.createElement(cn,Object.assign({prefixCls:bt,onClose:ei,maskMotion:dn,motion:Cn},Ne,{open:Hr!=null?Hr:Si,mask:Er,push:Br,width:Wn,height:pn,style:Object.assign(Object.assign({},et==null?void 0:et.style),fi),className:tt()(et==null?void 0:et.className,Ai),rootClassName:fr,getContainer:Gn,afterOpenChange:Nr!=null?Nr:Ce,panelRef:In}),be.createElement($r,Object.assign({prefixCls:bt},Ne,{onClose:ei}))))))},ea=yt=>{const{prefixCls:ht,style:Bt,className:an,placement:kn="right"}=yt,ur=Vr(yt,["prefixCls","style","className","placement"]),{getPrefixCls:Er}=be.useContext(Dn.E_),Br=Er("drawer",ht),[Hr,Nr]=Ni(Br),ei=tt()(Br,`${Br}-pure`,`${Br}-${kn}`,Nr,an);return Hr(be.createElement("div",{className:ei,style:Bt},be.createElement($r,Object.assign({prefixCls:Br},ur))))};la._InternalPanelDoNotUseOrYouWillBeFired=ea;var ti=la},32983:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return nt}});var fe=ce(94184),tt=ce.n(fe),Fe=ce(67294),Ye=ce(53124),be=ce(10110),_e=ce(84780),Le=ce(29691),pe=()=>{const[,ct]=(0,Le.Z)(),Me=new _e.C(ct.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Fe.createElement("svg",{style:Me,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Fe.createElement("g",{fill:"none",fillRule:"evenodd"},Fe.createElement("g",{transform:"translate(24 31.67)"},Fe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Fe.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"}),Fe.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)"}),Fe.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"}),Fe.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"})),Fe.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"}),Fe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Fe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Fe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},gt=()=>{const[,ct]=(0,Le.Z)(),{colorFill:Ie,colorFillTertiary:Me,colorFillQuaternary:Ve,colorBgContainer:Xe}=ct,{borderColor:Ct,shadowColor:wt,contentColor:Mt}=(0,Fe.useMemo)(()=>({borderColor:new _e.C(Ie).onBackground(Xe).toHexShortString(),shadowColor:new _e.C(Me).onBackground(Xe).toHexShortString(),contentColor:new _e.C(Ve).onBackground(Xe).toHexShortString()}),[Ie,Me,Ve,Xe]);return Fe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Fe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Fe.createElement("ellipse",{fill:wt,cx:"32",cy:"33",rx:"32",ry:"7"}),Fe.createElement("g",{fillRule:"nonzero",stroke:Ct},Fe.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"}),Fe.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:Mt}))))},ze=ce(67968),Pt=ce(45503);const kt=ct=>{const{componentCls:Ie,margin:Me,marginXS:Ve,marginXL:Xe,fontSize:Ct,lineHeight:wt}=ct;return{[Ie]:{marginInline:Ve,fontSize:Ct,lineHeight:wt,textAlign:"center",[`${Ie}-image`]:{height:ct.emptyImgHeight,marginBottom:Ve,opacity:ct.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ie}-description`]:{color:ct.colorText},[`${Ie}-footer`]:{marginTop:Me},"&-normal":{marginBlock:Xe,color:ct.colorTextDisabled,[`${Ie}-description`]:{color:ct.colorTextDisabled},[`${Ie}-image`]:{height:ct.emptyImgHeightMD}},"&-small":{marginBlock:Ve,color:ct.colorTextDisabled,[`${Ie}-image`]:{height:ct.emptyImgHeightSM}}}}};var pt=(0,ze.Z)("Empty",ct=>{const{componentCls:Ie,controlHeightLG:Me}=ct,Ve=(0,Pt.TS)(ct,{emptyImgCls:`${Ie}-img`,emptyImgHeight:Me*2.5,emptyImgHeightMD:Me,emptyImgHeightSM:Me*.875});return[kt(Ve)]}),Je=function(ct,Ie){var Me={};for(var Ve in ct)Object.prototype.hasOwnProperty.call(ct,Ve)&&Ie.indexOf(Ve)<0&&(Me[Ve]=ct[Ve]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ve=Object.getOwnPropertySymbols(ct);Xe{var{className:Ie,rootClassName:Me,prefixCls:Ve,image:Xe=De,description:Ct,children:wt,imageStyle:Mt,style:je}=ct,Rt=Je(ct,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:At,direction:xn,empty:jt}=Fe.useContext(Ye.E_),vn=At("empty",Ve),[er,Sr]=pt(vn),[qe]=(0,be.Z)("Empty"),Ae=typeof Ct!="undefined"?Ct:qe==null?void 0:qe.description,$t=typeof Ae=="string"?Ae:"empty";let Hn=null;return typeof Xe=="string"?Hn=Fe.createElement("img",{alt:$t,src:Xe}):Hn=Xe,er(Fe.createElement("div",Object.assign({className:tt()(Sr,vn,jt==null?void 0:jt.className,{[`${vn}-normal`]:Xe===Dt,[`${vn}-rtl`]:xn==="rtl"},Ie,Me),style:Object.assign(Object.assign({},jt==null?void 0:jt.style),je)},Rt),Fe.createElement("div",{className:`${vn}-image`,style:Mt},Hn),Ae&&Fe.createElement("div",{className:`${vn}-description`},Ae),wt&&Fe.createElement("div",{className:`${vn}-footer`},wt)))};Yt.PRESENTED_IMAGE_DEFAULT=De,Yt.PRESENTED_IMAGE_SIMPLE=Dt;var nt=Yt},22150:function(Ln,qt,ce){"use strict";ce.d(qt,{default:function(){return Ut}});var fe=ce(74902),tt=ce(94184),Fe=ce.n(tt),Ye=ce(38379),be=ce(67294),_e=ce(33603),Le=ce(65223);function Se(Ke){const[ut,Ot]=be.useState(Ke);return be.useEffect(()=>{const Tt=setTimeout(()=>{Ot(Ke)},Ke.length?0:10);return()=>{clearTimeout(Tt)}},[Ke]),ut}var pe=ce(14747),Te=ce(50438),gt=ce(33507),ze=ce(45503),Pt=ce(67968),pt=Ke=>{const{componentCls:ut}=Ke,Ot=`${ut}-show-help`,Tt=`${ut}-show-help-item`;return{[Ot]:{transition:`opacity ${Ke.motionDurationSlow} ${Ke.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Tt]:{overflow:"hidden",transition:`height ${Ke.motionDurationSlow} ${Ke.motionEaseInOut}, opacity ${Ke.motionDurationSlow} ${Ke.motionEaseInOut}, transform ${Ke.motionDurationSlow} ${Ke.motionEaseInOut} !important`,[`&${Tt}-appear, &${Tt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Tt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Je=Ke=>({legend:{display:"block",width:"100%",marginBottom:Ke.marginLG,padding:0,color:Ke.colorTextDescription,fontSize:Ke.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ke.lineWidth}px ${Ke.lineType} ${Ke.colorBorder}`},label:{fontSize:Ke.fontSize},'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 ${Ke.controlOutlineWidth}px ${Ke.controlOutline}`},output:{display:"block",paddingTop:15,color:Ke.colorText,fontSize:Ke.fontSize,lineHeight:Ke.lineHeight}}),De=(Ke,ut)=>{const{formItemCls:Ot}=Ke;return{[Ot]:{[`${Ot}-label > label`]:{height:ut},[`${Ot}-control-input`]:{minHeight:ut}}}},Dt=Ke=>{const{componentCls:ut}=Ke;return{[Ke.componentCls]:Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(Ke)),Je(Ke)),{[`${ut}-text`]:{display:"inline-block",paddingInlineEnd:Ke.paddingSM},"&-small":Object.assign({},De(Ke,Ke.controlHeightSM)),"&-large":Object.assign({},De(Ke,Ke.controlHeightLG))})}},Yt=Ke=>{const{formItemCls:ut,iconCls:Ot,componentCls:Tt,rootPrefixCls:zt,labelRequiredMarkColor:Ht,labelColor:$n,labelFontSize:Cr,labelHeight:Yn,labelColonMarginInlineStart:qn,labelColonMarginInlineEnd:rr,itemMarginBottom:ar}=Ke;return{[ut]:Object.assign(Object.assign({},(0,pe.Wf)(Ke)),{marginBottom:ar,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${zt}-row`]:{display:"none"},"&-has-warning":{[`${ut}-split`]:{color:Ke.colorError}},"&-has-error":{[`${ut}-split`]:{color:Ke.colorWarning}},[`${ut}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ke.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Yn,color:$n,fontSize:Cr,[`> ${Ot}`]:{fontSize:Ke.fontSize,verticalAlign:"top"},[`&${ut}-required:not(${ut}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ke.marginXXS,color:Ht,fontSize:Ke.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Tt}-hide-required-mark &`]:{display:"none"}},[`${ut}-optional`]:{display:"inline-block",marginInlineStart:Ke.marginXXS,color:Ke.colorTextDescription,[`${Tt}-hide-required-mark &`]:{display:"none"}},[`${ut}-tooltip`]:{color:Ke.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ke.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:qn,marginInlineEnd:rr},[`&${ut}-no-colon::after`]:{content:'"\\a0"'}}},[`${ut}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${zt}-col-'"]):not([class*="' ${zt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ke.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ut]:{"&-explain, &-extra":{clear:"both",color:Ke.colorTextDescription,fontSize:Ke.fontSize,lineHeight:Ke.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ke.controlHeightSM,transition:`color ${Ke.motionDurationMid} ${Ke.motionEaseOut}`},"&-explain":{"&-error":{color:Ke.colorError},"&-warning":{color:Ke.colorWarning}}},[`&-with-help ${ut}-explain`]:{height:"auto",opacity:1},[`${ut}-feedback-icon`]:{fontSize:Ke.fontSize,textAlign:"center",visibility:"visible",animationName:Te.kr,animationDuration:Ke.motionDurationMid,animationTimingFunction:Ke.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ke.colorSuccess},"&-error":{color:Ke.colorError},"&-warning":{color:Ke.colorWarning},"&-validating":{color:Ke.colorPrimary}}})}},nt=Ke=>{const{componentCls:ut,formItemCls:Ot}=Ke;return{[`${ut}-horizontal`]:{[`${Ot}-label`]:{flexGrow:0},[`${Ot}-control`]:{flex:"1 1 0",minWidth:0},[`${Ot}-label[class$='-24'], ${Ot}-label[class*='-24 ']`]:{[`& + ${Ot}-control`]:{minWidth:"unset"}}}}},ct=Ke=>{const{componentCls:ut,formItemCls:Ot}=Ke;return{[`${ut}-inline`]:{display:"flex",flexWrap:"wrap",[Ot]:{flex:"none",marginInlineEnd:Ke.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Ot}-label, > ${Ot}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ot}-label`]:{flex:"none"},[`${ut}-text`]:{display:"inline-block"},[`${Ot}-has-feedback`]:{display:"inline-block"}}}}},Ie=Ke=>({padding:Ke.verticalLabelPadding,margin:Ke.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Me=Ke=>{const{componentCls:ut,formItemCls:Ot,rootPrefixCls:Tt}=Ke;return{[`${Ot} ${Ot}-label`]:Ie(Ke),[ut]:{[Ot]:{flexWrap:"wrap",[`${Ot}-label, ${Ot}-control`]:{[`&:not([class*=" ${Tt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ve=Ke=>{const{componentCls:ut,formItemCls:Ot,rootPrefixCls:Tt}=Ke;return{[`${ut}-vertical`]:{[Ot]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ut}-item-control`]:{width:"100%"}}},[`${ut}-vertical ${Ot}-label, .${Tt}-col-24${Ot}-label, .${Tt}-col-xl-24${Ot}-label`]:Ie(Ke),[`@media (max-width: ${Ke.screenXSMax}px)`]:[Me(Ke),{[ut]:{[`.${Tt}-col-xs-24${Ot}-label`]:Ie(Ke)}}],[`@media (max-width: ${Ke.screenSMMax}px)`]:{[ut]:{[`.${Tt}-col-sm-24${Ot}-label`]:Ie(Ke)}},[`@media (max-width: ${Ke.screenMDMax}px)`]:{[ut]:{[`.${Tt}-col-md-24${Ot}-label`]:Ie(Ke)}},[`@media (max-width: ${Ke.screenLGMax}px)`]:{[ut]:{[`.${Tt}-col-lg-24${Ot}-label`]:Ie(Ke)}}}},Xe=(Ke,ut)=>(0,ze.TS)(Ke,{formItemCls:`${Ke.componentCls}-item`,rootPrefixCls:ut});var Ct=(0,Pt.Z)("Form",(Ke,ut)=>{let{rootPrefixCls:Ot}=ut;const Tt=Xe(Ke,Ot);return[Dt(Tt),Yt(Tt),pt(Tt),nt(Tt),ct(Tt),Ve(Tt),(0,gt.Z)(Tt),Te.kr]},Ke=>({labelRequiredMarkColor:Ke.colorError,labelColor:Ke.colorTextHeading,labelFontSize:Ke.fontSize,labelHeight:Ke.controlHeight,labelColonMarginInlineStart:Ke.marginXXS/2,labelColonMarginInlineEnd:Ke.marginXS,itemMarginBottom:Ke.marginLG,verticalLabelPadding:`0 0 ${Ke.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const wt=[];function Mt(Ke,ut,Ot){let Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ke=="string"?Ke:`${ut}-${Tt}`,error:Ke,errorStatus:Ot}}var Rt=Ke=>{let{help:ut,helpStatus:Ot,errors:Tt=wt,warnings:zt=wt,className:Ht,fieldId:$n,onVisibleChanged:Cr}=Ke;const{prefixCls:Yn}=be.useContext(Le.Rk),qn=`${Yn}-item-explain`,[,rr]=Ct(Yn),ar=(0,be.useMemo)(()=>(0,_e.Z)(Yn),[Yn]),ot=Se(Tt),Qe=Se(zt),vt=be.useMemo(()=>ut!=null?[Mt(ut,"help",Ot)]:[].concat((0,fe.Z)(ot.map((Tn,en)=>Mt(Tn,"error","error",en))),(0,fe.Z)(Qe.map((Tn,en)=>Mt(Tn,"warning","warning",en)))),[ut,Ot,ot,Qe]),Qt={};return $n&&(Qt.id=`${$n}_help`),be.createElement(Ye.default,{motionDeadline:ar.motionDeadline,motionName:`${Yn}-show-help`,visible:!!vt.length,onVisibleChanged:Cr},Tn=>{const{className:en,style:cn}=Tn;return be.createElement("div",Object.assign({},Qt,{className:Fe()(qn,en,Ht,rr),style:cn,role:"alert"}),be.createElement(Ye.CSSMotionList,Object.assign({keys:vt},(0,_e.Z)(Yn),{motionName:`${Yn}-show-help-item`,component:!1}),un=>{const{key:Dn,error:or,errorStatus:Kt,className:Yr,style:$r}=un;return be.createElement("div",{key:Dn,className:Fe()(Yr,{[`${qn}-${Kt}`]:Kt}),style:$r},or)}))})},At=ce(46660),xn=ce(53124),jt=ce(98866),vn=ce(97647),er=ce(98675),Sr=ce(17423);const qe=["parentNode"],Ae="form_item";function $t(Ke){return Ke===void 0||Ke===!1?[]:Array.isArray(Ke)?Ke:[Ke]}function Hn(Ke,ut){if(!Ke.length)return;const Ot=Ke.join("_");return ut?`${ut}_${Ot}`:qe.includes(Ot)?`${Ae}_${Ot}`:Ot}function bn(Ke,ut,Ot,Tt,zt,Ht){let $n=Tt;return Ht!==void 0?$n=Ht:Ot.validating?$n="validating":Ke.length?$n="error":ut.length?$n="warning":(Ot.touched||zt&&Ot.validated)&&($n="success"),$n}function at(Ke){return $t(Ke).join("_")}function ft(Ke){const[ut]=(0,At.useForm)(),Ot=be.useRef({}),Tt=be.useMemo(()=>Ke!=null?Ke:Object.assign(Object.assign({},ut),{__INTERNAL__:{itemRef:zt=>Ht=>{const $n=at(zt);Ht?Ot.current[$n]=Ht:delete Ot.current[$n]}},scrollToField:function(zt){let Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const $n=$t(zt),Cr=Hn($n,Tt.__INTERNAL__.name),Yn=Cr?document.getElementById(Cr):null;Yn&&(0,Sr.Z)(Yn,Object.assign({scrollMode:"if-needed",block:"nearest"},Ht))},getFieldInstance:zt=>{const Ht=at(zt);return Ot.current[Ht]}}),[Ke,ut]);return[Tt]}var Gt=ce(37920),zn=function(Ke,ut){var Ot={};for(var Tt in Ke)Object.prototype.hasOwnProperty.call(Ke,Tt)&&ut.indexOf(Tt)<0&&(Ot[Tt]=Ke[Tt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Tt=Object.getOwnPropertySymbols(Ke);zt{const Ot=be.useContext(jt.Z),{getPrefixCls:Tt,direction:zt,form:Ht}=be.useContext(xn.E_),{prefixCls:$n,className:Cr,rootClassName:Yn,size:qn,disabled:rr=Ot,form:ar,colon:ot,labelAlign:Qe,labelWrap:vt,labelCol:Qt,wrapperCol:Tn,hideRequiredMark:en,layout:cn="horizontal",scrollToFirstError:un,requiredMark:Dn,onFinishFailed:or,name:Kt,style:Yr,feedbackIcons:$r}=Ke,Ri=zn(Ke,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Li=(0,er.Z)(qn),pi=be.useContext(Gt.Z),Gi=(0,be.useMemo)(()=>Dn!==void 0?Dn:Ht&&Ht.requiredMark!==void 0?Ht.requiredMark:!en,[en,Dn,Ht]),yi=ot!=null?ot:Ht==null?void 0:Ht.colon,ii=Tt("form",$n),[Ni,Zi]=Ct(ii),Vr=Fe()(ii,`${ii}-${cn}`,{[`${ii}-hide-required-mark`]:Gi===!1,[`${ii}-rtl`]:zt==="rtl",[`${ii}-${Li}`]:Li},Zi,Ht==null?void 0:Ht.className,Cr,Yn),[mi]=ft(ar),{__INTERNAL__:Wi}=mi;Wi.name=Kt;const la=(0,be.useMemo)(()=>({name:Kt,labelAlign:Qe,labelCol:Qt,labelWrap:vt,wrapperCol:Tn,vertical:cn==="vertical",colon:yi,requiredMark:Gi,itemRef:Wi.itemRef,form:mi,feedbackIcons:$r}),[Kt,Qe,Qt,Tn,cn,yi,Gi,mi,$r]);be.useImperativeHandle(ut,()=>mi);const ea=(yt,ht)=>{if(yt){let Bt={block:"nearest"};typeof yt=="object"&&(Bt=yt),mi.scrollToField(ht,Bt)}},ti=yt=>{if(or==null||or(yt),yt.errorFields.length){const ht=yt.errorFields[0].name;if(un!==void 0){ea(un,ht);return}Ht&&Ht.scrollToFirstError!==void 0&&ea(Ht.scrollToFirstError,ht)}};return Ni(be.createElement(jt.n,{disabled:rr},be.createElement(vn.q,{size:Li},be.createElement(Le.RV,Object.assign({},{validateMessages:pi}),be.createElement(Le.q3.Provider,{value:la},be.createElement(At.default,Object.assign({id:Kt},Ri,{name:Kt,onFinishFailed:ti,form:mi,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Yr),className:Vr})))))))};var Ft=be.forwardRef(mn),Pn=ce(9475),_n=ce(17799),Ee=ce(96159),ue=ce(37419);function se(Ke){if(typeof Ke=="function")return Ke;const ut=(0,ue.Z)(Ke);return ut.length<=1?ut[0]:ut}const ye=()=>{const{status:Ke,errors:ut=[],warnings:Ot=[]}=(0,be.useContext)(Le.aM);return{status:Ke,errors:ut,warnings:Ot}};ye.Context=Le.aM;var ve=ye,le=ce(96523);function We(Ke){const[ut,Ot]=be.useState(Ke),Tt=(0,be.useRef)(null),zt=(0,be.useRef)([]),Ht=(0,be.useRef)(!1);be.useEffect(()=>(Ht.current=!1,()=>{Ht.current=!0,le.Z.cancel(Tt.current),Tt.current=null}),[]);function $n(Cr){Ht.current||(Tt.current===null&&(zt.current=[],Tt.current=(0,le.Z)(()=>{Tt.current=null,Ot(Yn=>{let qn=Yn;return zt.current.forEach(rr=>{qn=rr(qn)}),qn})})),zt.current.push(Cr))}return[ut,$n]}function Lt(){const{itemRef:Ke}=be.useContext(Le.q3),ut=be.useRef({});function Ot(Tt,zt){const Ht=zt&&typeof zt=="object"&&zt.ref,$n=Tt.join("_");return(ut.current.name!==$n||ut.current.originRef!==Ht)&&(ut.current.name=$n,ut.current.originRef=Ht,ut.current.ref=(0,_n.sQ)(Ke(Tt),Ht)),ut.current.ref}return Ot}var tn=ce(48130),hn=ce(14075),sn=ce(10366),yn=ce(92820),ln=ce(21584);const yr=Ke=>{const{formItemCls:ut}=Ke;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ut}-control`]:{display:"flex"}}}};var Fr=(0,Pt.b)(["Form","item-item"],(Ke,ut)=>{let{rootPrefixCls:Ot}=ut;const Tt=Xe(Ke,Ot);return[yr(Tt)]}),Rn=Ke=>{const{prefixCls:ut,status:Ot,wrapperCol:Tt,children:zt,errors:Ht,warnings:$n,_internalItemRender:Cr,extra:Yn,help:qn,fieldId:rr,marginBottom:ar,onErrorVisibleChanged:ot}=Ke,Qe=`${ut}-item`,vt=be.useContext(Le.q3),Qt=Tt||vt.wrapperCol||{},Tn=Fe()(`${Qe}-control`,Qt.className),en=be.useMemo(()=>Object.assign({},vt),[vt]);delete en.labelCol,delete en.wrapperCol;const cn=be.createElement("div",{className:`${Qe}-control-input`},be.createElement("div",{className:`${Qe}-control-input-content`},zt)),un=be.useMemo(()=>({prefixCls:ut,status:Ot}),[ut,Ot]),Dn=ar!==null||Ht.length||$n.length?be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},be.createElement(Le.Rk.Provider,{value:un},be.createElement(Rt,{fieldId:rr,errors:Ht,warnings:$n,help:qn,helpStatus:Ot,className:`${Qe}-explain-connected`,onVisibleChanged:ot})),!!ar&&be.createElement("div",{style:{width:0,height:ar}})):null,or={};rr&&(or.id=`${rr}_extra`);const Kt=Yn?be.createElement("div",Object.assign({},or,{className:`${Qe}-extra`}),Yn):null,Yr=Cr&&Cr.mark==="pro_table_render"&&Cr.render?Cr.render(Ke,{input:cn,errorList:Dn,extra:Kt}):be.createElement(be.Fragment,null,cn,Dn,Kt);return be.createElement(Le.q3.Provider,{value:en},be.createElement(ln.Z,Object.assign({},Qt,{className:Tn}),Yr),be.createElement(Fr,{prefixCls:ut}))},Gr=ce(17663),li=ce(24457),st=ce(10110),Wt=ce(83062),Vn=function(Ke,ut){var Ot={};for(var Tt in Ke)Object.prototype.hasOwnProperty.call(Ke,Tt)&&ut.indexOf(Tt)<0&&(Ot[Tt]=Ke[Tt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Tt=Object.getOwnPropertySymbols(Ke);zt{let{prefixCls:ut,label:Ot,htmlFor:Tt,labelCol:zt,labelAlign:Ht,colon:$n,required:Cr,requiredMark:Yn,tooltip:qn}=Ke;var rr;const[ar]=(0,st.Z)("Form"),{vertical:ot,labelAlign:Qe,labelCol:vt,labelWrap:Qt,colon:Tn}=be.useContext(Le.q3);if(!Ot)return null;const en=zt||vt||{},cn=Ht||Qe,un=`${ut}-item-label`,Dn=Fe()(un,cn==="left"&&`${un}-left`,en.className,{[`${un}-wrap`]:!!Qt});let or=Ot;const Kt=$n===!0||Tn!==!1&&$n!==!1;Kt&&!ot&&typeof Ot=="string"&&Ot.trim()!==""&&(or=Ot.replace(/[:|:]\s*$/,""));const $r=ir(qn);if($r){const{icon:Gi=be.createElement(Gr.Z,null)}=$r,yi=Vn($r,["icon"]),ii=be.createElement(Wt.Z,Object.assign({},yi),be.cloneElement(Gi,{className:`${ut}-item-tooltip`,title:""}));or=be.createElement(be.Fragment,null,or,ii)}const Ri=Yn==="optional",Li=typeof Yn=="function";Li?or=Yn(or,{required:!!Cr}):Ri&&!Cr&&(or=be.createElement(be.Fragment,null,or,be.createElement("span",{className:`${ut}-item-optional`,title:""},(ar==null?void 0:ar.optional)||((rr=li.Z.Form)===null||rr===void 0?void 0:rr.optional))));const pi=Fe()({[`${ut}-item-required`]:Cr,[`${ut}-item-required-mark-optional`]:Ri||Li,[`${ut}-item-no-colon`]:!Kt});return be.createElement(ln.Z,Object.assign({},en,{className:Dn}),be.createElement("label",{htmlFor:Tt,className:pi,title:typeof Ot=="string"?Ot:""},or))},Ur=ce(87725),Xr=ce(16646),qr=ce(87995),ui=ce(3407);const br={success:Ur.Z,warning:qr.Z,error:Xr.Z,validating:ui.Z};function Ei(Ke){let{children:ut,errors:Ot,warnings:Tt,hasFeedback:zt,validateStatus:Ht,prefixCls:$n,meta:Cr,noStyle:Yn}=Ke;const qn=`${$n}-item`,{feedbackIcons:rr}=be.useContext(Le.q3),ar=bn(Ot,Tt,Cr,null,!!zt,Ht),{isFormItemInput:ot,status:Qe}=be.useContext(Le.aM),vt=be.useMemo(()=>{var Qt;let Tn;if(zt){const un=zt!==!0&&zt.icons||rr,Dn=ar&&((Qt=un==null?void 0:un({status:ar,errors:Ot,warnings:Tt}))===null||Qt===void 0?void 0:Qt[ar]),or=ar&&br[ar];Tn=Dn!==!1&&or?be.createElement("span",{className:Fe()(`${qn}-feedback-icon`,`${qn}-feedback-icon-${ar}`)},Dn||be.createElement(or,null)):null}let en=!0,cn=ar||"";return Yn&&(en=ot,cn=(ar!=null?ar:Qe)||""),{status:cn,errors:Ot,warnings:Tt,hasFeedback:!!zt,feedbackIcon:Tn,isFormItemInput:en}},[ar,zt,Yn,ot,Qe]);return be.createElement(Le.aM.Provider,{value:vt},ut)}var sa=function(Ke,ut){var Ot={};for(var Tt in Ke)Object.prototype.hasOwnProperty.call(Ke,Tt)&&ut.indexOf(Tt)<0&&(Ot[Tt]=Ke[Tt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Tt=Object.getOwnPropertySymbols(Ke);zt{if($r&&Dn.current){const Zi=getComputedStyle(Dn.current);pi(parseInt(Zi.marginBottom,10))}},[$r,Ri]);const Gi=Zi=>{Zi||pi(null)},ii=function(){let Zi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Vr=Zi?or:qn.errors,mi=Zi?Kt:qn.warnings;return bn(Vr,mi,qn,"",!!rr,Yn)}(),Ni=Fe()(cn,Ot,Tt,{[`${cn}-with-help`]:Yr||or.length||Kt.length,[`${cn}-has-feedback`]:ii&&rr,[`${cn}-has-success`]:ii==="success",[`${cn}-has-warning`]:ii==="warning",[`${cn}-has-error`]:ii==="error",[`${cn}-is-validating`]:ii==="validating",[`${cn}-hidden`]:ar});return be.createElement("div",{className:Ni,style:zt,ref:Dn},be.createElement(yn.Z,Object.assign({className:`${cn}-row`},(0,sn.Z)(en,["_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"])),be.createElement(Pr,Object.assign({htmlFor:Qe},Ke,{requiredMark:un,required:vt!=null?vt:Qt,prefixCls:ut})),be.createElement(Rn,Object.assign({},Ke,qn,{errors:or,warnings:Kt,prefixCls:ut,status:ii,help:Ht,marginBottom:Li,onErrorVisibleChanged:Gi}),be.createElement(Le.qI.Provider,{value:Tn},be.createElement(Ei,{prefixCls:ut,meta:qn,errors:qn.errors,warnings:qn.warnings,hasFeedback:rr,validateStatus:ii},ot)))),!!Li&&be.createElement("div",{className:`${cn}-margin-offset`,style:{marginBottom:-Li}}))}const Qi="__SPLIT__",Ci=null,mt=be.memo(Ke=>{let{children:ut}=Ke;return ut},(Ke,ut)=>Ke.value===ut.value&&Ke.update===ut.update&&Ke.childProps.length===ut.childProps.length&&Ke.childProps.every((Ot,Tt)=>Ot===ut.childProps[Tt]));function Mn(Ke){return Ke!=null}function En(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function An(Ke){const{name:ut,noStyle:Ot,className:Tt,dependencies:zt,prefixCls:Ht,shouldUpdate:$n,rules:Cr,children:Yn,required:qn,label:rr,messageVariables:ar,trigger:ot="onChange",validateTrigger:Qe,hidden:vt,help:Qt}=Ke,{getPrefixCls:Tn}=be.useContext(xn.E_),{name:en}=be.useContext(Le.q3),cn=se(Yn),un=typeof cn=="function",Dn=be.useContext(Le.qI),{validateTrigger:or}=be.useContext(At.FieldContext),Kt=Qe!==void 0?Qe:or,Yr=Mn(ut),$r=Tn("form",Ht),[Ri,Li]=Ct($r),pi=be.useContext(At.ListContext),Gi=be.useRef(),[yi,ii]=We({}),[Ni,Zi]=(0,Pn.Z)(()=>En()),Vr=ht=>{const Bt=pi==null?void 0:pi.getKey(ht.name);if(Zi(ht.destroy?En():ht,!0),Ot&&Qt!==!1&&Dn){let an=ht.name;if(ht.destroy)an=Gi.current||an;else if(Bt!==void 0){const[kn,ur]=Bt;an=[kn].concat((0,fe.Z)(ur)),Gi.current=an}Dn(ht,an)}},mi=(ht,Bt)=>{ii(an=>{const kn=Object.assign({},an),Er=[].concat((0,fe.Z)(ht.name.slice(0,-1)),(0,fe.Z)(Bt)).join(Qi);return ht.destroy?delete kn[Er]:kn[Er]=ht,kn})},[Wi,la]=be.useMemo(()=>{const ht=(0,fe.Z)(Ni.errors),Bt=(0,fe.Z)(Ni.warnings);return Object.values(yi).forEach(an=>{ht.push.apply(ht,(0,fe.Z)(an.errors||[])),Bt.push.apply(Bt,(0,fe.Z)(an.warnings||[]))}),[ht,Bt]},[yi,Ni.errors,Ni.warnings]),ea=Lt();function ti(ht,Bt,an){return Ot&&!vt?be.createElement(Ei,{prefixCls:$r,hasFeedback:Ke.hasFeedback,validateStatus:Ke.validateStatus,meta:Ni,errors:Wi,warnings:la,noStyle:!0},ht):be.createElement(Ji,Object.assign({key:"row"},Ke,{className:Fe()(Tt,Li),prefixCls:$r,fieldId:Bt,isRequired:an,errors:Wi,warnings:la,meta:Ni,onSubItemMetaChange:mi}),ht)}if(!Yr&&!un&&!zt)return Ri(ti(cn));let yt={};return typeof rr=="string"?yt.label=rr:ut&&(yt.label=String(ut)),ar&&(yt=Object.assign(Object.assign({},yt),ar)),Ri(be.createElement(At.Field,Object.assign({},Ke,{messageVariables:yt,trigger:ot,validateTrigger:Kt,onMetaChange:Vr}),(ht,Bt,an)=>{const kn=$t(ut).length&&Bt?Bt.name:[],ur=Hn(kn,en),Er=qn!==void 0?qn:!!(Cr&&Cr.some(Nr=>{if(Nr&&typeof Nr=="object"&&Nr.required&&!Nr.warningOnly)return!0;if(typeof Nr=="function"){const ei=Nr(an);return ei&&ei.required&&!ei.warningOnly}return!1})),Br=Object.assign({},ht);let Hr=null;if(Array.isArray(cn)&&Yr)Hr=cn;else if(!(un&&(!($n||zt)||Yr))){if(!(zt&&!un&&!Yr))if((0,Ee.l$)(cn)){const Nr=Object.assign(Object.assign({},cn.props),Br);if(Nr.id||(Nr.id=ur),Qt||Wi.length>0||la.length>0||Ke.extra){const Mr=[];(Qt||Wi.length>0)&&Mr.push(`${ur}_help`),Ke.extra&&Mr.push(`${ur}_extra`),Nr["aria-describedby"]=Mr.join(" ")}Wi.length>0&&(Nr["aria-invalid"]="true"),Er&&(Nr["aria-required"]="true"),(0,_n.Yr)(cn)&&(Nr.ref=ea(kn,cn)),new Set([].concat((0,fe.Z)($t(ot)),(0,fe.Z)($t(Kt)))).forEach(Mr=>{Nr[Mr]=function(){for(var fi,Ai,Si,Ce,Ne,Be=arguments.length,He=new Array(Be),Ge=0;Ge{var{prefixCls:ut,children:Ot}=Ke,Tt=pr(Ke,["prefixCls","children"]);const{getPrefixCls:zt}=be.useContext(xn.E_),Ht=zt("form",ut),$n=be.useMemo(()=>({prefixCls:Ht,status:"error"}),[Ht]);return be.createElement(At.List,Object.assign({},Tt),(Cr,Yn,qn)=>be.createElement(Le.Rk.Provider,{value:$n},Ot(Cr.map(rr=>Object.assign(Object.assign({},rr),{fieldKey:rr.key})),Yn,{errors:qn.errors,warnings:qn.warnings})))};function it(){const{form:Ke}=(0,be.useContext)(Le.q3);return Ke}const _t=Ft;_t.Item=nr,_t.List=Ue,_t.ErrorList=Rt,_t.useForm=ft,_t.useFormInstance=it,_t.useWatch=At.useWatch,_t.Provider=Le.RV,_t.create=()=>{};var Ut=_t},31795:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Kn}});var fe=ce(42922),tt=ce(53978),Fe=ce(94184),Ye=ce.n(Fe),be=ce(87462),_e=ce(4942),Le=ce(71002),Se=ce(97685),pe=ce(45987),Te=ce(15671),gt=ce(43144);function ze(){return typeof BigInt=="function"}function Pt(Ue){return!Ue&&Ue!==0&&!Number.isNaN(Ue)||!String(Ue).trim()}function kt(Ue){var it=Ue.trim(),_t=it.startsWith("-");_t&&(it=it.slice(1)),it=it.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),it.startsWith(".")&&(it="0".concat(it));var Ut=it||"0",Ke=Ut.split("."),ut=Ke[0]||"0",Ot=Ke[1]||"0";ut==="0"&&Ot==="0"&&(_t=!1);var Tt=_t?"-":"";return{negative:_t,negativeStr:Tt,trimStr:Ut,integerStr:ut,decimalStr:Ot,fullStr:"".concat(Tt).concat(Ut)}}function pt(Ue){var it=String(Ue);return!Number.isNaN(Number(it))&&it.includes("e")}function Je(Ue){var it=String(Ue);if(pt(Ue)){var _t=Number(it.slice(it.indexOf("e-")+2)),Ut=it.match(/\.(\d+)/);return Ut!=null&&Ut[1]&&(_t+=Ut[1].length),_t}return it.includes(".")&&Dt(it)?it.length-it.indexOf(".")-1:0}function De(Ue){var it=String(Ue);if(pt(Ue)){if(Ue>Number.MAX_SAFE_INTEGER)return String(ze()?BigInt(Ue).toString():Number.MAX_SAFE_INTEGER);if(Ue0&&arguments[0]!==void 0?arguments[0]:!0;return _t?this.isInvalidate()?"":kt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ue}(),nt=function(){function Ue(it){if((0,Te.Z)(this,Ue),(0,_e.Z)(this,"origin",""),(0,_e.Z)(this,"number",void 0),(0,_e.Z)(this,"empty",void 0),Pt(it)){this.empty=!0;return}this.origin=String(it),this.number=Number(it)}return(0,gt.Z)(Ue,[{key:"negate",value:function(){return new Ue(-this.toNumber())}},{key:"add",value:function(_t){if(this.isInvalidate())return new Ue(_t);var Ut=Number(_t);if(Number.isNaN(Ut))return this;var Ke=this.number+Ut;if(Ke>Number.MAX_SAFE_INTEGER)return new Ue(Number.MAX_SAFE_INTEGER);if(KeNumber.MAX_SAFE_INTEGER)return new Ue(Number.MAX_SAFE_INTEGER);if(Ke0&&arguments[0]!==void 0?arguments[0]:!0;return _t?this.isInvalidate()?"":De(this.number):this.origin}}]),Ue}();function ct(Ue){return ze()?new Yt(Ue):new nt(Ue)}function Ie(Ue,it,_t){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ue==="")return"";var Ke=kt(Ue),ut=Ke.negativeStr,Ot=Ke.integerStr,Tt=Ke.decimalStr,zt="".concat(it).concat(Tt),Ht="".concat(ut).concat(Ot);if(_t>=0){var $n=Number(Tt[_t]);if($n>=5&&!Ut){var Cr=ct(Ue).add("".concat(ut,"0.").concat("0".repeat(_t)).concat(10-$n));return Ie(Cr.toString(),it,_t,Ut)}return _t===0?Ht:"".concat(Ht).concat(it).concat(Tt.padEnd(_t,"0").slice(0,_t))}return zt===".0"?Ht:"".concat(Ht).concat(zt)}var Me=ct,Ve=ce(67656),Xe=ce(67294);function Ct(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var wt=Ct()?Xe.useLayoutEffect:Xe.useEffect,Mt=function(it,_t){var Ut=Xe.useRef(!0);wt(function(){return it(Ut.current)},_t),wt(function(){return Ut.current=!1,function(){Ut.current=!0}},[])},je=function(it,_t){Mt(function(Ut){if(!Ut)return it()},_t)},Rt=Mt,At=ce(27183);function xn(Ue,it,_t){var Ut=React.useRef({});return(!("value"in Ut.current)||_t(Ut.current.condition,it))&&(Ut.current.value=Ue(),Ut.current.condition=it),Ut.current.value}function jt(Ue,it){typeof Ue=="function"?Ue(it):(0,Le.Z)(Ue)==="object"&&Ue&&"current"in Ue&&(Ue.current=it)}function vn(){for(var Ue=arguments.length,it=new Array(Ue),_t=0;_t1&&arguments[1]!==void 0?arguments[1]:1;ye+=1;var Ut=ye;function Ke(ut){if(ut===0)le(Ut),it();else{var Ot=ue(function(){Ke(ut-1)});ve.set(Ut,Ot)}}return Ke(_t),Ut};We.cancel=function(Ue){var it=ve.get(Ue);return le(it),se(it)};var Lt=We,tn=200,hn=600;function sn(Ue){var it=Ue.prefixCls,_t=Ue.upNode,Ut=Ue.downNode,Ke=Ue.upDisabled,ut=Ue.downDisabled,Ot=Ue.onStep,Tt=Xe.useRef(),zt=Xe.useRef([]),Ht=Xe.useRef();Ht.current=Ot;var $n=function(){clearTimeout(Tt.current)},Cr=function(Qt,Tn){Qt.preventDefault(),$n(),Ht.current(Tn);function en(){Ht.current(Tn),Tt.current=setTimeout(en,tn)}Tt.current=setTimeout(en,hn)};Xe.useEffect(function(){return function(){$n(),zt.current.forEach(function(vt){return Lt.cancel(vt)})}},[]);var Yn=Ee();if(Yn)return null;var qn="".concat(it,"-handler"),rr=Ye()(qn,"".concat(qn,"-up"),(0,_e.Z)({},"".concat(qn,"-up-disabled"),Ke)),ar=Ye()(qn,"".concat(qn,"-down"),(0,_e.Z)({},"".concat(qn,"-down-disabled"),ut)),ot=function(){return zt.current.push(Lt($n))},Qe={unselectable:"on",role:"button",onMouseUp:ot,onMouseLeave:ot};return Xe.createElement("div",{className:"".concat(qn,"-wrap")},Xe.createElement("span",(0,be.Z)({},Qe,{onMouseDown:function(Qt){Cr(Qt,!0)},"aria-label":"Increase Value","aria-disabled":Ke,className:rr}),_t||Xe.createElement("span",{unselectable:"on",className:"".concat(it,"-handler-up-inner")})),Xe.createElement("span",(0,be.Z)({},Qe,{onMouseDown:function(Qt){Cr(Qt,!1)},"aria-label":"Decrease Value","aria-disabled":ut,className:ar}),Ut||Xe.createElement("span",{unselectable:"on",className:"".concat(it,"-handler-down-inner")})))}function yn(Ue){var it=typeof Ue=="number"?De(Ue):kt(Ue).fullStr,_t=it.includes(".");return _t?kt(it.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ue+"0"}var ln=ce(87887),yr=function(){var Ue=(0,Xe.useRef)(0),it=function(){Lt.cancel(Ue.current)};return(0,Xe.useEffect)(function(){return it},[]),function(_t){it(),Ue.current=Lt(function(){_t()})}},Fr=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Nt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Rn=function(it,_t){return it||_t.isEmpty()?_t.toString():_t.toNumber()},Gr=function(it){var _t=Me(it);return _t.isInvalidate()?null:_t},li=Xe.forwardRef(function(Ue,it){var _t,Ut=Ue.prefixCls,Ke=Ut===void 0?"rc-input-number":Ut,ut=Ue.className,Ot=Ue.style,Tt=Ue.min,zt=Ue.max,Ht=Ue.step,$n=Ht===void 0?1:Ht,Cr=Ue.defaultValue,Yn=Ue.value,qn=Ue.disabled,rr=Ue.readOnly,ar=Ue.upHandler,ot=Ue.downHandler,Qe=Ue.keyboard,vt=Ue.controls,Qt=vt===void 0?!0:vt,Tn=Ue.classNames,en=Ue.stringMode,cn=Ue.parser,un=Ue.formatter,Dn=Ue.precision,or=Ue.decimalSeparator,Kt=Ue.onChange,Yr=Ue.onInput,$r=Ue.onPressEnter,Ri=Ue.onStep,Li=(0,pe.Z)(Ue,Fr),pi="".concat(Ke,"-input"),Gi=Xe.useRef(null),yi=Xe.useState(!1),ii=(0,Se.Z)(yi,2),Ni=ii[0],Zi=ii[1],Vr=Xe.useRef(!1),mi=Xe.useRef(!1),Wi=Xe.useRef(!1),la=Xe.useState(function(){return Me(Yn!=null?Yn:Cr)}),ea=(0,Se.Z)(la,2),ti=ea[0],yt=ea[1];function ht(jn){Yn===void 0&&yt(jn)}var Bt=Xe.useCallback(function(jn,Zn){if(!Zn)return Dn>=0?Dn:Math.max(Je(jn),Je($n))},[Dn,$n]),an=Xe.useCallback(function(jn){var Zn=String(jn);if(cn)return cn(Zn);var Jn=Zn;return or&&(Jn=Jn.replace(or,".")),Jn.replace(/[^\w.-]+/g,"")},[cn,or]),kn=Xe.useRef(""),ur=Xe.useCallback(function(jn,Zn){if(un)return un(jn,{userTyping:Zn,input:String(kn.current)});var Jn=typeof jn=="number"?De(jn):jn;if(!Zn){var Qn=Bt(Jn,Zn);if(Dt(Jn)&&(or||Qn>=0)){var hr=or||".";Jn=Ie(Jn,hr,Qn)}}return Jn},[un,Bt,or]),Er=Xe.useState(function(){var jn=Cr!=null?Cr:Yn;return ti.isInvalidate()&&["string","number"].includes((0,Le.Z)(jn))?Number.isNaN(jn)?"":jn:ur(ti.toString(),!1)}),Br=(0,Se.Z)(Er,2),Hr=Br[0],Nr=Br[1];kn.current=Hr;function ei(jn,Zn){Nr(ur(jn.isInvalidate()?jn.toString(!1):jn.toString(!Zn),Zn))}var gi=Xe.useMemo(function(){return Gr(zt)},[zt,Dn]),Mr=Xe.useMemo(function(){return Gr(Tt)},[Tt,Dn]),fi=Xe.useMemo(function(){return!gi||!ti||ti.isInvalidate()?!1:gi.lessEquals(ti)},[gi,ti]),Ai=Xe.useMemo(function(){return!Mr||!ti||ti.isInvalidate()?!1:ti.lessEquals(Mr)},[Mr,ti]),Si=Ft(Gi.current,Ni),Ce=(0,Se.Z)(Si,2),Ne=Ce[0],Be=Ce[1],He=function(Zn){return gi&&!Zn.lessEquals(gi)?gi:Mr&&!Mr.lessEquals(Zn)?Mr:null},Ge=function(Zn){return!He(Zn)},et=function(Zn,Jn){var Qn=Zn,hr=Ge(Qn)||Qn.isEmpty();if(!Qn.isEmpty()&&!Jn&&(Qn=He(Qn)||Qn,hr=!0),!rr&&!qn&&hr){var Pe=Qn.toString(),$e=Bt(Pe,Jn);return $e>=0&&(Qn=Me(Ie(Pe,".",$e)),Ge(Qn)||(Qn=Me(Ie(Pe,".",$e,!0)))),Qn.equals(ti)||(ht(Qn),Kt==null||Kt(Qn.isEmpty()?null:Rn(en,Qn)),Yn===void 0&&ei(Qn,Jn)),Qn}return ti},bt=yr(),Zt=function jn(Zn){if(Ne(),kn.current=Zn,Nr(Zn),!mi.current){var Jn=an(Zn),Qn=Me(Jn);Qn.isNaN()||et(Qn,!0)}Yr==null||Yr(Zn),bt(function(){var hr=Zn;cn||(hr=Zn.replace(/。/g,".")),hr!==Zn&&jn(hr)})},Jt=function(){mi.current=!0},Gn=function(){mi.current=!1,Zt(Gi.current.value)},fr=function(Zn){Zt(Zn.target.value)},Wn=function(Zn){var Jn;if(!(Zn&&fi||!Zn&&Ai)){Vr.current=!1;var Qn=Me(Wi.current?yn($n):$n);Zn||(Qn=Qn.negate());var hr=(ti||Me(0)).add(Qn.toString()),Pe=et(hr,!1);Ri==null||Ri(Rn(en,Pe),{offset:Wi.current?yn($n):$n,type:Zn?"up":"down"}),(Jn=Gi.current)===null||Jn===void 0||Jn.focus()}},pn=function(Zn){var Jn=Me(an(Hr)),Qn=Jn;Jn.isNaN()?Qn=et(ti,Zn):Qn=et(Jn,Zn),Yn!==void 0?ei(ti,!1):Qn.isNaN()||ei(Qn,!1)},dn=function(){Vr.current=!0},Cn=function(Zn){var Jn=Zn.key,Qn=Zn.shiftKey;Vr.current=!0,Wi.current=Qn,Jn==="Enter"&&(mi.current||(Vr.current=!1),pn(!1),$r==null||$r(Zn)),Qe!==!1&&!mi.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Jn)&&(Wn(Jn==="Up"||Jn==="ArrowUp"),Zn.preventDefault())},In=function(){Vr.current=!1,Wi.current=!1},cr=function(){pn(!1),Zi(!1),Vr.current=!1};return je(function(){ti.isInvalidate()||ei(ti,!1)},[Dn]),je(function(){var jn=Me(Yn);yt(jn);var Zn=Me(an(Hr));(!jn.equals(Zn)||!Vr.current||un)&&ei(jn,Vr.current)},[Yn]),je(function(){un&&Be()},[Hr]),Xe.createElement("div",{className:Ye()(Ke,Tn==null?void 0:Tn.input,ut,(_t={},(0,_e.Z)(_t,"".concat(Ke,"-focused"),Ni),(0,_e.Z)(_t,"".concat(Ke,"-disabled"),qn),(0,_e.Z)(_t,"".concat(Ke,"-readonly"),rr),(0,_e.Z)(_t,"".concat(Ke,"-not-a-number"),ti.isNaN()),(0,_e.Z)(_t,"".concat(Ke,"-out-of-range"),!ti.isInvalidate()&&!Ge(ti)),_t)),style:Ot,onFocus:function(){Zi(!0)},onBlur:cr,onKeyDown:Cn,onKeyUp:In,onCompositionStart:Jt,onCompositionEnd:Gn,onBeforeInput:dn},Qt&&Xe.createElement(sn,{prefixCls:Ke,upNode:ar,downNode:ot,upDisabled:fi,downDisabled:Ai,onStep:Wn}),Xe.createElement("div",{className:"".concat(pi,"-wrap")},Xe.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Tt,"aria-valuemax":zt,"aria-valuenow":ti.isInvalidate()?null:ti.toString(),step:$n},Li,{ref:vn(Gi,it),className:pi,value:Hr,onChange:fr,disabled:qn,readOnly:rr}))))}),st=Xe.forwardRef(function(Ue,it){var _t=Ue.disabled,Ut=Ue.style,Ke=Ue.prefixCls,ut=Ue.value,Ot=Ue.prefix,Tt=Ue.suffix,zt=Ue.addonBefore,Ht=Ue.addonAfter,$n=Ue.classes,Cr=Ue.className,Yn=Ue.classNames,qn=(0,pe.Z)(Ue,Nt),rr=Xe.useRef(null),ar=function(Qe){rr.current&&(0,ln.nH)(rr.current,Qe)};return Xe.createElement(Ve.BaseInput,{inputElement:Xe.createElement(li,(0,be.Z)({prefixCls:Ke,disabled:_t,classNames:Yn,ref:vn(rr,it)},qn)),className:Cr,triggerFocus:ar,prefixCls:Ke,value:ut,disabled:_t,style:Ut,prefix:Ot,suffix:Tt,addonAfter:Ht,addonBefore:zt,classes:$n,classNames:Yn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});st.displayName="InputNumber";var Wt=st,Vn=Wt,ir=ce(9708),gr=ce(53124),Pr=ce(46735),Ur=ce(98866),Xr=ce(98675),qr=ce(65223),ui=ce(4173),br=ce(47673),Ei=ce(14747),sa=ce(80110),Ji=ce(67968),Qi=ce(45503);const Ci=(Ue,it)=>{let{componentCls:_t,borderRadiusSM:Ut,borderRadiusLG:Ke}=Ue;const ut=it==="lg"?Ke:Ut;return{[`&-${it}`]:{[`${_t}-handler-wrap`]:{borderStartEndRadius:ut,borderEndEndRadius:ut},[`${_t}-handler-up`]:{borderStartEndRadius:ut},[`${_t}-handler-down`]:{borderEndEndRadius:ut}}}},mt=Ue=>{const{componentCls:it,lineWidth:_t,lineType:Ut,colorBorder:Ke,borderRadius:ut,fontSizeLG:Ot,controlHeightLG:Tt,controlHeightSM:zt,colorError:Ht,paddingInlineSM:$n,colorTextDescription:Cr,motionDurationMid:Yn,handleHoverColor:qn,paddingInline:rr,paddingBlock:ar,handleBg:ot,handleActiveBg:Qe,colorTextDisabled:vt,borderRadiusSM:Qt,borderRadiusLG:Tn,controlWidth:en,handleVisible:cn,handleBorderColor:un}=Ue;return[{[it]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ei.Wf)(Ue)),(0,br.ik)(Ue)),(0,br.bi)(Ue,it)),{display:"inline-block",width:en,margin:0,padding:0,border:`${_t}px ${Ut} ${Ke}`,borderRadius:ut,"&-rtl":{direction:"rtl",[`${it}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Ot,borderRadius:Tn,[`input${it}-input`]:{height:Tt-2*_t}},"&-sm":{padding:0,borderRadius:Qt,[`input${it}-input`]:{height:zt-2*_t,padding:`0 ${$n}px`}},"&:hover":Object.assign({},(0,br.pU)(Ue)),"&-focused":Object.assign({},(0,br.M1)(Ue)),"&-out-of-range":{[`${it}-input-wrap`]:{input:{color:Ht}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ei.Wf)(Ue)),(0,br.s7)(Ue)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${it}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${it}-group-addon`]:{borderRadius:Tn,fontSize:Ue.fontSizeLG}},"&-sm":{[`${it}-group-addon`]:{borderRadius:Qt}},[`${it}-wrapper-disabled > ${it}-group-addon`]:Object.assign({},(0,br.Xy)(Ue))}}),[`&-disabled ${it}-input`]:{cursor:"not-allowed"},[it]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ei.Wf)(Ue)),{width:"100%",padding:`${ar}px ${rr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ut,outline:0,transition:`all ${Yn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,br.nz)(Ue.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[it]:Object.assign(Object.assign(Object.assign({[`&:hover ${it}-handler-wrap, &-focused ${it}-handler-wrap`]:{opacity:1},[`${it}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ue.handleWidth,height:"100%",background:ot,borderStartStartRadius:0,borderStartEndRadius:ut,borderEndEndRadius:ut,borderEndStartRadius:0,opacity:cn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Yn} linear ${Yn}`,[`${it}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${it}-handler-up-inner, ${it}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Ue.handleFontSize}}},[`${it}-handler`]:{height:"50%",overflow:"hidden",color:Cr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${_t}px ${Ut} ${un}`,transition:`all ${Yn} linear`,"&:active":{background:Qe},"&:hover":{height:"60%",[` ${it}-handler-up-inner, ${it}-handler-down-inner `]:{color:qn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ei.Ro)()),{color:Cr,transition:`all ${Yn} linear`,userSelect:"none"})},[`${it}-handler-up`]:{borderStartEndRadius:ut},[`${it}-handler-down`]:{borderBlockStart:`${_t}px ${Ut} ${un}`,borderEndEndRadius:ut}},Ci(Ue,"lg")),Ci(Ue,"sm")),{"&-disabled, &-readonly":{[`${it}-handler-wrap`]:{display:"none"},[`${it}-input`]:{color:"inherit"}},[` ${it}-handler-up-disabled, ${it}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${it}-handler-up-disabled:hover &-handler-up-inner, ${it}-handler-down-disabled:hover &-handler-down-inner `]:{color:vt}})},{[`${it}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${it}-handler-down`]:{borderBlockStartWidth:0}}}]},Mn=Ue=>{const{componentCls:it,paddingBlock:_t,paddingInline:Ut,inputAffixPadding:Ke,controlWidth:ut,borderRadiusLG:Ot,borderRadiusSM:Tt}=Ue;return{[`${it}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,br.ik)(Ue)),(0,br.bi)(Ue,`${it}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:ut,padding:0,paddingInlineStart:Ut,"&-lg":{borderRadius:Ot},"&-sm":{borderRadius:Tt},[`&:not(${it}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,br.pU)(Ue)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${it}-disabled`]:{background:"transparent"},[`> div${it}`]:{width:"100%",border:"none",outline:"none",[`&${it}-focused`]:{boxShadow:"none !important"}},[`input${it}-input`]:{padding:`${_t}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${it}-handler-wrap`]:{zIndex:2},[it]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ke},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ut,marginInlineStart:Ke}}})}};var En=(0,Ji.Z)("InputNumber",Ue=>{const it=(0,Qi.TS)(Ue,(0,br.e5)(Ue));return[mt(it),Mn(it),(0,sa.c)(it)]},Ue=>Object.assign(Object.assign({},(0,br.TM)(Ue)),{controlWidth:90,handleWidth:Ue.controlHeightSM-Ue.lineWidth*2,handleFontSize:Ue.fontSize/2,handleVisible:"auto",handleActiveBg:Ue.colorFillAlter,handleBg:Ue.colorBgContainer,handleHoverColor:Ue.colorPrimary,handleBorderColor:Ue.colorBorder})),An=function(Ue,it){var _t={};for(var Ut in Ue)Object.prototype.hasOwnProperty.call(Ue,Ut)&&it.indexOf(Ut)<0&&(_t[Ut]=Ue[Ut]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ut=Object.getOwnPropertySymbols(Ue);Ke{const{getPrefixCls:_t,direction:Ut}=Xe.useContext(gr.E_),Ke=Xe.useRef(null);Xe.useImperativeHandle(it,()=>Ke.current);const{className:ut,rootClassName:Ot,size:Tt,disabled:zt,prefixCls:Ht,addonBefore:$n,addonAfter:Cr,prefix:Yn,bordered:qn=!0,readOnly:rr,status:ar,controls:ot}=Ue,Qe=An(Ue,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),vt=_t("input-number",Ht),[Qt,Tn]=En(vt),{compactSize:en,compactItemClassnames:cn}=(0,ui.ri)(vt,Ut);let un=Xe.createElement(tt.Z,{className:`${vt}-handler-up-inner`}),Dn=Xe.createElement(fe.Z,{className:`${vt}-handler-down-inner`});const or=typeof ot=="boolean"?ot:void 0;typeof ot=="object"&&(un=typeof ot.upIcon=="undefined"?un:Xe.createElement("span",{className:`${vt}-handler-up-inner`},ot.upIcon),Dn=typeof ot.downIcon=="undefined"?Dn:Xe.createElement("span",{className:`${vt}-handler-down-inner`},ot.downIcon));const{hasFeedback:Kt,status:Yr,isFormItemInput:$r,feedbackIcon:Ri}=Xe.useContext(qr.aM),Li=(0,ir.F)(Yr,ar),pi=(0,Xr.Z)(Vr=>{var mi;return(mi=Tt!=null?Tt:en)!==null&&mi!==void 0?mi:Vr}),Gi=Xe.useContext(Ur.Z),yi=zt!=null?zt:Gi,ii=Ye()({[`${vt}-lg`]:pi==="large",[`${vt}-sm`]:pi==="small",[`${vt}-rtl`]:Ut==="rtl",[`${vt}-borderless`]:!qn,[`${vt}-in-form-item`]:$r},(0,ir.Z)(vt,Li),cn,Tn),Ni=`${vt}-group`,Zi=Xe.createElement(Vn,Object.assign({ref:Ke,disabled:yi,className:Ye()(ut,Ot),upHandler:un,downHandler:Dn,prefixCls:vt,readOnly:rr,controls:or,prefix:Yn,suffix:Kt&&Ri,addonAfter:Cr&&Xe.createElement(ui.BR,null,Xe.createElement(qr.Ux,{override:!0,status:!0},Cr)),addonBefore:$n&&Xe.createElement(ui.BR,null,Xe.createElement(qr.Ux,{override:!0,status:!0},$n)),classNames:{input:ii},classes:{affixWrapper:Ye()((0,ir.Z)(`${vt}-affix-wrapper`,Li,Kt),{[`${vt}-affix-wrapper-sm`]:pi==="small",[`${vt}-affix-wrapper-lg`]:pi==="large",[`${vt}-affix-wrapper-rtl`]:Ut==="rtl",[`${vt}-affix-wrapper-borderless`]:!qn},Tn),wrapper:Ye()({[`${Ni}-rtl`]:Ut==="rtl",[`${vt}-wrapper-disabled`]:yi},Tn),group:Ye()({[`${vt}-group-wrapper-sm`]:pi==="small",[`${vt}-group-wrapper-lg`]:pi==="large",[`${vt}-group-wrapper-rtl`]:Ut==="rtl"},(0,ir.Z)(`${vt}-group-wrapper`,Li,Kt),Tn)}},Qe));return Qt(Zi)}),nr=sr,pr=Ue=>Xe.createElement(Pr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Xe.createElement(sr,Object.assign({},Ue)));nr._InternalPanelDoNotUseOrYouWillBeFired=pr;var Kn=nr},82586:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Yt},n:function(){return De}});var fe=ce(16646),tt=ce(94184),Fe=ce.n(tt),Ye=ce(67656),be=ce(17799),_e=ce(67294),Le=ce(9708),Se=ce(53124),pe=ce(98866),Te=ce(98675),gt=ce(65223),ze=ce(4173),Pt=ce(72922),kt=ce(47673);function pt(nt){return!!(nt.prefix||nt.suffix||nt.allowClear)}var Je=function(nt,ct){var Ie={};for(var Me in nt)Object.prototype.hasOwnProperty.call(nt,Me)&&ct.indexOf(Me)<0&&(Ie[Me]=nt[Me]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Me=Object.getOwnPropertySymbols(nt);Ve{var Ie;const{prefixCls:Me,bordered:Ve=!0,status:Xe,size:Ct,disabled:wt,onBlur:Mt,onFocus:je,suffix:Rt,allowClear:At,addonAfter:xn,addonBefore:jt,className:vn,style:er,styles:Sr,rootClassName:qe,onChange:Ae,classNames:$t}=nt,Hn=Je(nt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:bn,direction:at,input:ft}=_e.useContext(Se.E_),Gt=bn("input",Me),zn=(0,_e.useRef)(null),[mn,nn]=(0,kt.ZP)(Gt),{compactSize:Ft,compactItemClassnames:Pn}=(0,ze.ri)(Gt,at),_n=(0,Te.Z)(Fr=>{var Nt;return(Nt=Ct!=null?Ct:Ft)!==null&&Nt!==void 0?Nt:Fr}),Ee=_e.useContext(pe.Z),ue=wt!=null?wt:Ee,{status:se,hasFeedback:ye,feedbackIcon:ve}=(0,_e.useContext)(gt.aM),le=(0,Le.F)(se,Xe),We=pt(nt)||!!ye,Lt=(0,_e.useRef)(We);(0,_e.useEffect)(()=>{var Fr;We&&Lt.current,Lt.current=We},[We]);const tn=(0,Pt.Z)(zn,!0),hn=Fr=>{tn(),Mt==null||Mt(Fr)},sn=Fr=>{tn(),je==null||je(Fr)},yn=Fr=>{tn(),Ae==null||Ae(Fr)},ln=(ye||Rt)&&_e.createElement(_e.Fragment,null,Rt,ye&&ve);let yr;return typeof At=="object"&&(At!=null&&At.clearIcon)?yr=At:At&&(yr={clearIcon:_e.createElement(fe.Z,null)}),mn(_e.createElement(Ye.default,Object.assign({ref:(0,be.sQ)(ct,zn),prefixCls:Gt,autoComplete:ft==null?void 0:ft.autoComplete},Hn,{disabled:ue,onBlur:hn,onFocus:sn,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),er),styles:Object.assign(Object.assign({},ft==null?void 0:ft.styles),Sr),suffix:ln,allowClear:yr,className:Fe()(vn,qe,Pn,ft==null?void 0:ft.className),onChange:yn,addonAfter:xn&&_e.createElement(ze.BR,null,_e.createElement(gt.Ux,{override:!0,status:!0},xn)),addonBefore:jt&&_e.createElement(ze.BR,null,_e.createElement(gt.Ux,{override:!0,status:!0},jt)),classNames:Object.assign(Object.assign(Object.assign({},$t),ft==null?void 0:ft.classNames),{input:Fe()({[`${Gt}-sm`]:_n==="small",[`${Gt}-lg`]:_n==="large",[`${Gt}-rtl`]:at==="rtl",[`${Gt}-borderless`]:!Ve},!We&&(0,Le.Z)(Gt,le),$t==null?void 0:$t.input,(Ie=ft==null?void 0:ft.classNames)===null||Ie===void 0?void 0:Ie.input,nn)}),classes:{affixWrapper:Fe()({[`${Gt}-affix-wrapper-sm`]:_n==="small",[`${Gt}-affix-wrapper-lg`]:_n==="large",[`${Gt}-affix-wrapper-rtl`]:at==="rtl",[`${Gt}-affix-wrapper-borderless`]:!Ve},(0,Le.Z)(`${Gt}-affix-wrapper`,le,ye),nn),wrapper:Fe()({[`${Gt}-group-rtl`]:at==="rtl"},nn),group:Fe()({[`${Gt}-group-wrapper-sm`]:_n==="small",[`${Gt}-group-wrapper-lg`]:_n==="large",[`${Gt}-group-wrapper-rtl`]:at==="rtl",[`${Gt}-group-wrapper-disabled`]:ue},(0,Le.Z)(`${Gt}-group-wrapper`,le,ye),nn)}})))})},96330:function(Ln,qt,ce){"use strict";var fe=ce(16646),tt=ce(94184),Fe=ce.n(tt),Ye=ce(64701),be=ce(67294),_e=ce(9708),Le=ce(53124),Se=ce(98866),pe=ce(98675),Te=ce(65223),gt=ce(82586),ze=ce(47673),Pt=function(pt,Je){var De={};for(var Dt in pt)Object.prototype.hasOwnProperty.call(pt,Dt)&&Je.indexOf(Dt)<0&&(De[Dt]=pt[Dt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Dt=Object.getOwnPropertySymbols(pt);Yt{const{prefixCls:De,bordered:Dt=!0,size:Yt,disabled:nt,status:ct,allowClear:Ie,showCount:Me,classNames:Ve,rootClassName:Xe,className:Ct}=pt,wt=Pt(pt,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Mt,direction:je}=be.useContext(Le.E_),Rt=(0,pe.Z)(Yt),At=be.useContext(Se.Z),xn=nt!=null?nt:At,{status:jt,hasFeedback:vn,feedbackIcon:er}=be.useContext(Te.aM),Sr=(0,_e.F)(jt,ct),qe=be.useRef(null);be.useImperativeHandle(Je,()=>{var at;return{resizableTextArea:(at=qe.current)===null||at===void 0?void 0:at.resizableTextArea,focus:ft=>{var Gt,zn;(0,gt.n)((zn=(Gt=qe.current)===null||Gt===void 0?void 0:Gt.resizableTextArea)===null||zn===void 0?void 0:zn.textArea,ft)},blur:()=>{var ft;return(ft=qe.current)===null||ft===void 0?void 0:ft.blur()}}});const Ae=Mt("input",De);let $t;typeof Ie=="object"&&(Ie!=null&&Ie.clearIcon)?$t=Ie:Ie&&($t={clearIcon:be.createElement(fe.Z,null)});const[Hn,bn]=(0,ze.ZP)(Ae);return Hn(be.createElement(Ye.default,Object.assign({},wt,{disabled:xn,allowClear:$t,className:Fe()(Ct,Xe),classes:{affixWrapper:Fe()(`${Ae}-textarea-affix-wrapper`,{[`${Ae}-affix-wrapper-rtl`]:je==="rtl",[`${Ae}-affix-wrapper-borderless`]:!Dt,[`${Ae}-affix-wrapper-sm`]:Rt==="small",[`${Ae}-affix-wrapper-lg`]:Rt==="large",[`${Ae}-textarea-show-count`]:Me},(0,_e.Z)(`${Ae}-affix-wrapper`,Sr),bn)},classNames:Object.assign(Object.assign({},Ve),{textarea:Fe()({[`${Ae}-borderless`]:!Dt,[`${Ae}-sm`]:Rt==="small",[`${Ae}-lg`]:Rt==="large"},(0,_e.Z)(Ae,Sr),bn,Ve==null?void 0:Ve.textarea)}),prefixCls:Ae,suffix:vn&&be.createElement("span",{className:`${Ae}-textarea-suffix`},er),showCount:Me,ref:qe})))});qt.Z=kt},72922:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return tt}});var fe=ce(67294);function tt(Fe,Ye){const be=(0,fe.useRef)([]),_e=()=>{be.current.push(setTimeout(()=>{var Le,Se,pe,Te;!((Le=Fe.current)===null||Le===void 0)&&Le.input&&((Se=Fe.current)===null||Se===void 0?void 0:Se.input.getAttribute("type"))==="password"&&(!((pe=Fe.current)===null||pe===void 0)&&pe.input.hasAttribute("value"))&&((Te=Fe.current)===null||Te===void 0||Te.input.removeAttribute("value"))}))};return(0,fe.useEffect)(()=>(Ye&&_e(),()=>be.current.forEach(Le=>{Le&&clearTimeout(Le)})),[]),_e}},69677:function(Ln,qt,ce){"use strict";ce.d(qt,{default:function(){return Rt}});var fe=ce(94184),tt=ce.n(fe),Fe=ce(67294),Ye=ce(53124),be=ce(65223),_e=ce(47673),Se=At=>{const{getPrefixCls:xn,direction:jt}=(0,Fe.useContext)(Ye.E_),{prefixCls:vn,className:er}=At,Sr=xn("input-group",vn),qe=xn("input"),[Ae,$t]=(0,_e.ZP)(qe),Hn=tt()(Sr,{[`${Sr}-lg`]:At.size==="large",[`${Sr}-sm`]:At.size==="small",[`${Sr}-compact`]:At.compact,[`${Sr}-rtl`]:jt==="rtl"},$t,er),bn=(0,Fe.useContext)(be.aM),at=(0,Fe.useMemo)(()=>Object.assign(Object.assign({},bn),{isFormItemInput:!1}),[bn]);return Ae(Fe.createElement("span",{className:Hn,style:At.style,onMouseEnter:At.onMouseEnter,onMouseLeave:At.onMouseLeave,onFocus:At.onFocus,onBlur:At.onBlur},Fe.createElement(be.aM.Provider,{value:at},At.children)))},pe=ce(82586),Te=ce(63237),gt=ce(99569),ze=ce(10366),Pt=ce(17799),kt=ce(72922),pt=function(At,xn){var jt={};for(var vn in At)Object.prototype.hasOwnProperty.call(At,vn)&&xn.indexOf(vn)<0&&(jt[vn]=At[vn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var er=0,vn=Object.getOwnPropertySymbols(At);erAt?Fe.createElement(gt.Z,null):Fe.createElement(Te.Z,null),De={click:"onClick",hover:"onMouseOver"};var Yt=Fe.forwardRef((At,xn)=>{const{visibilityToggle:jt=!0}=At,vn=typeof jt=="object"&&jt.visible!==void 0,[er,Sr]=(0,Fe.useState)(()=>vn?jt.visible:!1),qe=(0,Fe.useRef)(null);Fe.useEffect(()=>{vn&&Sr(jt.visible)},[vn,jt]);const Ae=(0,kt.Z)(qe),$t=()=>{const{disabled:ue}=At;ue||(er&&Ae(),Sr(se=>{var ye;const ve=!se;return typeof jt=="object"&&((ye=jt.onVisibleChange)===null||ye===void 0||ye.call(jt,ve)),ve}))},Hn=ue=>{const{action:se="click",iconRender:ye=Je}=At,ve=De[se]||"",le=ye(er),We={[ve]:$t,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:Lt=>{Lt.preventDefault()},onMouseUp:Lt=>{Lt.preventDefault()}};return Fe.cloneElement(Fe.isValidElement(le)?le:Fe.createElement("span",null,le),We)},{className:bn,prefixCls:at,inputPrefixCls:ft,size:Gt}=At,zn=pt(At,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:mn}=Fe.useContext(Ye.E_),nn=mn("input",ft),Ft=mn("input-password",at),Pn=jt&&Hn(Ft),_n=tt()(Ft,bn,{[`${Ft}-${Gt}`]:!!Gt}),Ee=Object.assign(Object.assign({},(0,ze.Z)(zn,["suffix","iconRender","visibilityToggle"])),{type:er?"text":"password",className:_n,prefixCls:nn,suffix:Pn});return Gt&&(Ee.size=Gt),Fe.createElement(pe.Z,Object.assign({ref:(0,Pt.sQ)(xn,qe)},Ee))}),nt=ce(72395),ct=ce(96159),Ie=ce(71577),Me=ce(98675),Ve=ce(4173),Xe=function(At,xn){var jt={};for(var vn in At)Object.prototype.hasOwnProperty.call(At,vn)&&xn.indexOf(vn)<0&&(jt[vn]=At[vn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var er=0,vn=Object.getOwnPropertySymbols(At);er{const{prefixCls:jt,inputPrefixCls:vn,className:er,size:Sr,suffix:qe,enterButton:Ae=!1,addonAfter:$t,loading:Hn,disabled:bn,onSearch:at,onChange:ft,onCompositionStart:Gt,onCompositionEnd:zn}=At,mn=Xe(At,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:nn,direction:Ft}=Fe.useContext(Ye.E_),Pn=Fe.useRef(!1),_n=nn("input-search",jt),Ee=nn("input",vn),{compactSize:ue}=(0,Ve.ri)(_n,Ft),se=(0,Me.Z)(Rn=>{var Gr;return(Gr=Sr!=null?Sr:ue)!==null&&Gr!==void 0?Gr:Rn}),ye=Fe.useRef(null),ve=Rn=>{Rn&&Rn.target&&Rn.type==="click"&&at&&at(Rn.target.value,Rn,{source:"clear"}),ft&&ft(Rn)},le=Rn=>{var Gr;document.activeElement===((Gr=ye.current)===null||Gr===void 0?void 0:Gr.input)&&Rn.preventDefault()},We=Rn=>{var Gr,li;at&&at((li=(Gr=ye.current)===null||Gr===void 0?void 0:Gr.input)===null||li===void 0?void 0:li.value,Rn,{source:"input"})},Lt=Rn=>{Pn.current||Hn||We(Rn)},tn=typeof Ae=="boolean"?Fe.createElement(nt.Z,null):null,hn=`${_n}-button`;let sn;const yn=Ae||{},ln=yn.type&&yn.type.__ANT_BUTTON===!0;ln||yn.type==="button"?sn=(0,ct.Tm)(yn,Object.assign({onMouseDown:le,onClick:Rn=>{var Gr,li;(li=(Gr=yn==null?void 0:yn.props)===null||Gr===void 0?void 0:Gr.onClick)===null||li===void 0||li.call(Gr,Rn),We(Rn)},key:"enterButton"},ln?{className:hn,size:se}:{})):sn=Fe.createElement(Ie.ZP,{className:hn,type:Ae?"primary":void 0,size:se,disabled:bn,key:"enterButton",onMouseDown:le,onClick:We,loading:Hn,icon:tn},Ae),$t&&(sn=[sn,(0,ct.Tm)($t,{key:"addonAfter"})]);const yr=tt()(_n,{[`${_n}-rtl`]:Ft==="rtl",[`${_n}-${se}`]:!!se,[`${_n}-with-button`]:!!Ae},er),Fr=Rn=>{Pn.current=!0,Gt==null||Gt(Rn)},Nt=Rn=>{Pn.current=!1,zn==null||zn(Rn)};return Fe.createElement(pe.Z,Object.assign({ref:(0,Pt.sQ)(ye,xn),onPressEnter:Lt},mn,{size:se,onCompositionStart:Fr,onCompositionEnd:Nt,prefixCls:Ee,addonAfter:sn,suffix:qe,onChange:ve,className:yr,disabled:bn}))}),Mt=ce(96330);const je=pe.Z;je.Group=Se,je.Search=wt,je.TextArea=Mt.Z,je.Password=Yt;var Rt=je},47673:function(Ln,qt,ce){"use strict";ce.d(qt,{M1:function(){return Le},TM:function(){return ct},Xy:function(){return Se},bi:function(){return gt},e5:function(){return nt},ik:function(){return ze},nz:function(){return be},pU:function(){return _e},s7:function(){return Pt},x0:function(){return Te}});var fe=ce(14747),tt=ce(80110),Fe=ce(45503),Ye=ce(67968);const be=Ie=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ie,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_e=Ie=>({borderColor:Ie.hoverBorderColor}),Le=Ie=>({borderColor:Ie.activeBorderColor,boxShadow:Ie.activeShadow,outline:0}),Se=Ie=>({color:Ie.colorTextDisabled,backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},_e((0,Fe.TS)(Ie,{hoverBorderColor:Ie.colorBorder})))}),pe=Ie=>{const{paddingBlockLG:Me,fontSizeLG:Ve,lineHeightLG:Xe,borderRadiusLG:Ct,paddingInlineLG:wt}=Ie;return{padding:`${Me}px ${wt}px`,fontSize:Ve,lineHeight:Xe,borderRadius:Ct}},Te=Ie=>({padding:`${Ie.paddingBlockSM}px ${Ie.paddingInlineSM}px`,borderRadius:Ie.borderRadiusSM}),gt=(Ie,Me)=>{const{componentCls:Ve,colorError:Xe,colorWarning:Ct,errorActiveShadow:wt,warningActiveShadow:Mt,colorErrorBorderHover:je,colorWarningBorderHover:Rt}=Ie;return{[`&-status-error:not(${Me}-disabled):not(${Me}-borderless)${Me}`]:{borderColor:Xe,"&:hover":{borderColor:je},"&:focus, &-focused":Object.assign({},Le((0,Fe.TS)(Ie,{activeBorderColor:Xe,activeShadow:wt}))),[`${Ve}-prefix, ${Ve}-suffix`]:{color:Xe}},[`&-status-warning:not(${Me}-disabled):not(${Me}-borderless)${Me}`]:{borderColor:Ct,"&:hover":{borderColor:Rt},"&:focus, &-focused":Object.assign({},Le((0,Fe.TS)(Ie,{activeBorderColor:Ct,activeShadow:Mt}))),[`${Ve}-prefix, ${Ve}-suffix`]:{color:Ct}}}},ze=Ie=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ie.paddingBlock}px ${Ie.paddingInline}px`,color:Ie.colorText,fontSize:Ie.fontSize,lineHeight:Ie.lineHeight,backgroundColor:Ie.colorBgContainer,backgroundImage:"none",borderWidth:Ie.lineWidth,borderStyle:Ie.lineType,borderColor:Ie.colorBorder,borderRadius:Ie.borderRadius,transition:`all ${Ie.motionDurationMid}`},be(Ie.colorTextPlaceholder)),{"&:hover":Object.assign({},_e(Ie)),"&:focus, &-focused":Object.assign({},Le(Ie)),"&-disabled, &[disabled]":Object.assign({},Se(Ie)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ie.controlHeight,lineHeight:Ie.lineHeight,verticalAlign:"bottom",transition:`all ${Ie.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},pe(Ie)),"&-sm":Object.assign({},Te(Ie)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Pt=Ie=>{const{componentCls:Me,antCls:Ve}=Ie;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ie.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Me}, &-lg > ${Me}-group-addon`]:Object.assign({},pe(Ie)),[`&-sm ${Me}, &-sm > ${Me}-group-addon`]:Object.assign({},Te(Ie)),[`&-lg ${Ve}-select-single ${Ve}-select-selector`]:{height:Ie.controlHeightLG},[`&-sm ${Ve}-select-single ${Ve}-select-selector`]:{height:Ie.controlHeightSM},[`> ${Me}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Me}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ie.paddingInline}px`,color:Ie.colorText,fontWeight:"normal",fontSize:Ie.fontSize,textAlign:"center",backgroundColor:Ie.colorFillAlter,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadius,transition:`all ${Ie.motionDurationSlow}`,lineHeight:1,[`${Ve}-select`]:{margin:`-${Ie.paddingBlock+1}px -${Ie.paddingInline}px`,[`&${Ve}-select-single:not(${Ve}-select-customize-input)`]:{[`${Ve}-select-selector`]:{backgroundColor:"inherit",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ve}-select-selector`]:{color:Ie.colorPrimary}}},[`${Ve}-cascader-picker`]:{margin:`-9px -${Ie.paddingInline}px`,backgroundColor:"transparent",[`${Ve}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Me}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Me}-search-with-button &`]:{zIndex:0}}},[`> ${Me}:first-child, ${Me}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ve}-select ${Ve}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Me}-affix-wrapper`]:{[`&:not(:first-child) ${Me}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Me}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Me}:last-child, ${Me}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ve}-select ${Ve}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Me}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Me}-search &`]:{borderStartStartRadius:Ie.borderRadius,borderEndStartRadius:Ie.borderRadius}},[`&:not(:first-child), ${Me}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Me}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,fe.dF)()),{[`${Me}-group-addon, ${Me}-group-wrap, > ${Me}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ie.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${Me}-affix-wrapper, & > ${Me}-number-affix-wrapper, & > ${Ve}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ie.lineWidth,borderInlineEndWidth:Ie.lineWidth},[`${Me}`]:{float:"none"},[`& > ${Ve}-select > ${Ve}-select-selector, & > ${Ve}-select-auto-complete ${Me}, & > ${Ve}-cascader-picker ${Me}, & > ${Me}-group-wrapper ${Me}`]:{borderInlineEndWidth:Ie.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ve}-select-focused`]:{zIndex:1},[`& > ${Ve}-select > ${Ve}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${Ve}-select:first-child > ${Ve}-select-selector, & > ${Ve}-select-auto-complete:first-child ${Me}, & > ${Ve}-cascader-picker:first-child ${Me}`]:{borderStartStartRadius:Ie.borderRadius,borderEndStartRadius:Ie.borderRadius},[`& > *:last-child, & > ${Ve}-select:last-child > ${Ve}-select-selector, & > ${Ve}-cascader-picker:last-child ${Me}, & > ${Ve}-cascader-picker-focused:last-child ${Me}`]:{borderInlineEndWidth:Ie.lineWidth,borderStartEndRadius:Ie.borderRadius,borderEndEndRadius:Ie.borderRadius},[`& > ${Ve}-select-auto-complete ${Me}`]:{verticalAlign:"top"},[`${Me}-group-wrapper + ${Me}-group-wrapper`]:{marginInlineStart:-Ie.lineWidth,[`${Me}-affix-wrapper`]:{borderRadius:0}},[`${Me}-group-wrapper:not(:last-child)`]:{[`&${Me}-search > ${Me}-group`]:{[`& > ${Me}-group-addon > ${Me}-search-button`]:{borderRadius:0},[`& > ${Me}`]:{borderStartStartRadius:Ie.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ie.borderRadius}}}})}},kt=Ie=>{const{componentCls:Me,controlHeightSM:Ve,lineWidth:Xe}=Ie,wt=(Ve-Xe*2-16)/2;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Ie)),ze(Ie)),gt(Ie,Me)),{'&[type="color"]':{height:Ie.controlHeight,[`&${Me}-lg`]:{height:Ie.controlHeightLG},[`&${Me}-sm`]:{height:Ve,paddingTop:wt,paddingBottom:wt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},pt=Ie=>{const{componentCls:Me}=Ie;return{[`${Me}-clear-icon`]:{margin:0,color:Ie.colorTextQuaternary,fontSize:Ie.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ie.motionDurationSlow}`,"&:hover":{color:Ie.colorTextTertiary},"&:active":{color:Ie.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ie.inputAffixPadding}px`}}}},Je=Ie=>{const{componentCls:Me,inputAffixPadding:Ve,colorTextDescription:Xe,motionDurationSlow:Ct,colorIcon:wt,colorIconHover:Mt,iconCls:je}=Ie;return{[`${Me}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ze(Ie)),{display:"inline-flex",[`&:not(${Me}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},_e(Ie)),{zIndex:1,[`${Me}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Me}[disabled]`]:{background:"transparent"}},[`> input${Me}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Me}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ie.paddingXS}},"&-show-count-suffix":{color:Xe},"&-show-count-has-suffix":{marginInlineEnd:Ie.paddingXXS},"&-prefix":{marginInlineEnd:Ve},"&-suffix":{marginInlineStart:Ve}}}),pt(Ie)),{[`${je}${Me}-password-icon`]:{color:wt,cursor:"pointer",transition:`all ${Ct}`,"&:hover":{color:Mt}}}),gt(Ie,`${Me}-affix-wrapper`))}},De=Ie=>{const{componentCls:Me,colorError:Ve,colorWarning:Xe,borderRadiusLG:Ct,borderRadiusSM:wt}=Ie;return{[`${Me}-group`]:Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Ie)),Pt(Ie)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Me}-group-addon`]:{borderRadius:Ct,fontSize:Ie.fontSizeLG}},"&-sm":{[`${Me}-group-addon`]:{borderRadius:wt}},"&-status-error":{[`${Me}-group-addon`]:{color:Ve,borderColor:Ve}},"&-status-warning":{[`${Me}-group-addon`]:{color:Xe,borderColor:Xe}},"&-disabled":{[`${Me}-group-addon`]:Object.assign({},Se(Ie))},[`&:not(${Me}-compact-first-item):not(${Me}-compact-last-item)${Me}-compact-item`]:{[`${Me}, ${Me}-group-addon`]:{borderRadius:0}},[`&:not(${Me}-compact-last-item)${Me}-compact-first-item`]:{[`${Me}, ${Me}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Me}-compact-first-item)${Me}-compact-last-item`]:{[`${Me}, ${Me}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Dt=Ie=>{const{componentCls:Me,antCls:Ve}=Ie,Xe=`${Me}-search`;return{[Xe]:{[`${Me}`]:{"&:hover, &:focus":{borderColor:Ie.colorPrimaryHover,[`+ ${Me}-group-addon ${Xe}-button:not(${Ve}-btn-primary)`]:{borderInlineStartColor:Ie.colorPrimaryHover}}},[`${Me}-affix-wrapper`]:{borderRadius:0},[`${Me}-lg`]:{lineHeight:Ie.lineHeightLG-2e-4},[`> ${Me}-group`]:{[`> ${Me}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Xe}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ie.borderRadius,borderEndEndRadius:Ie.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Xe}-button:not(${Ve}-btn-primary)`]:{color:Ie.colorTextDescription,"&:hover":{color:Ie.colorPrimaryHover},"&:active":{color:Ie.colorPrimaryActive},[`&${Ve}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Xe}-button`]:{height:Ie.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Xe}-button`]:{height:Ie.controlHeightLG},[`&-small ${Xe}-button`]:{height:Ie.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Me}-compact-item`]:{[`&:not(${Me}-compact-last-item)`]:{[`${Me}-group-addon`]:{[`${Me}-search-button`]:{marginInlineEnd:-Ie.lineWidth,borderRadius:0}}},[`&:not(${Me}-compact-first-item)`]:{[`${Me},${Me}-affix-wrapper`]:{borderRadius:0}},[`> ${Me}-group-addon ${Me}-search-button, > ${Me}, ${Me}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Me}-affix-wrapper-focused`]:{zIndex:2}}}}},Yt=Ie=>{const{componentCls:Me,paddingLG:Ve}=Ie,Xe=`${Me}-textarea`;return{[Xe]:{position:"relative","&-show-count":{[`> ${Me}`]:{height:"100%"},[`${Me}-data-count`]:{position:"absolute",bottom:-Ie.fontSize*Ie.lineHeight,insetInlineEnd:0,color:Ie.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Me}`]:{paddingInlineEnd:Ve}},[`&-affix-wrapper${Xe}-has-feedback`]:{[`${Me}`]:{paddingInlineEnd:Ve}},[`&-affix-wrapper${Me}-affix-wrapper`]:{padding:0,[`> textarea${Me}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Me}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Me}-clear-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,insetBlockStart:Ie.paddingXS},[`${Xe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ie.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function nt(Ie){return(0,Fe.TS)(Ie,{inputAffixPadding:Ie.paddingXXS})}const ct=Ie=>{const{controlHeight:Me,fontSize:Ve,lineHeight:Xe,lineWidth:Ct,controlHeightSM:wt,controlHeightLG:Mt,fontSizeLG:je,lineHeightLG:Rt,paddingSM:At,controlPaddingHorizontalSM:xn,controlPaddingHorizontal:jt,colorFillAlter:vn,colorPrimaryHover:er,controlOutlineWidth:Sr,controlOutline:qe,colorErrorOutline:Ae,colorWarningOutline:$t}=Ie;return{paddingBlock:Math.max(Math.round((Me-Ve*Xe)/2*10)/10-Ct,3),paddingBlockSM:Math.max(Math.round((wt-Ve*Xe)/2*10)/10-Ct,0),paddingBlockLG:Math.ceil((Mt-je*Rt)/2*10)/10-Ct,paddingInline:At-Ct,paddingInlineSM:xn-Ct,paddingInlineLG:jt-Ct,addonBg:vn,activeBorderColor:er,hoverBorderColor:er,activeShadow:`0 0 0 ${Sr}px ${qe}`,errorActiveShadow:`0 0 0 ${Sr}px ${Ae}`,warningActiveShadow:`0 0 0 ${Sr}px ${$t}`}};qt.ZP=(0,Ye.Z)("Input",Ie=>{const Me=(0,Fe.TS)(Ie,nt(Ie));return[kt(Me),Yt(Me),Je(Me),De(Me),Dt(Me),(0,tt.c)(Me)]},ct)},38703:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return li}});var fe=ce(67294),tt=ce(87725),Fe=ce(18299),Ye=ce(16646),be=ce(73475),_e=ce(94184),Le=ce.n(_e),Se=ce(10366),pe=ce(53124),Te=ce(87462),gt=ce(1413),ze=ce(45987),Pt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},kt=function(){var Wt=(0,fe.useRef)([]),Vn=(0,fe.useRef)(null);return(0,fe.useEffect)(function(){var ir=Date.now(),gr=!1;Wt.current.forEach(function(Pr){if(Pr){gr=!0;var Ur=Pr.style;Ur.transitionDuration=".3s, .3s, .3s, .06s",Vn.current&&ir-Vn.current<100&&(Ur.transitionDuration="0s, 0s")}}),gr&&(Vn.current=Date.now())}),Wt.current},pt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Je=function(Wt){var Vn=(0,gt.Z)((0,gt.Z)({},Pt),Wt),ir=Vn.className,gr=Vn.percent,Pr=Vn.prefixCls,Ur=Vn.strokeColor,Xr=Vn.strokeLinecap,qr=Vn.strokeWidth,ui=Vn.style,br=Vn.trailColor,Ei=Vn.trailWidth,sa=Vn.transition,Ji=(0,ze.Z)(Vn,pt);delete Ji.gapPosition;var Qi=Array.isArray(gr)?gr:[gr],Ci=Array.isArray(Ur)?Ur:[Ur],mt=kt(),Mn=qr/2,En=100-qr/2,An="M ".concat(Xr==="round"?Mn:0,",").concat(Mn,` L `).concat(Xr==="round"?En:100,",").concat(Mn),sr="0 0 100 ".concat(qr),nr=0;return fe.createElement("svg",(0,Te.Z)({className:Le()("".concat(Pr,"-line"),ir),viewBox:sr,preserveAspectRatio:"none",style:ui},Ji),fe.createElement("path",{className:"".concat(Pr,"-line-trail"),d:An,strokeLinecap:Xr,stroke:br,strokeWidth:Ei||qr,fillOpacity:"0"}),Qi.map(function(pr,Kn){var Ue=1;switch(Xr){case"round":Ue=1-qr/100;break;case"square":Ue=1-qr/2/100;break;default:Ue=1;break}var it={strokeDasharray:"".concat(pr*Ue,"px, 100px"),strokeDashoffset:"-".concat(nr,"px"),transition:sa||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_t=Ci[Kn]||Ci[Ci.length-1];return nr+=pr,fe.createElement("path",{key:Kn,className:"".concat(Pr,"-line-path"),d:An,strokeLinecap:Xr,stroke:_t,strokeWidth:qr,fillOpacity:"0",ref:function(Ke){mt[Kn]=Ke},style:it})}))},De=Je,Dt=ce(71002),Yt=ce(97685),nt=ce(98924),ct=0,Ie=(0,nt.Z)();function Me(){var st;return Ie?(st=ct,ct+=1):st="TEST_OR_SSR",st}var Ve=function(st){var Wt=fe.useState(),Vn=(0,Yt.Z)(Wt,2),ir=Vn[0],gr=Vn[1];return fe.useEffect(function(){gr("rc_progress_".concat(Me()))},[]),st||ir},Xe=function(Wt){var Vn=Wt.bg,ir=Wt.children;return fe.createElement("div",{style:{width:"100%",height:"100%",background:Vn}},ir)};function Ct(st,Wt){return Object.keys(st).map(function(Vn){var ir=parseFloat(Vn),gr="".concat(Math.floor(ir*Wt),"%");return"".concat(st[Vn]," ").concat(gr)})}var wt=fe.forwardRef(function(st,Wt){var Vn=st.prefixCls,ir=st.color,gr=st.gradientId,Pr=st.radius,Ur=st.style,Xr=st.ptg,qr=st.strokeLinecap,ui=st.strokeWidth,br=st.size,Ei=st.gapDegree,sa=ir&&(0,Dt.Z)(ir)==="object",Ji=sa?"#FFF":void 0,Qi=br/2,Ci=fe.createElement("circle",{className:"".concat(Vn,"-circle-path"),r:Pr,cx:Qi,cy:Qi,stroke:Ji,strokeLinecap:qr,strokeWidth:ui,opacity:Xr===0?0:1,style:Ur,ref:Wt});if(!sa)return Ci;var mt="".concat(gr,"-conic"),Mn=Ei?"".concat(180+Ei/2,"deg"):"0deg",En=Ct(ir,(360-Ei)/360),An=Ct(ir,1),sr="conic-gradient(from ".concat(Mn,", ").concat(En.join(", "),")"),nr="linear-gradient(to ".concat(Ei?"bottom":"top",", ").concat(An.join(", "),")");return fe.createElement(fe.Fragment,null,fe.createElement("mask",{id:mt},Ci),fe.createElement("foreignObject",{x:0,y:0,width:br,height:br,mask:"url(#".concat(mt,")")},fe.createElement(Xe,{bg:nr},fe.createElement(Xe,{bg:sr}))))}),Mt=wt,je=100,Rt=function(Wt,Vn,ir,gr,Pr,Ur,Xr,qr,ui,br){var Ei=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,sa=ir/100*360*((360-Ur)/360),Ji=Ur===0?0:{bottom:0,top:180,left:90,right:-90}[Xr],Qi=(100-gr)/100*Vn;ui==="round"&&gr!==100&&(Qi+=br/2,Qi>=Vn&&(Qi=Vn-.01));var Ci=je/2;return{stroke:typeof qr=="string"?qr:void 0,strokeDasharray:"".concat(Vn,"px ").concat(Wt),strokeDashoffset:Qi+Ei,transform:"rotate(".concat(Pr+sa+Ji,"deg)"),transformOrigin:"".concat(Ci,"px ").concat(Ci,"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}},At=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function xn(st){var Wt=st!=null?st:[];return Array.isArray(Wt)?Wt:[Wt]}var jt=function(Wt){var Vn=(0,gt.Z)((0,gt.Z)({},Pt),Wt),ir=Vn.id,gr=Vn.prefixCls,Pr=Vn.steps,Ur=Vn.strokeWidth,Xr=Vn.trailWidth,qr=Vn.gapDegree,ui=qr===void 0?0:qr,br=Vn.gapPosition,Ei=Vn.trailColor,sa=Vn.strokeLinecap,Ji=Vn.style,Qi=Vn.className,Ci=Vn.strokeColor,mt=Vn.percent,Mn=(0,ze.Z)(Vn,At),En=je/2,An=Ve(ir),sr="".concat(An,"-gradient"),nr=En-Ur/2,pr=Math.PI*2*nr,Kn=ui>0?90+ui/2:-90,Ue=pr*((360-ui)/360),it=(0,Dt.Z)(Pr)==="object"?Pr:{count:Pr,space:2},_t=it.count,Ut=it.space,Ke=xn(mt),ut=xn(Ci),Ot=ut.find(function(qn){return qn&&(0,Dt.Z)(qn)==="object"}),Tt=Ot&&(0,Dt.Z)(Ot)==="object",zt=Tt?"butt":sa,Ht=Rt(pr,Ue,0,100,Kn,ui,br,Ei,zt,Ur),$n=kt(),Cr=function(){var rr=0;return Ke.map(function(ar,ot){var Qe=ut[ot]||ut[ut.length-1],vt=Rt(pr,Ue,rr,ar,Kn,ui,br,Qe,zt,Ur);return rr+=ar,fe.createElement(Mt,{key:ot,color:Qe,ptg:ar,radius:nr,prefixCls:gr,gradientId:sr,style:vt,strokeLinecap:zt,strokeWidth:Ur,gapDegree:ui,ref:function(Tn){$n[ot]=Tn},size:je})}).reverse()},Yn=function(){var rr=Math.round(_t*(Ke[0]/100)),ar=100/_t,ot=0;return new Array(_t).fill(null).map(function(Qe,vt){var Qt=vt<=rr-1?ut[0]:Ei,Tn=Qt&&(0,Dt.Z)(Qt)==="object"?"url(#".concat(sr,")"):void 0,en=Rt(pr,Ue,ot,ar,Kn,ui,br,Qt,"butt",Ur,Ut);return ot+=(Ue-en.strokeDashoffset+Ut)*100/Ue,fe.createElement("circle",{key:vt,className:"".concat(gr,"-circle-path"),r:nr,cx:En,cy:En,stroke:Tn,strokeWidth:Ur,opacity:1,style:en,ref:function(un){$n[vt]=un}})})};return fe.createElement("svg",(0,Te.Z)({className:Le()("".concat(gr,"-circle"),Qi),viewBox:"0 0 ".concat(je," ").concat(je),style:Ji,id:ir,role:"presentation"},Mn),!_t&&fe.createElement("circle",{className:"".concat(gr,"-circle-trail"),r:nr,cx:En,cy:En,stroke:Ei,strokeLinecap:zt,strokeWidth:Xr||Ur,style:Ht}),_t?Yn():Cr())},vn=jt,er={Line:De,Circle:vn},Sr=ce(83062),qe=ce(16397);function Ae(st){return!st||st<0?0:st>100?100:st}function $t(st){let{success:Wt,successPercent:Vn}=st,ir=Vn;return Wt&&"progress"in Wt&&(ir=Wt.progress),Wt&&"percent"in Wt&&(ir=Wt.percent),ir}const Hn=st=>{let{percent:Wt,success:Vn,successPercent:ir}=st;const gr=Ae($t({success:Vn,successPercent:ir}));return[gr,Ae(Ae(Wt)-gr)]},bn=st=>{let{success:Wt={},strokeColor:Vn}=st;const{strokeColor:ir}=Wt;return[ir||qe.presetPrimaryColors.green,Vn||null]},at=(st,Wt,Vn)=>{var ir,gr,Pr,Ur;let Xr=-1,qr=-1;if(Wt==="step"){const ui=Vn.steps,br=Vn.strokeWidth;typeof st=="string"||typeof st=="undefined"?(Xr=st==="small"?2:14,qr=br!=null?br:8):typeof st=="number"?[Xr,qr]=[st,st]:[Xr=14,qr=8]=st,Xr*=ui}else if(Wt==="line"){const ui=Vn==null?void 0:Vn.strokeWidth;typeof st=="string"||typeof st=="undefined"?qr=ui||(st==="small"?6:8):typeof st=="number"?[Xr,qr]=[st,st]:[Xr=-1,qr=8]=st}else(Wt==="circle"||Wt==="dashboard")&&(typeof st=="string"||typeof st=="undefined"?[Xr,qr]=st==="small"?[60,60]:[120,120]:typeof st=="number"?[Xr,qr]=[st,st]:(Xr=(gr=(ir=st[0])!==null&&ir!==void 0?ir:st[1])!==null&&gr!==void 0?gr:120,qr=(Ur=(Pr=st[0])!==null&&Pr!==void 0?Pr:st[1])!==null&&Ur!==void 0?Ur:120));return[Xr,qr]},ft=3,Gt=st=>ft/st*100;var mn=st=>{const{prefixCls:Wt,trailColor:Vn=null,strokeLinecap:ir="round",gapPosition:gr,gapDegree:Pr,width:Ur=120,type:Xr,children:qr,success:ui,size:br=Ur}=st,[Ei,sa]=at(br,"circle");let{strokeWidth:Ji}=st;Ji===void 0&&(Ji=Math.max(Gt(Ei),6));const Qi={width:Ei,height:sa,fontSize:Ei*.15+6},Ci=fe.useMemo(()=>{if(Pr||Pr===0)return Pr;if(Xr==="dashboard")return 75},[Pr,Xr]),mt=gr||Xr==="dashboard"&&"bottom"||void 0,Mn=Object.prototype.toString.call(st.strokeColor)==="[object Object]",En=bn({success:ui,strokeColor:st.strokeColor}),An=Le()(`${Wt}-inner`,{[`${Wt}-circle-gradient`]:Mn}),sr=fe.createElement(vn,{percent:Hn(st),strokeWidth:Ji,trailWidth:Ji,strokeColor:En,strokeLinecap:ir,trailColor:Vn,prefixCls:Wt,gapDegree:Ci,gapPosition:mt});return fe.createElement("div",{className:An,style:Qi},Ei<=20?fe.createElement(Sr.Z,{title:qr},fe.createElement("span",null,sr)):fe.createElement(fe.Fragment,null,sr,qr))},nn=function(st,Wt){var Vn={};for(var ir in st)Object.prototype.hasOwnProperty.call(st,ir)&&Wt.indexOf(ir)<0&&(Vn[ir]=st[ir]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gr=0,ir=Object.getOwnPropertySymbols(st);gr{let Wt=[];return Object.keys(st).forEach(Vn=>{const ir=parseFloat(Vn.replace(/%/g,""));isNaN(ir)||Wt.push({key:ir,value:st[Vn]})}),Wt=Wt.sort((Vn,ir)=>Vn.key-ir.key),Wt.map(Vn=>{let{key:ir,value:gr}=Vn;return`${gr} ${ir}%`}).join(", ")},Pn=(st,Wt)=>{const{from:Vn=qe.presetPrimaryColors.blue,to:ir=qe.presetPrimaryColors.blue,direction:gr=Wt==="rtl"?"to left":"to right"}=st,Pr=nn(st,["from","to","direction"]);if(Object.keys(Pr).length!==0){const Ur=Ft(Pr);return{backgroundImage:`linear-gradient(${gr}, ${Ur})`}}return{backgroundImage:`linear-gradient(${gr}, ${Vn}, ${ir})`}};var Ee=st=>{const{prefixCls:Wt,direction:Vn,percent:ir,size:gr,strokeWidth:Pr,strokeColor:Ur,strokeLinecap:Xr="round",children:qr,trailColor:ui=null,success:br}=st,Ei=Ur&&typeof Ur!="string"?Pn(Ur,Vn):{backgroundColor:Ur},sa=Xr==="square"||Xr==="butt"?0:void 0,Ji={backgroundColor:ui||void 0,borderRadius:sa},Qi=gr!=null?gr:[-1,Pr||(gr==="small"?6:8)],[Ci,mt]=at(Qi,"line",{strokeWidth:Pr}),Mn=Object.assign({width:`${Ae(ir)}%`,height:mt,borderRadius:sa},Ei),En=$t(st),An={width:`${Ae(En)}%`,height:mt,borderRadius:sa,backgroundColor:br==null?void 0:br.strokeColor},sr={width:Ci<0?"100%":Ci,height:mt};return fe.createElement(fe.Fragment,null,fe.createElement("div",{className:`${Wt}-outer`,style:sr},fe.createElement("div",{className:`${Wt}-inner`,style:Ji},fe.createElement("div",{className:`${Wt}-bg`,style:Mn}),En!==void 0?fe.createElement("div",{className:`${Wt}-success-bg`,style:An}):null)),qr)},se=st=>{const{size:Wt,steps:Vn,percent:ir=0,strokeWidth:gr=8,strokeColor:Pr,trailColor:Ur=null,prefixCls:Xr,children:qr}=st,ui=Math.round(Vn*(ir/100)),br=Wt==="small"?2:14,Ei=Wt!=null?Wt:[br,gr],[sa,Ji]=at(Ei,"step",{steps:Vn,strokeWidth:gr}),Qi=sa/Vn,Ci=new Array(Vn);for(let mt=0;mt{const Wt=st?"100%":"-100%";return new ye.Keyframes(`antProgress${st?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Wt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Wt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},tn=st=>{const{componentCls:Wt,iconCls:Vn}=st;return{[Wt]:Object.assign(Object.assign({},(0,ve.Wf)(st)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:st.fontSize,marginInlineEnd:st.marginXS,marginBottom:st.marginXS},[`${Wt}-outer`]:{display:"inline-block",width:"100%"},[`&${Wt}-show-info`]:{[`${Wt}-outer`]:{marginInlineEnd:`calc(-2em - ${st.marginXS}px)`,paddingInlineEnd:`calc(2em + ${st.paddingXS}px)`}},[`${Wt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:st.remainingColor,borderRadius:st.lineBorderRadius},[`${Wt}-inner:not(${Wt}-circle-gradient)`]:{[`${Wt}-circle-path`]:{stroke:st.defaultColor}},[`${Wt}-success-bg, ${Wt}-bg`]:{position:"relative",backgroundColor:st.defaultColor,borderRadius:st.lineBorderRadius,transition:`all ${st.motionDurationSlow} ${st.motionEaseInOutCirc}`},[`${Wt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:st.colorSuccess},[`${Wt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:st.marginXS,color:st.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Vn]:{fontSize:st.fontSize}},[`&${Wt}-status-active`]:{[`${Wt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:st.colorBgContainer,borderRadius:st.lineBorderRadius,opacity:0,animationName:Lt(),animationDuration:st.progressActiveMotionDuration,animationTimingFunction:st.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Wt}-rtl${Wt}-status-active`]:{[`${Wt}-bg::before`]:{animationName:Lt(!0)}},[`&${Wt}-status-exception`]:{[`${Wt}-bg`]:{backgroundColor:st.colorError},[`${Wt}-text`]:{color:st.colorError}},[`&${Wt}-status-exception ${Wt}-inner:not(${Wt}-circle-gradient)`]:{[`${Wt}-circle-path`]:{stroke:st.colorError}},[`&${Wt}-status-success`]:{[`${Wt}-bg`]:{backgroundColor:st.colorSuccess},[`${Wt}-text`]:{color:st.colorSuccess}},[`&${Wt}-status-success ${Wt}-inner:not(${Wt}-circle-gradient)`]:{[`${Wt}-circle-path`]:{stroke:st.colorSuccess}}})}},hn=st=>{const{componentCls:Wt,iconCls:Vn}=st;return{[Wt]:{[`${Wt}-circle-trail`]:{stroke:st.remainingColor},[`&${Wt}-circle ${Wt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Wt}-circle ${Wt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:st.circleTextColor,fontSize:st.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Vn]:{fontSize:`${st.fontSize/st.fontSizeSM}em`}},[`${Wt}-circle&-status-exception`]:{[`${Wt}-text`]:{color:st.colorError}},[`${Wt}-circle&-status-success`]:{[`${Wt}-text`]:{color:st.colorSuccess}}},[`${Wt}-inline-circle`]:{lineHeight:1,[`${Wt}-inner`]:{verticalAlign:"bottom"}}}},sn=st=>{const{componentCls:Wt}=st;return{[Wt]:{[`${Wt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:st.progressStepMinWidth,marginInlineEnd:st.progressStepMarginInlineEnd,backgroundColor:st.remainingColor,transition:`all ${st.motionDurationSlow}`,"&-active":{backgroundColor:st.defaultColor}}}}}},yn=st=>{const{componentCls:Wt,iconCls:Vn}=st;return{[Wt]:{[`${Wt}-small&-line, ${Wt}-small&-line ${Wt}-text ${Vn}`]:{fontSize:st.fontSizeSM}}}};var ln=(0,le.Z)("Progress",st=>{const Wt=st.marginXXS/2,Vn=(0,We.TS)(st,{progressStepMarginInlineEnd:Wt,progressStepMinWidth:Wt,progressActiveMotionDuration:"2.4s"});return[tn(Vn),hn(Vn),sn(Vn),yn(Vn)]},st=>({circleTextColor:st.colorText,defaultColor:st.colorInfo,remainingColor:st.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),yr=function(st,Wt){var Vn={};for(var ir in st)Object.prototype.hasOwnProperty.call(st,ir)&&Wt.indexOf(ir)<0&&(Vn[ir]=st[ir]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gr=0,ir=Object.getOwnPropertySymbols(st);gr{const{prefixCls:Vn,className:ir,rootClassName:gr,steps:Pr,strokeColor:Ur,percent:Xr=0,size:qr="default",showInfo:ui=!0,type:br="line",status:Ei,format:sa,style:Ji}=st,Qi=yr(st,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ci=fe.useMemo(()=>{var Ke,ut;const Ot=$t(st);return parseInt(Ot!==void 0?(Ke=Ot!=null?Ot:0)===null||Ke===void 0?void 0:Ke.toString():(ut=Xr!=null?Xr:0)===null||ut===void 0?void 0:ut.toString(),10)},[Xr,st.success,st.successPercent]),mt=fe.useMemo(()=>!Nt.includes(Ei)&&Ci>=100?"success":Ei||"normal",[Ei,Ci]),{getPrefixCls:Mn,direction:En,progress:An}=fe.useContext(pe.E_),sr=Mn("progress",Vn),[nr,pr]=ln(sr),Kn=fe.useMemo(()=>{if(!ui)return null;const Ke=$t(st);let ut;const Ot=sa||(zt=>`${zt}%`),Tt=br==="line";return sa||mt!=="exception"&&mt!=="success"?ut=Ot(Ae(Xr),Ae(Ke)):mt==="exception"?ut=Tt?fe.createElement(Ye.Z,null):fe.createElement(be.Z,null):mt==="success"&&(ut=Tt?fe.createElement(tt.Z,null):fe.createElement(Fe.Z,null)),fe.createElement("span",{className:`${sr}-text`,title:typeof ut=="string"?ut:void 0},ut)},[ui,Xr,Ci,mt,br,sr,sa]),Ue=Array.isArray(Ur)?Ur[0]:Ur,it=typeof Ur=="string"||Array.isArray(Ur)?Ur:void 0;let _t;br==="line"?_t=Pr?fe.createElement(se,Object.assign({},st,{strokeColor:it,prefixCls:sr,steps:Pr}),Kn):fe.createElement(Ee,Object.assign({},st,{strokeColor:Ue,prefixCls:sr,direction:En}),Kn):(br==="circle"||br==="dashboard")&&(_t=fe.createElement(mn,Object.assign({},st,{strokeColor:Ue,prefixCls:sr,progressStatus:mt}),Kn));const Ut=Le()(sr,`${sr}-status-${mt}`,`${sr}-${br==="dashboard"&&"circle"||Pr&&"steps"||br}`,{[`${sr}-inline-circle`]:br==="circle"&&at(qr,"circle")[0]<=20,[`${sr}-show-info`]:ui,[`${sr}-${qr}`]:typeof qr=="string",[`${sr}-rtl`]:En==="rtl"},An==null?void 0:An.className,ir,gr,pr);return nr(fe.createElement("div",Object.assign({ref:Wt,style:Object.assign(Object.assign({},An==null?void 0:An.style),Ji),className:Ut,role:"progressbar","aria-valuenow":Ci},(0,Se.Z)(Qi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_t))}),li=Gr},78045:function(Ln,qt,ce){"use strict";ce.d(qt,{ZP:function(){return qe}});var fe=ce(94184),tt=ce.n(fe),Fe=ce(5663),Ye=ce(1337),be=ce(67294),_e=ce(53124),Le=ce(98675);const Se=be.createContext(null),pe=Se.Provider;var Te=Se;const gt=be.createContext(null),ze=gt.Provider;var Pt=ce(95860),kt=ce(17799),pt=ce(98866),Je=ce(65223),De=ce(14747),Dt=ce(67968),Yt=ce(45503);const nt=Ae=>{const{componentCls:$t,antCls:Hn}=Ae,bn=`${$t}-group`;return{[bn]:Object.assign(Object.assign({},(0,De.Wf)(Ae)),{display:"inline-block",fontSize:0,[`&${bn}-rtl`]:{direction:"rtl"},[`${Hn}-badge ${Hn}-badge-count`]:{zIndex:1},[`> ${Hn}-badge:not(:first-child) > ${Hn}-button-wrapper`]:{borderInlineStart:"none"}})}},ct=Ae=>{const{componentCls:$t,wrapperMarginInlineEnd:Hn,colorPrimary:bn,radioSize:at,motionDurationSlow:ft,motionDurationMid:Gt,motionEaseInOutCirc:zn,colorBgContainer:mn,colorBorder:nn,lineWidth:Ft,dotSize:Pn,colorBgContainerDisabled:_n,colorTextDisabled:Ee,paddingXS:ue,dotColorDisabled:se,lineType:ye,radioDotDisabledSize:ve,wireframe:le,colorWhite:We}=Ae,Lt=`${$t}-inner`;return{[`${$t}-wrapper`]:Object.assign(Object.assign({},(0,De.Wf)(Ae)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Hn,cursor:"pointer",[`&${$t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ae.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${$t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ft}px ${ye} ${bn}`,borderRadius:"50%",visibility:"hidden",content:'""'},[$t]:Object.assign(Object.assign({},(0,De.Wf)(Ae)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${$t}-wrapper:hover &, &:hover ${Lt}`]:{borderColor:bn},[`${$t}-input:focus-visible + ${Lt}`]:Object.assign({},(0,De.oN)(Ae)),[`${$t}:hover::after, ${$t}-wrapper:hover &::after`]:{visibility:"visible"},[`${$t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:at,height:at,marginBlockStart:at/-2,marginInlineStart:at/-2,backgroundColor:le?bn:We,borderBlockStart:0,borderInlineStart:0,borderRadius:at,transform:"scale(0)",opacity:0,transition:`all ${ft} ${zn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:at,height:at,backgroundColor:mn,borderColor:nn,borderStyle:"solid",borderWidth:Ft,borderRadius:"50%",transition:`all ${Gt}`},[`${$t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${$t}-checked`]:{[Lt]:{borderColor:bn,backgroundColor:le?mn:bn,"&::after":{transform:`scale(${Pn/at})`,opacity:1,transition:`all ${ft} ${zn}`}}},[`${$t}-disabled`]:{cursor:"not-allowed",[Lt]:{backgroundColor:_n,borderColor:nn,cursor:"not-allowed","&::after":{backgroundColor:se}},[`${$t}-input`]:{cursor:"not-allowed"},[`${$t}-disabled + span`]:{color:Ee,cursor:"not-allowed"},[`&${$t}-checked`]:{[Lt]:{"&::after":{transform:`scale(${ve/at})`}}}},[`span${$t} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},Ie=Ae=>{const{buttonColor:$t,controlHeight:Hn,componentCls:bn,lineWidth:at,lineType:ft,colorBorder:Gt,motionDurationSlow:zn,motionDurationMid:mn,buttonPaddingInline:nn,fontSize:Ft,buttonBg:Pn,fontSizeLG:_n,controlHeightLG:Ee,controlHeightSM:ue,paddingXS:se,borderRadius:ye,borderRadiusSM:ve,borderRadiusLG:le,buttonCheckedBg:We,buttonSolidCheckedColor:Lt,colorTextDisabled:tn,colorBgContainerDisabled:hn,buttonCheckedBgDisabled:sn,buttonCheckedColorDisabled:yn,colorPrimary:ln,colorPrimaryHover:yr,colorPrimaryActive:Fr,buttonSolidCheckedBg:Nt,buttonSolidCheckedHoverBg:Rn,buttonSolidCheckedActiveBg:Gr}=Ae;return{[`${bn}-button-wrapper`]:{position:"relative",display:"inline-block",height:Hn,margin:0,paddingInline:nn,paddingBlock:0,color:$t,fontSize:Ft,lineHeight:`${Hn-at*2}px`,background:Pn,border:`${at}px ${ft} ${Gt}`,borderBlockStartWidth:at+.02,borderInlineStartWidth:0,borderInlineEndWidth:at,cursor:"pointer",transition:[`color ${mn}`,`background ${mn}`,`box-shadow ${mn}`].join(","),a:{color:$t},[`> ${bn}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-at,insetInlineStart:-at,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:at,paddingInline:0,backgroundColor:Gt,transition:`background-color ${zn}`,content:'""'}},"&:first-child":{borderInlineStart:`${at}px ${ft} ${Gt}`,borderStartStartRadius:ye,borderEndStartRadius:ye},"&:last-child":{borderStartEndRadius:ye,borderEndEndRadius:ye},"&:first-child:last-child":{borderRadius:ye},[`${bn}-group-large &`]:{height:Ee,fontSize:_n,lineHeight:`${Ee-at*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${bn}-group-small &`]:{height:ue,paddingInline:se-at,paddingBlock:0,lineHeight:`${ue-at*2}px`,"&:first-child":{borderStartStartRadius:ve,borderEndStartRadius:ve},"&:last-child":{borderStartEndRadius:ve,borderEndEndRadius:ve}},"&:hover":{position:"relative",color:ln},"&:has(:focus-visible)":Object.assign({},(0,De.oN)(Ae)),[`${bn}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${bn}-button-wrapper-disabled)`]:{zIndex:1,color:ln,background:We,borderColor:ln,"&::before":{backgroundColor:ln},"&:first-child":{borderColor:ln},"&:hover":{color:yr,borderColor:yr,"&::before":{backgroundColor:yr}},"&:active":{color:Fr,borderColor:Fr,"&::before":{backgroundColor:Fr}}},[`${bn}-group-solid &-checked:not(${bn}-button-wrapper-disabled)`]:{color:Lt,background:Nt,borderColor:Nt,"&:hover":{color:Lt,background:Rn,borderColor:Rn},"&:active":{color:Lt,background:Gr,borderColor:Gr}},"&-disabled":{color:tn,backgroundColor:hn,borderColor:Gt,cursor:"not-allowed","&:first-child, &:hover":{color:tn,backgroundColor:hn,borderColor:Gt}},[`&-disabled${bn}-button-wrapper-checked`]:{color:yn,backgroundColor:sn,borderColor:Gt,boxShadow:"none"}}}},Me=Ae=>Ae-4*2;var Ve=(0,Dt.Z)("Radio",Ae=>{const{controlOutline:$t,controlOutlineWidth:Hn,radioSize:bn}=Ae,at=`0 0 0 ${Hn}px ${$t}`,ft=at,Gt=Me(bn),zn=(0,Yt.TS)(Ae,{radioDotDisabledSize:Gt,radioFocusShadow:at,radioButtonFocusShadow:ft});return[nt(zn),ct(zn),Ie(zn)]},Ae=>{const{wireframe:$t,padding:Hn,marginXS:bn,lineWidth:at,fontSizeLG:ft,colorText:Gt,colorBgContainer:zn,colorTextDisabled:mn,controlItemBgActiveDisabled:nn,colorTextLightSolid:Ft,colorPrimary:Pn,colorPrimaryHover:_n,colorPrimaryActive:Ee}=Ae,ue=4,se=ft,ye=$t?Me(se):se-(ue+at)*2;return{radioSize:se,dotSize:ye,dotColorDisabled:mn,buttonSolidCheckedColor:Ft,buttonSolidCheckedBg:Pn,buttonSolidCheckedHoverBg:_n,buttonSolidCheckedActiveBg:Ee,buttonBg:zn,buttonCheckedBg:zn,buttonColor:Gt,buttonCheckedBgDisabled:nn,buttonCheckedColorDisabled:mn,buttonPaddingInline:Hn-at,wrapperMarginInlineEnd:bn}}),Xe=ce(45353),Ct=ce(92429),wt=function(Ae,$t){var Hn={};for(var bn in Ae)Object.prototype.hasOwnProperty.call(Ae,bn)&&$t.indexOf(bn)<0&&(Hn[bn]=Ae[bn]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,bn=Object.getOwnPropertySymbols(Ae);at{var Hn,bn;const at=be.useContext(Te),ft=be.useContext(gt),{getPrefixCls:Gt,direction:zn,radio:mn}=be.useContext(_e.E_),nn=be.useRef(null),Ft=(0,kt.sQ)($t,nn),{isFormItemInput:Pn}=be.useContext(Je.aM),_n=Fr=>{var Nt,Rn;(Nt=Ae.onChange)===null||Nt===void 0||Nt.call(Ae,Fr),(Rn=at==null?void 0:at.onChange)===null||Rn===void 0||Rn.call(at,Fr)},{prefixCls:Ee,className:ue,rootClassName:se,children:ye,style:ve}=Ae,le=wt(Ae,["prefixCls","className","rootClassName","children","style"]),We=Gt("radio",Ee),Lt=((at==null?void 0:at.optionType)||ft)==="button",tn=Lt?`${We}-button`:We,[hn,sn]=Ve(We),yn=Object.assign({},le),ln=be.useContext(pt.Z);at&&(yn.name=at.name,yn.onChange=_n,yn.checked=Ae.value===at.value,yn.disabled=(Hn=yn.disabled)!==null&&Hn!==void 0?Hn:at.disabled),yn.disabled=(bn=yn.disabled)!==null&&bn!==void 0?bn:ln;const yr=tt()(`${tn}-wrapper`,{[`${tn}-wrapper-checked`]:yn.checked,[`${tn}-wrapper-disabled`]:yn.disabled,[`${tn}-wrapper-rtl`]:zn==="rtl",[`${tn}-wrapper-in-form-item`]:Pn},mn==null?void 0:mn.className,ue,se,sn);return hn(be.createElement(Xe.Z,{component:"Radio",disabled:yn.disabled},be.createElement("label",{className:yr,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),ve),onMouseEnter:Ae.onMouseEnter,onMouseLeave:Ae.onMouseLeave},be.createElement(Pt.Z,Object.assign({},yn,{className:tt()(yn.className,!Lt&&Ct.A),type:"radio",prefixCls:tn,ref:Ft})),ye!==void 0?be.createElement("span",null,ye):null)))};var Rt=be.forwardRef(Mt);const At=be.forwardRef((Ae,$t)=>{const{getPrefixCls:Hn,direction:bn}=be.useContext(_e.E_),[at,ft]=(0,Fe.Z)(Ae.defaultValue,{value:Ae.value}),Gt=Nt=>{const Rn=at,Gr=Nt.target.value;"value"in Ae||ft(Gr);const{onChange:li}=Ae;li&&Gr!==Rn&&li(Nt)},{prefixCls:zn,className:mn,rootClassName:nn,options:Ft,buttonStyle:Pn="outline",disabled:_n,children:Ee,size:ue,style:se,id:ye,onMouseEnter:ve,onMouseLeave:le,onFocus:We,onBlur:Lt}=Ae,tn=Hn("radio",zn),hn=`${tn}-group`,[sn,yn]=Ve(tn);let ln=Ee;Ft&&Ft.length>0&&(ln=Ft.map(Nt=>typeof Nt=="string"||typeof Nt=="number"?be.createElement(Rt,{key:Nt.toString(),prefixCls:tn,disabled:_n,value:Nt,checked:at===Nt},Nt):be.createElement(Rt,{key:`radio-group-value-options-${Nt.value}`,prefixCls:tn,disabled:Nt.disabled||_n,value:Nt.value,checked:at===Nt.value,title:Nt.title,style:Nt.style},Nt.label)));const yr=(0,Le.Z)(ue),Fr=tt()(hn,`${hn}-${Pn}`,{[`${hn}-${yr}`]:yr,[`${hn}-rtl`]:bn==="rtl"},mn,nn,yn);return sn(be.createElement("div",Object.assign({},(0,Ye.Z)(Ae,{aria:!0,data:!0}),{className:Fr,style:se,onMouseEnter:ve,onMouseLeave:le,onFocus:We,onBlur:Lt,id:ye,ref:$t}),be.createElement(pe,{value:{onChange:Gt,value:at,disabled:Ae.disabled,name:Ae.name,optionType:Ae.optionType}},ln)))});var xn=be.memo(At),jt=function(Ae,$t){var Hn={};for(var bn in Ae)Object.prototype.hasOwnProperty.call(Ae,bn)&&$t.indexOf(bn)<0&&(Hn[bn]=Ae[bn]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,bn=Object.getOwnPropertySymbols(Ae);at{const{getPrefixCls:Hn}=be.useContext(_e.E_),{prefixCls:bn}=Ae,at=jt(Ae,["prefixCls"]),ft=Hn("radio",bn);return be.createElement(ze,{value:"button"},be.createElement(Rt,Object.assign({prefixCls:ft},at,{type:"radio",ref:$t})))};var er=be.forwardRef(vn);const Sr=Rt;Sr.Button=er,Sr.Group=xn,Sr.__ANT_RADIO=!0;var qe=Sr},11713:function(Ln,qt,ce){"use strict";ce.d(qt,{default:function(){return hr}});var fe=ce(94184),tt=ce.n(fe),Fe=ce(87462),Ye=ce(74902),be=ce(4942),_e=ce(1413),Le=ce(97685),Se=ce(45987),pe=ce(71002),Te=ce(67294);function gt(Pe){var $e=Te.useRef();$e.current=Pe;var xt=Te.useCallback(function(){for(var rt,It=arguments.length,rn=new Array(It),fn=0;fn=Mt.F1&&xt<=Mt.F12)return!1;switch(xt){case Mt.ALT:case Mt.CAPS_LOCK:case Mt.CONTEXT_MENU:case Mt.CTRL:case Mt.DOWN:case Mt.END:case Mt.ESC:case Mt.HOME:case Mt.INSERT:case Mt.LEFT:case Mt.MAC_FF_META:case Mt.META:case Mt.NUMLOCK:case Mt.NUM_CENTER:case Mt.PAGE_DOWN:case Mt.PAGE_UP:case Mt.PAUSE:case Mt.PRINT_SCREEN:case Mt.RIGHT:case Mt.SHIFT:case Mt.UP:case Mt.WIN_KEY:case Mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function($e){if($e>=Mt.ZERO&&$e<=Mt.NINE||$e>=Mt.NUM_ZERO&&$e<=Mt.NUM_MULTIPLY||$e>=Mt.A&&$e<=Mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&$e===0)return!0;switch($e){case Mt.SPACE:case Mt.QUESTION_MARK:case Mt.NUM_PLUS:case Mt.NUM_MINUS:case Mt.NUM_PERIOD:case Mt.NUM_DIVISION:case Mt.SEMICOLON:case Mt.DASH:case Mt.EQUALS:case Mt.COMMA:case Mt.PERIOD:case Mt.SLASH:case Mt.APOSTROPHE:case Mt.SINGLE_QUOTE:case Mt.OPEN_SQUARE_BRACKET:case Mt.BACKSLASH:case Mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},je=Mt,Rt=ce(47655);function At(Pe,$e,xt){var rt=Te.useRef({});return(!("value"in rt.current)||xt(rt.current.condition,$e))&&(rt.current.value=Pe(),rt.current.condition=$e),rt.current.value}function xn(Pe,$e){typeof Pe=="function"?Pe($e):(0,pe.Z)(Pe)==="object"&&Pe&&"current"in Pe&&(Pe.current=$e)}function jt(){for(var Pe=arguments.length,$e=new Array(Pe),xt=0;xt5&&arguments[5]!==void 0?arguments[5]:!1,fn=arguments.length>6?arguments[6]:void 0,On=arguments.length>7?arguments[7]:void 0,wn=Te.useMemo(function(){if((0,pe.Z)(rt)==="object")return rt.clearIcon;if(It)return It},[rt,It]),Xt=Te.useMemo(function(){return!!(!rn&&rt&&(xt.length||fn)&&!(On==="combobox"&&fn===""))},[rt,rn,xt.length,fn,On]);return{allowClear:Xt,clearIcon:Te.createElement(qe,{className:"".concat(Pe,"-clear"),onMouseDown:$e,customizeIcon:wn},"\xD7")}}var $t=Te.createContext(null);function Hn(){return Te.useContext($t)}function bn(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$e=Te.useState(!1),xt=(0,Le.Z)($e,2),rt=xt[0],It=xt[1],rn=Te.useRef(null),fn=function(){window.clearTimeout(rn.current)};Te.useEffect(function(){return fn},[]);var On=function(Xt,Nn){fn(),rn.current=window.setTimeout(function(){It(Xt),Nn&&Nn()},Pe)};return[rt,On,fn]}function at(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$e=Te.useRef(null),xt=Te.useRef(null);Te.useEffect(function(){return function(){window.clearTimeout(xt.current)}},[]);function rt(It){(It||$e.current===null)&&($e.current=It),window.clearTimeout(xt.current),xt.current=window.setTimeout(function(){$e.current=null},Pe)}return[function(){return $e.current},rt]}function ft(Pe,$e,xt,rt){var It=Te.useRef(null);It.current={open:$e,triggerOpen:xt,customizedTrigger:rt},Te.useEffect(function(){function rn(fn){var On;if(!((On=It.current)!==null&&On!==void 0&&On.customizedTrigger)){var wn=fn.target;wn.shadowRoot&&fn.composed&&(wn=fn.composedPath()[0]||wn),It.current.open&&Pe().filter(function(Xt){return Xt}).every(function(Xt){return!Xt.contains(wn)&&Xt!==wn})&&It.current.triggerOpen(!1)}}return window.addEventListener("mousedown",rn),function(){return window.removeEventListener("mousedown",rn)}},[])}var Gt=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,zn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,mn="".concat(Gt," ").concat(zn).split(/[\s\n]+/),nn="aria-",Ft="data-";function Pn(Pe,$e){return Pe.indexOf($e)===0}function _n(Pe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt;$e===!1?xt={aria:!0,data:!0,attr:!0}:$e===!0?xt={aria:!0}:xt=(0,_e.Z)({},$e);var rt={};return Object.keys(Pe).forEach(function(It){(xt.aria&&(It==="role"||Pn(It,nn))||xt.data&&Pn(It,Ft)||xt.attr&&mn.includes(It))&&(rt[It]=Pe[It])}),rt}var Ee=ce(48555),ue=ce(14075),se=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ye=void 0;function ve(Pe,$e){var xt=Pe.prefixCls,rt=Pe.invalidate,It=Pe.item,rn=Pe.renderItem,fn=Pe.responsive,On=Pe.responsiveDisabled,wn=Pe.registerSize,Xt=Pe.itemKey,Nn=Pe.className,Fn=Pe.style,mr=Pe.children,Bn=Pe.display,Lr=Pe.order,Zr=Pe.component,Dr=Zr===void 0?"div":Zr,zr=(0,Se.Z)(Pe,se),xr=fn&&!Bn;function Or(Pi){wn(Xt,Pi)}Te.useEffect(function(){return function(){Or(null)}},[]);var Jr=rn&&It!==ye?rn(It):mr,ai;rt||(ai={opacity:xr?0:1,height:xr?0:ye,overflowY:xr?"hidden":ye,order:fn?Lr:ye,pointerEvents:xr?"none":ye,position:xr?"absolute":ye});var Ir={};xr&&(Ir["aria-hidden"]=!0);var ci=Te.createElement(Dr,(0,Fe.Z)({className:tt()(!rt&&xt,Nn),style:(0,_e.Z)((0,_e.Z)({},ai),Fn)},Ir,zr,{ref:$e}),Jr);return fn&&(ci=Te.createElement(Ee.Z,{onResize:function(ta){var Vi=ta.offsetWidth;Or(Vi)},disabled:On},ci)),ci}var le=Te.forwardRef(ve);le.displayName="Item";var We=le,Lt=ce(77527),tn=ce(73935),hn=ce(96523);function sn(Pe){if(typeof MessageChannel=="undefined")(0,hn.Z)(Pe);else{var $e=new MessageChannel;$e.port1.onmessage=function(){return Pe()},$e.port2.postMessage(void 0)}}function yn(){var Pe=Te.useRef(null),$e=function(rt){Pe.current||(Pe.current=[],sn(function(){(0,tn.unstable_batchedUpdates)(function(){Pe.current.forEach(function(It){It()}),Pe.current=null})})),Pe.current.push(rt)};return $e}function ln(Pe,$e){var xt=Te.useState($e),rt=(0,Le.Z)(xt,2),It=rt[0],rn=rt[1],fn=(0,Lt.Z)(function(On){Pe(function(){rn(On)})});return[It,fn]}var yr=Te.createContext(null),Fr=["component"],Nt=["className"],Rn=["className"],Gr=function($e,xt){var rt=Te.useContext(yr);if(!rt){var It=$e.component,rn=It===void 0?"div":It,fn=(0,Se.Z)($e,Fr);return Te.createElement(rn,(0,Fe.Z)({},fn,{ref:xt}))}var On=rt.className,wn=(0,Se.Z)(rt,Nt),Xt=$e.className,Nn=(0,Se.Z)($e,Rn);return Te.createElement(yr.Provider,{value:null},Te.createElement(We,(0,Fe.Z)({ref:xt,className:tt()(On,Xt)},wn,Nn)))},li=Te.forwardRef(Gr);li.displayName="RawItem";var st=li,Wt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Vn="responsive",ir="invalidate";function gr(Pe){return"+ ".concat(Pe.length," ...")}function Pr(Pe,$e){var xt=Pe.prefixCls,rt=xt===void 0?"rc-overflow":xt,It=Pe.data,rn=It===void 0?[]:It,fn=Pe.renderItem,On=Pe.renderRawItem,wn=Pe.itemKey,Xt=Pe.itemWidth,Nn=Xt===void 0?10:Xt,Fn=Pe.ssr,mr=Pe.style,Bn=Pe.className,Lr=Pe.maxCount,Zr=Pe.renderRest,Dr=Pe.renderRawRest,zr=Pe.suffix,xr=Pe.component,Or=xr===void 0?"div":xr,Jr=Pe.itemComponent,ai=Pe.onVisibleChange,Ir=(0,Se.Z)(Pe,Wt),ci=Fn==="full",Pi=yn(),ta=ln(Pi,null),Vi=(0,Le.Z)(ta,2),Bi=Vi[0],Xi=Vi[1],qi=Bi||0,bi=ln(Pi,new Map),$i=(0,Le.Z)(bi,2),jr=$i[0],di=$i[1],Ti=ln(Pi,0),ji=(0,Le.Z)(Ti,2),Ba=ji[0],$a=ji[1],Aa=ln(Pi,0),ca=(0,Le.Z)(Aa,2),Yi=ca[0],Mi=ca[1],Oa=ln(Pi,0),ki=(0,Le.Z)(Oa,2),Qr=ki[0],zi=ki[1],ua=(0,Te.useState)(null),Ui=(0,Le.Z)(ua,2),ia=Ui[0],hi=Ui[1],pa=(0,Te.useState)(null),xa=(0,Le.Z)(pa,2),fa=xa[0],wa=xa[1],Ea=Te.useMemo(function(){return fa===null&&ci?Number.MAX_SAFE_INTEGER:fa||0},[fa,Bi]),Va=(0,Te.useState)(!1),ha=(0,Le.Z)(Va,2),ka=ha[0],Ja=ha[1],Ga="".concat(rt,"-item"),so=Math.max(Ba,Yi),Fa=Lr===Vn,Ca=rn.length&&Fa,_i=Lr===ir,Ki=Ca||typeof Lr=="number"&&rn.length>Lr,da=(0,Te.useMemo)(function(){var aa=rn;return Ca?Bi===null&&ci?aa=rn:aa=rn.slice(0,Math.min(rn.length,qi/Nn)):typeof Lr=="number"&&(aa=rn.slice(0,Lr)),aa},[rn,Nn,Bi,Lr,Ca]),Sa=(0,Te.useMemo)(function(){return Ca?rn.slice(Ea+1):rn.slice(da.length)},[rn,da,Ca,Ea]),Ka=(0,Te.useCallback)(function(aa,Ar){var xi;return typeof wn=="function"?wn(aa):(xi=wn&&(aa==null?void 0:aa[wn]))!==null&&xi!==void 0?xi:Ar},[wn]),io=(0,Te.useCallback)(fn||function(aa){return aa},[fn]);function ho(aa,Ar,xi){fa===aa&&(Ar===void 0||Ar===ia)||(wa(aa),xi||(Ja(aaqi){ho(wi-1,aa-Di-Qr+Yi);break}}zr&&na(0)+Qr>qi&&hi(null)}},[qi,jr,Yi,Qr,Ka,da]);var Oi=ka&&!!Sa.length,Ta={};ia!==null&&Ca&&(Ta={position:"absolute",left:ia,top:0});var _a={prefixCls:Ga,responsive:Ca,component:Jr,invalidate:_i},co=On?function(aa,Ar){var xi=Ka(aa,Ar);return Te.createElement(yr.Provider,{key:xi,value:(0,_e.Z)((0,_e.Z)({},_a),{},{order:Ar,item:aa,itemKey:xi,registerSize:Ro,display:Ar<=Ea})},On(aa,Ar))}:function(aa,Ar){var xi=Ka(aa,Ar);return Te.createElement(We,(0,Fe.Z)({},_a,{order:Ar,key:xi,item:aa,renderItem:io,itemKey:xi,registerSize:Ro,display:Ar<=Ea}))},ao,hs={order:Oi?Ea:Number.MAX_SAFE_INTEGER,className:"".concat(Ga,"-rest"),registerSize:lo,display:Oi};if(Dr)Dr&&(ao=Te.createElement(yr.Provider,{value:(0,_e.Z)((0,_e.Z)({},_a),hs)},Dr(Sa)));else{var Qo=Zr||gr;ao=Te.createElement(We,(0,Fe.Z)({},_a,hs),typeof Qo=="function"?Qo(Sa):Qo)}var ps=Te.createElement(Or,(0,Fe.Z)({className:tt()(!_i&&rt,Bn),style:mr,ref:$e},Ir),da.map(co),Ki?ao:null,zr&&Te.createElement(We,(0,Fe.Z)({},_a,{responsive:Fa,responsiveDisabled:!Ca,order:Ea,className:"".concat(Ga,"-suffix"),registerSize:Ao,display:!0,style:Ta}),zr));return Fa&&(ps=Te.createElement(Ee.Z,{onResize:Oo,disabled:!Ca},ps)),ps}var Ur=Te.forwardRef(Pr);Ur.displayName="Overflow",Ur.Item=st,Ur.RESPONSIVE=Vn,Ur.INVALIDATE=ir;var Xr=Ur,qr=Xr,ui=function($e,xt){var rt,It,rn=$e.prefixCls,fn=$e.id,On=$e.inputElement,wn=$e.disabled,Xt=$e.tabIndex,Nn=$e.autoFocus,Fn=$e.autoComplete,mr=$e.editable,Bn=$e.activeDescendantId,Lr=$e.value,Zr=$e.maxLength,Dr=$e.onKeyDown,zr=$e.onMouseDown,xr=$e.onChange,Or=$e.onPaste,Jr=$e.onCompositionStart,ai=$e.onCompositionEnd,Ir=$e.open,ci=$e.attrs,Pi=On||Te.createElement("input",null),ta=Pi,Vi=ta.ref,Bi=ta.props,Xi=Bi.onKeyDown,qi=Bi.onChange,bi=Bi.onMouseDown,$i=Bi.onCompositionStart,jr=Bi.onCompositionEnd,di=Bi.style;return"maxLength"in Pi.props,Pi=Te.cloneElement(Pi,(0,_e.Z)((0,_e.Z)((0,_e.Z)({type:"search"},Bi),{},{id:fn,ref:jt(xt,Vi),disabled:wn,tabIndex:Xt,autoComplete:Fn||"off",autoFocus:Nn,className:tt()("".concat(rn,"-selection-search-input"),(rt=Pi)===null||rt===void 0||(It=rt.props)===null||It===void 0?void 0:It.className),role:"combobox","aria-label":"Search","aria-expanded":Ir||!1,"aria-haspopup":"listbox","aria-owns":"".concat(fn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(fn,"_list"),"aria-activedescendant":Ir?Bn:void 0},ci),{},{value:mr?Lr:"",maxLength:Zr,readOnly:!mr,unselectable:mr?null:"on",style:(0,_e.Z)((0,_e.Z)({},di),{},{opacity:mr?null:0}),onKeyDown:function(ji){Dr(ji),Xi&&Xi(ji)},onMouseDown:function(ji){zr(ji),bi&&bi(ji)},onChange:function(ji){xr(ji),qi&&qi(ji)},onCompositionStart:function(ji){Jr(ji),$i&&$i(ji)},onCompositionEnd:function(ji){ai(ji),jr&&jr(ji)},onPaste:Or})),Pi},br=Te.forwardRef(ui);br.displayName="Input";var Ei=br;function sa(Pe){return Array.isArray(Pe)?Pe:Pe!==void 0?[Pe]:[]}var Ji=typeof window!="undefined"&&window.document&&window.document.documentElement,Qi=Ji;function Ci(Pe){return Pe!=null}function mt(Pe){return!Pe&&Pe!==0}function Mn(Pe){return["string","number"].includes((0,pe.Z)(Pe))}function En(Pe){var $e=void 0;return Pe&&(Mn(Pe.title)?$e=Pe.title.toString():Mn(Pe.label)&&($e=Pe.label.toString())),$e}function An(Pe,$e){Qi?Te.useLayoutEffect(Pe,$e):Te.useEffect(Pe,$e)}function sr(Pe){var $e;return($e=Pe.key)!==null&&$e!==void 0?$e:Pe.value}var nr=function($e){$e.preventDefault(),$e.stopPropagation()},pr=function($e){var xt=$e.id,rt=$e.prefixCls,It=$e.values,rn=$e.open,fn=$e.searchValue,On=$e.autoClearSearchValue,wn=$e.inputRef,Xt=$e.placeholder,Nn=$e.disabled,Fn=$e.mode,mr=$e.showSearch,Bn=$e.autoFocus,Lr=$e.autoComplete,Zr=$e.activeDescendantId,Dr=$e.tabIndex,zr=$e.removeIcon,xr=$e.maxTagCount,Or=$e.maxTagTextLength,Jr=$e.maxTagPlaceholder,ai=Jr===void 0?function(hi){return"+ ".concat(hi.length," ...")}:Jr,Ir=$e.tagRender,ci=$e.onToggleOpen,Pi=$e.onRemove,ta=$e.onInputChange,Vi=$e.onInputPaste,Bi=$e.onInputKeyDown,Xi=$e.onInputMouseDown,qi=$e.onInputCompositionStart,bi=$e.onInputCompositionEnd,$i=Te.useRef(null),jr=(0,Te.useState)(0),di=(0,Le.Z)(jr,2),Ti=di[0],ji=di[1],Ba=(0,Te.useState)(!1),$a=(0,Le.Z)(Ba,2),Aa=$a[0],ca=$a[1],Yi="".concat(rt,"-selection"),Mi=rn||Fn==="multiple"&&On===!1||Fn==="tags"?fn:"",Oa=Fn==="tags"||Fn==="multiple"&&On===!1||mr&&(rn||Aa);An(function(){ji($i.current.scrollWidth)},[Mi]);function ki(hi,pa,xa,fa,wa){return Te.createElement("span",{className:tt()("".concat(Yi,"-item"),(0,be.Z)({},"".concat(Yi,"-item-disabled"),xa)),title:En(hi)},Te.createElement("span",{className:"".concat(Yi,"-item-content")},pa),fa&&Te.createElement(qe,{className:"".concat(Yi,"-item-remove"),onMouseDown:nr,onClick:wa,customizeIcon:zr},"\xD7"))}function Qr(hi,pa,xa,fa,wa){var Ea=function(ha){nr(ha),ci(!rn)};return Te.createElement("span",{onMouseDown:Ea},Ir({label:pa,value:hi,disabled:xa,closable:fa,onClose:wa}))}function zi(hi){var pa=hi.disabled,xa=hi.label,fa=hi.value,wa=!Nn&&!pa,Ea=xa;if(typeof Or=="number"&&(typeof xa=="string"||typeof xa=="number")){var Va=String(Ea);Va.length>Or&&(Ea="".concat(Va.slice(0,Or),"..."))}var ha=function(Ja){Ja&&Ja.stopPropagation(),Pi(hi)};return typeof Ir=="function"?Qr(fa,Ea,pa,wa,ha):ki(hi,Ea,pa,wa,ha)}function ua(hi){var pa=typeof ai=="function"?ai(hi):ai;return ki({title:pa},pa,!1)}var Ui=Te.createElement("div",{className:"".concat(Yi,"-search"),style:{width:Ti},onFocus:function(){ca(!0)},onBlur:function(){ca(!1)}},Te.createElement(Ei,{ref:wn,open:rn,prefixCls:rt,id:xt,inputElement:null,disabled:Nn,autoFocus:Bn,autoComplete:Lr,editable:Oa,activeDescendantId:Zr,value:Mi,onKeyDown:Bi,onMouseDown:Xi,onChange:ta,onPaste:Vi,onCompositionStart:qi,onCompositionEnd:bi,tabIndex:Dr,attrs:_n($e,!0)}),Te.createElement("span",{ref:$i,className:"".concat(Yi,"-search-mirror"),"aria-hidden":!0},Mi,"\xA0")),ia=Te.createElement(qr,{prefixCls:"".concat(Yi,"-overflow"),data:It,renderItem:zi,renderRest:ua,suffix:Ui,itemKey:sr,maxCount:xr});return Te.createElement(Te.Fragment,null,ia,!It.length&&!Mi&&Te.createElement("span",{className:"".concat(Yi,"-placeholder")},Xt))},Kn=pr,Ue=function($e){var xt=$e.inputElement,rt=$e.prefixCls,It=$e.id,rn=$e.inputRef,fn=$e.disabled,On=$e.autoFocus,wn=$e.autoComplete,Xt=$e.activeDescendantId,Nn=$e.mode,Fn=$e.open,mr=$e.values,Bn=$e.placeholder,Lr=$e.tabIndex,Zr=$e.showSearch,Dr=$e.searchValue,zr=$e.activeValue,xr=$e.maxLength,Or=$e.onInputKeyDown,Jr=$e.onInputMouseDown,ai=$e.onInputChange,Ir=$e.onInputPaste,ci=$e.onInputCompositionStart,Pi=$e.onInputCompositionEnd,ta=$e.title,Vi=Te.useState(!1),Bi=(0,Le.Z)(Vi,2),Xi=Bi[0],qi=Bi[1],bi=Nn==="combobox",$i=bi||Zr,jr=mr[0],di=Dr||"";bi&&zr&&!Xi&&(di=zr),Te.useEffect(function(){bi&&qi(!1)},[bi,zr]);var Ti=Nn!=="combobox"&&!Fn&&!Zr?!1:!!di,ji=ta===void 0?En(jr):ta,Ba=function(){if(jr)return null;var Aa=Ti?{visibility:"hidden"}:void 0;return Te.createElement("span",{className:"".concat(rt,"-selection-placeholder"),style:Aa},Bn)};return Te.createElement(Te.Fragment,null,Te.createElement("span",{className:"".concat(rt,"-selection-search")},Te.createElement(Ei,{ref:rn,prefixCls:rt,id:It,open:Fn,inputElement:xt,disabled:fn,autoFocus:On,autoComplete:wn,editable:$i,activeDescendantId:Xt,value:di,onKeyDown:Or,onMouseDown:Jr,onChange:function(Aa){qi(!0),ai(Aa)},onPaste:Ir,onCompositionStart:ci,onCompositionEnd:Pi,tabIndex:Lr,attrs:_n($e,!0),maxLength:bi?xr:void 0})),!bi&&jr?Te.createElement("span",{className:"".concat(rt,"-selection-item"),title:ji,style:Ti?{visibility:"hidden"}:void 0},jr.label):null,Ba())},it=Ue;function _t(Pe){return![je.ESC,je.SHIFT,je.BACKSPACE,je.TAB,je.WIN_KEY,je.ALT,je.META,je.WIN_KEY_RIGHT,je.CTRL,je.SEMICOLON,je.EQUALS,je.CAPS_LOCK,je.CONTEXT_MENU,je.F1,je.F2,je.F3,je.F4,je.F5,je.F6,je.F7,je.F8,je.F9,je.F10,je.F11,je.F12].includes(Pe)}var Ut=function($e,xt){var rt=(0,Te.useRef)(null),It=(0,Te.useRef)(!1),rn=$e.prefixCls,fn=$e.open,On=$e.mode,wn=$e.showSearch,Xt=$e.tokenWithEnter,Nn=$e.autoClearSearchValue,Fn=$e.onSearch,mr=$e.onSearchSubmit,Bn=$e.onToggleOpen,Lr=$e.onInputKeyDown,Zr=$e.domRef;Te.useImperativeHandle(xt,function(){return{focus:function(){rt.current.focus()},blur:function(){rt.current.blur()}}});var Dr=at(0),zr=(0,Le.Z)(Dr,2),xr=zr[0],Or=zr[1],Jr=function(di){var Ti=di.which;(Ti===je.UP||Ti===je.DOWN)&&di.preventDefault(),Lr&&Lr(di),Ti===je.ENTER&&On==="tags"&&!It.current&&!fn&&(mr==null||mr(di.target.value)),_t(Ti)&&Bn(!0)},ai=function(){Or(!0)},Ir=(0,Te.useRef)(null),ci=function(di){Fn(di,!0,It.current)!==!1&&Bn(!0)},Pi=function(){It.current=!0},ta=function(di){It.current=!1,On!=="combobox"&&ci(di.target.value)},Vi=function(di){var Ti=di.target.value;if(Xt&&Ir.current&&/[\r\n]/.test(Ir.current)){var ji=Ir.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ti=Ti.replace(ji,Ir.current)}Ir.current=null,ci(Ti)},Bi=function(di){var Ti=di.clipboardData,ji=Ti.getData("text");Ir.current=ji},Xi=function(di){var Ti=di.target;if(Ti!==rt.current){var ji=document.body.style.msTouchAction!==void 0;ji?setTimeout(function(){rt.current.focus()}):rt.current.focus()}},qi=function(di){var Ti=xr();di.target!==rt.current&&!Ti&&On!=="combobox"&&di.preventDefault(),(On!=="combobox"&&(!wn||!Ti)||!fn)&&(fn&&Nn!==!1&&Fn("",!0,!1),Bn())},bi={inputRef:rt,onInputKeyDown:Jr,onInputMouseDown:ai,onInputChange:Vi,onInputPaste:Bi,onInputCompositionStart:Pi,onInputCompositionEnd:ta},$i=On==="multiple"||On==="tags"?Te.createElement(Kn,(0,Fe.Z)({},$e,bi)):Te.createElement(it,(0,Fe.Z)({},$e,bi));return Te.createElement("div",{ref:Zr,className:"".concat(rn,"-selector"),onClick:Xi,onMouseDown:qi},$i)},Ke=Te.forwardRef(Ut);Ke.displayName="Selector";var ut=Ke,Ot=ce(62709),Tt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],zt=function($e){var xt=$e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"}}},Ht=function($e,xt){var rt=$e.prefixCls,It=$e.disabled,rn=$e.visible,fn=$e.children,On=$e.popupElement,wn=$e.animation,Xt=$e.transitionName,Nn=$e.dropdownStyle,Fn=$e.dropdownClassName,mr=$e.direction,Bn=mr===void 0?"ltr":mr,Lr=$e.placement,Zr=$e.builtinPlacements,Dr=$e.dropdownMatchSelectWidth,zr=$e.dropdownRender,xr=$e.dropdownAlign,Or=$e.getPopupContainer,Jr=$e.empty,ai=$e.getTriggerDOMNode,Ir=$e.onPopupVisibleChange,ci=$e.onPopupMouseEnter,Pi=(0,Se.Z)($e,Tt),ta="".concat(rt,"-dropdown"),Vi=On;zr&&(Vi=zr(On));var Bi=Te.useMemo(function(){return Zr||zt(Dr)},[Zr,Dr]),Xi=wn?"".concat(ta,"-").concat(wn):Xt,qi=typeof Dr=="number",bi=Te.useMemo(function(){return qi?null:Dr===!1?"minWidth":"width"},[Dr,qi]),$i=Nn;qi&&($i=(0,_e.Z)((0,_e.Z)({},$i),{},{width:Dr}));var jr=Te.useRef(null);return Te.useImperativeHandle(xt,function(){return{getPopupElement:function(){return jr.current}}}),Te.createElement(Ot.Z,(0,Fe.Z)({},Pi,{showAction:Ir?["click"]:[],hideAction:Ir?["click"]:[],popupPlacement:Lr||(Bn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Bi,prefixCls:ta,popupTransitionName:Xi,popup:Te.createElement("div",{ref:jr,onMouseEnter:ci},Vi),stretch:bi,popupAlign:xr,popupVisible:rn,getPopupContainer:Or,popupClassName:tt()(Fn,(0,be.Z)({},"".concat(ta,"-empty"),Jr)),popupStyle:$i,getTriggerDOMNode:ai,onPopupVisibleChange:Ir}),fn)},$n=Te.forwardRef(Ht);$n.displayName="SelectTrigger";var Cr=$n,Yn=ce(84506);function qn(Pe,$e){var xt=Pe.key,rt;return"value"in Pe&&(rt=Pe.value),xt!=null?xt:rt!==void 0?rt:"rc-index-key-".concat($e)}function rr(Pe,$e){var xt=Pe||{},rt=xt.label,It=xt.value,rn=xt.options,fn=xt.groupLabel,On=rt||($e?"children":"label");return{label:On,value:It||"value",options:rn||"options",groupLabel:fn||On}}function ar(Pe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xt=$e.fieldNames,rt=$e.childrenAsData,It=[],rn=rr(xt,!1),fn=rn.label,On=rn.value,wn=rn.options,Xt=rn.groupLabel;function Nn(Fn,mr){Fn.forEach(function(Bn){if(mr||!(wn in Bn)){var Lr=Bn[On];It.push({key:qn(Bn,It.length),groupOption:mr,data:Bn,label:Bn[fn],value:Lr})}else{var Zr=Bn[Xt];Zr===void 0&&rt&&(Zr=Bn.label),It.push({key:qn(Bn,It.length),group:!0,data:Bn,label:Zr}),Nn(Bn[wn],!0)}})}return Nn(Pe,!1),It}function ot(Pe){var $e=(0,_e.Z)({},Pe);return"props"in $e||Object.defineProperty($e,"props",{get:function(){return Ct(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$e}}),$e}function Qe(Pe,$e){if(!$e||!$e.length)return null;var xt=!1;function rt(rn,fn){var On=(0,Yn.Z)(fn),wn=On[0],Xt=On.slice(1);if(!wn)return[rn];var Nn=rn.split(wn);return xt=xt||Nn.length>1,Nn.reduce(function(Fn,mr){return[].concat((0,Ye.Z)(Fn),(0,Ye.Z)(rt(mr,Xt)))},[]).filter(function(Fn){return Fn})}var It=rt(Pe,$e);return xt?It:null}var vt=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Qt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Tn(Pe){return Pe==="tags"||Pe==="multiple"}var en=Te.forwardRef(function(Pe,$e){var xt,rt,It=Pe.id,rn=Pe.prefixCls,fn=Pe.className,On=Pe.showSearch,wn=Pe.tagRender,Xt=Pe.direction,Nn=Pe.omitDomProps,Fn=Pe.displayValues,mr=Pe.onDisplayValuesChange,Bn=Pe.emptyOptions,Lr=Pe.notFoundContent,Zr=Lr===void 0?"Not Found":Lr,Dr=Pe.onClear,zr=Pe.mode,xr=Pe.disabled,Or=Pe.loading,Jr=Pe.getInputElement,ai=Pe.getRawInputElement,Ir=Pe.open,ci=Pe.defaultOpen,Pi=Pe.onDropdownVisibleChange,ta=Pe.activeValue,Vi=Pe.onActiveValueChange,Bi=Pe.activeDescendantId,Xi=Pe.searchValue,qi=Pe.autoClearSearchValue,bi=Pe.onSearch,$i=Pe.onSearchSplit,jr=Pe.tokenSeparators,di=Pe.allowClear,Ti=Pe.suffixIcon,ji=Pe.clearIcon,Ba=Pe.OptionList,$a=Pe.animation,Aa=Pe.transitionName,ca=Pe.dropdownStyle,Yi=Pe.dropdownClassName,Mi=Pe.dropdownMatchSelectWidth,Oa=Pe.dropdownRender,ki=Pe.dropdownAlign,Qr=Pe.placement,zi=Pe.builtinPlacements,ua=Pe.getPopupContainer,Ui=Pe.showAction,ia=Ui===void 0?[]:Ui,hi=Pe.onFocus,pa=Pe.onBlur,xa=Pe.onKeyUp,fa=Pe.onKeyDown,wa=Pe.onMouseDown,Ea=(0,Se.Z)(Pe,vt),Va=Tn(zr),ha=(On!==void 0?On:Va)||zr==="combobox",ka=(0,_e.Z)({},Ea);Qt.forEach(function(Ia){delete ka[Ia]}),Nn==null||Nn.forEach(function(Ia){delete ka[Ia]});var Ja=Te.useState(!1),Ga=(0,Le.Z)(Ja,2),so=Ga[0],Fa=Ga[1];Te.useEffect(function(){Fa(wt())},[]);var Ca=Te.useRef(null),_i=Te.useRef(null),Ki=Te.useRef(null),da=Te.useRef(null),Sa=Te.useRef(null),Ka=bn(),io=(0,Le.Z)(Ka,3),ho=io[0],Oo=io[1],Ro=io[2];Te.useImperativeHandle($e,function(){var Ia,ma;return{focus:(Ia=da.current)===null||Ia===void 0?void 0:Ia.focus,blur:(ma=da.current)===null||ma===void 0?void 0:ma.blur,scrollTo:function(es){var ga;return(ga=Sa.current)===null||ga===void 0?void 0:ga.scrollTo(es)}}});var lo=Te.useMemo(function(){var Ia;if(zr!=="combobox")return Xi;var ma=(Ia=Fn[0])===null||Ia===void 0?void 0:Ia.value;return typeof ma=="string"||typeof ma=="number"?String(ma):""},[Xi,zr,Fn]),Ao=zr==="combobox"&&typeof Jr=="function"&&Jr()||null,na=typeof ai=="function"&&ai(),Oi=vn(_i,na==null||(xt=na.props)===null||xt===void 0?void 0:xt.ref),Ta=Te.useState(!1),_a=(0,Le.Z)(Ta,2),co=_a[0],ao=_a[1];kt(function(){ao(!0)},[]);var hs=Dt(!1,{defaultValue:ci,value:Ir}),Qo=(0,Le.Z)(hs,2),ps=Qo[0],aa=Qo[1],Ar=co?ps:!1,xi=!Zr&&Bn;(xr||xi&&Ar&&zr==="combobox")&&(Ar=!1);var wi=xi?!1:Ar,Di=Te.useCallback(function(Ia){var ma=Ia!==void 0?Ia:!Ar;xr||(aa(ma),Ar!==ma&&(Pi==null||Pi(ma)))},[xr,Ar,aa,Pi]),Ha=Te.useMemo(function(){return(jr||[]).some(function(Ia){return[` `,`\r `].includes(Ia)})},[jr]),ja=function(ma,Ho,es){var ga=!0,za=ma;Vi==null||Vi(null);var Ra=es?null:Qe(ma,jr);return zr!=="combobox"&&Ra&&(za="",$i==null||$i(Ra),Di(!1),ga=!1),bi&&lo!==za&&bi(za,{source:Ho?"typing":"effect"}),ga},Fo=function(ma){!ma||!ma.trim()||bi(ma,{source:"submit"})};Te.useEffect(function(){!Ar&&!Va&&zr!=="combobox"&&ja("",!1,!1)},[Ar]),Te.useEffect(function(){ps&&xr&&aa(!1),xr&&Oo(!1)},[xr]);var Uo=at(),ls=(0,Le.Z)(Uo,2),va=ls[0],No=ls[1],cs=function(ma){var Ho=va(),es=ma.which;if(es===je.ENTER&&(zr!=="combobox"&&ma.preventDefault(),Ar||Di(!0)),No(!!lo),es===je.BACKSPACE&&!Ho&&Va&&!lo&&Fn.length){for(var ga=(0,Ye.Z)(Fn),za=null,Ra=ga.length-1;Ra>=0;Ra-=1){var po=ga[Ra];if(!po.disabled){ga.splice(Ra,1),za=po;break}}za&&mr(ga,{type:"remove",values:[za]})}for(var is=arguments.length,Hs=new Array(is>1?is-1:0),gs=1;gs1?Ho-1:0),ga=1;ga1?Ra-1:0),is=1;is1&&arguments[1]!==void 0?arguments[1]:{},xt=[];return Te.Children.forEach(Pe,function(rt){rt==null&&!$e.keepEmpty||(Array.isArray(rt)?xt=xt.concat(Li(rt)):(0,Rt.isFragment)(rt)&&rt.props?xt=xt.concat(Li(rt.props.children,$e)):xt.push(rt))}),xt}var pi=["children","value"],Gi=["children"];function yi(Pe){var $e=Pe,xt=$e.key,rt=$e.props,It=rt.children,rn=rt.value,fn=(0,Se.Z)(rt,pi);return(0,_e.Z)({key:xt,value:rn!==void 0?rn:xt,children:It},fn)}function ii(Pe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Li(Pe).map(function(xt,rt){if(!Te.isValidElement(xt)||!xt.type)return null;var It=xt,rn=It.type.isSelectOptGroup,fn=It.key,On=It.props,wn=On.children,Xt=(0,Se.Z)(On,Gi);return $e||!rn?yi(xt):(0,_e.Z)((0,_e.Z)({key:"__RC_SELECT_GRP__".concat(fn===null?rt:fn,"__"),label:fn},Xt),{},{options:ii(wn)})}).filter(function(xt){return xt})}function Ni(Pe,$e,xt,rt,It){return Te.useMemo(function(){var rn=Pe,fn=!Pe;fn&&(rn=ii($e));var On=new Map,wn=new Map,Xt=function(mr,Bn,Lr){Lr&&typeof Lr=="string"&&mr.set(Bn[Lr],Bn)};function Nn(Fn){for(var mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bn=0;Bn1&&arguments[1]!==void 0?arguments[1]:1,ua=Vi.length,Ui=0;Ui1&&arguments[1]!==void 0?arguments[1]:!1;Ti(Qr);var ua={source:zi?"keyboard":"mouse"},Ui=Vi[Qr];if(!Ui){Zr(null,-1,ua);return}Zr(Ui.value,Qr,ua)};(0,Te.useEffect)(function(){ji(Dr!==!1?bi(0):-1)},[Vi.length,Xt]);var Ba=Te.useCallback(function(ki){return Or.has(ki)&&wn!=="combobox"},[wn,(0,Ye.Z)(Or).toString(),Or.size]);(0,Te.useEffect)(function(){var ki=setTimeout(function(){if(!On&&fn&&Or.size===1){var zi=Array.from(Or)[0],ua=Vi.findIndex(function(Ui){var ia=Ui.data;return ia.value===zi});ua!==-1&&(ji(ua),qi(ua))}});if(fn){var Qr;(Qr=Bi.current)===null||Qr===void 0||Qr.scrollTo(void 0)}return function(){return clearTimeout(ki)}},[fn,Xt,Lr.length]);var $a=function(Qr){Qr!==void 0&&zr(Qr,{selected:!Or.has(Qr)}),On||Nn(!1)};if(Te.useImperativeHandle(xt,function(){return{onKeyDown:function(Qr){var zi=Qr.which,ua=Qr.ctrlKey;switch(zi){case je.N:case je.P:case je.UP:case je.DOWN:{var Ui=0;if(zi===je.UP?Ui=-1:zi===je.DOWN?Ui=1:Bt()&&ua&&(zi===je.N?Ui=1:zi===je.P&&(Ui=-1)),Ui!==0){var ia=bi(di+Ui,Ui);qi(ia),ji(ia,!0)}break}case je.ENTER:{var hi=Vi[di];hi&&!hi.data.disabled?$a(hi.value):$a(void 0),fn&&Qr.preventDefault();break}case je.ESC:Nn(!1),fn&&Qr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Qr){qi(Qr)}}}),Vi.length===0)return Te.createElement("div",{role:"listbox",id:"".concat(rn,"_list"),className:"".concat(ta,"-empty"),onMouseDown:Xi},Fn);var Aa=Object.keys(Jr).map(function(ki){return Jr[ki]}),ca=function(Qr){return Qr.label};function Yi(ki,Qr){var zi=ki.group;return{role:zi?"presentation":"option",id:"".concat(rn,"_list_").concat(Qr)}}var Mi=function(Qr){var zi=Vi[Qr];if(!zi)return null;var ua=zi.data||{},Ui=ua.value,ia=zi.group,hi=_n(ua,!0),pa=ca(zi);return zi?Te.createElement("div",(0,Fe.Z)({"aria-label":typeof pa=="string"&&!ia?pa:null},hi,{key:Qr},Yi(zi,Qr),{"aria-selected":Ba(Ui)}),Ui):null},Oa={role:"listbox",id:"".concat(rn,"_list")};return Te.createElement(Te.Fragment,null,ai&&Te.createElement("div",(0,Fe.Z)({},Oa,{style:{height:0,width:0,overflow:"hidden"}}),Mi(di-1),Mi(di),Mi(di+1)),Te.createElement(ti.Z,{itemKey:"key",ref:Bi,data:Vi,height:ci,itemHeight:Pi,fullHeight:!1,onMouseDown:Xi,onScroll:mr,virtual:ai,direction:Ir,innerProps:ai?null:Oa},function(ki,Qr){var zi,ua=ki.group,Ui=ki.groupOption,ia=ki.data,hi=ki.label,pa=ki.value,xa=ia.key;if(ua){var fa,wa=(fa=ia.title)!==null&&fa!==void 0?fa:kn(hi)?hi.toString():void 0;return Te.createElement("div",{className:tt()(ta,"".concat(ta,"-group")),title:wa},hi!==void 0?hi:xa)}var Ea=ia.disabled,Va=ia.title,ha=ia.children,ka=ia.style,Ja=ia.className,Ga=(0,Se.Z)(ia,an),so=ea(Ga,Aa),Fa=Ba(pa),Ca="".concat(ta,"-option"),_i=tt()(ta,Ca,Ja,(zi={},(0,be.Z)(zi,"".concat(Ca,"-grouped"),Ui),(0,be.Z)(zi,"".concat(Ca,"-active"),di===Qr&&!Ea),(0,be.Z)(zi,"".concat(Ca,"-disabled"),Ea),(0,be.Z)(zi,"".concat(Ca,"-selected"),Fa),zi)),Ki=ca(ki),da=!xr||typeof xr=="function"||Fa,Sa=typeof Ki=="number"?Ki:Ki||pa,Ka=kn(Sa)?Sa.toString():void 0;return Va!==void 0&&(Ka=Va),Te.createElement("div",(0,Fe.Z)({},_n(so),ai?{}:Yi(ki,Qr),{"aria-selected":Fa,className:_i,title:Ka,onMouseMove:function(){di===Qr||Ea||ji(Qr)},onClick:function(){Ea||$a(pa)},style:ka}),Te.createElement("div",{className:"".concat(Ca,"-content")},Sa),Te.isValidElement(xr)||Fa,da&&Te.createElement(qe,{className:"".concat(ta,"-option-state"),customizeIcon:xr,customizeIconProps:{isSelected:Fa}},Fa?"\u2713":null))}))},Er=Te.forwardRef(ur);Er.displayName="OptionList";var Br=Er;function Hr(Pe){var $e=Pe.mode,xt=Pe.options,rt=Pe.children,It=Pe.backfill,rn=Pe.allowClear,fn=Pe.placeholder,On=Pe.getInputElement,wn=Pe.showSearch,Xt=Pe.onSearch,Nn=Pe.defaultOpen,Fn=Pe.autoFocus,mr=Pe.labelInValue,Bn=Pe.value,Lr=Pe.inputValue,Zr=Pe.optionLabelProp,Dr=isMultiple($e),zr=wn!==void 0?wn:Dr||$e==="combobox",xr=xt||convertChildrenToData(rt);if(warning($e!=="tags"||xr.every(function(Ir){return!Ir.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$e==="tags"||$e==="combobox"){var Or=xr.some(function(Ir){return Ir.options?Ir.options.some(function(ci){return typeof("value"in ci?ci.value:ci.key)=="number"}):typeof("value"in Ir?Ir.value:Ir.key)=="number"});warning(!Or,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning($e!=="combobox"||!Zr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning($e==="combobox"||!It,"`backfill` only works with `combobox` mode."),warning($e==="combobox"||!On,"`getInputElement` only work with `combobox` mode."),noteOnce($e!=="combobox"||!On||!rn||!fn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Xt&&!zr&&$e!=="combobox"&&$e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Nn||Fn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Bn!=null){var Jr=toArray(Bn);warning(!mr||Jr.every(function(Ir){return _typeof(Ir)==="object"&&("key"in Ir||"value"in Ir)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Dr||Array.isArray(Bn),"`value` should be array when `mode` is `multiple` or `tags`")}if(rt){var ai=null;toNodeArray(rt).some(function(Ir){if(!React.isValidElement(Ir)||!Ir.type)return!1;var ci=Ir,Pi=ci.type;if(Pi.isSelectOption)return!1;if(Pi.isSelectOptGroup){var ta=toNodeArray(Ir.props.children).every(function(Vi){return!React.isValidElement(Vi)||!Ir.type||Vi.type.isSelectOption?!0:(ai=Vi.type,!1)});return!ta}return ai=Pi,!0}),ai&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ai.displayName||ai.name||ai,"`.")),warning(Lr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Nr(Pe,$e){if(Pe){var xt=function rt(It){for(var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn=0;fn2&&arguments[2]!==void 0?arguments[2]:{},Di=wi.source,Ha=Di===void 0?"keyboard":Di;Oi(xi),fn&&rt==="combobox"&&Ar!==null&&Ha==="keyboard"&&Ro(String(Ar))},[fn,rt]),co=function(xi,wi,Di){var Ha=function(){var ms,zo=Ja(xi);return[di?{label:zo==null?void 0:zo[Yi.label],value:xi,key:(ms=zo==null?void 0:zo.key)!==null&&ms!==void 0?ms:xi}:xi,ot(zo)]};if(wi&&Bn){var ja=Ha(),Fo=(0,Le.Z)(ja,2),Uo=Fo[0],ls=Fo[1];Bn(Uo,ls)}else if(!wi&&Lr&&Di!=="clear"){var va=Ha(),No=(0,Le.Z)(va,2),cs=No[0],ul=No[1];Lr(cs,ul)}},ao=Zi(function(Ar,xi){var wi,Di=$a?xi.selected:!0;Di?wi=$a?[].concat((0,Ye.Z)(ka),[Ar]):[Ar]:wi=ka.filter(function(Ha){return Ha.value!==Ar}),Ka(wi),co(Ar,Di),rt==="combobox"?Ro(""):(!Tn||mr)&&(Qr(""),Ro(""))}),hs=function(xi,wi){Ka(xi);var Di=wi.type,Ha=wi.values;(Di==="remove"||Di==="clear")&&Ha.forEach(function(ja){co(ja.value,!1,Di)})},Qo=function(xi,wi){if(Qr(xi),Ro(null),wi.source==="submit"){var Di=(xi||"").trim();if(Di){var Ha=Array.from(new Set([].concat((0,Ye.Z)(so),[Di])));Ka(Ha),co(Di,!0),Qr("")}return}wi.source!=="blur"&&(rt==="combobox"&&Ka(xi),Nn==null||Nn(xi))},ps=function(xi){var wi=xi;rt!=="tags"&&(wi=xi.map(function(Ha){var ja=Ui.get(Ha);return ja==null?void 0:ja.value}).filter(function(Ha){return Ha!==void 0}));var Di=Array.from(new Set([].concat((0,Ye.Z)(so),(0,Ye.Z)(wi))));Ka(Di),Di.forEach(function(Ha){co(Ha,!0)})},aa=Te.useMemo(function(){var Ar=ta!==!1&&Dr!==!1;return(0,_e.Z)((0,_e.Z)({},zi),{},{flattenOptions:Sa,onActiveValue:_a,defaultActiveFirstOption:Ta,onSelect:ao,menuItemSelectedIcon:Pi,rawValues:so,fieldNames:Yi,virtual:Ar,direction:Vi,listHeight:Xi,listItemHeight:bi,childrenAsData:Aa})},[zi,Sa,_a,Ta,ao,Pi,so,Yi,ta,Dr,Xi,bi,Aa]);return Te.createElement(ht.Provider,{value:aa},Te.createElement(cn,(0,Fe.Z)({},ji,{id:Ba,prefixCls:rn,ref:$e,omitDomProps:Mr,mode:rt,displayValues:Ga,onDisplayValuesChange:hs,direction:Vi,searchValue:ki,onSearch:Qo,autoClearSearchValue:mr,onSearchSplit:ps,dropdownMatchSelectWidth:Dr,OptionList:Br,emptyOptions:!Sa.length,activeValue:Oo,activeDescendantId:"".concat(Ba,"_list_").concat(na)})))}),Si=Ai;Si.Option=la,Si.OptGroup=mi;var Ce=Si,Ne=Ce,Be=ce(10366),He=ce(8745),Ge=ce(33603),et=ce(9708),bt=ce(53124),Zt=ce(98866),Jt=ce(88258),Gn=ce(98675),fr=ce(65223),Wn=ce(4173),pn=ce(87244),dn=ce(13458),Cn=ce(78642),In=ce(46163),cr=function(Pe,$e){var xt={};for(var rt in Pe)Object.prototype.hasOwnProperty.call(Pe,rt)&&$e.indexOf(rt)<0&&(xt[rt]=Pe[rt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,rt=Object.getOwnPropertySymbols(Pe);It{var xt,{prefixCls:rt,bordered:It=!0,className:rn,rootClassName:fn,getPopupContainer:On,popupClassName:wn,dropdownClassName:Xt,listHeight:Nn=256,placement:Fn,listItemHeight:mr=24,size:Bn,disabled:Lr,notFoundContent:Zr,status:Dr,builtinPlacements:zr,dropdownMatchSelectWidth:xr,popupMatchSelectWidth:Or,direction:Jr,style:ai,allowClear:Ir}=Pe,ci=cr(Pe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Pi,getPrefixCls:ta,renderEmpty:Vi,direction:Bi,virtual:Xi,popupMatchSelectWidth:qi,popupOverflow:bi,select:$i}=Te.useContext(bt.E_),jr=ta("select",rt),di=ta(),Ti=Jr!=null?Jr:Bi,{compactSize:ji,compactItemClassnames:Ba}=(0,Wn.ri)(jr,Ti),[$a,Aa]=(0,pn.Z)(jr),ca=Te.useMemo(()=>{const{mode:Ca}=ci;if(Ca!=="combobox")return Ca===jn?"combobox":Ca},[ci.mode]),Yi=ca==="multiple"||ca==="tags",Mi=(0,Cn.Z)(ci.suffixIcon,ci.showArrow),Oa=(xt=Or!=null?Or:xr)!==null&&xt!==void 0?xt:qi,{status:ki,hasFeedback:Qr,isFormItemInput:zi,feedbackIcon:ua}=Te.useContext(fr.aM),Ui=(0,et.F)(ki,Dr);let ia;Zr!==void 0?ia=Zr:ca==="combobox"?ia=null:ia=(Vi==null?void 0:Vi("Select"))||Te.createElement(Jt.Z,{componentName:"Select"});const{suffixIcon:hi,itemIcon:pa,removeIcon:xa,clearIcon:fa}=(0,In.Z)(Object.assign(Object.assign({},ci),{multiple:Yi,hasFeedback:Qr,feedbackIcon:ua,showSuffixIcon:Mi,prefixCls:jr,showArrow:ci.showArrow,componentName:"Select"})),wa=Ir===!0?{clearIcon:fa}:Ir,Ea=(0,Be.Z)(ci,["suffixIcon","itemIcon"]),Va=tt()(wn||Xt,{[`${jr}-dropdown-${Ti}`]:Ti==="rtl"},fn,Aa),ha=(0,Gn.Z)(Ca=>{var _i;return(_i=Bn!=null?Bn:ji)!==null&&_i!==void 0?_i:Ca}),ka=Te.useContext(Zt.Z),Ja=Lr!=null?Lr:ka,Ga=tt()({[`${jr}-lg`]:ha==="large",[`${jr}-sm`]:ha==="small",[`${jr}-rtl`]:Ti==="rtl",[`${jr}-borderless`]:!It,[`${jr}-in-form-item`]:zi},(0,et.Z)(jr,Ui,Qr),Ba,$i==null?void 0:$i.className,rn,fn,Aa),so=Te.useMemo(()=>Fn!==void 0?Fn:Ti==="rtl"?"bottomRight":"bottomLeft",[Fn,Ti]),Fa=(0,dn.Z)(zr,bi);return $a(Te.createElement(Ne,Object.assign({ref:$e,virtual:Xi,showSearch:$i==null?void 0:$i.showSearch},Ea,{style:Object.assign(Object.assign({},$i==null?void 0:$i.style),ai),dropdownMatchSelectWidth:Oa,builtinPlacements:Fa,transitionName:(0,Ge.m)(di,"slide-up",ci.transitionName),listHeight:Nn,listItemHeight:mr,mode:ca,prefixCls:jr,placement:so,direction:Ti,suffixIcon:hi,menuItemSelectedIcon:pa,removeIcon:xa,allowClear:wa,notFoundContent:ia,className:Ga,getPopupContainer:On||Pi,dropdownClassName:Va,disabled:Ja})))},Jn=Te.forwardRef(Zn),Qn=(0,He.Z)(Jn);Jn.SECRET_COMBOBOX_MODE_DO_NOT_USE=jn,Jn.Option=la,Jn.OptGroup=mi,Jn._InternalPanelDoNotUseOrYouWillBeFired=Qn;var hr=Jn},87244:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Ie}});var fe=ce(14747),tt=ce(80110),Fe=ce(45503),Ye=ce(67968),be=ce(67771),_e=ce(33297);const Le=Me=>{const{optionHeight:Ve,optionFontSize:Xe,optionLineHeight:Ct,optionPadding:wt}=Me;return{position:"relative",display:"block",minHeight:Ve,padding:wt,color:Me.colorText,fontWeight:"normal",fontSize:Xe,lineHeight:Ct,boxSizing:"border-box"}};var pe=Me=>{const{antCls:Ve,componentCls:Xe}=Me,Ct=`${Xe}-item`,wt=`&${Ve}-slide-up-enter${Ve}-slide-up-enter-active`,Mt=`&${Ve}-slide-up-appear${Ve}-slide-up-appear-active`,je=`&${Ve}-slide-up-leave${Ve}-slide-up-leave-active`,Rt=`${Xe}-dropdown-placement-`;return[{[`${Xe}-dropdown`]:Object.assign(Object.assign({},(0,fe.Wf)(Me)),{position:"absolute",top:-9999,zIndex:Me.zIndexPopup,boxSizing:"border-box",padding:Me.paddingXXS,overflow:"hidden",fontSize:Me.fontSize,fontVariant:"initial",backgroundColor:Me.colorBgElevated,borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary,[` ${wt}${Rt}bottomLeft, ${Mt}${Rt}bottomLeft `]:{animationName:be.fJ},[` ${wt}${Rt}topLeft, ${Mt}${Rt}topLeft, ${wt}${Rt}topRight, ${Mt}${Rt}topRight `]:{animationName:be.Qt},[`${je}${Rt}bottomLeft`]:{animationName:be.Uw},[` ${je}${Rt}topLeft, ${je}${Rt}topRight `]:{animationName:be.ly},"&-hidden":{display:"none"},[`${Ct}`]:Object.assign(Object.assign({},Le(Me)),{cursor:"pointer",transition:`background ${Me.motionDurationSlow} ease`,borderRadius:Me.borderRadiusSM,"&-group":{color:Me.colorTextDescription,fontSize:Me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},fe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ct}-option-disabled)`]:{backgroundColor:Me.optionActiveBg},[`&-selected:not(${Ct}-option-disabled)`]:{color:Me.optionSelectedColor,fontWeight:Me.optionSelectedFontWeight,backgroundColor:Me.optionSelectedBg,[`${Ct}-option-state`]:{color:Me.colorPrimary}},"&-disabled":{[`&${Ct}-option-selected`]:{backgroundColor:Me.colorBgContainerDisabled},color:Me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Me.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,be.oN)(Me,"slide-up"),(0,be.oN)(Me,"slide-down"),(0,_e.Fm)(Me,"move-up"),(0,_e.Fm)(Me,"move-down")]};const Te=2,gt=Me=>{let{controlHeightSM:Ve,controlHeight:Xe,lineWidth:Ct}=Me;const wt=(Xe-Ve)/2-Ct,Mt=Math.ceil(wt/2);return[wt,Mt]};function ze(Me,Ve){const{componentCls:Xe,iconCls:Ct}=Me,wt=`${Xe}-selection-overflow`,Mt=Me.multipleSelectItemHeight,[je]=gt(Me),Rt=Ve?`${Xe}-${Ve}`:"";return{[`${Xe}-multiple${Rt}`]:{fontSize:Me.fontSize,[wt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Xe}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${je-Te}px ${Te*2}px`,borderRadius:Me.borderRadius,[`${Xe}-show-search&`]:{cursor:"text"},[`${Xe}-disabled&`]:{background:Me.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Te}px 0`,lineHeight:`${Mt}px`,visibility:"hidden",content:'"\\a0"'}},[` &${Xe}-show-arrow ${Xe}-selector, &${Xe}-allow-clear ${Xe}-selector `]:{paddingInlineEnd:Me.fontSizeIcon+Me.controlPaddingHorizontal},[`${Xe}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Mt,marginTop:Te,marginBottom:Te,lineHeight:`${Mt-Me.lineWidth*2}px`,background:Me.multipleItemBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.multipleItemBorderColor}`,borderRadius:Me.borderRadiusSM,cursor:"default",transition:`font-size ${Me.motionDurationSlow}, line-height ${Me.motionDurationSlow}, height ${Me.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Te*2,paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS/2,[`${Xe}-disabled&`]:{color:Me.multipleItemColorDisabled,borderColor:Me.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Me.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,fe.Ro)()),{display:"inline-flex",alignItems:"center",color:Me.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ct}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Me.colorIconHover}})},[`${wt}-item + ${wt}-item`]:{[`${Xe}-selection-search`]:{marginInlineStart:0}},[`${Xe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Me.inputPaddingHorizontalBase-je,"\n &-input,\n &-mirror\n ":{height:Mt,fontFamily:Me.fontFamily,lineHeight:`${Mt}px`,transition:`all ${Me.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Xe}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Me.inputPaddingHorizontalBase,insetInlineEnd:Me.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Me.motionDurationSlow}`}}}}var kt=Me=>{const{componentCls:Ve}=Me,Xe=(0,Fe.TS)(Me,{controlHeight:Me.controlHeightSM,multipleSelectItemHeight:Me.controlHeightXS,borderRadius:Me.borderRadiusSM,borderRadiusSM:Me.borderRadiusXS}),Ct=(0,Fe.TS)(Me,{fontSize:Me.fontSizeLG,controlHeight:Me.controlHeightLG,multipleSelectItemHeight:Me.multipleItemHeightLG,borderRadius:Me.borderRadiusLG,borderRadiusSM:Me.borderRadius}),[,wt]=gt(Me);return[ze(Me),ze(Xe,"sm"),{[`${Ve}-multiple${Ve}-sm`]:{[`${Ve}-selection-placeholder`]:{insetInline:Me.controlPaddingHorizontalSM-Me.lineWidth},[`${Ve}-selection-search`]:{marginInlineStart:wt}}},ze(Ct,"lg")]};function pt(Me,Ve){const{componentCls:Xe,inputPaddingHorizontalBase:Ct,borderRadius:wt}=Me,Mt=Me.controlHeight-Me.lineWidth*2,je=Math.ceil(Me.fontSize*1.25),Rt=Ve?`${Xe}-${Ve}`:"";return{[`${Xe}-single${Rt}`]:{fontSize:Me.fontSize,[`${Xe}-selector`]:Object.assign(Object.assign({},(0,fe.Wf)(Me)),{display:"flex",borderRadius:wt,[`${Xe}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ct,insetInlineEnd:Ct,bottom:0,"&-input":{width:"100%"}},[` ${Xe}-selection-item, ${Xe}-selection-placeholder `]:{padding:0,lineHeight:`${Mt}px`,transition:`all ${Me.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Mt}px`}},[`${Xe}-selection-item`]:{position:"relative",userSelect:"none"},[`${Xe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Xe}-selection-item:after`,`${Xe}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Xe}-show-arrow ${Xe}-selection-item, &${Xe}-show-arrow ${Xe}-selection-placeholder `]:{paddingInlineEnd:je},[`&${Xe}-open ${Xe}-selection-item`]:{color:Me.colorTextPlaceholder},[`&:not(${Xe}-customize-input)`]:{[`${Xe}-selector`]:{width:"100%",height:Me.controlHeight,padding:`0 ${Ct}px`,[`${Xe}-selection-search-input`]:{height:Mt},"&:after":{lineHeight:`${Mt}px`}}},[`&${Xe}-customize-input`]:{[`${Xe}-selector`]:{"&:after":{display:"none"},[`${Xe}-selection-search`]:{position:"static",width:"100%"},[`${Xe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ct}px`,"&:after":{display:"none"}}}}}}}function Je(Me){const{componentCls:Ve}=Me,Xe=Me.controlPaddingHorizontalSM-Me.lineWidth;return[pt(Me),pt((0,Fe.TS)(Me,{controlHeight:Me.controlHeightSM,borderRadius:Me.borderRadiusSM}),"sm"),{[`${Ve}-single${Ve}-sm`]:{[`&:not(${Ve}-customize-input)`]:{[`${Ve}-selection-search`]:{insetInlineStart:Xe,insetInlineEnd:Xe},[`${Ve}-selector`]:{padding:`0 ${Xe}px`},[`&${Ve}-show-arrow ${Ve}-selection-search`]:{insetInlineEnd:Xe+Me.fontSize*1.5},[` &${Ve}-show-arrow ${Ve}-selection-item, &${Ve}-show-arrow ${Ve}-selection-placeholder `]:{paddingInlineEnd:Me.fontSize*1.5}}}},pt((0,Fe.TS)(Me,{controlHeight:Me.singleItemHeightLG,fontSize:Me.fontSizeLG,borderRadius:Me.borderRadiusLG}),"lg")]}const De=Me=>{const{componentCls:Ve,selectorBg:Xe}=Me;return{position:"relative",backgroundColor:Xe,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,transition:`all ${Me.motionDurationMid} ${Me.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ve}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ve}-disabled&`]:{color:Me.colorTextDisabled,background:Me.colorBgContainerDisabled,cursor:"not-allowed",[`${Ve}-multiple&`]:{background:Me.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Dt=function(Me,Ve){let Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ct,borderHoverColor:wt,outlineColor:Mt,antCls:je}=Ve,Rt=Xe?{[`${Ct}-selector`]:{borderColor:wt}}:{};return{[Me]:{[`&:not(${Ct}-disabled):not(${Ct}-customize-input):not(${je}-pagination-size-changer)`]:Object.assign(Object.assign({},Rt),{[`${Ct}-focused& ${Ct}-selector`]:{borderColor:wt,boxShadow:`0 0 0 ${Ve.controlOutlineWidth}px ${Mt}`,outline:0},[`&:hover ${Ct}-selector`]:{borderColor:wt}})}}},Yt=Me=>{const{componentCls:Ve}=Me;return{[`${Ve}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},nt=Me=>{const{componentCls:Ve,inputPaddingHorizontalBase:Xe,iconCls:Ct}=Me;return{[Ve]:Object.assign(Object.assign({},(0,fe.Wf)(Me)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ve}-customize-input) ${Ve}-selector`]:Object.assign(Object.assign({},De(Me)),Yt(Me)),[`${Ve}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},fe.vS),[`${Ve}-selection-placeholder`]:Object.assign(Object.assign({},fe.vS),{flex:1,color:Me.colorTextPlaceholder,pointerEvents:"none"}),[`${Ve}-arrow`]:Object.assign(Object.assign({},(0,fe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Xe,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ct]:{verticalAlign:"top",transition:`transform ${Me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ve}-suffix)`]:{pointerEvents:"auto"}},[`${Ve}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ve}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Xe,zIndex:1,display:"inline-block",width:Me.fontSizeIcon,height:Me.fontSizeIcon,marginTop:-Me.fontSizeIcon/2,color:Me.colorTextQuaternary,fontSize:Me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Me.clearBg,cursor:"pointer",opacity:0,transition:`color ${Me.motionDurationMid} ease, opacity ${Me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Me.colorTextTertiary}},"&:hover":{[`${Ve}-clear`]:{opacity:1}}}),[`${Ve}-has-feedback`]:{[`${Ve}-clear`]:{insetInlineEnd:Xe+Me.fontSize+Me.paddingXS}}}},ct=Me=>{const{componentCls:Ve}=Me;return[{[Ve]:{[`&-borderless ${Ve}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ve}-in-form-item`]:{width:"100%"}}},nt(Me),Je(Me),kt(Me),pe(Me),{[`${Ve}-rtl`]:{direction:"rtl"}},Dt(Ve,(0,Fe.TS)(Me,{borderHoverColor:Me.colorPrimaryHover,outlineColor:Me.controlOutline})),Dt(`${Ve}-status-error`,(0,Fe.TS)(Me,{borderHoverColor:Me.colorErrorHover,outlineColor:Me.colorErrorOutline}),!0),Dt(`${Ve}-status-warning`,(0,Fe.TS)(Me,{borderHoverColor:Me.colorWarningHover,outlineColor:Me.colorWarningOutline}),!0),(0,tt.c)(Me,{borderElCls:`${Ve}-selector`,focusElCls:`${Ve}-focused`})]};var Ie=(0,Ye.Z)("Select",(Me,Ve)=>{let{rootPrefixCls:Xe}=Ve;const Ct=(0,Fe.TS)(Me,{rootPrefixCls:Xe,inputPaddingHorizontalBase:Me.paddingSM-1,multipleSelectItemHeight:Me.multipleItemHeight});return[ct(Ct)]},Me=>{const{fontSize:Ve,lineHeight:Xe,controlHeight:Ct,controlPaddingHorizontal:wt,zIndexPopupBase:Mt,colorText:je,fontWeightStrong:Rt,controlItemBgActive:At,controlItemBgHover:xn,colorBgContainer:jt,colorFillSecondary:vn,controlHeightLG:er,controlHeightSM:Sr,colorBgContainerDisabled:qe,colorTextDisabled:Ae}=Me;return{zIndexPopup:Mt+50,optionSelectedColor:je,optionSelectedFontWeight:Rt,optionSelectedBg:At,optionActiveBg:xn,optionPadding:`${(Ct-Ve*Xe)/2}px ${wt}px`,optionFontSize:Ve,optionLineHeight:Xe,optionHeight:Ct,selectorBg:jt,clearBg:jt,singleItemHeightLG:er,multipleItemBg:vn,multipleItemBorderColor:"transparent",multipleItemHeight:Sr,multipleItemHeightLG:Ct,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:Ae,multipleItemBorderColorDisabled:"transparent"}})},13458:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return tt}});const fe=Fe=>{const be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Fe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},be),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},be),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},be),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},be),{points:["br","tr"],offset:[0,-4]})}};function tt(Fe,Ye){return Fe||fe(Ye)}},78642:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return fe}});function fe(tt,Fe){return Fe!==void 0?Fe:tt!==null}},46163:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Se}});var fe=ce(18299),tt=ce(16646),Fe=ce(73475),Ye=ce(42922),be=ce(3407),_e=ce(72395),Le=ce(67294);function Se(pe){let{suffixIcon:Te,clearIcon:gt,menuItemSelectedIcon:ze,removeIcon:Pt,loading:kt,multiple:pt,hasFeedback:Je,prefixCls:De,showSuffixIcon:Dt,feedbackIcon:Yt,showArrow:nt,componentName:ct}=pe;const Ie=gt!=null?gt:Le.createElement(tt.Z,null),Me=wt=>Te===null&&!Je&&!nt?null:Le.createElement(Le.Fragment,null,Dt!==!1&&wt,Je&&Yt);let Ve=null;if(Te!==void 0)Ve=Me(Te);else if(kt)Ve=Me(Le.createElement(be.Z,{spin:!0}));else{const wt=`${De}-suffix`;Ve=Mt=>{let{open:je,showSearch:Rt}=Mt;return Me(je&&Rt?Le.createElement(_e.Z,{className:wt}):Le.createElement(Ye.Z,{className:wt}))}}let Xe=null;ze!==void 0?Xe=ze:pt?Xe=Le.createElement(fe.Z,null):Xe=null;let Ct=null;return Pt!==void 0?Ct=Pt:Ct=Le.createElement(Fe.Z,null),{clearIcon:Ie,suffixIcon:Ve,itemIcon:Xe,removeIcon:Ct}}},33507:function(Ln,qt){"use strict";const ce=fe=>({[fe.componentCls]:{[`${fe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${fe.motionDurationMid} ${fe.motionEaseInOut}, opacity ${fe.motionDurationMid} ${fe.motionEaseInOut} !important`}},[`${fe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${fe.motionDurationMid} ${fe.motionEaseInOut}, opacity ${fe.motionDurationMid} ${fe.motionEaseInOut} !important`}}});qt.Z=ce},33297:function(Ln,qt,ce){"use strict";ce.d(qt,{Fm:function(){return ze}});var fe=ce(34367),tt=ce(93590);const Fe=new fe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ye=new fe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),be=new fe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_e=new fe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Le=new fe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Se=new fe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pe=new fe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Te=new fe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),gt={"move-up":{inKeyframes:pe,outKeyframes:Te},"move-down":{inKeyframes:Fe,outKeyframes:Ye},"move-left":{inKeyframes:be,outKeyframes:_e},"move-right":{inKeyframes:Le,outKeyframes:Se}},ze=(Pt,kt)=>{const{antCls:pt}=Pt,Je=`${pt}-${kt}`,{inKeyframes:De,outKeyframes:Dt}=gt[kt];return[(0,tt.R)(Je,De,Dt,Pt.motionDurationMid),{[` ${Je}-enter, ${Je}-appear `]:{opacity:0,animationTimingFunction:Pt.motionEaseOutCirc},[`${Je}-leave`]:{animationTimingFunction:Pt.motionEaseInOutCirc}}]}},67771:function(Ln,qt,ce){"use strict";ce.d(qt,{Qt:function(){return be},Uw:function(){return Ye},fJ:function(){return Fe},ly:function(){return _e},oN:function(){return ze}});var fe=ce(34367),tt=ce(93590);const Fe=new fe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ye=new fe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),be=new fe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_e=new fe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Le=new fe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Se=new fe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pe=new fe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Te=new fe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),gt={"slide-up":{inKeyframes:Fe,outKeyframes:Ye},"slide-down":{inKeyframes:be,outKeyframes:_e},"slide-left":{inKeyframes:Le,outKeyframes:Se},"slide-right":{inKeyframes:pe,outKeyframes:Te}},ze=(Pt,kt)=>{const{antCls:pt}=Pt,Je=`${pt}-${kt}`,{inKeyframes:De,outKeyframes:Dt}=gt[kt];return[(0,tt.R)(Je,De,Dt,Pt.motionDurationMid),{[` ${Je}-enter, ${Je}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Pt.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Je}-leave`]:{animationTimingFunction:Pt.motionEaseInQuint}}]}},47897:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return ye}});var fe=ce(3407),tt=ce(94184),Fe=ce.n(tt);function Ye(){return Ye=Object.assign?Object.assign.bind():function(ve){for(var le=1;leve.length)&&(le=ve.length);for(var We=0,Lt=new Array(le);We=0)&&(We[tn]=ve[tn]);return We}function Je(ve,le){if(ve==null)return{};var We=pt(ve,le),Lt,tn;if(Object.getOwnPropertySymbols){var hn=Object.getOwnPropertySymbols(ve);for(tn=0;tn=0)&&Object.prototype.propertyIsEnumerable.call(ve,Lt)&&(We[Lt]=ve[Lt])}return We}var De=ce(67294);function Dt(ve){if(Array.isArray(ve))return ve}function Yt(ve,le){var We=ve==null?null:typeof Symbol!="undefined"&&ve[Symbol.iterator]||ve["@@iterator"];if(We!=null){var Lt,tn,hn,sn,yn=[],ln=!0,yr=!1;try{if(hn=(We=We.call(ve)).next,le===0){if(Object(We)!==We)return;ln=!1}else for(;!(ln=(Lt=hn.call(We)).done)&&(yn.push(Lt.value),yn.length!==le);ln=!0);}catch(Fr){yr=!0,tn=Fr}finally{try{if(!ln&&We.return!=null&&(sn=We.return(),Object(sn)!==sn))return}finally{if(yr)throw tn}}return yn}}function nt(ve,le){(le==null||le>ve.length)&&(le=ve.length);for(var We=0,Lt=new Array(le);We=jt.F1&&We<=jt.F12)return!1;switch(We){case jt.ALT:case jt.CAPS_LOCK:case jt.CONTEXT_MENU:case jt.CTRL:case jt.DOWN:case jt.END:case jt.ESC:case jt.HOME:case jt.INSERT:case jt.LEFT:case jt.MAC_FF_META:case jt.META:case jt.NUMLOCK:case jt.NUM_CENTER:case jt.PAGE_DOWN:case jt.PAGE_UP:case jt.PAUSE:case jt.PRINT_SCREEN:case jt.RIGHT:case jt.SHIFT:case jt.UP:case jt.WIN_KEY:case jt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=jt.ZERO&&le<=jt.NINE||le>=jt.NUM_ZERO&&le<=jt.NUM_MULTIPLY||le>=jt.A&&le<=jt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case jt.SPACE:case jt.QUESTION_MARK:case jt.NUM_PLUS:case jt.NUM_MINUS:case jt.NUM_PERIOD:case jt.NUM_DIVISION:case jt.SEMICOLON:case jt.DASH:case jt.EQUALS:case jt.COMMA:case jt.PERIOD:case jt.SLASH:case jt.APOSTROPHE:case jt.SINGLE_QUOTE:case jt.OPEN_SQUARE_BRACKET:case jt.BACKSLASH:case jt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vn=jt,er=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Sr=De.forwardRef(function(ve,le){var We,Lt=ve.prefixCls,tn=Lt===void 0?"rc-switch":Lt,hn=ve.className,sn=ve.checked,yn=ve.defaultChecked,ln=ve.disabled,yr=ve.loadingIcon,Fr=ve.checkedChildren,Nt=ve.unCheckedChildren,Rn=ve.onClick,Gr=ve.onChange,li=ve.onKeyDown,st=Je(ve,er),Wt=xn(!1,{value:sn,defaultValue:yn}),Vn=kt(Wt,2),ir=Vn[0],gr=Vn[1];function Pr(ui,br){var Ei=ir;return ln||(Ei=ui,gr(Ei),Gr==null||Gr(Ei,br)),Ei}function Ur(ui){ui.which===vn.LEFT?Pr(!1,ui):ui.which===vn.RIGHT&&Pr(!0,ui),li==null||li(ui)}function Xr(ui){var br=Pr(!ir,ui);Rn==null||Rn(br,ui)}var qr=Fe()(tn,hn,(We={},Se(We,"".concat(tn,"-checked"),ir),Se(We,"".concat(tn,"-disabled"),ln),We));return De.createElement("button",Ye({},st,{type:"button",role:"switch","aria-checked":ir,disabled:ln,className:qr,ref:le,onKeyDown:Ur,onClick:Xr}),yr,De.createElement("span",{className:"".concat(tn,"-inner")},De.createElement("span",{className:"".concat(tn,"-inner-checked")},Fr),De.createElement("span",{className:"".concat(tn,"-inner-unchecked")},Nt)))});Sr.displayName="Switch";var qe=Sr,Ae=ce(45353),$t=ce(53124),Hn=ce(98866),bn=ce(98675),at=ce(84780),ft=ce(14747),Gt=ce(67968),zn=ce(45503);const mn=ve=>{const{componentCls:le,trackHeightSM:We,trackPadding:Lt,trackMinWidthSM:tn,innerMinMarginSM:hn,innerMaxMarginSM:sn,handleSizeSM:yn}=ve,ln=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:tn,height:We,lineHeight:`${We}px`,[`${le}-inner`]:{paddingInlineStart:sn,paddingInlineEnd:hn,[`${ln}-checked`]:{marginInlineStart:`calc(-100% + ${yn+Lt*2}px - ${sn*2}px)`,marginInlineEnd:`calc(100% - ${yn+Lt*2}px + ${sn*2}px)`},[`${ln}-unchecked`]:{marginTop:-We,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:yn,height:yn},[`${le}-loading-icon`]:{top:(yn-ve.switchLoadingIconSize)/2,fontSize:ve.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:hn,paddingInlineEnd:sn,[`${ln}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ln}-unchecked`]:{marginInlineStart:`calc(100% - ${yn+Lt*2}px + ${sn*2}px)`,marginInlineEnd:`calc(-100% + ${yn+Lt*2}px - ${sn*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${yn+Lt}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${ln}`]:{[`${ln}-unchecked`]:{marginInlineStart:ve.marginXXS/2,marginInlineEnd:-ve.marginXXS/2}},[`&${le}-checked ${ln}`]:{[`${ln}-checked`]:{marginInlineStart:-ve.marginXXS/2,marginInlineEnd:ve.marginXXS/2}}}}}}},nn=ve=>{const{componentCls:le,handleSize:We}=ve;return{[le]:{[`${le}-loading-icon${ve.iconCls}`]:{position:"relative",top:(We-ve.fontSize)/2,color:ve.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:ve.switchColor}}}},Ft=ve=>{const{componentCls:le,motion:We,trackPadding:Lt,handleBg:tn,handleShadow:hn,handleSize:sn}=ve,yn=`${le}-handle`;return{[le]:{[yn]:{position:"absolute",top:Lt,insetInlineStart:Lt,width:sn,height:sn,transition:`all ${ve.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:tn,borderRadius:sn/2,boxShadow:hn,transition:`all ${ve.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${yn}`]:{insetInlineStart:`calc(100% - ${sn+Lt}px)`},[`&:not(${le}-disabled):active`]:We?{[`${yn}::before`]:{insetInlineEnd:ve.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${yn}::before`]:{insetInlineEnd:0,insetInlineStart:ve.switchHandleActiveInset}}:{}}}},Pn=ve=>{const{componentCls:le,trackHeight:We,trackPadding:Lt,innerMinMargin:tn,innerMaxMargin:hn,handleSize:sn}=ve,yn=`${le}-inner`;return{[le]:{[yn]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:hn,paddingInlineEnd:tn,transition:`padding-inline-start ${ve.switchDuration} ease-in-out, padding-inline-end ${ve.switchDuration} ease-in-out`,[`${yn}-checked, ${yn}-unchecked`]:{display:"block",color:ve.colorTextLightSolid,fontSize:ve.fontSizeSM,transition:`margin-inline-start ${ve.switchDuration} ease-in-out, margin-inline-end ${ve.switchDuration} ease-in-out`,pointerEvents:"none"},[`${yn}-checked`]:{marginInlineStart:`calc(-100% + ${sn+Lt*2}px - ${hn*2}px)`,marginInlineEnd:`calc(100% - ${sn+Lt*2}px + ${hn*2}px)`},[`${yn}-unchecked`]:{marginTop:-We,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${yn}`]:{paddingInlineStart:tn,paddingInlineEnd:hn,[`${yn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${yn}-unchecked`]:{marginInlineStart:`calc(100% - ${sn+Lt*2}px + ${hn*2}px)`,marginInlineEnd:`calc(-100% + ${sn+Lt*2}px - ${hn*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${yn}`]:{[`${yn}-unchecked`]:{marginInlineStart:Lt*2,marginInlineEnd:-Lt*2}},[`&${le}-checked ${yn}`]:{[`${yn}-checked`]:{marginInlineStart:-Lt*2,marginInlineEnd:Lt*2}}}}}},_n=ve=>{const{componentCls:le,trackHeight:We,trackMinWidth:Lt}=ve;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(ve)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Lt,height:We,lineHeight:`${We}px`,verticalAlign:"middle",background:ve.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ve.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:ve.colorTextTertiary}}),(0,ft.Qy)(ve)),{[`&${le}-checked`]:{background:ve.switchColor,[`&:hover:not(${le}-disabled)`]:{background:ve.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:ve.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var Ee=(0,Gt.Z)("Switch",ve=>{const le=(0,zn.TS)(ve,{switchDuration:ve.motionDurationMid,switchColor:ve.colorPrimary,switchDisabledOpacity:ve.opacityLoading,switchLoadingIconSize:ve.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ve.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_n(le),Pn(le),Ft(le),nn(le),mn(le)]},ve=>{const{fontSize:le,lineHeight:We,controlHeight:Lt,colorWhite:tn}=ve,hn=le*We,sn=Lt/2,yn=2,ln=hn-yn*2,yr=sn-yn*2;return{trackHeight:hn,trackHeightSM:sn,trackMinWidth:ln*2+yn*4,trackMinWidthSM:yr*2+yn*2,trackPadding:yn,handleBg:tn,handleSize:ln,handleSizeSM:yr,handleShadow:`0 2px 4px 0 ${new at.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ln/2,innerMaxMargin:ln+yn+yn*2,innerMinMarginSM:yr/2,innerMaxMarginSM:yr+yn+yn*2}}),ue=function(ve,le){var We={};for(var Lt in ve)Object.prototype.hasOwnProperty.call(ve,Lt)&&le.indexOf(Lt)<0&&(We[Lt]=ve[Lt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Lt=Object.getOwnPropertySymbols(ve);tn{const{prefixCls:We,size:Lt,disabled:tn,loading:hn,className:sn,rootClassName:yn,style:ln}=ve,yr=ue(ve,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Fr,direction:Nt,switch:Rn}=De.useContext($t.E_),Gr=De.useContext(Hn.Z),li=(tn!=null?tn:Gr)||hn,st=Fr("switch",We),Wt=De.createElement("div",{className:`${st}-handle`},hn&&De.createElement(fe.Z,{className:`${st}-loading-icon`})),[Vn,ir]=Ee(st),gr=(0,bn.Z)(Lt),Pr=Fe()(Rn==null?void 0:Rn.className,{[`${st}-small`]:gr==="small",[`${st}-loading`]:hn,[`${st}-rtl`]:Nt==="rtl"},sn,yn,ir),Ur=Object.assign(Object.assign({},Rn==null?void 0:Rn.style),ln);return Vn(De.createElement(Ae.Z,{component:"Switch"},De.createElement(qe,Object.assign({},yr,{prefixCls:st,className:Pr,style:Ur,disabled:li,ref:le,loadingIcon:Wt}))))});se.__ANT_SWITCH=!0;var ye=se},66368:function(Ln,qt,ce){"use strict";ce.d(qt,{default:function(){return Si}});var fe=ce(73475),tt=ce(25877),Fe=ce(38308),Ye=ce(94184),be=ce.n(Ye),_e=ce(87462),Le=ce(4942),Se=ce(1413),pe=ce(97685),Te=ce(71002),gt=ce(45987),ze=ce(67294),Pt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ce=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ce)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ce==null?void 0:Ce.substr(0,4))};function kt(Ce){var Ne=ze.useRef();Ne.current=Ce;var Be=ze.useCallback(function(){for(var He,Ge=arguments.length,et=new Array(Ge),bt=0;btwn?(fn=It,Pe.current="x"):(fn=rn,Pe.current="y"),Ne(-fn,-fn)&&rt.preventDefault()}var xt=(0,ze.useRef)(null);xt.current={onTouchStart:Jn,onTouchMove:Qn,onTouchEnd:hr,onWheel:$e},ze.useEffect(function(){function rt(On){xt.current.onTouchStart(On)}function It(On){xt.current.onTouchMove(On)}function rn(On){xt.current.onTouchEnd(On)}function fn(On){xt.current.onWheel(On)}return document.addEventListener("touchmove",It,{passive:!1}),document.addEventListener("touchend",rn,{passive:!1}),Ce.current.addEventListener("touchstart",rt,{passive:!1}),Ce.current.addEventListener("wheel",fn),function(){document.removeEventListener("touchmove",It),document.removeEventListener("touchend",rn)}},[])}function zn(Ce){var Ne=(0,ze.useState)(0),Be=(0,pe.Z)(Ne,2),He=Be[0],Ge=Be[1],et=(0,ze.useRef)(0),bt=(0,ze.useRef)();return bt.current=Ce,Dt(function(){var Zt;(Zt=bt.current)===null||Zt===void 0||Zt.call(bt)},[He]),function(){et.current===He&&(et.current+=1,Ge(et.current))}}function mn(Ce){var Ne=(0,ze.useRef)([]),Be=(0,ze.useState)({}),He=(0,pe.Z)(Be,2),Ge=He[1],et=(0,ze.useRef)(typeof Ce=="function"?Ce():Ce),bt=zn(function(){var Jt=et.current;Ne.current.forEach(function(Gn){Jt=Gn(Jt)}),Ne.current=[],et.current=Jt,Ge({})});function Zt(Jt){Ne.current.push(Jt),bt()}return[et.current,Zt]}var nn={width:0,height:0,left:0,top:0,right:0};function Ft(Ce,Ne,Be,He,Ge,et,bt){var Zt=bt.tabs,Jt=bt.tabPosition,Gn=bt.rtl,fr,Wn,pn;return["top","bottom"].includes(Jt)?(fr="width",Wn=Gn?"right":"left",pn=Math.abs(Be)):(fr="height",Wn="top",pn=-Be),(0,ze.useMemo)(function(){if(!Zt.length)return[0,0];for(var dn=Zt.length,Cn=dn,In=0;Inpn+Ne){Cn=In-1;break}}for(var jn=0,Zn=dn-1;Zn>=0;Zn-=1){var Jn=Ce.get(Zt[Zn].key)||nn;if(Jn[Wn]=Cn?[0,0]:[jn,Cn]},[Ce,Ne,He,Ge,et,pn,Jt,Zt.map(function(dn){return dn.key}).join("_"),Gn])}function Pn(Ce){var Ne;return Ce instanceof Map?(Ne={},Ce.forEach(function(Be,He){Ne[He]=Be})):Ne=Ce,JSON.stringify(Ne)}var _n="TABS_DQ";function Ee(Ce){return String(Ce).replace(/"/g,_n)}function ue(Ce,Ne,Be,He){return!(!Be||He||Ce===!1||Ce===void 0&&(Ne===!1||Ne===null))}function se(Ce,Ne){var Be=Ce.prefixCls,He=Ce.editable,Ge=Ce.locale,et=Ce.style;return!He||He.showAdd===!1?null:ze.createElement("button",{ref:Ne,type:"button",className:"".concat(Be,"-nav-add"),style:et,"aria-label":(Ge==null?void 0:Ge.addAriaLabel)||"Add tab",onClick:function(Zt){He.onEdit("add",{event:Zt})}},He.addIcon||"+")}var ye=ze.forwardRef(se),ve=ze.forwardRef(function(Ce,Ne){var Be=Ce.position,He=Ce.prefixCls,Ge=Ce.extra;if(!Ge)return null;var et,bt={};return(0,Te.Z)(Ge)==="object"&&!ze.isValidElement(Ge)?bt=Ge:bt.right=Ge,Be==="right"&&(et=bt.right),Be==="left"&&(et=bt.left),et?ze.createElement("div",{className:"".concat(He,"-extra-content"),ref:Ne},et):null}),le=ve,We=ce(62709);function Lt(Ce,Ne,Be){var He=React.useRef({});return(!("value"in He.current)||Be(He.current.condition,Ne))&&(He.current.value=Ce(),He.current.condition=Ne),He.current.value}function tn(Ce,Ne){typeof Ce=="function"?Ce(Ne):(0,Te.Z)(Ce)==="object"&&Ce&&"current"in Ce&&(Ce.current=Ne)}function hn(){for(var Ce=arguments.length,Ne=new Array(Ce),Be=0;Be=ln.F1&&Be<=ln.F12)return!1;switch(Be){case ln.ALT:case ln.CAPS_LOCK:case ln.CONTEXT_MENU:case ln.CTRL:case ln.DOWN:case ln.END:case ln.ESC:case ln.HOME:case ln.INSERT:case ln.LEFT:case ln.MAC_FF_META:case ln.META:case ln.NUMLOCK:case ln.NUM_CENTER:case ln.PAGE_DOWN:case ln.PAGE_UP:case ln.PAUSE:case ln.PRINT_SCREEN:case ln.RIGHT:case ln.SHIFT:case ln.UP:case ln.WIN_KEY:case ln.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ne){if(Ne>=ln.ZERO&&Ne<=ln.NINE||Ne>=ln.NUM_ZERO&&Ne<=ln.NUM_MULTIPLY||Ne>=ln.A&&Ne<=ln.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ne===0)return!0;switch(Ne){case ln.SPACE:case ln.QUESTION_MARK:case ln.NUM_PLUS:case ln.NUM_MINUS:case ln.NUM_PERIOD:case ln.NUM_DIVISION:case ln.SEMICOLON:case ln.DASH:case ln.EQUALS:case ln.COMMA:case ln.PERIOD:case ln.SLASH:case ln.APOSTROPHE:case ln.SINGLE_QUOTE:case ln.OPEN_SQUARE_BRACKET:case ln.BACKSLASH:case ln.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},yr=ln,Fr=function(Ne){return+setTimeout(Ne,16)},Nt=function(Ne){return clearTimeout(Ne)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Fr=function(Ne){return window.requestAnimationFrame(Ne)},Nt=function(Ne){return window.cancelAnimationFrame(Ne)});var Rn=0,Gr=new Map;function li(Ce){Gr.delete(Ce)}var st=function(Ne){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Rn+=1;var He=Rn;function Ge(et){if(et===0)li(He),Ne();else{var bt=Fr(function(){Ge(et-1)});Gr.set(He,bt)}}return Ge(Be),He};st.cancel=function(Ce){var Ne=Gr.get(Ce);return li(Ne),Nt(Ne)};var Wt=st,Vn=yr.ESC,ir=yr.TAB;function gr(Ce){var Ne=Ce.visible,Be=Ce.triggerRef,He=Ce.onVisibleChange,Ge=Ce.autoFocus,et=Ce.overlayRef,bt=ze.useRef(!1),Zt=function(){if(Ne){var Wn,pn;(Wn=Be.current)===null||Wn===void 0||(pn=Wn.focus)===null||pn===void 0||pn.call(Wn),He==null||He(!1)}},Jt=function(){var Wn;return(Wn=et.current)!==null&&Wn!==void 0&&Wn.focus?(et.current.focus(),bt.current=!0,!0):!1},Gn=function(Wn){switch(Wn.keyCode){case Vn:Zt();break;case ir:{var pn=!1;bt.current||(pn=Jt()),pn?Wn.preventDefault():Zt();break}}};ze.useEffect(function(){return Ne?(window.addEventListener("keydown",Gn),Ge&&Wt(Jt,3),function(){window.removeEventListener("keydown",Gn),bt.current=!1}):function(){bt.current=!1}},[Ne])}var Pr=(0,ze.forwardRef)(function(Ce,Ne){var Be=Ce.overlay,He=Ce.arrow,Ge=Ce.prefixCls,et=(0,ze.useMemo)(function(){var Zt;return typeof Be=="function"?Zt=Be():Zt=Be,Zt},[Be]),bt=hn(Ne,et==null?void 0:et.ref);return ze.createElement(ze.Fragment,null,He&&ze.createElement("div",{className:"".concat(Ge,"-arrow")}),ze.cloneElement(et,{ref:yn(et)?bt:void 0}))}),Ur=Pr,Xr={adjustX:1,adjustY:1},qr=[0,0],ui={topLeft:{points:["bl","tl"],overflow:Xr,offset:[0,-4],targetOffset:qr},top:{points:["bc","tc"],overflow:Xr,offset:[0,-4],targetOffset:qr},topRight:{points:["br","tr"],overflow:Xr,offset:[0,-4],targetOffset:qr},bottomLeft:{points:["tl","bl"],overflow:Xr,offset:[0,4],targetOffset:qr},bottom:{points:["tc","bc"],overflow:Xr,offset:[0,4],targetOffset:qr},bottomRight:{points:["tr","br"],overflow:Xr,offset:[0,4],targetOffset:qr}},br=ui,Ei=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function sa(Ce,Ne){var Be,He=Ce.arrow,Ge=He===void 0?!1:He,et=Ce.prefixCls,bt=et===void 0?"rc-dropdown":et,Zt=Ce.transitionName,Jt=Ce.animation,Gn=Ce.align,fr=Ce.placement,Wn=fr===void 0?"bottomLeft":fr,pn=Ce.placements,dn=pn===void 0?br:pn,Cn=Ce.getPopupContainer,In=Ce.showAction,cr=Ce.hideAction,jn=Ce.overlayClassName,Zn=Ce.overlayStyle,Jn=Ce.visible,Qn=Ce.trigger,hr=Qn===void 0?["hover"]:Qn,Pe=Ce.autoFocus,$e=Ce.overlay,xt=Ce.children,rt=Ce.onVisibleChange,It=(0,gt.Z)(Ce,Ei),rn=ze.useState(),fn=(0,pe.Z)(rn,2),On=fn[0],wn=fn[1],Xt="visible"in Ce?Jn:On,Nn=ze.useRef(null),Fn=ze.useRef(null),mr=ze.useRef(null);ze.useImperativeHandle(Ne,function(){return Nn.current});var Bn=function(Ir){wn(Ir),rt==null||rt(Ir)};gr({visible:Xt,triggerRef:mr,onVisibleChange:Bn,autoFocus:Pe,overlayRef:Fn});var Lr=function(Ir){var ci=Ce.onOverlayClick;wn(!1),ci&&ci(Ir)},Zr=function(){return ze.createElement(Ur,{ref:Fn,overlay:$e,prefixCls:bt,arrow:Ge})},Dr=function(){return typeof $e=="function"?Zr:Zr()},zr=function(){var Ir=Ce.minOverlayWidthMatchTrigger,ci=Ce.alignPoint;return"minOverlayWidthMatchTrigger"in Ce?Ir:!ci},xr=function(){var Ir=Ce.openClassName;return Ir!==void 0?Ir:"".concat(bt,"-open")},Or=ze.cloneElement(xt,{className:be()((Be=xt.props)===null||Be===void 0?void 0:Be.className,Xt&&xr()),ref:yn(xt)?hn(mr,xt.ref):void 0}),Jr=cr;return!Jr&&hr.indexOf("contextMenu")!==-1&&(Jr=["click"]),ze.createElement(We.Z,(0,_e.Z)({builtinPlacements:dn},It,{prefixCls:bt,ref:Nn,popupClassName:be()(jn,(0,Le.Z)({},"".concat(bt,"-show-arrow"),Ge)),popupStyle:Zn,action:hr,showAction:In,hideAction:Jr,popupPlacement:Wn,popupAlign:Gn,popupTransitionName:Zt,popupAnimation:Jt,popupVisible:Xt,stretch:zr()?"minWidth":"",popup:Dr(),onPopupVisibleChange:Bn,onPopupClick:Lr,getPopupContainer:Cn}),Or)}var Ji=ze.forwardRef(sa),Qi=Ji,Ci=ce(78595),mt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ne){var Be=Ne.keyCode;if(Ne.altKey&&!Ne.ctrlKey||Ne.metaKey||Be>=mt.F1&&Be<=mt.F12)return!1;switch(Be){case mt.ALT:case mt.CAPS_LOCK:case mt.CONTEXT_MENU:case mt.CTRL:case mt.DOWN:case mt.END:case mt.ESC:case mt.HOME:case mt.INSERT:case mt.LEFT:case mt.MAC_FF_META:case mt.META:case mt.NUMLOCK:case mt.NUM_CENTER:case mt.PAGE_DOWN:case mt.PAGE_UP:case mt.PAUSE:case mt.PRINT_SCREEN:case mt.RIGHT:case mt.SHIFT:case mt.UP:case mt.WIN_KEY:case mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ne){if(Ne>=mt.ZERO&&Ne<=mt.NINE||Ne>=mt.NUM_ZERO&&Ne<=mt.NUM_MULTIPLY||Ne>=mt.A&&Ne<=mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ne===0)return!0;switch(Ne){case mt.SPACE:case mt.QUESTION_MARK:case mt.NUM_PLUS:case mt.NUM_MINUS:case mt.NUM_PERIOD:case mt.NUM_DIVISION:case mt.SEMICOLON:case mt.DASH:case mt.EQUALS:case mt.COMMA:case mt.PERIOD:case mt.SLASH:case mt.APOSTROPHE:case mt.SINGLE_QUOTE:case mt.OPEN_SQUARE_BRACKET:case mt.BACKSLASH:case mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Mn=mt;function En(Ce,Ne){var Be=Ce.prefixCls,He=Ce.id,Ge=Ce.tabs,et=Ce.locale,bt=Ce.mobile,Zt=Ce.moreIcon,Jt=Zt===void 0?"More":Zt,Gn=Ce.moreTransitionName,fr=Ce.style,Wn=Ce.className,pn=Ce.editable,dn=Ce.tabBarGutter,Cn=Ce.rtl,In=Ce.removeAriaLabel,cr=Ce.onTabClick,jn=Ce.getPopupContainer,Zn=Ce.popupClassName,Jn=(0,ze.useState)(!1),Qn=(0,pe.Z)(Jn,2),hr=Qn[0],Pe=Qn[1],$e=(0,ze.useState)(null),xt=(0,pe.Z)($e,2),rt=xt[0],It=xt[1],rn="".concat(He,"-more-popup"),fn="".concat(Be,"-dropdown"),On=rt!==null?"".concat(rn,"-").concat(rt):null,wn=et==null?void 0:et.dropdownAriaLabel;function Xt(Dr,zr){Dr.preventDefault(),Dr.stopPropagation(),pn.onEdit("remove",{key:zr,event:Dr})}var Nn=ze.createElement(Ci.ZP,{onClick:function(zr){var xr=zr.key,Or=zr.domEvent;cr(xr,Or),Pe(!1)},prefixCls:"".concat(fn,"-menu"),id:rn,tabIndex:-1,role:"listbox","aria-activedescendant":On,selectedKeys:[rt],"aria-label":wn!==void 0?wn:"expanded dropdown"},Ge.map(function(Dr){var zr=Dr.closable,xr=Dr.disabled,Or=Dr.closeIcon,Jr=Dr.key,ai=Dr.label,Ir=ue(zr,Or,pn,xr);return ze.createElement(Ci.sN,{key:Jr,id:"".concat(rn,"-").concat(Jr),role:"option","aria-controls":He&&"".concat(He,"-panel-").concat(Jr),disabled:xr},ze.createElement("span",null,ai),Ir&&ze.createElement("button",{type:"button","aria-label":In||"remove",tabIndex:0,className:"".concat(fn,"-menu-item-remove"),onClick:function(Pi){Pi.stopPropagation(),Xt(Pi,Jr)}},Or||pn.removeIcon||"\xD7"))}));function Fn(Dr){for(var zr=Ge.filter(function(Ir){return!Ir.disabled}),xr=zr.findIndex(function(Ir){return Ir.key===rt})||0,Or=zr.length,Jr=0;Jr1&&arguments[1]!==void 0?arguments[1]:1;Ue+=1;var He=Ue;function Ge(et){if(et===0)_t(He),Ne();else{var bt=pr(function(){Ge(et-1)});it.set(He,bt)}}return Ge(Be),He};Ut.cancel=function(Ce){var Ne=it.get(Ce);return _t(Ne),Kn(Ne)};var Ke=Ut,ut=function(Ne){var Be=Ne.activeTabOffset,He=Ne.horizontal,Ge=Ne.rtl,et=Ne.indicatorSize,bt=(0,ze.useState)(),Zt=(0,pe.Z)(bt,2),Jt=Zt[0],Gn=Zt[1],fr=(0,ze.useRef)(),Wn=function(Cn){return typeof et=="function"?et(Cn):typeof et=="number"?et:Cn};function pn(){Ke.cancel(fr.current)}return(0,ze.useEffect)(function(){var dn={};return Be&&(He?(Ge?(dn.right=Be.right+Be.width/2,dn.transform="translateX(50%)"):(dn.left=Be.left+Be.width/2,dn.transform="translateX(-50%)"),dn.width=Wn(Be.width)):(dn.top=Be.top+Be.height/2,dn.transform="translateY(-50%)",dn.height=Wn(Be.height))),pn(),fr.current=Ke(function(){Gn(dn)}),pn},[Be,He,Ge,et]),{style:Jt}},Ot=ut,Tt=function(Ne){var Be=Ne.current||{},He=Be.offsetWidth,Ge=He===void 0?0:He,et=Be.offsetHeight,bt=et===void 0?0:et;return[Ge,bt]},zt=function(Ne,Be){return Ne[Be?0:1]};function Ht(Ce,Ne){var Be,He=ze.useContext(Ve),Ge=He.prefixCls,et=He.tabs,bt=Ce.className,Zt=Ce.style,Jt=Ce.id,Gn=Ce.animated,fr=Ce.activeKey,Wn=Ce.rtl,pn=Ce.extra,dn=Ce.editable,Cn=Ce.locale,In=Ce.tabPosition,cr=Ce.tabBarGutter,jn=Ce.children,Zn=Ce.onTabClick,Jn=Ce.onTabScroll,Qn=Ce.indicatorSize,hr=(0,ze.useRef)(),Pe=(0,ze.useRef)(),$e=(0,ze.useRef)(),xt=(0,ze.useRef)(),rt=(0,ze.useRef)(),It=(0,ze.useRef)(),rn=(0,ze.useRef)(),fn=In==="top"||In==="bottom",On=$t(0,function(na,Oi){fn&&Jn&&Jn({direction:na>Oi?"left":"right"})}),wn=(0,pe.Z)(On,2),Xt=wn[0],Nn=wn[1],Fn=$t(0,function(na,Oi){!fn&&Jn&&Jn({direction:na>Oi?"top":"bottom"})}),mr=(0,pe.Z)(Fn,2),Bn=mr[0],Lr=mr[1],Zr=(0,ze.useState)([0,0]),Dr=(0,pe.Z)(Zr,2),zr=Dr[0],xr=Dr[1],Or=(0,ze.useState)([0,0]),Jr=(0,pe.Z)(Or,2),ai=Jr[0],Ir=Jr[1],ci=(0,ze.useState)([0,0]),Pi=(0,pe.Z)(ci,2),ta=Pi[0],Vi=Pi[1],Bi=(0,ze.useState)([0,0]),Xi=(0,pe.Z)(Bi,2),qi=Xi[0],bi=Xi[1],$i=mn(new Map),jr=(0,pe.Z)($i,2),di=jr[0],Ti=jr[1],ji=Ae(et,di,ai[0]),Ba=zt(zr,fn),$a=zt(ai,fn),Aa=zt(ta,fn),ca=zt(qi,fn),Yi=Ba<$a+Aa,Mi=Yi?Ba-ca:Ba-Aa,Oa="".concat(Ge,"-nav-operations-hidden"),ki=0,Qr=0;fn&&Wn?(ki=0,Qr=Math.max(0,$a-Mi)):(ki=Math.min(0,Mi-$a),Qr=0);function zi(na){return naQr?Qr:na}var ua=(0,ze.useRef)(),Ui=(0,ze.useState)(),ia=(0,pe.Z)(Ui,2),hi=ia[0],pa=ia[1];function xa(){pa(Date.now())}function fa(){window.clearTimeout(ua.current)}Gt(xt,function(na,Oi){function Ta(_a,co){_a(function(ao){var hs=zi(ao+co);return hs})}return Yi?(fn?Ta(Nn,na):Ta(Lr,Oi),fa(),xa(),!0):!1}),(0,ze.useEffect)(function(){return fa(),hi&&(ua.current=window.setTimeout(function(){pa(0)},100)),fa},[hi]);var wa=Ft(ji,Mi,fn?Xt:Bn,$a,Aa,ca,(0,Se.Z)((0,Se.Z)({},Ce),{},{tabs:et})),Ea=(0,pe.Z)(wa,2),Va=Ea[0],ha=Ea[1],ka=kt(function(){var na=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fr,Oi=ji.get(na)||{width:0,height:0,left:0,right:0,top:0};if(fn){var Ta=Xt;Wn?Oi.rightXt+Mi&&(Ta=Oi.right+Oi.width-Mi):Oi.left<-Xt?Ta=-Oi.left:Oi.left+Oi.width>-Xt+Mi&&(Ta=-(Oi.left+Oi.width-Mi)),Lr(0),Nn(zi(Ta))}else{var _a=Bn;Oi.top<-Bn?_a=-Oi.top:Oi.top+Oi.height>-Bn+Mi&&(_a=-(Oi.top+Oi.height-Mi)),Nn(0),Lr(zi(_a))}}),Ja={};In==="top"||In==="bottom"?Ja[Wn?"marginRight":"marginLeft"]=cr:Ja.marginTop=cr;var Ga=et.map(function(na,Oi){var Ta=na.key;return ze.createElement(nr,{id:Jt,prefixCls:Ge,key:Ta,tab:na,style:Oi===0?void 0:Ja,closable:na.closable,editable:dn,active:Ta===fr,renderWrapper:jn,removeAriaLabel:Cn==null?void 0:Cn.removeAriaLabel,onClick:function(co){Zn(Ta,co)},onFocus:function(){ka(Ta),xa(),xt.current&&(Wn||(xt.current.scrollLeft=0),xt.current.scrollTop=0)}})}),so=function(){return Ti(function(){var Oi=new Map;return et.forEach(function(Ta){var _a,co=Ta.key,ao=(_a=rt.current)===null||_a===void 0?void 0:_a.querySelector('[data-node-key="'.concat(Ee(co),'"]'));ao&&Oi.set(co,{width:ao.offsetWidth,height:ao.offsetHeight,left:ao.offsetLeft,top:ao.offsetTop})}),Oi})};(0,ze.useEffect)(function(){so()},[et.map(function(na){return na.key}).join("_")]);var Fa=zn(function(){var na=Tt(hr),Oi=Tt(Pe),Ta=Tt($e);xr([na[0]-Oi[0]-Ta[0],na[1]-Oi[1]-Ta[1]]);var _a=Tt(rn);Vi(_a);var co=Tt(It);bi(co);var ao=Tt(rt);Ir([ao[0]-_a[0],ao[1]-_a[1]]),so()}),Ca=et.slice(0,Va),_i=et.slice(ha+1),Ki=[].concat((0,je.Z)(Ca),(0,je.Z)(_i)),da=ji.get(fr),Sa=Ot({activeTabOffset:da,horizontal:fn,rtl:Wn,indicatorSize:Qn}),Ka=Sa.style;(0,ze.useEffect)(function(){ka()},[fr,ki,Qr,Pn(da),Pn(ji),fn]),(0,ze.useEffect)(function(){Fa()},[Wn]);var io=!!Ki.length,ho="".concat(Ge,"-nav-wrap"),Oo,Ro,lo,Ao;return fn?Wn?(Ro=Xt>0,Oo=Xt!==Qr):(Oo=Xt<0,Ro=Xt!==ki):(lo=Bn<0,Ao=Bn!==ki),ze.createElement(Rt.Z,{onResize:Fa},ze.createElement("div",{ref:er(Ne,hr),role:"tablist",className:be()("".concat(Ge,"-nav"),bt),style:Zt,onKeyDown:function(){xa()}},ze.createElement(le,{ref:Pe,position:"left",extra:pn,prefixCls:Ge}),ze.createElement(Rt.Z,{onResize:Fa},ze.createElement("div",{className:be()(ho,(Be={},(0,Le.Z)(Be,"".concat(ho,"-ping-left"),Oo),(0,Le.Z)(Be,"".concat(ho,"-ping-right"),Ro),(0,Le.Z)(Be,"".concat(ho,"-ping-top"),lo),(0,Le.Z)(Be,"".concat(ho,"-ping-bottom"),Ao),Be)),ref:xt},ze.createElement(Rt.Z,{onResize:Fa},ze.createElement("div",{ref:rt,className:"".concat(Ge,"-nav-list"),style:{transform:"translate(".concat(Xt,"px, ").concat(Bn,"px)"),transition:hi?"none":void 0}},Ga,ze.createElement(ye,{ref:rn,prefixCls:Ge,locale:Cn,editable:dn,style:(0,Se.Z)((0,Se.Z)({},Ga.length===0?void 0:Ja),{},{visibility:io?"hidden":null})}),ze.createElement("div",{className:be()("".concat(Ge,"-ink-bar"),(0,Le.Z)({},"".concat(Ge,"-ink-bar-animated"),Gn.inkBar)),style:Ka}))))),ze.createElement(An,(0,_e.Z)({},Ce,{removeAriaLabel:Cn==null?void 0:Cn.removeAriaLabel,ref:It,prefixCls:Ge,tabs:Ki,className:!io&&Oa,tabMoving:!!hi})),ze.createElement(le,{ref:$e,position:"right",extra:pn,prefixCls:Ge})))}var $n=ze.forwardRef(Ht),Cr=["renderTabBar"],Yn=["label","key"];function qn(Ce){var Ne=Ce.renderTabBar,Be=(0,gt.Z)(Ce,Cr),He=ze.useContext(Ve),Ge=He.tabs;if(Ne){var et=(0,Se.Z)((0,Se.Z)({},Be),{},{panes:Ge.map(function(bt){var Zt=bt.label,Jt=bt.key,Gn=(0,gt.Z)(bt,Yn);return ze.createElement(Ct,(0,_e.Z)({tab:Zt,key:Jt,tabKey:Jt},Gn))})});return Ne(et,$n)}return ze.createElement($n,Be)}var rr={},ar=[],ot=function(Ne){ar.push(Ne)};function Qe(Ce,Ne){if(0)var Be}function vt(Ce,Ne){if(0)var Be}function Qt(){rr={}}function Tn(Ce,Ne,Be){!Ne&&!rr[Be]&&(Ce(!1,Be),rr[Be]=!0)}function en(Ce,Ne){Tn(Qe,Ce,Ne)}function cn(Ce,Ne){Tn(vt,Ce,Ne)}en.preMessage=ot,en.resetWarned=Qt,en.noteOnce=cn;var un=null;function Dn(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ne;return Ce===!1?Ne={inkBar:!1,tabPane:!1}:Ce===!0?Ne={inkBar:!0,tabPane:!1}:Ne=(0,Se.Z)({inkBar:!0},(0,Te.Z)(Ce)==="object"?Ce:{}),Ne.tabPaneMotion&&Ne.tabPane===void 0&&(Ne.tabPane=!0),!Ne.tabPaneMotion&&Ne.tabPane&&(Ne.tabPane=!1),Ne}var or=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Kt=0;function Yr(Ce,Ne){var Be,He=Ce.id,Ge=Ce.prefixCls,et=Ge===void 0?"rc-tabs":Ge,bt=Ce.className,Zt=Ce.items,Jt=Ce.direction,Gn=Ce.activeKey,fr=Ce.defaultActiveKey,Wn=Ce.editable,pn=Ce.animated,dn=Ce.tabPosition,Cn=dn===void 0?"top":dn,In=Ce.tabBarGutter,cr=Ce.tabBarStyle,jn=Ce.tabBarExtraContent,Zn=Ce.locale,Jn=Ce.moreIcon,Qn=Ce.moreTransitionName,hr=Ce.destroyInactiveTabPane,Pe=Ce.renderTabBar,$e=Ce.onChange,xt=Ce.onTabClick,rt=Ce.onTabScroll,It=Ce.getPopupContainer,rn=Ce.popupClassName,fn=Ce.indicatorSize,On=(0,gt.Z)(Ce,or),wn=ze.useMemo(function(){return(Zt||[]).filter(function(bi){return bi&&(0,Te.Z)(bi)==="object"&&"key"in bi})},[Zt]),Xt=Jt==="rtl",Nn=Dn(pn),Fn=(0,ze.useState)(!1),mr=(0,pe.Z)(Fn,2),Bn=mr[0],Lr=mr[1];(0,ze.useEffect)(function(){Lr(Pt())},[]);var Zr=Ie(function(){var bi;return(bi=wn[0])===null||bi===void 0?void 0:bi.key},{value:Gn,defaultValue:fr}),Dr=(0,pe.Z)(Zr,2),zr=Dr[0],xr=Dr[1],Or=(0,ze.useState)(function(){return wn.findIndex(function(bi){return bi.key===zr})}),Jr=(0,pe.Z)(Or,2),ai=Jr[0],Ir=Jr[1];(0,ze.useEffect)(function(){var bi=wn.findIndex(function(jr){return jr.key===zr});if(bi===-1){var $i;bi=Math.max(0,Math.min(ai,wn.length-1)),xr(($i=wn[bi])===null||$i===void 0?void 0:$i.key)}Ir(bi)},[wn.map(function(bi){return bi.key}).join("_"),zr,ai]);var ci=Ie(null,{value:He}),Pi=(0,pe.Z)(ci,2),ta=Pi[0],Vi=Pi[1];(0,ze.useEffect)(function(){He||(Vi("rc-tabs-".concat(Kt)),Kt+=1)},[]);function Bi(bi,$i){xt==null||xt(bi,$i);var jr=bi!==zr;xr(bi),jr&&($e==null||$e(bi))}var Xi={id:ta,activeKey:zr,animated:Nn,tabPosition:Cn,rtl:Xt,mobile:Bn},qi=(0,Se.Z)((0,Se.Z)({},Xi),{},{editable:Wn,locale:Zn,moreIcon:Jn,moreTransitionName:Qn,tabBarGutter:In,onTabClick:Bi,onTabScroll:rt,extra:jn,style:cr,panes:null,getPopupContainer:It,popupClassName:rn,indicatorSize:fn});return ze.createElement(Ve.Provider,{value:{tabs:wn,prefixCls:et}},ze.createElement("div",(0,_e.Z)({ref:Ne,id:He,className:be()(et,"".concat(et,"-").concat(Cn),(Be={},(0,Le.Z)(Be,"".concat(et,"-mobile"),Bn),(0,Le.Z)(Be,"".concat(et,"-editable"),Wn),(0,Le.Z)(Be,"".concat(et,"-rtl"),Xt),Be),bt)},On),ze.createElement(qn,(0,_e.Z)({},qi,{renderTabBar:Pe})),ze.createElement(Mt,(0,_e.Z)({destroyInactiveTabPane:hr},Xi,{animated:Nn}))))}var $r=ze.forwardRef(Yr),Ri=$r,Li=Ri,pi=ce(53124),Gi=ce(98675),ii=()=>null,Ni=ce(33603);const Zi={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Vr(Ce){let Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Be;return Ne===!1?Be={inkBar:!1,tabPane:!1}:Ne===!0?Be={inkBar:!0,tabPane:!0}:Be=Object.assign({inkBar:!0},typeof Ne=="object"?Ne:{}),Be.tabPane&&(Be.tabPaneMotion=Object.assign(Object.assign({},Zi),{motionName:(0,Ni.m)(Ce,"switch")})),Be}var mi=ce(37419),Wi=function(Ce,Ne){var Be={};for(var He in Ce)Object.prototype.hasOwnProperty.call(Ce,He)&&Ne.indexOf(He)<0&&(Be[He]=Ce[He]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,He=Object.getOwnPropertySymbols(Ce);GeNe)}function ea(Ce,Ne){if(Ce)return Ce;const Be=(0,mi.Z)(Ne).map(He=>{if(ze.isValidElement(He)){const{key:Ge,props:et}=He,bt=et||{},{tab:Zt}=bt,Jt=Wi(bt,["tab"]);return Object.assign(Object.assign({key:String(Ge)},Jt),{label:Zt})}return null});return la(Be)}var ti=ce(14747),yt=ce(67968),ht=ce(45503),Bt=ce(67771),kn=Ce=>{const{componentCls:Ne,motionDurationSlow:Be}=Ce;return[{[Ne]:{[`${Ne}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Be}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Be}`}}}}},[(0,Bt.oN)(Ce,"slide-up"),(0,Bt.oN)(Ce,"slide-down")]]};const ur=Ce=>{const{componentCls:Ne,tabsCardPadding:Be,cardBg:He,cardGutter:Ge,colorBorderSecondary:et,itemSelectedColor:bt}=Ce;return{[`${Ne}-card`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{margin:0,padding:Be,background:He,border:`${Ce.lineWidth}px ${Ce.lineType} ${et}`,transition:`all ${Ce.motionDurationSlow} ${Ce.motionEaseInOut}`},[`${Ne}-tab-active`]:{color:bt,background:Ce.colorBgContainer},[`${Ne}-ink-bar`]:{visibility:"hidden"}},[`&${Ne}-top, &${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Ge}px`}}}},[`&${Ne}-top`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:`${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px 0 0`},[`${Ne}-tab-active`]:{borderBottomColor:Ce.colorBgContainer}}},[`&${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:`0 0 ${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px`},[`${Ne}-tab-active`]:{borderTopColor:Ce.colorBgContainer}}},[`&${Ne}-left, &${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginTop:`${Ge}px`}}},[`&${Ne}-left`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ce.borderRadiusLG}px 0 0 ${Ce.borderRadiusLG}px`}},[`${Ne}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Ce.colorBgContainer}}}},[`&${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px 0`}},[`${Ne}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Ce.colorBgContainer}}}}}}},Er=Ce=>{const{componentCls:Ne,itemHoverColor:Be,dropdownEdgeChildVerticalPadding:He}=Ce;return{[`${Ne}-dropdown`]:Object.assign(Object.assign({},(0,ti.Wf)(Ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ce.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ne}-dropdown-menu`]:{maxHeight:Ce.tabsDropdownHeight,margin:0,padding:`${He}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Ce.colorBgContainer,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ti.vS),{display:"flex",alignItems:"center",minWidth:Ce.tabsDropdownWidth,margin:0,padding:`${Ce.paddingXXS}px ${Ce.paddingSM}px`,color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${Ce.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Ce.marginSM},color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Be}},"&:hover":{background:Ce.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Ce.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Br=Ce=>{const{componentCls:Ne,margin:Be,colorBorderSecondary:He,horizontalMargin:Ge,verticalItemPadding:et,verticalItemMargin:bt}=Ce;return{[`${Ne}-top, ${Ne}-bottom`]:{flexDirection:"column",[`> ${Ne}-nav, > div > ${Ne}-nav`]:{margin:Ge,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ce.lineWidth}px ${Ce.lineType} ${He}`,content:"''"},[`${Ne}-ink-bar`]:{height:Ce.lineWidthBold,"&-animated":{transition:`width ${Ce.motionDurationSlow}, left ${Ce.motionDurationSlow}, right ${Ce.motionDurationSlow}`}},[`${Ne}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Ce.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Ce.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Ce.boxShadowTabsOverflowRight},[`&${Ne}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ne}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ne}-top`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{"&::before":{bottom:0},[`${Ne}-ink-bar`]:{bottom:0}}},[`${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{order:1,marginTop:`${Be}px`,marginBottom:0,"&::before":{top:0},[`${Ne}-ink-bar`]:{top:0}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{order:0}},[`${Ne}-left, ${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{flexDirection:"column",minWidth:Ce.controlHeight*1.25,[`${Ne}-tab`]:{padding:et,textAlign:"center"},[`${Ne}-tab + ${Ne}-tab`]:{margin:bt},[`${Ne}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Ce.controlHeight},"&::before":{top:0,boxShadow:Ce.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Ce.boxShadowTabsOverflowBottom},[`&${Ne}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ne}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ne}-ink-bar`]:{width:Ce.lineWidthBold,"&-animated":{transition:`height ${Ce.motionDurationSlow}, top ${Ce.motionDurationSlow}`}},[`${Ne}-nav-list, ${Ne}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ne}-left`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Ce.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`},[`> ${Ne}-content > ${Ne}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Ce.paddingLG}}}},[`${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{order:1,[`${Ne}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Ce.lineWidth},borderRight:{_skip_check_:!0,value:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`},[`> ${Ne}-content > ${Ne}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Ce.paddingLG}}}}}},Hr=Ce=>{const{componentCls:Ne,cardPaddingSM:Be,cardPaddingLG:He,horizontalItemPaddingSM:Ge,horizontalItemPaddingLG:et}=Ce;return{[Ne]:{"&-small":{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Ge,fontSize:Ce.titleFontSizeSM}}},"&-large":{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:et,fontSize:Ce.titleFontSizeLG}}}},[`${Ne}-card`]:{[`&${Ne}-small`]:{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Be}},[`&${Ne}-bottom`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:`0 0 ${Ce.borderRadius}px ${Ce.borderRadius}px`}},[`&${Ne}-top`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:`${Ce.borderRadius}px ${Ce.borderRadius}px 0 0`}},[`&${Ne}-right`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ce.borderRadius}px ${Ce.borderRadius}px 0`}}},[`&${Ne}-left`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ce.borderRadius}px 0 0 ${Ce.borderRadius}px`}}}},[`&${Ne}-large`]:{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:He}}}}}},Nr=Ce=>{const{componentCls:Ne,itemActiveColor:Be,itemHoverColor:He,iconCls:Ge,tabsHorizontalItemMargin:et,horizontalItemPadding:bt,itemSelectedColor:Zt,itemColor:Jt}=Ce,Gn=`${Ne}-tab`;return{[Gn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:bt,fontSize:Ce.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Jt,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Be}},(0,ti.Qy)(Ce)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Ce.marginXXS},marginLeft:{_skip_check_:!0,value:Ce.marginXS},color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Ce.motionDurationSlow}`,"&:hover":{color:Ce.colorTextHeading}},"&:hover":{color:He},[`&${Gn}-active ${Gn}-btn`]:{color:Zt,textShadow:Ce.tabsActiveTextShadow},[`&${Gn}-disabled`]:{color:Ce.colorTextDisabled,cursor:"not-allowed"},[`&${Gn}-disabled ${Gn}-btn, &${Gn}-disabled ${Ne}-remove`]:{"&:focus, &:active":{color:Ce.colorTextDisabled}},[`& ${Gn}-remove ${Ge}`]:{margin:0},[Ge]:{marginRight:{_skip_check_:!0,value:Ce.marginSM}}},[`${Gn} + ${Gn}`]:{margin:{_skip_check_:!0,value:et}}}},ei=Ce=>{const{componentCls:Ne,tabsHorizontalItemMarginRTL:Be,iconCls:He,cardGutter:Ge}=Ce;return{[`${Ne}-rtl`]:{direction:"rtl",[`${Ne}-nav`]:{[`${Ne}-tab`]:{margin:{_skip_check_:!0,value:Be},[`${Ne}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[He]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Ce.marginSM}px`}},[`${Ne}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Ce.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Ce.marginXXS}px`},[He]:{margin:0}}}},[`&${Ne}-left`]:{[`> ${Ne}-nav`]:{order:1},[`> ${Ne}-content-holder`]:{order:0}},[`&${Ne}-right`]:{[`> ${Ne}-nav`]:{order:0},[`> ${Ne}-content-holder`]:{order:1}},[`&${Ne}-card${Ne}-top, &${Ne}-card${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginRight:{_skip_check_:!0,value:Ge},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ne}-dropdown-rtl`]:{direction:"rtl"},[`${Ne}-menu-item`]:{[`${Ne}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},gi=Ce=>{const{componentCls:Ne,tabsCardPadding:Be,cardHeight:He,cardGutter:Ge,itemHoverColor:et,itemActiveColor:bt,colorBorderSecondary:Zt}=Ce;return{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ti.Wf)(Ce)),{display:"flex",[`> ${Ne}-nav, > div > ${Ne}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ne}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Ce.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ne}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Ce.motionDurationSlow}`},[`${Ne}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ne}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ne}-nav-more`]:{position:"relative",padding:Be,background:"transparent",border:0,color:Ce.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Ce.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ne}-nav-add`]:Object.assign({minWidth:He,marginLeft:{_skip_check_:!0,value:Ge},padding:`0 ${Ce.paddingXS}px`,background:"transparent",border:`${Ce.lineWidth}px ${Ce.lineType} ${Zt}`,borderRadius:`${Ce.borderRadiusLG}px ${Ce.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Ce.colorText,transition:`all ${Ce.motionDurationSlow} ${Ce.motionEaseInOut}`,"&:hover":{color:et},"&:active, &:focus:not(:focus-visible)":{color:bt}},(0,ti.Qy)(Ce))},[`${Ne}-extra-content`]:{flex:"none"},[`${Ne}-ink-bar`]:{position:"absolute",background:Ce.inkBarColor,pointerEvents:"none"}}),Nr(Ce)),{[`${Ne}-content`]:{position:"relative",width:"100%"},[`${Ne}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ne}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ne}-centered`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-nav-wrap`]:{[`&:not([class*='${Ne}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Mr=(0,yt.Z)("Tabs",Ce=>{const Ne=(0,ht.TS)(Ce,{tabsCardPadding:Ce.cardPadding||`${(Ce.cardHeight-Math.round(Ce.fontSize*Ce.lineHeight))/2-Ce.lineWidth}px ${Ce.padding}px`,dropdownEdgeChildVerticalPadding:Ce.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ce.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ce.horizontalItemGutter}px`});return[Hr(Ne),ei(Ne),Br(Ne),Er(Ne),ur(Ne),gi(Ne),kn(Ne)]},Ce=>{const Ne=Ce.controlHeightLG;return{zIndexPopup:Ce.zIndexPopupBase+50,cardBg:Ce.colorFillAlter,cardHeight:Ne,cardPadding:"",cardPaddingSM:`${Ce.paddingXXS*1.5}px ${Ce.padding}px`,cardPaddingLG:`${Ce.paddingXS}px ${Ce.padding}px ${Ce.paddingXXS*1.5}px`,titleFontSize:Ce.fontSize,titleFontSizeLG:Ce.fontSizeLG,titleFontSizeSM:Ce.fontSize,inkBarColor:Ce.colorPrimary,horizontalMargin:`0 0 ${Ce.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Ce.paddingSM}px 0`,horizontalItemPaddingSM:`${Ce.paddingXS}px 0`,horizontalItemPaddingLG:`${Ce.padding}px 0`,verticalItemPadding:`${Ce.paddingXS}px ${Ce.paddingLG}px`,verticalItemMargin:`${Ce.margin}px 0 0 0`,itemColor:Ce.colorText,itemSelectedColor:Ce.colorPrimary,itemHoverColor:Ce.colorPrimaryHover,itemActiveColor:Ce.colorPrimaryActive,cardGutter:Ce.marginXXS/2}}),fi=function(Ce,Ne){var Be={};for(var He in Ce)Object.prototype.hasOwnProperty.call(Ce,He)&&Ne.indexOf(He)<0&&(Be[He]=Ce[He]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,He=Object.getOwnPropertySymbols(Ce);Ge{const{type:Ne,className:Be,rootClassName:He,size:Ge,onEdit:et,hideAdd:bt,centered:Zt,addIcon:Jt,popupClassName:Gn,children:fr,items:Wn,animated:pn,style:dn,indicatorSize:Cn}=Ce,In=fi(Ce,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:cr,moreIcon:jn=ze.createElement(tt.Z,null)}=In,{direction:Zn,tabs:Jn,getPrefixCls:Qn,getPopupContainer:hr}=ze.useContext(pi.E_),Pe=Qn("tabs",cr),[$e,xt]=Mr(Pe);let rt;Ne==="editable-card"&&(rt={onEdit:(Xt,Nn)=>{let{key:Fn,event:mr}=Nn;et==null||et(Xt==="add"?mr:Fn,Xt)},removeIcon:ze.createElement(fe.Z,null),addIcon:Jt||ze.createElement(Fe.Z,null),showAdd:bt!==!0});const It=Qn(),rn=ea(Wn,fr),fn=Vr(Pe,pn),On=(0,Gi.Z)(Ge),wn=Object.assign(Object.assign({},Jn==null?void 0:Jn.style),dn);return $e(ze.createElement(Li,Object.assign({direction:Zn,getPopupContainer:hr,moreTransitionName:`${It}-slide-up`},In,{items:rn,className:be()({[`${Pe}-${On}`]:On,[`${Pe}-card`]:["card","editable-card"].includes(Ne),[`${Pe}-editable-card`]:Ne==="editable-card",[`${Pe}-centered`]:Zt},Jn==null?void 0:Jn.className,Be,He,xt),popupClassName:be()(Gn,xt),style:wn,editable:rt,moreIcon:jn,prefixCls:Pe,animated:fn,indicatorSize:Cn!=null?Cn:Jn==null?void 0:Jn.indicatorSize})))};Ai.TabPane=ii;var Si=Ai},59810:function(Ln,qt,ce){"use strict";ce.d(qt,{default:function(){return ar}});var fe=ce(67294),tt=ce(74902),Fe=ce(94184),Ye=ce.n(Fe),be=ce(87462),_e=ce(15671),Le=ce(43144),Se=ce(60136),pe=ce(51630),Te=ce(4942),gt=ce(45987),ze=ce(74165),Pt=ce(71002),kt=ce(15861),pt=ce(64217);function Je(ot,Qe){var vt="cannot ".concat(ot.method," ").concat(ot.action," ").concat(Qe.status,"'"),Qt=new Error(vt);return Qt.status=Qe.status,Qt.method=ot.method,Qt.url=ot.action,Qt}function De(ot){var Qe=ot.responseText||ot.response;if(!Qe)return Qe;try{return JSON.parse(Qe)}catch(vt){return Qe}}function Dt(ot){var Qe=new XMLHttpRequest;ot.onProgress&&Qe.upload&&(Qe.upload.onprogress=function(en){en.total>0&&(en.percent=en.loaded/en.total*100),ot.onProgress(en)});var vt=new FormData;ot.data&&Object.keys(ot.data).forEach(function(Tn){var en=ot.data[Tn];if(Array.isArray(en)){en.forEach(function(cn){vt.append("".concat(Tn,"[]"),cn)});return}vt.append(Tn,en)}),ot.file instanceof Blob?vt.append(ot.filename,ot.file,ot.file.name):vt.append(ot.filename,ot.file),Qe.onerror=function(en){ot.onError(en)},Qe.onload=function(){return Qe.status<200||Qe.status>=300?ot.onError(Je(ot,Qe),De(Qe)):ot.onSuccess(De(Qe),Qe)},Qe.open(ot.method,ot.action,!0),ot.withCredentials&&"withCredentials"in Qe&&(Qe.withCredentials=!0);var Qt=ot.headers||{};return Qt["X-Requested-With"]!==null&&Qe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Qt).forEach(function(Tn){Qt[Tn]!==null&&Qe.setRequestHeader(Tn,Qt[Tn])}),Qe.send(vt),{abort:function(){Qe.abort()}}}var Yt=+new Date,nt=0;function ct(){return"rc-upload-".concat(Yt,"-").concat(++nt)}var Ie=ce(80334),Me=function(ot,Qe){if(ot&&Qe){var vt=Array.isArray(Qe)?Qe:Qe.split(","),Qt=ot.name||"",Tn=ot.type||"",en=Tn.replace(/\/.*$/,"");return vt.some(function(cn){var un=cn.trim();if(/^\*(\/\*)?$/.test(cn))return!0;if(un.charAt(0)==="."){var Dn=Qt.toLowerCase(),or=un.toLowerCase(),Kt=[or];return(or===".jpg"||or===".jpeg")&&(Kt=[".jpg",".jpeg"]),Kt.some(function(Yr){return Dn.endsWith(Yr)})}return/\/\*$/.test(un)?en===un.replace(/\/.*$/,""):Tn===un?!0:/^\w+$/.test(un)?((0,Ie.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(un,"'.Skip for check.")),!0):!1})}return!0};function Ve(ot,Qe){var vt=ot.createReader(),Qt=[];function Tn(){vt.readEntries(function(en){var cn=Array.prototype.slice.apply(en);Qt=Qt.concat(cn);var un=!cn.length;un?Qe(Qt):Tn()})}Tn()}var Xe=function(Qe,vt,Qt){var Tn=function en(cn,un){cn&&(cn.path=un||"",cn.isFile?cn.file(function(Dn){Qt(Dn)&&(cn.fullPath&&!Dn.webkitRelativePath&&(Object.defineProperties(Dn,{webkitRelativePath:{writable:!0}}),Dn.webkitRelativePath=cn.fullPath.replace(/^\//,""),Object.defineProperties(Dn,{webkitRelativePath:{writable:!1}})),vt([Dn]))}):cn.isDirectory&&Ve(cn,function(Dn){Dn.forEach(function(or){en(or,"".concat(un).concat(cn.name,"/"))})}))};Qe.forEach(function(en){Tn(en.webkitGetAsEntry())})},Ct=Xe,wt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Mt=function(ot){(0,Se.Z)(vt,ot);var Qe=(0,pe.Z)(vt);function vt(){var Qt;(0,_e.Z)(this,vt);for(var Tn=arguments.length,en=new Array(Tn),cn=0;cn{let{uid:en}=Tn;return en===ot.uid});return Qt===-1?vt.push(ot):vt[Qt]=ot,vt}function sn(ot,Qe){const vt=ot.uid!==void 0?"uid":"name";return Qe.filter(Qt=>Qt[vt]===ot[vt])[0]}function yn(ot,Qe){const vt=ot.uid!==void 0?"uid":"name",Qt=Qe.filter(Tn=>Tn[vt]!==ot[vt]);return Qt.length===Qe.length?null:Qt}const ln=function(){const Qe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Qt=Qe[Qe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Qt)||[""])[0]},yr=ot=>ot.indexOf("image/")===0,Fr=ot=>{if(ot.type&&!ot.thumbUrl)return yr(ot.type);const Qe=ot.thumbUrl||ot.url||"",vt=ln(Qe);return/^data:image\//.test(Qe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(vt)?!0:!(/^data:/.test(Qe)||vt)},Nt=200;function Rn(ot){return new Promise(Qe=>{if(!ot.type||!yr(ot.type)){Qe("");return}const vt=document.createElement("canvas");vt.width=Nt,vt.height=Nt,vt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Nt}px; height: ${Nt}px; z-index: 9999; display: none;`,document.body.appendChild(vt);const Qt=vt.getContext("2d"),Tn=new Image;if(Tn.onload=()=>{const{width:en,height:cn}=Tn;let un=Nt,Dn=Nt,or=0,Kt=0;en>cn?(Dn=cn*(Nt/en),Kt=-(Dn-un)/2):(un=en*(Nt/cn),or=-(un-Dn)/2),Qt.drawImage(Tn,or,Kt,un,Dn);const Yr=vt.toDataURL();document.body.removeChild(vt),window.URL.revokeObjectURL(Tn.src),Qe(Yr)},Tn.crossOrigin="anonymous",ot.type.startsWith("image/svg+xml")){const en=new FileReader;en.onload=()=>{en.result&&(Tn.src=en.result)},en.readAsDataURL(ot)}else if(ot.type.startsWith("image/gif")){const en=new FileReader;en.onload=()=>{en.result&&Qe(en.result)},en.readAsDataURL(ot)}else Tn.src=window.URL.createObjectURL(ot)})}var Gr=ce(84249),li=ce(90674),st=ce(99569),Wt=ce(38703),Vn=ce(83062),gr=fe.forwardRef((ot,Qe)=>{let{prefixCls:vt,className:Qt,style:Tn,locale:en,listType:cn,file:un,items:Dn,progress:or,iconRender:Kt,actionIconRender:Yr,itemRender:$r,isImgUrl:Ri,showPreviewIcon:Li,showRemoveIcon:pi,showDownloadIcon:Gi,previewIcon:yi,removeIcon:ii,downloadIcon:Ni,onPreview:Zi,onDownload:Vr,onClose:mi}=ot;var Wi,la;const{status:ea}=un,[ti,yt]=fe.useState(ea);fe.useEffect(()=>{ea!=="removed"&&yt(ea)},[ea]);const[ht,Bt]=fe.useState(!1);fe.useEffect(()=>{const Ge=setTimeout(()=>{Bt(!0)},300);return()=>{clearTimeout(Ge)}},[]);const an=Kt(un);let kn=fe.createElement("div",{className:`${vt}-icon`},an);if(cn==="picture"||cn==="picture-card"||cn==="picture-circle")if(ti==="uploading"||!un.thumbUrl&&!un.url){const Ge=Ye()(`${vt}-list-item-thumbnail`,{[`${vt}-list-item-file`]:ti!=="uploading"});kn=fe.createElement("div",{className:Ge},an)}else{const Ge=Ri!=null&&Ri(un)?fe.createElement("img",{src:un.thumbUrl||un.url,alt:un.name,className:`${vt}-list-item-image`,crossOrigin:un.crossOrigin}):an,et=Ye()(`${vt}-list-item-thumbnail`,{[`${vt}-list-item-file`]:Ri&&!Ri(un)});kn=fe.createElement("a",{className:et,onClick:bt=>Zi(un,bt),href:un.url||un.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ge)}const ur=Ye()(`${vt}-list-item`,`${vt}-list-item-${ti}`),Er=typeof un.linkProps=="string"?JSON.parse(un.linkProps):un.linkProps,Br=pi?Yr((typeof ii=="function"?ii(un):ii)||fe.createElement(Gr.Z,null),()=>mi(un),vt,en.removeFile):null,Hr=Gi&&ti==="done"?Yr((typeof Ni=="function"?Ni(un):Ni)||fe.createElement(li.Z,null),()=>Vr(un),vt,en.downloadFile):null,Nr=cn!=="picture-card"&&cn!=="picture-circle"&&fe.createElement("span",{key:"download-delete",className:Ye()(`${vt}-list-item-actions`,{picture:cn==="picture"})},Hr,Br),ei=Ye()(`${vt}-list-item-name`),gi=un.url?[fe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ei,title:un.name},Er,{href:un.url,onClick:Ge=>Zi(un,Ge)}),un.name),Nr]:[fe.createElement("span",{key:"view",className:ei,onClick:Ge=>Zi(un,Ge),title:un.name},un.name),Nr],Mr={pointerEvents:"none",opacity:.5},fi=Li?fe.createElement("a",{href:un.url||un.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:un.url||un.thumbUrl?void 0:Mr,onClick:Ge=>Zi(un,Ge),title:en.previewFile},typeof yi=="function"?yi(un):yi||fe.createElement(st.Z,null)):null,Ai=(cn==="picture-card"||cn==="picture-circle")&&ti!=="uploading"&&fe.createElement("span",{className:`${vt}-list-item-actions`},fi,ti==="done"&&Hr,Br),{getPrefixCls:Si}=fe.useContext(Sr.E_),Ce=Si(),Ne=fe.createElement("div",{className:ur},kn,gi,Ai,ht&&fe.createElement(ye.default,{motionName:`${Ce}-fade`,visible:ti==="uploading",motionDeadline:2e3},Ge=>{let{className:et}=Ge;const bt="percent"in un?fe.createElement(Wt.Z,Object.assign({},or,{type:"line",percent:un.percent,"aria-label":un["aria-label"],"aria-labelledby":un["aria-labelledby"]})):null;return fe.createElement("div",{className:Ye()(`${vt}-list-item-progress`,et)},bt)})),Be=un.response&&typeof un.response=="string"?un.response:((Wi=un.error)===null||Wi===void 0?void 0:Wi.statusText)||((la=un.error)===null||la===void 0?void 0:la.message)||en.uploadError,He=ti==="error"?fe.createElement(Vn.Z,{title:Be,getPopupContainer:Ge=>Ge.parentNode},Ne):Ne;return fe.createElement("div",{className:Ye()(`${vt}-list-item-container`,Qt),style:Tn,ref:Qe},$r?$r(He,un,Dn,{download:Vr.bind(null,un),preview:Zi.bind(null,un),remove:mi.bind(null,un)}):He)});const Pr=(ot,Qe)=>{const{listType:vt="text",previewFile:Qt=Rn,onPreview:Tn,onDownload:en,onRemove:cn,locale:un,iconRender:Dn,isImageUrl:or=Fr,prefixCls:Kt,items:Yr=[],showPreviewIcon:$r=!0,showRemoveIcon:Ri=!0,showDownloadIcon:Li=!1,removeIcon:pi,previewIcon:Gi,downloadIcon:yi,progress:ii={size:[-1,2],showInfo:!1},appendAction:Ni,appendActionVisible:Zi=!0,itemRender:Vr,disabled:mi}=ot,Wi=(0,ve.Z)(),[la,ea]=fe.useState(!1);fe.useEffect(()=>{vt!=="picture"&&vt!=="picture-card"&&vt!=="picture-circle"||(Yr||[]).forEach(Mr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Mr.originFileObj instanceof File||Mr.originFileObj instanceof Blob)||Mr.thumbUrl!==void 0||(Mr.thumbUrl="",Qt&&Qt(Mr.originFileObj).then(fi=>{Mr.thumbUrl=fi||"",Wi()}))})},[vt,Yr,Qt]),fe.useEffect(()=>{ea(!0)},[]);const ti=(Mr,fi)=>{if(Tn)return fi==null||fi.preventDefault(),Tn(Mr)},yt=Mr=>{typeof en=="function"?en(Mr):Mr.url&&window.open(Mr.url)},ht=Mr=>{cn==null||cn(Mr)},Bt=Mr=>{if(Dn)return Dn(Mr,vt);const fi=Mr.status==="uploading",Ai=or&&or(Mr)?fe.createElement(se,null):fe.createElement(Gt,null);let Si=fi?fe.createElement(zn.Z,null):fe.createElement(Pn,null);return vt==="picture"?Si=fi?fe.createElement(zn.Z,null):Ai:(vt==="picture-card"||vt==="picture-circle")&&(Si=fi?un.uploading:Ai),Si},an=(Mr,fi,Ai,Si)=>{const Ce={type:"text",size:"small",title:Si,onClick:Ne=>{fi(),(0,We.l$)(Mr)&&Mr.props.onClick&&Mr.props.onClick(Ne)},className:`${Ai}-list-item-action`,disabled:mi};if((0,We.l$)(Mr)){const Ne=(0,We.Tm)(Mr,Object.assign(Object.assign({},Mr.props),{onClick:()=>{}}));return fe.createElement(Lt.ZP,Object.assign({},Ce,{icon:Ne}))}return fe.createElement(Lt.ZP,Object.assign({},Ce),fe.createElement("span",null,Mr))};fe.useImperativeHandle(Qe,()=>({handlePreview:ti,handleDownload:yt}));const{getPrefixCls:kn}=fe.useContext(Sr.E_),ur=kn("upload",Kt),Er=kn(),Br=Ye()(`${ur}-list`,`${ur}-list-${vt}`),Hr=(0,tt.Z)(Yr.map(Mr=>({key:Mr.uid,file:Mr})));let ei={motionDeadline:2e3,motionName:`${ur}-${vt==="picture-card"||vt==="picture-circle"?"animate-inline":"animate"}`,keys:Hr,motionAppear:la};const gi=fe.useMemo(()=>{const Mr=Object.assign({},(0,le.Z)(Er));return delete Mr.onAppearEnd,delete Mr.onEnterEnd,delete Mr.onLeaveEnd,Mr},[Er]);return vt!=="picture-card"&&vt!=="picture-circle"&&(ei=Object.assign(Object.assign({},gi),ei)),fe.createElement("div",{className:Br},fe.createElement(ye.CSSMotionList,Object.assign({},ei,{component:!1}),Mr=>{let{key:fi,file:Ai,className:Si,style:Ce}=Mr;return fe.createElement(gr,{key:fi,locale:un,prefixCls:ur,className:Si,style:Ce,file:Ai,items:Yr,progress:ii,listType:vt,isImgUrl:or,showPreviewIcon:$r,showRemoveIcon:Ri,showDownloadIcon:Li,removeIcon:pi,previewIcon:Gi,downloadIcon:yi,iconRender:Bt,actionIconRender:an,itemRender:Vr,onPreview:ti,onDownload:yt,onClose:ht})}),Ni&&fe.createElement(ye.default,Object.assign({},ei,{visible:Zi,forceRender:!0}),Mr=>{let{className:fi,style:Ai}=Mr;return(0,We.Tm)(Ni,Si=>({className:Ye()(Si.className,fi),style:Object.assign(Object.assign(Object.assign({},Ai),{pointerEvents:fi?"none":void 0}),Si.style)}))}))};var Xr=fe.forwardRef(Pr),qr=ce(14747),ui=ce(33507),br=ce(67968),Ei=ce(45503),Ji=ot=>{const{componentCls:Qe,iconCls:vt}=ot;return{[`${Qe}-wrapper`]:{[`${Qe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ot.colorFillAlter,border:`${ot.lineWidth}px dashed ${ot.colorBorder}`,borderRadius:ot.borderRadiusLG,cursor:"pointer",transition:`border-color ${ot.motionDurationSlow}`,[Qe]:{padding:`${ot.padding}px 0`},[`${Qe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Qe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Qe}-disabled):hover`]:{borderColor:ot.colorPrimaryHover},[`p${Qe}-drag-icon`]:{marginBottom:ot.margin,[vt]:{color:ot.colorPrimary,fontSize:ot.uploadThumbnailSize}},[`p${Qe}-text`]:{margin:`0 0 ${ot.marginXXS}px`,color:ot.colorTextHeading,fontSize:ot.fontSizeLG},[`p${Qe}-hint`]:{color:ot.colorTextDescription,fontSize:ot.fontSize},[`&${Qe}-disabled`]:{cursor:"not-allowed",[`p${Qe}-drag-icon ${vt}, p${Qe}-text, p${Qe}-hint `]:{color:ot.colorTextDisabled}}}}}},Ci=ot=>{const{componentCls:Qe,antCls:vt,iconCls:Qt,fontSize:Tn,lineHeight:en}=ot,cn=`${Qe}-list-item`,un=`${cn}-actions`,Dn=`${cn}-action`,or=Math.round(Tn*en);return{[`${Qe}-wrapper`]:{[`${Qe}-list`]:Object.assign(Object.assign({},(0,qr.dF)()),{lineHeight:ot.lineHeight,[cn]:{position:"relative",height:ot.lineHeight*Tn,marginTop:ot.marginXS,fontSize:Tn,display:"flex",alignItems:"center",transition:`background-color ${ot.motionDurationSlow}`,"&:hover":{backgroundColor:ot.controlItemBgHover},[`${cn}-name`]:Object.assign(Object.assign({},qr.vS),{padding:`0 ${ot.paddingXS}px`,lineHeight:en,flex:"auto",transition:`all ${ot.motionDurationSlow}`}),[un]:{[Dn]:{opacity:0},[`${Dn}${vt}-btn-sm`]:{height:or,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${Dn}:focus-visible, &.picture ${Dn} `]:{opacity:1},[Qt]:{color:ot.actionsColor,transition:`all ${ot.motionDurationSlow}`},[`&:hover ${Qt}`]:{color:ot.colorText}},[`${Qe}-icon ${Qt}`]:{color:ot.colorTextDescription,fontSize:Tn},[`${cn}-progress`]:{position:"absolute",bottom:-ot.uploadProgressOffset,width:"100%",paddingInlineStart:Tn+ot.paddingXS,fontSize:Tn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${cn}:hover ${Dn}`]:{opacity:1,color:ot.colorText},[`${cn}-error`]:{color:ot.colorError,[`${cn}-name, ${Qe}-icon ${Qt}`]:{color:ot.colorError},[un]:{[`${Qt}, ${Qt}:hover`]:{color:ot.colorError},[Dn]:{opacity:1}}},[`${Qe}-list-item-container`]:{transition:`opacity ${ot.motionDurationSlow}, height ${ot.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},mt=ce(34367),Mn=ce(16932);const En=new mt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),An=new mt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var nr=ot=>{const{componentCls:Qe}=ot,vt=`${Qe}-animate-inline`;return[{[`${Qe}-wrapper`]:{[`${vt}-appear, ${vt}-enter, ${vt}-leave`]:{animationDuration:ot.motionDurationSlow,animationTimingFunction:ot.motionEaseInOutCirc,animationFillMode:"forwards"},[`${vt}-appear, ${vt}-enter`]:{animationName:En},[`${vt}-leave`]:{animationName:An}}},{[`${Qe}-wrapper`]:(0,Mn.J$)(ot)},En,An]},pr=ce(16397),Kn=ce(84780);const Ue=ot=>{const{componentCls:Qe,iconCls:vt,uploadThumbnailSize:Qt,uploadProgressOffset:Tn}=ot,en=`${Qe}-list`,cn=`${en}-item`;return{[`${Qe}-wrapper`]:{[` ${en}${en}-picture, ${en}${en}-picture-card, ${en}${en}-picture-circle `]:{[cn]:{position:"relative",height:Qt+ot.lineWidth*2+ot.paddingXS*2,padding:ot.paddingXS,border:`${ot.lineWidth}px ${ot.lineType} ${ot.colorBorder}`,borderRadius:ot.borderRadiusLG,"&:hover":{background:"transparent"},[`${cn}-thumbnail`]:Object.assign(Object.assign({},qr.vS),{width:Qt,height:Qt,lineHeight:`${Qt+ot.paddingSM}px`,textAlign:"center",flex:"none",[vt]:{fontSize:ot.fontSizeHeading2,color:ot.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${cn}-progress`]:{bottom:Tn,width:`calc(100% - ${ot.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Qt+ot.paddingXS}},[`${cn}-error`]:{borderColor:ot.colorError,[`${cn}-thumbnail ${vt}`]:{[`svg path[fill='${pr.blue[0]}']`]:{fill:ot.colorErrorBg},[`svg path[fill='${pr.blue.primary}']`]:{fill:ot.colorError}}},[`${cn}-uploading`]:{borderStyle:"dashed",[`${cn}-name`]:{marginBottom:Tn}}},[`${en}${en}-picture-circle ${cn}`]:{[`&, &::before, ${cn}-thumbnail`]:{borderRadius:"50%"}}}}},it=ot=>{const{componentCls:Qe,iconCls:vt,fontSizeLG:Qt,colorTextLightSolid:Tn}=ot,en=`${Qe}-list`,cn=`${en}-item`,un=ot.uploadPicCardSize;return{[` ${Qe}-wrapper${Qe}-picture-card-wrapper, ${Qe}-wrapper${Qe}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,qr.dF)()),{display:"inline-block",width:"100%",[`${Qe}${Qe}-select`]:{width:un,height:un,marginInlineEnd:ot.marginXS,marginBottom:ot.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ot.colorFillAlter,border:`${ot.lineWidth}px dashed ${ot.colorBorder}`,borderRadius:ot.borderRadiusLG,cursor:"pointer",transition:`border-color ${ot.motionDurationSlow}`,[`> ${Qe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Qe}-disabled):hover`]:{borderColor:ot.colorPrimary}},[`${en}${en}-picture-card, ${en}${en}-picture-circle`]:{[`${en}-item-container`]:{display:"inline-block",width:un,height:un,marginBlock:`0 ${ot.marginXS}px`,marginInline:`0 ${ot.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[cn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ot.paddingXS*2}px)`,height:`calc(100% - ${ot.paddingXS*2}px)`,backgroundColor:ot.colorBgMask,opacity:0,transition:`all ${ot.motionDurationSlow}`,content:'" "'}},[`${cn}:hover`]:{[`&::before, ${cn}-actions`]:{opacity:1}},[`${cn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ot.motionDurationSlow}`,[`${vt}-eye, ${vt}-download, ${vt}-delete`]:{zIndex:10,width:Qt,margin:`0 ${ot.marginXXS}px`,fontSize:Qt,cursor:"pointer",transition:`all ${ot.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${cn}-actions, ${cn}-actions:hover`]:{[`${vt}-eye, ${vt}-download, ${vt}-delete`]:{color:new Kn.C(Tn).setAlpha(.65).toRgbString(),"&:hover":{color:Tn}}},[`${cn}-thumbnail, ${cn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${cn}-name`]:{display:"none",textAlign:"center"},[`${cn}-file + ${cn}-name`]:{position:"absolute",bottom:ot.margin,display:"block",width:`calc(100% - ${ot.paddingXS*2}px)`},[`${cn}-uploading`]:{[`&${cn}`]:{backgroundColor:ot.colorFillAlter},[`&::before, ${vt}-eye, ${vt}-download, ${vt}-delete`]:{display:"none"}},[`${cn}-progress`]:{bottom:ot.marginXL,width:`calc(100% - ${ot.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Qe}-wrapper${Qe}-picture-circle-wrapper`]:{[`${Qe}${Qe}-select`]:{borderRadius:"50%"}}}};var Ut=ot=>{const{componentCls:Qe}=ot;return{[`${Qe}-rtl`]:{direction:"rtl"}}};const Ke=ot=>{const{componentCls:Qe,colorTextDisabled:vt}=ot;return{[`${Qe}-wrapper`]:Object.assign(Object.assign({},(0,qr.Wf)(ot)),{[Qe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Qe}-select`]:{display:"inline-block"},[`${Qe}-disabled`]:{color:vt,cursor:"not-allowed"}})}};var ut=(0,br.Z)("Upload",ot=>{const{fontSizeHeading3:Qe,fontSize:vt,lineHeight:Qt,lineWidth:Tn,controlHeightLG:en}=ot,cn=Math.round(vt*Qt),un=(0,Ei.TS)(ot,{uploadThumbnailSize:Qe*2,uploadProgressOffset:cn/2+Tn,uploadPicCardSize:en*2.55});return[Ke(un),Ji(un),Ue(un),it(un),Ci(un),nr(un),Ut(un),(0,ui.Z)(un)]},ot=>({actionsColor:ot.colorTextDescription})),Ot=function(ot,Qe,vt,Qt){function Tn(en){return en instanceof vt?en:new vt(function(cn){cn(en)})}return new(vt||(vt=Promise))(function(en,cn){function un(Kt){try{or(Qt.next(Kt))}catch(Yr){cn(Yr)}}function Dn(Kt){try{or(Qt.throw(Kt))}catch(Yr){cn(Yr)}}function or(Kt){Kt.done?en(Kt.value):Tn(Kt.value).then(un,Dn)}or((Qt=Qt.apply(ot,Qe||[])).next())})};const Tt=`__LIST_IGNORE_${Date.now()}__`,zt=(ot,Qe)=>{const{fileList:vt,defaultFileList:Qt,onRemove:Tn,showUploadList:en=!0,listType:cn="text",onPreview:un,onDownload:Dn,onChange:or,onDrop:Kt,previewFile:Yr,disabled:$r,locale:Ri,iconRender:Li,isImageUrl:pi,progress:Gi,prefixCls:yi,className:ii,type:Ni="select",children:Zi,style:Vr,itemRender:mi,maxCount:Wi,data:la={},multiple:ea=!1,action:ti="",accept:yt="",supportServerRender:ht=!0,rootClassName:Bt}=ot,an=fe.useContext(qe.Z),kn=$r!=null?$r:an,[ur,Er]=(0,vn.Z)(Qt||[],{value:vt,postState:Pe=>Pe!=null?Pe:[]}),[Br,Hr]=fe.useState("drop"),Nr=fe.useRef(null);fe.useMemo(()=>{const Pe=Date.now();(vt||[]).forEach(($e,xt)=>{!$e.uid&&!Object.isFrozen($e)&&($e.uid=`__AUTO__${Pe}_${xt}__`)})},[vt]);const ei=(Pe,$e,xt)=>{let rt=(0,tt.Z)($e),It=!1;Wi===1?rt=rt.slice(-1):Wi&&(It=rt.length>Wi,rt=rt.slice(0,Wi)),(0,er.flushSync)(()=>{Er(rt)});const rn={file:Pe,fileList:rt};xt&&(rn.event=xt),(!It||rt.some(fn=>fn.uid===Pe.uid))&&(0,er.flushSync)(()=>{or==null||or(rn)})},gi=(Pe,$e)=>Ot(void 0,void 0,void 0,function*(){const{beforeUpload:xt,transformFile:rt}=ot;let It=Pe;if(xt){const rn=yield xt(Pe,$e);if(rn===!1)return!1;if(delete Pe[Tt],rn===Tt)return Object.defineProperty(Pe,Tt,{value:!0,configurable:!0}),!1;typeof rn=="object"&&rn&&(It=rn)}return rt&&(It=yield rt(It)),It}),Mr=Pe=>{const $e=Pe.filter(It=>!It.file[Tt]);if(!$e.length)return;const xt=$e.map(It=>tn(It.file));let rt=(0,tt.Z)(ur);xt.forEach(It=>{rt=hn(It,rt)}),xt.forEach((It,rn)=>{let fn=It;if($e[rn].parsedFile)It.status="uploading";else{const{originFileObj:On}=It;let wn;try{wn=new File([On],On.name,{type:On.type})}catch(Xt){wn=new Blob([On],{type:On.type}),wn.name=On.name,wn.lastModifiedDate=new Date,wn.lastModified=new Date().getTime()}wn.uid=It.uid,fn=wn}ei(fn,rt)})},fi=(Pe,$e,xt)=>{try{typeof Pe=="string"&&(Pe=JSON.parse(Pe))}catch(rn){}if(!sn($e,ur))return;const rt=tn($e);rt.status="done",rt.percent=100,rt.response=Pe,rt.xhr=xt;const It=hn(rt,ur);ei(rt,It)},Ai=(Pe,$e)=>{if(!sn($e,ur))return;const xt=tn($e);xt.status="uploading",xt.percent=Pe.percent;const rt=hn(xt,ur);ei(xt,rt,Pe)},Si=(Pe,$e,xt)=>{if(!sn(xt,ur))return;const rt=tn(xt);rt.error=Pe,rt.response=$e,rt.status="error";const It=hn(rt,ur);ei(rt,It)},Ce=Pe=>{let $e;Promise.resolve(typeof Tn=="function"?Tn(Pe):Tn).then(xt=>{var rt;if(xt===!1)return;const It=yn(Pe,ur);It&&($e=Object.assign(Object.assign({},Pe),{status:"removed"}),ur==null||ur.forEach(rn=>{const fn=$e.uid!==void 0?"uid":"name";rn[fn]===$e[fn]&&!Object.isFrozen(rn)&&(rn.status="removed")}),(rt=Nr.current)===null||rt===void 0||rt.abort($e),ei($e,It))})},Ne=Pe=>{Hr(Pe.type),Pe.type==="drop"&&(Kt==null||Kt(Pe))};fe.useImperativeHandle(Qe,()=>({onBatchStart:Mr,onSuccess:fi,onProgress:Ai,onError:Si,fileList:ur,upload:Nr.current}));const{getPrefixCls:Be,direction:He,upload:Ge}=fe.useContext(Sr.E_),et=Be("upload",yi),bt=Object.assign(Object.assign({onBatchStart:Mr,onError:Si,onProgress:Ai,onSuccess:fi},ot),{data:la,multiple:ea,action:ti,accept:yt,supportServerRender:ht,prefixCls:et,disabled:kn,beforeUpload:gi,onChange:void 0});delete bt.className,delete bt.style,(!Zi||kn)&&delete bt.id;const[Zt,Jt]=ut(et),[Gn]=(0,Ae.Z)("Upload",$t.Z.Upload),{showRemoveIcon:fr,showPreviewIcon:Wn,showDownloadIcon:pn,removeIcon:dn,previewIcon:Cn,downloadIcon:In}=typeof en=="boolean"?{}:en,cr=(Pe,$e)=>en?fe.createElement(Xr,{prefixCls:et,listType:cn,items:ur,previewFile:Yr,onPreview:un,onDownload:Dn,onRemove:Ce,showRemoveIcon:!kn&&fr,showPreviewIcon:Wn,showDownloadIcon:pn,removeIcon:dn,previewIcon:Cn,downloadIcon:In,iconRender:Li,locale:Object.assign(Object.assign({},Gn),Ri),isImageUrl:pi,progress:Gi,appendAction:Pe,appendActionVisible:$e,itemRender:mi,disabled:kn}):Pe,jn=Ye()(`${et}-wrapper`,ii,Bt,Jt,Ge==null?void 0:Ge.className,{[`${et}-rtl`]:He==="rtl",[`${et}-picture-card-wrapper`]:cn==="picture-card",[`${et}-picture-circle-wrapper`]:cn==="picture-circle"}),Zn=Object.assign(Object.assign({},Ge==null?void 0:Ge.style),Vr);if(Ni==="drag"){const Pe=Ye()(Jt,et,`${et}-drag`,{[`${et}-drag-uploading`]:ur.some($e=>$e.status==="uploading"),[`${et}-drag-hover`]:Br==="dragover",[`${et}-disabled`]:kn,[`${et}-rtl`]:He==="rtl"});return Zt(fe.createElement("span",{className:jn},fe.createElement("div",{className:Pe,style:Zn,onDrop:Ne,onDragOver:Ne,onDragLeave:Ne},fe.createElement(jt,Object.assign({},bt,{ref:Nr,className:`${et}-btn`}),fe.createElement("div",{className:`${et}-drag-container`},Zi))),cr()))}const Jn=Ye()(et,`${et}-select`,{[`${et}-disabled`]:kn}),hr=(Pe=>fe.createElement("div",{className:Jn,style:Pe},fe.createElement(jt,Object.assign({},bt,{ref:Nr}))))(Zi?void 0:{display:"none"});return Zt(cn==="picture-card"||cn==="picture-circle"?fe.createElement("span",{className:jn},cr(hr,!!Zi)):fe.createElement("span",{className:jn},hr,cr()))};var $n=fe.forwardRef(zt),Cr=function(ot,Qe){var vt={};for(var Qt in ot)Object.prototype.hasOwnProperty.call(ot,Qt)&&Qe.indexOf(Qt)<0&&(vt[Qt]=ot[Qt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tn=0,Qt=Object.getOwnPropertySymbols(ot);Tn{var{style:vt,height:Qt}=ot,Tn=Cr(ot,["style","height"]);return fe.createElement($n,Object.assign({ref:Qe},Tn,{type:"drag",style:Object.assign(Object.assign({},vt),{height:Qt})}))});const rr=$n;rr.Dragger=qn,rr.LIST_IGNORE=Tt;var ar=rr},41771:function(Ln,qt){"use strict";var ce;var fe=typeof Symbol=="function"&&Symbol.for,tt=fe?Symbol.for("react.element"):60103,Fe=fe?Symbol.for("react.portal"):60106,Ye=fe?Symbol.for("react.fragment"):60107,be=fe?Symbol.for("react.strict_mode"):60108,_e=fe?Symbol.for("react.profiler"):60114,Le=fe?Symbol.for("react.provider"):60109,Se=fe?Symbol.for("react.context"):60110,pe=fe?Symbol.for("react.async_mode"):60111,Te=fe?Symbol.for("react.concurrent_mode"):60111,gt=fe?Symbol.for("react.forward_ref"):60112,ze=fe?Symbol.for("react.suspense"):60113,Pt=fe?Symbol.for("react.suspense_list"):60120,kt=fe?Symbol.for("react.memo"):60115,pt=fe?Symbol.for("react.lazy"):60116,Je=fe?Symbol.for("react.block"):60121,De=fe?Symbol.for("react.fundamental"):60117,Dt=fe?Symbol.for("react.responder"):60118,Yt=fe?Symbol.for("react.scope"):60119;function nt(Ie){if(typeof Ie=="object"&&Ie!==null){var Me=Ie.$$typeof;switch(Me){case tt:switch(Ie=Ie.type,Ie){case pe:case Te:case Ye:case _e:case be:case ze:return Ie;default:switch(Ie=Ie&&Ie.$$typeof,Ie){case Se:case gt:case pt:case kt:case Le:return Ie;default:return Me}}case Fe:return Me}}}function ct(Ie){return nt(Ie)===Te}ce=pe,ce=Te,ce=Se,ce=Le,ce=tt,ce=gt,ce=Ye,ce=pt,ce=kt,ce=Fe,ce=_e,ce=be,ce=ze,ce=function(Ie){return ct(Ie)||nt(Ie)===pe},ce=ct,ce=function(Ie){return nt(Ie)===Se},ce=function(Ie){return nt(Ie)===Le},ce=function(Ie){return typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===tt},ce=function(Ie){return nt(Ie)===gt},qt.isFragment=function(Ie){return nt(Ie)===Ye},ce=function(Ie){return nt(Ie)===pt},ce=function(Ie){return nt(Ie)===kt},ce=function(Ie){return nt(Ie)===Fe},ce=function(Ie){return nt(Ie)===_e},ce=function(Ie){return nt(Ie)===be},ce=function(Ie){return nt(Ie)===ze},ce=function(Ie){return typeof Ie=="string"||typeof Ie=="function"||Ie===Ye||Ie===Te||Ie===_e||Ie===be||Ie===ze||Ie===Pt||typeof Ie=="object"&&Ie!==null&&(Ie.$$typeof===pt||Ie.$$typeof===kt||Ie.$$typeof===Le||Ie.$$typeof===Se||Ie.$$typeof===gt||Ie.$$typeof===De||Ie.$$typeof===Dt||Ie.$$typeof===Yt||Ie.$$typeof===Je)},ce=nt},47655:function(Ln,qt,ce){"use strict";Ln.exports=ce(41771)},64701:function(Ln,qt,ce){"use strict";ce.r(qt),ce.d(qt,{ResizableTextArea:function(){return Hn},default:function(){return mn}});var fe=ce(87462),tt=ce(1413),Fe=ce(4942),Ye=ce(71002),be=ce(97685),_e=ce(45987),Le=ce(74902),Se=ce(94184),pe=ce.n(Se),Te=ce(67656),gt=ce(87887),ze=ce(67294);function Pt(nn){var Ft=ze.useRef();Ft.current=nn;var Pn=ze.useCallback(function(){for(var _n,Ee=arguments.length,ue=new Array(Ee),se=0;se1&&arguments[1]!==void 0?arguments[1]:1;Ve+=1;var _n=Ve;function Ee(ue){if(ue===0)Ct(_n),Ft();else{var se=Ie(function(){Ee(ue-1)});Xe.set(_n,se)}}return Ee(Pn),_n};wt.cancel=function(nn){var Ft=Xe.get(nn);return Ct(Ft),Me(Ft)};var Mt=wt,je=` 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; `,Rt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],At={},xn;function jt(nn){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pn=nn.getAttribute("id")||nn.getAttribute("data-reactid")||nn.getAttribute("name");if(Ft&&At[Pn])return At[Pn];var _n=window.getComputedStyle(nn),Ee=_n.getPropertyValue("box-sizing")||_n.getPropertyValue("-moz-box-sizing")||_n.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(_n.getPropertyValue("padding-bottom"))+parseFloat(_n.getPropertyValue("padding-top")),se=parseFloat(_n.getPropertyValue("border-bottom-width"))+parseFloat(_n.getPropertyValue("border-top-width")),ye=Rt.map(function(le){return"".concat(le,":").concat(_n.getPropertyValue(le))}).join(";"),ve={sizingStyle:ye,paddingSize:ue,borderSize:se,boxSizing:Ee};return Ft&&Pn&&(At[Pn]=ve),ve}function vn(nn){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xn||(xn=document.createElement("textarea"),xn.setAttribute("tab-index","-1"),xn.setAttribute("aria-hidden","true"),document.body.appendChild(xn)),nn.getAttribute("wrap")?xn.setAttribute("wrap",nn.getAttribute("wrap")):xn.removeAttribute("wrap");var Ee=jt(nn,Ft),ue=Ee.paddingSize,se=Ee.borderSize,ye=Ee.boxSizing,ve=Ee.sizingStyle;xn.setAttribute("style","".concat(ve,";").concat(je)),xn.value=nn.value||nn.placeholder||"";var le=void 0,We=void 0,Lt,tn=xn.scrollHeight;if(ye==="border-box"?tn+=se:ye==="content-box"&&(tn-=ue),Pn!==null||_n!==null){xn.value=" ";var hn=xn.scrollHeight-ue;Pn!==null&&(le=hn*Pn,ye==="border-box"&&(le=le+ue+se),tn=Math.max(le,tn)),_n!==null&&(We=hn*_n,ye==="border-box"&&(We=We+ue+se),Lt=tn>We?"":"hidden",tn=Math.min(We,tn))}var sn={height:tn,overflowY:Lt,resize:"none"};return le&&(sn.minHeight=le),We&&(sn.maxHeight=We),sn}var er=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Sr=0,qe=1,Ae=2,$t=ze.forwardRef(function(nn,Ft){var Pn=nn,_n=Pn.prefixCls,Ee=Pn.onPressEnter,ue=Pn.defaultValue,se=Pn.value,ye=Pn.autoSize,ve=Pn.onResize,le=Pn.className,We=Pn.style,Lt=Pn.disabled,tn=Pn.onChange,hn=Pn.onInternalAutoSize,sn=(0,_e.Z)(Pn,er),yn=nt(ue,{value:se,postState:function(An){return An!=null?An:""}}),ln=(0,be.Z)(yn,2),yr=ln[0],Fr=ln[1],Nt=function(An){Fr(An.target.value),tn==null||tn(An)},Rn=ze.useRef();ze.useImperativeHandle(Ft,function(){return{textArea:Rn.current}});var Gr=ze.useMemo(function(){return ye&&(0,Ye.Z)(ye)==="object"?[ye.minRows,ye.maxRows]:[]},[ye]),li=(0,be.Z)(Gr,2),st=li[0],Wt=li[1],Vn=!!ye,ir=function(){try{if(document.activeElement===Rn.current){var An=Rn.current,sr=An.selectionStart,nr=An.selectionEnd,pr=An.scrollTop;Rn.current.setSelectionRange(sr,nr),Rn.current.scrollTop=pr}}catch(Kn){}},gr=ze.useState(Ae),Pr=(0,be.Z)(gr,2),Ur=Pr[0],Xr=Pr[1],qr=ze.useState(),ui=(0,be.Z)(qr,2),br=ui[0],Ei=ui[1],sa=function(){Xr(Sr)};Je(function(){Vn&&sa()},[se,st,Wt,Vn]),Je(function(){if(Ur===Sr)Xr(qe);else if(Ur===qe){var En=vn(Rn.current,!1,st,Wt);Xr(Ae),Ei(En)}else ir()},[Ur]);var Ji=ze.useRef(),Qi=function(){Mt.cancel(Ji.current)},Ci=function(An){Ur===Ae&&(ve==null||ve(An),ye&&(Qi(),Ji.current=Mt(function(){sa()})))};ze.useEffect(function(){return Qi},[]);var mt=Vn?br:null,Mn=(0,tt.Z)((0,tt.Z)({},We),mt);return(Ur===Sr||Ur===qe)&&(Mn.overflowY="hidden",Mn.overflowX="hidden"),ze.createElement(ct.Z,{onResize:Ci,disabled:!(ye||ve)},ze.createElement("textarea",(0,fe.Z)({},sn,{ref:Rn,style:Mn,className:pe()(_n,le,(0,Fe.Z)({},"".concat(_n,"-disabled"),Lt)),disabled:Lt,value:yr,onChange:Nt})))}),Hn=$t,bn=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function at(nn,Ft){return(0,Le.Z)(nn||"").slice(0,Ft).join("")}function ft(nn,Ft,Pn,_n){var Ee=Pn;return nn?Ee=at(Pn,_n):(0,Le.Z)(Ft||"").length_n&&(Ee=Ft),Ee}var Gt=ze.forwardRef(function(nn,Ft){var Pn,_n=nn.defaultValue,Ee=nn.value,ue=nn.onFocus,se=nn.onBlur,ye=nn.onChange,ve=nn.allowClear,le=nn.maxLength,We=nn.onCompositionStart,Lt=nn.onCompositionEnd,tn=nn.suffix,hn=nn.prefixCls,sn=hn===void 0?"rc-textarea":hn,yn=nn.classes,ln=nn.showCount,yr=nn.className,Fr=nn.style,Nt=nn.disabled,Rn=nn.hidden,Gr=nn.classNames,li=nn.styles,st=nn.onResize,Wt=(0,_e.Z)(nn,bn),Vn=nt(_n,{value:Ee,defaultValue:_n}),ir=(0,be.Z)(Vn,2),gr=ir[0],Pr=ir[1],Ur=(0,ze.useRef)(null),Xr=ze.useState(!1),qr=(0,be.Z)(Xr,2),ui=qr[0],br=qr[1],Ei=ze.useState(!1),sa=(0,be.Z)(Ei,2),Ji=sa[0],Qi=sa[1],Ci=ze.useRef(),mt=ze.useRef(0),Mn=ze.useState(null),En=(0,be.Z)(Mn,2),An=En[0],sr=En[1],nr=function(){var rr;(rr=Ur.current)===null||rr===void 0||rr.textArea.focus()};(0,ze.useImperativeHandle)(Ft,function(){return{resizableTextArea:Ur.current,focus:nr,blur:function(){var rr;(rr=Ur.current)===null||rr===void 0||rr.textArea.blur()}}}),(0,ze.useEffect)(function(){br(function(qn){return!Nt&&qn})},[Nt]);var pr=Number(le)>0,Kn=function(rr){Qi(!0),Ci.current=gr,mt.current=rr.currentTarget.selectionStart,We==null||We(rr)},Ue=function(rr){Qi(!1);var ar=rr.currentTarget.value;if(pr){var ot,Qe=mt.current>=le+1||mt.current===((ot=Ci.current)===null||ot===void 0?void 0:ot.length);ar=ft(Qe,Ci.current,ar,le)}ar!==gr&&(Pr(ar),(0,gt.rJ)(rr.currentTarget,rr,ye,ar)),Lt==null||Lt(rr)},it=function(rr){var ar=rr.target.value;if(!Ji&&pr){var ot=rr.target.selectionStart>=le+1||rr.target.selectionStart===ar.length||!rr.target.selectionStart;ar=ft(ot,gr,ar,le)}Pr(ar),(0,gt.rJ)(rr.currentTarget,rr,ye,ar)},_t=function(rr){var ar=Wt.onPressEnter,ot=Wt.onKeyDown;rr.key==="Enter"&&ar&&ar(rr),ot==null||ot(rr)},Ut=function(rr){br(!0),ue==null||ue(rr)},Ke=function(rr){br(!1),se==null||se(rr)},ut=function(rr){var ar;Pr(""),nr(),(0,gt.rJ)((ar=Ur.current)===null||ar===void 0?void 0:ar.textArea,rr,ye)},Ot=(0,gt.D7)(gr);!Ji&&pr&&Ee==null&&(Ot=at(Ot,le));var Tt=tn,zt;if(ln){var Ht=(0,Le.Z)(Ot).length;(0,Ye.Z)(ln)==="object"?zt=ln.formatter({value:Ot,count:Ht,maxLength:le}):zt="".concat(Ht).concat(pr?" / ".concat(le):""),Tt=ze.createElement(ze.Fragment,null,Tt,ze.createElement("span",{className:pe()("".concat(sn,"-data-count"),Gr==null?void 0:Gr.count),style:li==null?void 0:li.count},zt))}var $n=function(rr){var ar;st==null||st(rr),(ar=Ur.current)!==null&&ar!==void 0&&ar.textArea.style.height&&sr(!0)},Cr=!Wt.autoSize&&!ln&&!ve,Yn=ze.createElement(Te.BaseInput,{value:Ot,allowClear:ve,handleReset:ut,suffix:Tt,prefixCls:sn,classes:{affixWrapper:pe()(yn==null?void 0:yn.affixWrapper,(Pn={},(0,Fe.Z)(Pn,"".concat(sn,"-show-count"),ln),(0,Fe.Z)(Pn,"".concat(sn,"-textarea-allow-clear"),ve),Pn))},disabled:Nt,focused:ui,className:yr,style:(0,tt.Z)((0,tt.Z)({},Fr),An&&!Cr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof zt=="string"?zt:void 0}},hidden:Rn,inputElement:ze.createElement(Hn,(0,fe.Z)({},Wt,{onKeyDown:_t,onChange:it,onFocus:Ut,onBlur:Ke,onCompositionStart:Kn,onCompositionEnd:Ue,className:Gr==null?void 0:Gr.textarea,style:(0,tt.Z)((0,tt.Z)({},li==null?void 0:li.textarea),{},{resize:Fr==null?void 0:Fr.resize}),disabled:Nt,prefixCls:sn,onResize:$n,ref:Ur}))});return Yn}),zn=Gt,mn=zn},1337:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return Se}});var fe=ce(1413),tt=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Fe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ye="".concat(tt," ").concat(Fe).split(/[\s\n]+/),be="aria-",_e="data-";function Le(pe,Te){return pe.indexOf(Te)===0}function Se(pe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt;Te===!1?gt={aria:!0,data:!0,attr:!0}:Te===!0?gt={aria:!0}:gt=(0,fe.Z)({},Te);var ze={};return Object.keys(pe).forEach(function(Pt){(gt.aria&&(Pt==="role"||Le(Pt,be))||gt.data&&Le(Pt,_e)||gt.attr&&Ye.includes(Pt))&&(ze[Pt]=pe[Pt])}),ze}},88386:function(Ln,qt,ce){(function(fe){fe(ce(4631))})(function(fe){fe.defineOption("placeholder","",function(Se,pe,Te){var gt=Te&&Te!=fe.Init;if(pe&&!gt)Se.on("blur",be),Se.on("change",_e),Se.on("swapDoc",_e),fe.on(Se.getInputField(),"compositionupdate",Se.state.placeholderCompose=function(){Ye(Se)}),_e(Se);else if(!pe&>){Se.off("blur",be),Se.off("change",_e),Se.off("swapDoc",_e),fe.off(Se.getInputField(),"compositionupdate",Se.state.placeholderCompose),tt(Se);var ze=Se.getWrapperElement();ze.className=ze.className.replace(" CodeMirror-empty","")}pe&&!Se.hasFocus()&&be(Se)});function tt(Se){Se.state.placeholder&&(Se.state.placeholder.parentNode.removeChild(Se.state.placeholder),Se.state.placeholder=null)}function Fe(Se){tt(Se);var pe=Se.state.placeholder=document.createElement("pre");pe.style.cssText="height: 0; overflow: visible",pe.style.direction=Se.getOption("direction"),pe.className="CodeMirror-placeholder CodeMirror-line-like";var Te=Se.getOption("placeholder");typeof Te=="string"&&(Te=document.createTextNode(Te)),pe.appendChild(Te),Se.display.lineSpace.insertBefore(pe,Se.display.lineSpace.firstChild)}function Ye(Se){setTimeout(function(){var pe=!1,Te=Se.getInputField();Te.nodeName=="TEXTAREA"?pe=!Te.value:Se.lineCount()==1&&(pe=!/[^\u200b]/.test(Te.querySelector(".CodeMirror-line").textContent)),pe?Fe(Se):tt(Se)},20)}function be(Se){Le(Se)&&Fe(Se)}function _e(Se){var pe=Se.getWrapperElement(),Te=Le(Se);pe.className=pe.className.replace(" CodeMirror-empty","")+(Te?" CodeMirror-empty":""),Te?Fe(Se):tt(Se)}function Le(Se){return Se.lineCount()===1&&Se.getLine(0)===""}})},82801:function(Ln,qt,ce){(function(fe){fe(ce(4631))})(function(fe){var tt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Fe=fe.Pos;fe.defineOption("autoCloseBrackets",!1,function(pt,Je,De){De&&De!=fe.Init&&(pt.removeKeyMap(be),pt.state.closeBrackets=null),Je&&(_e(Ye(Je,"pairs")),pt.state.closeBrackets=Je,pt.addKeyMap(be))});function Ye(pt,Je){return Je=="pairs"&&typeof pt=="string"?pt:typeof pt=="object"&&pt[Je]!=null?pt[Je]:tt[Je]}var be={Backspace:pe,Enter:Te};function _e(pt){for(var Je=0;Je=0;Yt--){var ct=Dt[Yt].head;pt.replaceRange("",Fe(ct.line,ct.ch-1),Fe(ct.line,ct.ch+1),"+delete")}}function Te(pt){var Je=Se(pt),De=Je&&Ye(Je,"explode");if(!De||pt.getOption("disableInput"))return fe.Pass;for(var Dt=pt.listSelections(),Yt=0;Yt0;return{anchor:new Fe(pt.anchor.line,pt.anchor.ch+(Je?-1:1)),head:new Fe(pt.head.line,pt.head.ch+(Je?1:-1))}}function ze(pt,Je){var De=Se(pt);if(!De||pt.getOption("disableInput"))return fe.Pass;var Dt=Ye(De,"pairs"),Yt=Dt.indexOf(Je);if(Yt==-1)return fe.Pass;for(var nt=Ye(De,"closeBefore"),ct=Ye(De,"triples"),Ie=Dt.charAt(Yt+1)==Je,Me=pt.listSelections(),Ve=Yt%2==0,Xe,Ct=0;Ct=0&&pt.getRange(Mt,Fe(Mt.line,Mt.ch+3))==Je+Je+Je?je="skipThree":je="skip";else if(Ie&&Mt.ch>1&&ct.indexOf(Je)>=0&&pt.getRange(Fe(Mt.line,Mt.ch-2),Mt)==Je+Je){if(Mt.ch>2&&/\bstring/.test(pt.getTokenTypeAt(Fe(Mt.line,Mt.ch-2))))return fe.Pass;je="addFour"}else if(Ie){var At=Mt.ch==0?" ":pt.getRange(Fe(Mt.line,Mt.ch-1),Mt);if(!fe.isWordChar(Rt)&&At!=Je&&!fe.isWordChar(At))je="both";else return fe.Pass}else if(Ve&&(Rt.length===0||/\s/.test(Rt)||nt.indexOf(Rt)>-1))je="both";else return fe.Pass;if(!Xe)Xe=je;else if(Xe!=je)return fe.Pass}var xn=Yt%2?Dt.charAt(Yt-1):Je,jt=Yt%2?Je:Dt.charAt(Yt+1);pt.operation(function(){if(Xe=="skip")pt.execCommand("goCharRight");else if(Xe=="skipThree")for(var vn=0;vn<3;vn++)pt.execCommand("goCharRight");else if(Xe=="surround"){for(var er=pt.getSelections(),vn=0;vn'"]=function(Pt){return Ye(Pt)}),pe.addKeyMap(ze)}});var tt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Fe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ye(pe){if(pe.getOption("disableInput"))return fe.Pass;for(var Te=pe.listSelections(),gt=[],ze=pe.getOption("autoCloseTags"),Pt=0;Ptkt.ch&&(Yt=Yt.slice(0,Yt.length-pt.end+kt.ch));var Me=Yt.toLowerCase();if(!Yt||pt.type=="string"&&(pt.end!=kt.ch||!/[\"\']/.test(pt.string.charAt(pt.string.length-1))||pt.string.length==1)||pt.type=="tag"&&Dt.close||pt.string.indexOf("/")==kt.ch-pt.start-1||ct&&Le(ct,Me)>-1||Se(pe,Je.mode.xmlCurrentContext&&Je.mode.xmlCurrentContext(De)||[],Yt,kt,!0))return fe.Pass;var Ve=typeof ze=="object"&&ze.emptyTags;if(Ve&&Le(Ve,Yt)>-1){gt[Pt]={text:"/>",newPos:fe.Pos(kt.line,kt.ch+2)};continue}var Xe=Ie&&Le(Ie,Me)>-1;gt[Pt]={indent:Xe,text:">"+(Xe?` `:"")+"",newPos:Xe?fe.Pos(kt.line+1,0):fe.Pos(kt.line,kt.ch+1)}}for(var Ct=typeof ze=="object"&&ze.dontIndentOnAutoClose,Pt=Te.length-1;Pt>=0;Pt--){var wt=gt[Pt];pe.replaceRange(wt.text,Te[Pt].head,Te[Pt].anchor,"+insert");var Mt=pe.listSelections().slice(0);Mt[Pt]={head:wt.newPos,anchor:wt.newPos},pe.setSelections(Mt),!Ct&&wt.indent&&(pe.indentLine(wt.newPos.line,null,!0),pe.indentLine(wt.newPos.line+1,null,!0))}}function be(pe,Te){for(var gt=pe.listSelections(),ze=[],Pt=Te?"/":""&&(ct+=">"),ze[Je]=ct}if(pe.replaceSelections(ze),gt=pe.listSelections(),!pt)for(var Je=0;Je=0&&Te[De]==gt;De--)++Je;ze=pt.to;for(var De=1;De=De.max))return De.ch=0,De.text=De.cm.getLine(++De.line),!0}function Te(De){if(!(De.line<=De.min))return De.text=De.cm.getLine(--De.line),De.ch=De.text.length,!0}function gt(De){for(;;){var Dt=De.text.indexOf(">",De.ch);if(Dt==-1){if(pe(De))continue;return}if(!Se(De,Dt+1)){De.ch=Dt+1;continue}var Yt=De.text.lastIndexOf("/",Dt),nt=Yt>-1&&!/\S/.test(De.text.slice(Yt+1,Dt));return De.ch=Dt+1,nt?"selfClose":"regular"}}function ze(De){for(;;){var Dt=De.ch?De.text.lastIndexOf("<",De.ch-1):-1;if(Dt==-1){if(Te(De))continue;return}if(!Se(De,Dt+1)){De.ch=Dt;continue}_e.lastIndex=Dt,De.ch=Dt;var Yt=_e.exec(De.text);if(Yt&&Yt.index==Dt)return Yt}}function Pt(De){for(;;){_e.lastIndex=De.ch;var Dt=_e.exec(De.text);if(!Dt){if(pe(De))continue;return}if(!Se(De,Dt.index+1)){De.ch=Dt.index+1;continue}return De.ch=Dt.index+Dt[0].length,Dt}}function kt(De){for(;;){var Dt=De.ch?De.text.lastIndexOf(">",De.ch-1):-1;if(Dt==-1){if(Te(De))continue;return}if(!Se(De,Dt+1)){De.ch=Dt;continue}var Yt=De.text.lastIndexOf("/",Dt),nt=Yt>-1&&!/\S/.test(De.text.slice(Yt+1,Dt));return De.ch=Dt+1,nt?"selfClose":"regular"}}function pt(De,Dt){for(var Yt=[];;){var nt=Pt(De),ct,Ie=De.line,Me=De.ch-(nt?nt[0].length:0);if(!nt||!(ct=gt(De)))return;if(ct!="selfClose")if(nt[1]){for(var Ve=Yt.length-1;Ve>=0;--Ve)if(Yt[Ve]==nt[2]){Yt.length=Ve;break}if(Ve<0&&(!Dt||Dt==nt[2]))return{tag:nt[2],from:tt(Ie,Me),to:tt(De.line,De.ch)}}else Yt.push(nt[2])}}function Je(De,Dt){for(var Yt=[];;){var nt=kt(De);if(!nt)return;if(nt=="selfClose"){ze(De);continue}var ct=De.line,Ie=De.ch,Me=ze(De);if(!Me)return;if(Me[1])Yt.push(Me[2]);else{for(var Ve=Yt.length-1;Ve>=0;--Ve)if(Yt[Ve]==Me[2]){Yt.length=Ve;break}if(Ve<0&&(!Dt||Dt==Me[2]))return{tag:Me[2],from:tt(De.line,De.ch),to:tt(ct,Ie)}}}}fe.registerHelper("fold","xml",function(De,Dt){for(var Yt=new Le(De,Dt.line,0);;){var nt=Pt(Yt);if(!nt||Yt.line!=Dt.line)return;var ct=gt(Yt);if(!ct)return;if(!nt[1]&&ct!="selfClose"){var Ie=tt(Yt.line,Yt.ch),Me=pt(Yt,nt[2]);return Me&&Fe(Me.from,Ie)>0?{from:Ie,to:Me.from}:null}}}),fe.findMatchingTag=function(De,Dt,Yt){var nt=new Le(De,Dt.line,Dt.ch,Yt);if(!(nt.text.indexOf(">")==-1&&nt.text.indexOf("<")==-1)){var ct=gt(nt),Ie=ct&&tt(nt.line,nt.ch),Me=ct&&ze(nt);if(!(!ct||!Me||Fe(nt,Dt)>0)){var Ve={from:tt(nt.line,nt.ch),to:Ie,tag:Me[2]};return ct=="selfClose"?{open:Ve,close:null,at:"open"}:Me[1]?{open:Je(nt,Me[2]),close:Ve,at:"close"}:(nt=new Le(De,Ie.line,Ie.ch,Yt),{open:Ve,close:pt(nt,Me[2]),at:"open"})}}},fe.findEnclosingTag=function(De,Dt,Yt,nt){for(var ct=new Le(De,Dt.line,Dt.ch,Yt);;){var Ie=Je(ct,nt);if(!Ie)break;var Me=new Le(De,Dt.line,Dt.ch,Yt),Ve=pt(Me,Ie.tag);if(Ve)return{open:Ie,close:Ve}}},fe.scanForClosingTag=function(De,Dt,Yt,nt){var ct=new Le(De,Dt.line,Dt.ch,nt?{from:0,to:nt}:null);return pt(ct,Yt)}})},4631:function(Ln){(function(qt,ce){Ln.exports=ce()})(this,function(){"use strict";var qt=navigator.userAgent,ce=navigator.platform,fe=/gecko\/\d/i.test(qt),tt=/MSIE \d/.test(qt),Fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qt),Ye=/Edge\/(\d+)/.exec(qt),be=tt||Fe||Ye,_e=be&&(tt?document.documentMode||6:+(Ye||Fe)[1]),Le=!Ye&&/WebKit\//.test(qt),Se=Le&&/Qt\/\d+\.\d+/.test(qt),pe=!Ye&&/Chrome\//.test(qt),Te=/Opera\//.test(qt),gt=/Apple Computer/.test(navigator.vendor),ze=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(qt),Pt=/PhantomJS/.test(qt),kt=!Ye&&/AppleWebKit/.test(qt)&&/Mobile\/\w+/.test(qt),pt=/Android/.test(qt),Je=kt||pt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(qt),De=kt||/Mac/.test(ce),Dt=/\bCrOS\b/.test(qt),Yt=/win/i.test(ce),nt=Te&&qt.match(/Version\/(\d*\.\d*)/);nt&&(nt=Number(nt[1])),nt&&nt>=15&&(Te=!1,Le=!0);var ct=De&&(Se||Te&&(nt==null||nt<12.11)),Ie=fe||be&&_e>=9;function Me(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ve=function(x,z){var ne=x.className,te=Me(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Xe(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function Ct(x,z){return Xe(x).appendChild(z)}function wt(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var oe=0;oe=z)return me+(z-oe);me+=we-oe,me+=ne-me%ne,oe=we+1}}var Ae=function(){this.id=null,this.f=null,this.time=0,this.handler=er(this.onTimeout,this)};Ae.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Ae.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne=z)return te+Math.min(me,z-ie);if(ie+=oe-te,ie+=ne-ie%ne,te=oe+1,ie>=z)return te}}var mn=[""];function nn(x){for(;mn.length<=x;)mn.push(Ft(mn)+" ");return mn[x]}function Ft(x){return x[x.length-1]}function Pn(x,z){for(var ne=[],te=0;te"\x80"&&(x.toUpperCase()!=x.toLowerCase()||se.test(x))}function ve(x,z){return z?z.source.indexOf("\\w")>-1&&ye(x)?!0:z.test(x):ye(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var We=/[\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 Lt(x){return x.charCodeAt(0)>=768&&We.test(x)}function tn(x,z,ne){for(;(ne<0?z>0:zne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,oe=te<0?Math.ceil(ie):Math.floor(ie);if(oe==z)return x(oe)?z:ne;x(oe)?ne=oe:z=oe+te}}function sn(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,oe=0;oez||z==ne&&me.to==z)&&(te(Math.max(me.from,z),Math.min(me.to,ne),me.level==1?"rtl":"ltr",oe),ie=!0)}ie||te(z,ne,"ltr")}var yn=null;function ln(x,z,ne){var te;yn=null;for(var ie=0;iez)return ie;oe.to==z&&(oe.from!=oe.to&&ne=="before"?te=ie:yn=ie),oe.from==z&&(oe.from!=oe.to&&ne!="before"?te=ie:yn=ie)}return te!=null?te:yn}var yr=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Oe){return Oe<=247?x.charAt(Oe):1424<=Oe&&Oe<=1524?"R":1536<=Oe&&Oe<=1785?z.charAt(Oe-1536):1774<=Oe&&Oe<=2220?"r":8192<=Oe&&Oe<=8203?"w":Oe==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,oe=/[LRr]/,me=/[Lb1n]/,we=/[1n]/;function ke(Oe,lt,Et){this.level=Oe,this.from=lt,this.to=Et}return function(Oe,lt){var Et=lt=="ltr"?"L":"R";if(Oe.length==0||lt=="ltr"&&!te.test(Oe))return!1;for(var on=Oe.length,Vt=[],Xn=0;Xn-1&&(te[z]=ie.slice(0,oe).concat(ie.slice(oe+1)))}}}function st(x,z){var ne=Gr(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie0}function gr(x){x.prototype.on=function(z,ne){Rn(this,z,ne)},x.prototype.off=function(z,ne){li(this,z,ne)}}function Pr(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Ur(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Xr(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function qr(x){Pr(x),Ur(x)}function ui(x){return x.target||x.srcElement}function br(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),De&&x.ctrlKey&&z==1&&(z=3),z}var Ei=function(){if(be&&_e<9)return!1;var x=wt("div");return"draggable"in x||"dragDrop"in x}(),sa;function Ji(x){if(sa==null){var z=wt("span","\u200B");Ct(x,wt("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(sa=z.offsetWidth<=1&&z.offsetHeight>2&&!(be&&_e<8))}var ne=sa?wt("span","\u200B"):wt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Qi;function Ci(x){if(Qi!=null)return Qi;var z=Ct(x,document.createTextNode("A\u062EA")),ne=je(z,0,1).getBoundingClientRect(),te=je(z,1,2).getBoundingClientRect();return Xe(x),!ne||ne.left==ne.right?!1:Qi=te.right-ne.right<3}var mt=` b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(` `,z);ie==-1&&(ie=x.length);var oe=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),me=oe.indexOf("\r");me!=-1?(ne.push(oe.slice(0,me)),z+=me+1):(ne.push(oe),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},Mn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},En=function(){var x=wt("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),An=null;function sr(x){if(An!=null)return An;var z=Ct(x,wt("span","x")),ne=z.getBoundingClientRect(),te=je(z,0,1).getBoundingClientRect();return An=Math.abs(ne.left-te.left)>1}var nr={},pr={};function Kn(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),nr[x]=z}function Ue(x,z){pr[x]=z}function it(x){if(typeof x=="string"&&pr.hasOwnProperty(x))x=pr[x];else if(x&&typeof x.name=="string"&&pr.hasOwnProperty(x.name)){var z=pr[x.name];typeof z=="string"&&(z={name:z}),x=ue(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return it("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return it("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function _t(x,z){z=it(z);var ne=nr[z.name];if(!ne)return _t(x,"text/plain");var te=ne(x,z);if(Ut.hasOwnProperty(z.name)){var ie=Ut[z.name];for(var oe in ie)ie.hasOwnProperty(oe)&&(te.hasOwnProperty(oe)&&(te["_"+oe]=te[oe]),te[oe]=ie[oe])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var me in z.modeProps)te[me]=z.modeProps[me];return te}var Ut={};function Ke(x,z){var ne=Ut.hasOwnProperty(x)?Ut[x]:Ut[x]={};Sr(z,ne)}function ut(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function Ot(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Tt(x,z,ne){return x.startState?x.startState(z,ne):!0}var zt=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.posz},zt.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},zt.prototype.backUp=function(x){this.pos-=x},zt.prototype.column=function(){return this.lastColumnPos0?null:(oe&&z!==!1&&(this.pos+=oe[0].length),oe)}},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},zt.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},zt.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Ht(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],oe=ie.chunkSize();if(z=x.first&&zne?Qe(ne,Ht(x,ne).text.length):or(z,Ht(x,z.line).text.length)}function or(x,z){var ne=x.ch;return ne==null||ne>z?Qe(x.line,z):ne<0?Qe(x.line,0):x}function Kt(x,z){for(var ne=[],te=0;tethis.maxLookAhead&&(this.maxLookAhead=x),z},$r.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},$r.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$r.fromSaved=function(x,z,ne){return z instanceof Yr?new $r(x,ut(x.mode,z.state),ne,z.lookAhead):new $r(x,ut(x.mode,z),ne)},$r.prototype.save=function(x){var z=x!==!1?ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yr(z,this.maxLookAhead):z};function Ri(x,z,ne,te){var ie=[x.state.modeGen],oe={};mi(x,z.text,x.doc.mode,ne,function(Oe,lt){return ie.push(Oe,lt)},oe,te);for(var me=ne.state,we=function(Oe){ne.baseTokens=ie;var lt=x.state.overlays[Oe],Et=1,on=0;ne.state=!0,mi(x,z.text,lt.mode,ne,function(Vt,Xn){for(var dr=Et;onVt&&ie.splice(Et,1,Vt,ie[Et+1],Tr),Et+=2,on=Math.min(Vt,Tr)}if(Xn)if(lt.opaque)ie.splice(dr,Et-dr,Vt,"overlay "+Xn),Et=dr+2;else for(;drx.options.maxHighlightLength&&ut(x.doc.mode,te.state),oe=Ri(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=oe.styles,oe.classes?z.styleClasses=oe.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function pi(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new $r(te,!0,z);var oe=Wi(x,z,ne),me=oe>te.first&&Ht(te,oe-1).stateAfter,we=me?$r.fromSaved(te,me,oe):new $r(te,Tt(te.mode),oe);return te.iter(oe,z,function(ke){Gi(x,ke.text,we);var Oe=we.line;ke.stateAfter=Oe==z-1||Oe%5==0||Oe>=ie.viewFrom&&Oez.start)return oe}throw new Error("Mode "+x.name+" failed to advance stream.")}var Ni=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Zi(x,z,ne,te){var ie=x.doc,oe=ie.mode,me;z=Dn(ie,z);var we=Ht(ie,z.line),ke=pi(x,z.line,ne),Oe=new zt(we.text,x.options.tabSize,ke),lt;for(te&&(lt=[]);(te||Oe.posx.options.maxHighlightLength?(we=!1,me&&Gi(x,z,te,lt.pos),lt.pos=z.length,Et=null):Et=Vr(ii(ne,lt,te.state,on),oe),on){var Vt=on[0].name;Vt&&(Et="m-"+(Et?Vt+" "+Et:Vt))}if(!we||Oe!=Et){for(;keme;--we){if(we<=oe.first)return oe.first;var ke=Ht(oe,we-1),Oe=ke.stateAfter;if(Oe&&(!ne||we+(Oe instanceof Yr?Oe.lookAhead:0)<=oe.modeFrontier))return we;var lt=qe(ke.text,null,x.options.tabSize);(ie==null||te>lt)&&(ie=we-1,te=lt)}return ie}function la(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontierne;te--){var ie=Ht(x,te).stateAfter;if(ie&&(!(ie instanceof Yr)||te+ie.lookAhead=z:oe.to>z);(te||(te=[])).push(new Bt(me,oe.from,ke?null:oe.to))}}return te}function Br(x,z,ne){var te;if(x)for(var ie=0;ie=z:oe.to>z);if(we||oe.from==z&&me.type=="bookmark"&&(!ne||oe.marker.insertLeft)){var ke=oe.from==null||(me.inclusiveLeft?oe.from<=z:oe.from0&&we)for(var ri=0;ri0)){var lt=[ke,1],Et=vt(Oe.from,we.from),on=vt(Oe.to,we.to);(Et<0||!me.inclusiveLeft&&!Et)&<.push({from:Oe.from,to:we.from}),(on>0||!me.inclusiveRight&&!on)&<.push({from:we.to,to:Oe.to}),ie.splice.apply(ie,lt),ke+=lt.length-3}}return ie}function gi(x){var z=x.markedSpans;if(z){for(var ne=0;nez)&&(!te||Si(te,oe.marker)<0)&&(te=oe.marker)}return te}function Ge(x,z,ne,te,ie){var oe=Ht(x,z),me=ti&&oe.markedSpans;if(me)for(var we=0;we=0&&Et<=0||lt<=0&&Et>=0)&&(lt<=0&&(ke.marker.inclusiveRight&&ie.inclusiveLeft?vt(Oe.to,ne)>=0:vt(Oe.to,ne)>0)||lt>=0&&(ke.marker.inclusiveRight&&ie.inclusiveLeft?vt(Oe.from,te)<=0:vt(Oe.from,te)<0)))return!0}}}function et(x){for(var z;z=Ne(x);)x=z.find(-1,!0).line;return x}function bt(x){for(var z;z=Be(x);)x=z.find(1,!0).line;return x}function Zt(x){for(var z,ne;z=Be(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Jt(x,z){var ne=Ht(x,z),te=et(ne);return ne==te?z:qn(te)}function Gn(x,z){if(z>x.lastLine())return z;var ne=Ht(x,z),te;if(!fr(x,ne))return z;for(;te=Be(ne);)ne=te.find(1,!0).line;return qn(ne)+1}function fr(x,z){var ne=ti&&z.markedSpans;if(ne){for(var te=void 0,ie=0;iez.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var In=function(x,z,ne){this.text=x,Mr(this,z),this.height=ne?ne(this):1};In.prototype.lineNo=function(){return qn(this)},gr(In);function cr(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),gi(x),Mr(x,ne);var ie=te?te(x):1;ie!=x.height&&Yn(x,ie)}function jn(x){x.parent=null,gi(x)}var Zn={},Jn={};function Qn(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?Jn:Zn;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function hr(x,z){var ne=Mt("span",null,null,Le?"padding-right: .1px":null),te={pre:Mt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var oe=ie?z.rest[ie-1]:z.line,me=void 0;te.pos=0,te.addToken=$e,Ci(x.display.measure)&&(me=Fr(oe,x.doc.direction))&&(te.addToken=rt(te.addToken,me)),te.map=[];var we=z!=x.display.externalMeasured&&qn(oe);rn(oe,te,Li(x,oe,we)),oe.styleClasses&&(oe.styleClasses.bgClass&&(te.bgClass=jt(oe.styleClasses.bgClass,te.bgClass||"")),oe.styleClasses.textClass&&(te.textClass=jt(oe.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Ji(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(Le){var ke=te.content.lastChild;(/\bcm-tab\b/.test(ke.className)||ke.querySelector&&ke.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return st(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=jt(te.pre.className,te.textClass||"")),te}function Pe(x){var z=wt("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function $e(x,z,ne,te,ie,oe,me){if(z){var we=x.splitSpaces?xt(z,x.trailingSpace):z,ke=x.cm.state.specialChars,Oe=!1,lt;if(!ke.test(z))x.col+=z.length,lt=document.createTextNode(we),x.map.push(x.pos,x.pos+z.length,lt),be&&_e<9&&(Oe=!0),x.pos+=z.length;else{lt=document.createDocumentFragment();for(var Et=0;;){ke.lastIndex=Et;var on=ke.exec(z),Vt=on?on.index-Et:z.length-Et;if(Vt){var Xn=document.createTextNode(we.slice(Et,Et+Vt));be&&_e<9?lt.appendChild(wt("span",[Xn])):lt.appendChild(Xn),x.map.push(x.pos,x.pos+Vt,Xn),x.col+=Vt,x.pos+=Vt}if(!on)break;Et+=Vt+1;var dr=void 0;if(on[0]==" "){var Tr=x.cm.options.tabSize,Wr=Tr-x.col%Tr;dr=lt.appendChild(wt("span",nn(Wr),"cm-tab")),dr.setAttribute("role","presentation"),dr.setAttribute("cm-text"," "),x.col+=Wr}else on[0]=="\r"||on[0]==` `?(dr=lt.appendChild(wt("span",on[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),dr.setAttribute("cm-text",on[0]),x.col+=1):(dr=x.cm.options.specialCharPlaceholder(on[0]),dr.setAttribute("cm-text",on[0]),be&&_e<9?lt.appendChild(wt("span",[dr])):lt.appendChild(dr),x.col+=1);x.map.push(x.pos,x.pos+1,dr),x.pos++}}if(x.trailingSpace=we.charCodeAt(z.length-1)==32,ne||te||ie||Oe||oe||me){var ni=ne||"";te&&(ni+=te),ie&&(ni+=ie);var Kr=wt("span",[lt],ni,oe);if(me)for(var ri in me)me.hasOwnProperty(ri)&&ri!="style"&&ri!="class"&&Kr.setAttribute(ri,me[ri]);return x.content.appendChild(Kr)}x.content.appendChild(lt)}}function xt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ieOe&&Et.from<=Oe));on++);if(Et.to>=lt)return x(ne,te,ie,oe,me,we,ke);x(ne,te.slice(0,Et.to-Oe),ie,oe,null,we,ke),oe=null,te=te.slice(Et.to-Oe),Oe=Et.to}}}function It(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function rn(x,z,ne){var te=x.markedSpans,ie=x.text,oe=0;if(!te){for(var me=1;meke||ba.collapsed&&Hi.to==ke&&Hi.from==ke)){if(Hi.to!=null&&Hi.to!=ke&&Vt>Hi.to&&(Vt=Hi.to,dr=""),ba.className&&(Xn+=" "+ba.className),ba.css&&(on=(on?on+";":"")+ba.css),ba.startStyle&&Hi.from==ke&&(Tr+=" "+ba.startStyle),ba.endStyle&&Hi.to==Vt&&(ri||(ri=[])).push(ba.endStyle,Hi.to),ba.title&&((ni||(ni={})).title=ba.title),ba.attributes)for(var to in ba.attributes)(ni||(ni={}))[to]=ba.attributes[to];ba.collapsed&&(!Wr||Si(Wr.marker,ba)<0)&&(Wr=Hi)}else Hi.from>ke&&Vt>Hi.from&&(Vt=Hi.from)}if(ri)for(var Wo=0;Wo=we)break;for(var us=Math.min(we,Vt);;){if(lt){var ds=ke+lt.length;if(!Wr){var Io=ds>us?lt.slice(0,us-ke):lt;z.addToken(z,Io,Et?Et+Xn:Xn,Tr,ke+Io.length==Vt?dr:"",on,ni)}if(ds>=us){lt=lt.slice(us-ke),ke=us;break}ke=ds,Tr=""}lt=ie.slice(oe,oe=ne[Oe++]),Et=Qn(ne[Oe++],z.cm.options)}}}function fn(x,z,ne){this.line=z,this.rest=Zt(z),this.size=this.rest?qn(Ft(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=fr(x,z)}function On(x,z,ne){for(var te=[],ie,oe=z;oe2&&oe.push((ke.bottom+Oe.top)/2-ne.top)}}oe.push(ne.bottom-ne.top)}}function Ba(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;tene)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function $a(x,z){z=et(z);var ne=qn(z),te=x.display.externalMeasured=new fn(x.doc,z,ne);te.lineN=ne;var ie=te.built=hr(x,te);return te.text=ie.pre,Ct(x.display.lineMeasure,ie.pre),te}function Aa(x,z,ne,te){return Mi(x,Yi(x,z),ne,te)}function ca(x,z){if(z>=x.display.viewFrom&&z=ne.lineN&&zz)&&(oe=ke-we,ie=oe-1,z>=ke&&(me="right")),ie!=null){if(te=x[Oe+2],we==ke&&ne==(te.insertLeft?"left":"right")&&(me=ne),ne=="left"&&ie==0)for(;Oe&&x[Oe-2]==x[Oe-3]&&x[Oe-1].insertLeft;)te=x[(Oe-=3)+2],me="left";if(ne=="right"&&ie==ke-we)for(;Oe=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function zi(x,z,ne,te){var ie=ki(z.map,ne,te),oe=ie.node,me=ie.start,we=ie.end,ke=ie.collapse,Oe;if(oe.nodeType==3){for(var lt=0;lt<4;lt++){for(;me&&Lt(z.line.text.charAt(ie.coverStart+me));)--me;for(;ie.coverStart+we0&&(ke=te="right");var Et;x.options.lineWrapping&&(Et=oe.getClientRects()).length>1?Oe=Et[te=="right"?Et.length-1:0]:Oe=oe.getBoundingClientRect()}if(be&&_e<9&&!me&&(!Oe||!Oe.left&&!Oe.right)){var on=oe.parentNode.getClientRects()[0];on?Oe={left:on.left,right:on.left+io(x.display),top:on.top,bottom:on.bottom}:Oe=Oa}for(var Vt=Oe.top-z.rect.top,Xn=Oe.bottom-z.rect.top,dr=(Vt+Xn)/2,Tr=z.view.measure.heights,Wr=0;Wr=te.text.length?(ke=te.text.length,Oe="before"):ke<=0&&(ke=0,Oe="after"),!we)return me(Oe=="before"?ke-1:ke,Oe=="before");function lt(Xn,dr,Tr){var Wr=we[dr],ni=Wr.level==1;return me(Tr?Xn-1:Xn,ni!=Tr)}var Et=ln(we,ke,Oe),on=yn,Vt=lt(ke,Et,Oe=="before");return on!=null&&(Vt.other=lt(ke,on,Oe!="before")),Vt}function ka(x,z){var ne=0;z=Dn(x.doc,z),x.options.lineWrapping||(ne=io(x.display)*z.ch);var te=Ht(x.doc,z.line),ie=pn(te)+qi(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function Ja(x,z,ne,te,ie){var oe=Qe(x,z,ne);return oe.xRel=ie,te&&(oe.outside=te),oe}function Ga(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return Ja(te.first,0,null,-1,-1);var ie=rr(te,ne),oe=te.first+te.size-1;if(ie>oe)return Ja(te.first+te.size-1,Ht(te,oe).text.length,null,1,1);z<0&&(z=0);for(var me=Ht(te,ie);;){var we=_i(x,me,ie,z,ne),ke=He(me,we.ch+(we.xRel>0||we.outside>0?1:0));if(!ke)return we;var Oe=ke.find(1);if(Oe.line==ie)return Oe;me=Ht(te,ie=Oe.line)}}function so(x,z,ne,te){te-=fa(z);var ie=z.text.length,oe=hn(function(me){return Mi(x,ne,me-1).bottom<=te},ie,0);return ie=hn(function(me){return Mi(x,ne,me).top>te},oe,ie),{begin:oe,end:ie}}function Fa(x,z,ne,te){ne||(ne=Yi(x,z));var ie=wa(x,z,Mi(x,ne,te),"line").top;return so(x,z,ne,ie)}function Ca(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function _i(x,z,ne,te,ie){ie-=pn(z);var oe=Yi(x,z),me=fa(z),we=0,ke=z.text.length,Oe=!0,lt=Fr(z,x.doc.direction);if(lt){var Et=(x.options.lineWrapping?da:Ki)(x,z,ne,oe,lt,te,ie);Oe=Et.level!=1,we=Oe?Et.from:Et.to-1,ke=Oe?Et.to:Et.from-1}var on=null,Vt=null,Xn=hn(function(Fi){var Hi=Mi(x,oe,Fi);return Hi.top+=me,Hi.bottom+=me,Ca(Hi,te,ie,!1)?(Hi.top<=ie&&Hi.left<=te&&(on=Fi,Vt=Hi),!0):!1},we,ke),dr,Tr,Wr=!1;if(Vt){var ni=te-Vt.left=ri.bottom?1:0}return Xn=tn(z.text,Xn,1),Ja(ne,Xn,Tr,Wr,te-dr)}function Ki(x,z,ne,te,ie,oe,me){var we=hn(function(Et){var on=ie[Et],Vt=on.level!=1;return Ca(ha(x,Qe(ne,Vt?on.to:on.from,Vt?"before":"after"),"line",z,te),oe,me,!0)},0,ie.length-1),ke=ie[we];if(we>0){var Oe=ke.level!=1,lt=ha(x,Qe(ne,Oe?ke.from:ke.to,Oe?"after":"before"),"line",z,te);Ca(lt,oe,me,!0)&<.top>me&&(ke=ie[we-1])}return ke}function da(x,z,ne,te,ie,oe,me){var we=so(x,z,te,me),ke=we.begin,Oe=we.end;/\s/.test(z.text.charAt(Oe-1))&&Oe--;for(var lt=null,Et=null,on=0;on=Oe||Vt.to<=ke)){var Xn=Vt.level!=1,dr=Mi(x,te,Xn?Math.min(Oe,Vt.to)-1:Math.max(ke,Vt.from)).right,Tr=drTr)&&(lt=Vt,Et=Tr)}}return lt||(lt=ie[ie.length-1]),lt.fromOe&&(lt={from:lt.from,to:Oe,level:lt.level}),lt}var Sa;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Sa==null){Sa=wt("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Sa.appendChild(document.createTextNode("x")),Sa.appendChild(wt("br"));Sa.appendChild(document.createTextNode("x"))}Ct(x.measure,Sa);var ne=Sa.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Xe(x.measure),ne||1}function io(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=wt("span","xxxxxxxxxx"),ne=wt("pre",[z],"CodeMirror-line-like");Ct(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function ho(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,oe=z.gutters.firstChild,me=0;oe;oe=oe.nextSibling,++me){var we=x.display.gutterSpecs[me].className;ne[we]=oe.offsetLeft+oe.clientLeft+ie,te[we]=oe.clientWidth}return{fixedPos:Oo(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Oo(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Ro(x){var z=Ka(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/io(x.display)-3);return function(ie){if(fr(x.doc,ie))return 0;var oe=0;if(ie.widgets)for(var me=0;me0&&(Oe=Ht(x.doc,ke.line).text).length==ke.ch){var lt=qe(Oe,Oe.length,x.options.tabSize)-Oe.length;ke=Qe(ke.line,Math.max(0,Math.round((oe-$i(x.display).left)/io(x.display))-lt))}return ke}function na(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;tez)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)ti&&Jt(x.doc,z)ie.viewFrom?_a(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)_a(x);else if(z<=ie.viewFrom){var oe=co(x,ne,ne+te,1);oe?(ie.view=ie.view.slice(oe.index),ie.viewFrom=oe.lineN,ie.viewTo+=te):_a(x)}else if(ne>=ie.viewTo){var me=co(x,z,z,-1);me?(ie.view=ie.view.slice(0,me.index),ie.viewTo=me.lineN):_a(x)}else{var we=co(x,z,z,-1),ke=co(x,ne,ne+te,1);we&&ke?(ie.view=ie.view.slice(0,we.index).concat(On(x,we.lineN,ke.lineN)).concat(ie.view.slice(ke.index)),ie.viewTo+=te):_a(x)}var Oe=ie.externalMeasured;Oe&&(ne=ie.lineN&&z=te.viewTo)){var oe=te.view[na(x,z)];if(oe.node!=null){var me=oe.changes||(oe.changes=[]);$t(me,ne)==-1&&me.push(ne)}}}function _a(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function co(x,z,ne,te){var ie=na(x,z),oe,me=x.display.view;if(!ti||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var we=x.display.viewFrom,ke=0;ke0){if(ie==me.length-1)return null;oe=we+me[ie].size-z,ie++}else oe=we-z;z+=oe,ne+=oe}for(;Jt(x.doc,ne)!=ne;){if(ie==(te<0?0:me.length-1))return null;ne+=te*me[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function ao(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=On(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=On(x,z,te.viewFrom).concat(te.view):te.viewFromne&&(te.view=te.view.slice(0,na(x,ne)))),te.viewTo=ne}function hs(x){for(var z=x.display.view,ne=0,te=0;te=x.display.viewTo||we.to().line0?z.blinker=setInterval(function(){x.hasFocus()||Fo(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Di(x){x.state.focused||(x.display.input.focus(),ja(x))}function Ha(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,Fo(x))},100)}function ja(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(st(x,"focus",x,z),x.state.focused=!0,xn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),Le&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),wi(x))}function Fo(x,z){x.state.delayingBlurEvent||(x.state.focused&&(st(x,"blur",x,z),x.state.focused=!1,Ve(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Uo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te.005||lt<-.005)&&(Yn(ie.line,me),ls(ie.line),ie.rest))for(var Et=0;Etx.display.sizerWidth){var on=Math.ceil(we/io(x.display));on>x.display.maxLineLength&&(x.display.maxLineLength=on,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function ls(x){if(x.widgets)for(var z=0;z=me&&(oe=rr(z,pn(Ht(z,ke))-x.wrapper.clientHeight),me=ke)}return{from:oe,to:Math.max(me,oe+1)}}function No(x,z){if(!Wt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!Pt){var oe=wt("div","\u200B",null,`position: absolute; top: `+(z.top-ne.viewOffset-qi(x.display))+`px; height: `+(z.bottom-z.top+jr(x)+ne.barHeight)+`px; left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(oe),oe.scrollIntoView(ie),x.display.lineSpace.removeChild(oe)}}}function cs(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?Qe(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Qe(z.line,z.ch+1,"before"):z);for(var oe=0;oe<5;oe++){var me=!1,we=ha(x,z),ke=!ne||ne==z?we:ha(x,ne);ie={left:Math.min(we.left,ke.left),top:Math.min(we.top,ke.top)-te,right:Math.max(we.left,ke.left),bottom:Math.max(we.bottom,ke.bottom)+te};var Oe=As(x,ie),lt=x.doc.scrollTop,Et=x.doc.scrollLeft;if(Oe.scrollTop!=null&&(Da(x,Oe.scrollTop),Math.abs(x.doc.scrollTop-lt)>1&&(me=!0)),Oe.scrollLeft!=null&&(go(x,Oe.scrollLeft),Math.abs(x.doc.scrollLeft-Et)>1&&(me=!0)),!me)break}return ie}function ul(x,z){var ne=As(x,z);ne.scrollTop!=null&&Da(x,ne.scrollTop),ne.scrollLeft!=null&&go(x,ne.scrollLeft)}function As(x,z){var ne=x.display,te=Ka(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,oe=Ti(x),me={};z.bottom-z.top>oe&&(z.bottom=z.top+oe);var we=x.doc.height+bi(ne),ke=z.topwe-te;if(z.topie+oe){var lt=Math.min(z.top,(Oe?we:z.bottom)-oe);lt!=ie&&(me.scrollTop=lt)}var Et=x.options.fixedGutter?0:ne.gutters.offsetWidth,on=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-Et,Vt=di(x)-ne.gutters.offsetWidth,Xn=z.right-z.left>Vt;return Xn&&(z.right=z.left+Vt),z.left<10?me.scrollLeft=0:z.leftVt+on-3&&(me.scrollLeft=z.right+(Xn?0:10)-Vt),me}function ms(x,z){z!=null&&(Ys(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function zo(x){Ys(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ts(x,z,ne){(z!=null||ne!=null)&&Ys(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Ds(x,z){Ys(x),x.curOp.scrollToPos=z}function Ys(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=ka(x,z.from),te=ka(x,z.to);oo(x,ne,te,z.margin)}}function oo(x,z,ne,te){var ie=As(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});Ts(x,ie.scrollLeft,ie.scrollTop)}function Da(x,z){Math.abs(x.doc.scrollTop-z)<2||(fe||Yc(x,{top:z}),Xa(x,z,!0),fe&&Yc(x),is(x,100))}function Xa(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function go(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Vu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function yo(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+bi(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+jr(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ko=function(x,z,ne){this.cm=ne;var te=this.vert=wt("div",[wt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=wt("div",[wt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Rn(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Rn(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&_e<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var oe=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Ko.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var x=De&&!ze?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ae,this.disableVert=new Ae},Ko.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),oe=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);oe!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Ko.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function xs(x,z){z||(z=yo(x));var ne=x.display.barWidth,te=x.display.barHeight;Xl(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Uo(x),Xl(x,yo(x)),ne=x.display.barWidth,te=x.display.barHeight}function Xl(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var ql={native:Ko,null:wo};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ve(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new ql[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Rn(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?go(x,z):Da(x,z)},x),x.display.scrollbars.addClass&&xn(x.display.wrapper,x.display.scrollbars.addClass)}var Xc=0;function Ks(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.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:++Xc},Xt(x.curOp)}function Is(x){var z=x.curOp;z&&Fn(z,function(ne){for(var te=0;te=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new gs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Ia(x){x.updatedDisplay=x.mustUpdate&&qc(x.cm,x.update)}function ma(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Uo(z),x.barMeasure=yo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Aa(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+jr(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-di(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Ho(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=pi(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(oe){if(te.line>=x.display.viewFrom){var me=oe.styles,we=oe.text.length>x.options.maxHighlightLength?ut(z.mode,te.state):null,ke=Ri(x,oe,te,!0);we&&(te.state=we),oe.styles=ke.styles;var Oe=oe.styleClasses,lt=ke.classes;lt?oe.styleClasses=lt:Oe&&(oe.styleClasses=null);for(var Et=!me||me.length!=oe.styles.length||Oe!=lt&&(!Oe||!lt||Oe.bgClass!=lt.bgClass||Oe.textClass!=lt.textClass),on=0;!Et&&onne)return is(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&ga(x,function(){for(var oe=0;oe=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&hs(x)==0)return!1;bc(x)&&(_a(x),z.dims=ho(x));var ie=te.first+te.size,oe=Math.max(z.visible.from-x.options.viewportMargin,te.first),me=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFromme&&ne.viewTo-me<20&&(me=Math.min(ie,ne.viewTo)),ti&&(oe=Jt(x.doc,oe),me=Gn(x.doc,me));var we=oe!=ne.viewFrom||me!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ao(x,oe,me),ne.viewOffset=pn(Ht(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var ke=hs(x);if(!we&&ke==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Oe=Zd(x);return ke>4&&(ne.lineDiv.style.display="none"),jd(x,ne.updateLineNumbers,z.dims),ke>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Vd(Oe),Xe(ne.cursorDiv),Xe(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,we&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,is(x,400)),ne.updateLineNumbers=null,!0}function Zu(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==di(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+bi(x.display)-Ti(x),ne.top)}),z.visible=va(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=va(x.display,x.doc,ne));if(!qc(x,z))break;Uo(x);var ie=yo(x);Qo(x),xs(x,ie),Qc(x,ie),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Yc(x,z){var ne=new gs(x,z);if(qc(x,ne)){Uo(x),Zu(x,ne);var te=yo(x);Qo(x),xs(x,te),Qc(x,te),ne.finish()}}function jd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,oe=te.lineDiv,me=oe.firstChild;function we(Xn){var dr=Xn.nextSibling;return Le&&De&&x.display.currentWheelTarget==Xn?Xn.style.display="none":Xn.parentNode.removeChild(Xn),dr}for(var ke=te.view,Oe=te.viewFrom,lt=0;lt-1&&(Vt=!1),Zr(x,Et,Oe,ne)),Vt&&(Xe(Et.lineNumber),Et.lineNumber.appendChild(document.createTextNode(ot(x.options,Oe)))),me=Et.node.nextSibling}Oe+=Et.size}for(;me;)me=we(me)}function Jc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Qc(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+jr(x)+"px"}function Vu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Oo(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,oe=te+"px",me=0;meme.clientWidth,ke=me.scrollHeight>me.clientHeight;if(te&&we||ie&&ke){if(ie&&De&&Le){e:for(var Oe=z.target,lt=oe.view;Oe!=me;Oe=Oe.parentNode)for(var Et=0;Et=0&&vt(x,te.to())<=0)return ne}return-1};var Za=function(x,z){this.anchor=x,this.head=z};Za.prototype.from=function(){return cn(this.anchor,this.head)},Za.prototype.to=function(){return en(this.anchor,this.head)},Za.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Es(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(on,Vt){return vt(on.from(),Vt.from())}),ne=$t(z,ie);for(var oe=1;oe0:ke>=0){var Oe=cn(we.from(),me.from()),lt=en(we.to(),me.to()),Et=we.empty()?me.from()==me.head:we.from()==we.head;oe<=ne&&--ne,z.splice(--oe,2,new Za(Et?lt:Oe,Et?Oe:lt))}}return new vs(z,ne)}function Ps(x,z){return new vs([new Za(x,z||x)],0)}function Js(x){return x.text?Qe(x.from.line+x.text.length-1,Ft(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function qu(x,z){if(vt(x,z.from)<0)return x;if(vt(x,z.to)<=0)return Js(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=Js(z).ch-z.to.ch),Qe(ne,te)}function tu(x,z){for(var ne=[],te=0;te1&&x.remove(we.line+1,Xn-1),x.insert(we.line+1,Wr)}Bn(x,"change",x,z)}function Qs(x,z,ne){function te(ie,oe,me){if(ie.linked)for(var we=0;we1&&!x.done[x.done.length-2].ranges)return x.done.pop(),Ft(x.done)}function Mc(x,z,ne,te){var ie=x.history;ie.undone.length=0;var oe=+new Date,me,we;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>oe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(me=su(ie,ie.lastOp==te)))we=Ft(me.changes),vt(z.from,z.to)==0&&vt(z.from,we.to)==0?we.to=Js(z):me.changes.push(ou(x,z));else{var ke=Ft(ie.done);for((!ke||!ke.ranges)&&Ec(x.sel,ie.done),me={changes:[ou(x,z)],generation:ie.generation},ie.done.push(me);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=oe,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,we||st(x,"historyAdded")}function lu(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function cu(x,z,ne,te){var ie=x.history,oe=te&&te.origin;ne==ie.lastSelOp||oe&&ie.lastSelOrigin==oe&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==oe||lu(x,oe,Ft(ie.done),z))?ie.done[ie.done.length-1]=z:Ec(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=oe,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Ju(ie.undone)}function Ec(x,z){var ne=Ft(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function uu(x,z,ne,te){var ie=z["spans_"+x.id],oe=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(me){me.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[oe]=me.markedSpans),++oe})}function du(x){if(!x)return null;for(var z,ne=0;ne-1&&(Ft(we)[Et]=Oe[Et],delete Oe[Et])}}return te}function fu(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var oe=vt(z,ie)<0;oe!=vt(ne,ie)<0?(ie=z,z=ne):oe!=vt(z,ne)<0&&(z=ne)}return new Za(ie,z)}else return new Za(ne||z,z)}function Bl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),To(x,new vs([fu(x.sel.primary(),z,ne,ie)],0),te)}function oi(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),oe=0;oe=z.ch:we.to>z.ch))){if(ie&&(st(ke,"beforeCursorEnter"),ke.explicitlyCleared))if(oe.markedSpans){--me;continue}else break;if(!ke.atomic)continue;if(ne){var Et=ke.find(te<0?1:-1),on=void 0;if((te<0?lt:Oe)&&(Et=el(x,Et,-te,Et&&Et.line==z.line?oe:null)),Et&&Et.line==z.line&&(on=vt(Et,ne))&&(te<0?on<0:on>0))return os(x,Et,z,te,ie)}var Vt=ke.find(te<0?-1:1);return(te<0?Oe:lt)&&(Vt=el(x,Vt,te,Vt.line==z.line?oe:null)),Vt?os(x,Vt,z,te,ie):null}}return z}function hu(x,z,ne,te,ie){var oe=te||1,me=os(x,z,ne,oe,ie)||!ie&&os(x,z,ne,oe,!0)||os(x,z,ne,-oe,ie)||!ie&&os(x,z,ne,-oe,!0);return me||(x.cantEdit=!0,Qe(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Dn(x,Qe(z.line-1)):null:ne>0&&z.ch==(te||Ht(x,z.line)).text.length?z.line=0;--ie)nd(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else nd(x,z)}}function nd(x,z){if(!(z.text.length==1&&z.text[0]==""&&vt(z.from,z.to)==0)){var ne=tu(x,z);Mc(x,z,ne,x.cm?x.cm.curOp.id:NaN),Fl(x,z,ne,Hr(x,z));var te=[];Qs(x,function(ie,oe){!oe&&$t(te,ie.history)==-1&&(_c(ie.history,z),te.push(ie.history)),Fl(ie,z,null,Hr(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,oe,me=x.sel,we=z=="undo"?ie.done:ie.undone,ke=z=="undo"?ie.undone:ie.done,Oe=0;Oe=0;--Vt){var Xn=on(Vt);if(Xn)return Xn.v}}}}function mu(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(Pn(x.sel.ranges,function(ie){return new Za(Qe(ie.anchor.line+z,ie.anchor.ch),Qe(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){Oi(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;tex.lastLine())){if(z.from.lineoe&&(z={from:z.from,to:Qe(oe,Ht(x,oe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=$n(x,z.from,z.to),ne||(ne=tu(x,z)),x.cm?Qd(x.cm,z,te):iu(x,z,te),kc(x,ne,at),x.cantEdit&&hu(x,Qe(x.firstLine(),0))&&(x.cantEdit=!1)}}function Qd(x,z,ne){var te=x.doc,ie=x.display,oe=z.from,me=z.to,we=!1,ke=oe.line;x.options.lineWrapping||(ke=qn(et(Ht(te,oe.line))),te.iter(ke,me.line+1,function(Vt){if(Vt==ie.maxLine)return we=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Vn(x),iu(te,z,ne,Ro(x)),x.options.lineWrapping||(te.iter(ke,oe.line+z.text.length,function(Vt){var Xn=dn(Vt);Xn>ie.maxLineLength&&(ie.maxLine=Vt,ie.maxLineLength=Xn,ie.maxLineChanged=!0,we=!1)}),we&&(x.curOp.updateMaxLine=!0)),la(te,oe.line),is(x,400);var Oe=z.text.length-(me.line-oe.line)-1;z.full?Oi(x):oe.line==me.line&&z.text.length==1&&!Yu(x.doc,z)?Ta(x,oe.line,"text"):Oi(x,oe.line,me.line+1,Oe);var lt=ir(x,"changes"),Et=ir(x,"change");if(Et||lt){var on={from:oe,to:me,text:z.text,removed:z.removed,origin:z.origin};Et&&Bn(x,"change",x,on),lt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(on)}x.display.selForContextMenu=null}function ec(x,z,ne,te,ie){var oe;te||(te=ne),vt(te,ne)<0&&(oe=[te,ne],ne=oe[0],te=oe[1]),typeof z=="string"&&(z=x.splitLines(z)),dl(x,{from:ne,to:te,text:z,origin:ie})}function ef(x,z,ne,te){ne1||!(this.children[0]instanceof fl))){var we=[];this.collapse(we),this.children=[new fl(we)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z50){for(var me=ie.lines.length%25+25,we=me;we10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;tex.display.maxLineLength&&(x.display.maxLine=Oe,x.display.maxLineLength=lt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Oi(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Jd(x.doc)),x&&Bn(x,"markerCleared",x,this,te,ie),z&&Is(x),this.parent&&this.parent.clear()}},hl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie0||me==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=Mt("span",[oe.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(Ge(x,z.line,z,ne,oe)||z.line!=ne.line&&Ge(x,ne.line,z,ne,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");ht()}oe.addToHistory&&Mc(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var we=z.line,ke=x.cm,Oe;if(x.iter(we,ne.line+1,function(Et){ke&&oe.collapsed&&!ke.options.lineWrapping&&et(Et)==ke.display.maxLine&&(Oe=!0),oe.collapsed&&we!=z.line&&Yn(Et,0),ur(Et,new Bt(oe,we==z.line?z.ch:null,we==ne.line?ne.ch:null)),++we}),oe.collapsed&&x.iter(z.line,ne.line+1,function(Et){fr(x,Et)&&Yn(Et,0)}),oe.clearOnEnter&&Rn(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(yt(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),oe.collapsed&&(oe.id=++af,oe.atomic=!0),ke){if(Oe&&(ke.curOp.updateMaxLine=!0),oe.collapsed)Oi(ke,z.line,ne.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var lt=z.line;lt<=ne.line;lt++)Ta(ke,lt,"text");oe.atomic&&Jd(ke.doc),Bn(ke,"markerAdded",ke,oe)}return oe}var ya=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne=0;ke--)dl(this,te[ke]);we?as(this,we):this.cm&&zo(this.cm)}),undo:po(function(){tl(this,"undo")}),redo:po(function(){tl(this,"redo")}),undoSelection:po(function(){tl(this,"undo",!0)}),redoSelection:po(function(){tl(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=Dn(this,x),z=Dn(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(oe){var me=oe.markedSpans;if(me)for(var we=0;we=ke.to||ke.from==null&&ie!=x.line||ke.from!=null&&ie==z.line&&ke.from>=z.ch)&&(!ne||ne(ke.marker))&&te.push(ke.marker.parent||ke.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;tex)return z=x,!0;x-=oe,++ne}),Dn(this,Qe(ne,z))},indexFromPos:function(x){x=Dn(this,x);var z=x.ch;if(x.linez&&(z=x.from),x.to!=null&&x.to-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var lt=x.dataTransfer.getData("Text");if(lt){var Et;if(z.state.draggingText&&!z.state.draggingText.copy&&(Et=z.listSelections()),kc(z.doc,Ps(ne,ne)),Et)for(var on=0;on=0;we--)ec(x.doc,"",te[we].from,te[we].to,"+delete");zo(x)})}function Vo(x,z,ne){var te=tn(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function Ws(x,z,ne){var te=Vo(x,z.ch,ne);return te==null?null:new Qe(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var oe=Fr(ne,z.doc.direction);if(oe){var me=ie<0?Ft(oe):oe[0],we=ie<0==(me.level==1),ke=we?"after":"before",Oe;if(me.level>0||z.doc.direction=="rtl"){var lt=Yi(z,ne);Oe=ie<0?ne.text.length-1:0;var Et=Mi(z,lt,Oe).top;Oe=hn(function(on){return Mi(z,lt,on).top==Et},ie<0==(me.level==1)?me.from:me.to-1,Oe),ke=="before"&&(Oe=Vo(ne,Oe,1))}else Oe=ie<0?me.to:me.from;return new Qe(te,Oe,ke)}}return new Qe(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Us(x,z,ne,te){var ie=Fr(z,x.doc.direction);if(!ie)return Ws(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var oe=ln(ie,ne.ch,ne.sticky),me=ie[oe];if(x.doc.direction=="ltr"&&me.level%2==0&&(te>0?me.to>ne.ch:me.from=me.from&&on>=lt.begin)){var Vt=Et?"before":"after";return new Qe(ne.line,on,Vt)}}var Xn=function(Wr,ni,Kr){for(var ri=function(to,Wo){return Wo?new Qe(ne.line,we(to,1),"before"):new Qe(ne.line,to,"after")};Wr>=0&&Wr0==(Fi.level!=1),ba=Hi?Kr.begin:we(Kr.end,-1);if(Fi.from<=ba&&ba0?lt.end:we(lt.begin,-1);return Tr!=null&&!(te>0&&Tr==z.text.length)&&(dr=Xn(te>0?0:ie.length-1,te,Oe(Tr)),dr)?dr:null}var ac={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),at)},killLine:function(x){return ks(x,function(z){if(z.empty()){var ne=Ht(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line0)ie=new Qe(ie.line,ie.ch+1),x.replaceRange(oe.charAt(ie.ch-1)+oe.charAt(ie.ch-2),Qe(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var me=Ht(x.doc,ie.line-1).text;me&&(ie=new Qe(ie.line,1),x.replaceRange(oe.charAt(0)+x.doc.lineSeparator()+me.charAt(me.length-1),Qe(ie.line-1,me.length-1),ie,"+transpose"))}}ne.push(new Za(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return ga(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;tex&&vt(z,this.pos)==0&&ne==this.button};var al,Pc;function ih(x,z){var ne=+new Date;return Pc&&Pc.compare(ne,x,z)?(al=Pc=null,"triple"):al&&al.compare(ne,x,z)?(Pc=new ud(ne,x,z),al=null,"double"):(al=new ud(ne,x,z),Pc=null,"single")}function jo(x){var z=this,ne=z.display;if(!(Wt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Xi(ne,x)){Le||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ts(z,x)){var te=Ao(z,x),ie=br(x),oe=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,oe,x))&&(ie==1?te?wu(z,te,oe,x):ui(x)==ne.scroller&&Pr(x):ie==2?(te&&Bl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Ie?z.display.input.onContextMenu(x):Ha(z)))}}}function gl(x,z,ne,te,ie){var oe="Click";return te=="double"?oe="Double"+oe:te=="triple"&&(oe="Triple"+oe),oe=(z==1?"Left":z==2?"Middle":"Right")+oe,oc(x,ml(oe,ie),ie,function(me){if(typeof me=="string"&&(me=ac[me]),!me)return!1;var we=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),we=me(x,ne)!=bn}finally{x.state.suppressEdits=!1}return we})}function xu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var oe=Dt?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=oe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=De?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(De?ne.altKey:ne.ctrlKey)),ie}function wu(x,z,ne,te){be?setTimeout(er(Di,x),0):x.curOp.focus=At();var ie=xu(x,ne,te),oe=x.doc.sel,me;x.options.dragDrop&&Ei&&!x.isReadOnly()&&ne=="single"&&(me=oe.contains(z))>-1&&(vt((me=oe.ranges[me]).from(),z)<0||z.xRel>0)&&(vt(me.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):dd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,oe=!1,me=za(x,function(Oe){Le&&(ie.scroller.draggable=!1),x.state.draggingText=!1,li(ie.wrapper.ownerDocument,"mouseup",me),li(ie.wrapper.ownerDocument,"mousemove",we),li(ie.scroller,"dragstart",ke),li(ie.scroller,"drop",me),oe||(Pr(Oe),te.addNew||Bl(x.doc,ne,null,null,te.extend),Le&&!gt||be&&_e==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),we=function(Oe){oe=oe||Math.abs(z.clientX-Oe.clientX)+Math.abs(z.clientY-Oe.clientY)>=10},ke=function(){return oe=!0};Le&&(ie.scroller.draggable=!0),x.state.draggingText=me,me.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Rn(ie.wrapper.ownerDocument,"mouseup",me),Rn(ie.wrapper.ownerDocument,"mousemove",we),Rn(ie.scroller,"dragstart",ke),Rn(ie.scroller,"drop",me),Ha(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new Za(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Za(Qe(z.line,0),Dn(x.doc,Qe(z.line+1,0)));var te=ne(x,z);return new Za(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,oe=x.doc;Pr(z);var me,we,ke=oe.sel,Oe=ke.ranges;if(te.addNew&&!te.extend?(we=oe.sel.contains(ne),we>-1?me=Oe[we]:me=new Za(ne,ne)):(me=oe.sel.primary(),we=oe.sel.primIndex),te.unit=="rectangle")te.addNew||(me=new Za(ne,ne)),ne=Ao(x,z,!0,!0),we=-1;else{var lt=df(x,ne,te.unit);te.extend?me=fu(me,lt.anchor,lt.head,te.extend):me=lt}te.addNew?we==-1?(we=Oe.length,To(oe,Es(x,Oe.concat([me]),we),{scroll:!1,origin:"*mouse"})):Oe.length>1&&Oe[we].empty()&&te.unit=="char"&&!te.extend?(To(oe,Es(x,Oe.slice(0,we).concat(Oe.slice(we+1)),0),{scroll:!1,origin:"*mouse"}),ke=oe.sel):ws(oe,we,me,ft):(we=0,To(oe,new vs([me],0),ft),ke=oe.sel);var Et=ne;function on(Kr){if(vt(Et,Kr)!=0)if(Et=Kr,te.unit=="rectangle"){for(var ri=[],Fi=x.options.tabSize,Hi=qe(Ht(oe,ne.line).text,ne.ch,Fi),ba=qe(Ht(oe,Kr.line).text,Kr.ch,Fi),to=Math.min(Hi,ba),Wo=Math.max(Hi,ba),bo=Math.min(ne.line,Kr.line),us=Math.min(x.lastLine(),Math.max(ne.line,Kr.line));bo<=us;bo++){var ds=Ht(oe,bo).text,Io=zn(ds,to,Fi);to==Wo?ri.push(new Za(Qe(bo,Io),Qe(bo,Io))):ds.length>Io&&ri.push(new Za(Qe(bo,Io),Qe(bo,zn(ds,Wo,Fi))))}ri.length||ri.push(new Za(ne,ne)),To(oe,Es(x,ke.ranges.slice(0,we).concat(ri),we),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Kr)}else{var fs=me,oa=df(x,Kr,te.unit),So=fs.anchor,xo;vt(oa.anchor,So)>0?(xo=oa.head,So=cn(fs.from(),oa.anchor)):(xo=oa.anchor,So=en(fs.to(),oa.head));var Co=ke.ranges.slice(0);Co[we]=ff(x,new Za(Dn(oe,So),xo)),To(oe,Es(x,Co,we),ft)}}var Vt=ie.wrapper.getBoundingClientRect(),Xn=0;function dr(Kr){var ri=++Xn,Fi=Ao(x,Kr,!0,te.unit=="rectangle");if(Fi)if(vt(Fi,Et)!=0){x.curOp.focus=At(),on(Fi);var Hi=va(ie,oe);(Fi.line>=Hi.to||Fi.lineVt.bottom?20:0;ba&&setTimeout(za(x,function(){Xn==ri&&(ie.scroller.scrollTop+=ba,dr(Kr))}),50)}}function Tr(Kr){x.state.selectingText=!1,Xn=1/0,Kr&&(Pr(Kr),ie.input.focus()),li(ie.wrapper.ownerDocument,"mousemove",Wr),li(ie.wrapper.ownerDocument,"mouseup",ni),oe.history.lastSelOrigin=null}var Wr=za(x,function(Kr){Kr.buttons===0||!br(Kr)?Tr(Kr):dr(Kr)}),ni=za(x,Tr);x.state.selectingText=ni,Rn(ie.wrapper.ownerDocument,"mousemove",Wr),Rn(ie.wrapper.ownerDocument,"mouseup",ni)}function ff(x,z){var ne=z.anchor,te=z.head,ie=Ht(x.doc,ne.line);if(vt(ne,te)==0&&ne.sticky==te.sticky)return z;var oe=Fr(ie);if(!oe)return z;var me=ln(oe,ne.ch,ne.sticky),we=oe[me];if(we.from!=ne.ch&&we.to!=ne.ch)return z;var ke=me+(we.from==ne.ch==(we.level!=1)?0:1);if(ke==0||ke==oe.length)return z;var Oe;if(te.line!=ne.line)Oe=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var lt=ln(oe,te.ch,te.sticky),Et=lt-me||(te.ch-ne.ch)*(we.level==1?-1:1);lt==ke-1||lt==ke?Oe=Et<0:Oe=Et>0}var on=oe[ke+(Oe?-1:0)],Vt=Oe==(on.level==1),Xn=Vt?on.from:on.to,dr=Vt?"after":"before";return ne.ch==Xn&&ne.sticky==dr?z:new Za(new Qe(ne.line,Xn,dr),te)}function Oc(x,z,ne,te){var ie,oe;if(z.touches)ie=z.touches[0].clientX,oe=z.touches[0].clientY;else try{ie=z.clientX,oe=z.clientY}catch(on){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Pr(z);var me=x.display,we=me.lineDiv.getBoundingClientRect();if(oe>we.bottom||!ir(x,ne))return Xr(z);oe-=we.top-me.viewOffset;for(var ke=0;ke=ie){var lt=rr(x.doc,oe),Et=x.display.gutterSpecs[ke];return st(x,ne,x,lt,Et.className,z),Xr(z)}}}function ts(x,z){return Oc(x,z,"gutterClick",!0)}function vl(x,z){Xi(x.display,z)||hf(x,z)||Wt(x,z,"contextmenu")||Ie||x.display.input.onContextMenu(z)}function hf(x,z){return ir(x,"gutterContextMenu")?Oc(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hi(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Su={};function oh(x){var z=x.optionHandlers;function ne(te,ie,oe,me){x.defaults[te]=ie,oe&&(z[te]=me?function(we,ke,Oe){Oe!=yl&&oe(we,ke,Oe)}:oe)}x.defineOption=ne,x.Init=yl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,ru(te)},!0),ne("indentUnit",2,ru,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Rl(te),hi(te),Oi(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var oe=[],me=te.doc.first;te.doc.iter(function(ke){for(var Oe=0;;){var lt=ke.text.indexOf(ie,Oe);if(lt==-1)break;Oe=lt+ie.length,oe.push(Qe(me,lt))}me++});for(var we=oe.length-1;we>=0;we--)ec(te.doc,ie,oe[we],Qe(oe[we].line,oe[we].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,oe){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),oe!=yl&&te.refresh()}),ne("specialCharPlaceholder",Pe,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",Je?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!Yt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),Ql(te)},!0),ne("keyMap","default",function(te,ie,oe){var me=ss(ie),we=oe!=yl&&ss(oe);we&&we.detach&&we.detach(te,me),me.attach&&me.attach(te,we||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,mf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=eu(ie,te.options.lineNumbers),Ql(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Oo(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return xs(te)},!0),ne("scrollbarStyle","native",function(te){vc(te),xs(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=eu(te.options.gutters,ie),Ql(te)},!0),ne("firstLineNumber",1,Ql,!0),ne("lineNumberFormatter",function(te){return te},Ql,!0),ne("showCursorWhenSelecting",!1,Qo,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(Fo(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,Qo,!0),ne("singleCursorHeightPerLine",!0,Qo,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Rl,!0),ne("addModeClass",!1,Rl,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Rl,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=yl;if(!z!=!te){var ie=x.display.dragFunctions,oe=z?Rn:li;oe(x.display.scroller,"dragstart",ie.start),oe(x.display.scroller,"dragenter",ie.enter),oe(x.display.scroller,"dragover",ie.over),oe(x.display.scroller,"dragleave",ie.leave),oe(x.display.scroller,"drop",ie.drop)}}function mf(x){x.options.lineWrapping?(xn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ve(x.display.wrapper,"CodeMirror-wrap"),Cn(x)),lo(x),Oi(x),hi(x),setTimeout(function(){return xs(x)},100)}function ra(x,z){var ne=this;if(!(this instanceof ra))return new ra(x,z);this.options=z=z?Sr(z):{},Sr(pf,z,!1);var te=z.value;typeof te=="string"?te=new Eo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new ra.inputStyles[z.inputStyle](this),oe=this.display=new Gd(x,te,ie,z);oe.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vc(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 Ae,keySeq:null,specialChars:null},z.autofocus&&!Je&&oe.input.focus(),be&&_e<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wc(this,te),z.autofocus&&!Je||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&ja(ne)},20):Fo(this);for(var me in Su)Su.hasOwnProperty(me)&&Su[me](this,z[me],yl);bc(this),z.finishInit&&z.finishInit(this);for(var we=0;we20*20}Rn(z.scroller,"touchstart",function(ke){if(!Wt(x,ke)&&!oe(ke)&&!ts(x,ke)){z.input.ensurePolled(),clearTimeout(ne);var Oe=+new Date;z.activeTouch={start:Oe,moved:!1,prev:Oe-te.end<=300?te:null},ke.touches.length==1&&(z.activeTouch.left=ke.touches[0].pageX,z.activeTouch.top=ke.touches[0].pageY)}}),Rn(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Rn(z.scroller,"touchend",function(ke){var Oe=z.activeTouch;if(Oe&&!Xi(z,ke)&&Oe.left!=null&&!Oe.moved&&new Date-Oe.start<300){var lt=x.coordsChar(z.activeTouch,"page"),Et;!Oe.prev||me(Oe,Oe.prev)?Et=new Za(lt,lt):!Oe.prev.prev||me(Oe,Oe.prev.prev)?Et=x.findWordAt(lt):Et=new Za(Qe(lt.line,0),Dn(x.doc,Qe(lt.line+1,0))),x.setSelection(Et.anchor,Et.head),x.focus(),Pr(ke)}ie()}),Rn(z.scroller,"touchcancel",ie),Rn(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Da(x,z.scroller.scrollTop),go(x,z.scroller.scrollLeft,!0),st(x,"scroll",x))}),Rn(z.scroller,"mousewheel",function(ke){return Xu(x,ke)}),Rn(z.scroller,"DOMMouseScroll",function(ke){return Xu(x,ke)}),Rn(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(ke){Wt(x,ke)||qr(ke)},over:function(ke){Wt(x,ke)||(id(x,ke),qr(ke))},start:function(ke){return th(x,ke)},drop:za(x,eh),leave:function(ke){Wt(x,ke)||rc(x)}};var we=z.input.getField();Rn(we,"keyup",function(ke){return cf.call(x,ke)}),Rn(we,"keydown",za(x,Ic)),Rn(we,"keypress",za(x,uf)),Rn(we,"focus",function(ke){return ja(x,ke)}),Rn(we,"blur",function(ke){return Fo(x,ke)})}var hd=[];ra.defineInitHook=function(x){return hd.push(x)};function Rs(x,z,ne,te){var ie=x.doc,oe;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?oe=pi(x,z).state:ne="prev");var me=x.options.tabSize,we=Ht(ie,z),ke=qe(we.text,null,me);we.stateAfter&&(we.stateAfter=null);var Oe=we.text.match(/^\s*/)[0],lt;if(!te&&!/\S/.test(we.text))lt=0,ne="not";else if(ne=="smart"&&(lt=ie.mode.indent(oe,we.text.slice(Oe.length),we.text),lt==bn||lt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?lt=qe(Ht(ie,z-1).text,null,me):lt=0:ne=="add"?lt=ke+x.options.indentUnit:ne=="subtract"?lt=ke-x.options.indentUnit:typeof ne=="number"&&(lt=ke+ne),lt=Math.max(0,lt);var Et="",on=0;if(x.options.indentWithTabs)for(var Vt=Math.floor(lt/me);Vt;--Vt)on+=me,Et+=" ";if(onme,ke=mt(z),Oe=null;if(we&&te.ranges.length>1)if(Ns&&Ns.text.join(` `)==z){if(te.ranges.length%Ns.text.length==0){Oe=[];for(var lt=0;lt=0;on--){var Vt=te.ranges[on],Xn=Vt.from(),dr=Vt.to();Vt.empty()&&(ne&&ne>0?Xn=Qe(Xn.line,Xn.ch-ne):x.state.overwrite&&!we?dr=Qe(dr.line,Math.min(Ht(oe,dr.line).text.length,dr.ch+Ft(ke).length)):we&&Ns&&Ns.lineWise&&Ns.text.join(` `)==ke.join(` `)&&(Xn=dr=Qe(Xn.line,0)));var Tr={from:Xn,to:dr,text:Oe?Oe[on%Oe.length]:ke,origin:ie||(we?"paste":x.state.cutIncoming>me?"cut":"+input")};dl(x.doc,Tr),Bn(x,"inputRead",x,Tr)}z&&!we&&gd(x,z),zo(x),x.curOp.updateInput<2&&(x.curOp.updateInput=Et),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function md(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&ga(z,function(){return pd(z,ne,0,null,"paste")}),!0}function gd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var oe=x.getModeAt(ie.head),me=!1;if(oe.electricChars){for(var we=0;we-1){me=Rs(x,ie.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(Ht(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(me=Rs(x,ie.head.line,"smart"));me&&Bn(x,"electricInput",x,ie.head.line)}}}function lc(x){for(var z=[],ne=[],te=0;teoe&&(Rs(this,we.head.line,te,!0),oe=we.head.line,me==this.doc.sel.primIndex&&zo(this));else{var ke=we.from(),Oe=we.to(),lt=Math.max(oe,ke.line);oe=Math.min(this.lastLine(),Oe.line-(Oe.ch?0:1))+1;for(var Et=lt;Et0&&ws(this.doc,me,new Za(ke,on[me].to()),at)}}}),getTokenAt:function(te,ie){return Zi(this,te,ie)},getLineTokens:function(te,ie){return Zi(this,Qe(te),ie,!0)},getTokenTypeAt:function(te){te=Dn(this.doc,te);var ie=Li(this,Ht(this.doc,te.line)),oe=0,me=(ie.length-1)/2,we=te.ch,ke;if(we==0)ke=ie[2];else for(;;){var Oe=oe+me>>1;if((Oe?ie[Oe*2-1]:0)>=we)me=Oe;else if(ie[Oe*2+1]ke&&(te=ke,me=!0),we=Ht(this.doc,te)}else we=te;return wa(this,we,{top:0,left:0},ie||"page",oe||me).top+(me?this.doc.height-pn(we):0)},defaultTextHeight:function(){return Ka(this.display)},defaultCharWidth:function(){return io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,oe,me,we){var ke=this.display;te=ha(this,Dn(this.doc,te));var Oe=te.bottom,lt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),ke.sizer.appendChild(ie),me=="over")Oe=te.top;else if(me=="above"||me=="near"){var Et=Math.max(ke.wrapper.clientHeight,this.doc.height),on=Math.max(ke.sizer.clientWidth,ke.lineSpace.clientWidth);(me=="above"||te.bottom+ie.offsetHeight>Et)&&te.top>ie.offsetHeight?Oe=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=Et&&(Oe=te.bottom),lt+ie.offsetWidth>on&&(lt=on-ie.offsetWidth)}ie.style.top=Oe+"px",ie.style.left=ie.style.right="",we=="right"?(lt=ke.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(we=="left"?lt=0:we=="middle"&&(lt=(ke.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=lt+"px"),oe&&ul(this,{left:lt,top:Oe,right:lt+ie.offsetWidth,bottom:Oe+ie.offsetHeight})},triggerOnKeyDown:Ra(Ic),triggerOnKeyPress:Ra(uf),triggerOnKeyUp:cf,triggerOnMouseDown:Ra(jo),execCommand:function(te){if(ac.hasOwnProperty(te))return ac[te].call(null,this)},triggerElectric:Ra(function(te){gd(this,te)}),findPosH:function(te,ie,oe,me){var we=1;ie<0&&(we=-1,ie=-ie);for(var ke=Dn(this.doc,te),Oe=0;Oe0&<(oe.charAt(me-1));)--me;for(;we.5||this.options.lineWrapping)&&lo(this),st(this,"refresh",this)}),swapDoc:Ra(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wc(this,te),hi(this),this.display.input.reset(),Ts(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Bn(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},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}},gr(x),x.registerHelper=function(te,ie,oe){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=oe},x.registerGlobalHelper=function(te,ie,oe,me){x.registerHelper(te,ie,me),ne[te]._global.push({pred:oe,val:me})}}function Cu(x,z,ne,te,ie){var oe=z,me=ne,we=Ht(x,z.line),ke=ie&&x.direction=="rtl"?-ne:ne;function Oe(){var ni=z.line+ke;return ni=x.first+x.size?!1:(z=new Qe(ni,z.ch,z.sticky),we=Ht(x,ni))}function lt(ni){var Kr;if(te=="codepoint"){var ri=we.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(ri)?Kr=null:Kr=new Qe(z.line,Math.max(0,Math.min(we.text.length,z.ch+ne*(ri>=55296&&ri<56320?2:1))),-ne)}else ie?Kr=Us(x.cm,we,z,ne):Kr=Ws(we,z,ne);if(Kr==null)if(!ni&&Oe())z=Kl(ie,x.cm,we,z.line,ke);else return!1;else z=Kr;return!0}if(te=="char"||te=="codepoint")lt();else if(te=="column")lt(!0);else if(te=="word"||te=="group")for(var Et=null,on=te=="group",Vt=x.cm&&x.cm.getHelper(z,"wordChars"),Xn=!0;!(ne<0&&!lt(!Xn));Xn=!1){var dr=we.text.charAt(z.ch)||` `,Tr=ve(dr,Vt)?"w":on&&dr==` `?"n":!on||/\s/.test(dr)?null:"p";if(on&&!Xn&&!Tr&&(Tr="s"),Et&&Et!=Tr){ne<0&&(ne=1,lt(),z.sticky="after");break}if(Tr&&(Et=Tr),ne>0&&!lt(!Xn))break}var Wr=hu(x,z,oe,me,!0);return Qt(oe,Wr)&&(Wr.hitSide=!0),Wr}function vf(x,z,ne,te){var ie=x.doc,oe=z.left,me;if(te=="page"){var we=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ke=Math.max(we-.5*Ka(x.display),3);me=(ne>0?z.bottom:z.top)+ne*ke}else te=="line"&&(me=ne>0?z.bottom+3:z.top-3);for(var Oe;Oe=Ga(x,oe,me),!!Oe.outside;){if(ne<0?me<=0:me>=ie.height){Oe.hitSide=!0;break}me+=ne*5}return Oe}var qa=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qa.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;gf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function oe(we){for(var ke=we.target;ke;ke=ke.parentNode){if(ke==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Rn(ie,"paste",function(we){!oe(we)||Wt(te,we)||md(we,te)||_e<=11&&setTimeout(za(te,function(){return z.updateFromDOM()}),20)}),Rn(ie,"compositionstart",function(we){z.composing={data:we.data,done:!1}}),Rn(ie,"compositionupdate",function(we){z.composing||(z.composing={data:we.data,done:!1})}),Rn(ie,"compositionend",function(we){z.composing&&(we.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Rn(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Rn(ie,"input",function(){z.composing||z.readFromDOMSoon()});function me(we){if(!(!oe(we)||Wt(te,we))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),we.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var ke=lc(te);bl({lineWise:!0,text:ke.text}),we.type=="cut"&&te.operation(function(){te.setSelections(ke.ranges,0,at),te.replaceSelection("",null,"cut")})}else return;if(we.clipboardData){we.clipboardData.clearData();var Oe=Ns.text.join(` `);if(we.clipboardData.setData("Text",Oe),we.clipboardData.getData("Text")==Oe){we.preventDefault();return}}var lt=vd(),Et=lt.firstChild;te.display.lineSpace.insertBefore(lt,te.display.lineSpace.firstChild),Et.value=Ns.text.join(` `);var on=document.activeElement;vn(Et),setTimeout(function(){te.display.lineSpace.removeChild(lt),on.focus(),on==ie&&ne.showPrimarySelection()},50)}}Rn(ie,"copy",me),Rn(ie,"cut",me)},qa.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},qa.prototype.prepareSelection=function(){var x=ps(this.cm,!1);return x.focus=document.activeElement==this.div,x},qa.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qa.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line=z.display.viewFrom&&yf(z,te)||{node:we[0].measure.map[2],offset:0},Oe=ie.linex.firstLine()&&(te=Qe(te.line-1,Ht(x.doc,te.line-1).length)),ie.ch==Ht(x.doc,ie.line).text.length&&ie.linez.viewTo-1)return!1;var oe,me,we;te.line==z.viewFrom||(oe=na(x,te.line))==0?(me=qn(z.view[0].line),we=z.view[0].node):(me=qn(z.view[oe].line),we=z.view[oe-1].node.nextSibling);var ke=na(x,ie.line),Oe,lt;if(ke==z.view.length-1?(Oe=z.viewTo-1,lt=z.lineDiv.lastChild):(Oe=qn(z.view[ke+1].line)-1,lt=z.view[ke+1].node.previousSibling),!we)return!1;for(var Et=x.doc.splitLines(uh(x,we,lt,me,Oe)),on=$n(x.doc,Qe(me,0),Qe(Oe,Ht(x.doc,Oe).text.length));Et.length>1&&on.length>1;)if(Ft(Et)==Ft(on))Et.pop(),on.pop(),Oe--;else if(Et[0]==on[0])Et.shift(),on.shift(),me++;else break;for(var Vt=0,Xn=0,dr=Et[0],Tr=on[0],Wr=Math.min(dr.length,Tr.length);Vtte.ch&&ni.charCodeAt(ni.length-Xn-1)==Kr.charCodeAt(Kr.length-Xn-1);)Vt--,Xn++;Et[Et.length-1]=ni.slice(0,ni.length-Xn).replace(/^\u200b+/,""),Et[0]=Et[0].slice(Vt).replace(/\u200b+$/,"");var Fi=Qe(me,Vt),Hi=Qe(Oe,on.length?Ft(on).length-Xn:0);if(Et.length>1||Et[0]||vt(Fi,Hi))return ec(x.doc,Et,Fi,Hi,"+input"),!0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},qa.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ga(this.cm,function(){return Oi(x.cm)})},qa.prototype.setUneditable=function(x){x.contentEditable="false"},qa.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||za(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},qa.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;function yf(x,z){var ne=ca(x,z.line);if(!ne||ne.hidden)return null;var te=Ht(x.doc,z.line),ie=Ba(ne,te,z.line),oe=Fr(te,x.doc.direction),me="left";if(oe){var we=ln(oe,z.ch);me=we%2?"right":"left"}var ke=ki(ie.map,z.ch,me);return ke.offset=ke.collapse=="right"?ke.end:ke.start,ke}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function cc(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var oe="",me=!1,we=x.doc.lineSeparator(),ke=!1;function Oe(Vt){return function(Xn){return Xn.id==Vt}}function lt(){me&&(oe+=we,ke&&(oe+=we),me=ke=!1)}function Et(Vt){Vt&&(lt(),oe+=Vt)}function on(Vt){if(Vt.nodeType==1){var Xn=Vt.getAttribute("cm-text");if(Xn){Et(Xn);return}var dr=Vt.getAttribute("cm-marker"),Tr;if(dr){var Wr=x.findMarks(Qe(te,0),Qe(ie+1,0),Oe(+dr));Wr.length&&(Tr=Wr[0].find(0))&&Et($n(x.doc,Tr.from,Tr.to).join(we));return}if(Vt.getAttribute("contenteditable")=="false")return;var ni=/^(pre|div|p|li|table|br)$/i.test(Vt.nodeName);if(!/^br$/i.test(Vt.nodeName)&&Vt.textContent.length==0)return;ni&<();for(var Kr=0;Kr=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Rn(ie,"paste",function(me){Wt(te,me)||md(me,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function oe(me){if(!Wt(te,me)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var we=lc(te);bl({lineWise:!0,text:we.text}),me.type=="cut"?te.setSelections(we.ranges,null,at):(ne.prevInput="",ie.value=we.text.join(` `),vn(ie))}else return;me.type=="cut"&&(te.state.cutIncoming=+new Date)}}Rn(ie,"cut",oe),Rn(ie,"copy",oe),Rn(x.scroller,"paste",function(me){if(!(Xi(x,me)||Wt(te,me))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var we=new Event("paste");we.clipboardData=me.clipboardData,ie.dispatchEvent(we)}}),Rn(x.lineSpace,"selectstart",function(me){Xi(x,me)||Pr(me)}),Rn(ie,"compositionstart",function(){var me=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:me,range:te.markText(me,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Rn(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},eo.prototype.createField=function(x){this.wrapper=vd(),this.textarea=this.wrapper.firstChild},eo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},eo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=ps(x);if(x.options.moveInputWithCursor){var ie=ha(x,ne.sel.primary().head,"div"),oe=z.wrapper.getBoundingClientRect(),me=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+me.top-oe.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+me.left-oe.left))}return te},eo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;Ct(ne.cursorDiv,x.cursors),Ct(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},eo.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&vn(this.textarea),be&&_e>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",be&&_e>=9&&(this.hasSelection=null))}},eo.prototype.getField=function(){return this.textarea},eo.prototype.supportsTouch=function(){return!1},eo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Je||At()!=this.textarea))try{this.textarea.focus()}catch(x){}},eo.prototype.blur=function(){this.textarea.blur()},eo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},eo.prototype.receivedFocus=function(){this.slowPoll()},eo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},eo.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},eo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||Mn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(be&&_e>=9&&this.hasSelection===ie||De&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var oe=ie.charCodeAt(0);if(oe==8203&&!te&&(te="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var me=0,we=Math.min(te.length,ie.length);me1e3||ie.indexOf(` `)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},eo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},eo.prototype.onKeyPress=function(){be&&_e>=9&&(this.hasSelection=null),this.fastPoll()},eo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var oe=Ao(ne,x),me=te.scroller.scrollTop;if(!oe||Te)return;var we=ne.options.resetSelectionOnContextMenu;we&&ne.doc.sel.contains(oe)==-1&&za(ne,To)(ne.doc,Ps(oe),at);var ke=ie.style.cssText,Oe=z.wrapper.style.cssText,lt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(x.clientY-lt.top-5)+"px; left: "+(x.clientX-lt.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 Et;Le&&(Et=window.scrollY),te.input.focus(),Le&&window.scrollTo(null,Et),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Vt,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function on(){if(ie.selectionStart!=null){var dr=ne.somethingSelected(),Tr="\u200B"+(dr?ie.value:"");ie.value="\u21DA",ie.value=Tr,z.prevInput=dr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Tr.length,te.selForContextMenu=ne.doc.sel}}function Vt(){if(z.contextMenuPending==Vt&&(z.contextMenuPending=!1,z.wrapper.style.cssText=Oe,ie.style.cssText=ke,be&&_e<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=me),ie.selectionStart!=null)){(!be||be&&_e<9)&&on();var dr=0,Tr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?za(ne,td)(ne):dr++<10?te.detectingSelectAll=setTimeout(Tr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Tr,200)}}if(be&&_e>=9&&on(),Ie){qr(x);var Xn=function(){li(window,"mouseup",Xn),setTimeout(Vt,20)};Rn(window,"mouseup",Xn)}else setTimeout(Vt,50)},eo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},eo.prototype.setUneditable=function(){},eo.prototype.needsContentAttribute=!1;function Hl(x,z){if(z=z?Sr(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=At();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=we.getValue()}var ie;if(x.form&&(Rn(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var oe=x.form;ie=oe.submit;try{var me=oe.submit=function(){te(),oe.submit=ie,oe.submit(),oe.submit=me}}catch(ke){}}z.finishInit=function(ke){ke.save=te,ke.getTextArea=function(){return x},ke.toTextArea=function(){ke.toTextArea=isNaN,te(),x.parentNode.removeChild(ke.getWrapperElement()),x.style.display="",x.form&&(li(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var we=ra(function(ke){return x.parentNode.insertBefore(ke,x.nextSibling)},z);return we}function uc(x){x.off=li,x.on=Rn,x.wheelEventPixels=Gu,x.Doc=Eo,x.splitLines=mt,x.countColumn=qe,x.findColumn=zn,x.isWordChar=ye,x.Pass=bn,x.signal=st,x.Line=In,x.changeEnd=Js,x.scrollbarModel=ql,x.Pos=Qe,x.cmpPos=vt,x.modes=nr,x.mimeModes=pr,x.resolveMode=it,x.getMode=_t,x.modeExtensions=Ut,x.extendMode=Ke,x.copyState=ut,x.startState=Tt,x.innerMode=Ot,x.commands=ac,x.keyMap=Qa,x.keyName=zl,x.isModifierKey=Dc,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=zt,x.SharedTextMarker=ya,x.TextMarker=hl,x.LineWidget=nc,x.e_preventDefault=Pr,x.e_stopPropagation=Ur,x.e_stop=qr,x.addClass=xn,x.contains=Rt,x.rmClass=Ve,x.keyNames=Os}oh(ra),yd(ra);var ol="iter insert remove copy getEditor constructor".split(" ");for(var _s in Eo.prototype)Eo.prototype.hasOwnProperty(_s)&&$t(ol,_s)<0&&(ra.prototype[_s]=function(x){return function(){return x.apply(this.doc,arguments)}}(Eo.prototype[_s]));return gr(Eo),ra.inputStyles={textarea:eo,contenteditable:qa},ra.defineMode=function(x){!ra.defaults.mode&&x!="null"&&(ra.defaults.mode=x),Kn.apply(this,arguments)},ra.defineMIME=Ue,ra.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),ra.defineMIME("text/plain","null"),ra.defineExtension=function(x,z){ra.prototype[x]=z},ra.defineDocExtension=function(x,z){Eo.prototype[x]=z},ra.fromTextArea=Hl,uc(ra),ra.version="5.58.2",ra})},49047:function(Ln,qt,ce){(function(fe){fe(ce(4631),ce(29589),ce(52539))})(function(fe){"use strict";fe.defineMode("markdown",function(tt,Fe){var Ye=fe.getMode(tt,"text/html"),be=Ye.name=="null";function _e(qe){if(fe.findModeByName){var Ae=fe.findModeByName(qe);Ae&&(qe=Ae.mime||Ae.mimes[0])}var $t=fe.getMode(tt,qe);return $t.name=="null"?null:$t}Fe.highlightFormatting===void 0&&(Fe.highlightFormatting=!1),Fe.maxBlockquoteDepth===void 0&&(Fe.maxBlockquoteDepth=0),Fe.taskLists===void 0&&(Fe.taskLists=!1),Fe.strikethrough===void 0&&(Fe.strikethrough=!1),Fe.emoji===void 0&&(Fe.emoji=!1),Fe.fencedCodeBlockHighlighting===void 0&&(Fe.fencedCodeBlockHighlighting=!0),Fe.fencedCodeBlockDefaultMode===void 0&&(Fe.fencedCodeBlockDefaultMode="text/plain"),Fe.xml===void 0&&(Fe.xml=!0),Fe.tokenTypeOverrides===void 0&&(Fe.tokenTypeOverrides={});var Le={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Se in Le)Le.hasOwnProperty(Se)&&Fe.tokenTypeOverrides[Se]&&(Le[Se]=Fe.tokenTypeOverrides[Se]);var pe=/^([*\-_])(?:\s*\1){2,}\s*$/,Te=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,gt=/^\[(x| )\](?=\s)/i,ze=Fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Pt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,kt=/^[^#!\[\]*_\\<>` "'(~:]+/,pt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Je=/^\s*\[[^\]]+?\]:.*$/,De=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Dt=" ";function Yt(qe,Ae,$t){return Ae.f=Ae.inline=$t,$t(qe,Ae)}function nt(qe,Ae,$t){return Ae.f=Ae.block=$t,$t(qe,Ae)}function ct(qe){return!qe||!/\S/.test(qe.string)}function Ie(qe){if(qe.linkTitle=!1,qe.linkHref=!1,qe.linkText=!1,qe.em=!1,qe.strong=!1,qe.strikethrough=!1,qe.quote=0,qe.indentedCode=!1,qe.f==Ve){var Ae=be;if(!Ae){var $t=fe.innerMode(Ye,qe.htmlState);Ae=$t.mode.name=="xml"&&$t.state.tagStart===null&&!$t.state.context&&$t.state.tokenize.isInText}Ae&&(qe.f=Mt,qe.block=Me,qe.htmlState=null)}return qe.trailingSpace=0,qe.trailingSpaceNewLine=!1,qe.prevLine=qe.thisLine,qe.thisLine={stream:null},null}function Me(qe,Ae){var $t=qe.column()===Ae.indentation,Hn=ct(Ae.prevLine.stream),bn=Ae.indentedCode,at=Ae.prevLine.hr,ft=Ae.list!==!1,Gt=(Ae.listStack[Ae.listStack.length-1]||0)+3;Ae.indentedCode=!1;var zn=Ae.indentation;if(Ae.indentationDiff===null&&(Ae.indentationDiff=Ae.indentation,ft)){for(Ae.list=null;zn=4&&(bn||Ae.prevLine.fencedCodeEnd||Ae.prevLine.header||Hn))return qe.skipToEnd(),Ae.indentedCode=!0,Le.code;if(qe.eatSpace())return null;if($t&&Ae.indentation<=Gt&&(Ft=qe.match(ze))&&Ft[1].length<=6)return Ae.quote=0,Ae.header=Ft[1].length,Ae.thisLine.header=!0,Fe.highlightFormatting&&(Ae.formatting="header"),Ae.f=Ae.inline,Ct(Ae);if(Ae.indentation<=Gt&&qe.eat(">"))return Ae.quote=$t?1:Ae.quote+1,Fe.highlightFormatting&&(Ae.formatting="quote"),qe.eatSpace(),Ct(Ae);if(!nn&&!Ae.setext&&$t&&Ae.indentation<=Gt&&(Ft=qe.match(Te))){var Pn=Ft[1]?"ol":"ul";return Ae.indentation=zn+qe.current().length,Ae.list=!0,Ae.quote=0,Ae.listStack.push(Ae.indentation),Ae.em=!1,Ae.strong=!1,Ae.code=!1,Ae.strikethrough=!1,Fe.taskLists&&qe.match(gt,!1)&&(Ae.taskList=!0),Ae.f=Ae.inline,Fe.highlightFormatting&&(Ae.formatting=["list","list-"+Pn]),Ct(Ae)}else{if($t&&Ae.indentation<=Gt&&(Ft=qe.match(pt,!0)))return Ae.quote=0,Ae.fencedEndRE=new RegExp(Ft[1]+"+ *$"),Ae.localMode=Fe.fencedCodeBlockHighlighting&&_e(Ft[2]||Fe.fencedCodeBlockDefaultMode),Ae.localMode&&(Ae.localState=fe.startState(Ae.localMode)),Ae.f=Ae.block=Xe,Fe.highlightFormatting&&(Ae.formatting="code-block"),Ae.code=-1,Ct(Ae);if(Ae.setext||(!mn||!ft)&&!Ae.quote&&Ae.list===!1&&!Ae.code&&!nn&&!Je.test(qe.string)&&(Ft=qe.lookAhead(1))&&(Ft=Ft.match(Pt)))return Ae.setext?(Ae.header=Ae.setext,Ae.setext=0,qe.skipToEnd(),Fe.highlightFormatting&&(Ae.formatting="header")):(Ae.header=Ft[0].charAt(0)=="="?1:2,Ae.setext=Ae.header),Ae.thisLine.header=!0,Ae.f=Ae.inline,Ct(Ae);if(nn)return qe.skipToEnd(),Ae.hr=!0,Ae.thisLine.hr=!0,Le.hr;if(qe.peek()==="[")return Yt(qe,Ae,jt)}return Yt(qe,Ae,Ae.inline)}function Ve(qe,Ae){var $t=Ye.token(qe,Ae.htmlState);if(!be){var Hn=fe.innerMode(Ye,Ae.htmlState);(Hn.mode.name=="xml"&&Hn.state.tagStart===null&&!Hn.state.context&&Hn.state.tokenize.isInText||Ae.md_inside&&qe.current().indexOf(">")>-1)&&(Ae.f=Mt,Ae.block=Me,Ae.htmlState=null)}return $t}function Xe(qe,Ae){var $t=Ae.listStack[Ae.listStack.length-1]||0,Hn=Ae.indentation<$t,bn=$t+3;if(Ae.fencedEndRE&&Ae.indentation<=bn&&(Hn||qe.match(Ae.fencedEndRE))){Fe.highlightFormatting&&(Ae.formatting="code-block");var at;return Hn||(at=Ct(Ae)),Ae.localMode=Ae.localState=null,Ae.block=Me,Ae.f=Mt,Ae.fencedEndRE=null,Ae.code=0,Ae.thisLine.fencedCodeEnd=!0,Hn?nt(qe,Ae,Ae.block):at}else return Ae.localMode?Ae.localMode.token(qe,Ae.localState):(qe.skipToEnd(),Le.code)}function Ct(qe){var Ae=[];if(qe.formatting){Ae.push(Le.formatting),typeof qe.formatting=="string"&&(qe.formatting=[qe.formatting]);for(var $t=0;$t=qe.quote?Ae.push(Le.formatting+"-"+qe.formatting[$t]+"-"+qe.quote):Ae.push("error"))}if(qe.taskOpen)return Ae.push("meta"),Ae.length?Ae.join(" "):null;if(qe.taskClosed)return Ae.push("property"),Ae.length?Ae.join(" "):null;if(qe.linkHref?Ae.push(Le.linkHref,"url"):(qe.strong&&Ae.push(Le.strong),qe.em&&Ae.push(Le.em),qe.strikethrough&&Ae.push(Le.strikethrough),qe.emoji&&Ae.push(Le.emoji),qe.linkText&&Ae.push(Le.linkText),qe.code&&Ae.push(Le.code),qe.image&&Ae.push(Le.image),qe.imageAltText&&Ae.push(Le.imageAltText,"link"),qe.imageMarker&&Ae.push(Le.imageMarker)),qe.header&&Ae.push(Le.header,Le.header+"-"+qe.header),qe.quote&&(Ae.push(Le.quote),!Fe.maxBlockquoteDepth||Fe.maxBlockquoteDepth>=qe.quote?Ae.push(Le.quote+"-"+qe.quote):Ae.push(Le.quote+"-"+Fe.maxBlockquoteDepth)),qe.list!==!1){var Hn=(qe.listStack.length-1)%3;Hn?Hn===1?Ae.push(Le.list2):Ae.push(Le.list3):Ae.push(Le.list1)}return qe.trailingSpaceNewLine?Ae.push("trailing-space-new-line"):qe.trailingSpace&&Ae.push("trailing-space-"+(qe.trailingSpace%2?"a":"b")),Ae.length?Ae.join(" "):null}function wt(qe,Ae){if(qe.match(kt,!0))return Ct(Ae)}function Mt(qe,Ae){var $t=Ae.text(qe,Ae);if(typeof $t!="undefined")return $t;if(Ae.list)return Ae.list=null,Ct(Ae);if(Ae.taskList){var Hn=qe.match(gt,!0)[1]===" ";return Hn?Ae.taskOpen=!0:Ae.taskClosed=!0,Fe.highlightFormatting&&(Ae.formatting="task"),Ae.taskList=!1,Ct(Ae)}if(Ae.taskOpen=!1,Ae.taskClosed=!1,Ae.header&&qe.match(/^#+$/,!0))return Fe.highlightFormatting&&(Ae.formatting="header"),Ct(Ae);var bn=qe.next();if(Ae.linkTitle){Ae.linkTitle=!1;var at=bn;bn==="("&&(at=")"),at=(at+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ft="^\\s*(?:[^"+at+"\\\\]+|\\\\\\\\|\\\\.)"+at;if(qe.match(new RegExp(ft),!0))return Le.linkHref}if(bn==="`"){var Gt=Ae.formatting;Fe.highlightFormatting&&(Ae.formatting="code"),qe.eatWhile("`");var zn=qe.current().length;if(Ae.code==0&&(!Ae.quote||zn==1))return Ae.code=zn,Ct(Ae);if(zn==Ae.code){var mn=Ct(Ae);return Ae.code=0,mn}else return Ae.formatting=Gt,Ct(Ae)}else if(Ae.code)return Ct(Ae);if(bn==="\\"&&(qe.next(),Fe.highlightFormatting)){var nn=Ct(Ae),Ft=Le.formatting+"-escape";return nn?nn+" "+Ft:Ft}if(bn==="!"&&qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ae.imageMarker=!0,Ae.image=!0,Fe.highlightFormatting&&(Ae.formatting="image"),Ct(Ae);if(bn==="["&&Ae.imageMarker&&qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ae.imageMarker=!1,Ae.imageAltText=!0,Fe.highlightFormatting&&(Ae.formatting="image"),Ct(Ae);if(bn==="]"&&Ae.imageAltText){Fe.highlightFormatting&&(Ae.formatting="image");var nn=Ct(Ae);return Ae.imageAltText=!1,Ae.image=!1,Ae.inline=Ae.f=Rt,nn}if(bn==="["&&!Ae.image)return Ae.linkText&&qe.match(/^.*?\]/)||(Ae.linkText=!0,Fe.highlightFormatting&&(Ae.formatting="link")),Ct(Ae);if(bn==="]"&&Ae.linkText){Fe.highlightFormatting&&(Ae.formatting="link");var nn=Ct(Ae);return Ae.linkText=!1,Ae.inline=Ae.f=qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Rt:Mt,nn}if(bn==="<"&&qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ae.f=Ae.inline=je,Fe.highlightFormatting&&(Ae.formatting="link");var nn=Ct(Ae);return nn?nn+=" ":nn="",nn+Le.linkInline}if(bn==="<"&&qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ae.f=Ae.inline=je,Fe.highlightFormatting&&(Ae.formatting="link");var nn=Ct(Ae);return nn?nn+=" ":nn="",nn+Le.linkEmail}if(Fe.xml&&bn==="<"&&qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Pn=qe.string.indexOf(">",qe.pos);if(Pn!=-1){var _n=qe.string.substring(qe.start,Pn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(_n)&&(Ae.md_inside=!0)}return qe.backUp(1),Ae.htmlState=fe.startState(Ye),nt(qe,Ae,Ve)}if(Fe.xml&&bn==="<"&&qe.match(/^\/\w*?>/))return Ae.md_inside=!1,"tag";if(bn==="*"||bn==="_"){for(var Ee=1,ue=qe.pos==1?" ":qe.string.charAt(qe.pos-2);Ee<3&&qe.eat(bn);)Ee++;var se=qe.peek()||" ",ye=!/\s/.test(se)&&(!De.test(se)||/\s/.test(ue)||De.test(ue)),ve=!/\s/.test(ue)&&(!De.test(ue)||/\s/.test(se)||De.test(se)),le=null,We=null;if(Ee%2&&(!Ae.em&&ye&&(bn==="*"||!ve||De.test(ue))?le=!0:Ae.em==bn&&ve&&(bn==="*"||!ye||De.test(se))&&(le=!1)),Ee>1&&(!Ae.strong&&ye&&(bn==="*"||!ve||De.test(ue))?We=!0:Ae.strong==bn&&ve&&(bn==="*"||!ye||De.test(se))&&(We=!1)),We!=null||le!=null){Fe.highlightFormatting&&(Ae.formatting=le==null?"strong":We==null?"em":"strong em"),le===!0&&(Ae.em=bn),We===!0&&(Ae.strong=bn);var mn=Ct(Ae);return le===!1&&(Ae.em=!1),We===!1&&(Ae.strong=!1),mn}}else if(bn===" "&&(qe.eat("*")||qe.eat("_"))){if(qe.peek()===" ")return Ct(Ae);qe.backUp(1)}if(Fe.strikethrough){if(bn==="~"&&qe.eatWhile(bn)){if(Ae.strikethrough){Fe.highlightFormatting&&(Ae.formatting="strikethrough");var mn=Ct(Ae);return Ae.strikethrough=!1,mn}else if(qe.match(/^[^\s]/,!1))return Ae.strikethrough=!0,Fe.highlightFormatting&&(Ae.formatting="strikethrough"),Ct(Ae)}else if(bn===" "&&qe.match(/^~~/,!0)){if(qe.peek()===" ")return Ct(Ae);qe.backUp(2)}}if(Fe.emoji&&bn===":"&&qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ae.emoji=!0,Fe.highlightFormatting&&(Ae.formatting="emoji");var Lt=Ct(Ae);return Ae.emoji=!1,Lt}return bn===" "&&(qe.match(/^ +$/,!1)?Ae.trailingSpace++:Ae.trailingSpace&&(Ae.trailingSpaceNewLine=!0)),Ct(Ae)}function je(qe,Ae){var $t=qe.next();if($t===">"){Ae.f=Ae.inline=Mt,Fe.highlightFormatting&&(Ae.formatting="link");var Hn=Ct(Ae);return Hn?Hn+=" ":Hn="",Hn+Le.linkInline}return qe.match(/^[^>]+/,!0),Le.linkInline}function Rt(qe,Ae){if(qe.eatSpace())return null;var $t=qe.next();return $t==="("||$t==="["?(Ae.f=Ae.inline=xn($t==="("?")":"]"),Fe.highlightFormatting&&(Ae.formatting="link-string"),Ae.linkHref=!0,Ct(Ae)):"error"}var At={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function xn(qe){return function(Ae,$t){var Hn=Ae.next();if(Hn===qe){$t.f=$t.inline=Mt,Fe.highlightFormatting&&($t.formatting="link-string");var bn=Ct($t);return $t.linkHref=!1,bn}return Ae.match(At[qe]),$t.linkHref=!0,Ct($t)}}function jt(qe,Ae){return qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ae.f=vn,qe.next(),Fe.highlightFormatting&&(Ae.formatting="link"),Ae.linkText=!0,Ct(Ae)):Yt(qe,Ae,Mt)}function vn(qe,Ae){if(qe.match(/^\]:/,!0)){Ae.f=Ae.inline=er,Fe.highlightFormatting&&(Ae.formatting="link");var $t=Ct(Ae);return Ae.linkText=!1,$t}return qe.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function er(qe,Ae){return qe.eatSpace()?null:(qe.match(/^[^\s]+/,!0),qe.peek()===void 0?Ae.linkTitle=!0:qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ae.f=Ae.inline=Mt,Le.linkHref+" url")}var Sr={startState:function(){return{f:Me,prevLine:{stream:null},thisLine:{stream:null},block:Me,htmlState:null,indentation:0,inline:Mt,text:wt,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(qe){return{f:qe.f,prevLine:qe.prevLine,thisLine:qe.thisLine,block:qe.block,htmlState:qe.htmlState&&fe.copyState(Ye,qe.htmlState),indentation:qe.indentation,localMode:qe.localMode,localState:qe.localMode?fe.copyState(qe.localMode,qe.localState):null,inline:qe.inline,text:qe.text,formatting:!1,linkText:qe.linkText,linkTitle:qe.linkTitle,linkHref:qe.linkHref,code:qe.code,em:qe.em,strong:qe.strong,strikethrough:qe.strikethrough,emoji:qe.emoji,header:qe.header,setext:qe.setext,hr:qe.hr,taskList:qe.taskList,list:qe.list,listStack:qe.listStack.slice(0),quote:qe.quote,indentedCode:qe.indentedCode,trailingSpace:qe.trailingSpace,trailingSpaceNewLine:qe.trailingSpaceNewLine,md_inside:qe.md_inside,fencedEndRE:qe.fencedEndRE}},token:function(qe,Ae){if(Ae.formatting=!1,qe!=Ae.thisLine.stream){if(Ae.header=0,Ae.hr=!1,qe.match(/^\s*$/,!0))return Ie(Ae),null;if(Ae.prevLine=Ae.thisLine,Ae.thisLine={stream:qe},Ae.taskList=!1,Ae.trailingSpace=0,Ae.trailingSpaceNewLine=!1,!Ae.localState&&(Ae.f=Ae.block,Ae.f!=Ve)){var $t=qe.match(/^\s*/,!0)[0].replace(/\t/g,Dt).length;if(Ae.indentation=$t,Ae.indentationDiff=null,$t>0)return null}}return Ae.f(qe,Ae)},innerMode:function(qe){return qe.block==Ve?{state:qe.htmlState,mode:Ye}:qe.localState?{state:qe.localState,mode:qe.localMode}:{state:qe,mode:Sr}},indent:function(qe,Ae,$t){return qe.block==Ve&&Ye.indent?Ye.indent(qe.htmlState,Ae,$t):qe.localState&&qe.localMode.indent?qe.localMode.indent(qe.localState,Ae,$t):fe.Pass},blankLine:Ie,getType:Ct,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Sr},"xml"),fe.defineMIME("text/markdown","markdown"),fe.defineMIME("text/x-markdown","markdown")})},52539:function(Ln,qt,ce){(function(fe){fe(ce(4631))})(function(fe){"use strict";fe.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 tt=0;tt-1&&Ye.substring(Le+1,Ye.length);if(Se)return fe.findModeByExtension(Se)},fe.findModeByName=function(Ye){Ye=Ye.toLowerCase();for(var be=0;be0?kt.cmdState[kt.cmdState.length-1]:null}function _e(kt){var pt=kt.cmdState.pop();pt&&pt.closeBracket()}function Le(kt){for(var pt=kt.cmdState,Je=pt.length-1;Je>=0;Je--){var De=pt[Je];if(De.name!="DEFAULT")return De}return{styleIdentifier:function(){return null}}}function Se(kt,pt,Je){return function(){this.name=kt,this.bracketNo=0,this.style=pt,this.styles=Je,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var pe={};pe.importmodule=Se("importmodule","tag",["string","builtin"]),pe.documentclass=Se("documentclass","tag",["","atom"]),pe.usepackage=Se("usepackage","tag",["atom"]),pe.begin=Se("begin","tag",["atom"]),pe.end=Se("end","tag",["atom"]),pe.label=Se("label","tag",["atom"]),pe.ref=Se("ref","tag",["atom"]),pe.eqref=Se("eqref","tag",["atom"]),pe.cite=Se("cite","tag",["atom"]),pe.bibitem=Se("bibitem","tag",["atom"]),pe.Bibitem=Se("Bibitem","tag",["atom"]),pe.RBibitem=Se("RBibitem","tag",["atom"]),pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Te(kt,pt){kt.f=pt}function gt(kt,pt){var Je;if(kt.match(/^\\[a-zA-Z@]+/)){var De=kt.current().slice(1);return Je=pe.hasOwnProperty(De)?pe[De]:pe.DEFAULT,Je=new Je,Ye(pt,Je),Te(pt,Pt),Je.style}if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/\\]/))return"tag";if(kt.match("\\["))return Te(pt,function(Yt,nt){return ze(Yt,nt,"\\]")}),"keyword";if(kt.match("\\("))return Te(pt,function(Yt,nt){return ze(Yt,nt,"\\)")}),"keyword";if(kt.match("$$"))return Te(pt,function(Yt,nt){return ze(Yt,nt,"$$")}),"keyword";if(kt.match("$"))return Te(pt,function(Yt,nt){return ze(Yt,nt,"$")}),"keyword";var Dt=kt.next();if(Dt=="%")return kt.skipToEnd(),"comment";if(Dt=="}"||Dt=="]"){if(Je=be(pt),Je)Je.closeBracket(Dt),Te(pt,Pt);else return"error";return"bracket"}else return Dt=="{"||Dt=="["?(Je=pe.DEFAULT,Je=new Je,Ye(pt,Je),"bracket"):/\d/.test(Dt)?(kt.eatWhile(/[\w.%]/),"atom"):(kt.eatWhile(/[\w\-_]/),Je=Le(pt),Je.name=="begin"&&(Je.argument=kt.current()),Je.styleIdentifier())}function ze(kt,pt,Je){if(kt.eatSpace())return null;if(Je&&kt.match(Je))return Te(pt,gt),"keyword";if(kt.match(/^\\[a-zA-Z@]+/))return"tag";if(kt.match(/^[a-zA-Z]+/))return"variable-2";if(kt.match(/^\\[$&%#{}_]/)||kt.match(/^\\[,;!\/]/)||kt.match(/^[\^_&]/))return"tag";if(kt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(kt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var De=kt.next();return De=="{"||De=="}"||De=="["||De=="]"||De=="("||De==")"?"bracket":De=="%"?(kt.skipToEnd(),"comment"):"error"}function Pt(kt,pt){var Je=kt.peek(),De;return Je=="{"||Je=="["?(De=be(pt),De.openBracket(Je),kt.eat(Je),Te(pt,gt),"bracket"):/[ \t\r]/.test(Je)?(kt.eat(Je),null):(Te(pt,gt),_e(pt),gt(kt,pt))}return{startState:function(){var kt=Fe.inMathMode?function(pt,Je){return ze(pt,Je)}:gt;return{cmdState:[],f:kt}},copyState:function(kt){return{cmdState:kt.cmdState.slice(),f:kt.f}},token:function(kt,pt){return pt.f(kt,pt)},blankLine:function(kt){kt.f=gt,kt.cmdState.length=0},lineComment:"%"}}),fe.defineMIME("text/x-stex","stex"),fe.defineMIME("text/x-latex","stex")})},29589:function(Ln,qt,ce){(function(fe){fe(ce(4631))})(function(fe){"use strict";var tt={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},Fe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};fe.defineMode("xml",function(Ye,be){var _e=Ye.indentUnit,Le={},Se=be.htmlMode?tt:Fe;for(var pe in Se)Le[pe]=Se[pe];for(var pe in be)Le[pe]=be[pe];var Te,gt;function ze(je,Rt){function At(vn){return Rt.tokenize=vn,vn(je,Rt)}var xn=je.next();if(xn=="<")return je.eat("!")?je.eat("[")?je.match("CDATA[")?At(pt("atom","]]>")):null:je.match("--")?At(pt("comment","-->")):je.match("DOCTYPE",!0,!0)?(je.eatWhile(/[\w\._\-]/),At(Je(1))):null:je.eat("?")?(je.eatWhile(/[\w\._\-]/),Rt.tokenize=pt("meta","?>"),"meta"):(Te=je.eat("/")?"closeTag":"openTag",Rt.tokenize=Pt,"tag bracket");if(xn=="&"){var jt;return je.eat("#")?je.eat("x")?jt=je.eatWhile(/[a-fA-F\d]/)&&je.eat(";"):jt=je.eatWhile(/[\d]/)&&je.eat(";"):jt=je.eatWhile(/[\w\.\-:]/)&&je.eat(";"),jt?"atom":"error"}else return je.eatWhile(/[^&<]/),null}ze.isInText=!0;function Pt(je,Rt){var At=je.next();if(At==">"||At=="/"&&je.eat(">"))return Rt.tokenize=ze,Te=At==">"?"endTag":"selfcloseTag","tag bracket";if(At=="=")return Te="equals",null;if(At=="<"){Rt.tokenize=ze,Rt.state=nt,Rt.tagName=Rt.tagStart=null;var xn=Rt.tokenize(je,Rt);return xn?xn+" tag error":"tag error"}else return/[\'\"]/.test(At)?(Rt.tokenize=kt(At),Rt.stringStartCol=je.column(),Rt.tokenize(je,Rt)):(je.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function kt(je){var Rt=function(At,xn){for(;!At.eol();)if(At.next()==je){xn.tokenize=Pt;break}return"string"};return Rt.isInAttribute=!0,Rt}function pt(je,Rt){return function(At,xn){for(;!At.eol();){if(At.match(Rt)){xn.tokenize=ze;break}At.next()}return je}}function Je(je){return function(Rt,At){for(var xn;(xn=Rt.next())!=null;){if(xn=="<")return At.tokenize=Je(je+1),At.tokenize(Rt,At);if(xn==">")if(je==1){At.tokenize=ze;break}else return At.tokenize=Je(je-1),At.tokenize(Rt,At)}return"meta"}}function De(je,Rt,At){this.prev=je.context,this.tagName=Rt,this.indent=je.indented,this.startOfLine=At,(Le.doNotIndent.hasOwnProperty(Rt)||je.context&&je.context.noIndent)&&(this.noIndent=!0)}function Dt(je){je.context&&(je.context=je.context.prev)}function Yt(je,Rt){for(var At;;){if(!je.context||(At=je.context.tagName,!Le.contextGrabbers.hasOwnProperty(At)||!Le.contextGrabbers[At].hasOwnProperty(Rt)))return;Dt(je)}}function nt(je,Rt,At){return je=="openTag"?(At.tagStart=Rt.column(),ct):je=="closeTag"?Ie:nt}function ct(je,Rt,At){return je=="word"?(At.tagName=Rt.current(),gt="tag",Xe):Le.allowMissingTagName&&je=="endTag"?(gt="tag bracket",Xe(je,Rt,At)):(gt="error",ct)}function Ie(je,Rt,At){if(je=="word"){var xn=Rt.current();return At.context&&At.context.tagName!=xn&&Le.implicitlyClosed.hasOwnProperty(At.context.tagName)&&Dt(At),At.context&&At.context.tagName==xn||Le.matchClosing===!1?(gt="tag",Me):(gt="tag error",Ve)}else return Le.allowMissingTagName&&je=="endTag"?(gt="tag bracket",Me(je,Rt,At)):(gt="error",Ve)}function Me(je,Rt,At){return je!="endTag"?(gt="error",Me):(Dt(At),nt)}function Ve(je,Rt,At){return gt="error",Me(je,Rt,At)}function Xe(je,Rt,At){if(je=="word")return gt="attribute",Ct;if(je=="endTag"||je=="selfcloseTag"){var xn=At.tagName,jt=At.tagStart;return At.tagName=At.tagStart=null,je=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(xn)?Yt(At,xn):(Yt(At,xn),At.context=new De(At,xn,jt==At.indented)),nt}return gt="error",Xe}function Ct(je,Rt,At){return je=="equals"?wt:(Le.allowMissing||(gt="error"),Xe(je,Rt,At))}function wt(je,Rt,At){return je=="string"?Mt:je=="word"&&Le.allowUnquoted?(gt="string",Xe):(gt="error",Xe(je,Rt,At))}function Mt(je,Rt,At){return je=="string"?Mt:Xe(je,Rt,At)}return{startState:function(je){var Rt={tokenize:ze,state:nt,indented:je||0,tagName:null,tagStart:null,context:null};return je!=null&&(Rt.baseIndent=je),Rt},token:function(je,Rt){if(!Rt.tagName&&je.sol()&&(Rt.indented=je.indentation()),je.eatSpace())return null;Te=null;var At=Rt.tokenize(je,Rt);return(At||Te)&&At!="comment"&&(gt=null,Rt.state=Rt.state(Te||At,je,Rt),gt&&(At=gt=="error"?At+" error":gt)),At},indent:function(je,Rt,At){var xn=je.context;if(je.tokenize.isInAttribute)return je.tagStart==je.indented?je.stringStartCol+1:je.indented+_e;if(xn&&xn.noIndent)return fe.Pass;if(je.tokenize!=Pt&&je.tokenize!=ze)return At?At.match(/^(\s*)/)[0].length:0;if(je.tagName)return Le.multilineTagIndentPastTag!==!1?je.tagStart+je.tagName.length+2:je.tagStart+_e*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/$/,blockCommentStart:"",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function(je){je.state==wt&&(je.state=Xe)},xmlCurrentTag:function(je){return je.tagName?{name:je.tagName,close:je.type=="closeTag"}:null},xmlCurrentContext:function(je){for(var Rt=[],At=je.context;At;At=At.prev)At.tagName&&Rt.push(At.tagName);return Rt.reverse()}}}),fe.defineMIME("text/xml","xml"),fe.defineMIME("application/xml","xml"),fe.mimeModes.hasOwnProperty("text/html")||fe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(Ln,qt,ce){"use strict";ce.d(qt,{hP:function(){return _n}});var fe=function(Ee,ue){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ye){se.__proto__=ye}||function(se,ye){for(var ve in ye)Object.prototype.hasOwnProperty.call(ye,ve)&&(se[ve]=ye[ve])})(Ee,ue)};function tt(Ee,ue){function se(){this.constructor=Ee}fe(Ee,ue),Ee.prototype=ue===null?Object.create(ue):(se.prototype=ue.prototype,new se)}function Fe(Ee,ue,se,ye){return new(se||(se=Promise))(function(ve,le){function We(hn){try{tn(ye.next(hn))}catch(sn){le(sn)}}function Lt(hn){try{tn(ye.throw(hn))}catch(sn){le(sn)}}function tn(hn){var sn;hn.done?ve(hn.value):(sn=hn.value,sn instanceof se?sn:new se(function(yn){yn(sn)})).then(We,Lt)}tn((ye=ye.apply(Ee,ue||[])).next())})}function Ye(Ee,ue){var se,ye,ve,le,We={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return le={next:Lt(0),throw:Lt(1),return:Lt(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Lt(tn){return function(hn){return function(sn){if(se)throw new TypeError("Generator is already executing.");for(;We;)try{if(se=1,ye&&(ve=2&sn[0]?ye.return:sn[0]?ye.throw||((ve=ye.return)&&ve.call(ye),0):ye.next)&&!(ve=ve.call(ye,sn[1])).done)return ve;switch(ye=0,ve&&(sn=[2&sn[0],ve.value]),sn[0]){case 0:case 1:ve=sn;break;case 4:return We.label++,{value:sn[1],done:!1};case 5:We.label++,ye=sn[1],sn=[0];continue;case 7:sn=We.ops.pop(),We.trys.pop();continue;default:if(ve=We.trys,!((ve=ve.length>0&&ve[ve.length-1])||sn[0]!==6&&sn[0]!==2)){We=0;continue}if(sn[0]===3&&(!ve||sn[1]>ve[0]&&sn[1]',"select"),this.addActionButton(ye,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ye,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ye,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ye,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ye,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ye,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ye,'',"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(le){var We=document.createElement("div");We.className=""+se.toolbarButtonStyleClass.name,We.setAttribute("data-type-name",le.typeName),We.innerHTML=le.icon,We.addEventListener("click",function(){se.markerToolbarButtonClicked(We,le)}),se.buttons.push(We),se.markerButtons.push(We)}),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 ve=document.createElement("div");ve.className=this.toolbarBlockStyleClass.name,ve.style.whiteSpace="nowrap",ve.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ve),this.addActionButton(ve,'',"render"),this.addActionButton(ve,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ee.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},Ee.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},Ee.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ee.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var se=0;se0&&this.buttonClickListeners.forEach(function(ye){return ye("marker",se)}),this.markerButtonOverflowBlock.style.display="none"},Ee.prototype.actionToolbarButtonClicked=function(ue,se){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("action",se)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ee.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ee.prototype.setActiveMarkerButton=function(ue){var se=this.markerButtons.find(function(ye){return ye.getAttribute("data-type-name")===ue});se&&this.setActiveButton(se)},Ee.prototype.setCurrentMarker=function(ue){var se=this;this.currentMarker=ue,this.buttons.filter(function(ye){return/delete|notes/.test(ye.getAttribute("data-action"))}).forEach(function(ye){se.currentMarker===void 0?(ye.style.fillOpacity="0.4",ye.style.pointerEvents="none"):(ye.style.fillOpacity="1",ye.style.pointerEvents="all")})},Ee}(),kt=function(){function Ee(ue,se,ye,ve){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=se,this.uiStyleSettings=ye,this.styles=ve,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ee.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new ze("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 ze("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var se=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ze("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ze("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ze("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 ze("toolbox-panel-row_colors",` background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new ze("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px; padding: `+se+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ze("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ze("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new gt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new gt("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Ee.prototype.show=function(ue){var se;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((se=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ee.prototype.setPanelButtons=function(ue){var se,ye,ve=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((se=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var We;le.uiStyleSettings=ve.uiStyleSettings;var Lt=document.createElement("div");Lt.className=ve.toolboxButtonStyleClass.name+" "+((We=ve.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:ve.toolboxButtonStyleColorsClass.name),Lt.innerHTML=le.icon,Lt.title=le.title,Lt.addEventListener("click",function(){ve.panelButtonClick(le)}),ve.panelButtons.push(Lt),ve.buttonRow.appendChild(Lt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ee.prototype.panelButtonClick=function(ue){var se=this,ye=-1;if(ue!==this.activePanel){ye=this.panels.indexOf(ue),this.panelRow.innerHTML="";var ve=ue.getUi();ve.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ve),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=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){se.displayMode==="inline"?se.panelRow.style.display="none":se.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,We){var Lt,tn;le.className=se.toolboxButtonStyleClass.name+" "+(We===ye?""+((Lt=se.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Lt!==void 0?Lt:se.toolboxActiveButtonStyleColorsClass.name):""+((tn=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tn!==void 0?tn:se.toolboxButtonStyleColorsClass.name))})},Ee}(),pt=function(Ee,ue){this.title=Ee,this.icon=ue},Je=function(Ee){function ue(se,ye,ve,le){var We=Ee.call(this,se,le||'')||this;return We.colors=[],We.addTransparent=!1,We.colorBoxes=[],We.colors=ye,We.currentColor=ve,We.setCurrentColor=We.setCurrentColor.bind(We),We.getColorBox=We.getColorBox.bind(We),We}return tt(ue,Ee),ue.prototype.getUi=function(){var se=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.whiteSpace="nowrap",this.colors.forEach(function(ve){var le=se.getColorBox(ve);ye.appendChild(le),se.colorBoxes.push(le)}),ye},ue.prototype.getColorBox=function(se){var ye=this,ve=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-ve,We=document.createElement("div");We.style.display="inline-block",We.style.boxSizing="content-box",We.style.width=le-2+"px",We.style.height=le-2+"px",We.style.padding="1px",We.style.marginRight="2px",We.style.marginBottom="2px",We.style.borderWidth="2px",We.style.borderStyle="solid",We.style.borderRadius=(le+2)/2+"px",We.style.borderColor=se===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){ye.setCurrentColor(se,We)});var Lt=document.createElement("div");return Lt.style.display="inline-block",Lt.style.width=le-2+"px",Lt.style.height=le-2+"px",Lt.style.backgroundColor=se,Lt.style.borderRadius=le/2+"px",se==="transparent"&&(Lt.style.fill=this.uiStyleSettings.toolboxAccentColor,Lt.innerHTML=` `),We.appendChild(Lt),We},ue.prototype.setCurrentColor=function(se,ye){var ve=this;this.currentColor=se,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ye?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(se)},ue}(pt),De=function(){function Ee(ue,se,ye){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=se,this.globalSettings=ye,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ee.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ee.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(Ee.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ee.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ee.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ee.prototype.pointerDown=function(ue,se){},Ee.prototype.dblClick=function(ue,se){},Ee.prototype.manipulate=function(ue){},Ee.prototype.pointerUp=function(ue){this.stateChanged()},Ee.prototype.dispose=function(){},Ee.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},Ee.prototype.getState=function(){return{typeName:Ee.typeName,state:this.state,notes:this.notes}},Ee.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},Ee.prototype.scale=function(ue,se){},Ee.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},Ee.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},Ee.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},Ee.typeName="MarkerBase",Ee}(),Dt=function(){function Ee(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ee.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},Ee}(),Yt=function(){function Ee(){this.GRIP_SIZE=10,this.visual=_e.createGroup(),this.visual.appendChild(_e.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_e.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ee.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},Ee}(),nt=function(){function Ee(){}return Ee.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},Ee.toSVGMatrix=function(ue,se){return ue.a=se.a,ue.b=se.b,ue.c=se.c,ue.d=se.d,ue.e=se.e,ue.f=se.f,ue},Ee}(),ct=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(_e.createTransform()),le.setupControlBox(),le}return tt(ue,Ee),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(se){this._visual=se;var ye=_e.createTransform();this._visual.transform.baseVal.appendItem(ye)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(se){return!!Ee.prototype.ownsTarget.call(this,se)||!!(this.controlGrips.findGripByVisual(se)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(se))},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.state==="new"&&(this.left=se.x,this.top=se.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ve=this.unrotatePoint(se);if(this.manipulationStartX=ve.x,this.manipulationStartY=ve.y,this.offsetX=ve.x-this.left,this.offsetY=ve.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ye),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var We=this.container.transform.baseVal.getItem(0);We.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(We,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(se){var ye=this.state;Ee.prototype.pointerUp.call(this,se),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(se),this._state="select",ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(se){this.visual.style.transform="translate("+se.x+"px, "+se.y+"px)"},ue.prototype.manipulate=function(se){var ye=this.unrotatePoint(se);this.state==="creating"?this.resize(se):this.state==="move"?(this.left=this.manipulationStartLeft+(ye.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ye.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ye):this.state==="rotate"&&this.rotate(se)},ue.prototype.resize=function(se){var ye=this.manipulationStartLeft,ve=this.manipulationStartWidth,le=this.manipulationStartTop,We=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ye=this.manipulationStartLeft+se.x-this.manipulationStartX,ve=this.manipulationStartWidth+this.manipulationStartLeft-ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ve=this.manipulationStartWidth+se.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+se.y-this.manipulationStartY,We=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:We=this.manipulationStartHeight+se.y-this.manipulationStartY}ve>=0?(this.left=ye,this.width=ve):(this.left=ye+ve,this.width=-ve),We>=0?(this.top=le,this.height=We):(this.top=le+We,this.height=-We),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(se){if(Math.abs(se.x-this.centerX)>.1){var ye=Math.sign(se.x-this.centerX);this.rotationAngle=180*Math.atan((se.y-this.centerY)/(se.x-this.centerX))/Math.PI+90*ye,this.applyRotation()}},ue.prototype.applyRotation=function(){var se=this.container.transform.baseVal.getItem(0);se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(se,0)},ue.prototype.rotatePoint=function(se){if(this.rotationAngle===0)return se;var ye=this.container.getCTM(),ve=_e.createPoint(se.x,se.y);return{x:(ve=ve.matrixTransform(ye)).x,y:ve.y}},ue.prototype.unrotatePoint=function(se){if(this.rotationAngle===0)return se;var ye=this.container.getCTM();ye=ye.inverse();var ve=_e.createPoint(se.x,se.y);return{x:(ve=ve.matrixTransform(ye)).x,y:ve.y}},ue.prototype.select=function(){Ee.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){Ee.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=_e.createGroup();var se=_e.createTransform();se.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(se),this.container.appendChild(this.controlBox),this.controlRect=_e.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=_e.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 Dt,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var se=this.controlBox.transform.baseVal.getItem(0);se.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(se,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()},ue.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()},ue.prototype.createGrip=function(){var se=new Yt;return se.visual.transform.baseVal.appendItem(_e.createTransform()),this.controlBox.appendChild(se.visual),se},ue.prototype.positionGrips=function(){var se=this.controlGrips.topLeft.GRIP_SIZE,ye=-se/2,ve=ye,le=(this.width+this.CB_DISTANCE)/2-se/2,We=(this.height+this.CB_DISTANCE)/2-se/2,Lt=this.height+this.CB_DISTANCE-se/2,tn=this.width+this.CB_DISTANCE-se/2;this.positionGrip(this.controlGrips.topLeft.visual,ye,ve),this.positionGrip(this.controlGrips.topCenter.visual,le,ve),this.positionGrip(this.controlGrips.topRight.visual,tn,ve),this.positionGrip(this.controlGrips.centerLeft.visual,ye,We),this.positionGrip(this.controlGrips.centerRight.visual,tn,We),this.positionGrip(this.controlGrips.bottomLeft.visual,ye,Lt),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Lt),this.positionGrip(this.controlGrips.bottomRight.visual,tn,Lt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,ve-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(se,ye,ve){var le=se.transform.baseVal.getItem(0);le.setTranslate(ye,ve),se.transform.baseVal.replaceItem(le,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:nt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:nt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ee.prototype.getState.call(this))},ue.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var ye=se;this.left=ye.left,this.top=ye.top,this.width=ye.width,this.height=ye.height,this.rotationAngle=ye.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(nt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(nt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ye.containerTransformMatrix))},ue.prototype.scale=function(se,ye){Ee.prototype.scale.call(this,se,ye);var ve=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:ve.x*se,y:ve.y*ye});this.left=le.x,this.top=le.y,this.width=this.width*se,this.height=this.height*ye,this.adjustControlBox()},ue}(De),Ie=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual)},ue.prototype.createVisual=function(){this.visual=_e.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)},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){Ee.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.setSize()},ue.prototype.setSize=function(){Ee.prototype.setSize.call(this),_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(se){Ee.prototype.pointerUp.call(this,se),this.setSize()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.visual&&_e.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.visual&&_e.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.visual&&_e.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.visual&&_e.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ee.prototype.getState.call(this))},ue.prototype.restoreState=function(se){var ye=se;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),Ee.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,ye){Ee.prototype.scale.call(this,se,ye),this.setSize()},ue.title="Rectangle marker",ue}(ct),Me=function(Ee){function ue(se,ye,ve,le){var We=Ee.call(this,se,le||'')||this;return We.widths=[],We.widthBoxes=[],We.widths=ye,We.currentWidth=ve,We.setCurrentWidth=We.setCurrentWidth.bind(We),We}return tt(ue,Ee),ue.prototype.getUi=function(){var se=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.widths.forEach(function(ve){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=ve===se.currentWidth?se.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){se.setCurrentWidth(ve,le)}),ye.appendChild(le);var We=document.createElement("div");We.innerText=ve.toString(),We.style.marginRight="5px",le.appendChild(We);var Lt=document.createElement("div");Lt.style.minHeight="20px",Lt.style.flexGrow="2",Lt.style.display="flex",Lt.style.alignItems="center";var tn=document.createElement("hr");tn.style.minWidth="20px",tn.style.border="0px",tn.style.borderTop=ve+"px solid "+se.uiStyleSettings.toolboxColor,tn.style.flexGrow="2",Lt.appendChild(tn),le.appendChild(Lt),se.widthBoxes.push(le)}),ye},ue.prototype.setCurrentWidth=function(se,ye){var ve=this;this.currentWidth=se,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ye?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(pt),Ve=function(Ee){function ue(se,ye,ve,le){var We=Ee.call(this,se,le||'')||this;return We.styles=[],We.styleBoxes=[],We.styles=ye,We.currentStyle=ve,We.setCurrentStyle=We.setCurrentStyle.bind(We),We}return tt(ue,Ee),ue.prototype.getUi=function(){var se=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.styles.forEach(function(ve){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/se.styles.length-5+"%",le.style.borderColor=ve===se.currentStyle?se.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){se.setCurrentStyle(ve,le)}),ye.appendChild(le);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.overflow="hidden";var Lt=` `;We.innerHTML=Lt,le.appendChild(We),se.styleBoxes.push(le)}),ye},ue.prototype.setCurrentStyle=function(se,ye){var ve=this;this.currentStyle=se,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ye?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(pt),Xe=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.strokeColor=ve.defaultColor,le.strokeWidth=ve.defaultStrokeWidth,le.strokeDasharray=ve.defaultStrokeDasharray,le.strokePanel=new Je("Line color",ve.defaultColorSet,ve.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Me("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return tt(ue,Ee),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='',ue}(Ie),Ct=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"},wt=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return!!Ee.prototype.ownsTarget.call(this,se)||!(!this.grip1.ownsTarget(se)&&!this.grip2.ownsTarget(se))},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.state==="new"&&(this.x1=se.x,this.y1=se.y,this.x2=se.x,this.y2=se.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(ye)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ye)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(se){var ye=this.state;Ee.prototype.pointerUp.call(this,se),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(se),this._state="select",ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(se){this.state==="creating"?this.resize(se):this.state==="move"?(this.x1=this.manipulationStartX1+se.x-this.manipulationStartX,this.y1=this.manipulationStartY1+se.y-this.manipulationStartY,this.x2=this.manipulationStartX2+se.x-this.manipulationStartX,this.y2=this.manipulationStartY2+se.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(se)},ue.prototype.resize=function(se){switch(this.activeGrip){case this.grip1:this.x1=se.x,this.y1=se.y;break;case this.grip2:case void 0:this.x2=se.x,this.y2=se.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){Ee.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){Ee.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=_e.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var se=new Yt;return se.visual.transform.baseVal.appendItem(_e.createTransform()),this.controlBox.appendChild(se.visual),se},ue.prototype.positionGrips=function(){var se=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-se/2,this.y1-se/2),this.positionGrip(this.grip2.visual,this.x2-se/2,this.y2-se/2)},ue.prototype.positionGrip=function(se,ye,ve){var le=se.transform.baseVal.getItem(0);le.setTranslate(ye,ve),se.transform.baseVal.replaceItem(le,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ee.prototype.getState.call(this))},ue.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var ye=se;this.x1=ye.x1,this.y1=ye.y1,this.x2=ye.x2,this.y2=ye.y2},ue.prototype.scale=function(se,ye){Ee.prototype.scale.call(this,se,ye),this.x1=this.x1*se,this.y1=this.y1*ye,this.x2=this.x2*se,this.y2=this.y2*ye,this.adjustVisual(),this.adjustControlBox()},ue}(De),Mt=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=ve.defaultColor,le.strokeWidth=ve.defaultStrokeWidth,le.strokeDasharray=ve.defaultStrokeDasharray,le.strokePanel=new Je("Line color",ve.defaultColorSet,ve.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Me("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorLine&&se!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=_e.createGroup(),this.selectorLine=_e.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=_e.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)},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.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()),_e.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),_e.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),_e.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ee.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var ye=se;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='',ue}(wt),je=function(Ee){function ue(se,ye,ve,le){var We=Ee.call(this,se,le||'')||this;return We.fonts=[],We.fontBoxes=[],We.fonts=ye,We.currentFont=ve,We.setCurrentFont=We.setCurrentFont.bind(We),We}return tt(ue,Ee),ue.prototype.getUi=function(){var se=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.flexGrow="2",this.fonts.forEach(function(ve){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/se.fonts.length-5+"%",le.style.borderColor=ve===se.currentFont?se.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){se.setCurrentFont(ve,le)}),ye.appendChild(le);var We=document.createElement("div");We.style.display="flex",We.style.minHeight="20px",We.style.flexGrow="2",We.style.fontFamily=ve,We.style.overflow="hidden";var Lt=document.createElement("div");Lt.style.whiteSpace="nowrap",Lt.style.overflow="hidden",Lt.style.textOverflow="ellipsis",Lt.innerHTML="The quick brown fox jumps over the lazy dog",We.appendChild(Lt),le.appendChild(We),se.fontBoxes.push(le)}),ye},ue.prototype.setCurrentFont=function(se,ye){var ve=this;this.currentFont=se,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ye?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(pt),Rt=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=ve.defaultColor,le.fontFamily=ve.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new Je("Color",ve.defaultColorSet,ve.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new je("Font",ve.defaultFontFamilies,ve.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){if(Ee.prototype.ownsTarget.call(this,se)||se===this.visual||se===this.textElement||se===this.bgRectangle)return!0;var ye=!1;return this.textElement.childNodes.forEach(function(ve){ve===se&&(ye=!0)}),ye},ue.prototype.createVisual=function(){this.visual=_e.createGroup(),this.bgRectangle=_e.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=_e.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(_e.createTransform()),this.textElement.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.renderText=function(){var se=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(ye){se.textElement.appendChild(_e.createTSpan(ye.trim()===""?" ":ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var se=this.textElement.getBBox(),ye=1;if(se.width>0&&se.height>0){var ve=(1*this.width-this.width*this.padding*2/100)/se.width,le=(1*this.height-this.height*this.padding*2/100)/se.height;ye=Math.min(ve,le)}return ye},ue.prototype.getTextPosition=function(se){var ye=this.textElement.getBBox(),ve=0,le=0;return ye.width>0&&ye.height>0&&(ve=(this.width-ye.width*se)/2,le=this.height/2-ye.height*se/2),{x:ve,y:le}},ue.prototype.sizeText=function(){var se=this.textElement.getBBox(),ye=this.getTextScale(),ve=this.getTextPosition(ye);ve.y-=se.y*ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ve.x+"px, "+ve.y+"px) scale("+ye+", "+ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ve.x,ve.y),this.textElement.transform.baseVal.getItem(1).setScale(ye,ye))},ue.prototype.manipulate=function(se){Ee.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){Ee.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(se){var ye=this.state;ye==="creating"&&(this._suppressMarkerCreateEvent=!0),Ee.prototype.pointerUp.call(this,se),this.setSize(),(ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var se=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(ye){ye.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ye=Number.parseFloat(se.textEditor.style.fontSize);se.textEditor.clientWidth>=Number.parseInt(se.textEditor.style.maxWidth)&&ye>.9;)ye-=.1,se.textEditor.style.fontSize=Math.max(ye,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ye){ye.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ye){if(ye.clipboardData){var ve=ye.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(ve)),ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){se.textEditDivClicked(se.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var se=this.getTextScale(),ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ve=this.textElement.getBBox(),le={x:ve.width*se,y:ve.height*se};ye.x-=le.x/2,ye.y-=le.y/2,this.textEditor.style.top=ye.y+"px",this.textEditor.style.left=ye.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ye.x+"px",this.textEditor.style.fontSize=Math.max(16*se,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(se){this.text=se.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){Ee.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ee.prototype.deselect.call(this)},ue.prototype.dblClick=function(se,ye){Ee.prototype.dblClick.call(this,se,ye),this.showTextEditor()},ue.prototype.setColor=function(se){this.textElement&&_e.setAttributes(this.textElement,[["fill",se]]),this.color=se,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(se)},ue.prototype.setFont=function(se){this.textElement&&_e.setAttributes(this.textElement,[["font-family",se]]),this.fontFamily=se,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ee.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){var ye=se;this.color=ye.color,this.fontFamily=ye.fontFamily,this.padding=ye.padding,this.text=ye.text,this.createVisual(),Ee.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,ye){Ee.prototype.scale.call(this,se,ye),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.icon='',ue}(ct),At=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=ve.defaultColor,le.lineWidth=ve.defaultStrokeWidth,le.pixelRatio=ve.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new Je("Color",ve.defaultColorSet,ve.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Me("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=_e.createGroup(),this.drawingImage=_e.createImage(),this.visual.appendChild(this.drawingImage);var se=_e.createTransform();this.visual.transform.baseVal.appendItem(se),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(se,ye){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(se.x,se.y),this.drawing=!0):Ee.prototype.pointerDown.call(this,se,ye)},ue.prototype.manipulate=function(se){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(se.x,se.y),this.canvasContext.stroke()):Ee.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){Ee.prototype.resize.call(this,se),_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(se){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ee.prototype.pointerUp.call(this,se)},ue.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)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ee.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ee.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var se=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ve=ye[0],le=ye[1],We=ye[2],Lt=ye[3],tn=!1,hn=0;hn0&&(tn=!0,hnLt&&(Lt=hn),sn>We&&(We=sn));if(tn){this.left=ve/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(We-ve)/this.pixelRatio,this.height=(Lt-le)/this.pixelRatio;var yn=document.createElement("canvas");yn.width=We-ve,yn.height=Lt-le,yn.getContext("2d").putImageData(this.canvasContext.getImageData(ve,le,We-ve,Lt-le),0,0),this.drawingImgUrl=yn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){_e.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(se){this.color=se,this.colorChanged(se)},ue.prototype.setLineWidth=function(se){this.lineWidth=se},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({drawingImgUrl:this.drawingImgUrl},Ee.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){this.createVisual(),Ee.prototype.restoreState.call(this,se),this.drawingImgUrl=se.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(se,ye){Ee.prototype.scale.call(this,se,ye),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.icon='',ue}(ct),xn=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ve||'')||this;return le.typeBoxes=[],le.currentType=ye,le.setCurrentType=le.setCurrentType.bind(le),le}return tt(ue,Ee),ue.prototype.getUi=function(){var se=this,ye=document.createElement("div");ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2";for(var ve=function(Lt){var tn="both";switch(Lt){case 0:tn="both";break;case 1:tn="start";break;case 2:tn="end";break;case 3:tn="none"}var hn=document.createElement("div");if(hn.style.display="flex",hn.style.flexGrow="2",hn.style.alignItems="center",hn.style.justifyContent="space-between",hn.style.padding="5px",hn.style.borderWidth="2px",hn.style.borderStyle="solid",hn.style.borderColor=tn===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",hn.addEventListener("click",function(){se.setCurrentType(tn,hn)}),ye.appendChild(hn),tn==="both"||tn==="start"){var sn=document.createElement("div");sn.style.display="flex",sn.style.alignItems="center",sn.style.minHeight="20px",sn.innerHTML=` `,sn.style.marginLeft="5px",hn.appendChild(sn)}var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.style.flexGrow="2";var ln=document.createElement("hr");if(ln.style.minWidth="20px",ln.style.border="0px",ln.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),ln.style.flexGrow="2",yn.appendChild(ln),hn.appendChild(yn),tn==="both"||tn==="end"){var yr=document.createElement("div");yr.style.display="flex",yr.style.alignItems="center",yr.style.minHeight="20px",yr.innerHTML=` `,yr.style.marginRight="5px",hn.appendChild(yr)}le.typeBoxes.push(hn)},le=this,We=0;We<4;We++)ve(We);return ye},ue.prototype.setCurrentType=function(se,ye){var ve=this;this.currentType=se,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ye?ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(pt),jt=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new xn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.arrow1&&se!==this.arrow2)},ue.prototype.getArrowPoints=function(se,ye){var ve=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return se-ve/2+","+(ye+le/2)+" "+se+","+(ye-le/2)+" "+(se+ve/2)+","+(ye+le/2)},ue.prototype.createTips=function(){this.arrow1=_e.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=_e.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(Ee.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",_e.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),_e.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var se=0;Math.abs(this.x1-this.x2)>.1&&(se=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ye=this.arrow1.transform.baseVal.getItem(0);ye.setRotate(se,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ye,0);var ve=this.arrow2.transform.baseVal.getItem(0);ve.setRotate(se+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ve,0)}},ue.prototype.setArrowType=function(se){this.arrowType=se,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({arrowType:this.arrowType},Ee.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var ye=se;this.arrowType=ye.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='',ue}(Mt),vn=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.fillColor=ve.defaultFillColor,le.strokeWidth=0,le.fillPanel=new Je("Color",ve.defaultColorSet,ve.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return tt(ue,Ee),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='',ue}(Ie),er=function(Ee){function ue(se,ye,ve,le){var We=Ee.call(this,se,le||'')||this;return We.opacities=[],We.opacityBoxes=[],We.opacities=ye,We.currentOpacity=ve,We.setCurrentOpacity=We.setCurrentOpacity.bind(We),We}return tt(ue,Ee),ue.prototype.getUi=function(){var se=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",ye.style.justifyContent="space-between",this.opacities.forEach(function(ve){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=ve===se.currentOpacity?se.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){se.setCurrentOpacity(ve,le)}),ye.appendChild(le);var We=document.createElement("div");We.innerText=100*ve+"%",le.appendChild(We),se.opacityBoxes.push(le)}),ye},ue.prototype.setCurrentOpacity=function(se,ye){var ve=this;this.currentOpacity=se,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ye?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(pt),Sr=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=ve.defaultHighlightColor,le.strokeWidth=0,le.opacity=ve.defaultHighlightOpacity,le.fillPanel=new Je("Color",ve.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new er("Opacity",ve.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return tt(ue,Ee),ue.prototype.setOpacity=function(se){this.opacity=se,this.visual&&_e.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.icon='',ue}(vn),qe='',Ae='',$t=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=ve.defaultStrokeColor,le.bgColor=ve.defaultFillColor,le.fontFamily=ve.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new Je("Text color",ve.defaultColorSet,le.color,qe),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new Je("Fill color",ve.defaultColorSet,le.bgColor,Ae),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new je("Font",ve.defaultFontFamilies,ve.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Yt,le.tipGrip.visual.transform.baseVal.appendItem(_e.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return Ee.prototype.ownsTarget.call(this,se)||this.tipGrip.ownsTarget(se)||this.tip===se},ue.prototype.createTip=function(){_e.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=_e.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(se,ye){this.state==="new"&&Ee.prototype.pointerDown.call(this,se,ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ee.prototype.pointerDown.call(this,se,ye)},ue.prototype.pointerUp=function(se){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ee.prototype.pointerUp.call(this,se);else{var ye=this.state==="creating";Ee.prototype.pointerUp.call(this,se),this.setTipPoints(ye),this.positionTip()}},ue.prototype.manipulate=function(se){if(this.tipMoving){var ye=this.unrotatePoint(se);this.tipPosition={x:ye.x-this.manipulationStartLeft,y:ye.y-this.manipulationStartTop},this.positionTip()}else Ee.prototype.manipulate.call(this,se)},ue.prototype.setBgColor=function(se){this.bgRectangle&&this.tip&&(_e.setAttributes(this.bgRectangle,[["fill",se]]),_e.setAttributes(this.tip,[["fill",se]])),this.bgColor=se,this.fillColorChanged(se)},ue.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},ue.prototype.setTipPoints=function(se){se===void 0&&(se=!1);var ye=Math.min(this.height/2,15),ve=this.height/5;se&&(this.tipPosition={x:ye+ve/2,y:this.height+20});var le=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?le.1)){var se=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.tip1.transform.baseVal.getItem(0);ye.setRotate(se,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ye,0);var ve=this.tip2.transform.baseVal.getItem(0);ve.setRotate(se+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ve,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.icon='',ue}(Mt),at=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.strokePanel.colors=ve.defaultColorSet,le.fillColor="transparent",le}return tt(ue,Ee),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Ee.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.icon='',ue}(Hn),ft=function(){function Ee(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ee.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ee.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},Ee.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},Ee.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ee.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ee.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ee}(),Gt=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=ve.defaultColor,le.strokeWidth=ve.defaultStrokeWidth,le.strokeDasharray=ve.defaultStrokeDasharray,le.strokePanel=new Je("Line color",ve.defaultColorSet,ve.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Me("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorCurve&&se!==this.visibleCurve&&!this.curveGrip.ownsTarget(se))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.prototype.createVisual=function(){this.visual=_e.createGroup(),this.selectorCurve=_e.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=_e.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)},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=se.x,this.curveY=se.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),_e.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),_e.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),_e.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){Ee.prototype.setupControlBox.call(this),this.curveControlLine1=_e.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=_e.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)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ee.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){Ee.prototype.positionGrips.call(this);var se=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-se/2,this.curveY-se/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()))},ue.prototype.manipulate=function(se){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+se.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+se.y-this.manipulationStartY),Ee.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){this.activeGrip===this.curveGrip&&(this.curveX=se.x,this.curveY=se.y),Ee.prototype.resize.call(this,se),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.adjustVisual()},ue.prototype.scale=function(se,ye){this.curveX=this.curveX*se,this.curveY=this.curveY*ye,Ee.prototype.scale.call(this,se,ye)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ee.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){Ee.prototype.restoreState.call(this,se);var ye=se;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.curveX=ye.curveX,this.curveY=ye.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.icon='',ue}(wt),zn=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,ye,ve)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=ve.defaultColor,le.strokeWidth=ve.defaultStrokeWidth,le.strokeDasharray=ve.defaultStrokeDasharray,le.fillColor=ve.defaultFillColor,le.textColor=ve.defaultStrokeColor,le.fontFamily=ve.defaultFontFamily,le.fontSize=ve.defaultCaptionFontSize,le.captionText=ve.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new Je("Line color",be(ve.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Je("Fill color",be(ve.defaultColorSet,["transparent"]),le.fillColor,Ae),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Me("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new je("Font",ve.defaultFontFamilies,ve.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new Je("Text color",ve.defaultColorSet,le.textColor,qe),le.textColorPanel.onColorChanged=le.setTextColor,le}return tt(ue,Ee),ue.prototype.ownsTarget=function(se){return!(!Ee.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.frame&&se!==this.captionBg&&se!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=_e.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=_e.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=_e.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=_e.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()},ue.prototype.setCaptionText=function(se){this.captionText=se,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(se,ye){Ee.prototype.pointerDown.call(this,se,ye),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){Ee.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(se){Ee.prototype.resize.call(this,se),this.setSize()},ue.prototype.sizeCaption=function(){var se=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=se.width+2*this.PADDING,this.captionBoxHeight=se.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),_e.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')"]]),_e.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')"]])},ue.prototype.showTextEditor=function(){var se=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(ye){ye.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ye){ye.key==="Enter"&&se.finishTextEditing(se.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ye){ye.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){se.finishTextEditing(se.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){se.finishTextEditing(se.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ue.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"))},ue.prototype.finishTextEditing=function(se){this.setCaptionText(se.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(se){this.captionElement&&_e.setAttributes(this.captionElement,[["font-family",se]]),this.fontFamily=se,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(se){this.captionElement&&_e.setAttributes(this.captionElement,[["fill",se]]),this.textColor=se,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){Ee.prototype.setSize.call(this),_e.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(se){Ee.prototype.pointerUp.call(this,se),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(se,ye){Ee.prototype.dblClick.call(this,se,ye),this.showTextEditor()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.frame&&_e.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.captionBg&&_e.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(se),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.frame&&_e.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.frame&&_e.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=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},Ee.prototype.getState.call(this));return se.typeName=this.typeName,se},ue.prototype.restoreState=function(se){var ye=se;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.textColor=ye.textColor,this.fontFamily=ye.fontFamily,this.captionText=ye.captionText,this.fontSize=ye.fontSize,this.createVisual(),Ee.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,ye){Ee.prototype.scale.call(this,se,ye),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.icon='',ue}(ct),mn=function(){function Ee(ue,se){se===void 0&&(se=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=se}return Object.defineProperty(Ee.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ee.prototype.preventDefault=function(){this._defaultPrevented=!0},Ee}(),nn=function(Ee){function ue(se,ye,ve){var le=Ee.call(this,se,!1)||this;return le.dataUrl=ye,le.state=ve,le}return tt(ue,Ee),ue}(mn),Ft=function(Ee){function ue(se,ye,ve){ve===void 0&&(ve=!1);var le=Ee.call(this,se,ve)||this;return le.marker=ye,le}return tt(ue,Ee),ue}(mn),Pn=function(){function Ee(){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 Ee.prototype.addEventListener=function(ue,se){this[ue].push(se)},Ee.prototype.removeEventListener=function(ue,se){var ye=this[ue].indexOf(se);ye>-1&&this[ue].splice(ye,1)},Ee}(),_n=function(){function Ee(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ct,this._isOpen=!1,this.undoRedoManager=new ft,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 Pn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ee.instanceCounter++,this.styles=new Te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.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(Ee.prototype,"ALL_MARKER_TYPES",{get:function(){return[Xe,At,jt,Rt,at,Hn,Sr,$t,bn,vn,Mt,Gt,zn]},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Xe,At,jt,Rt,Hn,Sr,$t]},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Xe,At,jt,Rt,Sr]},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var se=this;this._availableMarkerTypes.splice(0),ue.forEach(function(ye){if(typeof ye=="string"){var ve=se.ALL_MARKER_TYPES.find(function(le){return le.typeName===ye});ve!==void 0&&se._availableMarkerTypes.push(ve)}else se._availableMarkerTypes.push(ye)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ee.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,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(Ee.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ee.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ee.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(se){return se(new mn(ue))})},Ee.prototype.render=function(){return Fe(this,void 0,void 0,function(){var ue;return Ye(this,function(se){switch(se.label){case 0:return this.setCurrentMarker(),(ue=new Se).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return se.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,se.sent()]}})})},Ee.prototype.close=function(ue){var se=this;if(ue===void 0&&(ue=!1),this.isOpen){var ye=!1;ue||this.eventListeners.beforeclose.forEach(function(ve){var le=new mn(se,!0);ve(le),le.defaultPrevented&&(ye=!0)}),ye||(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(ve){return ve(new mn(se))}),this.detachEvents(),this._isOpen=!1)}},Ee.prototype.addMarkersToToolbar=function(){for(var ue,se=[],ye=0;yethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,ye=se',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ee.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")},Ee.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"},Ee.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ee.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 ue=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=ue+"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(ue),1),ue.dispose()},Ee.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())},Ee.prototype.toolbarButtonClicked=function(ue,se){if(ue==="marker"&&se!==void 0)this.createNewMarker(se);else if(ue==="action")switch(se){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()}},Ee.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var se=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ve){var le=new Ft(ue,ue._currentMarker,!0);ve(le),le.defaultPrevented&&(se=!0)}),!se){var ye=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(ve){return ve(new Ft(ue,ye))})}}},Ee.prototype.clear=function(){var ue=this,se=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(We){var Lt=new Ft(ue,void 0,!0);We(Lt),Lt.defaultPrevented&&(se=!0)}),!se)){this.setCurrentMarker();for(var ye=function(We){var Lt=ve.markers[We];ve.setCurrentMarker(ve.markers[We]),ve._currentMarker.dispose(),ve.markerImage.removeChild(ve._currentMarker.container),ve.markers.splice(ve.markers.indexOf(ve._currentMarker),1),ve.eventListeners.markerdelete.forEach(function(tn){return tn(new Ft(ue,Lt))})},ve=this,le=this.markers.length-1;le>=0;le--)ye(le);this.addUndoStep()}},Object.defineProperty(Ee.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ee.prototype.showNotesEditor=function(){var ue;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=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},Ee.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)},Ee.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ee.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var se=this.getState(),ye=this.undoRedoManager.getLastUndoStep();if(!ye||ye.width===se.width&&ye.height===se.height){var ve=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(se),ve1&&this.panTo({x:ue.clientX,y:ue.clientY}))},Ee.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},Ee.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ee.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},Ee.prototype.clientToLocalCoordinates=function(ue,se){var ye=this.markerImage.getBoundingClientRect();return{x:(ue-ye.left)/this.zoomLevel,y:(se-ye.top)/this.zoomLevel}},Ee.prototype.onWindowResize=function(){this.positionUI()},Ee.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"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()},Ee.prototype.addLicenseKey=function(ue){Le.addKey(ue)},Ee.prototype.addEventListener=function(ue,se){this.eventListeners.addEventListener(ue,se)},Ee.prototype.removeEventListener=function(ue,se){this.eventListeners.removeEventListener(ue,se)},Ee.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ee.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ee.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(se){return se(new mn(ue))}))},Ee.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(se){return se(new mn(ue))}))},Ee.instanceCounter=0,Ee}()},95860:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return nt}});var fe=ce(87462),tt=ce(1413),Fe=ce(4942),Ye=ce(97685),be=ce(45987),_e=ce(94184),Le=ce.n(_e),Se=ce(67294);function pe(ct){var Ie=Se.useRef();Ie.current=ct;var Me=Se.useCallback(function(){for(var Ve,Xe=arguments.length,Ct=new Array(Xe),wt=0;wt0;if(vn||er){var sn=(0,Se.D7)(Gt),yn=(0,gt.Z)(sn).length,ln=(0,Ye.Z)(er)==="object"?er.formatter({value:sn,count:yn,maxLength:jt}):"".concat(yn).concat(hn?" / ".concat(jt):"");return Le.createElement(Le.Fragment,null,!!er&&Le.createElement("span",{className:_e()("".concat(je,"-show-count-suffix"),(0,Fe.Z)({},"".concat(je,"-show-count-has-suffix"),!!vn),$t==null?void 0:$t.count),style:(0,tt.Z)({},Hn==null?void 0:Hn.count)},ln),vn)}return null};return Le.createElement(Te,(0,fe.Z)({},bn,{prefixCls:je,className:xn,inputElement:We(),handleReset:le,value:(0,Se.D7)(Gt),focused:Ft,triggerFocus:Ee,suffix:Lt(),disabled:Rt,classes:Ae,classNames:$t,styles:Hn}))}),Dt=De,Yt=Dt},87887:function(Ln,qt,ce){"use strict";ce.d(qt,{D7:function(){return be},He:function(){return fe},X3:function(){return tt},nH:function(){return Ye},rJ:function(){return Fe}});function fe(_e){return!!(_e.addonBefore||_e.addonAfter)}function tt(_e){return!!(_e.prefix||_e.suffix||_e.allowClear)}function Fe(_e,Le,Se,pe){if(Se){var Te=Le;if(Le.type==="click"){var gt=_e.cloneNode(!0);Te=Object.create(Le,{target:{value:gt},currentTarget:{value:gt}}),gt.value="",Se(Te);return}if(pe!==void 0){Te=Object.create(Le,{target:{value:_e},currentTarget:{value:_e}}),_e.value=pe,Se(Te);return}Se(Te)}}function Ye(_e,Le){if(_e){_e.focus(Le);var Se=Le||{},pe=Se.cursor;if(pe){var Te=_e.value.length;switch(pe){case"start":_e.setSelectionRange(0,0);break;case"end":_e.setSelectionRange(Te,Te);break;default:_e.setSelectionRange(0,Te)}}}}function be(_e){return typeof _e=="undefined"||_e===null?"":String(_e)}},78595:function(Ln,qt,ce){"use strict";ce.d(qt,{iz:function(){return Hr},ck:function(){return or},BW:function(){return Br},sN:function(){return or},Wd:function(){return Bt},ZP:function(){return Ne},Xl:function(){return ln}});var fe=ce(87462),tt=ce(4942),Fe=ce(1413),Ye=ce(74902),be=ce(97685),_e=ce(45987),Le=ce(94184),Se=ce.n(Le),pe=ce(67294),Te=ce(48555);function gt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ze=gt()?pe.useLayoutEffect:pe.useEffect,Pt=function(He,Ge){var et=pe.useRef(!0);ze(function(){return He(et.current)},Ge),ze(function(){return et.current=!1,function(){et.current=!0}},[])},kt=function(He,Ge){Pt(function(et){if(!et)return He()},Ge)},pt=Pt,Je=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],De=void 0;function Dt(Be,He){var Ge=Be.prefixCls,et=Be.invalidate,bt=Be.item,Zt=Be.renderItem,Jt=Be.responsive,Gn=Be.responsiveDisabled,fr=Be.registerSize,Wn=Be.itemKey,pn=Be.className,dn=Be.style,Cn=Be.children,In=Be.display,cr=Be.order,jn=Be.component,Zn=jn===void 0?"div":jn,Jn=(0,_e.Z)(Be,Je),Qn=Jt&&!In;function hr(It){fr(Wn,It)}pe.useEffect(function(){return function(){hr(null)}},[]);var Pe=Zt&&bt!==De?Zt(bt):Cn,$e;et||($e={opacity:Qn?0:1,height:Qn?0:De,overflowY:Qn?"hidden":De,order:Jt?cr:De,pointerEvents:Qn?"none":De,position:Qn?"absolute":De});var xt={};Qn&&(xt["aria-hidden"]=!0);var rt=pe.createElement(Zn,(0,fe.Z)({className:Se()(!et&&Ge,pn),style:(0,Fe.Z)((0,Fe.Z)({},$e),dn)},xt,Jn,{ref:He}),Pe);return Jt&&(rt=pe.createElement(Te.Z,{onResize:function(rn){var fn=rn.offsetWidth;hr(fn)},disabled:Gn},rt)),rt}var Yt=pe.forwardRef(Dt);Yt.displayName="Item";var nt=Yt;function ct(Be){var He=pe.useRef();He.current=Be;var Ge=pe.useCallback(function(){for(var et,bt=arguments.length,Zt=new Array(bt),Jt=0;Jt1&&arguments[1]!==void 0?arguments[1]:1;Xe+=1;var et=Xe;function bt(Zt){if(Zt===0)wt(et),He();else{var Jt=Me(function(){bt(Zt-1)});Ct.set(et,Jt)}}return bt(Ge),et};Mt.cancel=function(Be){var He=Ct.get(Be);return wt(He),Ve(He)};var je=Mt;function Rt(Be){if(typeof MessageChannel=="undefined")je(Be);else{var He=new MessageChannel;He.port1.onmessage=function(){return Be()},He.port2.postMessage(void 0)}}function At(){var Be=pe.useRef(null),He=function(et){Be.current||(Be.current=[],Rt(function(){(0,Ie.unstable_batchedUpdates)(function(){Be.current.forEach(function(bt){bt()}),Be.current=null})})),Be.current.push(et)};return He}function xn(Be,He){var Ge=pe.useState(He),et=(0,be.Z)(Ge,2),bt=et[0],Zt=et[1],Jt=ct(function(Gn){Be(function(){Zt(Gn)})});return[bt,Jt]}var jt=pe.createContext(null),vn=["component"],er=["className"],Sr=["className"],qe=function(He,Ge){var et=pe.useContext(jt);if(!et){var bt=He.component,Zt=bt===void 0?"div":bt,Jt=(0,_e.Z)(He,vn);return pe.createElement(Zt,(0,fe.Z)({},Jt,{ref:Ge}))}var Gn=et.className,fr=(0,_e.Z)(et,er),Wn=He.className,pn=(0,_e.Z)(He,Sr);return pe.createElement(jt.Provider,{value:null},pe.createElement(nt,(0,fe.Z)({ref:Ge,className:Se()(Gn,Wn)},fr,pn)))},Ae=pe.forwardRef(qe);Ae.displayName="RawItem";var $t=Ae,Hn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],bn="responsive",at="invalidate";function ft(Be){return"+ ".concat(Be.length," ...")}function Gt(Be,He){var Ge=Be.prefixCls,et=Ge===void 0?"rc-overflow":Ge,bt=Be.data,Zt=bt===void 0?[]:bt,Jt=Be.renderItem,Gn=Be.renderRawItem,fr=Be.itemKey,Wn=Be.itemWidth,pn=Wn===void 0?10:Wn,dn=Be.ssr,Cn=Be.style,In=Be.className,cr=Be.maxCount,jn=Be.renderRest,Zn=Be.renderRawRest,Jn=Be.suffix,Qn=Be.component,hr=Qn===void 0?"div":Qn,Pe=Be.itemComponent,$e=Be.onVisibleChange,xt=(0,_e.Z)(Be,Hn),rt=dn==="full",It=At(),rn=xn(It,null),fn=(0,be.Z)(rn,2),On=fn[0],wn=fn[1],Xt=On||0,Nn=xn(It,new Map),Fn=(0,be.Z)(Nn,2),mr=Fn[0],Bn=Fn[1],Lr=xn(It,0),Zr=(0,be.Z)(Lr,2),Dr=Zr[0],zr=Zr[1],xr=xn(It,0),Or=(0,be.Z)(xr,2),Jr=Or[0],ai=Or[1],Ir=xn(It,0),ci=(0,be.Z)(Ir,2),Pi=ci[0],ta=ci[1],Vi=(0,pe.useState)(null),Bi=(0,be.Z)(Vi,2),Xi=Bi[0],qi=Bi[1],bi=(0,pe.useState)(null),$i=(0,be.Z)(bi,2),jr=$i[0],di=$i[1],Ti=pe.useMemo(function(){return jr===null&&rt?Number.MAX_SAFE_INTEGER:jr||0},[jr,On]),ji=(0,pe.useState)(!1),Ba=(0,be.Z)(ji,2),$a=Ba[0],Aa=Ba[1],ca="".concat(et,"-item"),Yi=Math.max(Dr,Jr),Mi=cr===bn,Oa=Zt.length&&Mi,ki=cr===at,Qr=Oa||typeof cr=="number"&&Zt.length>cr,zi=(0,pe.useMemo)(function(){var _i=Zt;return Oa?On===null&&rt?_i=Zt:_i=Zt.slice(0,Math.min(Zt.length,Xt/pn)):typeof cr=="number"&&(_i=Zt.slice(0,cr)),_i},[Zt,pn,On,cr,Oa]),ua=(0,pe.useMemo)(function(){return Oa?Zt.slice(Ti+1):Zt.slice(zi.length)},[Zt,zi,Oa,Ti]),Ui=(0,pe.useCallback)(function(_i,Ki){var da;return typeof fr=="function"?fr(_i):(da=fr&&(_i==null?void 0:_i[fr]))!==null&&da!==void 0?da:Ki},[fr]),ia=(0,pe.useCallback)(Jt||function(_i){return _i},[Jt]);function hi(_i,Ki,da){jr===_i&&(Ki===void 0||Ki===Xi)||(di(_i),da||(Aa(_iXt){hi(Sa-1,_i-Ka-Pi+Jr);break}}Jn&&Ea(0)+Pi>Xt&&qi(null)}},[Xt,mr,Jr,Pi,Ui,zi]);var Va=$a&&!!ua.length,ha={};Xi!==null&&Oa&&(ha={position:"absolute",left:Xi,top:0});var ka={prefixCls:ca,responsive:Oa,component:Pe,invalidate:ki},Ja=Gn?function(_i,Ki){var da=Ui(_i,Ki);return pe.createElement(jt.Provider,{key:da,value:(0,Fe.Z)((0,Fe.Z)({},ka),{},{order:Ki,item:_i,itemKey:da,registerSize:xa,display:Ki<=Ti})},Gn(_i,Ki))}:function(_i,Ki){var da=Ui(_i,Ki);return pe.createElement(nt,(0,fe.Z)({},ka,{order:Ki,key:da,item:_i,renderItem:ia,itemKey:da,registerSize:xa,display:Ki<=Ti}))},Ga,so={order:Va?Ti:Number.MAX_SAFE_INTEGER,className:"".concat(ca,"-rest"),registerSize:fa,display:Va};if(Zn)Zn&&(Ga=pe.createElement(jt.Provider,{value:(0,Fe.Z)((0,Fe.Z)({},ka),so)},Zn(ua)));else{var Fa=jn||ft;Ga=pe.createElement(nt,(0,fe.Z)({},ka,so),typeof Fa=="function"?Fa(ua):Fa)}var Ca=pe.createElement(hr,(0,fe.Z)({className:Se()(!ki&&et,In),style:Cn,ref:He},xt),zi.map(Ja),Qr?Ga:null,Jn&&pe.createElement(nt,(0,fe.Z)({},ka,{responsive:Mi,responsiveDisabled:!Oa,order:Ti,className:"".concat(ca,"-suffix"),registerSize:wa,display:!0,style:ha}),Jn));return Mi&&(Ca=pe.createElement(Te.Z,{onResize:pa,disabled:!Oa},Ca)),Ca}var zn=pe.forwardRef(Gt);zn.displayName="Overflow",zn.Item=$t,zn.RESPONSIVE=bn,zn.INVALIDATE=at;var mn=zn,nn=mn,Ft=ce(21770),Pn=ce(80334),_n=ce(91881),Ee=pe.createContext(null);function ue(Be,He){return Be===void 0?null:"".concat(Be,"-").concat(He)}function se(Be){var He=pe.useContext(Ee);return ue(He,Be)}var ye=ce(56982),ve=["children","locked"],le=pe.createContext(null);function We(Be,He){var Ge=(0,Fe.Z)({},Be);return Object.keys(He).forEach(function(et){var bt=He[et];bt!==void 0&&(Ge[et]=bt)}),Ge}function Lt(Be){var He=Be.children,Ge=Be.locked,et=(0,_e.Z)(Be,ve),bt=pe.useContext(le),Zt=(0,ye.Z)(function(){return We(bt,et)},[bt,et],function(Jt,Gn){return!Ge&&(Jt[0]!==Gn[0]||!(0,_n.Z)(Jt[1],Gn[1],!0))});return pe.createElement(le.Provider,{value:Zt},He)}var tn=[],hn=pe.createContext(null);function sn(){return pe.useContext(hn)}var yn=pe.createContext(tn);function ln(Be){var He=pe.useContext(yn);return pe.useMemo(function(){return Be!==void 0?[].concat((0,Ye.Z)(He),[Be]):He},[He,Be])}var yr=pe.createContext(null),Fr=pe.createContext({}),Nt=Fr,Rn=ce(15105),Gr=ce(75164),li=function(Be){if(!Be)return!1;if(Be instanceof Element){if(Be.offsetParent)return!0;if(Be.getBBox){var He=Be.getBBox(),Ge=He.width,et=He.height;if(Ge||et)return!0}if(Be.getBoundingClientRect){var bt=Be.getBoundingClientRect(),Zt=bt.width,Jt=bt.height;if(Zt||Jt)return!0}}return!1};function st(Be){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(li(Be)){var Ge=Be.nodeName.toLowerCase(),et=["input","select","textarea","button"].includes(Ge)||Be.isContentEditable||Ge==="a"&&!!Be.getAttribute("href"),bt=Be.getAttribute("tabindex"),Zt=Number(bt),Jt=null;return bt&&!Number.isNaN(Zt)?Jt=Zt:et&&Jt===null&&(Jt=0),et&&Be.disabled&&(Jt=null),Jt!==null&&(Jt>=0||He&&Jt<0)}return!1}function Wt(Be){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=(0,Ye.Z)(Be.querySelectorAll("*")).filter(function(et){return st(et,He)});return st(Be,He)&&Ge.unshift(Be),Ge}var Vn=null;function ir(){Vn=document.activeElement}function gr(){Vn=null}function Pr(){if(Vn)try{Vn.focus()}catch(Be){}}function Ur(Be,He){if(He.keyCode===9){var Ge=Wt(Be),et=Ge[He.shiftKey?0:Ge.length-1],bt=et===document.activeElement||Be===document.activeElement;if(bt){var Zt=Ge[He.shiftKey?Ge.length-1:0];Zt.focus(),He.preventDefault()}}}var Xr=Rn.Z.LEFT,qr=Rn.Z.RIGHT,ui=Rn.Z.UP,br=Rn.Z.DOWN,Ei=Rn.Z.ENTER,sa=Rn.Z.ESC,Ji=Rn.Z.HOME,Qi=Rn.Z.END,Ci=[ui,br,Xr,qr];function mt(Be,He,Ge,et){var bt,Zt,Jt,Gn,fr="prev",Wn="next",pn="children",dn="parent";if(Be==="inline"&&et===Ei)return{inlineTrigger:!0};var Cn=(bt={},(0,tt.Z)(bt,ui,fr),(0,tt.Z)(bt,br,Wn),bt),In=(Zt={},(0,tt.Z)(Zt,Xr,Ge?Wn:fr),(0,tt.Z)(Zt,qr,Ge?fr:Wn),(0,tt.Z)(Zt,br,pn),(0,tt.Z)(Zt,Ei,pn),Zt),cr=(Jt={},(0,tt.Z)(Jt,ui,fr),(0,tt.Z)(Jt,br,Wn),(0,tt.Z)(Jt,Ei,pn),(0,tt.Z)(Jt,sa,dn),(0,tt.Z)(Jt,Xr,Ge?pn:dn),(0,tt.Z)(Jt,qr,Ge?dn:pn),Jt),jn={inline:Cn,horizontal:In,vertical:cr,inlineSub:Cn,horizontalSub:cr,verticalSub:cr},Zn=(Gn=jn["".concat(Be).concat(He?"":"Sub")])===null||Gn===void 0?void 0:Gn[et];switch(Zn){case fr:return{offset:-1,sibling:!0};case Wn:return{offset:1,sibling:!0};case dn:return{offset:-1,sibling:!1};case pn:return{offset:1,sibling:!1};default:return null}}function Mn(Be){for(var He=Be;He;){if(He.getAttribute("data-menu-list"))return He;He=He.parentElement}return null}function En(Be,He){for(var Ge=Be||document.activeElement;Ge;){if(He.has(Ge))return Ge;Ge=Ge.parentElement}return null}function An(Be,He){var Ge=Wt(Be,!0);return Ge.filter(function(et){return He.has(et)})}function sr(Be,He,Ge){var et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Be)return null;var bt=An(Be,He),Zt=bt.length,Jt=bt.findIndex(function(Gn){return Ge===Gn});return et<0?Jt===-1?Jt=Zt-1:Jt-=1:et>0&&(Jt+=1),Jt=(Jt+Zt)%Zt,bt[Jt]}function nr(Be,He,Ge,et,bt,Zt,Jt,Gn,fr,Wn){var pn=pe.useRef(),dn=pe.useRef();dn.current=He;var Cn=function(){Gr.Z.cancel(pn.current)};return pe.useEffect(function(){return function(){Cn()}},[]),function(In){var cr=In.which;if([].concat(Ci,[Ei,sa,Ji,Qi]).includes(cr)){var jn,Zn,Jn,Qn=function(){jn=new Set,Zn=new Map,Jn=new Map;var Fn=Zt();return Fn.forEach(function(mr){var Bn=document.querySelector("[data-menu-id='".concat(ue(et,mr),"']"));Bn&&(jn.add(Bn),Jn.set(Bn,mr),Zn.set(mr,Bn))}),jn};Qn();var hr=Zn.get(He),Pe=En(hr,jn),$e=Jn.get(Pe),xt=mt(Be,Jt($e,!0).length===1,Ge,cr);if(!xt&&cr!==Ji&&cr!==Qi)return;(Ci.includes(cr)||[Ji,Qi].includes(cr))&&In.preventDefault();var rt=function(Fn){if(Fn){var mr=Fn,Bn=Fn.querySelector("a");Bn!=null&&Bn.getAttribute("href")&&(mr=Bn);var Lr=Jn.get(Fn);Gn(Lr),Cn(),pn.current=(0,Gr.Z)(function(){dn.current===Lr&&mr.focus()})}};if([Ji,Qi].includes(cr)||xt.sibling||!Pe){var It;!Pe||Be==="inline"?It=bt.current:It=Mn(Pe);var rn,fn=An(It,jn);cr===Ji?rn=fn[0]:cr===Qi?rn=fn[fn.length-1]:rn=sr(It,jn,Pe,xt.offset),rt(rn)}else if(xt.inlineTrigger)fr($e);else if(xt.offset>0)fr($e,!0),Cn(),pn.current=(0,Gr.Z)(function(){Qn();var Nn=Pe.getAttribute("aria-controls"),Fn=document.getElementById(Nn),mr=sr(Fn,jn);rt(mr)},5);else if(xt.offset<0){var On=Jt($e,!0),wn=On[On.length-2],Xt=Zn.get(wn);fr(wn,!1),rt(Xt)}}Wn==null||Wn(In)}}function pr(Be){Promise.resolve().then(Be)}var Kn="__RC_UTIL_PATH_SPLIT__",Ue=function(He){return He.join(Kn)},it=function(He){return He.split(Kn)},_t="rc-menu-more";function Ut(){var Be=pe.useState({}),He=(0,be.Z)(Be,2),Ge=He[1],et=(0,pe.useRef)(new Map),bt=(0,pe.useRef)(new Map),Zt=pe.useState([]),Jt=(0,be.Z)(Zt,2),Gn=Jt[0],fr=Jt[1],Wn=(0,pe.useRef)(0),pn=(0,pe.useRef)(!1),dn=function(){pn.current||Ge({})},Cn=(0,pe.useCallback)(function(hr,Pe){var $e=Ue(Pe);bt.current.set($e,hr),et.current.set(hr,$e),Wn.current+=1;var xt=Wn.current;pr(function(){xt===Wn.current&&dn()})},[]),In=(0,pe.useCallback)(function(hr,Pe){var $e=Ue(Pe);bt.current.delete($e),et.current.delete(hr)},[]),cr=(0,pe.useCallback)(function(hr){fr(hr)},[]),jn=(0,pe.useCallback)(function(hr,Pe){var $e=et.current.get(hr)||"",xt=it($e);return Pe&&Gn.includes(xt[0])&&xt.unshift(_t),xt},[Gn]),Zn=(0,pe.useCallback)(function(hr,Pe){return hr.some(function($e){var xt=jn($e,!0);return xt.includes(Pe)})},[jn]),Jn=function(){var Pe=(0,Ye.Z)(et.current.keys());return Gn.length&&Pe.push(_t),Pe},Qn=(0,pe.useCallback)(function(hr){var Pe="".concat(et.current.get(hr)).concat(Kn),$e=new Set;return(0,Ye.Z)(bt.current.keys()).forEach(function(xt){xt.startsWith(Pe)&&$e.add(bt.current.get(xt))}),$e},[]);return pe.useEffect(function(){return function(){pn.current=!0}},[]),{registerPath:Cn,unregisterPath:In,refreshOverflowKeys:cr,isSubPathKey:Zn,getKeyPath:jn,getKeys:Jn,getSubPathKeys:Qn}}function Ke(Be){var He=pe.useRef(Be);He.current=Be;var Ge=pe.useCallback(function(){for(var et,bt=arguments.length,Zt=new Array(bt),Jt=0;Jt1&&(Qn.motionAppear=!1);var hr=Qn.onVisibleChanged;return Qn.onVisibleChanged=function(Pe){return!Cn.current&&!Pe&&Zn(!0),hr==null?void 0:hr(Pe)},jn?null:pe.createElement(Lt,{mode:Zt,locked:!Cn.current},pe.createElement(la.Z,(0,fe.Z)({visible:Jn},Qn,{forceRender:fr,removeOnLeave:!1,leavedClassName:"".concat(Gn,"-hidden")}),function(Pe){var $e=Pe.className,xt=Pe.style;return pe.createElement(Ri,{id:He,className:$e,style:xt},bt)}))}var ti=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],yt=["active"],ht=function(He){var Ge,et=He.style,bt=He.className,Zt=He.title,Jt=He.eventKey,Gn=He.warnKey,fr=He.disabled,Wn=He.internalPopupClose,pn=He.children,dn=He.itemIcon,Cn=He.expandIcon,In=He.popupClassName,cr=He.popupOffset,jn=He.popupStyle,Zn=He.onClick,Jn=He.onMouseEnter,Qn=He.onMouseLeave,hr=He.onTitleClick,Pe=He.onTitleMouseEnter,$e=He.onTitleMouseLeave,xt=(0,_e.Z)(He,ti),rt=se(Jt),It=pe.useContext(le),rn=It.prefixCls,fn=It.mode,On=It.openKeys,wn=It.disabled,Xt=It.overflowDisabled,Nn=It.activeKey,Fn=It.selectedKeys,mr=It.itemIcon,Bn=It.expandIcon,Lr=It.onItemClick,Zr=It.onOpenChange,Dr=It.onActive,zr=pe.useContext(Nt),xr=zr._internalRenderSubMenuItem,Or=pe.useContext(yr),Jr=Or.isSubPathKey,ai=ln(),Ir="".concat(rn,"-submenu"),ci=wn||fr,Pi=pe.useRef(),ta=pe.useRef(),Vi=dn!=null?dn:mr,Bi=Cn!=null?Cn:Bn,Xi=On.includes(Jt),qi=!Xt&&Xi,bi=Jr(Fn,Jt),$i=rr(Jt,ci,Pe,$e),jr=$i.active,di=(0,_e.Z)($i,yt),Ti=pe.useState(!1),ji=(0,be.Z)(Ti,2),Ba=ji[0],$a=ji[1],Aa=function(wa){ci||$a(wa)},ca=function(wa){Aa(!0),Jn==null||Jn({key:Jt,domEvent:wa})},Yi=function(wa){Aa(!1),Qn==null||Qn({key:Jt,domEvent:wa})},Mi=pe.useMemo(function(){return jr||(fn!=="inline"?Ba||Jr([Nn],Jt):!1)},[fn,jr,Nn,Ba,Jt,Jr]),Oa=ar(ai.length),ki=function(wa){ci||(hr==null||hr({key:Jt,domEvent:wa}),fn==="inline"&&Zr(Jt,!Xi))},Qr=Ke(function(fa){Zn==null||Zn(vt(fa)),Lr(fa)}),zi=function(wa){fn!=="inline"&&Zr(Jt,wa)},ua=function(){Dr(Jt)},Ui=rt&&"".concat(rt,"-popup"),ia=pe.createElement("div",(0,fe.Z)({role:"menuitem",style:Oa,className:"".concat(Ir,"-title"),tabIndex:ci?null:-1,ref:Pi,title:typeof Zt=="string"?Zt:null,"data-menu-id":Xt&&rt?null:rt,"aria-expanded":qi,"aria-haspopup":!0,"aria-controls":Ui,"aria-disabled":ci,onClick:ki,onFocus:ua},di),Zt,pe.createElement(ot,{icon:fn!=="horizontal"?Bi:void 0,props:(0,Fe.Z)((0,Fe.Z)({},He),{},{isOpen:qi,isSubMenu:!0})},pe.createElement("i",{className:"".concat(Ir,"-arrow")}))),hi=pe.useRef(fn);if(fn!=="inline"&&ai.length>1?hi.current="vertical":hi.current=fn,!Xt){var pa=hi.current;ia=pe.createElement(Wi,{mode:pa,prefixCls:Ir,visible:!Wn&&qi&&fn!=="inline",popupClassName:In,popupOffset:cr,popupStyle:jn,popup:pe.createElement(Lt,{mode:pa==="horizontal"?"vertical":pa},pe.createElement(Ri,{id:Ui,ref:ta},pn)),disabled:ci,onVisibleChange:zi},ia)}var xa=pe.createElement(nn.Item,(0,fe.Z)({role:"none"},xt,{component:"li",style:et,className:Se()(Ir,"".concat(Ir,"-").concat(fn),bt,(Ge={},(0,tt.Z)(Ge,"".concat(Ir,"-open"),qi),(0,tt.Z)(Ge,"".concat(Ir,"-active"),Mi),(0,tt.Z)(Ge,"".concat(Ir,"-selected"),bi),(0,tt.Z)(Ge,"".concat(Ir,"-disabled"),ci),Ge)),onMouseEnter:ca,onMouseLeave:Yi}),ia,!Xt&&pe.createElement(ea,{id:Ui,open:qi,keyPath:ai},pn));return xr&&(xa=xr(xa,He,{selected:bi,active:Mi,open:qi,disabled:ci})),pe.createElement(Lt,{onItemClick:Qr,mode:fn==="horizontal"?"vertical":fn,itemIcon:Vi,expandIcon:Bi},xa)};function Bt(Be){var He=Be.eventKey,Ge=Be.children,et=ln(He),bt=pi(Ge,et),Zt=sn();pe.useEffect(function(){if(Zt)return Zt.registerPath(He,et),function(){Zt.unregisterPath(He,et)}},[et]);var Jt;return Zt?Jt=bt:Jt=pe.createElement(ht,Be,bt),pe.createElement(yn.Provider,{value:et},Jt)}var an=ce(71002),kn=["className","title","eventKey","children"],ur=["children"],Er=function(He){var Ge=He.className,et=He.title,bt=He.eventKey,Zt=He.children,Jt=(0,_e.Z)(He,kn),Gn=pe.useContext(le),fr=Gn.prefixCls,Wn="".concat(fr,"-item-group");return pe.createElement("li",(0,fe.Z)({role:"presentation"},Jt,{onClick:function(dn){return dn.stopPropagation()},className:Se()(Wn,Ge)}),pe.createElement("div",{role:"presentation",className:"".concat(Wn,"-title"),title:typeof et=="string"?et:void 0},et),pe.createElement("ul",{role:"group",className:"".concat(Wn,"-list")},Zt))};function Br(Be){var He=Be.children,Ge=(0,_e.Z)(Be,ur),et=ln(Ge.eventKey),bt=pi(He,et),Zt=sn();return Zt?bt:pe.createElement(Er,(0,Yn.Z)(Ge,["warnKey"]),bt)}function Hr(Be){var He=Be.className,Ge=Be.style,et=pe.useContext(le),bt=et.prefixCls,Zt=sn();return Zt?null:pe.createElement("li",{role:"separator",className:Se()("".concat(bt,"-item-divider"),He),style:Ge})}var Nr=["label","children","key","type"];function ei(Be){return(Be||[]).map(function(He,Ge){if(He&&(0,an.Z)(He)==="object"){var et=He,bt=et.label,Zt=et.children,Jt=et.key,Gn=et.type,fr=(0,_e.Z)(et,Nr),Wn=Jt!=null?Jt:"tmp-".concat(Ge);return Zt||Gn==="group"?Gn==="group"?pe.createElement(Br,(0,fe.Z)({key:Wn},fr,{title:bt}),ei(Zt)):pe.createElement(Bt,(0,fe.Z)({key:Wn},fr,{title:bt}),ei(Zt)):Gn==="divider"?pe.createElement(Hr,(0,fe.Z)({key:Wn},fr)):pe.createElement(or,(0,fe.Z)({key:Wn},fr),bt)}return null}).filter(function(He){return He})}function gi(Be,He,Ge){var et=Be;return He&&(et=ei(He)),pi(et,Ge)}var Mr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],fi=[],Ai=pe.forwardRef(function(Be,He){var Ge,et,bt=Be,Zt=bt.prefixCls,Jt=Zt===void 0?"rc-menu":Zt,Gn=bt.rootClassName,fr=bt.style,Wn=bt.className,pn=bt.tabIndex,dn=pn===void 0?0:pn,Cn=bt.items,In=bt.children,cr=bt.direction,jn=bt.id,Zn=bt.mode,Jn=Zn===void 0?"vertical":Zn,Qn=bt.inlineCollapsed,hr=bt.disabled,Pe=bt.disabledOverflow,$e=bt.subMenuOpenDelay,xt=$e===void 0?.1:$e,rt=bt.subMenuCloseDelay,It=rt===void 0?.1:rt,rn=bt.forceSubMenuRender,fn=bt.defaultOpenKeys,On=bt.openKeys,wn=bt.activeKey,Xt=bt.defaultActiveFirst,Nn=bt.selectable,Fn=Nn===void 0?!0:Nn,mr=bt.multiple,Bn=mr===void 0?!1:mr,Lr=bt.defaultSelectedKeys,Zr=bt.selectedKeys,Dr=bt.onSelect,zr=bt.onDeselect,xr=bt.inlineIndent,Or=xr===void 0?24:xr,Jr=bt.motion,ai=bt.defaultMotions,Ir=bt.triggerSubMenuAction,ci=Ir===void 0?"hover":Ir,Pi=bt.builtinPlacements,ta=bt.itemIcon,Vi=bt.expandIcon,Bi=bt.overflowedIndicator,Xi=Bi===void 0?"...":Bi,qi=bt.overflowedIndicatorPopupClassName,bi=bt.getPopupContainer,$i=bt.onClick,jr=bt.onOpenChange,di=bt.onKeyDown,Ti=bt.openAnimation,ji=bt.openTransitionName,Ba=bt._internalRenderMenuItem,$a=bt._internalRenderSubMenuItem,Aa=(0,_e.Z)(bt,Mr),ca=pe.useMemo(function(){return gi(In,Cn,fi)},[In,Cn]),Yi=pe.useState(!1),Mi=(0,be.Z)(Yi,2),Oa=Mi[0],ki=Mi[1],Qr=pe.useRef(),zi=Tt(jn),ua=cr==="rtl",Ui=(0,Ft.Z)(fn,{value:On,postState:function(Da){return Da||fi}}),ia=(0,be.Z)(Ui,2),hi=ia[0],pa=ia[1],xa=function(Da){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function go(){pa(Da),jr==null||jr(Da)}Xa?(0,Ie.flushSync)(go):go()},fa=pe.useState(hi),wa=(0,be.Z)(fa,2),Ea=wa[0],Va=wa[1],ha=pe.useRef(!1),ka=pe.useMemo(function(){return(Jn==="inline"||Jn==="vertical")&&Qn?["vertical",Qn]:[Jn,!1]},[Jn,Qn]),Ja=(0,be.Z)(ka,2),Ga=Ja[0],so=Ja[1],Fa=Ga==="inline",Ca=pe.useState(Ga),_i=(0,be.Z)(Ca,2),Ki=_i[0],da=_i[1],Sa=pe.useState(so),Ka=(0,be.Z)(Sa,2),io=Ka[0],ho=Ka[1];pe.useEffect(function(){da(Ga),ho(so),ha.current&&(Fa?pa(Ea):xa(fi))},[Ga,so]);var Oo=pe.useState(0),Ro=(0,be.Z)(Oo,2),lo=Ro[0],Ao=Ro[1],na=lo>=ca.length-1||Ki!=="horizontal"||Pe;pe.useEffect(function(){Fa&&Va(hi)},[hi]),pe.useEffect(function(){return ha.current=!0,function(){ha.current=!1}},[]);var Oi=Ut(),Ta=Oi.registerPath,_a=Oi.unregisterPath,co=Oi.refreshOverflowKeys,ao=Oi.isSubPathKey,hs=Oi.getKeyPath,Qo=Oi.getKeys,ps=Oi.getSubPathKeys,aa=pe.useMemo(function(){return{registerPath:Ta,unregisterPath:_a}},[Ta,_a]),Ar=pe.useMemo(function(){return{isSubPathKey:ao}},[ao]);pe.useEffect(function(){co(na?fi:ca.slice(lo+1).map(function(oo){return oo.key}))},[lo,na]);var xi=(0,Ft.Z)(wn||Xt&&((Ge=ca[0])===null||Ge===void 0?void 0:Ge.key),{value:wn}),wi=(0,be.Z)(xi,2),Di=wi[0],Ha=wi[1],ja=Ke(function(oo){Ha(oo)}),Fo=Ke(function(){Ha(void 0)});(0,pe.useImperativeHandle)(He,function(){return{list:Qr.current,focus:function(Da){var Xa,go=Di!=null?Di:(Xa=ca.find(function(xs){return!xs.props.disabled}))===null||Xa===void 0?void 0:Xa.key;if(go){var yo,Ko,wo;(yo=Qr.current)===null||yo===void 0||(Ko=yo.querySelector("li[data-menu-id='".concat(ue(zi,go),"']")))===null||Ko===void 0||(wo=Ko.focus)===null||wo===void 0||wo.call(Ko,Da)}}}});var Uo=(0,Ft.Z)(Lr||[],{value:Zr,postState:function(Da){return Array.isArray(Da)?Da:Da==null?fi:[Da]}}),ls=(0,be.Z)(Uo,2),va=ls[0],No=ls[1],cs=function(Da){if(Fn){var Xa=Da.key,go=va.includes(Xa),yo;Bn?go?yo=va.filter(function(wo){return wo!==Xa}):yo=[].concat((0,Ye.Z)(va),[Xa]):yo=[Xa],No(yo);var Ko=(0,Fe.Z)((0,Fe.Z)({},Da),{},{selectedKeys:yo});go?zr==null||zr(Ko):Dr==null||Dr(Ko)}!Bn&&hi.length&&Ki!=="inline"&&xa(fi)},ul=Ke(function(oo){$i==null||$i(vt(oo)),cs(oo)}),As=Ke(function(oo,Da){var Xa=hi.filter(function(yo){return yo!==oo});if(Da)Xa.push(oo);else if(Ki!=="inline"){var go=ps(oo);Xa=Xa.filter(function(yo){return!go.has(yo)})}(0,_n.Z)(hi,Xa,!0)||xa(Xa,!0)}),ms=function(Da,Xa){var go=Xa!=null?Xa:!hi.includes(Da);As(Da,go)},zo=nr(Ki,Di,ua,zi,Qr,Qo,hs,Ha,ms,di);pe.useEffect(function(){ki(!0)},[]);var Ts=pe.useMemo(function(){return{_internalRenderMenuItem:Ba,_internalRenderSubMenuItem:$a}},[Ba,$a]),Ds=Ki!=="horizontal"||Pe?ca:ca.map(function(oo,Da){return pe.createElement(Lt,{key:oo.key,overflowDisabled:Da>lo},oo)}),Ys=pe.createElement(nn,(0,fe.Z)({id:jn,ref:Qr,prefixCls:"".concat(Jt,"-overflow"),component:"ul",itemComponent:or,className:Se()(Jt,"".concat(Jt,"-root"),"".concat(Jt,"-").concat(Ki),Wn,(et={},(0,tt.Z)(et,"".concat(Jt,"-inline-collapsed"),io),(0,tt.Z)(et,"".concat(Jt,"-rtl"),ua),et),Gn),dir:cr,style:fr,role:"menu",tabIndex:dn,data:Ds,renderRawItem:function(Da){return Da},renderRawRest:function(Da){var Xa=Da.length,go=Xa?ca.slice(-Xa):null;return pe.createElement(Bt,{eventKey:_t,title:Xi,disabled:na,internalPopupClose:Xa===0,popupClassName:qi},go)},maxCount:Ki!=="horizontal"||Pe?nn.INVALIDATE:nn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Da){Ao(Da)},onKeyDown:zo},Aa));return pe.createElement(Nt.Provider,{value:Ts},pe.createElement(Ee.Provider,{value:zi},pe.createElement(Lt,{prefixCls:Jt,rootClassName:Gn,mode:Ki,openKeys:hi,rtl:ua,disabled:hr,motion:Oa?Jr:null,defaultMotions:Oa?ai:null,activeKey:Di,onActive:ja,onInactive:Fo,selectedKeys:va,inlineIndent:Or,subMenuOpenDelay:xt,subMenuCloseDelay:It,forceSubMenuRender:rn,builtinPlacements:Pi,triggerSubMenuAction:ci,getPopupContainer:bi,itemIcon:ta,expandIcon:Vi,onItemClick:ul,onOpenChange:As},pe.createElement(yr.Provider,{value:Ar},Ys),pe.createElement("div",{style:{display:"none"},"aria-hidden":!0},pe.createElement(hn.Provider,{value:aa},ca)))))}),Si=Ai,Ce=Si;Ce.Item=or,Ce.SubMenu=Bt,Ce.ItemGroup=Br,Ce.Divider=Hr;var Ne=Ce},66680:function(Ln,qt,ce){"use strict";ce.d(qt,{Z:function(){return tt}});var fe=ce(67294);function tt(Fe){var Ye=fe.useRef();Ye.current=Fe;var be=fe.useCallback(function(){for(var _e,Le=arguments.length,Se=new Array(Le),pe=0;pe2&&arguments[2]!==void 0?arguments[2]:!1,Le=new Set;function Se(pe,Te){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ze=Le.has(pe);if((0,tt.ZP)(!ze,"Warning: There may be circular references"),ze)return!1;if(pe===Te)return!0;if(_e&>>1)return!1;Le.add(pe);var Pt=gt+1;if(Array.isArray(pe)){if(!Array.isArray(Te)||pe.length!==Te.length)return!1;for(var kt=0;kt