You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Question__AddOrEdit__ind...

1174 lines
1.4 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[6913],{65363:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return se}});var Ye=Ge(32855),mt=Ge(59301),y={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Ce=y,ye=Ge(7657),x=function(ee,fe){return mt.createElement(ye.Z,(0,Ye.Z)({},ee,{ref:fe,icon:Ce}))},z=mt.forwardRef(x),se=z},76618:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return se}});var Ye=Ge(32855),mt=Ge(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},Ce=y,ye=Ge(7657),x=function(ee,fe){return mt.createElement(ye.Z,(0,Ye.Z)({},ee,{ref:fe,icon:Ce}))},z=mt.forwardRef(x),se=z},66543:function(){"use strict"},59598:function(){"use strict"},21697:function(Ht,_t){"use strict";_t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},45298:function(){"use strict"},11081: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 Ht={},_t="5.0",Ge={},Ye=null,mt=!1,y=!1,Ce=null,ye=!1,x=null,z=null,se=0;se<arguments.length;se++){var ae=arguments[se];if(ae!==null)switch(typeof ae){case"number":_t=ae.toFixed(1);break;case"string":ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?_t=ae:Ce=ae;break;case"object":typeof ae.is3D!="undefined"?Ye=ae:Ge=ae;break;case"boolean":mt=ae,y=!0;break}}Ye===null&&(Ye={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ge.material_id!==void 0&&!y&&(mt=!0)),Ce!==null&&Ge.id===void 0&&(Ge.id=Ce);var ee="",fe="",E=!1,re=null,ne=null,le=null,ue=!1,he=null,pe=null,ve=null,de=null,we=null;Ge.height!==void 0&&(Ge.height=Math.round(Ge.height)),Ge.width!==void 0&&(Ge.width=Math.round(Ge.width));var Te=function(Ve){return parseFloat(Ve)>4?parseFloat(Ve):5};Ht.setHTML5Codebase=function(Ve,Ke){z=Ve,qe(Ve,Ke)},Ht.setJavaCodebase=Ht.setJavaCodebaseVersion=Ht.isCompiledInstalled=Ht.setPreCompiledScriptPath=Ht.setPreCompiledResourcePath=function(){},Ht.setHTML5CodebaseVersion=function(Ve,Ke){var ze=parseFloat(Ve);if(ze!==NaN&&ze<5){console.log("The GeoGebra HTML5 codebase version "+ze+" is deprecated. Using version latest instead.");return}x=Ve,Fe(Ve,Ke)},Ht.getHTML5CodebaseVersion=function(){return ne},Ht.getParameters=function(){return Ge},Ht.setFontsCSSURL=function(Ve){de=Ve},Ht.setGiacJSURL=function(Ve){},Ht.setJNLPFile=function(Ve){ee=Ve},Ht.setJNLPBaseDir=function(Ve){},Ht.inject=function(){function Ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ke="auto",ze=Ge.id,at,Qe=!1,ut=0;ut<arguments.length;ut++){var st=arguments[ut];typeof st=="string"?(st=st.toLowerCase(),st.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ke=st:ze=arguments[ut]):typeof st=="boolean"?Qe=st:st instanceof HTMLElement&&(at=st)}Xe();function Xe(){if(!ye){setTimeout(Xe,200);return}Ke=it(Ke);var Le=at||document.getElementById(ze);if(!Le){console.log("possibly bug on ajax loading? ");return}if(Ht.removeExistingApplet(Le,!1),Ge.width===void 0&&Le.clientWidth&&(Ge.width=Le.clientWidth),Ge.height===void 0&&Le.clientHeight&&(Ge.height=Le.clientHeight),!(Ge.width&&Ge.height)&&Ke==="html5"&&(delete Ge.width,delete Ge.height),re=Ke,Ke==="screenshot")ke(Le,Ge);else{var De=!1;Ge.hasOwnProperty("playButton")&&Ge.playButton||Ge.hasOwnProperty("clickToLoad")&&Ge.clickToLoad?De=!0:Ge.hasOwnProperty("playButtonAutoDecide")&&Ge.playButtonAutoDecide&&(De=(!je()||Ve())&&Me()),De?(re="screenshot",Ze(Le,Ge,Qe,Ke)):Ie(Le,Ge,Qe)}}};function je(){try{return window.self!==window.top}catch(Ve){return!0}}function Me(){return Ge.hasOwnProperty("screenshotGenerator")&&Ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ht.getViews=function(){return Ye},Ht.isJavaInstalled=function(){return!1};var Ae=function(Ve){var Ke=function(ut){var st=JSON.parse(ut),Xe=function(te){return te.type=="G"||te.type=="E"},Le=st.elements?st.elements.filter(Xe)[0]:st;if(!Le||!Le.url){ze();return}Ge.fileName=Le.url,ge(Le.settings||{}),Ye.is3D=!0;var De="https://www.geogebra.org/images/";Ht.setPreviewImage(he||Le.previewUrl,De+"GeoGebra_loading.png",De+"applet_play.png"),Ve()},ze=function(){Ge.onError&&Ge.onError(),rt("Error: Fetching material (id "+Ge.material_id+") failed.",Ge)},at=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+Ge.material_id+"?scope=basic";be("https://"+at+"/api/proxy.php?path="+encodeURIComponent(Qe),Ke,ze)};function ge(Ve){var Ke=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ze){Ve[ze]=!!Ve[ze]}),Ke.forEach(function(ze){Ge[ze]===void 0&&Ve[ze]!==void 0&&(Ge[ze]=Ve[ze])}),Ge.showToolBarHelp===void 0&&(Ge.showToolBarHelp=Ge.showToolBar)}function be(Ve,Ke,ze){var at=new XMLHttpRequest;at.open("GET",Ve),at.onload=function(){Ke(at.responseText)},at.onerror=ze,at.send()}Ht.isHTML5Installed=function(){return!0},Ht.getLoadedAppletType=function(){return re},Ht.setPreviewImage=function(Ve,Ke,ze){he=Ve,pe=Ke,ve=ze},Ht.removeExistingApplet=function(Ve,Ke){var ze;typeof Ve=="string"&&(Ve=document.getElementById(Ve)),re=null;var at=null;for(ze=0;ze<Ve.childNodes.length;ze++){var Qe=Ve.childNodes[ze],ut=Qe.className;ut==="applet_screenshot"?Ke?(Qe.style.display="block",re="screenshot"):Qe.style.display="none":ut!=="applet_scaler prerender"&&(Ve.removeChild(Qe),at=ut&&ut.indexOf("appletParameters")!=-1?Qe.id:null,ze--)}var st=Ge.id!==void 0?Ge.id:at,Xe=window[st];Xe&&typeof Xe.getBase64=="function"&&(Xe.remove(),window[st]=null)},Ht.refreshHitPoints=function(){if(Te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ve=Ht.getAppletObject();return Ve&&typeof Ve.recalculateEnvironments=="function"?(Ve.recalculateEnvironments(),!0):!1},Ht.startAnimation=function(){var Ve=Ht.getAppletObject();return Ve&&typeof Ve.startAnimation=="function"?(Ve.startAnimation(),!0):!1},Ht.stopAnimation=function(){var Ve=Ht.getAppletObject();return Ve&&typeof Ve.stopAnimation=="function"?(Ve.stopAnimation(),!0):!1},Ht.getAppletObject=function(){var Ve=Ge.id!==void 0?Ge.id:"ggbApplet";return window[Ve]},Ht.resize=function(){};var Ee=function(Ve,Ke,ze){var at=document.createElement("param");at.setAttribute("name",Ke),at.setAttribute("value",ze),Ve.appendChild(at)},Re=function(Ve){return Ve&&Ve!=="false"},Ie=function(Ve,Ke,ze){Te(ne)<=4.2&&(ze=!0);var at=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(at=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ut=Ke.width,st=Ke.height;if(Ke.disableAutoScale=Ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ke.disableAutoScale,Ke.width!==void 0)if(Te(ne)<=4.4)Re(Ke.showToolBar)&&(Ke.height-=7),Re(Ke.showAlgebraInput)&&(Ke.height-=37),Ke.width<605&&Re(Ke.showToolBar)&&(Ke.width=605,ut=605);else{var Xe=100;(Re(Ke.showToolBar)||Re(Ke.showMenuBar))&&(Ke.hasOwnProperty("customToolBar")&&(Ke.customToolbar=Ke.customToolBar),Xe=Re(Ke.showMenuBar)?245:155),ut<Xe&&(Ke.width=Xe,ut=Xe)}Qe.style.border="none",Qe.style.display="inline-block";for(var Le in Ke)Ke.hasOwnProperty(Le)&&Le!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Le,Ke[Le]);de&&Qe.setAttribute("data-param-fontscssurl",de),Ht.resize=function(){GGBAppletUtils.responsiveResize(Ve,Ke)},window.addEventListener("resize",function(ct){Ht.resize()});var De=typeof Ke.appletOnLoad=="function"?Ke.appletOnLoad:function(){};if(!ze&&Ke.width!==void 0){Ke.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var te=Ve.querySelector(".applet_scaler.prerender"),ce=te!==null;if(ce)var _e=te.querySelector(".ggb_preview");else{var _e=$e(ut,st,Ke.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=ut+"px",te.style.height=st+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),Te(ne)>=5?(Ke.appletOnLoad=function(ct){var pt=Ve.querySelector(".ggb_preview");pt&&pt.parentNode.removeChild(pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),De(ct)},ce||te.appendChild(_e)):Qe.appendChild(_e),te.appendChild(Qe),ce||Ve.appendChild(te),setTimeout(function(){Ht.resize()},1)}else{var Ue=document.createElement("div");Ue.className="applet_scaler",Ue.style.position="relative",Ue.style.display="block",Ue.appendChild(Qe),Ve.appendChild(Ue),Ke.appletOnLoad=function(ct){Ht.resize(),De(ct)}}function xe(ct,pt){pt&&typeof pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ct,pt.appletOnLoad):renderGGBElement(ct),rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",pt)}function Se(ct,pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ct,params:pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(St){xe(St.article,St.params)}),html5AppletsToProcess=null)},Te(ne)<5&&(ct.className+=" geogebraweb")):xe(ct,pt)}if(at){scriptLoadStarted=!0;for(var Oe=0;Oe<Qe.childNodes.length;Oe++){var We=Qe.childNodes[Oe].tagName;We==="TABLE"&&(Qe.removeChild(Qe.childNodes[Oe]),Oe--)}if(ggbHTML5LoadedScript!==null){var et=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');et!=null&&et.parentNode.removeChild(et)}var nt=document.createElement("script"),dt=function(){Se(Qe,Ke)};nt.src=fe+le,ggbHTML5LoadedCodebaseIsWebSimple=ue,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=nt.src,rt("GeoGebra HTML5 codebase loaded: '"+fe+"'.",Ke),!z&&(!x||x=="5.0")?(ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dt()):fe.requirejs?__webpack_require__.e(981).then(function(){var ct=[__webpack_require__(60981)];dt.apply(null,ct)}.bind(this)).catch(__webpack_require__.oe):(nt.onload=dt,Ve.appendChild(nt))}else Se(Qe,Ke);Ke.height=st,Ke.width=ut},ke=function(Ve,Ke,ze){var at=$e(Ke.width,Ke.height,Ke.borderColor,ze),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Ke.width+"px",Qe.style.height=Ke.height+"px",Qe.className="applet_screenshot applet_scaler"+(ze?" applet_screenshot_play":""),Qe.appendChild(at);var ut=GGBAppletUtils.getScale(Ke,Ve,ze);ze?(Ve.appendChild(He()),window.GGBT_wsf_view||(Ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Ve.appendChild(Qe),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(Qe,ut),Qe.style.width=Ke.width+"px",Qe.style.height=Ke.height+"px",Qe.parentNode.style.width=Ke.width*ut+"px",Qe.parentNode.style.height=Ke.height*ut+"px"),Ht.resize=function(){Pe(Ve,at,Qe,ze)},window.addEventListener("resize",function(st){Ht.resize()}),Ht.resize()};function Pe(Ve,Ke,ze,at){if(Ve.contains(Ke)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ve)}var Qe=GGBAppletUtils.getScale(Ge,Ve,at);ze.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(ze,Qe),ze.parentNode.style.width=Ge.width*Qe+"px",ze.parentNode.style.height=Ge.height*Qe+"px"):(GGBAppletUtils.scaleElement(ze,1),ze.parentNode.style.width=Ge.width+"px",ze.parentNode.style.height=Ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ve),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ht.onExitFullscreen=function(Ve,Ke){Ke.appendChild(Ve)};var Ze=function(Ve,Ke,ze,at){ke(Ve,Ke,!0);for(var Qe=function(){var Xe=[];for(st=0;st<Ve.childNodes.length;st++)Xe.push(Ve.childNodes[st]);if(window.GGBT_wsf_view){var Le=window.GGBT_wsf_view.renderFullScreen(Ve,Ke.id),De=document.getElementById("fullscreencontainer"),te=jQuery(Ve).find(".fullscreencontent");te.length>0?(Le.remove(),te.attr("id","fullscreencontent").show(),jQuery(De).append(te),window.dispatchEvent(new Event("resize"))):Ie(Le,Ke,!1),window.GGBT_wsf_view.launchFullScreen(De)}else re=at,Ie(Ve,Ke,!1);if(!window.GGBT_wsf_view)for(st=0;st<Xe.length;st++)Ve.removeChild(Xe[st])},ut=Ve.getElementsByClassName("ggb_preview_play"),st=0;st<ut.length;st++)ut[st].addEventListener("click",Qe,!1),ut[st].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ve),Me()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},He=function(){var Ve=document.createElement("div");if(Ve.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ke='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',ze=document.createElement("style");ze.styleSheet?ze.styleSheet.cssText=Ke:ze.appendChild(document.createTextNode(Ke)),document.getElementsByTagName("head")[0].appendChild(ze)}return Ve},$e=function(Ve,Ke,ze,at){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Ve-2+"px",Qe.style.height=Ke-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var ut="lightgrey";ze!==void 0&&(ze==="none"?ut="transparent":ut=ze),Qe.style.border="1px solid "+ut;var st=document.createElement("img");if(st.style.position="relative",st.style.zIndex="1000",st.style.top="-1px",st.style.left="-1px",he!==null&&st.setAttribute("src",he),st.style.opacity=.7,pe!==null){var Xe,Le,De;if(!at){Xe=document.createElement("img"),Xe.style.position="absolute",Xe.style.zIndex="1001",Xe.style.opacity=1,st.style.opacity=.3,Le=360,Le>Ve/4*3&&(Le=Ve/4*3),De=Le/5.8,Xe.setAttribute("src",pe),Xe.setAttribute("width",Le),Xe.setAttribute("height",De);var te=(Ve-Le)/2,ce=(Ke-De)/2;Xe.style.left=te+"px",Xe.style.top=ce+"px",Qe.appendChild(Xe)}}return Qe.appendChild(st),Qe},it=function(Ve){return Ve=Ve.toLowerCase(),Ve==="html5"||Ve==="screenshot"?Ve:"html5"},Ne=["web","webSimple","web3d","tablet","tablet3d","phone"],Fe=function(Ve,Ke){if(ne=Ve,Ke){qe(ne,!0);return}var ze=!mt;if(ze){var at=Te(ne);!isNaN(at)&&at<4.4&&(ze=!1)}var Qe,ut;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var st=ne.indexOf("//");st>0?ut=ne:st===0?ut=Qe+ne:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var Xe in Ne)if(ne.slice(Ne[Xe].length*-1)===Ne[Xe]||ne.slice((Ne[Xe].length+1)*-1)===Ne[Xe]+"/"){qe(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ze&&!Ye.is3D&&!Ye.AV&&!Ye.SV&&!Ye.CV&&!Ye.EV2&&!Ye.CP&&!Ye.PC&&!Ye.DA&&!Ye.FI&&!Ye.PV&&!Re(Ge.showToolBar)&&!Re(Ge.showMenuBar)&&!Re(Ge.showAlgebraInput)&&!Re(Ge.enableRightClick)&&(!Ge.appName||Ge.appName=="classic")?ut+="webSimple/":ut+="web3d/",qe(ut,!1)},qe=function(Ve,Ke){if(Ve.requirejs){fe=Ve;return}Ve.slice(-1)!=="/"&&(Ve+="/"),fe=Ve,Ke===null&&(Ke=Ve.indexOf("http")===-1),E=Ke,le="web.nocache.js",ue=!1;var ze=fe.split("/");ze.length>1&&(!Ke&&ze[ze.length-2]==="webSimple"?(le="webSimple.nocache.js",ue=!0):Ne.indexOf(ze[ze.length-2])>=0&&(le=ze[ze.length-2]+".nocache.js")),ze=Ve.split("/"),ne=ze[ze.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var at=parseFloat(ne);at!==NaN&&at<5&&Ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead."),Fe("5.0",Ke))},rt=function(Ve,Ke){window.console&&window.console.log&&(!Ke||typeof Ke.showLogging=="undefined"||Ke.showLogging&&Ke.showLogging!=="false")&&console.log(Ve)};Ge.material_id!==void 0?Ae(tt):tt();function tt(){var Ve=_t;x!==null?Ve=x:parseFloat(Ve)<5&&(Ve="5.0"),Fe(Ve,!1),z!==null&&qe(z,E),ye=!0}return Ht},GGBAppletUtils=function(){"use strict";function Ht(){return window.GGBT_wsf_edit!==void 0}function _t(ye,x){x!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+x+","+x+")",ye.style.webkitTransform="scale("+x+","+x+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function Ge(ye,x,z,se,ae,ee){var fe=null;if(ee!=null&&ee!="")for(var E=ye.parentNode;E!=null;)if((" "+E.className+" ").indexOf(" "+ee+" ")>-1){fe=E;break}else E=E.parentNode;var re=0,ne=0,le=0,ue=0,he=0,pe=0,ve=0;if(fe)re=fe.offsetWidth,ne=Math.max(se?fe.offsetWidth:0,fe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),le=re):(re=window.innerWidth,ne=window.innerHeight,le=window.innerWidth),ye){var de=ye.getBoundingClientRect();de.left>0&&de.left<=re&&(ae===void 0||!ae)&&(document.dir==="rtl"?(he=re-de.width-de.left,pe=le<=480?10:30):(pe=de.left,he=le<=480?10:30),ue=pe+he)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var we=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,ve=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,ve=40)}}return ye&&((z===void 0||!z)&&x>0&&x+ue<re?re=x:re-=ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(ne-=ve)),{width:re,height:ne}}function Ye(ye,x,z,se,ae){if(ye.isScreenshoGenerator)return 1;var ee=se!==void 0&&se,fe=ye.noScaleMargin!=null&&ye.noScaleMargin,E=function(we){return we&&we!=="false"},re=E(ye.autoHeight),ne=Ge(x,ye.width,z,re,ee&&window.GGBT_wsf_view||fe,ae),le=parseInt(ne.width),ue=ye.width,he=ye.height;if(ue===void 0){var pe=x.querySelector(".appletParameters");pe&&(ue=pe.offsetWidth,he=pe.offsetHeight)}var ve=le/ue,de=ee?1:ne.height/he;return z!==void 0&&!z&&(ve=Math.min(1,ve),de=Math.min(1,de)),Math.min(ve,de)}function mt(ye,x,z){var se=1,ae,ee=!1;if(ye.hasOwnProperty("allowUpscale")&&(ee=ye.allowUpscale),ye.hasOwnProperty("scale")&&(se=parseFloat(ye.scale),(isNaN(se)||se===null||se===0)&&(se=1),se>1&&(ee=!0)),x&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))ae=Ye(ye,x,ee,z,ye.scaleContainerClass);else return se;return ee&&(!ye.hasOwnProperty("scale")||se===1)?ae:Math.min(se,ae)}function y(ye){var x=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),se=ye.getBoundingClientRect(),ae=(x-se.width)/2,ee=(z-se.height)/2;ee<0&&(ee=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ae<40?ye.style.left="40px":ye.style.left=ae+"px",ye.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?ye.style.top="40px":ye.style.top=ee+"px",ye.style.left=ae+"px")}function Ce(ye,x){var z=ye.querySelector(".appletParameters");if(z){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(x.id!==z.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var se=mt(x,ye);Ht()&&z.setAttribute("data-param-scale",se);for(var ae=null,ee=0;ee<ye.childNodes.length;ee++)if(ye.childNodes[ee].className!==void 0&&ye.childNodes[ee].className.match(/^applet_scaler/)){ae=ye.childNodes[ee];break}if(ae!==null&&ae.querySelector(".noscale")!==null)return;var fe=x.id!==void 0?x.id:"ggbApplet",E=window[fe];(E==null||!E.recalculateEnvironments)&&ae!==null&&!ae.className.match(/fullscreen/)&&(ae.parentNode.style.transform="",!isNaN(se)&&se!==1?(ae.parentNode.style.width=x.width*se+"px",ae.parentNode.style.height=x.height*se+"px",_t(ae,se)):(_t(ae,1),ae.parentNode.style.width=x.width+"px",ae.parentNode.style.height=x.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:Ce,isFlexibleWorksheetEditor:Ht,positionCenter:y,getScale:mt,scaleElement:_t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Ht=n.location.search;return Ht.indexOf(J)!=-1||Ht.indexOf(K)!=-1}function q(Ht,_t){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Ht){var _t=s[L].bindings;s[L].bindings=function(){for(var Ge=_t?_t():{},Ye=Ht[webModule.__softPermutationId],mt=O;mt<Ye.length;mt++){var y=Ye[mt];Ge[y[O]]=y[P]}return Ge}};var t;function u(){return v(),t}function v(){if(!t){var Ht=o.createElement(Q);if(Ht.id=L,Ht.style.cssText=R+S,Ht.tabIndex=-1,o.body.appendChild(Ht),t=Ht.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var _t=document.compatMode==U?V:W;t.write(_t+X),t.close()}}}function w(Ht){function _t(Ye){function mt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=mt();if(y){Ye();return}function Ce(){if(!y){if(!mt())return;y=!0,Ye(),o.removeEventListener&&o.removeEventListener(Z,Ce,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,Ce,!1);var ye=setInterval(function(){Ce()},$)}function Ge(Ye){var mt=u(),y=mt.body,Ce=mt.createElement(_);Ce.language=ab,Ce.crossOrigin=W,Ce.src=Ye,webModule.__errFn&&(Ce.onerror=function(){webModule.__errFn(L,new Error(bb+Ye))}),y.appendChild(Ce)}_t(function(){Ge(Ht)})}webModule.__startLoadingFragment=function(Ht){return C(Ht)},webModule.__installRunAsyncCode=function(Ht){var _t=u(),Ge=_t.body,Ye=_t.createElement(_);Ye.language=ab,Ye.text=Ht,Ge.appendChild(Ye),Ge.removeChild(Ye)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ht){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ht){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ht){var _t=c[Ht];return _t==null?null:_t},r=d,webModule.__errFn=e}function B(){function Ht(ye){var x=ye.lastIndexOf(rb);x==-1&&(x=ye.length);var z=ye.indexOf(sb);z==-1&&(z=ye.length);var se=ye.lastIndexOf(tb,Math.min(z,x));return se>=O?ye.substring(O,se+P):W}function _t(ye){if(!ye.match(/^\w+:\/\//)){var x=o.createElement(ub);x.src=ye+vb,ye=Ht(x.src)}return ye}function Ge(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function Ye(){for(var ye=o.getElementsByTagName(_),x=O;x<ye.length;++x)if(ye[x].src.indexOf(xb)!=-1)return Ht(ye[x].src);return W}function mt(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function y(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var Ce=Ge();return Ce==W&&(Ce=Ye()),Ce==W&&(Ce=mt()),Ce==W&&y()&&(Ce=Ht(o.location.href)),Ce=_t(Ce),Ce}function C(Ht){return Ht.match(/^\//)||Ht.match(/^[a-zA-Z]+:\/\//)?Ht:webModule.__moduleBase+Ht}function D(){var Ht=[],_t=O,Ge=[],Ye=[];function mt(ye){var x=Ye[ye](),z=Ge[ye];if(x in z)return x;var se=[];for(var ae in z)se[z[ae]]=ae;throw r&&r(ye,se,x),null}if(__gwt_isKnownPropertyValue=function(ye,x){return x in Ge[ye]},webModule.__getPropMap=function(){var ye={};for(var x in Ge)Ge.hasOwnProperty(x)&&(ye[x]=mt(x));return ye},webModule.__computePropValue=mt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var Ce=y.indexOf(Db);Ce!=-1&&(_t=parseInt(y.substring(Ce+P),$),y=y.substring(O,Ce))}catch(ye){}return webModule.__softPermutationId=_t,C(y+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},67303:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Ax:function(){return Ce},Ds:function(){return ye},KI:function(){return z},SI:function(){return y},f1:function(){return mt}});var Ye=Ge(90524);function mt(se){let ae=!0;if(se.length>0){for(let ee=0;ee<se.length;ee++)if(se[ee].compile_success==0||!se[ee].compile_success){ae=!1;break}}else ae=!1;return ae}function y(se,ae=""){let ee=[];for(let fe=0;fe<se.length;fe++){let E=se[fe],re=ae?`${ae}/${E.name}`:`${E.name}`;ee.push({title:E.name,type:E.type,isLeaf:E.type!=="tree",key:re})}return ee}function Ce(se,ae,ee){for(let fe=0;fe<se.length;fe++){let E=se[fe];if(E.key===ae){E.children=ee;break}E.children&&Ce(E.children,ae,ee)}return se}function ye(se,ae,ee){let fe;return function(){let E=this,re=arguments,ne=function(){fe=null,ee||se.apply(E,re)},le=ee&&!fe;clearTimeout(fe),fe=setTimeout(ne,ae),le&&se.apply(E,re)}}const x=!0,z=Ye.Z.API_SERVER},6077:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return fe}});var Ye=Ge(59301),mt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=Ge(92310),Ce=Ge.n(y),ye=Ge(29787),x=Ge(2859),z=Ge(82093),se=Ge(49661),ae=(E,re,ne)=>new Promise((le,ue)=>{var he=de=>{try{ve(ne.next(de))}catch(we){ue(we)}},pe=de=>{try{ve(ne.throw(de))}catch(we){ue(we)}},ve=de=>de.done?le(de.value):Promise.resolve(de.value).then(he,pe);ve((ne=ne.apply(E,re)).next())}),fe=({data:E,className:re,fullWidth:ne,style:le={},onClose:ue,onOk:he,showFullTools:pe,noAssociationId:ve})=>{const de=(0,Ye.useRef)(null),we=(0,Ye.useRef)(null),Te=(0,Ye.useRef)(null),je=(0,Ye.useRef)(null),[Me,Ae]=(0,Ye.useState)(!1),[ge,be]=(0,Ye.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ye.useEffect)(()=>(Te.current||(Te.current=document.createElement("style"),document.head.appendChild(Te.current)),E!=null&&E.visible?(document.body.setAttribute("data-custom","y-hidden"),Te.current.innerHTML=" html { overflow-y: hidden; }",E!=null&&E.src&&Ee()):(document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)),()=>{document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)}),[E==null?void 0:E.visible]);const Ee=()=>ae(void 0,null,function*(){Ae(!0),be("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Pe=yield(0,se.ZJ)(E==null?void 0:E.src);de.current.src="",de.current.src=Pe,de.current.onload=function(){ke()},Ae(!1),be("")}),Re=Pe=>ae(void 0,null,function*(){Ae(!0),be("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ze=yield(0,z.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:E.title,file:Pe.dataUrl}});Ze!=null&&Ze.id&&!ve?(yield(0,z.ZP)(`/api/attachments/${E.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ze==null?void 0:Ze.id,settings:JSON.stringify(Pe.state)}})).status===0&&he():Ze!=null&&Ze.id&&he(Ze),Ae(!1),be("")}),Ie=()=>{const Pe=document.querySelector('a[href="https://markerjs.com/"]');Pe&&Pe.parentNode&&(Pe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(He=>{const $e=document.querySelector(He.name);$e&&$e.setAttribute("title",He.title)})},ke=()=>{we.current=new x.hP(de.current),we.current.targetRoot=je.current,we.current.addEventListener("render",Re),we.current.addEventListener("beforeclose",ue),pe&&(we.current.availableMarkerTypes=we.current.ALL_MARKER_TYPES,we.current.uiStyleSettings.redoButtonVisible=!0,we.current.uiStyleSettings.notesButtonVisible=!0,we.current.uiStyleSettings.zoomButtonVisible=!0,we.current.uiStyleSettings.zoomOutButtonVisible=!0,we.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=we.current.uiStyleSettings,we.current.show(),E!=null&&E.snapshotData&&we.current.restoreState(E.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ie()},300)};return Ye.createElement(Ye.Fragment,null,(E==null?void 0:E.visible)&&Ye.createElement(ye.Z,{spinning:Me,tip:ge,style:{position:"absolute",width:"100vw"}},Ye.createElement("div",{ref:je,className:Ce()(mt.imageDimensions,re,ne?mt.fullWidth:""),style:le},Ye.createElement("img",{className:mt.img,ref:de}))))}},88615:function(Ht,_t,Ge){"use strict";var Ye=Ge(59301),mt=Ge(77019),y=Ge(5269),Ce=Ge(20554),ye=Ge(99571),x=Ge(38394),z=Ge(21697),se=Ge(48136),ae=Ge(59301);const ee=(0,Ye.forwardRef)(({callback:fe,showSaveButton:E,value:re=""},ne)=>{const le=(0,Ye.useRef)(),ue=[{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 "}]}]}],he=[{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}`}]}]}],pe=we=>{le.current.setValue(le.current.getValue()+" "+we.value+" ")},ve=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ae.createElement(mt.Z,{className:z.Z.lists,gutter:[10,10]},ue.map((we,Te)=>ae.createElement(y.Z,{flex:"110px",className:z.Z.item},ae.createElement("div",null,ae.createElement(x.Z,{value:`$$${we.value}$$`}),we.name),ae.createElement("div",{className:z.Z.children},we.children.map((je,Me)=>ae.createElement("div",{key:Me},ae.createElement("h1",null,je.name),ae.createElement(mt.Z,{gutter:[10,10]},je.data.map((Ae,ge)=>ae.createElement(y.Z,{key:ge,onClick:()=>pe(Ae),className:z.Z.diamond},ae.createElement(x.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ae.createElement(mt.Z,{className:z.Z.lists,gutter:[10,10]},he.map((we,Te)=>ae.createElement(y.Z,{flex:"110px",className:z.Z.item},ae.createElement("div",null,ae.createElement(x.Z,{value:"`$$"+we.value+"$$`"}),we.name),ae.createElement("div",{className:z.Z.children},we.children.map((je,Me)=>ae.createElement("div",{key:Me},je.name&&ae.createElement("h1",null,je.name),ae.createElement(mt.Z,{gutter:[10,10]},je.data.map((Ae,ge)=>ae.createElement(y.Z,{key:ge,onClick:()=>pe(Ae),className:z.Z.diamond},ae.createElement(x.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],de=()=>{var we=document.createElement("div");we.innerHTML=le.current.getValue();var Te=we.innerText;return fe&&fe(Te),Te};return(0,Ye.useImperativeHandle)(ne,()=>({getData:de})),ae.createElement("div",{className:z.Z.mathWrap},ae.createElement(Ce.default,{defaultActiveKey:"1",items:ve}),ae.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:le,style:{width:800,marginTop:30,fontSize:18}},re||""),E&&ae.createElement("div",{className:z.Z.button},ae.createElement(ye.ZP,{size:"large",onClick:de,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});_t.Z=ee},57884:function(Ht,_t,Ge){"use strict";var Ye=Ge(59301),mt=Ge(93314),y=Ge(99571),Ce=Object.defineProperty,ye=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ee=(ne,le,ue)=>le in ne?Ce(ne,le,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ne[le]=ue,fe=(ne,le)=>{for(var ue in le||(le={}))se.call(le,ue)&&ee(ne,ue,le[ue]);if(z)for(var ue of z(le))ae.call(le,ue)&&ee(ne,ue,le[ue]);return ne},E=(ne,le)=>ye(ne,x(le));const re=({img:ne,buttonProps:le={},styles:ue={},customText:he,ButtonText:pe,ButtonClick:ve,Buttonclass:de,ButtonTwo:we,imgStyles:Te,loading:je=!1,className:Me=""})=>Ye.createElement("section",{className:`tc animated fadeIn ${Me}`,style:fe({color:"#999",margin:"100px auto",visibility:je?"hidden":"visible"},ue)},Ye.createElement("img",{src:ne||mt,style:E(fe({},Te),{pointerEvents:"none",userSelect:"none"})}),Ye.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),pe&&Ye.createElement(y.ZP,fe({className:de,onClick:ve},le),pe),we&&we);_t.Z=re},41550:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return de}});var Ye=Ge(59301),mt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=Ge(99571),Ce=Ge(70557),ye=Ge(51124),x=Ge(25399),z=Ge(49661),se=Ge(72664),ae=Ge(57884),ee=Ge(90524),fe=Ge(14794),E=Ge(59301),re=Object.defineProperty,ne=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,he=(we,Te,je)=>Te in we?re(we,Te,{enumerable:!0,configurable:!0,writable:!0,value:je}):we[Te]=je,pe=(we,Te)=>{for(var je in Te||(Te={}))le.call(Te,je)&&he(we,je,Te[je]);if(ne)for(var je of ne(Te))ue.call(Te,je)&&he(we,je,Te[je]);return we},ve=(we,Te,je)=>new Promise((Me,Ae)=>{var ge=Re=>{try{Ee(je.next(Re))}catch(Ie){Ae(Ie)}},be=Re=>{try{Ee(je.throw(Re))}catch(Ie){Ae(Ie)}},Ee=Re=>Re.done?Me(Re.value):Promise.resolve(Re.value).then(ge,be);Ee((je=je.apply(we,Te)).next())}),de=({editOffice:we="view",data:Te,issaver:je,onSaver:Me,theme:Ae,type:ge,filename:be,monacoEditor:Ee,className:Re,style:Ie,close:ke,onClose:Pe,hasMask:Ze,disabledDownload:He,onImgDimensions:$e,showNodata:it,recordInfo:Ne})=>{const[Fe,qe]=(0,Ye.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[rt,tt]=(0,Ye.useState)(""),[Ve,Ke]=(0,Ye.useState)(),ze=window.ENV==="build"?"/react/build":"",at=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ut=10*(1024*1024),st=(0,Ye.useRef)();Te!=null&&Te.startsWith("/api")&&ge!=="txt"&&(Te=ee.Z.API_SERVER+Te);const Xe=_e=>_e.substring(_e.lastIndexOf("/")+1).split(".").pop();be&&Ee&&(Ee.filename=be),(0,Ye.useEffect)(()=>{var _e,Ue;const xe=(Ue=(_e=document.cookie)==null?void 0:_e.replace(/\s/g,""))==null?void 0:Ue.split(";");xe==null||xe.map(Se=>{let Oe=Se.split("=");Oe[0]==="_educoder_session"&&tt(Oe[1])})},[]),(0,Ye.useEffect)(()=>{ge==="office"&&(Te.indexOf("bigfilescdn.")>-1||Te.indexOf("bigfiles1")>-1?Ke({url:Te,fileType:Xe(Te),model:Te.indexOf("model=edit")?"edit":"view"}):De())},[ge,Te]);function Le(_e){return ve(this,null,function*(){_e.data.type==="pdfdata"&&(Me(_e.data.data),window.removeEventListener("message",Le,!1)),console.log("mess---:",_e.data)})}const De=()=>ve(void 0,null,function*(){console.log("data:",Te);let _e=Te;Te.startsWith("http")||(_e=location.origin+_e);let Ue=new URL(_e).pathname.split("/").pop();const xe=yield(0,se.gJ)({attachment_id:Ue});xe.url=at+xe.url,Ke(xe)}),te=()=>{if(Te.startsWith("http")||Te.startsWith("blob:")){ce();return}(0,z.Sv)(be||"educoder",Te,be)},ce=()=>{Ne&&(0,fe.fc)({id:Ne==null?void 0:Ne.id,watch_type:1,course_id:Ne==null?void 0:Ne.course_id}),(0,z.Nd)(be||"educoder",decodeURIComponent(Te))};return E.createElement("div",{style:pe({},Ie||{}),className:`${Ze&&mt.bgBlack} ${ge?mt.wrp:"hide"}`},ke&&E.createElement("div",{className:mt.close,ref:st},!!$e&&E.createElement(x.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},E.createElement("span",{onClick:()=>{Pe(),$e()}},E.createElement("i",{className:"icon-yulanpizhu"}))),!He&&E.createElement(x.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},E.createElement("span",{onClick:ce},E.createElement("i",{className:"icon-quxiaozhiding"}))),je&&E.createElement(x.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>st.current},E.createElement("span",{className:"",onClick:()=>{const _e=document.getElementById("pdfiframe");window.addEventListener("message",Le,!1),setTimeout(()=>{_e.contentWindow.postMessage("getData","*")},300)}},E.createElement("i",{className:"icon-baocun"}))),E.createElement(x.Z,{title:"\u5173\u95ED",getPopupContainer:()=>st.current},E.createElement("span",{className:"",onClick:()=>{Pe()}},E.createElement("i",{className:"icon-guanbi1"})))),E.createElement("div",{className:`${mt[Re]} ${Re} ${mt.monaco} ${ge==="txt"?"show":"hide"}`},ge==="txt"&&E.createElement(E.Fragment,null,E.createElement(ye.ZP,pe({},Ee)))),ge==="audio"&&E.createElement("audio",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Te}`,autoPlay:!0}),ge==="video"&&E.createElement(E.Fragment,null,(Te==null?void 0:Te.indexOf("http"))>-1?E.createElement("video",{controls:!0,src:`${Te}`,autoPlay:!0}):E.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Te}`,autoPlay:!0})),ge==="office"&&Ve&&E.createElement("iframe",{src:`${ze}/office.html?key=${Ve.key}&url=${btoa(Ve.url)}&callbackUrl=${at+(Ve.callbackUrl||"")}&fileType=${Ve.fileType}&title=${Ve.title||""}&model=${we}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!He}`}),ge==="html"&&E.createElement("iframe",{src:Te+"&disposition=inline"}),ge==="pdf"&&E.createElement("iframe",{id:"pdfiframe",src:`${ze}/js/pdfview/index.html?filename=${be||"educoder.pdf"}&url=${encodeURIComponent(Te)}&disabledDownload=${!!He}&model=${we}`}),ge==="image"&&E.createElement("img",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Te}`}),(ge==="other"||ge==="download")&&E.createElement(E.Fragment,null,it?E.createElement(ae.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:E.createElement(y.ZP,{icon:E.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:He},"\u4E0B\u8F7D")}):E.createElement(y.ZP,{type:"primary",size:"middle",onClick:te,disabled:He},E.createElement(Ce.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ge==="flowChart"&&E.createElement("div",{className:"embed"},E.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Te||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},38394:function(Ht,_t,Ge){"use strict";Ge.d(_t,{z:function(){return Ee},Z:function(){return Re}});var Ye=Ge(59301),mt=Ge(88831),y=Ge(90290),Ce=Ge(64018),ye=Ge(68535),x=Ge(90524),z=Ge(49661),se=Ge(15342),ae=Ge(77736),ee=Ge(99571),fe=Ge(1012),E=Ge(41550),re=Ge(59301),le=({html:Ie})=>{const ke=(0,Ye.useRef)(null),Pe=(0,Ye.useRef)(null),Ze=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,Ye.useEffect)(()=>{const He=ke.current.attachShadow({mode:"open"});Pe.current=document.createElement("div"),Pe.current.className="markdown-body",Pe.current.innerHTML=Ie,He.appendChild(Pe.current);const $e=document.createElement("style");return $e.textContent=Ze,He.appendChild($e),()=>{He.innerHTML=""}},[]),(0,Ye.useEffect)(()=>{Pe.current&&(Pe.current.innerHTML=Ie)},[Ie]),re.createElement("div",{ref:ke})};function ue(Ie){const ke=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Pe=new RegExp(`\\b(${ke.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Ie.replace(Pe,"").trim()}var he={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},pe=Object.defineProperty,ve=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Te=(Ie,ke,Pe)=>ke in Ie?pe(Ie,ke,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ie[ke]=Pe,je=(Ie,ke)=>{for(var Pe in ke||(ke={}))de.call(ke,Pe)&&Te(Ie,Pe,ke[Pe]);if(ve)for(var Pe of ve(ke))we.call(ke,Pe)&&Te(Ie,Pe,ke[Pe]);return Ie};const Me="@\u2581\u2581@",Ae="@\u2581@",ge=/<pre[^>]*>/g;function be(Ie){let ke=document.createElement("div");return ke.innerHTML=Ie,ke.childNodes.length===0?"":ke.childNodes[0].nodeValue}const Ee=(Ie,ke)=>{Ie=Ie||"";const Pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ke?Ie.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Pe,(it,Ne,Fe,qe,rt,tt,Ve)=>{const Ke=Ne||qe||tt,ze=Fe||rt||Ve||"?";return x.Z.API_SERVER+"/api/attachments/"+Ke+ze+"&t="+(0,z.Jn)(Ke,Date.now())+(it.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ie=Ie.replace($e,(it,Ne,Fe,qe,rt,tt,Ve)=>{const Ke=Ne||qe||tt,ze=Fe||rt||Ve||"?";return x.Z.API_SERVER+"/attachments/download/"+Ke+ze+"&t="+(0,z.Jn)(Ke,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(Pe,(it,Ne,Fe,qe,rt,tt,Ve)=>{const Ke=Ne||qe||tt,ze=Fe||rt||Ve||"?";return x.Z.API_SERVER+"/api/attachments/"+Ke+ze+"&t="+(0,z.Jn)(Ke,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(Ze,(it,Ne,Fe,qe,rt)=>{const tt=Ne||qe,Ve=Fe||rt||"";return'"'+x.Z.API_SERVER+"/api/attachments/"+tt+Ve+tt+Ve+"&t="+(0,z.Jn)(tt,Date.now())}).replace(He,(it,Ne,Fe,qe,rt)=>{const tt=Ne||qe,Ve=Fe||rt||"";return"("+x.Z.API_SERVER+"/files/uploads/"+tt+Ve+tt+Ve+"&t="+(0,z.Jn)(tt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Ie)};var Re=({value:Ie="",edit:ke=!1,className:Pe,showTextOnly:Ze,showLines:He,style:$e={},stylesPrev:it={},highlightKeywords:Ne,showProgramFill:Fe,isProgramFill:qe,disabledFill:rt=!1,programFillValue:tt,openEditor:Ve=()=>{},onFillChange:Ke=Qe=>{},onFillBlur:ze=()=>{},onFillFocus:at=()=>{}})=>{let Qe=ue(String(Ie||""));const ut=(0,Ye.useRef)(),st=(0,Ye.useRef)(),[Xe,Le]=(0,Ye.useState)(""),[De,te]=(0,Ye.useState)("office"),[ce,_e]=(0,Ye.useState)([]),Ue=(0,Ye.useRef)("a"+(0,fe.Z)()),xe={},Se=ft=>/<style[\s\S]*?>/i.test(ft||""),Oe=(ft,Dt,At)=>{const Mt=document.createElement(ft===Ae?"input":"textarea");Mt.style.width="100%",Mt.style.height=ft===Ae?"40px":"151px",Mt.rows=5,Mt.spellcheck=!1,Mt.name="edu-program-fill",Mt.placeholder="\u8BF7\u8F93\u5165",Mt.dataset.id=Dt;const $t=Object.keys(xe).length;return xe[$t]=Mt,`<span class="edu-program-fill-wrap ${ft===Ae?"":"show"}" style="width:${ft===Ae?"600px":"100%"}" title=${At||""}><span>${Mt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function We(ft){return ft=ft.replace(/!\[.*?\]\(.*?\)/g,""),ft=ft.replace(/\[.*?\]\(.*?\)/g,""),ft=ft.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ft=ft.replace(/<embed.*?>/g,""),ft=ft.replace(/<img.*?>/g,""),ft=ft.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ft=ft.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ft=ft.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ft=ft.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ft}const et=ft=>!Ze&&Se(Qe)?ft:ft.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Dt,At){let Mt=At.replace(/(\n|\r)/g,"").split("}"),$t=[];return Mt.map(pr=>{pr!=""&&$t.push(`.${Ue.current} ${pr}`)}),`<style>${$t.join("}")}</style>`}),nt=(0,Ye.useMemo)(()=>{try{const Mt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,$t=/\"\/api\/attachments\/|\"\/attachments\/download\//g,pr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,qt=/\(\/attachments\/download\//g;Qe=Qe.replace(qt,"("+x.Z.API_SERVER+"/attachments/download/").replace(Mt,"("+x.Z.API_SERVER+"/api/attachments/").replace($t,'"'+x.Z.API_SERVER+"/api/attachments/").replace(pr,'"'+x.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),ut.current.style.display="none"}catch(Mt){}if(Fe){let Mt=-1;return Qe=Qe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function($t,pr,qt){var wr;return++Mt,Oe($t,Mt,(wr=tt==null?void 0:tt[Mt])==null?void 0:wr.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${et(Qe||"")}</pre>`}let ft=et(Qe);ft=(0,y.ZP)(ft);const Dt=(0,y.ez)();Qe.match(/\[TOC\]/)&&(ft=ft.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),ft=ft.replace(/(__special_katext_id_\d+__)/g,(Mt,$t)=>{const{type:pr,expression:qt}=Dt[$t];return(0,se.renderToString)(be(qt)||"",{displayMode:pr==="block",throwOnError:!1,output:"html"})}),ft=ft.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const At=document.createElement("div");if(At.innerHTML=ft,Ze)return At.innerText;if(Ne){const Mt=Ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return St(At,Mt),At.innerHTML}return setTimeout(()=>vt(),500),At.innerHTML},[Qe,Ne]);(0,Ye.useEffect)(()=>{yt.current&&yt.current.querySelectorAll(["input","textarea"]).forEach(Dt=>{Dt.oninput=dt,Dt.onblur=ct,Dt.onfocus=pt})},[ce]),(0,Ye.useEffect)(()=>{var ft,Dt,At,Mt,$t;if(tt!=null&&tt.length)try{const pr=yt.current.querySelectorAll(".edu-program-fill-score"),qt=yt.current.querySelectorAll('[name="edu-program-fill"]');for(const[wr,jr]of qt.entries())jr.value=((ft=tt==null?void 0:tt[wr])==null?void 0:ft.value)||"",((Dt=tt==null?void 0:tt[wr])==null?void 0:Dt.type)==="warning"?jr.className="program-fill-warning":((At=tt==null?void 0:tt[wr])==null?void 0:At.type)==="success"?jr.className="program-fill-success":jr.className="";for(const[wr,jr]of pr.entries())jr.innerHTML=(Mt=tt==null?void 0:tt[wr])!=null&&Mt.score?`${($t=tt==null?void 0:tt[wr])==null?void 0:$t.score}\u5206`:"";_e(tt)}catch(pr){console.log(pr,"error")}},[tt]);const dt=ft=>{ce[ft.target.dataset.id]=ce[ft.target.dataset.id]||{},ce[ft.target.dataset.id].value=ft.target.value,_e([...ce]),Ke(ce,ft.target.dataset.id)},ct=ft=>{ce[ft.target.dataset.id]=ce[ft.target.dataset.id]||{},ce[ft.target.dataset.id].value=ft.target.value,_e([...ce]),ze(ce,ft.target.dataset.id)},pt=ft=>{ce[ft.target.dataset.id]=ce[ft.target.dataset.id]||{},ce[ft.target.dataset.id].value=ft.target.value,_e([...ce]),at(ce,ft.target.dataset.id)};function St(ft,Dt){return ft.childNodes.forEach(At=>{var Mt;if(At.childNodes.length>0)St(At,Dt);else if(At.nodeName!=="IMG")if(At.innerHTML)At.innerHTML=(Mt=At.innerHTML)==null?void 0:Mt.replace(new RegExp(Dt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const $t=document.createElement("span");$t.innerHTML=At.textContent.replace(new RegExp(Dt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),At.replaceWith($t)}})}const yt=(0,Ye.useRef)();y.jb.WebkitLineClamp=He,He&&($e=je(je({},$e),y.jb));function xt(ft){let Dt=ft.target;if(Dt.tagName.toUpperCase()==="A"){let At=Dt.getAttribute("href");if(At.indexOf("office")>-1)ft.preventDefault(),Le(At),te("office");else if(At.indexOf("application/pdf")>-1)ft.preventDefault(),Le(At),te("pdf");else if(At.indexOf("text/html")>-1)ft.preventDefault(),Le(At),te("html");else if(At.startsWith("#")){ft.preventDefault();let Mt=document.getElementById(At.replace("#",""));Mt&&Mt.scrollIntoView(!0)}}}const vt=()=>{var ft;const Dt=(ft=yt.current)==null?void 0:ft.querySelectorAll("video");Dt==null||Dt.forEach(At=>{if(At.oncontextmenu=()=>!1,At.src.indexOf(".m3u8")>-1&&!At.canPlayType("application/vnd.apple.mpegurl")){if(ye.ZP.isSupported()){var Mt=new ye.ZP;Mt.loadSource(At.src),Mt.attachMedia(At)}}})};(0,Ye.useEffect)(()=>{if(yt.current&&nt&&nt.match(ge)&&window.PR.prettyPrint(),yt.current)return yt.current.addEventListener("click",xt),()=>{var ft;(ft=yt.current)==null||ft.removeEventListener("click",xt),(0,y.AL)(),(0,y.Iy)()}},[nt,yt.current,xt]);const Tt=ft=>{ft.target.nodeName==="IMG"&&ft.target.className.indexOf("draw-flowchart")>-1?(ut.current.style.zIndex=1,ut.current.style.display="flex",ut.current.style.width=ft.target.clientWidth+"px",ut.current.style.height=ft.target.clientHeight+"px",ut.current.style.top=ft.target.offsetTop+"px",ut.current.style.left=ft.target.offsetLeft+"px",ft.target.id&&(st.current=ft.target.id)):ut.current.style.display="none"},bt=()=>{ut.current.style.display="none"};return(0,Ye.useEffect)(()=>{var ft;const Dt=At=>{At.preventDefault(),At.clipboardData.setData("text",window.getSelection().toString())};return(ft=yt.current)==null||ft.addEventListener("copy",Dt),()=>{var At;(At=yt.current)==null||At.removeEventListener("copy",Dt)}},[yt.current]),Ye.createElement("div",{style:{position:"relative"},onMouseLeave:bt},Ze&&Ye.createElement("div",{ref:yt,className:`${he.mdBody} `},nt),!Ze&&!Se(nt)&&Ye.createElement("div",{ref:yt,style:je({},$e),onMouseOver:Tt,className:`${Pe||""} ${rt?"disabled-fill":""} markdown-body ${he.mdBody} ${Ue.current}`,dangerouslySetInnerHTML:{__html:nt}}),!Ze&&Se(nt)&&Ye.createElement(le,{html:nt}),Ye.createElement("div",{ref:ut,className:`${he.button} ${ke?"":he.previewFlowChart}`},Ye.createElement(ae.Z,null,Ye.createElement(ee.ZP,{onClick:()=>{ke?Ve(st.current):(Le(st.current),te("flowChart"))}},ke?"\u7F16\u8F91":"\u9884\u89C8"))),Ye.createElement(E.Z,{close:!0,data:Xe,type:Xe!=null&&Xe.length?De:"",style:je({},it),onClose:()=>Le("")}))}},72015:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return Ce}});var Ye=Ge(59301),mt=Ge(33796),y=Ge(59301),Ce=({defaultX:ye="40%",leftChild:x,rightChild:z,className:se,hideResize:ae=!1})=>{const[ee,fe]=(0,Ye.useState)(ye),E=(0,Ye.useRef)();function re(){E.current=!0}(0,Ye.useEffect)(()=>{function ue(pe){E.current&&(mt.Z.publish("resize-move-bar",pe),fe(pe.pageX))}function he(){E.current=!1}return window.addEventListener("mousemove",ue),window.addEventListener("mouseup",he),()=>{window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",he)}},[]);const ne=typeof ee=="number"&&ee!==.01?`${ee}px`:ye,le=`calc(100% - ${ae?"0px":"4px"} - ${ne})`;return y.createElement("div",{className:`split-panel-container ${se}`},y.createElement("section",{style:{width:ne,display:ee===.01?"none":""}},x),y.createElement("section",{className:"resize-x-bar",onMouseDown:re},y.createElement("a",{className:"btn-resize"},y.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},y.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),y.createElement("section",{style:{width:le}},z))}},25992:function(Ht,_t,Ge){"use strict";Ge.d(_t,{cT:function(){return ge},pe:function(){return je}});var Ye=Ge(59301),mt=Ge(14566),y=Ge(6767),Ce=Ge(82093),ye=Ge(28209),x=Ge.n(ye),z=Ge(1012),se=Ge(76560),ae=Ge(47257),ee=Ge.n(ae),fe=Object.defineProperty,E=Object.defineProperties,re=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,he=(Ee,Re,Ie)=>Re in Ee?fe(Ee,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ee[Re]=Ie,pe=(Ee,Re)=>{for(var Ie in Re||(Re={}))le.call(Re,Ie)&&he(Ee,Ie,Re[Ie]);if(ne)for(var Ie of ne(Re))ue.call(Re,Ie)&&he(Ee,Ie,Re[Ie]);return Ee},ve=(Ee,Re)=>E(Ee,re(Re)),de=(Ee,Re)=>{var Ie={};for(var ke in Ee)le.call(Ee,ke)&&Re.indexOf(ke)<0&&(Ie[ke]=Ee[ke]);if(Ee!=null&&ne)for(var ke of ne(Ee))Re.indexOf(ke)<0&&ue.call(Ee,ke)&&(Ie[ke]=Ee[ke]);return Ie},we=(Ee,Re,Ie)=>new Promise((ke,Pe)=>{var Ze=it=>{try{$e(Ie.next(it))}catch(Ne){Pe(Ne)}},He=it=>{try{$e(Ie.throw(it))}catch(Ne){Pe(Ne)}},$e=it=>it.done?ke(it.value):Promise.resolve(it.value).then(Ze,He);$e((Ie=Ie.apply(Ee,Re)).next())});const{Dragger:Te}=mt.default,je=Ee=>{const Re="bf3c199c2470cb477d907b1e0917c17b",Ie="5183666c72eec9e4";var ke=x().enc.Utf8.parse(Re);let Pe=x().enc.Utf8.parse(Ie);var Ze=x().AES.decrypt(Ee,ke,{iv:Pe,mode:x().mode.CBC});return Ze.toString(x().enc.Utf8)};let Me;const Ae=Ee=>we(void 0,[Ee],function*({identifier:Re,oldFilename:Ie,newFilename:ke}){var Pe,Ze,He,$e,it,Ne;const Fe=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Fe.data=JSON.parse(je(Fe.data));const qe=new OSS({endpoint:(Pe=Fe==null?void 0:Fe.data)==null?void 0:Pe.end_point,region:(Ze=Fe==null?void 0:Fe.data)==null?void 0:Ze.region,accessKeyId:(He=Fe==null?void 0:Fe.data)==null?void 0:He.access_key_id,accessKeySecret:($e=Fe==null?void 0:Fe.data)==null?void 0:$e.access_key_secret,bucket:(it=Fe==null?void 0:Fe.data)==null?void 0:it.bucket,stsToken:(Ne=Fe==null?void 0:Fe.data)==null?void 0:Ne.security_token});return new Promise((rt,tt)=>{console.log(11111,`${Re}/${Ie}`,`${Re}/${ke}`,Fe.data),qe.copy(`/${Re}/${Ie}`,`/${Re}/${ke}`).then(Ve=>{console.log("\u62F7\u8D1D\u6210\u529F",Ve)}).catch(Ve=>{console.log(Ve)})})}),ge=(Ee,Re,Ie)=>we(void 0,null,function*(){var ke,Pe,Ze,He,$e,it;Re.file_name=Ee.name;const Ne=yield(0,Ce.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",je(Ne.data)),Ne.data=JSON.parse(je(Ne.data));const Fe=Ee.name.split(".");Fe.pop();const qe=Re.realFileName?Fe.join(""):(0,z.Z)(),rt=new(ee())({endpoint:(ke=Ne==null?void 0:Ne.data)==null?void 0:ke.end_point,region:(Pe=Ne==null?void 0:Ne.data)==null?void 0:Pe.region,accessKeyId:(Ze=Ne==null?void 0:Ne.data)==null?void 0:Ze.access_key_id,accessKeySecret:(He=Ne==null?void 0:Ne.data)==null?void 0:He.access_key_secret,bucket:($e=Ne==null?void 0:Ne.data)==null?void 0:$e.bucket,stsToken:(it=Ne==null?void 0:Ne.data)==null?void 0:it.security_token});return new Promise((tt,Ve)=>{var Ke;rt.multipartUpload(`${qe}`,new Blob([Ee],{type:Ee.type}),ve(pe({timeout:200*1e3,partSize:102400},Ie),{callback:{url:(Ke=Ne==null?void 0:Ne.data)==null?void 0:Ke.callback_url,host:Ne==null?void 0:Ne.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ce.rz)(Re)}})).then(function(ze){var at;Ee.response=(at=ze.data)==null?void 0:at.data,tt(ze==null?void 0:ze.data)}).catch(function(ze){Ve(ze),console.log("err:",ze)})})}),be=Ee=>{var Re=Ee,{user:Ie,cancelUpload:ke}=Re,Pe=de(Re,["user","cancelUpload"]);const[Ze,He]=(0,Ye.useState)([]);let[$e,it]=(0,Ye.useState)();const Ne={onRemove:qe=>{He([...Ze.filter(rt=>rt.name!==qe.name)]),Pe.onChange(Ze.filter(rt=>rt.name!==qe.name))},disabled:Pe.disabled,multiple:!0,fileList:Ze==null?void 0:Ze.map(qe=>qe.file),customRequest:()=>{},beforeUpload:qe=>we(void 0,null,function*(){let rt=Pe.maxSize||1073741824;if(Ze.filter(tt=>tt.name===qe.name).length){y.ZP.info(`${qe.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(qe==null?void 0:qe.size)>rt?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${rt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ze.push({name:qe.name,file:qe}),He([...Ze]),Pe.onChange(Ze),!1)})},Fe=(qe,rt)=>we(void 0,null,function*(){var tt,Ve,Ke,ze,at,Qe;rt.file_name=qe.name;const ut=qe.name,st=yield(0,Ce.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(st.data=JSON.parse(je(st.data)),(st==null?void 0:st.status)!==0){Ze[Ze.findIndex(De=>De.name===ut)].status="error",Ze[Ze.findIndex(De=>De.name===ut)].file.status="error",Pe.onChange(Ze),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}$e=new(ee())({endpoint:(tt=st==null?void 0:st.data)==null?void 0:tt.end_point,region:(Ve=st==null?void 0:st.data)==null?void 0:Ve.region,accessKeyId:(Ke=st==null?void 0:st.data)==null?void 0:Ke.access_key_id,accessKeySecret:(ze=st==null?void 0:st.data)==null?void 0:ze.access_key_secret,bucket:(at=st==null?void 0:st.data)==null?void 0:at.bucket,stsToken:(Qe=st==null?void 0:st.data)==null?void 0:Qe.security_token}),console.log(qe,"file"),it($e);const Xe=qe.name.split(".");Xe.pop();const Le=ut.indexOf(".")>-1?rt.realFileName?Xe.join("."):(0,z.Z)():ut;return new Promise((De,te)=>{var ce;try{$e.multipartUpload(`${Pe.identifier}/${Le}${ut.indexOf(".")>-1?"."+ut.split(".").pop():""}`,new Blob([qe.file],{type:qe.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(_e,Ue,xe)=>{try{console.log("\u8FDB\u5EA6",_e,Ue,xe);const Se=Ze.findIndex(Oe=>Oe.name===ut);Ze[Se].file.percent=_e*100,Ze[Se].tempCheckpoint=Ue,He([...Ze])}catch(Se){}},checkpoint:Ze[Ze.findIndex(_e=>_e.name===ut)].tempCheckpoint,callback:{customValue:{id:ut+""},url:(ce=st==null?void 0:st.data)==null?void 0:ce.callback_url,host:st==null?void 0:st.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ce.rz)(rt)}}).then(function(_e){var Ue,xe,Se;const Oe=Ze.findIndex(et=>et.name===ut);let We="done";if(((Ue=_e.data)==null?void 0:Ue.status)===0){qe.response=(xe=_e.data)==null?void 0:xe.data;const et=Ze.findIndex(nt=>nt.name===ut);Ze[et].status="done",Ze[et].file.status="done"}else y.ZP.warning((Se=_e.data)==null?void 0:Se.message),We="error";Ze[Oe].status=We,Ze[Oe].file.status=We,Pe.onChange(Ze),De(_e==null?void 0:_e.data)}).catch(function(_e){Ze[Ze.findIndex(Ue=>Ue.name===ut)].status="error",Ze[Ze.findIndex(Ue=>Ue.name===ut)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),He([...Ze]),Pe.onChange(Ze),te(_e),console.log("err:",_e)})}catch(_e){}})});return(0,Ye.useEffect)(()=>{Ze.every(qe=>qe==="done"||qe==="error")&&Pe.onComplete(Ze)},[Ze]),(0,Ye.useEffect)(()=>{ke&&($e==null||$e.cancel())},[ke]),(0,Ye.useEffect)(()=>{Pe.uploading&&Ze.map(qe=>we(void 0,null,function*(){var rt;if((!qe.status||qe.status==="error")&&!ke){qe.status="uploading",qe.file.status="uploading";const tt=yield Fe(qe,{login:(rt=Ie==null?void 0:Ie.userInfo)==null?void 0:rt.login,container_type:Pe.container_type,container_id:Pe.container_id,description:Pe.description,realFileName:Pe.realFileName})}}))},[Pe.uploading]),Ye.createElement(Te,ve(pe({},Ne),{height:Pe.height,className:Pe.className}),Ye.createElement("p",{className:"ant-upload-hint"},Pe.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};_t.ZP=(0,se.connect)(({loading:Ee,globalSetting:Re,user:Ie})=>({globalSetting:Re,loading:Ee.models.competitions,user:Ie}))(be)},44905:function(Ht,_t,Ge){"use strict";Ge.d(_t,{h:function(){return we}});var Ye=Ge(59301),mt=Ge(82326),y=Ge(28284),Ce=Ge(99571),ye=Ge(89780),x=Ge.n(ye),z=Ge(66543),se=Ge(59598),ae=Object.defineProperty,ee=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,le=(Te,je,Me)=>je in Te?ae(Te,je,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Te[je]=Me,ue=(Te,je)=>{for(var Me in je||(je={}))re.call(je,Me)&&le(Te,Me,je[Me]);if(E)for(var Me of E(je))ne.call(je,Me)&&le(Te,Me,je[Me]);return Te},he=(Te,je)=>ee(Te,fe(je));const pe=mt.default.Option,ve={labelCol:{span:4},wrapperCol:{span:20}},de={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"]};_t.Z=({callback:Te,onCancel:je})=>{const[Me,Ae]=(0,Ye.useState)("python");function ge(Ee){Ae(de[Ee][1])}function be(Ee){Te(Ee)}return Ye.createElement(y.default,he(ue({},ve),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:be,style:{width:500}}),Ye.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ye.createElement(mt.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:ge},Object.keys(de).map(Ee=>Ye.createElement(pe,{key:Ee,value:Ee},de[Ee][0])))),Ye.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ye.createElement(we,{mode:Me})),Ye.createElement("div",{className:"flex-container flex-end"},Ye.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ye.createElement(Ce.ZP,{type:"ghost",onClick:je},"\u53D6\u6D88")))};function we({value:Te,onChange:je,mode:Me,options:Ae={}}){const ge=(0,Ye.useRef)(),[be,Ee]=(0,Ye.useState)();return(0,Ye.useEffect)(()=>{if(be){let Re=function(Ie){const ke=Ie.getValue();je&&je(ke)};return be.on("change",Re),()=>{be.off("change",Re)}}},[be,je]),(0,Ye.useEffect)(()=>{be&&be.setOption("mode",Me)},[be,Me]),(0,Ye.useEffect)(()=>{be&&(Te!==be.getValue()||Te==="")&&setTimeout(()=>{be.setValue(Te||"")},300)},[be,Te]),(0,Ye.useEffect)(()=>{if(ge.current&&!be){const Re=x().fromTextArea(ge.current,ue({mode:Me,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Ee(Re)}},[ge.current,be]),Ye.createElement("div",{className:"my-codemirror-container"},Ye.createElement("textarea",{ref:ge}))}},2978:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return lr}});var Ye=Ge(59301),mt=Ge(76560),y=Ge(89780),Ce=Ge.n(y),ye=Ge(76374),x=Ge(66543),z=Ge(6313),se=Ge(25717),ae=Ge(99498),ee=Ge(25419),fe=Ge(67549),E=Ge(38394),re=({value:tr="",className:or,showTextOnly:Pr,showLines:mr,style:Br={}})=>{const qr=(0,Ye.useMemo)(()=>"",[tr]);return Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{dangerouslySetInnerHTML:{__html:qr}}))},ne=Object.defineProperty,le=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,de=(tr,or,Pr)=>or in tr?ne(tr,or,{enumerable:!0,configurable:!0,writable:!0,value:Pr}):tr[or]=Pr,we=(tr,or)=>{for(var Pr in or||(or={}))pe.call(or,Pr)&&de(tr,Pr,or[Pr]);if(he)for(var Pr of he(or))ve.call(or,Pr)&&de(tr,Pr,or[Pr]);return tr},Te=(tr,or)=>le(tr,ue(or));let je=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Me({onActionCallback:tr,title:or,icon:Pr,actionName:mr,className:Br="",children:qr}){function tn(){tr(mr)}return Ye.createElement("a",{title:or,className:Br,onClick:tn},Ye.createElement("i",{className:`${Pr}`}),qr)}var Ae=({watch:tr,showNullButton:or,showNullProgramButton:Pr,onActionCallback:mr,fullScreen:Br,insertTemp:qr,hidetoolBar:tn,extraUse:Zr})=>{const Lr=[...je,{title:`${tr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${tr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ye.createElement("ul",{className:"markdown-toolbar-container"},!tn&&Lr.map((pn,fr)=>Ye.createElement("li",{key:fr},pn.actionName?Ye.createElement(Me,Te(we({},pn),{onActionCallback:mr})):Ye.createElement("span",{className:"v-line"}))),or?Ye.createElement("li",null,Ye.createElement(Me,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mr},Ye.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pr?Ye.createElement(Ye.Fragment,null,Ye.createElement("li",null,Ye.createElement(Me,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mr},Ye.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Ye.createElement("li",null,Ye.createElement(Me,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mr},Ye.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,qr&&Ye.createElement("li",null,Ye.createElement(Me,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${qr}`,onActionCallback:mr},Ye.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zr&&Ye.createElement("li",null,Zr),Ye.createElement("li",{className:"btn-full-screen"},Ye.createElement(Me,{icon:`${Br?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Br?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mr})))},ge=Ge(75790),be=Ge(28284),Ee=Ge(37568),Re=Ge(99571),Ie=Object.defineProperty,ke=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,it=(tr,or,Pr)=>or in tr?Ie(tr,or,{enumerable:!0,configurable:!0,writable:!0,value:Pr}):tr[or]=Pr,Ne=(tr,or)=>{for(var Pr in or||(or={}))He.call(or,Pr)&&it(tr,Pr,or[Pr]);if(Ze)for(var Pr of Ze(or))$e.call(or,Pr)&&it(tr,Pr,or[Pr]);return tr},Fe=(tr,or)=>ke(tr,Pe(or));const qe={labelCol:{span:4},wrapperCol:{span:20}};var rt=({callback:tr,onCancel:or})=>{function Pr(mr){tr(mr)}return Ye.createElement(be.default,Fe(Ne({},qe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pr,style:{width:500}}),Ye.createElement(be.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ye.createElement(Ee.default,null)),Ye.createElement(be.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ye.createElement(Ee.default,null)),Ye.createElement("div",{className:"flex-container flex-end"},Ye.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ye.createElement(Re.ZP,{type:"ghost",onClick:or},"\u53D6\u6D88")))},tt=Ge(44905),Ve=Ge(45596),Ke=Ge(62957),ze=Ge(77019),at=Ge(6077),Qe=Ge(59301),ut=({callback:tr,onCancel:or})=>{const Pr=document.createElement("canvas"),mr=Pr.getContext("2d");Pr.width=1e3,Pr.height=800,mr.fillStyle="#ffffff",mr.fillRect(0,0,Pr.width,Pr.height);const Br=Pr.toDataURL("image/png");return Qe.createElement(Ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(ze.Z,{style:{height:"100vh"}},Qe.createElement(at.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Br,visible:!0,title:String(Date.now())},onOk:qr=>{tr({src:qr.url})},onClose:or})))},st=Ge(30641),Xe=Ge(5269),Le=Ge(6767),De={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=Ge(59301),_e=(0,Ye.forwardRef)(({onCancel:tr,editImgId:or,callback:Pr},mr)=>{let Br=(0,Ye.useRef)(),qr=(0,Ye.useRef)(),tn=(0,Ye.useRef)(),Zr=(0,Ye.useRef)(!1);const Lr=(0,Ye.useRef)(!1);console.log("ref:",mr);const[pn,fr]=(0,Ye.useState)(0),[Vt,xr]=(0,Ye.useState)("100vh");return(0,Ye.useEffect)(()=>{fr(1)},[]),(0,Ye.useImperativeHandle)(mr,()=>({setHeight:xr})),te.createElement("div",{ref:Lr,className:"body-overflow-initial"},te.createElement(st.Z,{width:"100vw",height:Vt,footer:null,closable:!0,placement:"bottom",open:!!pn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${De.drawerWrap}`,onClose:()=>{window.saveDrawData(Kr=>{Pr({src:`/api/attachments/${Kr}`,id:Kr})})},title:te.createElement(ze.Z,{align:"middle"},te.createElement(Xe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Xe.Z,{onClick:()=>{xr(Vt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Xe.Z,{onClick:()=>{window.saveDrawData(Kr=>{if(Kr===null){Le.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Le.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Pr({src:`/api/attachments/${Kr}`,id:Kr,disabledClose:!0})})}},te.createElement(Re.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${or||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:qr})))}),Ue=Ge(90524),xe=Ge(47889),Se=Ge(71051);const Oe=xe.ZP.Group,We={margin:"0 8px"};var et=({callback:tr,onCancel:or})=>{function Pr(mr){tr(mr)}return Ye.createElement(be.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pr},Ye.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ye.createElement("span",{style:We},"\u5355\u5143\u683C\u6570\uFF1A"),Ye.createElement("span",{style:We},"\u884C\u6570"),Ye.createElement(be.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ye.createElement(Se.Z,null)),Ye.createElement("span",{style:We},"\u5217\u6570"),Ye.createElement(be.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ye.createElement(Se.Z,null))),Ye.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ye.createElement("span",{style:We},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ye.createElement(be.default.Item,{name:"align"},Ye.createElement(Oe,null,Ye.createElement(xe.ZP,{value:"default"},Ye.createElement("i",{className:"fa fa-align-justify"})),Ye.createElement(xe.ZP,{value:"left"},Ye.createElement("i",{className:"fa fa-align-left"})),Ye.createElement(xe.ZP,{value:"center"},Ye.createElement("i",{className:"fa fa-align-center"})),Ye.createElement(xe.ZP,{value:"right"},Ye.createElement("i",{className:"fa fa-align-right"}))))),Ye.createElement("div",{className:"flex-container flex-end"},Ye.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ye.createElement(Re.ZP,{type:"ghost",onClick:or},"\u53D6\u6D88")))},nt=Ge(71411),dt=Ge(11081),ct=Ge.n(dt),St=(0,Ye.forwardRef)(({use3d:tr,width:or,height:Pr,callback:mr,showSaveButton:Br},qr)=>{const tn=(0,Ye.useRef)(),Zr=(0,Ye.useRef)(),[Lr,pn]=(0,Ye.useState)(!1),fr=(0,Ye.useRef)({id:tn,appName:"graphing",width:or||1e3,height:Pr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ye.useEffect)(()=>{Zr.current=new(ct())(fr.current,!0),window.onload=function(){Zr.current.inject("applet_container")}},[]);const Vt=()=>{var xr=window.ggbApplet.getPNGBase64(1,!0,72);return mr&&mr(xr),xr};return(0,Ye.useEffect)(()=>{fr.current.appName=Lr?"3D":"graphing",Zr.current.inject("applet_container")},[Lr]),(0,Ye.useEffect)(()=>{pn(tr)},[tr]),(0,Ye.useImperativeHandle)(qr,()=>({getImgData:Vt})),Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:tn}),Ye.createElement(ze.Z,{align:"middle"},Ye.createElement(Xe.Z,{flex:1},Ye.createElement(nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Lr,onChange:xr=>pn(xr)})),Ye.createElement(Xe.Z,null,Ye.createElement(Re.ZP,{size:"large",onClick:Vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),yt=Ge(88615);const xt="link",vt="upload-image",Tt="add-flowchart",bt="draw-image",ft="add-flowchart",Dt="code-block",At="add-table",Mt="------------",$t={default:Mt,left:`:${Mt}`,center:`:${Mt}:`,right:`${Mt}:`};var pr=Ge(17904),qt=Ge(49661);function wr(){}let jr=0;const Dr=1e4,Fr="\u2581",on="@\u2581\u2581@",wn="@\u2581@",hn=`
**\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`,Gr=["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 An(tr){return/^\d+$/.test(tr)?`${tr}px`:tr}const Tr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Sr={[Tr+"-B"]:"bold",[Tr+"-I"]:"italic"},sn={[xt]:"\u6DFB\u52A0\u94FE\u63A5",[Dt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[vt]:"\u6DFB\u52A0\u56FE\u7247",[bt]:"\u6DFB\u52A0\u753B\u56FE",[Tt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[At]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var lr=({defaultValue:tr="",onChange:or,width:Pr="100%",height:mr=400,miniToolbar:Br=!1,isFocus:qr=!1,watch:tn,insertTemp:Zr,mode:Lr="markdown",id:pn="markdown-editor-id",showResizeBar:fr=!1,noStorage:Vt=!1,showNullButton:xr=!1,showNullProgramButton:Kr=!1,hidetoolBar:mn=!1,fullScreen:Ct=!1,onBlur:kt,onCMBeforeChange:ir,onFullScreen:Kt,className:jt="",disablePaste:nr=!1,disabled:dr=!1,disabledFill:hr=!1,placeholder:br="",values:ur="",extraUse:gr})=>{const[Pt,Ur]=(0,Ye.useState)(null),[sr,yr]=(0,Ye.useState)(tr),[Or,Wr]=(0,Ye.useState)(tn),[an,Ln]=(0,Ye.useState)(Ct),[yn,un]=(0,Ye.useState)(""),[On,zr]=(0,Ye.useState)(0),[zn,Xn]=(0,Ye.useState)(mr),[Hn,Gn]=(0,Ye.useState)(!1),[Yn,Kn]=(0,Ye.useState)(0),[Dn,$n]=(0,Ye.useState)(0),Wn=(0,Ye.useRef)(),_r=(0,Ye.useRef)(),en=(0,Ye.useRef)(),bn=(0,Ye.useRef)(),In=(0,Ye.useRef)(),Mn=(0,Ye.useRef)(),Nn=(0,mt.useDispatch)();(0,Ye.useEffect)(()=>{const Bt=window.scrollY||window.pageYOffset;yr(ur),Pt==null||Pt.setValue(ur),window.scrollTo(0,Bt)},[ur]),(0,Ye.useEffect)(()=>{Kt==null||Kt(an)},[an]),(0,Ye.useEffect)(()=>{if(Wn.current){let Bt=function(Xt,ar){var Er;if(nr){ar.preventDefault();return}const Cr=ar.clipboardData;if(Cr){const Vr=Cr.types.toString(),Ar=Cr.items;if(Vr==="Files"||Cr.types.indexOf("Files")>-1){if(ar.preventDefault(),Lr=="stex")return;try{let $r=Ar[1];((Er=Ar[0])==null?void 0:Er.kind)==="file"&&($r=Ar[0]);const rn=$r.getAsFile(),cn=rn.name.split(".").pop();(0,Ve.I)(rn,nn=>{var xn,kn,vn;nn.id?((xn=rn==null?void 0:rn.type)==null?void 0:xn.indexOf("image"))>-1?Jt.replaceSelection(`<img width="100%" src="/api/attachments/${nn.id}?type=${nn.content_type})" alt="" />`):((kn=rn==null?void 0:rn.type)==null?void 0:kn.indexOf("video"))>-1?Jt.replaceSelection(`<video width="100%" controls src="/api/attachments/${nn.id}"></video>`):((vn=rn==null?void 0:rn.type)==null?void 0:vn.indexOf("pdf"))>-1?Jt.replaceSelection(`<a href="/api/attachments/${nn.id}?type=${rn.type}&disposition=inline" target="_blank">${rn.name}</a>`):Gr.includes(cn)?Jt.replaceSelection(`<a href="/api/attachments/${nn.id}?type=office&disposition=inline" target="_blank">${rn.name}</a>`):Jt.replaceSelection(`[${rn.name}](/api/attachments/${nn.id}?type=${nn.content_type})`):(nn==null?void 0:nn.status)===401&&(document.location.href="/user/login")})}catch($r){Le.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Jt=Ce().fromTextArea(Wn.current,{mode:Lr,lineNumbers:!Br,lineWrapping:!0,value:tr,autoCloseTags:!0,autoCloseBrackets:!0});return Jt.on("keyup",function(Xt,ar){ar.keyCode===8&&(Xt.getValue()==""?Jt.setOption("placeholder",br):Jt.setOption("placeholder",null))}),Jt.on("keydown",function(Xt,ar){if(ar.keyCode===8){var Er=gt(Xt);Er&&ar.preventDefault()}}),qr&&Jt.focus(),Jt.on("paste",Bt),dr&&Jt.on("beforeChange",function(Xt,ar){(ar.origin==="paste"||ar.origin==="+input")&&ar.cancel()}),Ur(Jt),()=>{Jt.off("paste",Bt)}}},[]);const ii=(0,Ye.useCallback)(()=>{if(_r.current)try{}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[zn,_r,an]);(0,Ye.useEffect)(()=>{function Bt(){let Jt=new ye.Z(Xt=>{for(let ar of Xt)(ar.target.offsetHeight>0||ar.target.offsetWidth>0)&&(ii(),Pt.setSize("100%","100%"),Pt.refresh())});return Jt.observe(Wn.current.parentElement),Jt}if(Pt){const Jt=Bt();return()=>{var Xt,ar;(Xt=Wn.current)!=null&&Xt.parentElement&&Jt.unobserve((ar=Wn.current)==null?void 0:ar.parentElement)}}},[Pt,ii]),(0,Ye.useEffect)(()=>{if(Pt){let Bt=[];for(const[Jt,Xt]of Object.entries(Sr)){let ar={[Jt]:()=>{Lt(Xt)}};Bt.push(ar),Pt.addKeyMap(ar)}return()=>{for(let Jt of Bt)Pt.removeKeyMap(Jt)}}},[Pt]),(0,Ye.useEffect)(()=>{Ct!==an&&Ln(Ct)},[Ct]),(0,pr.Z)(()=>{if(!Vt&&On>0){let Bt=new Date().getTime(),Jt=window.sessionStorage.getItem(pn);Bt>=On+Dr&&(!Jt||Jt!==sr)&&(window.sessionStorage.setItem(pn,sr),Gn(!0))}},Dr),(0,Ye.useEffect)(()=>{Wr(tn)},[Pt,tn]),(0,Ye.useEffect)(()=>{Pt&&qr&&Pt.focus()},[Pt,qr]),(0,Ye.useEffect)(()=>{if(Or&&Pt){let Bt=function(Xt){let ar=Xt.target;if(bn.current){let Er=ar.scrollTop/ar.scrollHeight;bn.current.scrollTop=bn.current.scrollHeight*Er}};const Jt=Pt.getScrollerElement();return Jt.addEventListener("scroll",Bt),()=>{Jt.removeEventListener("scroll",Bt)}}},[Pt,Or]),(0,Ye.useEffect)(()=>{if(Pt&&ir){let Bt=function(Jt,Xt){ir(Jt,Xt)};return Pt.on("beforeChange",Bt),()=>{Pt.off("beforeChange",Bt)}}},[Pt,ir]),(0,Ye.useEffect)(()=>{if(Pt&&kt){let Bt=function(){kt(Pt.getValue())};return Pt.on("blur",Bt),()=>{Pt.off("blur",Bt)}}},[Pt,kt]);function gt(Bt,Jt){var Xt=Bt.getDoc(),ar=Xt.getCursor(),Er=Xt.getLine(ar.line),Cr=Er.charAt(ar.ch-1),Vr=Er.lastIndexOf("@\u2581@",ar.ch),Ar=Er.lastIndexOf("@\u2581\u2581@",ar.ch),$r=Vr>Ar?Vr:Ar,rn=Vr>Ar?3:4;if(on.indexOf(Cr)===-1)return null;if(console.log("change1:",Jt,Bt,Er,ar,$r,Vr,Ar,Cr),$r>=0&&ar.ch-$r<5){var cn=$r+rn;return Xt.replaceRange("",{line:ar.line,ch:$r},{line:ar.line,ch:cn}),{line:ar.line,ch:cn}}return null}(0,Ye.useEffect)(()=>{if(Pt){let Bt=function(Jt,Xt){const ar=Jt.getValue();yr(ar),zr(new Date().getTime()),Jt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),or&&(Kr?or(ar,Ot(ar)):or(ar))};return Pt.on("change",Bt),()=>{Pt.off("change",Bt)}}},[Pt,or]),(0,Ye.useEffect)(()=>{if(Pt)if(tr==null)Pt.setValue(""),yr("");else{const Bt=window.scrollY||window.pageYOffset;tr!==Pt.getValue()&&(Pt.setValue(tr),yr(tr),Pt.setCursor(dr?1:Pt.lineCount(),0),window.scrollTo(0,Bt))}},[Pt,tr]);const Lt=(0,Ye.useCallback)(Bt=>{const Jt=Pt.getCursor(),Xt=Pt.getSelection();let ar=Xt.split(`
`);switch(Bt){case"bold":return Pt.replaceSelection("**"+Xt+"**"),Xt===""&&Pt.setCursor(Jt.line,Jt.ch+2),Pt.focus();case"italic":return Pt.replaceSelection("*"+Xt+"*"),Xt===""&&Pt.setCursor(Jt.line,Jt.ch+1),Pt.focus();case"code":return Pt.replaceSelection("`"+Xt+"`"),Xt===""&&Pt.setCursor(Jt.line,Jt.ch+1),Pt.focus();case"inline-latex":return(0,qt.Ye)(Nn)?void 0:(un("inline-latex"),Pt.focus());case"latex":return Pt.replaceSelection("```latex\n"+Xt+"\n```"),Pt.setCursor(Jt.line+1,Xt.length+1),Pt.focus();case"line-break":return Pt.replaceSelection(`<br/>
`),Pt.focus();case"list-ul":return Xt===""?Pt.replaceSelection("- "+Xt):Pt.replaceSelection(ar.map(Er=>Er===""?"":`- ${Er}`).join(`
`)),Pt.focus();case"list-ol":return Xt===""?Pt.replaceSelection("1. "+Xt):Pt.replaceSelection(ar.map((Er,Cr)=>Er===""?"":`${Cr+1}. ${Er}`).join(`
`)),Pt.focus();case"add-null-ch":return Xt===""&&Pt.setCursor(Jt.line,Jt.ch),Pt.replaceSelection(Fr),Pt.focus();case"add-signal":return Xt===""&&Pt.setCursor(Jt.line,Jt.ch),Pt.replaceSelection(wn),Pt.focus();case"add-multiple":return Xt===""&&Pt.setCursor(Jt.line,Jt.ch),Pt.replaceSelection(on),Pt.focus();case"inster-template-1":return Xt===""&&Pt.setCursor(Jt.line,Jt.ch),Pt.replaceSelection(hn),Pt.focus();case"eraser":return Pt.setValue(""),Pt.focus();case"trigger-watch":return Wr(!Or),Pt.focus();case"trigger-full-screen":return Ln(!an),Pt.focus();case xt:un(xt);return;case Dt:un(Dt);return;case vt:un(vt);return;case bt:un(bt);return;case"maths-latex":if((0,qt.Ye)(Nn))return;un("maths-latex");return;case Tt:In.current="",sessionStorage.removeItem("file_id"),un(Tt);return;case At:un(At);return;default:throw new Error}},[Pt,Or,an]),Rt=(0,Ye.useCallback)((Bt,Jt)=>{var Xt,ar,Er,Cr,Vr,Ar;Bt!=null&&Bt.disabledClose||un("");const{src:$r,alt:rn,id:cn}=Bt||{};switch(yn){case xt:const{title:Sn,link:Jr}=Bt;return Pt.replaceSelection(`[${Sn}](${Jr})`),Pt.focus();case Dt:const{language:Ir,content:Yr}=Bt;return Pt.replaceSelection(["```"+Ir,Yr,"```"].join(`
`)),Pt.focus();case"maths-latex":for(var nn=atob(Bt),xn=new Uint8Array(nn.length),kn=0;kn<nn.length;kn++)xn[kn]=nn.charCodeAt(kn);var vn=new Blob([xn],{type:"image/png"});(0,Ve.I)(vn,oi=>{oi.id?Pt.replaceSelection(`![,](/api/attachments/${oi.id}?type=${oi.content_type})`):(oi==null?void 0:oi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,qt.Ye)(Nn))return;Pt.replaceSelection("`$$"+Bt+"$$`");break;case ft:if(!cn)return;Pt.getValue().indexOf($r)===-1?Pt.replaceSelection(`<center><img id="${cn}" width="80%" src="${$r}" class="draw-flowchart" alt="${rn||""}" /></center>`):document.getElementById(cn).src=Ue.Z.API_SERVER+$r+"?t="+Date.now();break;case vt:case bt:const Nr=Jt,Tn=(Er=(ar=(Xt=Nr==null?void 0:Nr.name)==null?void 0:Xt.split("."))==null?void 0:ar.pop)==null?void 0:Er.call(ar);return((Cr=Nr==null?void 0:Nr.type)==null?void 0:Cr.indexOf("image"))>-1||!(Nr!=null&&Nr.type)?Nr!=null&&Nr.align||Nr!=null&&Nr.width?Pt.replaceSelection(`<p style="text-align:${Nr.align||"initial"}"><img width="${Nr.width?Nr.width+"%":"initial"}" src="${$r}" alt="${rn||""}" /></p>`):Pt.replaceSelection(`<img width="100%" src="${$r}" alt="${rn||""}" />`):((Vr=Nr==null?void 0:Nr.type)==null?void 0:Vr.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="${$r}"></video>`):((Ar=Nr==null?void 0:Nr.type)==null?void 0:Ar.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="${$r}?type=${Nr.type}&disposition=inline" target="_blank">${Nr.name}</a>`):Gr.includes(Tn)?Pt.replaceSelection(`<a href="${$r}?type=office&disposition=inline" target="_blank">${Nr.name}</a>`):Pt.replaceSelection(`[${Nr.name}](${$r})`),Pt.focus();case At:const{row:Cn,col:jn,align:Jn}=Bt;let Si=`
`;for(let oi=0;oi<Cn;oi++){let Gi=[],ji=[];for(let Qn=0;Qn<jn;Qn++)oi===1&&ji.push($t[Jn]),Gi.push(" ");oi===1&&(Si+=`| ${ji.join(" | ")} |
`),Si+=`| ${Gi.join(jn===1?"":" | ")} |
`}return Pt.replaceSelection(Si+`
`),Pt.focus();default:throw new Error}},[Pt,yn]),Ft=(0,Ye.useMemo)(()=>{switch(yn){case xt:return Ye.createElement(rt,{callback:Rt,onCancel:Gt});case Dt:return Ye.createElement(tt.Z,{callback:Rt,onCancel:Gt});case vt:return Ye.createElement(Ve.Z,{callback:Rt,onCancel:Gt});case Tt:return Ye.createElement(_e,{editImgId:In.current,callback:Rt,onCancel:Gt});case At:return Ye.createElement(et,{callback:Rt,onCancel:Gt});case"maths-latex":return Ye.createElement(St,{showSaveButton:!0,callback:Rt});case"inline-latex":return Ye.createElement(yt.Z,{showSaveButton:!0,callback:Rt});default:return null}},[yn]);function Gt(){un("")}(0,Ye.useEffect)(()=>{if(en.current){let Bt=function(Vr){Er=!0,Cr=Vr.pageY},Jt=function(){Er=!1},Xt=function(Vr){if(Er){let Ar=Vr.pageY-Cr;Ar<0&&(Ar=0),Ar>300&&(Ar=300);let $r=mr+Ar+"px";Xn($r)}},ar=en.current,Er=!1,Cr=0;return ar.addEventListener("mousedown",Bt),document.addEventListener("mousemove",Xt),document.addEventListener("mouseup",Jt),()=>{ar.removeEventListener("mousedown",Bt),document.removeEventListener("mousemove",Xt),document.removeEventListener("mouseup",Jt)}}},[Pt,en]),(0,Ye.useEffect)(()=>{Xn(mr)},[mr]);const It=An(Pr),Yt=An(zn),rr={width:It,height:Yt},Qt=(0,Ye.useMemo)(()=>{if(On){let Bt=new Date(On),Jt=Bt.getHours(),Xt=Bt.getMinutes(),ar=Bt.getSeconds();return Jt=Jt<10?"0"+Jt:Jt,Xt=Xt<10?"0"+Xt:Xt,ar=ar<10?"0"+ar:ar,`${Jt}:${Xt}:${ar}`}return 0},[On]),Ot=Bt=>{const Jt=[];if(Kr){let Xt=-1;Bt=Bt.replace(/(@▁▁@|@▁@)/g,function(ar,Er,Cr){Jt.push({multiLine:ar!==wn})})}return Jt};function Ut(){window.sessionStorage.removeItem(pn),Gn(!1),zr(0)}function zt(){Gn(!1),zr(0),Pt.setValue(window.sessionStorage.getItem(pn))}(0,Ye.useEffect)(()=>{sn[yn]&&yn!==bt&&yn!==Tt&&setTimeout(()=>{const Bt=document.getElementsByClassName("markdown-popup-form")[0],Jt=window.innerWidth/2-Bt.offsetWidth/2,Xt=window.innerHeight/2-Bt.offsetHeight/2;Kn(Jt),$n(Xt)},0)},[yn]);const Zt=Bt=>{Bt.preventDefault();const Jt=Bt.clientX-Yn,Xt=Bt.clientY-Dn;document.body.onmousemove=ar=>{let Er=ar.clientX-Jt,Cr=ar.clientY-Xt;const Vr=document.getElementsByClassName("markdown-popup-form")[0],Ar=window.innerWidth-Vr.offsetWidth,$r=window.innerHeight-Vr.offsetHeight;Er=Math.max(0,Math.min(Er,Ar)),Cr=Math.max(0,Math.min(Cr,$r)),er(ar.clientX,ar.clientY,Jt,Xt)&&(Kn(Er),$n(Cr))},document.body.onmouseup=function(){document.body.onmousemove=null}},er=(Bt,Jt,Xt,ar)=>{const Er=document.body.clientHeight,Cr=document.body.clientWidth;return Bt<20&&Xt>Bt||Bt>Cr-20&&Xt<Bt||Jt<20&&ar>Jt||Jt>Er-20&&ar<Jt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{className:"markdown-editor-wrapper",ref:_r},Ye.createElement("div",{className:`markdown-editor-container ${jt} ${Or?"on-preview":""} ${Br?"mini":""} ${an?"full-screen":""}`,style:rr},Ye.createElement(Ae,{insertTemp:Zr,watch:Or,fullScreen:an,showNullButton:xr,showNullProgramButton:Kr,onActionCallback:Lt,hidetoolBar:mn,extraUse:gr}),Ye.createElement("div",{className:"markdown-editor-body"},Ye.createElement("div",{className:"codemirror-container"},Ye.createElement("textarea",{ref:Wn,placeholder:br})),Or?Ye.createElement("div",{ref:bn,className:"preview-container"},Lr==="stex"&&Ye.createElement(re,{value:sr}),Lr!=="stex"&&Ye.createElement(E.Z,{edit:!0,disabledFill:hr,showProgramFill:Kr,value:sr,openEditor:Bt=>{var Jt;In.current=Bt,(Jt=Mn.current)==null||Jt.setHeight("100vh"),setTimeout(()=>{un("add-flowchart")},150)}})):null))),fr?Ye.createElement("a",{ref:en,className:"editor-resize"}):null,yn===bt&&Ye.createElement(ut,{callback:Rt,onCancel:Gt}),yn===Tt&&Ye.createElement(_e,{ref:Mn,editImgId:In.current,callback:Rt,onCancel:Gt}),Ye.createElement(ge.Z,null,sn[yn]&&yn!==bt&&yn!==Tt?Ye.createElement(Ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Yn,top:Dn},title:Ye.createElement("div",{style:{cursor:"move"},onMouseDown:Zt},sn[yn]),open:!0,onCancel:Gt,footer:null,destroyOnClose:!0,width:yn===Tt?"1200px":null,height:yn===Tt?"80vh":null,className:"markdown-popup-form"},Ft):null))}},45596:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return je},I:function(){return Ae}});var Ye=Ge(28284),mt=Ge(6767),y=Ge(37568),Ce=Ge(77736),ye=Ge(71051),x=Ge(47889),z=Ge(99571),se=Ge(67303),ae=Ge(59301),ee=Ge(59301),fe=Object.defineProperty,E=Object.defineProperties,re=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,he=(ge,be,Ee)=>be in ge?fe(ge,be,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ge[be]=Ee,pe=(ge,be)=>{for(var Ee in be||(be={}))le.call(be,Ee)&&he(ge,Ee,be[Ee]);if(ne)for(var Ee of ne(be))ue.call(be,Ee)&&he(ge,Ee,be[Ee]);return ge},ve=(ge,be)=>E(ge,re(be));const{useForm:de}=Ye.default,we={width:280,marginRight:10},Te={labelCol:{span:5},wrapperCol:{span:19}};var je=({callback:ge,onCancel:be})=>{const[Ee]=de();let Re=(0,ae.useRef)();function Ie(Ze){Re.current.width=Ee.getFieldValue("width"),Re.current.align=Ee.getFieldValue("align"),ge(Ze,Re.current)}function ke(Ze,He){if(Ze.status===-1){mt.ZP.error(Ze.message);return}Ee.setFieldsValue({src:`/api/attachments/${Ze.id}`,type:He.type})}function Pe(Ze){let He=Ze.target.files[0];Re.current=He,Ae(He,ke)}return ee.createElement(Ye.default,ve(pe({form:Ee},Te),{className:"upload-image-panel",onFinish:Ie,style:{width:470,overflow:"hidden"}}),ee.createElement(Ye.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(Ye.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:we})),ee.createElement(Me,{onFileChange:Pe}))),ee.createElement(Ye.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(Ye.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(Ce.Z,null,ee.createElement(Ye.default.Item,{name:"width",style:{margin:0}},ee.createElement(ye.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(Ye.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(x.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"}]})),ee.createElement("aside",null,ee.createElement(Ye.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(z.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function Me({onFileChange:ge}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:ge}))}function Ae(ge,be){if(!ge)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ee=new FormData;Ee.append("editormd-image-file",ge),Ee.append("file_param_name","editormd-image-file"),Ee.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(Ie){be(JSON.parse(Ie.target.responseText),ge)},!1),Re.addEventListener("error",function(Ie){console.error(Ie)},!1),Re.open("POST",`${se.KI}/api/attachments.json`),Re.send(Ee)}},75790:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return y}});var Ye=Ge(59301),mt=Ge(4676);class y extends Ye.Component{constructor(ye){super(ye);const x=window.document;this.node=x.createElement("div"),x.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,mt.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},51124:function(Ht,_t,Ge){"use strict";Ge.d(_t,{SV:function(){return ut},ZP:function(){return Qe}});var Ye=Ge(59301),mt=Ge(76374);const y={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Ce={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ye={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},x={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},z={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var se=Ge(53184),ae=Ge.n(se),ee=(st,Xe,Le)=>new Promise((De,te)=>{var ce=xe=>{try{Ue(Le.next(xe))}catch(Se){te(Se)}},_e=xe=>{try{Ue(Le.throw(xe))}catch(Se){te(Se)}},Ue=xe=>xe.done?De(xe.value):Promise.resolve(xe.value).then(ce,_e);Ue((Le=Le.apply(st,Xe)).next())});const fe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},E=(st,Xe,Le,De)=>{const te=Xe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Le.lineNumber,endColumn:Le.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(_e=>({label:_e,kind:st.languages.CompletionItemKind.Text,insertText:_e,range:De}))},re=(st,Xe,Le,De)=>{st.languages.registerCompletionItemProvider(Xe,{provideCompletionItems(te,ce){const _e=te.getWordUntilPosition(ce),Ue={startLineNumber:ce.lineNumber,endLineNumber:ce.lineNumber,startColumn:_e.startColumn,endColumn:_e.endColumn},xe=te.getLineContent(ce.lineNumber).substring(_e.startColumn-2,_e.endColumn);return{suggestions:[...E(st,te,ce,Ue),...Le.map(Oe=>({label:Oe,kind:st.languages.CompletionItemKind.Keyword,documentation:Oe,insertText:Oe,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...De.map(Oe=>({label:Oe.label,kind:st.languages.CompletionItemKind.Snippet,documentation:Oe.content,insertText:xe.startsWith("#")?Oe.content.replace(/#/,""):Oe.content,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}})};var ne=st=>{fe.languages.forEach(Xe=>{st.languages.registerDocumentFormattingEditProvider(Xe,{provideDocumentFormattingEdits(Le){return ee(this,null,function*(){const De=ae()(Le.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Le.getFullModelRange(),text:De}]})}})}),re(st,"java",Ce.keywords,Ce.quickKey),re(st,"cpp",ye.keywords,ye.quickKey),re(st,"c",y.keywords,[]),re(st,"python",x.keywords,x.quickKey),re(st,"scala",z.keywords,z.quickKey)};const le="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ue=Object.defineProperty,he=(st,Xe,Le)=>Xe in st?ue(st,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):st[Xe]=Le,pe=(st,Xe,Le)=>he(st,typeof Xe!="symbol"?Xe+"":Xe,Le);const ve=class Kl{constructor(Xe,Le,De){this.placeholder=Xe,this.editor=Le,this.monaco=De,Le.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Kl.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};pe(ve,"ID","editor.widget.placeholderHint");var we=ve,Te=Ge(96236),je=Ge(6767),Me=Ge(25399),Ae=Ge(89392),ge=Ge(33796),be=Ge(56102),Ee=Object.defineProperty,Re=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,He=(st,Xe,Le)=>Xe in st?Ee(st,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):st[Xe]=Le,$e=(st,Xe)=>{for(var Le in Xe||(Xe={}))Pe.call(Xe,Le)&&He(st,Le,Xe[Le]);if(ke)for(var Le of ke(Xe))Ze.call(Xe,Le)&&He(st,Le,Xe[Le]);return st},it=(st,Xe)=>Re(st,Ie(Xe)),Ne=(st,Xe)=>{var Le={};for(var De in st)Pe.call(st,De)&&Xe.indexOf(De)<0&&(Le[De]=st[De]);if(st!=null&&ke)for(var De of ke(st))Xe.indexOf(De)<0&&Ze.call(st,De)&&(Le[De]=st[De]);return Le},Fe=(st,Xe,Le)=>new Promise((De,te)=>{var ce=xe=>{try{Ue(Le.next(xe))}catch(Se){te(Se)}},_e=xe=>{try{Ue(Le.throw(xe))}catch(Se){te(Se)}},Ue=xe=>xe.done?De(xe.value):Promise.resolve(xe.value).then(ce,_e);Ue((Le=Le.apply(st,Xe)).next())});function qe(st){return/^\d+$/.test(st)?`${st}px`:st}function rt(){}let tt=!1;const Ve={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ke(st=[]){let Xe=st;if(Array.isArray(st)){for(let Le=0;Le<st.length;Le++){let De=Ve[st[Le]];if(De)return De}return Xe[0]}return Ve[Xe]||Xe}let ze=null;const at=()=>Fe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(st){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",st)}});var Qe=st=>{var Xe=st,{width:Le="100%",height:De="100%",value:te,language:ce="javascript",style:_e={},options:Ue={},overrideServices:xe={},theme:Se="vs-dark",onEditBlur:Oe,isCopy:We=!1,onSave:et,autoHeight:nt=!1,forbidCopy:dt=!1,onChange:ct=rt,editorDidMount:pt=rt,onFocus:St=rt,onBreakPoint:yt=rt,breakPointValue:xt=[],filename:vt="educoder.txt",errorLine:Tt,errorContent:bt="",highlightLine:ft,openBreakPoint:Dt=!1,placeholder:At="",showMiniMap:Mt=!0}=Xe,$t=Ne(Xe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const pr=(0,Ye.useRef)(),qt=(0,Ye.useRef)({}),wr=(0,Ye.useRef)(),jr=(0,Ye.useRef)(),Dr=(0,Ye.useRef)([]),Fr=(0,Ye.useRef)(!1),on=(0,Ye.useRef)(),wn=(0,Ye.useRef)(),hn=(0,Ye.useRef)(!1),[Gr,An]=(0,Ye.useState)(!1);function Rn(){let fr;return pr.current&&(fr=new mt.Z(Vt=>{for(let xr of Vt)(xr.target.offsetHeight>0||xr.target.offsetWidth>0)&&qt.current.instance.layout()}),fr.observe(pr.current)),fr}function Tr(){je.ZP.warning({content:decodeURIComponent(le),key:"monaco-editor-tip"})}const Sr=()=>{let fr=qt.current.instance;if(te!=null&&fr&&Gr){const Vt=fr.getModel();Vt&&te!==Vt.getValue()&&(tt=!0,Vt.setValue(te),fr.layout(),tt=!1)}};(0,Ye.useEffect)(()=>{const fr=ge.Z.subscribe("formatDocument",Vt=>{var xr;let Kr=qt.current.instance;(xr=Kr==null?void 0:Kr.getAction)==null||xr.call(Kr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Vt=>{ct(Vt)},fr},[]),(0,Ye.useEffect)(()=>{var fr;let Vt=qt.current.instance;jr.current&&clearTimeout(jr.current),jr.current=setTimeout(()=>{Sr()},500),te&&(te!=null&&te.length)&&((fr=Vt==null?void 0:Vt.updateOptions)==null||fr.call(Vt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,Gr,qt.current]),(0,Ye.useEffect)(()=>{if(Tt&&qt.current&&qt.current.instance){let Vt=qt.current.instance;Vt.changeViewZones(function(xr){var Kr=document.createElement("div");Kr.style.padding="10px 20px",Kr.style.width="calc(100% - 20px)",Kr.className="my-error-line-wrp",Kr.innerHTML=bt,xr.addZone({afterLineNumber:Tt||11,heightInLines:3,domNode:Kr})});var fr={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Vt.addOverlayWidget(fr),Vt.revealPositionInCenter({lineNumber:20,column:1})}},[Tt,qt.current,Gr]);const sn=(fr="",Vt)=>{if(!fr||fr.trim()==="")return!0;const Kr=qt.current.instance.getModel().getLineTokens(Vt);let mn=!1;for(let Ct=0;Ct<2;Ct++)Kr.getStandardTokenType(Ct)===1&&(mn=!0);return mn};(0,Ye.useEffect)(()=>{var fr;const Vt=(fr=qt.current)==null?void 0:fr.instance;if(Vt&&Gr&&dt){const xr=Vt.onDidBlurEditorWidget(()=>{hn.current=!1}),Kr=Vt.onDidFocusEditorText(()=>{hn.current=!0});return()=>{xr.dispose(),Kr.dispose()}}},[qt.current,Gr,dt]),(0,Ye.useEffect)(()=>{var fr;if((fr=qt.current)!=null&&fr.instance&&Gr&&Dt){let Vt=qt.current.instance,xr=Vt.getModel();if(!xr)return;(()=>{var ur;let gr=[],Pt=[];const Ur=xr.getAllDecorations();for(let yr of Ur)yr.options.className==="highlighted-line"&&(gr.push((ur=yr==null?void 0:yr.range)==null?void 0:ur.startLineNumber),Pt.push(yr==null?void 0:yr.id));if(ft===gr[0])return;xr.deltaDecorations(Pt,[]);const sr=xr.getLineCount();ft&&ft<=sr&&(Vt.deltaDecorations([],[{range:new ze.Range(ft,1,ft,xr.getLineMaxColumn(ft)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Vt.revealLineInCenter(ft))})();const mn=(ur=!1)=>{var gr;let Pt=[],Ur=[];const sr=xr.getAllDecorations();for(let yr of sr)yr.options.linesDecorationsClassName==="breakpoints-select"&&(Pt.push((gr=yr==null?void 0:yr.range)==null?void 0:gr.startLineNumber),Ur.push(yr==null?void 0:yr.id));if(ur)return{lines:Pt,ids:Ur};yt(Pt)},Ct=ur=>Fe(void 0,null,function*(){let gr={range:new ze.Range(ur,1,ur,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xr.deltaDecorations([],[gr]),mn()}),kt=ur=>Fe(void 0,null,function*(){let gr=[];const Pt=Vt.getLineDecorations(ur);for(let Ur of Pt)Ur.options.linesDecorationsClassName==="breakpoints-select"&&gr.push(Ur.id);yield xr.deltaDecorations(gr,[]),mn()}),ir=ur=>{let gr=Vt.getLineDecorations(ur);for(let Pt of gr)if(Pt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ae.isEqual)(xt,mn(!0).lines)){xr.deltaDecorations(mn(!0).ids,[]);const ur=xt.map(gr=>({range:new ze.Range(gr,1,gr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xr.deltaDecorations([],ur)}const Kt=Vt.onDidChangeModelContent(ur=>{let gr=Vt.getPosition();if(gr){let Pt=gr.lineNumber;clearTimeout(wn.current),wn.current=setTimeout(()=>{sn(xr.getLineContent(Pt),Pt)?kt(Pt):ir(Pt)?(kt(Pt),Ct(Pt)):mn()},100)}}),jt=Vt.onMouseDown(ur=>{var gr,Pt,Ur;if(ur.target.detail&&((Ur=(Pt=(gr=ur.target)==null?void 0:gr.element)==null?void 0:Pt.className)!=null&&Ur.includes("line-numbers"))){let sr=ur.target.position.lineNumber;if(sn(xr.getLineContent(sr),sr))return;ir(sr)?kt(sr):Ct(sr)}}),nr=ur=>{let gr={range:new ze.Range(ur,1,ur,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Dr.current=Vt.deltaDecorations(Dr.current,[gr])},dr=()=>{Dr.current=Vt.deltaDecorations(Dr.current,[])},hr=Vt.onMouseMove(ur=>{var gr,Pt,Ur;if(dr(),ur.target.detail&&((Ur=(Pt=(gr=ur.target)==null?void 0:gr.element)==null?void 0:Pt.className)!=null&&Ur.includes("line-numbers"))){let sr=ur.target.position.lineNumber;if(sn(xr.getLineContent(sr),sr))return;nr(sr)}}),br=Vt.onMouseLeave(()=>{dr()});return()=>{Kt.dispose(),jt.dispose(),hr.dispose(),br.dispose()}}},[qt.current,Gr,xt,ft,Dt,ce]),(0,Ye.useEffect)(()=>{var fr;(fr=qt.current)!=null&&fr.instance&&Dt&&qt.current.instance.setPosition({lineNumber:0,column:0})},[ft]);function lr(){let fr=qt.current.instance;if(fr){const Vt=fr.getSelection(),xr=qt.current.pastePos||{},Kr=new ze.Range(xr.startLineNumber||Vt.endLineNumber,xr.startColumn||Vt.endColumn,xr.endLineNumber||Vt.endLineNumber,xr.endColumn||Vt.endColumn);setTimeout(()=>{fr.executeEdits("",[{range:Kr,text:""}])},300)}}function tr(fr){(window.navigator.platform.match("Mac")?fr.metaKey:fr.ctrlKey)&&fr.keyCode==83&&(fr.preventDefault(),et())}const or=()=>{if(nt&&qt.current.instance){const fr=qt.current.instance.getContentHeight();Lr(fr<De?De:fr)}else Lr(De)};function Pr(fr){var Vt=document.createEvent("MouseEvents");Vt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),fr.dispatchEvent(Vt)}const mr=fr=>{if(!hn.current)return;const{keyCode:Vt,ctrlKey:xr,metaKey:Kr,target:mn,type:Ct}=fr;return(Ct==="paste"||(Vt===67||Vt===86)&&(Kr||xr))&&mn.nodeName==="TEXTAREA"&&(Tr(),fr.preventDefault()),!1};function Br(fr,Vt){var xr=window.URL||window.webkitURL||window,Kr=new Blob([Vt]),mn=document.createElementNS("http://www.w3.org/1999/xhtml","a");mn.href=xr.createObjectURL(Kr),mn.download=fr,Pr(mn)}(0,Ye.useEffect)(()=>{or()},[or]),(0,Ye.useEffect)(()=>{pr.current&&!Gr&&Promise.all([Ge.e(8909),Ge.e(5028)]).then(Ge.bind(Ge,71448)).then(fr=>{try{ze=fr,qt.current.instance=ze.editor.create(pr.current,{value:te,language:Ke(ce),theme:Se,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Mt||!1}},xe);const Vt=qt.current.instance;let mn=[...Te.BH._menuItems].find(Kt=>Kt[0]._debugName=="EditorContext")[1],Ct=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kt=(Kt,jt)=>{var nr,dr;let hr=Kt._first;do jt.includes((dr=(nr=hr.element)==null?void 0:nr.command)==null?void 0:dr.id)&&Kt._remove(hr);while(hr=hr.next)};if(pt(Vt,ze),setTimeout(()=>{or(),qt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Br(vt||"educoder.txt",Vt.getValue())}})},500),qt.current.subscription=Vt.onDidChangeModelContent(Kt=>{Fr.current?clearTimeout(on.current):(or(),ct(Vt.getValue(),Kt)),on.current=setTimeout(()=>{Fr.current=!1},500)}),window.Monaco||ne(ze,Ke(ce)),dt&&(kt(mn,Ct),pr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",mr),window.removeEventListener("paste",mr),window.addEventListener("keydown",mr),window.addEventListener("paste",mr)),window.Monaco=ze,Oe&&Vt.onDidBlurEditorWidget(()=>{Oe(Vt.getValue())}),St&&Vt.onDidFocusEditorText(()=>{dt&&at(),St(Vt.getValue())}),dt){at();try{Vt.onDidPaste(Kt=>{const jt=Vt.getSelection(),nr=qt.current.pastePos||{},dr=new ze.Range(nr.startLineNumber||jt.endLineNumber,nr.startColumn||jt.endColumn,nr.endLineNumber||jt.endLineNumber,nr.endColumn||jt.endColumn);Vt.executeEdits("",[{range:Kt.range,text:""}])})}catch(Kt){}}let ir=Rn();return At&&typeof At=="string"&&new we(At,Vt,ze),An(!0),()=>{const Kt=qt.current.instance;Kt.dispose();const jt=Kt.getModel();jt&&jt.dispose(),qt.current.subscription&&qt.current.subscription.dispose(),ir.unobserve(pr.current)}}catch(Vt){}})},[]),(0,Ye.useEffect)(()=>{if(qt.current.instance&&Gr)return document.addEventListener("keydown",tr,!1),()=>{document.removeEventListener("keydown",tr)}},[et,Gr]),(0,Ye.useEffect)(()=>{let fr=qt.current.instance;if(fr&&Gr){let Vt=Ke(ce);ze.editor.setModelLanguage(fr.getModel(),Vt)}},[ce,Gr]),(0,Ye.useEffect)(()=>{qt.current.instance&&Gr&&ze.editor.setTheme(Se)},[Se,Gr]),(0,Ye.useEffect)(()=>{let fr=qt.current.instance;wr.current=Ue,fr&&Gr&&(fr.updateOptions($e({},Ue)),setTimeout(()=>{fr.getModel().updateOptions($e({},Ue))},200))},[JSON.stringify(Ue),Gr]),(0,Ye.useEffect)(()=>{let fr=qt.current.instance;fr&&Gr&&fr.layout()},[Le,De,Gr]);const[qr,tn]=(0,Ye.useState)(qe(Le)),[Zr,Lr]=(0,Ye.useState)(qe(De)),pn=it($e({},_e),{width:qr,height:Zr,position:"relative"});return Ye.createElement("div",{className:"my-monaco-editor",ref:pr,style:pn},We&&Ye.createElement(be.CopyToClipboard,{text:te,onCopy:()=>je.ZP.success("\u590D\u5236\u6210\u529F")},Ye.createElement(Me.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ye.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ye.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ut({width:st="100%",height:Xe="100%",original:Le,modified:De,language:te,options:ce={}}){const _e=(0,Ye.useRef)(),[Ue,xe]=(0,Ye.useState)(null);function Se(nt){let dt;return _e.current&&(dt=new mt.Z(ct=>{for(let pt of ct)(pt.target.offsetHeight>0||pt.target.offsetWidth>0)&&nt.layout()}),dt.observe(_e.current)),dt}(0,Ye.useEffect)(()=>(_e.current&&Promise.all([Ge.e(8909),Ge.e(9404)]).then(Ge.bind(Ge,2550)).then(nt=>{ze=nt;const dt=ze.editor.createDiffEditor(_e.current,it($e({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ce),{wordWrap:!0}));xe(dt);let ct=Se(dt);return()=>{dt.dispose();const pt=dt.getModel();pt&&pt.dispose(),ct.unobserve(_e.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ye.useEffect)(()=>{Ue&&Ue.setModel({original:ze.editor.createModel(Le,te),modified:ze.editor.createModel(De,te)})},[Le,De,te,Ue]);const Oe=qe(st),We=qe(Xe),et={width:Oe,height:We};return Ye.createElement("div",{className:"my-diff-editor",ref:_e,style:et})}},64536:function(Ht,_t,Ge){"use strict";var Ye=Ge(45298),mt=Ge(82326),y=Ge(71411),Ce=Ge(59301);const ye=mt.default.Option;_t.Z=({isTheoretical:x,onFontSizeChange:z,cmFontSize:se,cmCodeMode:ae,autoFormat:ee,onCodeModeChange:fe,onTabToSpace:E,onAutoFormat:re,formatDocument:ne,className:le="",tabToSpace:ue,children:he,code_editor:pe,challenge:ve,shixun_environment_id:de,shixun_environments:we})=>{var Te;const je={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Me=(Te=we==null?void 0:we.find(Ae=>Ae.shixun_environment_id===de))==null?void 0:Te.program_language;return console.log("----",Me,we,de,pe),Ce.createElement("div",{className:`tpi-code-setting ${le}`},Ce.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Ce.createElement("section",null,Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Ce.createElement(mt.default,{bordered:!1,size:"small",value:ae,onChange:fe},Ce.createElement(ye,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Ce.createElement(ye,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!x&&Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Ce.createElement(mt.default,{bordered:!1,size:"small",value:se,onChange:z},Ce.createElement(ye,{value:12},"12px"),Ce.createElement(ye,{value:14},"14px"),Ce.createElement(ye,{value:16},"16px"),Ce.createElement(ye,{value:18},"18px"),Ce.createElement(ye,{value:20},"20px"),Ce.createElement(ye,{value:22},"22px"))),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"Tab\u8F6C\u6362"),Ce.createElement(y.Z,{checked:ue,onChange:E})),Ce.createElement("div",{className:"file-item",onClick:ne},Ce.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!x&&Ce.createElement(Ce.Fragment,null,Ce.createElement("h3",null,"\u5FEB\u6377\u952E"),Ce.createElement("section",null,Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Ce.createElement("span",null,"Ctrl + S")),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Ce.createElement("span",null,"F1 / Alt + F1")),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Ce.createElement("span",null,"Ctrl + ]/[")),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Ce.createElement("span",null,"Ctrl + Shift + \\")),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Ce.createElement("span",null,"Home")),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Ce.createElement("span",null,"End"))),he),!x&&Ce.createElement(Ce.Fragment,null,Ce.createElement("h3",null,"\u5FEB\u6377\u952E"),Ce.createElement("section",null,Me&&Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Ce.createElement("span",null,Me)),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Ce.createElement("span",null,je[ve==null?void 0:ve.difficulty])),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Ce.createElement("span",null,pe==null?void 0:pe.name)),Ce.createElement("div",{className:"file-item"},Ce.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Ce.createElement("span",null,pe!=null&&pe.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},17904:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return mt}});var Ye=Ge(59301);function mt(y,Ce){const ye=(0,Ye.useRef)();(0,Ye.useEffect)(()=>{ye.current=y}),(0,Ye.useEffect)(()=>{function x(){ye.current()}if(Ce!==null){let z=setInterval(x,Ce);return()=>clearInterval(z)}},[Ce])}},29499:function(Ht,_t,Ge){"use strict";Ge.r(_t),Ge.d(_t,{Types:function(){return An},default:function(){return Sr}});var Ye=Ge(59301),mt={header:"header___N_IdR",field:"field___XG_dh","oj-form-container":"oj-form-container___syYzK","oj-left-panel":"oj-left-panel___L082x","oj-form-info":"oj-form-info___q0IU5",footer:"footer___pGCM2",result:"result___LM9Ms",passText:"passText___nUoL4",noPassText:"noPassText___ECHHG",pass:"pass___tDubp",noPass:"noPass___ilYvg","test-case-name":"test-case-name___MI_KD","btn-remove-case":"btn-remove-case___OiaTQ","icon-tag":"icon-tag___D86WO",btn_back:"btn_back___FyaSY",testJi:"testJi___NDviK",upBtn:"upBtn___FiZX4","oj-problems":"oj-problems___xb70g",row:"row___v036E",a:"a___yRaYH",b:"b___gWQyu",inputTwo:"inputTwo___IZ9og",inputOne:"inputOne____NmcT",cusModal:"cusModal___fJ5gm","oj-custom-large-spin":"oj-custom-large-spin___Aar0g",MdEditor:"MdEditor___hgoes"},y=Ge(37568),Ce=Ge(62957),ye=Ge(8848),x=Ge(28284),z=Ge(6767),se=Ge(77019),ae=Ge(5269),ee=Ge(29787),fe=Ge(99571),E=Ge(54172),re=Ge(82326),ne=Ge(71051),le=Ge(47889),ue=Ge(62673),he=Ge(77736),pe=Ge(93725),ve=Ge(59301);const{Option:de}=re.default;var we=(lr=>(lr[lr.language=0]="language",lr[lr.difficulty=1]="difficulty",lr[lr.category=2]="category",lr[lr.openOrNot=3]="openOrNot",lr))(we||{});const Te={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u9002\u4E2D",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function je(lr){return Te[lr].map(tr=>ve.createElement(de,{key:tr.title,value:tr.key}," ",tr.title," "))}function Me(lr,tr){lr.map(or=>{const{id:Pr,name:mr,sub_disciplines:Br}=or;let qr={value:Pr,label:mr};tr.push(qr),Br&&Br.length>0&&(qr.children=[],Me(Br,qr.children))})}function Ae(lr,tr){var or;let Pr=[];for(let mr=0;mr<lr.length;mr++){const Br=lr[mr];if(((or=Br.sub_disciplines)==null?void 0:or.length)>0){Pr[0]=Br.id;for(let qr=0;qr<Br.sub_disciplines.length;qr++){const tn=Br.sub_disciplines[qr];if(tn.id===tr)return Pr[1]=tn.id,[Pr,tn.tag_disciplines||tn.sub_disciplines||[]]}}}return[Pr,[]]}var ge=Ge(76560),be=Ge(24334),Ee=Ge(76618),Re=Ge(65363),Ie=Ge(2978),ke=Ge(82093);function Pe(lr){return(0,ke.v_)("practices.json",lr)}function Ze(){return(0,ke.U2)("problems/new.json")}function He(lr){return(0,ke.U2)(`practices/${lr}/edit.json`)}function $e(lr,tr){return(0,ke.gz)(`practices/${lr}`,tr)}function it(lr,tr){return post(`exercises/${lr}/exercise_questions.json`,tr)}function Ne(lr,tr){return put(`exercise_questions/${lr}.json`,tr)}var Fe=Ge(72015),qe=Ge(30641),rt=Ge(51124),tt=Ge(64536),Ve=Ge(75790),Ke=Ge(89613),ze={"code-panel-container":"code-panel-container___BZjjl","action-oj-bar":"action-oj-bar___xbXpK",active:"active___EMVKI"},at=Object.defineProperty,Qe=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,De=(lr,tr,or)=>tr in lr?at(lr,tr,{enumerable:!0,configurable:!0,writable:!0,value:or}):lr[tr]=or,te=(lr,tr)=>{for(var or in tr||(tr={}))Xe.call(tr,or)&&De(lr,or,tr[or]);if(st)for(var or of st(tr))Le.call(tr,or)&&De(lr,or,tr[or]);return lr},ce=(lr,tr)=>Qe(lr,ut(tr));const _e={theme:(0,Ke.G)("cmCodeMode","vs-dark"),fontSize:(0,Ke.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,Ke.G)("cmTabToSpace",!0)};var Ue=(lr=>(lr[lr.set_font_size=0]="set_font_size",lr[lr.set_theme=1]="set_theme",lr[lr.on_tab_to_space=2]="on_tab_to_space",lr[lr.set_show_editor_setting=3]="set_show_editor_setting",lr))(Ue||{});function xe(lr,tr){switch(tr.type){case 3:return ce(te({},lr),{showEditorSetting:tr.payload});case 1:return ce(te({},lr),{theme:tr.payload});case 0:return ce(te({},lr),{fontSize:tr.payload});case 2:return ce(te({},lr),{tabToSpace:tr.payload});default:throw new Error}}var Se=({value:lr,onChange:tr,language:or,onLanguage:Pr,languageItems:mr,ActionBarRender:Br=qr=>Ye.createElement(Oe,{languageItems:mr,onLanguage:Pr,language:or,onShowCodeSetting:qr})})=>{const[qr,tn]=(0,Ye.useReducer)(xe,_e),{theme:Zr,fontSize:Lr,showEditorSetting:pn,tabToSpace:fr}=qr;console.log(lr,or,"value");const Vt={onFontSizeChange:Ct=>{tn({type:0,payload:Ct}),(0,Ke.t)("cmFontSize",Ct)},tabToSpace:fr,cmFontSize:Lr,className:"oj",cmCodeMode:Zr,onTabToSpace:Ct=>{tn({type:2,payload:Ct}),(0,Ke.t)("cmTabToSpace",Ct)},onCodeModeChange:Ct=>{tn({type:1,payload:Ct}),(0,Ke.t)("cmCodeMode",Ct)}};function xr(){tn({type:3,payload:!1})}function Kr(){tn({type:3,payload:!0})}const mn={value:lr,language:or,onChange:tr,theme:Zr,height:"calc(100% - 56px)",options:{fontSize:Lr,insertSpaces:fr}};return Ye.createElement(Ye.Fragment,null,Ye.createElement("div",{className:ze["code-panel-container"]},Br(Kr),Ye.createElement(rt.ZP,te({key:or},mn))),Ye.createElement(Ve.Z,null,Ye.createElement(qe.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:pn,onClose:xr},Ye.createElement(tt.Z,te({},Vt)))))};function Oe({languageItems:lr,language:tr,onShowCodeSetting:or,onLanguage:Pr}){return Ye.createElement("div",{className:ze["action-oj-bar"]},lr==null?void 0:lr.map(mr=>Ye.createElement("div",{className:tr===(mr==null?void 0:mr.language)?ze.active:"",onClick:()=>Pr(mr==null?void 0:mr.language),key:mr==null?void 0:mr.language},mr==null?void 0:mr.language)),Ye.createElement("a",{onClick:or},Ye.createElement("i",{className:"iconfont icon-shezhi"})))}var We=Ge(20554),et={flex_box_center:"flex_box_center___4yAaY",flex_space_between:"flex_space_between___YaUgM",flex_box_vertical_center:"flex_box_vertical_center___zR3dp",flex_box_center_end:"flex_box_center_end___rwgS5",flex_box_column:"flex_box_column___LhFeP",wrap:"wrap___xTL91",in:"in___eSY86",btns:"btns___UdEGI",customModal:"customModal___CL0OL"},nt=(lr,tr,or)=>new Promise((Pr,mr)=>{var Br=Zr=>{try{tn(or.next(Zr))}catch(Lr){mr(Lr)}},qr=Zr=>{try{tn(or.throw(Zr))}catch(Lr){mr(Lr)}},tn=Zr=>Zr.done?Pr(Zr.value):Promise.resolve(Zr.value).then(Br,qr);tn((or=or.apply(lr,tr)).next())}),ct=({visible:lr,onOK:tr,onCancel:or})=>{const[Pr,mr]=(0,Ye.useState)(!1),[Br,qr]=(0,Ye.useState)(!1),[tn,Zr]=(0,Ye.useState)("1"),[Lr,pn]=(0,Ye.useState)(""),[fr,Vt]=(0,Ye.useState)([]),xr=()=>nt(void 0,null,function*(){if(!Lr){z.ZP.warning(`\u9898\u76EE${ir}\u4E0D\u80FD\u4E3A\u7A7A`);return}qr(!0);const Kt=yield(0,ke.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:lr,name:Lr}});if((Kt==null?void 0:Kt.status)===0){tr();return}qr(!1)}),Kr=(Kt="")=>nt(void 0,null,function*(){mr(!0);let jt=yield(0,ke.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:lr,search:Kt}});Vt(jt.tag_disciplines||[]),mr(!1)}),mn=Kt=>{let jt=Kt.name;Ce.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u91CD\u547D\u540D",content:Ye.createElement("div",null,Ye.createElement(y.default,{defaultValue:jt,placeholder:`\u8BF7\u8F93\u5165${ir}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20,onChange:nr=>{jt=nr.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>nt(void 0,null,function*(){if(!jt)return z.ZP.warning(`\u9898\u76EE${ir}\u4E0D\u80FD\u4E3A\u7A7A`),Promise.reject();const nr=yield(0,ke.ZP)(`/api/tag_disciplines/${Kt.id}/rename.json`,{method:"post",body:{id:Kt.id,name:jt}});(nr==null?void 0:nr.status)===0&&Kr()})})},Ct=Kt=>{Ce.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"\u5220\u9664",content:lr==="practice"?Ye.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u6765\u6E90\u201C",Ye.createElement("span",{className:"c-light-primary"},Kt.name),"\u201D\u5220\u9664\u5417\uFF1F",Ye.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u6765\u6E90\u8FDB\u884C\u6E05\u9664\u3002"):Ye.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u77E5\u8BC6\u70B9\u201C",Ye.createElement("span",{className:"c-light-primary"},Kt.name),"\u201D\u5220\u9664\u5417\uFF1F",Ye.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u77E5\u8BC6\u70B9\u8FDB\u884C\u6E05\u9664\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>nt(void 0,null,function*(){const jt=yield(0,ke.ZP)(`/api/tag_disciplines/${Kt.id}.json`,{method:"delete",body:{id:Kt.id}});(jt==null?void 0:jt.status)===0&&Kr()})})},kt=Kt=>{Kr(Kt)},ir=lr==="practice"?"\u77E5\u8BC6\u70B9":"\u6765\u6E90";return Ye.createElement(Ce.default,{afterClose:()=>{qr(!1),mr(!1),pn(""),Zr("1"),Vt([])},centered:!0,keyboard:!1,width:600,title:`${ir}\u7BA1\u7406`,open:!!lr,className:et.customModal,footer:null,onCancel:or},Ye.createElement("section",{className:et.wrap},Ye.createElement(We.default,{activeKey:tn,onChange:Kt=>{pn(""),Zr(Kt),Kr()}},Ye.createElement(We.default.TabPane,{tab:`\u65B0\u589E${ir}`,key:"1"},Ye.createElement(y.default,{value:Lr,onChange:Kt=>pn(Kt.target.value),className:et.in,placeholder:`\u8F93\u5165${ir}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20}),Ye.createElement("div",{className:et.btns},Ye.createElement(fe.ZP,{onClick:or,className:"mr20"},"\u53D6\u6D88 "),Ye.createElement(fe.ZP,{loading:Br,onClick:xr,type:"primary"},"\u786E\u8BA4\u65B0\u5EFA"))),Ye.createElement(We.default.TabPane,{tab:`\u5DF2\u6709${ir}`,key:"2"},Ye.createElement(y.default.Search,{allowClear:!0,onSearch:kt,value:Lr,onChange:Kt=>pn(Kt.target.value),className:et.in,placeholder:`\u8F93\u5165${ir}\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2`}),Ye.createElement(E.default,{dataSource:fr,bordered:!1,loading:Pr,scroll:fr.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:`${ir}\u540D\u79F0`,dataIndex:"name",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"action",width:120,render:(Kt,jt)=>Ye.createElement("span",null,Ye.createElement("span",{onClick:()=>mn(jt),className:"current mr10 c-light-primary"},"\u91CD\u547D\u540D"),Ye.createElement("span",{onClick:()=>Ct(jt),className:"current c-grey-666"},"\u5220\u9664"))}],pagination:!1})))))},pt=Ge(90524),St=Ge(12062),yt=Ge(57309),xt=Ge.n(yt),vt=Ge(49661),Tt=Ge(38394),bt=Ge(34055),ft=Ge(59301),Dt=Object.defineProperty,At=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,wr=(lr,tr,or)=>tr in lr?Dt(lr,tr,{enumerable:!0,configurable:!0,writable:!0,value:or}):lr[tr]=or,jr=(lr,tr)=>{for(var or in tr||(tr={}))pr.call(tr,or)&&wr(lr,or,tr[or]);if($t)for(var or of $t(tr))qt.call(tr,or)&&wr(lr,or,tr[or]);return lr},Dr=(lr,tr)=>At(lr,Mt(tr)),Fr=(lr,tr,or)=>new Promise((Pr,mr)=>{var Br=Zr=>{try{tn(or.next(Zr))}catch(Lr){mr(Lr)}},qr=Zr=>{try{tn(or.throw(Zr))}catch(Lr){mr(Lr)}},tn=Zr=>Zr.done?Pr(Zr.value):Promise.resolve(Zr.value).then(Br,qr);tn((or=or.apply(lr,tr)).next())});const{TextArea:on}=y.default,{confirm:wn}=Ce.default,{Panel:hn}=ye.default,Gr={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0};var An=(lr=>(lr[lr.SET_INITAL_DATA=0]="SET_INITAL_DATA",lr[lr.SET_LOADING=1]="SET_LOADING",lr[lr.SET_STATUS=2]="SET_STATUS",lr))(An||{});const Rn="#### \u9898\u76EE\u63CF\u8FF0\n\u73B0\u6709\u4E00\u4E2A\u6574\u578B\u6570\u7EC4 `nums`\uFF0C\u8BF7\u7F16\u5199\u7A0B\u5E8F\u5C06\u6570\u7EC4 `nums` \u4E2D\u7684\u6240\u6709 `$$0$$` \u79FB\u52A8\u5230\u6570\u7EC4\u7684\u672B\u5C3E\uFF0C\u4F46\u4E0D\u6539\u53D8\u975E\u96F6\u5143\u7D20\u5728\u6570\u7EC4\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\u8BF7\u5728\u539F\u6570\u7EC4 `nums` \u4E0A\u8FDB\u884C\u64CD\u4F5C\u3002\n#### \u8F93\u5165\u8F93\u51FA\u683C\u5F0F\n**\u8F93\u5165\u683C\u5F0F**\n\u7B2C\u4E00\u884C\u6709\u4E00\u4E2A\u6574\u6570 `numsSize`\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u5927\u5C0F\uFF1B\n\u7B2C\u4E8C\u884C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n**\u8F93\u51FA\u683C\u5F0F**\n\u4E00\u884C\u8F93\u51FA\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B1\n**\u8F93\u5165**\n`4`\n`0 1 2 3`\n**\u8F93\u51FA**\n`1 2 3 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B2\n**\u8F93\u5165**\n`5`\n`1 1 0 1 0`\n**\u8F93\u51FA**\n`1 1 1 0 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8BF4\u660E\u63D0\u793A\n-`1\u2264n\u2264100`";function Tr(lr,tr){switch(tr.type){case 0:return jr(jr({},lr),tr.payload);case 1:return Dr(jr({},lr),{loading:tr.payload});case 2:return Dr(jr({},lr),{status:tr.payload});default:throw new Error}}var Sr=()=>{var lr,tr,or;const Pr=(0,ge.useLocation)(),{id:mr}=(0,ge.useParams)(),[Br]=x.default.useForm(),[qr,tn]=(0,Ye.useState)(),[Zr,Lr]=(0,Ye.useState)(!1),[pn,fr]=(0,Ye.useState)([]),[Vt,xr]=(0,Ye.useState)([]),[Kr,mn]=(0,Ye.useState)([]),[Ct,kt]=(0,Ye.useState)([]),[ir,Kt]=(0,Ye.useState)([]),[jt,nr]=(0,Ye.useState)("C"),[dr,hr]=(0,Ye.useReducer)(Tr,Gr),{loading:br,data:ur,user:gr,status:Pt}=dr,Ur=ur==null?void 0:ur.hack_sets,sr=(lr=ur==null?void 0:ur.hack)==null?void 0:lr.test_set_average,[yr,Or]=(0,Ye.useState)(!1),Wr=(0,Ye.useRef)([]),[an,Ln]=(0,Ye.useState)(!1),[yn,un]=(0,Ye.useState)(!1),On=(0,Ye.useRef)(!0),[zr,zn]=(0,Ye.useState)({});(0,Ye.useEffect)(()=>((0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,Ye.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)});const Xn=()=>Fr(void 0,null,function*(){const It=yield(0,ke.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}}),Yt=yield(0,ke.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});xr(It.tag_disciplines||[]),mn(Yt.tag_disciplines||[])});var Hn=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];const Gn=(0,Ye.useCallback)(()=>Fr(void 0,null,function*(){if(hr({type:1,payload:!0}),mr){const It=yield He(mr),{user:Yt,language:rr,practice_sets:Qt,practice_codes:Ot,description:Ut,difficulty:zt,name:Zt,open_or_not:er,time_limit:Bt,test_set_average:Jt,test_set_score:Xt,status:ar,tag_discipline_ids:Er,source_discipline_ids:Cr,item_banks_group_id:Vr,is_file:Ar=!1,hide_actual_output:$r,review_privilege:rn,review_description:cn,submit_rule:nn}=It;zn({review_privilege:rn,status:ar,review_description:cn,name:Zt}),Or($r);const kn=Ar?[{input:"",output:"",score:100,position:1}]:Qt;Ar?(fr(Qt),Br.setFieldsValue({hack_sets:kn})):fr([]),hr({type:0,payload:{loading:!0,user:Yt,status:ar,data:{hack:{difficulty:zt,name:Zt,description:Ut,open_or_not:er,time_limit:Bt,test_set_average:Jt,test_set_score:Xt,tag_discipline_ids:Er,source_discipline_ids:Cr,is_file:Ar,submit_rule:nn},hack_sets:kn}}}),tn({hack:{difficulty:zt,name:Zt,description:Ut,open_or_not:er,time_limit:Bt,test_set_average:Jt,test_set_score:Xt,tag_discipline_ids:Er,source_discipline_ids:Cr,is_file:Ar}});const Sn=Ot==null?void 0:Ot.map(Jr=>Dr(jr({},Jr),{code:be.Base64.decode(Jr==null?void 0:Jr.code)}));Kt(Sn),Wr.current=Sn}else{const{user:It}=yield Ze();hr({type:0,payload:{loading:!0,status:0,user:It,data:{hack:{difficulty:"",time_limit:3,description:Rn,test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),tn({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),Kt(Hn),Wr.current=Hn}hr({type:1,payload:!1})}),[mr]);(0,Ye.useEffect)(()=>{try{Gn(),Xn()}catch(It){console.log(It,"----")}},[]);function Yn(It,Yt){return Fr(this,null,function*(){var rr;const{hack_sets:Qt,hack:Ot}=jr({},It);Ot.hide_actual_output=yr;let Ut=[],zt=[],Zt=0;const er=Ot!=null&&Ot.is_file?pn.map((Xt,ar)=>Dr(jr({},Xt),{position:ar+1})):Qt.map(Xt=>Dr(jr({},Xt),{is_file:!1}));for(let Xt of er)Zt+=Xt.score,Xt.id&&Xt.id>=0?Ut.push(Xt):zt.push(Xt);if(!(er!=null&&er.length)){z.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(Zt!==100&&!Ot.test_set_score){z.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(er!=null&&er.some(Xt=>!Xt.output)){z.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}On.current?Ln(!0):un(!0);let Bt;const Jt=ir==null?void 0:ir.map(Xt=>Dr(jr({},Xt),{code:be.Base64.encode(Xt==null?void 0:Xt.code)}));if(mr?Bt=yield $e(mr,{practice:Ot,practice_codes:Jt,practice_sets:zt,update_practice_sets:Ut}):Bt=yield Pe({practice:Ot,practice_codes:Jt,practice_sets:er,publish:!On.current}),Ln(!1),un(!1),(Bt==null?void 0:Bt.status)===0){if((rr=Bt==null?void 0:Bt.similar_practice)!=null&&rr.length){Lr(!0),kt(Bt==null?void 0:Bt.similar_practice);return}if(mr){if(z.ZP.success("\u4FDD\u5B58\u6210\u529F"),!On.current){const Xt=yield(0,ke.ZP)(`/api/practices/${mr}/start`,{method:"get"});(Xt==null?void 0:Xt.status)===0&&ge.history.push(`/problems/${Xt==null?void 0:Xt.identifier}/oj/${mr}`)}}else z.ZP.success("\u65B0\u5EFA\u6210\u529F"),ge.history.replace(`/problems/${Bt==null?void 0:Bt.identifier}/ojedit`)}})}function Kn(){ge.history.replace("/problems")}const Dn=It=>{const Yt=Math.floor(100/It.length),rr=Yt+100%It.length;It=It.map((Qt,Ot)=>Ot===It.length-1?Dr(jr({},Qt),{score:rr}):Dr(jr({},Qt),{score:Yt})),fr(It)};function $n(It){It.target.value||Dn(pn),hr({type:0,payload:{data:Dr(jr({},ur),{hack:Dr(jr({},ur.hack),{test_set_score:It.target.value})})}})}function Wn(It){hr({type:0,payload:{data:Dr(jr({},ur),{hack:Dr(jr({},ur.hack),{is_file:It.target.value})})}})}function _r(It){Or(It.target.checked)}function en(It){const Yt=It.target.value;Yt&&Dn(pn),hr({type:0,payload:{data:Dr(jr({},ur),{hack:Dr(jr({},ur.hack),{test_set_average:Yt})})}})}function bn(){let It=Br.getFieldValue("hack_sets");const Yt=It.length+1,rr=Math.floor(100/Yt),Qt=100%Yt;It.map((Ot,Ut)=>(sr&&(Ot.score=rr),Ot.position=Ut+1,Ot)),It.push({input:"",output:"",position:Yt,score:sr?rr+Qt:0}),Br.setFieldsValue({hack_sets:It}),hr({type:0,payload:{data:Dr(jr({},ur),{hack_sets:It})}})}(0,Ye.useEffect)(()=>{if(sr){const It=Ur==null?void 0:Ur.length,Yt=Math.floor(100/It),rr=100%It;Ur==null||Ur.map((Qt,Ot)=>(Qt.score=Yt,Qt.position=Ot+1,Ot===It-1&&(Qt.score=Yt+rr),Qt)),hr({type:0,payload:{data:Dr(jr({},ur),{hack_sets:Ur})}}),Br.setFieldsValue({hack_sets:Ur})}},[sr]);function In(It){let Yt=Br.getFieldValue("hack_sets");const rr=(Yt==null?void 0:Yt.length)-1,Qt=Math.ceil(100/rr),Ot=100%rr;Yt.splice(It,1),Yt==null||Yt.map((Ut,zt)=>(sr&&(Ut.score=Qt,zt===rr-1&&(Ut.score=Qt+Ot)),Ut.position=zt+1,Ut)),hr({type:0,payload:{data:Dr(jr({},ur),{hack_sets:Yt})}}),Br.setFieldsValue({hack_sets:Yt})}function Mn(It){nr(It)}const Nn=It=>{var Yt;const rr=(Yt=Wr.current)==null?void 0:Yt.findIndex(Qt=>Qt.language===jt);Wr.current[rr].code=It,Kt(Wr.current)},ii=It=>{tn(jr({},Br.getFieldsValue()))},gt=It=>Fr(void 0,null,function*(){const Yt=yield(0,ke.ZP)(`/api/practices/${It}/start`,{method:"get"});(Yt==null?void 0:Yt.status)===0&&(0,vt.xg)(`/problems/${Yt==null?void 0:Yt.identifier}/oj/${It}`)}),Lt=()=>Fr(void 0,null,function*(){const It=yield He(mr),{name:Yt,status:rr,review_privilege:Qt,review_description:Ot}=It;zn({review_privilege:Qt,status:rr,review_description:Ot,name:Yt})}),Rt=()=>{let It="";Ce.default.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"\u4E0D\u901A\u8FC7\u539F\u56E0",content:ft.createElement("div",{className:"mt20"},ft.createElement(Ie.Z,{className:mt.MdEditor,defaultValue:It,onChange:Yt=>{It=Yt}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Fr(void 0,null,function*(){if(!It)return z.ZP.warning("\u4E0D\u901A\u8FC7\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Yt=yield(0,ke.ZP)(`/api/practices/${mr}/review.json`,{method:"post",body:{op:"fail",description:It}});(Yt==null?void 0:Yt.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Lt())})})},Ft=()=>Fr(void 0,null,function*(){Ce.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u63D0\u793A",content:`\u786E\u8BA4\u5C06\u9898\u76EE\u300A${zr==null?void 0:zr.name}\u300B\u7684\u5BA1\u6838\u901A\u8FC7\u5417\uFF1F`,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Fr(void 0,null,function*(){const It=yield(0,ke.ZP)(`/api/practices/${mr}/review.json`,{method:"post",body:{op:"pass"}});(It==null?void 0:It.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Lt())})})}),Gt=()=>{const It=Ce.default.confirm({icon:null,width:700,className:`${mt.cusModal} custom-modal-divider`,centered:!0,title:ft.createElement(se.Z,null,ft.createElement(ae.Z,{flex:"1"},"\u4E0D\u901A\u8FC7\u539F\u56E0"),ft.createElement(ae.Z,null,ft.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>It.destroy()}))),content:ft.createElement("div",null,ft.createElement(Tt.Z,{className:"mt20",value:(zr==null?void 0:zr.review_description)||""}))})};return ft.createElement(ee.Z,{spinning:br,size:"large",className:mt["oj-custom-large-spin"]},ur?ft.createElement(Ye.Fragment,null,ft.createElement("header",{className:mt.header},ft.createElement("div",null,ft.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/${gr==null?void 0:gr.image_url}`,alt:"user",width:30}),ft.createElement("span",null,gr==null?void 0:gr.name)),ft.createElement("h2",null," ",(tr=ur==null?void 0:ur.hack)==null?void 0:tr.name," "),mr?ft.createElement("a",{className:mt.btn_back,onClick:Kn}," ",ft.createElement(Ee.Z,null),"\u9000\u51FA"):null),ft.createElement(x.default,{form:Br,initialValues:ur,layout:"vertical",className:mt["oj-form-container"],onValuesChange:ii,onFinish:Yn},ft.createElement(Fe.Z,{hideResize:!0,className:mt["oj-problems"],leftChild:ft.createElement(sn,{formValue:qr,onRemoveTestCase:In,onAddTestCase:bn,hack:ur.hack,onChangeScore:$n,onChangehide:_r,onChangeAverage:en,onChangeFile:Wn,uploadData:pn,setUploadData:fr,handleUploadRatio:Dn,ischecked:yr,pointData:Vt,sourceData:Kr,getPointData:Xn}),rightChild:ft.createElement(Se,{value:(or=ir==null?void 0:ir.find(It=>It.language===jt))==null?void 0:or.code,onChange:Nn,onLanguage:Mn,languageItems:ir,language:jt})}),ft.createElement("div",{className:mt.footer},!!mr&&ft.createElement("div",{className:mt.result},ft.createElement("span",null,"\u5BA1\u6838\u7ED3\u679C:"),zr!=null&&zr.review_privilege?ft.createElement(ft.Fragment,null,ft.createElement("div",{onClick:Ft,className:mt.pass},"\u901A\u8FC7"),ft.createElement("div",{onClick:Rt,className:mt.noPass},"\u4E0D\u901A\u8FC7")):ft.createElement(ft.Fragment,null,(zr==null?void 0:zr.status)===0&&ft.createElement("div",{className:mt.passText},ft.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u53D1\u5E03"),(zr==null?void 0:zr.status)===1&&ft.createElement("div",{className:mt.passText},ft.createElement("i",{className:"iconfont icon-tongguo"}),"\u5DF2\u516C\u5F00"),(zr==null?void 0:zr.status)===2&&ft.createElement("div",{className:mt.passText},ft.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u5BA1\u6279"),(zr==null?void 0:zr.status)===3&&ft.createElement("div",{className:mt.passText},ft.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u4E2D"),(zr==null?void 0:zr.status)===4&&ft.createElement("div",{className:mt.passText},ft.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u5B8C\u6210\u5F85\u516C\u5F00"),(zr==null?void 0:zr.status)===5&&ft.createElement("div",{className:mt.noPassText},ft.createElement("i",{className:"iconfont icon-weitongguo1"}),"\u5BA1\u6838\u4E0D\u901A\u8FC7",ft.createElement("span",{onClick:Gt},"\u67E5\u770B\u539F\u56E0")))),ft.createElement(fe.ZP,{type:"primary",ghost:!0,onClick:Kn},"\u9000\u51FA\u7F16\u8F91"),ft.createElement(fe.ZP,{disabled:yn,loading:an,type:"primary",onClick:()=>{On.current=!0,Br.submit()}},"\u4FDD\u5B58 "),mr?ft.createElement(fe.ZP,{disabled:an,loading:yn,style:{background:"#2FC25B",border:0},type:"primary",onClick:()=>{On.current=!1,Br.submit()}},"\u7ACB\u5373\u4F53\u9A8C"):ft.createElement(fe.ZP,{disabled:an,loading:yn,type:"primary",onClick:()=>{On.current=!1,Br.submit()}},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u5BA1\u6838")))):null,ft.createElement(Ce.default,{centered:!0,destroyOnClose:!0,footer:null,open:Zr,onCancel:()=>Lr(!1),title:"\u76F8\u4F3C\u6027\u68C0\u6D4B",width:"600px"},ft.createElement("div",null,ft.createElement("p",{className:"font14"},"\u7ECF\u7CFB\u7EDF\u68C0\u6D4B\u53D1\u73B0\uFF0C\u672C\u9898\u76EE\u4E0E\u7CFB\u7EDF\u4E2D\u5DF2\u521B\u5EFA\u7684\u9898\u76EE\u9AD8\u5EA6\u96F7\u540C\uFF0C\u8BF7\u8C03\u6574\u9898\u76EE\u540E\u518D\u8FDB\u884C\u4FDD\u5B58"),ft.createElement(E.default,{dataSource:Ct,bordered:!1,scroll:Ct.length>7?{y:300}:{},columns:[{title:"\u76F8\u4F3C\u9898\u9898\u76EE",dataIndex:"name",ellipsis:!0,render:(It,Yt)=>ft.createElement("span",{onClick:()=>gt(Yt==null?void 0:Yt.identifier),style:{textDecorationLine:"underline"},className:"current c-light-primary"},It)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"create_time",width:170,render:It=>{var Yt;return(Yt=xt()(It))==null?void 0:Yt.format("YYYY-MM-DD HH:mm")}}],pagination:!1}))))};function sn({ischecked:lr,formValue:tr,hack:or,onChangeAverage:Pr,onChangeScore:mr,onChangehide:Br,onChangeFile:qr,onAddTestCase:tn,onRemoveTestCase:Zr,uploadData:Lr,setUploadData:pn,handleUploadRatio:fr,pointData:Vt,sourceData:xr,getPointData:Kr}){var mn,Ct;const{test_set_average:kt,test_set_score:ir}=or,[Kt,jt]=(0,Ye.useState)(!1),[nr,dr]=(0,Ye.useState)(!1),hr=(sr,yr)=>{const Or=[...Lr];Or.splice(yr,1),kt?fr(Or):pn(Or)},br=(sr,yr)=>{console.log(sr,yr);const Or=Lr.map((Wr,an)=>an===yr?Dr(jr({},Wr),{score:sr.target.value?Number(sr.target.value):0}):Wr);pn(Or)},ur=sr=>{const yr=Lr.concat(sr);or.test_set_average?fr(yr):pn(yr)};function gr(sr){sr.stopPropagation()}function Pt(){if((0,bt.Ny)()){dr("practice");return}let sr="";Ce.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",content:ft.createElement("div",null,ft.createElement(y.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:yr=>{sr=yr.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Fr(this,null,function*(){const yr=yield(0,ke.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:sr}});(yr==null?void 0:yr.status)===0&&Kr()})})}function Ur(){if((0,bt.Ny)()){dr("practice_source");return}let sr="";Ce.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u6765\u6E90",content:ft.createElement("div",null,ft.createElement(y.default,{placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:yr=>{sr=yr.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Fr(this,null,function*(){const yr=yield(0,ke.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:sr}});(yr==null?void 0:yr.status)===0&&Kr()})})}return ft.createElement("div",{className:mt["oj-left-panel"]},ft.createElement("div",{className:mt["oj-form-info"]},ft.createElement(x.default.Item,{label:"\u9898\u76EE\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0"}],className:mt.inputOne},ft.createElement(y.default,{bordered:!1,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0",suffix:ft.createElement("span",null,((Ct=(mn=tr==null?void 0:tr.hack)==null?void 0:mn.name)==null?void 0:Ct.length)||0,"/",ft.createElement("span",{className:"c-grey-999"},"60"))})),ft.createElement(x.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},ft.createElement(Ie.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u63CF\u8FF0\u2026",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),ft.createElement("div",{className:mt.row},ft.createElement("div",{className:mt.a},ft.createElement(x.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficulty"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},ft.createElement(re.default,null,je(we.difficulty)))),ft.createElement("div",{className:mt.b},ft.createElement(x.default.Item,{label:"\u9898\u76EE\u6765\u6E90",name:["hack","source_discipline_ids"]},ft.createElement(re.default,{placeholder:"\u9009\u62E9\u9898\u76EE\u6765\u6E90",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:sr=>sr.parentNode},xr.map(sr=>ft.createElement(re.default.Option,{key:sr.id,value:sr.id},sr.name)))),ft.createElement(fe.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:()=>Ur()},(0,bt.Ny)()?"\u6765\u6E90\u7BA1\u7406":"\u65B0\u5EFA\u6765\u6E90"))),ft.createElement("div",{className:mt.row},ft.createElement("div",{className:mt.b,style:{width:"100%",marginLeft:0}},ft.createElement(x.default.Item,{label:"\u77E5\u8BC6\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"}],name:["hack","tag_discipline_ids"]},ft.createElement(re.default,{placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:sr=>sr.parentNode},Vt.map(sr=>ft.createElement(re.default.Option,{key:sr.id,value:sr.id},sr.name)))),ft.createElement(fe.ZP,{type:"primary",ghost:!0,onClick:()=>Pt()},(0,bt.Ny)()?"\u77E5\u8BC6\u70B9\u7BA1\u7406":"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))),ft.createElement("div",{className:mt.field},ft.createElement(x.default.Item,{label:"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236",name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],className:mt.inputTwo,extra:ft.createElement("span",{style:{position:"absolute",left:200,top:11,color:"#333"}},"\u79D2",ft.createElement("span",{className:"ml5 c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)"))},ft.createElement(ne.Z,{style:{width:185},min:1}))),ft.createElement("div",{className:"tst-case-info"},ft.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," ","\u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!or.is_file&&ft.createElement(fe.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:tn},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),ft.createElement(x.default.Item,{name:["hack","test_set_score"]},ft.createElement(le.ZP.Group,{onChange:mr},ft.createElement(le.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",ft.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),ft.createElement(le.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",ft.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),ft.createElement(ue.default,{style:{marginBottom:"5px"},checked:lr,onChange:Br},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u505A\u9898\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),ft.createElement(x.default.Item,{className:mt.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},ft.createElement(le.ZP.Group,{onChange:qr},ft.createElement(he.Z,{direction:"horizontal"},ft.createElement(le.ZP,{value:!1},"\u6587\u672C"),ft.createElement(le.ZP,{value:!0},"\u6587\u4EF6")))),ft.createElement(x.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ft.createElement(le.ZP.Group,null,ft.createElement(le.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ft.createElement(le.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ft.createElement(le.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),!or.test_set_score&&ft.createElement(x.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},ft.createElement(le.ZP.Group,{onChange:Pr},ft.createElement(le.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),ft.createElement(le.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),or.is_file&&ft.createElement("div",{className:mt.upBtn},ft.createElement(fe.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>jt(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),ft.createElement(St.Y2,{disabled:or==null?void 0:or.test_set_average,inputChange:br,showScore:!or.test_set_score,data:Lr,onRemove:hr})),!or.is_file&&ft.createElement(x.default.List,{name:"hack_sets"},(sr,{})=>ft.createElement(ye.default,{accordion:!0},sr.map((yr,Or)=>ft.createElement(hn,{key:`${yr.key}--${Or}`,header:ft.createElement("a",{className:mt["test-case-name"]},ft.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Or+1),ir?null:ft.createElement(ft.Fragment,null,ft.createElement(x.default.Item,{name:[yr.name,"score"],fieldKey:[yr.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${Or+1}\u8BC4\u5206`}]},ft.createElement(ne.Z,{onClick:gr,min:0,max:100,disabled:kt})),ft.createElement("span",null,"%"))),extra:Or>0?ft.createElement("div",{onClick:gr},ft.createElement(pe.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(Or+1),onConfirm:()=>{Zr(Or)}},ft.createElement(Re.Z,{className:mt["btn-remove-case"]}))):null},ft.createElement(x.default.Item,{label:"\u8F93\u5165",name:[yr.name,"input"],fieldKey:[yr.fieldKey,"input"]},ft.createElement(on,null)),ft.createElement(x.default.Item,{label:"\u8F93\u51FA",name:[yr.name,"output"],fieldKey:[yr.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ft.createElement(on,null)))))))),ft.createElement(St.ZP,{rootIdentifier:null,visible:Kt,onClose:()=>jt(!1),onOK:ur}),ft.createElement(ct,{visible:nr,onCancel:()=>{dr(!1),Kr()},onOK:()=>{dr(!1),Kr()}}))}},12062:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Y2:function(){return He},ZP:function(){return $e}});var Ye=Ge(59301),mt=Ge(14566),y=Ge(6767),Ce=Ge(62957),ye=Ge(77019),x=Ge(47889),z=Ge(99571),se=Ge(62673),ae=Ge(25399),ee=Ge(37568),fe={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",re=Ge(47257),ne=Ge.n(re),le=Ge(25992),ue=Ge(82093),he=Ge(1012),pe=Ge(49661),ve=Ge(41550),de=Ge(59301),we=Object.defineProperty,Te=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,be=(it,Ne,Fe)=>Ne in it?we(it,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):it[Ne]=Fe,Ee=(it,Ne)=>{for(var Fe in Ne||(Ne={}))Ae.call(Ne,Fe)&&be(it,Fe,Ne[Fe]);if(Me)for(var Fe of Me(Ne))ge.call(Ne,Fe)&&be(it,Fe,Ne[Fe]);return it},Re=(it,Ne)=>Te(it,je(Ne)),Ie=(it,Ne,Fe)=>new Promise((qe,rt)=>{var tt=ze=>{try{Ke(Fe.next(ze))}catch(at){rt(at)}},Ve=ze=>{try{Ke(Fe.throw(ze))}catch(at){rt(at)}},Ke=ze=>ze.done?qe(ze.value):Promise.resolve(ze.value).then(tt,Ve);Ke((Fe=Fe.apply(it,Ne)).next())});const{Dragger:ke}=mt.default,Pe=it=>{const Ne=at=>at&&at.substring(0,at.lastIndexOf("."));for(var Fe=[...it],qe=0,rt=[],tt=0;tt<Fe.length;tt++){for(var Ve="",Ke=0;Ke<rt.length;Ke++)if(Ne(rt[Ke][0].name)==Ne(Fe[tt].name)){qe=1,Ve=Ke;break}if(qe==1)rt[Ve].push(Fe[tt]),qe=0;else if(qe==0){let at=new Array;at.push(Fe[tt]),rt.push(at)}}return rt.map(at=>{if(at.forEach(Qe=>{let ut=Qe.name.split(/\.(?=[^\.]+$)/);Qe.name=`${ut[0]}.${ut[1].toLowerCase()}`}),at[0].name.includes(".in"))return at.length===2?at:[at[0],{}];if(at[0].name.includes(".out"))return at.length===2?at.reverse():[{},at[0]]})},Ze=({onClose:it,onOK:Ne,visible:Fe,wrapClassName:qe,rootIdentifier:rt,multiple:tt=!1,defaultMultipleValue:Ve=!0})=>{const[Ke,ze]=(0,Ye.useState)([]),[at,Qe]=(0,Ye.useState)({}),[ut,st]=(0,Ye.useState)(!1),[Xe,Le]=(0,Ye.useState)(!0),De=(0,Ye.useRef)([]),te=(0,Ye.useRef)(0),ce=()=>{it()};(0,Ye.useEffect)(()=>{_e()},[]),(0,Ye.useEffect)(()=>{Fe&&(De.current=[],te.current=0,ze([]),Le(Ve))},[Fe]);const _e=()=>Ie(void 0,null,function*(){try{const dt=yield(0,ue.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),ct=JSON.parse((0,le.pe)(dt.data));Qe(ct)}catch(dt){}}),Ue=dt=>dt&&dt.substring(0,dt.lastIndexOf(".")),xe=dt=>{var ct,pt;const St=Ue((ct=dt[0])==null?void 0:ct.name)||Ue((pt=dt[1])==null?void 0:pt.name),yt=Ke.filter(xt=>Ue(xt.name)!==St);De.current=[...yt],ze([...yt])},Se=dt=>{if(!Xe){const vt=new FormData;vt.append("file",dt.file),(0,ue.ZP)("/api/attachments/get_file_content.json",{method:"post",body:vt},!0).then(bt=>{if(bt.status===0){te.current=te.current+1;const ft=De.current.map(Dt=>{var At;if(Dt.name===dt.name){const Mt=Ee({},Dt);return(At=dt==null?void 0:dt.name)!=null&&At.includes(".in")?Mt.input=bt==null?void 0:bt.content:Mt.output=bt==null?void 0:bt.content,Mt}return Dt});if(De.current=[...ft],ze([...ft]),te.current>0&&te.current===Ke.length){st(!1);let Dt=Pe(ft);Dt=Dt.filter(At=>{var Mt,$t;return!!((Mt=At[0])!=null&&Mt.name&&(($t=At[1])!=null&&$t.name))}),Dt=Dt.map(At=>Re(Ee(Ee({},At[0]),At[1]),{is_file:!1})),Ne(Dt),it()}}else st(!1),it()});return}const ct=new(ne())({endpoint:at.end_point,region:at.region,accessKeyId:at.access_key_id,accessKeySecret:at.access_key_secret,bucket:at.bucket,stsToken:at.security_token}),pt=dt.name,St={container_type:"TestSet",file_name:pt},yt=(0,he.Z)();let xt=`testsets/${rt}/${yt}${pt.indexOf(".")>-1?"."+pt.split(".").pop():""}`;rt===null&&(xt=`testsets/${yt}${pt.indexOf(".")>-1?"."+pt.split(".").pop():""}`),ct.multipartUpload(xt,new Blob([dt.file],{type:dt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:pt+""},url:at==null?void 0:at.callback_url,host:at==null?void 0:at.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ue.rz)(St)}}).then(function(vt){if(vt.data.status===0){te.current=te.current+1;const Tt=De.current.map(bt=>{var ft,Dt,At,Mt,$t,pr,qt,wr,jr,Dr,Fr,on,wn,hn,Gr,An,Rn;if(bt.name===((Dt=(ft=vt.data)==null?void 0:ft.data)==null?void 0:Dt.file_name)){const Tr=Ee({},bt);return($t=(Mt=(At=vt.data)==null?void 0:At.data)==null?void 0:Mt.file_name)!=null&&$t.includes(".in")?(Tr.in_object_key=(qt=(pr=vt.data)==null?void 0:pr.data)==null?void 0:qt.object,Tr.in_object_size=(jr=(wr=vt.data)==null?void 0:wr.data)==null?void 0:jr.size,Tr.input=(Fr=(Dr=vt.data)==null?void 0:Dr.data)==null?void 0:Fr.file_name,Tr.in_file=dt):(Tr.out_object_key=(wn=(on=vt.data)==null?void 0:on.data)==null?void 0:wn.object,Tr.out_object_size=(Gr=(hn=vt.data)==null?void 0:hn.data)==null?void 0:Gr.size,Tr.output=(Rn=(An=vt.data)==null?void 0:An.data)==null?void 0:Rn.file_name,Tr.out_file=dt),Tr}return bt});if(De.current=[...Tt],ze([...Tt]),te.current>0&&te.current===Ke.length){st(!1);let bt=Pe(Tt);bt=bt.filter(ft=>{var Dt,At;return!!((Dt=ft[0])!=null&&Dt.name&&((At=ft[1])!=null&&At.name))}),bt=bt.map(ft=>Re(Ee(Ee({},ft[0]),ft[1]),{is_file:!0})),Ne(bt),it()}}})},Oe=dt=>new Promise((ct,pt)=>{let St=0,yt=[];for(let xt=0;xt<dt.length;xt++)dt[xt].file.slice(0,1).arrayBuffer().then(()=>{St++,St===dt.length&&(yt.length?(y.ZP.warning(`${yt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),pt()):ct(dt))}).catch(vt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",vt),St++,yt.push(dt[xt].name),St===dt.length&&(yt.length?(y.ZP.warning(`${yt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),pt()):ct(dt))})}),We=()=>Ie(void 0,null,function*(){if(Ke.length===0){y.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Oe(Ke),st(!0),Pe(Ke).some(ct=>{var pt,St;return!((pt=ct[0])!=null&&pt.name&&((St=ct[1])!=null&&St.name))})){Ce.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Ie(void 0,null,function*(){Ke.map(ct=>Ie(void 0,null,function*(){Se(ct)}))}),onCancel:()=>{st(!1)}});return}Ke.map(ct=>Ie(void 0,null,function*(){Se(ct)}))}),et={name:"file",fileList:Ke,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:dt=>{if(Ke!=null&&Ke.some(pt=>pt.name===dt.name))return y.ZP.info(`${dt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(dt.size/1024/1024>100)return y.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(dt.name))return y.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const ct={name:dt.name,uid:dt.uid,file:dt,percent:0};return Ke.push(ct),De.current=[...Ke],ze([...Ke]),!1}},nt=Pe(Ke);return console.log(Ke,nt,"fileList"),de.createElement(Ce.default,{open:Fe,wrapClassName:qe,onOk:We,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ut},onCancel:ce,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},de.createElement("div",{className:fe.wrap},Ke.length?de.createElement("div",null,de.createElement(ye.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},de.createElement("div",{style:{visibility:tt?"visible":"hidden"}},de.createElement("span",{className:fe.greyText},"\u7528\u4F8B\u7C7B\u578B"),de.createElement(x.ZP.Group,{className:`ml20 ${fe.testCaseRadio}`,optionType:"button",value:Xe,onChange:dt=>Le(dt.target.value)},de.createElement(x.ZP,{value:!1},"\u6587\u672C"),de.createElement(x.ZP,{value:!0},"\u6587\u4EF6"))),de.createElement(mt.default,Ee({},et),de.createElement(z.ZP,{type:"primary",className:fe.btnS},de.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),de.createElement(He,{data:nt,onRemove:xe})):de.createElement("div",{className:`${fe.noData} mb30`},de.createElement(mt.default.Dragger,Re(Ee({},et),{className:fe.dragger}),de.createElement("img",{src:E,alt:"",className:"mb20"}),de.createElement("div",null,de.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),de.createElement("span",{className:fe.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),de.createElement("div",{className:fe.text},de.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),de.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",de.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",de.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",de.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",de.createElement("br",null))))},He=({data:it=[],onRemove:Ne,width:Fe="auto",showScore:qe=!1,disabled:rt=!1,inputChange:tt,onEvaluatingChange:Ve,onSelectAll:Ke,checkAll1:ze,checkAll2:at,checkAll3:Qe,checkAll4:ut,checkAll5:st,showEvaluatingSetting:Xe=!1,className:Le="",isProgramHomework:De=!1})=>{const te={value:"",filename:"",dataUrl:""},[ce,_e]=(0,Ye.useState)(Ee({},te)),Ue=Oe=>{let We=document.createElement("a");document.body.appendChild(We);let et=URL.createObjectURL(Oe.file);We.href=et,We.download=Oe.name,We.click(),URL.revokeObjectURL(et),document.body.removeChild(We)},xe=(Oe,We)=>{(0,pe.LR)(Oe,We)},Se=(Oe,We)=>{Ce.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:de.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Ne(Oe,We)},onCancel:()=>{}})};return it.length?de.createElement("div",{className:Le,style:{width:Fe}},de.createElement("div",{className:`${De?fe.headProgram:fe.head}`},Xe&&de.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},de.createElement(se.default,{checked:ze,onChange:Oe=>{Ke(Oe.target.checked,"hidden")}}),de.createElement(ae.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},de.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),de.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),de.createElement("div",{style:{width:De?"25%":"15%"}},"\u7528\u4F8B"),de.createElement("div",{style:{width:qe?De?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),de.createElement("div",{style:{width:qe?De?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),qe&&de.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Xe&&de.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},de.createElement(se.default,{checked:ut,onChange:Oe=>{Ke(Oe.target.checked,"input_visible")}}),de.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},de.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),de.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Xe&&de.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},de.createElement(se.default,{checked:at,onChange:Oe=>{Ke(Oe.target.checked,"is_invisible")}}),de.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},de.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),de.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Xe&&de.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},de.createElement(se.default,{checked:st,onChange:Oe=>{Ke(Oe.target.checked,"actual_output_visible")}}),de.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},de.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),de.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Xe&&de.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},de.createElement(se.default,{checked:Qe,onChange:Oe=>{Ke(Oe.target.checked,"last_match_rule")}}),de.createElement(ae.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},de.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),de.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),de.createElement("div",{className:fe.operation,style:De?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),de.createElement("div",{className:fe.listWrapper,style:{boxShadow:De?"0px 2px 4px 0px #EAEEF4":"unset"}},it.map((Oe,We)=>{var et,nt,dt,ct;return de.createElement("div",{key:We,className:fe.list,style:De?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Xe&&de.createElement("div",{style:{width:"15%"}},de.createElement(se.default,{checked:!!Oe.hidden,onChange:pt=>{Ve(pt.target.checked,We,"hidden")}})),de.createElement("div",{style:{width:De?"25%":"15%",paddingLeft:De?"5px":"0px",paddingRight:De?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",We+1),de.createElement("div",{className:fe.info,style:{width:qe?De?"20%":"15%":"25%"}},de.createElement("span",{title:Oe.input||((et=Oe[0])==null?void 0:et.name),onClick:()=>Ie(void 0,null,function*(){let pt;Oe.input?Oe.input_file_url?pt=Oe.input_file_url:pt=Oe.in_file:pt=Oe[0];let St;typeof pt=="string"?(St=yield fetch(pt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),_e({value:yield St.text(),filename:"",dataUrl:pt})):(St=yield(0,pe.db)(pt.file),_e({value:St.text,filename:pt.name,dataUrl:St.link}))})},Oe.input||((nt=Oe[0])==null?void 0:nt.name))),de.createElement("div",{className:fe.info,style:{width:qe?De?"20%":"15%":"25%"}},de.createElement("span",{title:Oe.output||((dt=Oe[1])==null?void 0:dt.name),onClick:()=>Ie(void 0,null,function*(){let pt;Oe.input?Oe.output_file_url?pt=Oe.output_file_url:pt=Oe.out_file:pt=Oe[1];let St;typeof pt=="string"?(St=yield fetch(pt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),_e({value:yield St.text(),filename:"",dataUrl:pt})):(St=yield(0,pe.db)(pt.file),_e({value:St.text,filename:pt.name,dataUrl:St.link}))})},Oe.output||((ct=Oe[1])==null?void 0:ct.name))),qe&&de.createElement("div",{style:{width:"20%"}},de.createElement(ee.default,{size:"large",addonAfter:De?"%":null,disabled:rt,style:{width:"80%"},onChange:pt=>tt(pt,We),value:Oe.score}),!De&&de.createElement("span",null,"\xA0%")),Xe&&de.createElement("div",{style:{width:"20%"}},de.createElement(se.default,{checked:Oe.input_visible||!1,onChange:pt=>{Ve(pt.target.checked,We,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Xe&&de.createElement("div",{style:{width:"20%"}},de.createElement(se.default,{checked:Oe.is_invisible||!1,onChange:pt=>{Ve(pt.target.checked,We,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Xe&&de.createElement("div",{style:{width:"20%"}},de.createElement(se.default,{checked:Oe.actual_output_visible||!1,onChange:pt=>{Ve(pt.target.checked,We,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Xe&&de.createElement("div",{style:{width:"20%"}},de.createElement(se.default,{checked:Oe.last_match_rule||!1,onChange:pt=>{Ve(pt.target.checked,We,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),de.createElement("div",{onClick:()=>Se(Oe,We),style:De?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},de.createElement("span",{className:fe.del},"\u5220\u9664")))})),de.createElement(ve.Z,{close:!0,data:ce.dataUrl,filename:ce.filename,type:ce.dataUrl.length?"txt":"",onClose:()=>_e(Ee({},te)),monacoEditor:{value:ce.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):de.createElement(de.Fragment,null)};var $e=Ze},90290:function(Ht,_t,Ge){"use strict";Ge.d(_t,{AL:function(){return we},Iy:function(){return fe},Qv:function(){return ne},ez:function(){return de},jb:function(){return E}});var Ye=Ge(32834),mt=Ge.n(Ye),y=Ge(11690),Ce=Ge.n(y);let ye=1;function x(ge,be){const Ee=ge.match(/^(\s+)(?:```)/);if(Ee===null)return be;const Re=Ee[1];return be.split(`
`).map(Ie=>{const ke=Ie.match(/^\s+/);if(ke===null)return Ie;const[Pe]=ke;return Pe.length>=Re.length?Ie.slice(Re.length):Ie}).join(`
`)}let z=[],se=["<ul>"];const ae=new(mt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function fe(){z.length=0,se=["<ul>"]}const E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function re(ge,be,Ee,Re){if(be>=ge.length||ge[be].level<=Ee)return be;var Ie=ge[be];Re.push("<li><a href='#"+ye+Ie.anchor+"'>"+Ie.text+"</a>"),be++;var ke=[];return be=re(ge,be,Ie.level,ke),ke.length>0&&(Re.push("<ul>"),ke.forEach(function(Pe){Re.push(Pe)}),Re.push("</ul>")),Re.push("</li>"),be=re(ge,be,Ee,Re),be}function ne(){return re(z,0,0,se),se.push("</ul>"),se.join("")}const le={heading(ge){const be=ee.exec(ge);if(ye+=1,be)return{type:"heading",raw:be[0],depth:be[1].length,text:be[2]}},fences(ge){const be=this.rules.block.fences.exec(ge);if(be){const Ee=be[0];let Re=x(Ee,be[3]||"");const Ie=be[2]?be[2].trim():be[2];if(["latex","katex","math"].indexOf(Ie)>=0){const ke=pe(),Pe=Re;Re=ke,ve[ke]={type:"block",expression:Pe}}return{type:"code",raw:Ee,lang:Ie,text:Re}}}},ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const pe=()=>`__special_katext_id_${he++}__`;let ve={};function de(){return ve}function we(){he=0,ve={}}function Te(ge){return ge=ge.replace(ue,(be,Ee)=>{const Re=pe();return ve[Re]={type:"inline",expression:Ee},Re}),ge}const je=ae.listitem;ae.listitem=function(ge){return je(Te(ge))};const Me=ae.paragraph;ae.paragraph=function(ge){return Me(Te(ge))};const Ae=ae.tablecell;ae.tablecell=function(ge,be){return Ae(Te(ge),be)},ae.code=function(ge,be,Ee){const Re=(be||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${ge}</p>`:`<pre class="prettyprint linenums"><code class="language-${be}">${Ee?ge:(0,y.escape)(ge,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ee?ge:(0,y.escape)(ge,!0))+"</code></pre>"},ae.heading=function(ge,be,Ee){let Re=this.options.headerPrefix+Ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:Re,level:be,text:ge}),"<h"+be+' id="'+ye+Re+'">'+ge+"</h"+be+">"},mt().setOptions({silent:!0,gfm:!0,pedantic:!1}),mt().use({tokenizer:le,renderer:ae}),_t.ZP=mt()},89613:function(Ht,_t,Ge){"use strict";Ge.d(_t,{G:function(){return ye},t:function(){return Ce}});var Ye=Ge(7062),mt=Ge.n(Ye);const y=null;function Ce(x,z){let se=mt().get("__ec");se||(se={}),se[x]=z,mt().set("__ec",se)}function ye(x,z){let se=mt().get("__ec");return se?se[x]===void 0?z:se[x]:z}},47257:function(Ht){(function(_t){(function(Ge){if(1)Ht.exports=Ge();else var Ye})(function(){var Ge,Ye,mt;return function(){function y(Ce,ye,x){function z(ee,fe){if(!ye[ee]){if(!Ce[ee]){var E=void 0;if(!fe&&E)return require(ee,!0);if(se)return se(ee,!0);var re=new Error("Cannot find module '"+ee+"'");throw re.code="MODULE_NOT_FOUND",re}var ne=ye[ee]={exports:{}};Ce[ee][0].call(ne.exports,function(le){var ue=Ce[ee][1][le];return z(ue||le)},ne,ne.exports,y,Ce,ye,x)}return ye[ee].exports}for(var se=void 0,ae=0;ae<x.length;ae++)z(x[ae]);return z}return y}()({1:[function(y,Ce,ye){"use strict";var x=y("./browser/client");x.Buffer=y("buffer").Buffer,x.urllib=y("../shims/xhr"),x.version=y("./browser/version").version,Ce.exports=x},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.slice.js");var ae=y("assert"),ee=y("../common/utils/checkBucketName"),fe=ee.checkBucketName,E=ye;function re(le){return Array.isArray?Array.isArray(le):Object.prototype.toString.call(le)==="[object Array]"}function ne(le){return le?re(le)?le:[le]:[]}E.useBucket=function(ue){return fe(ue),this.options.bucket=ue,this},E.setBucket=function(ue){return fe(ue),this.options.bucket=ue,this},E.getBucket=function(){return this.options.bucket},E.deleteBucket=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){var de,we;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return de=this._bucketRequestParams("DELETE",pe,"",ve),je.next=3,this.request(de);case 3:if(we=je.sent,!(we.status===200||we.status===204)){je.next=6;break}return je.abrupt("return",{res:we.res});case 6:return je.next=8,this.requestError(we);case 8:throw je.sent;case 9:case"end":return je.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E.putBucketACL=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve,de){var we,Te;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return we=this._bucketRequestParams("PUT",pe,"acl",de),we.headers={"x-oss-acl":ve},we.successStatuses=[200],Me.next=5,this.request(we);case 5:return Te=Me.sent,Me.abrupt("return",{bucket:Te.headers.location&&Te.headers.location.substring(1)||null,res:Te.res});case 7:case"end":return Me.stop()}},he,this)}));function ue(he,pe,ve){return le.apply(this,arguments)}return ue}(),E.getBucketACL=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){var de,we;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return de=this._bucketRequestParams("GET",pe,"acl",ve),de.successStatuses=[200],de.xmlResponse=!0,je.next=5,this.request(de);case 5:return we=je.sent,je.abrupt("return",{acl:we.data.AccessControlList.Grant,owner:{id:we.data.Owner.ID,displayName:we.data.Owner.DisplayName},res:we.res});case 7:case"end":return je.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E.putBucketLogging=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve,de){var we,Te,je;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return we=this._bucketRequestParams("PUT",pe,"logging",de),Te=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(pe,`</TargetBucket>
`),ve&&(Te+="<TargetPrefix>".concat(ve,`</TargetPrefix>
`)),Te+=`</LoggingEnabled>
</BucketLoggingStatus>`,we.content=Te,we.mime="xml",we.successStatuses=[200],Ae.next=9,this.request(we);case 9:return je=Ae.sent,Ae.abrupt("return",{res:je.res});case 11:case"end":return Ae.stop()}},he,this)}));function ue(he,pe,ve){return le.apply(this,arguments)}return ue}(),E.getBucketLogging=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){var de,we,Te;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return de=this._bucketRequestParams("GET",pe,"logging",ve),de.successStatuses=[200],de.xmlResponse=!0,Me.next=5,this.request(de);case 5:return we=Me.sent,Te=we.data.LoggingEnabled,Me.abrupt("return",{enable:!!Te,prefix:Te&&Te.TargetPrefix||null,res:we.res});case 8:case"end":return Me.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E.deleteBucketLogging=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){var de,we;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return de=this._bucketRequestParams("DELETE",pe,"logging",ve),de.successStatuses=[204,200],je.next=4,this.request(de);case 4:return we=je.sent,je.abrupt("return",{res:we.res});case 6:case"end":return je.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E.putBucketCORS=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve,de){var we,Te,je,Me,Ae,ge,be,Ee,Re,Ie;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:for(ve=ve||[],ae(ve.length,"rules is required"),ve.forEach(function(Ze){ae(Ze.allowedOrigin,"allowedOrigin is required"),ae(Ze.allowedMethod,"allowedMethod is required")}),we=this._bucketRequestParams("PUT",pe,"cors",de),Te=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,je=function(He){Te+="<AllowedOrigin>".concat(He,"</AllowedOrigin>")},Me=function(He){Te+="<AllowedMethod>".concat(He,"</AllowedMethod>")},Ae=function(He){Te+="<AllowedHeader>".concat(He,"</AllowedHeader>")},ge=function(He){Te+="<ExposeHeader>".concat(He,"</ExposeHeader>")},be=0,Ee=ve.length;be<Ee;be++)Re=ve[be],Te+="<CORSRule>",ne(Re.allowedOrigin).forEach(je),ne(Re.allowedMethod).forEach(Me),ne(Re.allowedHeader).forEach(Ae),ne(Re.exposeHeader).forEach(ge),Re.maxAgeSeconds&&(Te+="<MaxAgeSeconds>".concat(Re.maxAgeSeconds,"</MaxAgeSeconds>")),Te+="</CORSRule>";return Te+="</CORSConfiguration>",we.content=Te,we.mime="xml",we.successStatuses=[200],Pe.next=16,this.request(we);case 16:return Ie=Pe.sent,Pe.abrupt("return",{res:Ie.res});case 18:case"end":return Pe.stop()}},he,this)}));function ue(he,pe,ve){return le.apply(this,arguments)}return ue}(),E.getBucketCORS=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){var de,we,Te,je;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return de=this._bucketRequestParams("GET",pe,"cors",ve),de.successStatuses=[200],de.xmlResponse=!0,Ae.next=5,this.request(de);case 5:return we=Ae.sent,Te=[],we.data&&we.data.CORSRule&&(je=we.data.CORSRule,re(je)||(je=[je]),je.forEach(function(ge){var be={};Object.keys(ge).forEach(function(Ee){be[Ee.slice(0,1).toLowerCase()+Ee.slice(1,Ee.length)]=ge[Ee]}),Te.push(be)})),Ae.abrupt("return",{rules:Te,res:we.res});case 9:case"end":return Ae.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E.deleteBucketCORS=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){var de,we;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return de=this._bucketRequestParams("DELETE",pe,"cors",ve),de.successStatuses=[204],je.next=4,this.request(de);case 4:return we=je.sent,je.abrupt("return",{res:we.res});case 6:case"end":return je.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E.putBucketReferer=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve,de,we){var Te,je,Me,Ae;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(Te=this._bucketRequestParams("PUT",pe,"referer",we),je=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,je+=" <AllowEmptyReferer>".concat(ve?"true":"false",`</AllowEmptyReferer>
`),de&&de.length>0){for(je+=` <RefererList>
`,Me=0;Me<de.length;Me++)je+=" <Referer>".concat(de[Me],`</Referer>
`);je+=` </RefererList>
`}else je+=` <RefererList />
`;return je+="</RefererConfiguration>",Te.content=je,Te.mime="xml",Te.successStatuses=[200],be.next=10,this.request(Te);case 10:return Ae=be.sent,be.abrupt("return",{res:Ae.res});case 12:case"end":return be.stop()}},he,this)}));function ue(he,pe,ve,de){return le.apply(this,arguments)}return ue}(),E.getBucketReferer=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){var de,we,Te;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return de=this._bucketRequestParams("GET",pe,"referer",ve),de.successStatuses=[200],de.xmlResponse=!0,Me.next=5,this.request(de);case 5:return we=Me.sent,Te=we.data.RefererList.Referer||null,Te&&(re(Te)||(Te=[Te])),Me.abrupt("return",{allowEmpty:we.data.AllowEmptyReferer==="true",referers:Te,res:we.res});case 9:case"end":return Me.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E.deleteBucketReferer=function(){var le=(0,se.default)(z.default.mark(function he(pe,ve){return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,this.putBucketReferer(pe,!0,null,ve);case 2:return we.abrupt("return",we.sent);case 3:case"end":return we.stop()}},he,this)}));function ue(he,pe){return le.apply(this,arguments)}return ue}(),E._bucketRequestParams=function(ue,he,pe,ve){return{method:ue,bucket:he,subres:pe,timeout:ve&&ve.timeout,ctx:ve&&ve.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(y,Ce,ye){(function(x,z){(function(){"use strict";var se=y("@babel/runtime/helpers/interopRequireDefault"),ae=se(y("@babel/runtime/regenerator")),ee=se(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.to-string.js");var fe=y("debug")("ali-oss"),E=y("xml2js"),re=y("agentkeepalive"),ne=y("merge-descriptors"),le=y("platform"),ue=y("utility"),he=y("urllib"),pe=y("./version"),ve=y("bowser"),de=y("../common/signUtils"),we=y("../common/client/initOptions"),Te=y("../common/utils/createRequest"),je=Te.createRequest,Me=y("../common/utils/encoder"),Ae=Me.encoder,ge=y("../common/client/getReqUrl"),be=ge.getReqUrl,Ee=y("../common/utils/setSTSToken"),Re=Ee.setSTSToken,Ie=y("../common/utils/retry"),ke=Ie.retry,Pe=y("../common/utils/isFunction"),Ze=Pe.isFunction,He=new re;function $e(){var tt=le.name,Ve=le.version;tt&&tt.toLowerCase&&tt.toLowerCase()==="ie"&&Ve.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function it(){return location&&location.protocol==="https:"}function Ne(tt,Ve){if($e(),!(this instanceof Ne))return new Ne(tt,Ve);tt&&tt.inited?this.options=tt:this.options=Ne.initOptions(tt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=he,this.agent=this.options.agent||He),this.ctx=Ve,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Ce.exports=Ne,Ne.initOptions=function(Ve){Ve.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Ke=Object.assign({secure:it(),useFetch:!1},Ve);return we(Ke)};var Fe=Ne.prototype;Fe.debug=fe,ne(Fe,y("./object")),ne(Fe,y("./bucket")),ne(Fe,y("../common/bucket/getBucketWebsite")),ne(Fe,y("../common/bucket/putBucketWebsite")),ne(Fe,y("../common/bucket/deleteBucketWebsite")),ne(Fe,y("../common/bucket/getBucketLifecycle")),ne(Fe,y("../common/bucket/putBucketLifecycle")),ne(Fe,y("../common/bucket/deleteBucketLifecycle")),ne(Fe,y("../common/bucket/putBucketVersioning")),ne(Fe,y("../common/bucket/getBucketVersioning")),ne(Fe,y("../common/bucket/getBucketInventory")),ne(Fe,y("../common/bucket/deleteBucketInventory")),ne(Fe,y("../common/bucket/listBucketInventory")),ne(Fe,y("../common/bucket/putBucketInventory")),ne(Fe,y("../common/bucket/abortBucketWorm")),ne(Fe,y("../common/bucket/completeBucketWorm")),ne(Fe,y("../common/bucket/extendBucketWorm")),ne(Fe,y("../common/bucket/getBucketWorm")),ne(Fe,y("../common/bucket/initiateBucketWorm")),ne(Fe,y("./managed-upload")),ne(Fe,y("../common/multipart-copy")),ne(Fe,y("../common/multipart")),ne(Fe,y("../common/parallel")),Fe.signature=function(Ve){return this.debug("authorization stringToSign: %s",Ve,"info"),de.computeSignature(this.options.accessKeySecret,Ve,this.options.headerEncoding)},Fe._getReqUrl=be,Fe.authorization=function(Ve,Ke,ze,at){var Qe=de.buildCanonicalString(Ve.toUpperCase(),Ke,{headers:at,parameters:ze});return de.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},Fe.request=function(){var tt=(0,ee.default)(ae.default.mark(function Ve(Ke){var ze=this;return ae.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!this.options.retryMax){Qe.next=6;break}return Qe.next=3,ke(qe.bind(this),this.options.retryMax,{errorHandler:function(st){var Xe=function(De){if(Ke.stream)return!1;var te=[-1,-2].includes(De.status),ce=ze.options.requestErrorRetryHandle||function(){return!0};return te&&ce(De)};return!!Xe(st)}})(Ke);case 3:return Qe.abrupt("return",Qe.sent);case 6:return Qe.abrupt("return",qe.call(this,Ke));case 7:case"end":return Qe.stop()}},Ve,this)}));return function(Ve){return tt.apply(this,arguments)}}();function qe(tt){return rt.apply(this,arguments)}function rt(){return rt=(0,ee.default)(ae.default.mark(function tt(Ve){var Ke,ze,at,Qe,ut,st;return ae.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!(this.options.stsToken&&Ze(this.options.refreshSTSToken))){Le.next=3;break}return Le.next=3,Re.call(this);case 3:return Ke=je.call(this,Ve),this.options.useFetch||(Ke.params.mode="disable-fetch"),Qe=!!Ve.stream,Le.prev=6,Le.next=9,this.urllib.request(Ke.url,Ke.params);case 9:ze=Le.sent,this.debug("response %s %s, got %s, headers: %j",Ve.method,Ke.url,ze.status,ze.headers,"info"),Le.next=16;break;case 13:Le.prev=13,Le.t0=Le.catch(6),at=Le.t0;case 16:if(!(ze&&Ve.successStatuses&&Ve.successStatuses.indexOf(ze.status)===-1)){Le.next=28;break}return Le.next=19,this.requestError(ze);case 19:if(ut=Le.sent,!(ut.code==="RequestTimeTooSkewed"&&!Qe)){Le.next=25;break}return this.options.amendTimeSkewed=+new Date(ut.serverTime)-new Date,Le.next=24,this.request(Ve);case 24:return Le.abrupt("return",Le.sent);case 25:ut.params=Ve,Le.next=32;break;case 28:if(!at){Le.next=32;break}return Le.next=31,this.requestError(at);case 31:ut=Le.sent;case 32:if(!ut){Le.next=34;break}throw ut;case 34:if(!Ve.xmlResponse){Le.next=39;break}return Le.next=37,this.parseXML(ze.data);case 37:st=Le.sent,ze.data=st;case 39:return Le.abrupt("return",ze);case 40:case"end":return Le.stop()}},tt,this,[[6,13]])})),rt.apply(this,arguments)}Fe._getResource=function(Ve){var Ke="/";return Ve.bucket&&(Ke+="".concat(Ve.bucket,"/")),Ve.object&&(Ke+=Ae(Ve.object,this.options.headerEncoding)),Ke},Fe._escape=function(Ve){return ue.encodeURIComponent(Ve).replace(/%2F/g,"/")},Fe._getUserAgent=function(){var Ve=z&&z.browser?"js":"nodejs",Ke="aliyun-sdk-".concat(Ve,"/").concat(pe.version),ze=le.description;return!ze&&z&&(ze="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat(Ke," ").concat(ze))},Fe._checkUserAgent=function(Ve){var Ke=Ve.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Ke},Fe.checkBrowserAndVersion=function(Ve,Ke){return ve.name===Ve&&ve.version.split(".")[0]===Ke},Fe.parseXML=function(Ve){return new Promise(function(Ke,ze){x.isBuffer(Ve)&&(Ve=Ve.toString()),E.parseString(Ve,{explicitRoot:!1,explicitArray:!1},function(at,Qe){at?ze(at):Ke(Qe)})})},Fe.requestError=function(){var tt=(0,ee.default)(ae.default.mark(function Ke(ze){var at,Qe,ut,st;return ae.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(at=null,!(!ze.data||!ze.data.length)){Le.next=5;break}ze.status===-1||ze.status===-2?(at=new Error(ze.message),at.name=ze.name,at.status=ze.status,at.code=ze.name):(ze.status===404?(at=new Error("Object not exists"),at.name="NoSuchKeyError",at.status=404,at.code="NoSuchKey"):ze.status===412?(at=new Error("Pre condition failed"),at.name="PreconditionFailedError",at.status=412,at.code="PreconditionFailed"):(at=new Error("Unknow error, status: ".concat(ze.status)),at.name="UnknownError",at.status=ze.status),at.requestId=ze.headers["x-oss-request-id"],at.host=""),Le.next=32;break;case 5:return Qe=String(ze.data),this.debug("request response error data: %s",Qe,"error"),Le.prev=7,Le.next=10,this.parseXML(Qe);case 10:if(Le.t0=Le.sent,Le.t0){Le.next=13;break}Le.t0={};case 13:ut=Le.t0,Le.next=23;break;case 16:return Le.prev=16,Le.t1=Le.catch(7),this.debug(Qe,"error"),Le.t1.message+=`
raw xml: `.concat(Qe),Le.t1.status=ze.status,Le.t1.requestId=ze.headers["x-oss-request-id"],Le.abrupt("return",Le.t1);case 23:st=ut.Message||"unknow request error, status: ".concat(ze.status),ut.Condition&&(st+=" (condition: ".concat(ut.Condition,")")),at=new Error(st),at.name=ut.Code?"".concat(ut.Code,"Error"):"UnknownError",at.status=ze.status,at.code=ut.Code,at.requestId=ut.RequestId,at.hostId=ut.HostId,at.serverTime=ut.ServerTime;case 32:return this.debug("generate error %j",at,"error"),Le.abrupt("return",at);case 34:case"end":return Le.stop()}},Ke,this,[[7,16]])}));function Ve(Ke){return tt.apply(this,arguments)}return Ve}()}).call(this)}).call(this,{isBuffer:y("../../node_modules/is-buffer/index.js")},y("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),se=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js");var ae=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("util"),fe=y("path"),E=y("mime"),re=y("copy-to"),ne=y("../common/utils/isBlob"),le=ne.isBlob,ue=y("../common/utils/isFile"),he=ue.isFile,pe=y("../common/utils/isBuffer"),ve=pe.isBuffer,de=ye;de.multipartUpload=function(){var Ae=(0,ae.default)(se.default.mark(function be(Ee,Re){var Ie,ke,Pe,Ze,He,$e,it,Ne,Fe,qe=arguments;return se.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(Ie=qe.length>2&&qe[2]!==void 0?qe[2]:{},this.resetCancelFlag(),Ie.disabledMD5=Ie.disabledMD5===void 0?!0:!!Ie.disabledMD5,!(Ie.checkpoint&&Ie.checkpoint.uploadId)){tt.next=8;break}return Re&&he(Re)&&(Ie.checkpoint.file=Re),tt.next=7,this._resumeMultipart(Ie.checkpoint,Ie);case 7:return tt.abrupt("return",tt.sent);case 8:return ke=102400,Ie.mime||(he(Re)?Ie.mime=E.getType(fe.extname(Re.name)):le(Re)?Ie.mime=Re.type:ve(Re)?Ie.mime="":Ie.mime=E.getType(fe.extname(Re))),Ie.headers=Ie.headers||{},this._convertMetaToHeaders(Ie.meta,Ie.headers),tt.next=14,this._getFileSize(Re);case 14:if(Pe=tt.sent,!(Pe<ke)){tt.next=26;break}return Ie.contentLength=Pe,tt.next=19,this.put(Ee,Re,Ie);case 19:if(Ze=tt.sent,!(Ie&&Ie.progress)){tt.next=23;break}return tt.next=23,Ie.progress(1);case 23:return He={res:Ze.res,bucket:this.options.bucket,name:Ee,etag:Ze.res.headers.etag},(Ie.headers&&Ie.headers["x-oss-callback"]||Ie.callback)&&(He.data=Ze.data),tt.abrupt("return",He);case 26:if(!(Ie.partSize&&parseInt(Ie.partSize,10)!==Ie.partSize)){tt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Ie.partSize&&Ie.partSize<ke)){tt.next=30;break}throw new Error("partSize must not be smaller than ".concat(ke));case 30:return tt.next=32,this.initMultipartUpload(Ee,Ie);case 32:if($e=tt.sent,it=$e.uploadId,Ne=this._getPartSize(Pe,Ie.partSize),Fe={file:Re,name:Ee,fileSize:Pe,partSize:Ne,uploadId:it,doneParts:[]},!(Ie&&Ie.progress)){tt.next=39;break}return tt.next=39,Ie.progress(0,Fe,$e.res);case 39:return tt.next=41,this._resumeMultipart(Fe,Ie);case 41:return tt.abrupt("return",tt.sent);case 42:case"end":return tt.stop()}},be,this)}));function ge(be,Ee){return Ae.apply(this,arguments)}return ge}(),de._resumeMultipart=function(){var Ae=(0,ae.default)(se.default.mark(function be(Ee,Re){var Ie,ke,Pe,Ze,He,$e,it,Ne,Fe,qe,rt,tt,Ve,Ke,ze,at,Qe,ut,st;return se.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(Ie=this,!this.isCancel()){Le.next=3;break}throw this._makeCancelEvent();case 3:return ke=Ee.file,Pe=Ee.fileSize,Ze=Ee.partSize,He=Ee.uploadId,$e=Ee.doneParts,it=Ee.name,Ne=[],$e.length>0&&re($e).to(Ne),Fe=this._divideParts(Pe,Ze),qe=Fe.length,rt=!1,tt=function(te,ce){return new Promise(function(){var _e=(0,ae.default)(se.default.mark(function Ue(xe,Se){var Oe,We,et,nt,dt;return se.default.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:if(pt.prev=0,te.isCancel()){pt.next=29;break}return Oe=Fe[ce-1],pt.next=5,te._createBuffer(ke,Oe.start,Oe.end);case 5:return We=pt.sent,et={content:We,size:Oe.end-Oe.start},pt.prev=7,pt.next=10,te._uploadPart(it,He,ce,et,Re);case 10:nt=pt.sent,pt.next=18;break;case 13:if(pt.prev=13,pt.t0=pt.catch(7),pt.t0.status!==404){pt.next=17;break}throw te._makeAbortEvent();case 17:throw pt.t0;case 18:if(!(!te.isCancel()&&!rt)){pt.next=26;break}if(Ee.doneParts.push({number:ce,etag:nt.res.headers.etag}),!Re.progress){pt.next=23;break}return pt.next=23,Re.progress($e.length/(qe+1),Ee,nt.res);case 23:xe({number:ce,etag:nt.res.headers.etag}),pt.next=27;break;case 26:xe();case 27:pt.next=30;break;case 29:xe();case 30:pt.next=41;break;case 32:pt.prev=32,pt.t1=pt.catch(0),dt=new Error,dt.name=pt.t1.name,dt.message=pt.t1.message,dt.stack=pt.t1.stack,dt.partNum=ce,re(pt.t1).to(dt),Se(dt);case 41:case"end":return pt.stop()}},Ue,null,[[0,32],[7,13]])}));return function(Ue,xe){return _e.apply(this,arguments)}}())},Ve=Array.from(new Array(qe),function(De,te){return te+1}),Ke=Ne.map(function(De){return De.number}),ze=Ve.filter(function(De){return Ke.indexOf(De)<0}),at=5,Qe=Re.parallel||at,Le.next=17,this._parallel(ze,Qe,function(De){return new Promise(function(te,ce){tt(Ie,De).then(function(_e){_e&&Ne.push(_e),te()}).catch(function(_e){ce(_e)})})});case 17:if(ut=Le.sent,rt=!0,st=ut.find(function(De){return De.name==="abort"}),!st){Le.next=22;break}throw st;case 22:if(!this.isCancel()){Le.next=25;break}throw tt=null,this._makeCancelEvent();case 25:if(!(ut&&ut.length>0)){Le.next=28;break}throw ut[0].message="Failed to upload some parts with error: ".concat(ut[0].toString()," part_num: ").concat(ut[0].partNum),ut[0];case 28:return Le.next=30,this.completeMultipartUpload(it,He,Ne,Re);case 30:return Le.abrupt("return",Le.sent);case 31:case"end":return Le.stop()}},be,this)}));function ge(be,Ee){return Ae.apply(this,arguments)}return ge}(),de._getFileSize=function(){var Ae=(0,ae.default)(se.default.mark(function be(Ee){return se.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(!ve(Ee)){Ie.next=4;break}return Ie.abrupt("return",Ee.length);case 4:if(!(le(Ee)||he(Ee))){Ie.next=6;break}return Ie.abrupt("return",Ee.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Ie.stop()}},be)}));function ge(be){return Ae.apply(this,arguments)}return ge}();var we=y("stream"),Te=we.Readable;function je(Ae,ge){if(!(this instanceof je))return new je(Ae,ge);Te.call(this,ge),this.file=Ae,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(je,Te),je.prototype.readFileAndPush=function(ge){if(this.fileBuffer)for(var be=!0;be&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Ee=this.start,Re=Ee+ge;Re=Re>this.fileBuffer.length?this.fileBuffer.length:Re,this.start=Re,be=this.push(this.fileBuffer.slice(Ee,Re))}},je.prototype._read=function(ge){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var be=16*1024;ge=ge||be;var Ee=this;this.reader.onload=function(Ie){Ee.fileBuffer=x.from(new Uint8Array(Ie.target.result)),Ee.file=null,Ee.readFileAndPush(ge)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ge)};function Me(Ae){return Ae.arrayBuffer?Ae.arrayBuffer():new Promise(function(ge,be){var Ee=new FileReader;Ee.onload=function(Re){ge(Re.target.result)},Ee.onerror=function(Re){be(Re)},Ee.readAsArrayBuffer(Ae)})}de._createBuffer=function(){var Ae=(0,ae.default)(se.default.mark(function be(Ee,Re,Ie){var ke,Pe;return se.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(!(le(Ee)||he(Ee))){He.next=8;break}return ke=Ee.slice(Re,Ie),He.next=4,Me(ke);case 4:return Pe=He.sent,He.abrupt("return",x.from(Pe));case 8:if(!ve(Ee)){He.next=12;break}return He.abrupt("return",Ee.subarray(Re,Ie));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return He.stop()}},be)}));function ge(be,Ee,Re){return Ae.apply(this,arguments)}return ge}(),de._getPartSize=function(ge,be){var Ee=1e4,Re=1*1024*1024;be||(be=Re);var Ie=Math.ceil(ge/Ee);return be<Ie&&(be=Ie,console.warn("partSize has been set to ".concat(be,", because the partSize you provided causes partNumber to be greater than 10,000"))),be},de._divideParts=function(ge,be){for(var Ee=Math.ceil(ge/be),Re=[],Ie=0;Ie<Ee;Ie++){var ke=be*Ie,Pe=Math.min(ke+be,ge);Re.push({start:ke,end:Pe})}return Re}}).call(this)}).call(this,y("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.promise.js");var z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("fs"),ee=y("copy-to"),fe=y("path"),E=y("mime"),re=y("../common/callback"),ne=y("merge-descriptors"),le=y("../common/utils/isBlob"),ue=le.isBlob,he=y("../common/utils/isFile"),pe=he.isFile,ve=y("../common/utils/isBuffer"),de=ve.isBuffer,we=y("../common/utils/obj2xml"),Te=we.obj2xml,je=ye;je.append=function(){var Me=(0,se.default)(z.default.mark(function ge(be,Ee,Re){var Ie;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Re=Re||{},Re.position===void 0&&(Re.position="0"),Re.subres={append:"",position:Re.position},Re.method="POST",Pe.next=6,this.put(be,Ee,Re);case 6:return Ie=Pe.sent,Ie.nextAppendPosition=Ie.res.headers["x-oss-next-append-position"],Pe.abrupt("return",Ie);case 9:case"end":return Pe.stop()}},ge,this)}));function Ae(ge,be,Ee){return Me.apply(this,arguments)}return Ae}(),je.put=function(){var Me=(0,se.default)(z.default.mark(function ge(be,Ee,Re){var Ie,ke,Pe,Ze,He;return z.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(Re=Re||{},Re.disabledMD5=Re.disabledMD5===void 0?!0:!!Re.disabledMD5,Re.headers=Re.headers||{},be=this._objectName(be),!de(Ee)){it.next=8;break}Ie=Ee,it.next=19;break;case 8:if(!(ue(Ee)||pe(Ee))){it.next=18;break}return Re.mime||(pe(Ee)?Re.mime=E.getType(fe.extname(Ee.name)):Re.mime=Ee.type),it.next=12,this._createBuffer(Ee,0,Ee.size);case 12:return Ie=it.sent,it.next=15,this._getFileSize(Ee);case 15:Re.contentLength=it.sent,it.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Re.meta,Re.headers),ke=Re.method||"PUT",Pe=this._objectRequestParams(ke,be,Re),re.encodeCallback(Pe,Re),Pe.mime=Re.mime,Pe.disabledMD5=Re.disabledMD5,Pe.content=Ie,Pe.successStatuses=[200],it.next=29,this.request(Pe);case 29:return Ze=it.sent,He={name:be,url:this._objectUrl(be),res:Ze.res},Pe.headers&&Pe.headers["x-oss-callback"]&&(He.data=JSON.parse(Ze.data.toString())),it.abrupt("return",He);case 33:case"end":return it.stop()}},ge,this)}));function Ae(ge,be,Ee){return Me.apply(this,arguments)}return Ae}(),je.putStream=function(){var Me=(0,se.default)(z.default.mark(function ge(be,Ee,Re){var Ie,ke,Pe,Ze;return z.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Re=Re||{},Re.headers=Re.headers||{},be=this._objectName(be),Re.contentLength?Re.headers["Content-Length"]=Re.contentLength:Re.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Re.meta,Re.headers),Ie=Re.method||"PUT",ke=this._objectRequestParams(Ie,be,Re),re.encodeCallback(ke,Re),ke.mime=Re.mime,ke.stream=Ee,ke.successStatuses=[200],$e.next=13,this.request(ke);case 13:return Pe=$e.sent,Ze={name:be,url:this._objectUrl(be),res:Pe.res},ke.headers&&ke.headers["x-oss-callback"]&&(Ze.data=JSON.parse(Pe.data.toString())),$e.abrupt("return",Ze);case 17:case"end":return $e.stop()}},ge,this)}));function Ae(ge,be,Ee){return Me.apply(this,arguments)}return Ae}(),ne(je,y("../common/object/copyObject")),ne(je,y("../common/object/getObjectTagging")),ne(je,y("../common/object/putObjectTagging")),ne(je,y("../common/object/deleteObjectTagging")),ne(je,y("../common/image")),ne(je,y("../common/object/getBucketVersions")),ne(je,y("../common/object/getACL")),ne(je,y("../common/object/putACL")),ne(je,y("../common/object/head")),ne(je,y("../common/object/delete")),ne(je,y("../common/object/get")),ne(je,y("../common/object/putSymlink")),ne(je,y("../common/object/getSymlink")),ne(je,y("../common/object/deleteMulti")),ne(je,y("../common/object/getObjectMeta")),ne(je,y("../common/object/getObjectUrl")),ne(je,y("../common/object/generateObjectUrl")),ne(je,y("../common/object/signatureUrl")),ne(je,y("../common/object/asyncSignatureUrl")),je.putMeta=function(){var Me=(0,se.default)(z.default.mark(function ge(be,Ee,Re){var Ie;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Pe.next=2,this.copy(be,be,{meta:Ee||{},timeout:Re&&Re.timeout,ctx:Re&&Re.ctx});case 2:return Ie=Pe.sent,Pe.abrupt("return",Ie);case 4:case"end":return Pe.stop()}},ge,this)}));function Ae(ge,be,Ee){return Me.apply(this,arguments)}return Ae}(),je.list=function(){var Me=(0,se.default)(z.default.mark(function ge(be,Ee){var Re,Ie,ke,Pe,Ze;return z.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Re=this._objectRequestParams("GET","",Ee),Re.query=be,Re.xmlResponse=!0,Re.successStatuses=[200],$e.next=6,this.request(Re);case 6:return Ie=$e.sent,ke=Ie.data.Contents||[],Pe=this,ke&&(Array.isArray(ke)||(ke=[ke]),ke=ke.map(function(it){return{name:it.Key,url:Pe._objectUrl(it.Key),lastModified:it.LastModified,etag:it.ETag,type:it.Type,size:Number(it.Size),storageClass:it.StorageClass,owner:{id:it.Owner.ID,displayName:it.Owner.DisplayName}}})),Ze=Ie.data.CommonPrefixes||null,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(it){return it.Prefix})),$e.abrupt("return",{res:Ie.res,objects:ke,prefixes:Ze,nextMarker:Ie.data.NextMarker||null,isTruncated:Ie.data.IsTruncated==="true"});case 13:case"end":return $e.stop()}},ge,this)}));function Ae(ge,be){return Me.apply(this,arguments)}return Ae}(),je.listV2=function(){var Me=(0,se.default)(z.default.mark(function ge(be){var Ee,Re,Ie,ke,Pe,Ze,He,$e=arguments;return z.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ee=$e.length>1&&$e[1]!==void 0?$e[1]:{},Re=be["continuation-token"]||be.continuationToken,Re&&(Ee.subres=Object.assign({"continuation-token":Re},Ee.subres)),Ie=this._objectRequestParams("GET","",Ee),Ie.query=Object.assign({"list-type":2},be),delete Ie.query["continuation-token"],delete Ie.query.continuationToken,Ie.xmlResponse=!0,Ie.successStatuses=[200],Ne.next=11,this.request(Ie);case 11:return ke=Ne.sent,Pe=ke.data.Contents||[],Ze=this,Pe&&(Array.isArray(Pe)||(Pe=[Pe]),Pe=Pe.map(function(Fe){var qe=null;return Fe.Owner&&(qe={id:Fe.Owner.ID,displayName:Fe.Owner.DisplayName}),{name:Fe.Key,url:Ze._objectUrl(Fe.Key),lastModified:Fe.LastModified,etag:Fe.ETag,type:Fe.Type,size:Number(Fe.Size),storageClass:Fe.StorageClass,owner:qe}})),He=ke.data.CommonPrefixes||null,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(Fe){return Fe.Prefix})),Ne.abrupt("return",{res:ke.res,objects:Pe,prefixes:He,isTruncated:ke.data.IsTruncated==="true",keyCount:+ke.data.KeyCount,continuationToken:ke.data.ContinuationToken||null,nextContinuationToken:ke.data.NextContinuationToken||null});case 18:case"end":return Ne.stop()}},ge,this)}));function Ae(ge){return Me.apply(this,arguments)}return Ae}(),je.restore=function(){var Me=(0,se.default)(z.default.mark(function ge(be){var Ee,Re,Ie,ke,Pe=arguments;return z.default.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return Ee=Pe.length>1&&Pe[1]!==void 0?Pe[1]:{type:"Archive"},Ee=Ee||{},Ee.subres=Object.assign({restore:""},Ee.subres),Ee.versionId&&(Ee.subres.versionId=Ee.versionId),Re=this._objectRequestParams("POST",be,Ee),Ee.type==="ColdArchive"&&(Ie={RestoreRequest:{Days:Ee.Days?Ee.Days:2,JobParameters:{Tier:Ee.JobParameters?Ee.JobParameters:"Standard"}}},Re.content=Te(Ie,{headers:!0}),Re.mime="xml"),Re.successStatuses=[202],He.next=9,this.request(Re);case 9:return ke=He.sent,He.abrupt("return",{res:ke.res});case 11:case"end":return He.stop()}},ge,this)}));function Ae(ge){return Me.apply(this,arguments)}return Ae}(),je._objectUrl=function(Ae){return this._getReqUrl({bucket:this.options.bucket,object:Ae})},je._objectRequestParams=function(Ae,ge,be){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");be=be||{},ge=this._objectName(ge);var Ee={object:ge,bucket:this.options.bucket,method:Ae,subres:be&&be.subres,timeout:be&&be.timeout,ctx:be&&be.ctx};return be.headers&&(Ee.headers={},ee(be.headers).to(Ee.headers)),Ee},je._objectName=function(Ae){return Ae.replace(/^\/+/,"")},je._convertMetaToHeaders=function(Ae,ge){Ae&&Object.keys(Ae).forEach(function(be){ge["x-oss-meta-".concat(be)]=Ae[be]})},je._deleteFileSafe=function(Ae){var ge=this;return new Promise(function(be){ae.exists(Ae,function(Ee){Ee?ae.unlink(Ae,function(Re){Re&&ge.debug("unlink %j error: %s",Ae,Re,"error"),be()}):be()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(y,Ce,ye){"use strict";ye.version="6.18.1"},{}],7:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.abortBucketWorm=void 0;var ae=y("../utils/checkBucketName");function ee(E,re){return fe.apply(this,arguments)}function fe(){return fe=(0,se.default)(z.default.mark(function E(re,ne){var le,ue;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ae.checkBucketName(re),le=this._bucketRequestParams("DELETE",re,"worm",ne),pe.next=4,this.request(le);case 4:return ue=pe.sent,pe.abrupt("return",{res:ue.res,status:ue.status});case 6:case"end":return pe.stop()}},E,this)})),fe.apply(this,arguments)}ye.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.completeBucketWorm=void 0;var ae=y("../utils/checkBucketName");function ee(E,re,ne){return fe.apply(this,arguments)}function fe(){return fe=(0,se.default)(z.default.mark(function E(re,ne,le){var ue,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ae.checkBucketName(re),ue=this._bucketRequestParams("POST",re,{wormId:ne},le),ve.next=4,this.request(ue);case 4:return he=ve.sent,ve.abrupt("return",{res:he.res,status:he.status});case 6:case"end":return ve.stop()}},E,this)})),fe.apply(this,arguments)}ye.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.deleteBucketInventory=void 0;var ae=y("../utils/checkBucketName");function ee(E,re){return fe.apply(this,arguments)}function fe(){return fe=(0,se.default)(z.default.mark(function E(re,ne){var le,ue,he,pe,ve=arguments;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return le=ve.length>2&&ve[2]!==void 0?ve[2]:{},ue=Object.assign({inventory:"",inventoryId:ne},le.subres),ae.checkBucketName(re),he=this._bucketRequestParams("DELETE",re,ue,le),he.successStatuses=[204],we.next=7,this.request(he);case 7:return pe=we.sent,we.abrupt("return",{status:pe.status,res:pe.res});case 9:case"end":return we.stop()}},E,this)})),fe.apply(this,arguments)}ye.deleteBucketInventory=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=ye;fe.deleteBucketLifecycle=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue){var he,pe;return z.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return ee(le),he=this._bucketRequestParams("DELETE",le,"lifecycle",ue),he.successStatuses=[204],de.next=5,this.request(he);case 5:return pe=de.sent,de.abrupt("return",{res:pe.res});case 7:case"end":return de.stop()}},ne,this)}));function re(ne,le){return E.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=ye;fe.deleteBucketWebsite=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue){var he,pe;return z.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return ee(le),he=this._bucketRequestParams("DELETE",le,"website",ue),he.successStatuses=[204],de.next=5,this.request(he);case 5:return pe=de.sent,de.abrupt("return",{res:pe.res});case 7:case"end":return de.stop()}},ne,this)}));function re(ne,le){return E.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.extendBucketWorm=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function fe(re,ne,le,ue){return E.apply(this,arguments)}function E(){return E=(0,se.default)(z.default.mark(function re(ne,le,ue,he){var pe,ve,de;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ae.checkBucketName(ne),pe=this._bucketRequestParams("POST",ne,{wormExtend:"",wormId:le},he),ve={ExtendWormConfiguration:{RetentionPeriodInDays:ue}},pe.mime="xml",pe.content=ee.obj2xml(ve,{headers:!0}),pe.successStatuses=[200],Te.next=8,this.request(pe);case 8:return de=Te.sent,Te.abrupt("return",{res:de.res,status:de.status});case 10:case"end":return Te.stop()}},re,this)})),E.apply(this,arguments)}ye.extendBucketWorm=fe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.getBucketInventory=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function fe(re,ne){return E.apply(this,arguments)}function E(){return E=(0,se.default)(z.default.mark(function re(ne,le){var ue,he,pe,ve,de=arguments;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ue=de.length>2&&de[2]!==void 0?de[2]:{},he=Object.assign({inventory:"",inventoryId:le},ue.subres),ae.checkBucketName(ne),pe=this._bucketRequestParams("GET",ne,he,ue),pe.successStatuses=[200],pe.xmlResponse=!0,Te.next=8,this.request(pe);case 8:return ve=Te.sent,Te.abrupt("return",{status:ve.status,res:ve.res,inventory:ee.formatInventoryConfig(ve.data)});case 10:case"end":return Te.stop()}},re,this)})),E.apply(this,arguments)}ye.getBucketInventory=fe},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=y("../utils/isArray"),E=fe.isArray,re=y("../utils/formatObjKey"),ne=re.formatObjKey,le=ye;le.getBucketLifecycle=function(){var ue=(0,se.default)(z.default.mark(function pe(ve,de){var we,Te,je;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ee(ve),we=this._bucketRequestParams("GET",ve,"lifecycle",de),we.successStatuses=[200],we.xmlResponse=!0,Ae.next=6,this.request(we);case 6:return Te=Ae.sent,je=Te.data.Rule||null,je&&(E(je)||(je=[je]),je=je.map(function(ge){return ge.ID&&(ge.id=ge.ID,delete ge.ID),ge.Tag&&!E(ge.Tag)&&(ge.Tag=[ge.Tag]),ne(ge,"firstLowerCase")})),Ae.abrupt("return",{rules:je,res:Te.res});case 10:case"end":return Ae.stop()}},pe,this)}));function he(pe,ve){return ue.apply(this,arguments)}return he}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=ye;fe.getBucketVersioning=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue){var he,pe,ve;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ee(le),he=this._bucketRequestParams("GET",le,"versioning",ue),he.xmlResponse=!0,he.successStatuses=[200],we.next=6,this.request(he);case 6:return pe=we.sent,ve=pe.data.Status,we.abrupt("return",{status:pe.status,versionStatus:ve,res:pe.res});case 9:case"end":return we.stop()}},ne,this)}));function re(ne,le){return E.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=y("../utils/isObject"),E=fe.isObject,re=ye;re.getBucketWebsite=function(){var ne=(0,se.default)(z.default.mark(function ue(he,pe){var ve,de,we;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ee(he),ve=this._bucketRequestParams("GET",he,"website",pe),ve.successStatuses=[200],ve.xmlResponse=!0,je.next=6,this.request(ve);case 6:return de=je.sent,we=[],de.data.RoutingRules&&de.data.RoutingRules.RoutingRule&&(E(de.data.RoutingRules.RoutingRule)?we=[de.data.RoutingRules.RoutingRule]:we=de.data.RoutingRules.RoutingRule),je.abrupt("return",{index:de.data.IndexDocument&&de.data.IndexDocument.Suffix||"",supportSubDir:de.data.IndexDocument&&de.data.IndexDocument.SupportSubDir||"false",type:de.data.IndexDocument&&de.data.IndexDocument.Type,routingRules:we,error:de.data.ErrorDocument&&de.data.ErrorDocument.Key||null,res:de.res});case 10:case"end":return je.stop()}},ue,this)}));function le(ue,he){return ne.apply(this,arguments)}return le}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.getBucketWorm=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function fe(re,ne){return E.apply(this,arguments)}function E(){return E=(0,se.default)(z.default.mark(function re(ne,le){var ue,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ae.checkBucketName(ne),ue=this._bucketRequestParams("GET",ne,"worm",le),ue.successStatuses=[200],ue.xmlResponse=!0,ve.next=6,this.request(ue);case 6:return he=ve.sent,ee.dataFix(he.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ve.abrupt("return",Object.assign(Object.assign({},he.data),{res:he.res,status:he.status}));case 9:case"end":return ve.stop()}},re,this)})),E.apply(this,arguments)}ye.getBucketWorm=fe},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.initiateBucketWorm=void 0;var ae=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function fe(re,ne,le){return E.apply(this,arguments)}function E(){return E=(0,se.default)(z.default.mark(function re(ne,le,ue){var he,pe,ve;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return ee.checkBucketName(ne),he=this._bucketRequestParams("POST",ne,"worm",ue),pe={InitiateWormConfiguration:{RetentionPeriodInDays:le}},he.mime="xml",he.content=ae.obj2xml(pe,{headers:!0}),he.successStatuses=[200],we.next=8,this.request(he);case 8:return ve=we.sent,we.abrupt("return",{res:ve.res,wormId:ve.res.headers["x-oss-worm-id"],status:ve.status});case 10:case"end":return we.stop()}},re,this)})),E.apply(this,arguments)}ye.initiateBucketWorm=fe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.listBucketInventory=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function fe(re){return E.apply(this,arguments)}function E(){return E=(0,se.default)(z.default.mark(function re(ne){var le,ue,he,pe,ve,de,we,Te,je=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return le=je.length>1&&je[1]!==void 0?je[1]:{},ue=le.continuationToken,he=Object.assign({inventory:""},ue&&{"continuation-token":ue},le.subres),ae.checkBucketName(ne),pe=this._bucketRequestParams("GET",ne,he,le),pe.successStatuses=[200],pe.xmlResponse=!0,Ae.next=9,this.request(pe);case 9:return ve=Ae.sent,de=ve.data,we=ve.res,Te=ve.status,Ae.abrupt("return",{isTruncated:de.IsTruncated==="true",nextContinuationToken:de.NextContinuationToken,inventoryList:ee.formatInventoryConfig(de.InventoryConfiguration,!0),status:Te,res:we});case 12:case"end":return Ae.stop()}},re,this)})),E.apply(this,arguments)}ye.listBucketInventory=fe},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.putBucketInventory=void 0;var ae=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function fe(re,ne){return E.apply(this,arguments)}function E(){return E=(0,se.default)(z.default.mark(function re(ne,le){var ue,he,pe,ve,de,we,Te,je,Me,Ae,ge,be=arguments;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return ue=be.length>2&&be[2]!==void 0?be[2]:{},he=Object.assign({inventory:"",inventoryId:le.id},ue.subres),ae.checkBucketName(ne),pe=le.OSSBucketDestination,ve=le.optionalFields,de=le.includedObjectVersions,we="acs:oss:::",Te="acs:ram::".concat(pe.accountId,":role/"),je={InventoryConfiguration:{Id:le.id,IsEnabled:le.isEnabled,Filter:{Prefix:le.prefix||""},Destination:{OSSBucketDestination:{Format:pe.format,AccountId:pe.accountId,RoleArn:"".concat(Te).concat(pe.rolename),Bucket:"".concat(we).concat(pe.bucket),Prefix:pe.prefix||"",Encryption:pe.encryption||""}},Schedule:{Frequency:le.frequency},IncludedObjectVersions:de,OptionalFields:{Field:(ve==null?void 0:ve.field)||[]}}},Me=ee.obj2xml(je,{headers:!0,firstUpperCase:!0}),Ae=this._bucketRequestParams("PUT",ne,he,ue),Ae.successStatuses=[200],Ae.mime="xml",Ae.content=Me,Re.next=14,this.request(Ae);case 14:return ge=Re.sent,Re.abrupt("return",{status:ge.status,res:ge.res});case 16:case"end":return Re.stop()}},re,this)})),E.apply(this,arguments)}ye.putBucketInventory=fe},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.array.includes.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=y("../utils/isArray"),E=fe.isArray,re=y("../utils/deepCopy"),ne=re.deepCopy,le=y("../utils/isObject"),ue=le.isObject,he=y("../utils/obj2xml"),pe=he.obj2xml,ve=y("../utils/checkObjectTag"),de=ve.checkObjectTag,we=y("../utils/getStrBytesCount"),Te=we.getStrBytesCount,je=ye;je.putBucketLifecycle=function(){var Ee=(0,se.default)(z.default.mark(function Ie(ke,Pe,Ze){var He,$e,it,Ne,Fe;return z.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(ee(ke),E(Pe)){rt.next=3;break}throw new Error("rules must be Array");case 3:return He=this._bucketRequestParams("PUT",ke,"lifecycle",Ze),$e=[],it={LifecycleConfiguration:{Rule:$e}},Pe.forEach(function(tt){Me(tt),be(tt),tt.id&&(tt.ID=tt.id,delete tt.id),$e.push(tt)}),Ne=pe(it,{headers:!0,firstUpperCase:!0}),He.content=Ne,He.mime="xml",He.successStatuses=[200],rt.next=13,this.request(He);case 13:return Fe=rt.sent,rt.abrupt("return",{res:Fe.res});case 15:case"end":return rt.stop()}},Ie,this)}));function Re(Ie,ke,Pe){return Ee.apply(this,arguments)}return Re}();function Me(Ee){Ee.days&&(Ee.expiration={days:Ee.days}),Ee.date&&(Ee.expiration={createdBeforeDate:Ee.date})}function Ae(Ee,Re){var Ie=Ee.days,ke=Ee.createdBeforeDate;if(!Ie&&!ke)throw new Error("".concat(Re," must includes days or createdBeforeDate"));if(Ie&&!/^[1-9][0-9]*$/.test(Ie))throw new Error("days must be a positive integer");if(ke&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(ke))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function ge(Ee){if(!E(Ee)&&!ue(Ee))throw new Error("tag must be Object or Array");Ee=ue(Ee)?[Ee]:Ee;var Re={},Ie=ne(Ee);Ie.forEach(function(ke){Re[ke.key]=ke.value}),de(Re)}function be(Ee){if(Ee.id&&Te(Ee.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Ee.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Ee.status))throw new Error("Status must be Enabled or Disabled");if(Ee.transition){if(!["IA","Archive"].includes(Ee.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Ae(Ee.transition,"Transition")}if(Ee.expiration){if(!Ee.expiration.expiredObjectDeleteMarker)Ae(Ee.expiration,"Expiration");else if(Ee.expiration.days||Ee.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Ee.abortMultipartUpload&&Ae(Ee.abortMultipartUpload,"AbortMultipartUpload"),!Ee.expiration&&!Ee.abortMultipartUpload&&!Ee.transition&&!Ee.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Ee.tag){if(Ee.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");ge(Ee.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=y("../utils/obj2xml"),E=fe.obj2xml,re=ye;re.putBucketVersioning=function(){var ne=(0,se.default)(z.default.mark(function ue(he,pe){var ve,de,we,Te,je=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(ve=je.length>2&&je[2]!==void 0?je[2]:{},ee(he),["Enabled","Suspended"].includes(pe)){Ae.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return de=this._bucketRequestParams("PUT",he,"versioning",ve),we={VersioningConfiguration:{Status:pe}},de.mime="xml",de.content=E(we,{headers:!0}),Ae.next=10,this.request(de);case 10:return Te=Ae.sent,Ae.abrupt("return",{res:Te.res,status:Te.status});case 12:case"end":return Ae.stop()}},ue,this)}));function le(ue,he){return ne.apply(this,arguments)}return le}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=y("../utils/obj2xml"),E=fe.obj2xml,re=y("../utils/isArray"),ne=re.isArray,le=ye;le.putBucketWebsite=function(){var ue=(0,se.default)(z.default.mark(function pe(ve){var de,we,Te,je,Me,Ae,ge,be=arguments;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(de=be.length>1&&be[1]!==void 0?be[1]:{},we=be.length>2?be[2]:void 0,ee(ve),Te=this._bucketRequestParams("PUT",ve,"website",we),je={Suffix:de.index||"index.html"},Me={IndexDocument:je},Ae={WebsiteConfiguration:Me},de.supportSubDir&&(je.SupportSubDir=de.supportSubDir),de.type&&(je.Type=de.type),de.error&&(Me.ErrorDocument={Key:de.error}),de.routingRules===void 0){Re.next=14;break}if(ne(de.routingRules)){Re.next=13;break}throw new Error("RoutingRules must be Array");case 13:Me.RoutingRules={RoutingRule:de.routingRules};case 14:return Ae=E(Ae),Te.content=Ae,Te.mime="xml",Te.successStatuses=[200],Re.next=20,this.request(Te);case 20:return ge=Re.sent,Re.abrupt("return",{res:ge.res});case 22:case"end":return Re.stop()}},pe,this)}));function he(pe){return ue.apply(this,arguments)}return he}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(y,Ce,ye){(function(x){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),ye.encodeCallback=function(se,ae){if(se.headers=se.headers||{},!Object.prototype.hasOwnProperty.call(se.headers,"x-oss-callback")&&ae.callback){var ee={callbackUrl:encodeURI(ae.callback.url),callbackBody:ae.callback.body};ae.callback.host&&(ee.callbackHost=ae.callback.host),ae.callback.contentType&&(ee.callbackBodyType=ae.callback.contentType);var fe=x.from(JSON.stringify(ee)).toString("base64");if(se.headers["x-oss-callback"]=fe,ae.callback.customValue){var E={};Object.keys(ae.callback.customValue).forEach(function(re){E["x:".concat(re)]=ae.callback.customValue[re].toString()}),se.headers["x-oss-callback-var"]=x.from(JSON.stringify(E)).toString("base64")}}}}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var x=function(ne){return ne&&ne.__esModule?ne:{default:ne}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.getReqUrl=void 0;var z=x(y("copy-to")),se=x(y("url")),ae=x(y("merge-descriptors")),ee=x(y("is-type-of")),fe=y("../utils/isIP"),E=y("../utils/checkConfigValid");function re(ne){var le={},ue=this.options.cname;E.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(le),ne.bucket&&!ue&&!fe.isIP(le.hostname)&&!this.options.sldEnable&&(le.host="".concat(ne.bucket,".").concat(le.host));var he="/";ne.bucket&&this.options.sldEnable&&(he+="".concat(ne.bucket,"/")),ne.object&&(he+=this._escape(ne.object).replace(/\+/g,"%2B")),le.pathname=he;var pe={};if(ne.query&&ae.default(pe,ne.query),ne.subres){var ve={};ee.default.string(ne.subres)?ve[ne.subres]="":ee.default.array(ne.subres)?ne.subres.forEach(function(de){ve[de]=""}):ve=ne.subres,ae.default(pe,ve)}return le.query=pe,se.default.format(le)}ye.getReqUrl=re},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.string.trim.js");var x=y("humanize-ms"),z=y("url"),se=y("../utils/checkBucketName"),ae=se.checkBucketName,ee=y("../utils/setRegion"),fe=ee.setRegion,E=y("../utils/checkConfigValid"),re=E.checkConfigValid;function ne(le,ue){re(le,"endpoint");var he=z.parse(le);if(he.protocol||(he=z.parse("http".concat(ue?"s":"","://").concat(le))),he.protocol!=="http:"&&he.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return he}Ce.exports=function(le){if(!le||!le.accessKeyId||!le.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");le.stsToken&&!le.refreshSTSToken&&!le.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),le.bucket&&ae(le.bucket);var ue=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},le);if(ue.accessKeyId=ue.accessKeyId.trim(),ue.accessKeySecret=ue.accessKeySecret.trim(),ue.timeout&&(ue.timeout=x(ue.timeout)),ue.endpoint)ue.endpoint=ne(ue.endpoint,ue.secure);else if(ue.region)ue.endpoint=fe(ue.region,ue.internal,ue.secure);else throw new Error("require options.endpoint or options.region");return ue.inited=!0,ue}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(y,Ce,ye){"use strict";var x=y("merge-descriptors"),z=ye;x(z,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkBucketName"),ee=ae.checkBucketName,fe=y("querystring"),E=y("js-base64"),re=E.Base64.encode,ne=ye;ne.processObjectSave=function(){var ue=(0,se.default)(z.default.mark(function pe(ve,de,we,Te){var je,Me,Ae,ge;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return le(ve,"sourceObject"),le(de,"targetObject"),le(we,"process"),de=this._objectName(de),Te&&ee(Te),je=this._objectRequestParams("POST",ve,{subres:"x-oss-process"}),Me=Te?",b_".concat(re(Te)):"",de=re(de),Ae={"x-oss-process":"".concat(we,"|sys/saveas,o_").concat(de).concat(Me)},je.content=fe.stringify(Ae),Ee.next=12,this.request(je);case 12:return ge=Ee.sent,Ee.abrupt("return",{res:ge.res,status:ge.res.status});case 14:case"end":return Ee.stop()}},pe,this)}));function he(pe,ve,de,we){return ue.apply(this,arguments)}return he}();function le(ue,he){if(!ue)throw new Error("".concat(he," is required"));if(typeof ue!="string")throw new Error("".concat(he," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.regexp.to-string.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),fe=ye;fe.uploadPartCopy=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue,he,pe,ve){var de,we,Te,je,Me,Ae=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return de=Ae.length>5&&Ae[5]!==void 0?Ae[5]:{},de.headers=de.headers||{},we=de.versionId||de.subres&&de.subres.versionId||null,we?Te="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey),"?versionId=").concat(we):Te="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey)),de.headers["x-oss-copy-source"]=Te,pe&&(de.headers["x-oss-copy-source-range"]="bytes=".concat(pe)),de.subres={partNumber:he,uploadId:ue},je=this._objectRequestParams("PUT",le,de),je.mime=de.mime,je.successStatuses=[200],be.next=12,this.request(je);case 12:return Me=be.sent,be.abrupt("return",{name:le,etag:Me.res.headers.etag,res:Me.res});case 14:case"end":return be.stop()}},ne,this)}));function re(ne,le,ue,he,pe){return E.apply(this,arguments)}return re}(),fe.multipartUploadCopy=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue){var he,pe,ve,de,we,Te,je,Me,Ae,ge,be,Ee,Re=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return he=Re.length>2&&Re[2]!==void 0?Re[2]:{},this.resetCancelFlag(),pe=he.versionId,ve=pe===void 0?null:pe,de={versionId:ve},ke.next=6,this._getObjectMeta(ue.sourceBucketName,ue.sourceKey,de);case 6:if(we=ke.sent,Te=we.res.headers["content-length"],ue.startOffset=ue.startOffset||0,ue.endOffset=ue.endOffset||Te,!(he.checkpoint&&he.checkpoint.uploadId)){ke.next=14;break}return ke.next=13,this._resumeMultipartCopy(he.checkpoint,ue,he);case 13:return ke.abrupt("return",ke.sent);case 14:if(je=102400,Me=ue.endOffset-ue.startOffset,!(Me<je)){ke.next=18;break}throw new Error("copySize must not be smaller than ".concat(je));case 18:if(!(he.partSize&&he.partSize<je)){ke.next=20;break}throw new Error("partSize must not be smaller than ".concat(je));case 20:return ke.next=22,this.initMultipartUpload(le,he);case 22:if(Ae=ke.sent,ge=Ae.uploadId,be=this._getPartSize(Me,he.partSize),Ee={name:le,copySize:Me,partSize:be,uploadId:ge,doneParts:[]},!(he&&he.progress)){ke.next=29;break}return ke.next=29,he.progress(0,Ee,Ae.res);case 29:return ke.next=31,this._resumeMultipartCopy(Ee,ue,he);case 31:return ke.abrupt("return",ke.sent);case 32:case"end":return ke.stop()}},ne,this)}));function re(ne,le){return E.apply(this,arguments)}return re}(),fe._resumeMultipartCopy=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue,he){var pe,ve,de,we,Te,je,Me,Ae,ge,be,Ee,Re,Ie,ke,Pe,Ze,He,$e,it,Ne,Fe;return z.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!this.isCancel()){rt.next=2;break}throw this._makeCancelEvent();case 2:if(pe=he.versionId,ve=pe===void 0?null:pe,de={versionId:ve},we=le.copySize,Te=le.partSize,je=le.uploadId,Me=le.doneParts,Ae=le.name,ge=this._divideMultipartCopyParts(we,Te,ue.startOffset),be=ge.length,Ee={headers:{}},he.copyheaders&&ee(he.copyheaders).to(Ee.headers),ve&&ee(de).to(Ee),Re=function(Ve,Ke,ze){return new Promise(function(){var at=(0,se.default)(z.default.mark(function Qe(ut,st){var Xe,Le,De;return z.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(ce.prev=0,Ve.isCancel()){ce.next=22;break}return Xe=ge[Ke-1],Le="".concat(Xe.start,"-").concat(Xe.end-1),ce.prev=4,ce.next=7,Ve.uploadPartCopy(Ae,je,Ke,Le,ze,Ee);case 7:De=ce.sent,ce.next=15;break;case 10:if(ce.prev=10,ce.t0=ce.catch(4),ce.t0.status!==404){ce.next=14;break}throw Ve._makeAbortEvent();case 14:throw ce.t0;case 15:if(Ve.isCancel()){ce.next=22;break}if(ae("content-range ".concat(De.res.headers["content-range"])),Me.push({number:Ke,etag:De.res.headers.etag}),le.doneParts=Me,!(he&&he.progress)){ce.next=22;break}return ce.next=22,he.progress(Me.length/be,le,De.res);case 22:ut(),ce.next=29;break;case 25:ce.prev=25,ce.t1=ce.catch(0),ce.t1.partNum=Ke,st(ce.t1);case 29:case"end":return ce.stop()}},Qe,null,[[0,25],[4,10]])}));return function(Qe,ut){return at.apply(this,arguments)}}())},Ie=Array.from(new Array(be),function(tt,Ve){return Ve+1}),ke=Me.map(function(tt){return tt.number}),Pe=Ie.filter(function(tt){return ke.indexOf(tt)<0}),Ze=5,He=he.parallel||Ze,!(this.checkBrowserAndVersion("Internet Explorer","10")||He===1)){rt.next=28;break}$e=0;case 18:if(!($e<Pe.length)){rt.next=26;break}if(!this.isCancel()){rt.next=21;break}throw this._makeCancelEvent();case 21:return rt.next=23,Re(this,Pe[$e],ue);case 23:$e++,rt.next=18;break;case 26:rt.next=40;break;case 28:return rt.next=30,this._parallelNode(Pe,He,Re,ue);case 30:if(it=rt.sent,Ne=it.find(function(tt){return tt.name==="abort"}),!Ne){rt.next=34;break}throw Ne;case 34:if(!this.isCancel()){rt.next=36;break}throw this._makeCancelEvent();case 36:if(!(it&&it.length>0)){rt.next=40;break}throw Fe=it[0],Fe.message="Failed to copy some parts with error: ".concat(Fe.toString()," part_num: ").concat(Fe.partNum),Fe;case 40:return rt.next=42,this.completeMultipartUpload(Ae,je,Me,he);case 42:return rt.abrupt("return",rt.sent);case 43:case"end":return rt.stop()}},ne,this)}));function re(ne,le,ue){return E.apply(this,arguments)}return re}(),fe._divideMultipartCopyParts=function(re,ne,le){for(var ue=Math.ceil(re/ne),he=[],pe=0;pe<ue;pe++){var ve=ne*pe+le,de=Math.min(ve+ne,re+le);he.push({start:ve,end:de})}return he},fe._getObjectMeta=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue,he){var pe,ve;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return pe=this.getBucket(),this.setBucket(le),we.next=4,this.head(ue,he);case 4:return ve=we.sent,this.setBucket(pe),we.abrupt("return",ve);case 7:case"end":return we.stop()}},ne,this)}));function re(ne,le,ue){return E.apply(this,arguments)}return re}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),se=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var ae=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("copy-to"),fe=y("./callback"),E=y("./utils/deepCopy"),re=E.deepCopyWith,ne=y("./utils/isBuffer"),le=ne.isBuffer,ue=y("./utils/omit"),he=ue.omit,pe=ye;pe.listUploads=function(){var ve=(0,ae.default)(se.default.mark(function we(Te,je){var Me,Ae,ge,be;return se.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return je=je||{},Me={},ee(je).to(Me),Me.subres="uploads",Ae=this._objectRequestParams("GET","",Me),Ae.query=Te,Ae.xmlResponse=!0,Ae.successStatuses=[200],Re.next=10,this.request(Ae);case 10:return ge=Re.sent,be=ge.data.Upload||[],Array.isArray(be)||(be=[be]),be=be.map(function(Ie){return{name:Ie.Key,uploadId:Ie.UploadId,initiated:Ie.Initiated}}),Re.abrupt("return",{res:ge.res,uploads:be,bucket:ge.data.Bucket,nextKeyMarker:ge.data.NextKeyMarker,nextUploadIdMarker:ge.data.NextUploadIdMarker,isTruncated:ge.data.IsTruncated==="true"});case 15:case"end":return Re.stop()}},we,this)}));function de(we,Te){return ve.apply(this,arguments)}return de}(),pe.listParts=function(){var ve=(0,ae.default)(se.default.mark(function we(Te,je,Me,Ae){var ge,be,Ee;return se.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ae=Ae||{},ge={},ee(Ae).to(ge),ge.subres={uploadId:je},be=this._objectRequestParams("GET",Te,ge),be.query=Me,be.xmlResponse=!0,be.successStatuses=[200],Ie.next=10,this.request(be);case 10:return Ee=Ie.sent,Ie.abrupt("return",{res:Ee.res,uploadId:Ee.data.UploadId,bucket:Ee.data.Bucket,name:Ee.data.Key,partNumberMarker:Ee.data.PartNumberMarker,nextPartNumberMarker:Ee.data.NextPartNumberMarker,maxParts:Ee.data.MaxParts,isTruncated:Ee.data.IsTruncated,parts:Ee.data.Part||[]});case 12:case"end":return Ie.stop()}},we,this)}));function de(we,Te,je,Me){return ve.apply(this,arguments)}return de}(),pe.abortMultipartUpload=function(){var ve=(0,ae.default)(se.default.mark(function we(Te,je,Me){var Ae,ge,be;return se.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return this._stop(),Me=Me||{},Ae={},ee(Me).to(Ae),Ae.subres={uploadId:je},ge=this._objectRequestParams("DELETE",Te,Ae),ge.successStatuses=[204],Re.next=9,this.request(ge);case 9:return be=Re.sent,Re.abrupt("return",{res:be.res});case 11:case"end":return Re.stop()}},we,this)}));function de(we,Te,je){return ve.apply(this,arguments)}return de}(),pe.initMultipartUpload=function(){var ve=(0,ae.default)(se.default.mark(function we(Te,je){var Me,Ae,ge;return se.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return je=je||{},Me={},ee(je).to(Me),Me.headers=Me.headers||{},this._convertMetaToHeaders(je.meta,Me.headers),Me.subres="uploads",Ae=this._objectRequestParams("POST",Te,Me),Ae.mime=je.mime,Ae.xmlResponse=!0,Ae.successStatuses=[200],Ee.next=12,this.request(Ae);case 12:return ge=Ee.sent,Ee.abrupt("return",{res:ge.res,bucket:ge.data.Bucket,name:ge.data.Key,uploadId:ge.data.UploadId});case 14:case"end":return Ee.stop()}},we,this)}));function de(we,Te){return ve.apply(this,arguments)}return de}(),pe.uploadPart=function(){var ve=(0,ae.default)(se.default.mark(function we(Te,je,Me,Ae,ge,be,Ee){var Re,Ie;return se.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(Re={size:be-ge},Ie=x&&x.browser,!Ie){Pe.next=8;break}return Pe.next=5,this._createBuffer(Ae,ge,be);case 5:Re.content=Pe.sent,Pe.next=11;break;case 8:return Pe.next=10,this._createStream(Ae,ge,be);case 10:Re.stream=Pe.sent;case 11:return Pe.next=13,this._uploadPart(Te,je,Me,Re,Ee);case 13:return Pe.abrupt("return",Pe.sent);case 14:case"end":return Pe.stop()}},we,this)}));function de(we,Te,je,Me,Ae,ge,be){return ve.apply(this,arguments)}return de}(),pe.completeMultipartUpload=function(){var ve=(0,ae.default)(se.default.mark(function we(Te,je,Me,Ae){var ge,be,Ee,Re,Ie,ke,Pe,Ze;return se.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:for(ge=Me.concat().sort(function(it,Ne){return it.number-Ne.number}).filter(function(it,Ne,Fe){return!Ne||it.number!==Fe[Ne-1].number}),be=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Ee=0;Ee<ge.length;Ee++)Re=ge[Ee],be+=`<Part>
`,be+="<PartNumber>".concat(Re.number,`</PartNumber>
`),be+="<ETag>".concat(Re.etag,`</ETag>
`),be+=`</Part>
`;return be+="</CompleteMultipartUpload>",Ae=Ae||{},Ie={},Ie=re(Ae,function(it){if(le(it))return null}),Ie.subres={uploadId:je},Ie.headers=he(Ie.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ke=this._objectRequestParams("POST",Te,Ie),fe.encodeCallback(ke,Ie),ke.mime="xml",ke.content=be,ke.headers&&ke.headers["x-oss-callback"]||(ke.xmlResponse=!0),ke.successStatuses=[200],$e.next=17,this.request(ke);case 17:if(Pe=$e.sent,!Ae.progress){$e.next=21;break}return $e.next=21,Ae.progress(1,null,Pe.res);case 21:return Ze={res:Pe.res,bucket:ke.bucket,name:Te,etag:Pe.res.headers.etag},ke.headers&&ke.headers["x-oss-callback"]&&(Ze.data=JSON.parse(Pe.data.toString())),$e.abrupt("return",Ze);case 24:case"end":return $e.stop()}},we,this)}));function de(we,Te,je,Me){return ve.apply(this,arguments)}return de}(),pe._uploadPart=function(){var ve=(0,ae.default)(se.default.mark(function we(Te,je,Me,Ae,ge){var be,Ee,Re,Ie;return se.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ge=ge||{},be={},ee(ge).to(be),be.headers=be.headers||{},be.headers["Content-Length"]=Ae.size,be.headers=he(be.headers,["x-oss-server-side-encryption"]),be.subres={partNumber:Me,uploadId:je},Ee=this._objectRequestParams("PUT",Te,be),Ee.mime=be.mime,Re=x&&x.browser,Re?Ee.content=Ae.content:Ee.stream=Ae.stream,Ee.successStatuses=[200],Ee.disabledMD5=ge.disabledMD5,Pe.next=15,this.request(Ee);case 15:if(Ie=Pe.sent,Ie.res.headers.etag){Pe.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 18:return Ae.stream&&(Ae.stream=null,Ee.stream=null),Pe.abrupt("return",{name:Te,etag:Ie.res.headers.etag,res:Ie.res});case 20:case"end":return Pe.stop()}},we,this)}));function de(we,Te,je,Me,Ae){return ve.apply(this,arguments)}return de}()}).call(this)}).call(this,y("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("url"),ee=y("utility"),fe=y("copy-to"),E=y("../../common/signUtils"),re=y("../utils/isIP"),ne=re.isIP,le=y("../utils/setSTSToken"),ue=le.setSTSToken,he=y("../utils/isFunction"),pe=he.isFunction,ve=ye;ve.asyncSignatureUrl=function(){var de=(0,se.default)(z.default.mark(function Te(je,Me){var Ae,ge,be,Ee,Re;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(!ne(this.options.endpoint.hostname)){ke.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Me=Me||{},je=this._objectName(je),Me.method=Me.method||"GET",Ae=ee.timestamp()+(Me.expires||1800),ge={bucket:this.options.bucket,object:je},be=this._getResource(ge),!(this.options.stsToken&&pe(this.options.refreshSTSToken))){ke.next=11;break}return ke.next=11,ue.call(this);case 11:return this.options.stsToken&&(Me["security-token"]=this.options.stsToken),Ee=E._signatureForURL(this.options.accessKeySecret,Me,be,Ae),Re=ae.parse(this._getReqUrl(ge)),Re.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ae,Signature:Ee.Signature},fe(Ee.subResource).to(Re.query),ke.abrupt("return",Re.format());case 17:case"end":return ke.stop()}},Te,this)}));function we(Te,je){return de.apply(this,arguments)}return we}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var se=x(y("@babel/runtime/helpers/typeof")),ae=x(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),fe=ee.checkBucketName,E=ye,re=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];E.copy=function(){var ne=(0,ae.default)(z.default.mark(function ue(he,pe,ve,de){var we,Te,je;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return(0,se.default)(ve)==="object"&&(de=ve),de=de||{},de.headers=de.headers||{},Object.keys(de.headers).forEach(function(ge){de.headers["x-oss-copy-source-".concat(ge.toLowerCase())]=de.headers[ge]}),(de.meta||Object.keys(de.headers).find(function(ge){return re.includes(ge.toLowerCase())}))&&(de.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(de.meta,de.headers),pe=this._getSourceName(pe,ve),de.versionId&&(pe="".concat(pe,"?versionId=").concat(de.versionId)),de.headers["x-oss-copy-source"]=pe,we=this._objectRequestParams("PUT",he,de),we.xmlResponse=!0,we.successStatuses=[200,304],Ae.next=14,this.request(we);case 14:return Te=Ae.sent,je=Te.data,je&&(je={etag:je.ETag,lastModified:je.LastModified}),Ae.abrupt("return",{data:je,res:Te.res});case 18:case"end":return Ae.stop()}},ue,this)}));function le(ue,he,pe,ve){return ne.apply(this,arguments)}return le}(),E._getSourceName=function(le,ue){return typeof ue=="string"?le=this._objectName(le):le[0]!=="/"?ue=this.options.bucket:(ue=le.replace(/\/(.+?)(\/.*)/,"$1"),le=le.replace(/(\/.+?\/)(.*)/,"$2")),fe(ue),le=encodeURIComponent(le),le="/".concat(ue,"/").concat(le),le}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye;ae.delete=function(){var ee=(0,se.default)(z.default.mark(function E(re){var ne,le,ue,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ne=he.length>1&&he[1]!==void 0?he[1]:{},ne.subres=Object.assign({},ne.subres),ne.versionId&&(ne.subres.versionId=ne.versionId),le=this._objectRequestParams("DELETE",re,ne),le.successStatuses=[204],ve.next=7,this.request(le);case 7:return ue=ve.sent,ve.abrupt("return",{res:ue.res});case 9:case"end":return ve.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("utility"),ee=y("../utils/obj2xml"),fe=ee.obj2xml,E=ye;E.deleteMulti=function(){var re=(0,se.default)(z.default.mark(function le(ue){var he,pe,ve,de,we,Te,je,Me,Ae,ge,be,Ee,Re,Ie=arguments;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(he=Ie.length>1&&Ie[1]!==void 0?Ie[1]:{},pe=[],!(!ue||!ue.length)){Pe.next=4;break}throw new Error("names is required");case 4:for(ve=0;ve<ue.length;ve++)de={},typeof ue[ve]=="string"?de.Key=ae.escape(this._objectName(ue[ve])):(we=ue[ve],Te=we.key,je=we.versionId,de.Key=ae.escape(this._objectName(Te)),de.VersionId=je),pe.push(de);return Me={Delete:{Quiet:!!he.quiet,Object:pe}},Ae=fe(Me,{headers:!0}),he.subres=Object.assign({delete:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),ge=this._objectRequestParams("POST","",he),ge.mime="xml",ge.content=Ae,ge.xmlResponse=!0,ge.successStatuses=[200],Pe.next=16,this.request(ge);case 16:return be=Pe.sent,Ee=be.data,Re=Ee&&Ee.Deleted||null,Re&&(Array.isArray(Re)||(Re=[Re])),Pe.abrupt("return",{res:be.res,deleted:Re||[]});case 21:case"end":return Pe.stop()}},le,this)}));function ne(le){return re.apply(this,arguments)}return ne}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye;ae.deleteObjectTagging=function(){var ee=(0,se.default)(z.default.mark(function E(re){var ne,le,ue,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ne=he.length>1&&he[1]!==void 0?he[1]:{},ne.subres=Object.assign({tagging:""},ne.subres),ne.versionId&&(ne.subres.versionId=ne.versionId),re=this._objectName(re),le=this._objectRequestParams("DELETE",re,ne),le.successStatuses=[204],ve.next=8,this.request(le);case 8:return ue=ve.sent,ve.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return ve.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.concat.js");var x=y("url"),z=y("../utils/isIP"),se=z.isIP,ae=ye;ae.generateObjectUrl=function(fe,E){if(se(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var re=x.parse(E),ne=this.options.bucket;re.hostname="".concat(ne,".").concat(re.hostname),re.host="".concat(ne,".").concat(re.host),E=re.format()}return E+this._escape(this._objectName(fe))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),se=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ae=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),fe=y("is-type-of"),E=ye;E.get=function(){var re=(0,ae.default)(se.default.mark(function le(ue,he){var pe,ve,de,we,Te,je,Me,Ae,ge=arguments;return se.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return pe=ge.length>2&&ge[2]!==void 0?ge[2]:{},ve=null,de=!1,fe.writableStream(he)?ve=he:fe.string(he)?(ve=ee.createWriteStream(he),de=!0):pe=he,pe=pe||{},we=x&&x.browser,Te=pe.responseCacheControl===null?"":"no-cache",je=we&&Te?{"response-cache-control":Te}:{},pe.subres=Object.assign(je,pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),pe.process&&(pe.subres["x-oss-process"]=pe.process),Ee.prev=11,Ae=this._objectRequestParams("GET",ue,pe),Ae.writeStream=ve,Ae.successStatuses=[200,206,304],Ee.next=17,this.request(Ae);case 17:Me=Ee.sent,de&&ve.destroy(),Ee.next=28;break;case 21:if(Ee.prev=21,Ee.t0=Ee.catch(11),!de){Ee.next=27;break}return ve.destroy(),Ee.next=27,this._deleteFileSafe(he);case 27:throw Ee.t0;case 28:return Ee.abrupt("return",{res:Me.res,content:Me.data});case 29:case"end":return Ee.stop()}},le,this,[[11,21]])}));function ne(le,ue){return re.apply(this,arguments)}return ne}()}).call(this)}).call(this,y("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye;ae.getACL=function(){var ee=(0,se.default)(z.default.mark(function E(re){var ne,le,ue,he=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ne=he.length>1&&he[1]!==void 0?he[1]:{},ne.subres=Object.assign({acl:""},ne.subres),ne.versionId&&(ne.subres.versionId=ne.versionId),re=this._objectName(re),le=this._objectRequestParams("GET",re,ne),le.successStatuses=[200],le.xmlResponse=!0,ve.next=9,this.request(le);case 9:return ue=ve.sent,ve.abrupt("return",{acl:ue.data.AccessControlList.Grant,owner:{id:ue.data.Owner.ID,displayName:ue.data.Owner.DisplayName},res:ue.res});case 11:case"end":return ve.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye,ee=y("../utils/isObject"),fe=ee.isObject,E=y("../utils/isArray"),re=E.isArray;ae.getBucketVersions=ne,ae.listObjectVersions=ne;function ne(){return le.apply(this,arguments)}function le(){return le=(0,se.default)(z.default.mark(function pe(){var ve,de,we,Te,je,Me,Ae,ge,be=arguments;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(ve=be.length>0&&be[0]!==void 0?be[0]:{},de=be.length>1&&be[1]!==void 0?be[1]:{},!(ve.versionIdMarker&&ve.keyMarker===void 0)){Re.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return de.subres=Object.assign({versions:""},de.subres),de.versionId&&(de.subres.versionId=de.versionId),we=this._objectRequestParams("GET","",de),we.xmlResponse=!0,we.successStatuses=[200],we.query=he(ve),Re.next=12,this.request(we);case 12:return Te=Re.sent,je=Te.data.Version||[],Me=Te.data.DeleteMarker||[],Ae=this,je&&(Array.isArray(je)||(je=[je]),je=je.map(function(Ie){return{name:Ie.Key,url:Ae._objectUrl(Ie.Key),lastModified:Ie.LastModified,isLatest:Ie.IsLatest==="true",versionId:Ie.VersionId,etag:Ie.ETag,type:Ie.Type,size:Number(Ie.Size),storageClass:Ie.StorageClass,owner:{id:Ie.Owner.ID,displayName:Ie.Owner.DisplayName}}})),Me&&(re(Me)||(Me=[Me]),Me=Me.map(function(Ie){return{name:Ie.Key,lastModified:Ie.LastModified,versionId:Ie.VersionId,owner:{id:Ie.Owner.ID,displayName:Ie.Owner.DisplayName}}})),ge=Te.data.CommonPrefixes||null,ge&&(re(ge)||(ge=[ge]),ge=ge.map(function(Ie){return Ie.Prefix})),Re.abrupt("return",{res:Te.res,objects:je,deleteMarker:Me,prefixes:ge,nextMarker:Te.data.NextKeyMarker||null,NextVersionIdMarker:Te.data.NextVersionIdMarker||null,nextKeyMarker:Te.data.NextKeyMarker||null,nextVersionIdMarker:Te.data.NextVersionIdMarker||null,isTruncated:Te.data.IsTruncated==="true"});case 21:case"end":return Re.stop()}},pe,this)})),le.apply(this,arguments)}function ue(pe){return pe.replace(/([A-Z])/g,"-$1").toLowerCase()}function he(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve={};return fe(pe)&&Object.keys(pe).forEach(function(de){ve[ue(de)]=pe[de]}),ve}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye;ae.getObjectMeta=function(){var ee=(0,se.default)(z.default.mark(function E(re,ne){var le,ue;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ne=ne||{},re=this._objectName(re),ne.subres=Object.assign({objectMeta:""},ne.subres),ne.versionId&&(ne.subres.versionId=ne.versionId),le=this._objectRequestParams("HEAD",re,ne),le.successStatuses=[200],pe.next=8,this.request(le);case 8:return ue=pe.sent,pe.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return pe.stop()}},E,this)}));function fe(E,re){return ee.apply(this,arguments)}return fe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye,ee=y("../utils/isObject"),fe=ee.isObject;ae.getObjectTagging=function(){var E=(0,se.default)(z.default.mark(function ne(le){var ue,he,pe,ve,de,we,Te=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ue=Te.length>1&&Te[1]!==void 0?Te[1]:{},ue.subres=Object.assign({tagging:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),le=this._objectName(le),he=this._objectRequestParams("GET",le,ue),he.successStatuses=[200],Me.next=8,this.request(he);case 8:return pe=Me.sent,Me.next=11,this.parseXML(pe.data);case 11:return ve=Me.sent,de=ve.TagSet.Tag,de=de&&fe(de)?[de]:de||[],we={},de.forEach(function(Ae){we[Ae.Key]=Ae.Value}),Me.abrupt("return",{status:pe.status,res:pe.res,tag:we});case 17:case"end":return Me.stop()}},ne,this)}));function re(ne){return E.apply(this,arguments)}return re}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(y,Ce,ye){"use strict";var x=y("../utils/isIP"),z=x.isIP,se=ye;se.getObjectUrl=function(ee,fe){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return fe?fe[fe.length-1]!=="/"&&(fe+="/"):fe=this.options.endpoint.format(),fe+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye;ae.getSymlink=function(){var ee=(0,se.default)(z.default.mark(function E(re){var ne,le,ue,he,pe=arguments;return z.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return ne=pe.length>1&&pe[1]!==void 0?pe[1]:{},ne.subres=Object.assign({symlink:""},ne.subres),ne.versionId&&(ne.subres.versionId=ne.versionId),re=this._objectName(re),le=this._objectRequestParams("GET",re,ne),le.successStatuses=[200],de.next=8,this.request(le);case 8:return ue=de.sent,he=ue.res.headers["x-oss-symlink-target"],de.abrupt("return",{targetName:decodeURIComponent(he),res:ue.res});case 11:case"end":return de.stop()}},E,this)}));function fe(E){return ee.apply(this,arguments)}return fe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/checkEnv"),ee=ae.checkEnv,fe=ye;fe.head=function(){var E=(0,se.default)(z.default.mark(function ne(le){var ue,he,pe,ve,de=arguments;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ue=de.length>1&&de[1]!==void 0?de[1]:{},ee("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ue.subres=Object.assign({},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),he=this._objectRequestParams("HEAD",le,ue),he.successStatuses=[200,304],Te.next=8,this.request(he);case 8:return pe=Te.sent,ve={meta:null,res:pe.res,status:pe.status},pe.status===200&&Object.keys(pe.headers).forEach(function(je){je.indexOf("x-oss-meta-")===0&&(ve.meta||(ve.meta={}),ve.meta[je.substring(11)]=pe.headers[je])}),Te.abrupt("return",ve);case 12:case"end":return Te.stop()}},ne,this)}));function re(ne){return E.apply(this,arguments)}return re}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye;ae.putACL=function(){var ee=(0,se.default)(z.default.mark(function E(re,ne,le){var ue,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return le=le||{},le.subres=Object.assign({acl:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),le.headers=le.headers||{},le.headers["x-oss-object-acl"]=ne,re=this._objectName(re),ue=this._objectRequestParams("PUT",re,le),ue.successStatuses=[200],ve.next=10,this.request(ue);case 10:return he=ve.sent,ve.abrupt("return",{res:he.res});case 12:case"end":return ve.stop()}},E,this)}));function fe(E,re,ne){return ee.apply(this,arguments)}return fe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.object.keys.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("../utils/obj2xml"),ee=ae.obj2xml,fe=y("../utils/checkObjectTag"),E=fe.checkObjectTag,re=ye;re.putObjectTagging=function(){var ne=(0,se.default)(z.default.mark(function ue(he,pe){var ve,de,we,Te,je=arguments;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ve=je.length>2&&je[2]!==void 0?je[2]:{},E(pe),ve.subres=Object.assign({tagging:""},ve.subres),ve.versionId&&(ve.subres.versionId=ve.versionId),he=this._objectName(he),de=this._objectRequestParams("PUT",he,ve),de.successStatuses=[200],pe=Object.keys(pe).map(function(ge){return{Key:ge,Value:pe[ge]}}),we={Tagging:{TagSet:{Tag:pe}}},de.mime="xml",de.content=ee(we),Ae.next=13,this.request(de);case 13:return Te=Ae.sent,Ae.abrupt("return",{res:Te.res,status:Te.status});case 15:case"end":return Ae.stop()}},ue,this)}));function le(ue,he){return ne.apply(this,arguments)}return le}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=ye;ae.putSymlink=function(){var ee=(0,se.default)(z.default.mark(function E(re,ne,le){var ue,he;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return le=le||{},le.headers=le.headers||{},ne=this._escape(this._objectName(ne)),this._convertMetaToHeaders(le.meta,le.headers),le.headers["x-oss-symlink-target"]=ne,le.subres=Object.assign({symlink:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),le.storageClass&&(le.headers["x-oss-storage-class"]=le.storageClass),re=this._objectName(re),ue=this._objectRequestParams("PUT",re,le),ue.successStatuses=[200],ve.next=13,this.request(ue);case 13:return he=ve.sent,ve.abrupt("return",{res:he.res});case 15:case"end":return ve.stop()}},E,this)}));function fe(E,re,ne){return ee.apply(this,arguments)}return fe}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(y,Ce,ye){"use strict";var x=y("url"),z=y("utility"),se=y("copy-to"),ae=y("../../common/signUtils"),ee=y("../utils/isIP"),fe=ee.isIP,E=ye;E.signatureUrl=function(ne,le){if(fe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");le=le||{},ne=this._objectName(ne),le.method=le.method||"GET";var ue=z.timestamp()+(le.expires||1800),he={bucket:this.options.bucket,object:ne},pe=this._getResource(he);this.options.stsToken&&(le["security-token"]=this.options.stsToken);var ve=ae._signatureForURL(this.options.accessKeySecret,le,pe,ue),de=x.parse(this._getReqUrl(he));return de.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ue,Signature:ve.Signature},se(ve.subResource).to(de.query),de.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.function.name.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator")),ae=y("./utils/isArray"),ee=ae.isArray,fe=ye;fe._parallelNode=function(){var E=(0,se.default)(z.default.mark(function ne(le,ue,he,pe){var ve,de,we,Te,je,Me,Ae,ge;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:ve=this,de=[],we=[],Te=le.length/ue,je=le.length%ue,Me=je===0?Te:(le.length-je)/ue+1,Ae=1,ge=0;case 8:if(!(ge<le.length)){Ee.next=26;break}if(!ve.isCancel()){Ee.next=11;break}return Ee.abrupt("break",26);case 11:if(pe?we.push(he(ve,le[ge],pe)):we.push(he(ve,le[ge])),!(we.length===ue||Ae===Me&&ge===le.length-1)){Ee.next=23;break}return Ee.prev=13,Ae+=1,Ee.next=17,Promise.all(we);case 17:Ee.next=22;break;case 19:Ee.prev=19,Ee.t0=Ee.catch(13),de.push(Ee.t0);case 22:we=[];case 23:ge++,Ee.next=8;break;case 26:return Ee.abrupt("return",de);case 27:case"end":return Ee.stop()}},ne,this,[[13,19]])}));function re(ne,le,ue,he){return E.apply(this,arguments)}return re}(),fe._parallel=function(re,ne,le){var ue=this;return new Promise(function(he){var pe=[];if(ne<=0||!re){he(pe);return}function ve(Ee){return function(){if(Ee===null)throw new Error("Callback was already called.");var Re=Ee;Ee=null;for(var Ie=arguments.length,ke=new Array(Ie),Pe=0;Pe<Ie;Pe++)ke[Pe]=arguments[Pe];Re.apply(this,ke)}}function de(Ee){var Re=-1,Ie=Ee.length;return function(){return++Re<Ie&&!ue.isCancel()?{value:Ee[Re],key:Re}:null}}var we=de(re),Te=!1,je=0,Me=!1;function Ae(Ee){je-=1,Ee?(Te=!0,pe.push(Ee),he(pe)):Te&&je<=0?(Te=!0,he(pe)):Me||(ue.isCancel()?he(pe):be())}function ge(Ee,Re){le(Ee).then(function(Ie){Re(null,Ie)}).catch(function(Ie){Re(Ie)})}function be(){for(Me=!0;je<ne&&!Te&&!ue.isCancel();){var Ee=we();if(Ee===null||pe.length>0){Te=!0,je<=0&&he(pe);return}je+=1,ge(Ee.value,ve(Ae))}Me=!1}be()})},fe.cancel=function(re){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(ne){if(ne.destroyed===!1){var le={name:"cancel",message:"cancel"};ne.destroy(le)}}),this.multipartUploadStreams=[],re&&this.abortMultipartUpload(re.name,re.uploadId,re.options)},fe.isCancel=function(){return this.options.cancelFlag},fe.resetCancelFlag=function(){this.options.cancelFlag=!1},fe._stop=function(){this.options.cancelFlag=!0},fe._makeCancelEvent=function(){var re={status:0,name:"cancel"};return re},fe._makeAbortEvent=function(){var re={status:0,name:"abort",message:"upload task has been abort"};return re}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(y,Ce,ye){(function(x){(function(){"use strict";y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var z=y("./../../shims/crypto/crypto.js"),se=y("is-type-of"),ae=y("./utils/lowercaseKeyHeader"),ee=ae.lowercaseKeyHeader;ye.buildCanonicalizedResource=function(E,re){var ne="".concat(E),le="?";if(se.string(re)&&re.trim()!=="")ne+=le+re;else if(se.array(re))re.sort(),ne+=le+re.join("&");else if(re){var ue=function(ve,de){return ve[0]>de[0]?1:ve[0]<de[0]?-1:0},he=function(ve){ne+=le+ve,(re[ve]||re[ve]===0)&&(ne+="=".concat(re[ve])),le="&"};Object.keys(re).sort(ue).forEach(he)}return ne},ye.buildCanonicalString=function(E,re,ne,le){ne=ne||{};var ue=ee(ne.headers),he="x-oss-",pe=[],ve={},de=[E.toUpperCase(),ue["content-md5"]||"",ue["content-type"],le||ue["x-oss-date"]];return Object.keys(ue).forEach(function(we){var Te=we.toLowerCase();Te.indexOf(he)===0&&(ve[Te]=String(ue[we]).trim())}),Object.keys(ve).sort().forEach(function(we){pe.push("".concat(we,":").concat(ve[we]))}),de=de.concat(pe),de.push(this.buildCanonicalizedResource(re,ne.parameters)),de.join(`
`)},ye.computeSignature=function(E,re){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",le=z.createHmac("sha1",E);return le.update(x.from(re,ne)).digest("base64")},ye.authorization=function(E,re,ne,le){return"OSS ".concat(E,":").concat(this.computeSignature(re,ne,le))},ye._signatureForURL=function(E){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=arguments.length>2?arguments[2]:void 0,le=arguments.length>3?arguments[3]:void 0,ue=arguments.length>4?arguments[4]:void 0,he={},pe=re.subResource,ve=pe===void 0?{}:pe;if(re.process){var de="x-oss-process";ve[de]=re.process}if(re.trafficLimit){var we="x-oss-traffic-limit";ve[we]=re.trafficLimit}if(re.response&&Object.keys(re.response).forEach(function(Ae){var ge="response-".concat(Ae.toLowerCase());ve[ge]=re.response[Ae]}),Object.keys(re).forEach(function(Ae){var ge=Ae.toLowerCase(),be=re[Ae];ge.indexOf("x-oss-")===0?he[ge]=be:(ge.indexOf("content-md5")===0||ge.indexOf("content-type")===0)&&(he[Ae]=be)}),Object.prototype.hasOwnProperty.call(re,"security-token")&&(ve["security-token"]=re["security-token"]),Object.prototype.hasOwnProperty.call(re,"callback")){var Te={callbackUrl:encodeURI(re.callback.url),callbackBody:re.callback.body};if(re.callback.host&&(Te.callbackHost=re.callback.host),re.callback.contentType&&(Te.callbackBodyType=re.callback.contentType),ve.callback=x.from(JSON.stringify(Te)).toString("base64"),re.callback.customValue){var je={};Object.keys(re.callback.customValue).forEach(function(Ae){je["x:".concat(Ae)]=re.callback.customValue[Ae]}),ve["callback-var"]=x.from(JSON.stringify(je)).toString("base64")}}var Me=this.buildCanonicalString(re.method,ne,{headers:he,parameters:ve},le.toString());return{Signature:this.computeSignature(E,Me,ue),subResource:ve}}}).call(this)}).call(this,y("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(y,Ce,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkBucketName=void 0,ye.checkBucketName=function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!se.test(x))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,Ce,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkConfigValid=void 0;var x={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(se){return typeof se=="string"?/^[a-zA-Z0-9._:/-]+$/.test(se):se.host?/^[a-zA-Z0-9._:/-]+$/.test(se.host):!1}ye.checkConfigValid=function(se,ae){if(x[ae]){var ee=!0;if(x[ae]instanceof Function?ee=x[ae](se):ee=x[ae].test(se),!ee)throw new Error("The ".concat(ae," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,Ce,ye){(function(x){(function(){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkEnv=void 0;function z(se){x.browser&&console.warn(se)}ye.checkEnv=z}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkObjectTag=void 0;var x=y("./checkValid"),z=x.checkValid,se=y("./isObject"),ae=se.isObject,ee=[{validator:function(ne){if(typeof ne!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],fe={key:[].concat(ee,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ee,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function E(re){if(!ae(re))throw new Error("tag must be Object");var ne=Object.entries(re);if(ne.length>10)throw new Error("maximum of 10 tags for a object");var le=["key","value"];ne.forEach(function(ue){ue.forEach(function(he,pe){z(he,fe[le[pe]])})})}ye.checkObjectTag=E},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(y,Ce,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkValid=void 0;function x(z,se){se.forEach(function(ae){if(ae.validator)ae.validator(z);else if(ae.pattern&&!ae.pattern.test(z))throw new Error(ae.msg)})}ye.checkValid=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(y,Ce,ye){(function(x){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.createRequest=void 0;var z=y("./../../../shims/crypto/crypto.js"),se=y("debug")("ali-oss"),ae=y("mime"),ee=y("dateformat"),fe=y("copy-to"),E=y("path"),re=y("./encoder"),ne=re.encoder,le=y("./isIP"),ue=le.isIP,he=y("./setRegion"),pe=he.setRegion,ve=y("../client/getReqUrl"),de=ve.getReqUrl,we=y("./isDingTalk"),Te=we.isDingTalk;function je(ge,be){return ge[be]||ge[be.toLowerCase()]}function Me(ge,be){delete ge[be],delete ge[be.toLowerCase()]}function Ae(ge){var be=new Date;this.options.amendTimeSkewed&&(be=+new Date+this.options.amendTimeSkewed);var Ee={"x-oss-date":ee(be,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Ee["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Ee["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Ee,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Ee["x-oss-security-token"]=this.options.stsToken),fe(ge.headers).to(Ee),je(Ee,"Content-Type")||(ge.mime&&ge.mime.indexOf("/")>0?Ee["Content-Type"]=ge.mime:Te()?Ee["Content-Type"]="application/octet-stream":Ee["Content-Type"]=ae.getType(ge.mime||E.extname(ge.object||""))),je(Ee,"Content-Type")||Me(Ee,"Content-Type"),ge.content&&(ge.disabledMD5||(!ge.headers||!ge.headers["Content-MD5"]?Ee["Content-MD5"]=z.createHash("md5").update(x.from(ge.content,"utf8")).digest("base64"):Ee["Content-MD5"]=ge.headers["Content-MD5"]),Ee["Content-Length"]||(Ee["Content-Length"]=ge.content.length));var Re=Object.prototype.hasOwnProperty;for(var Ie in Ee)Ee[Ie]&&Re.call(Ee,Ie)&&(Ee[Ie]=ne(String(Ee[Ie]),this.options.headerEncoding));var ke=this._getResource(ge);if(Ee.authorization=this.authorization(ge.method,ke,ge.subres,Ee,this.options.headerEncoding),ue(this.options.endpoint.hostname)){var Pe=this.options,Ze=Pe.region,He=Pe.internal,$e=Pe.secure,it=pe(Ze,He,$e);Ee.host="".concat(ge.bucket,".").concat(it.host)}var Ne=de.bind(this)(ge);se("request %s %s, with headers %j, !!stream: %s",ge.method,Ne,Ee,!!ge.stream);var Fe=ge.timeout||this.options.timeout,qe={method:ge.method,content:ge.content,stream:ge.stream,headers:Ee,timeout:Fe,writeStream:ge.writeStream,customResponse:ge.customResponse,ctx:ge.ctx||this.ctx};return this.agent&&(qe.agent=this.agent),this.httpsAgent&&(qe.httpsAgent=this.httpsAgent),qe.enableProxy=!!this.options.enableProxy,qe.proxy=this.options.proxy?this.options.proxy:null,{url:Ne,params:qe}}ye.createRequest=Ae}).call(this)}).call(this,y("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(y,Ce,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.dataFix=void 0;var x=y("./isObject"),z=["true","TRUE","1",1],se=["false","FALSE","0",0];function ae(E,re,ne){if(x.isObject(E)){var le=re.remove,ue=le===void 0?[]:le,he=re.rename,pe=he===void 0?{}:he,ve=re.camel,de=ve===void 0?[]:ve,we=re.bool,Te=we===void 0?[]:we,je=re.lowerFirst,Me=je===void 0?!1:je;return ue.forEach(function(Ae){return delete E[Ae]}),Object.entries(pe).forEach(function(Ae){E[Ae[0]]&&(E[Ae[1]]||(E[Ae[1]]=E[Ae[0]],delete E[Ae[0]]))}),de.forEach(function(Ae){if(E[Ae]){var ge=Ae.replace(/^(.)/,function(be){return be.toLowerCase()}).replace(/-(\w)/g,function(be,Ee){return Ee.toUpperCase()});E[ge]||(E[ge]=E[Ae])}}),Te.forEach(function(Ae){E[Ae]=ee(E[Ae])}),typeof ne=="function"&&ne(E),fe(E,Me),ae}}ye.dataFix=ae;function ee(E){return E?z.includes(E)?!0:se.includes(E)?!1:E:!1}function fe(E,re){re&&Object.keys(E).forEach(function(ne){var le=ne.replace(/^\w/,function(ue){return ue.toLowerCase()});typeof E[le]=="undefined"&&(E[le]=E[ne],delete E[ne])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var z=x(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.deepCopyWith=ye.deepCopy=void 0;var se=y("./isBuffer");ye.deepCopy=function(ae){if(ae===null||(0,z.default)(ae)!=="object")return ae;if(se.isBuffer(ae))return ae.slice();var ee=Array.isArray(ae)?[]:{};return Object.keys(ae).forEach(function(fe){ee[fe]=ye.deepCopy(ae[fe])}),ee},ye.deepCopyWith=function(ae,ee){function fe(E,re,ne){var le=ee(E,re,ne);if(le!==void 0)return le;if(E===null||(0,z.default)(E)!=="object")return E;if(se.isBuffer(E))return E.slice();var ue=Array.isArray(E)?[]:{};return Object.keys(E).forEach(function(he){ue[he]=fe(E[he],he,E)}),ue}return ee?fe(ae,"",null):ye.deepCopy(ae)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(y,Ce,ye){(function(x){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.encoder=void 0;function z(se){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ae==="utf-8"?se:x.from(se).toString("latin1")}ye.encoder=z}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.formatInventoryConfig=void 0;var x=y("../utils/dataFix"),z=y("../utils/isObject"),se=y("../utils/isArray"),ae=y("../utils/formatObjKey");function ee(E){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return re&&z.isObject(E)&&(E=[E]),se.isArray(E)?E=E.map(fe):E=fe(E),E}ye.formatInventoryConfig=ee;function fe(E){return x.dataFix(E,{bool:["IsEnabled"]},function(re){var ne,le;re.prefix=re.Filter.Prefix,delete re.Filter,re.OSSBucketDestination=re.Destination.OSSBucketDestination,re.OSSBucketDestination.rolename=re.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete re.OSSBucketDestination.RoleArn,re.OSSBucketDestination.bucket=re.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete re.OSSBucketDestination.Bucket,delete re.Destination,re.frequency=re.Schedule.Frequency,delete re.Schedule.Frequency,!((ne=re==null?void 0:re.OptionalFields)===null||ne===void 0)&&ne.Field&&!se.isArray((le=re.OptionalFields)===null||le===void 0?void 0:le.Field)&&(re.OptionalFields.Field=[re.OptionalFields.Field])}),E=ae.formatObjKey(E,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),E}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var z=x(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.formatObjKey=void 0;function se(ee,fe,E){if(ee===null||(0,z.default)(ee)!=="object")return ee;var re;if(Array.isArray(ee)){re=[];for(var ne=0;ne<ee.length;ne++)re.push(se(ee[ne],fe,E))}else re={},Object.keys(ee).forEach(function(le){re[ae(le,fe,E)]=se(ee[le],fe,E)});return re}ye.formatObjKey=se;function ae(ee,fe,E){return E&&E.exclude&&E.exclude.includes(ee)||(fe==="firstUpperCase"?ee=ee.replace(/^./,function(re){return re.toUpperCase()}):fe==="firstLowerCase"&&(ee=ee.replace(/^./,function(re){return re.toLowerCase()}))),ee}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(y,Ce,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.getStrBytesCount=void 0;function x(z){for(var se=0,ae=0;ae<z.length;ae++){var ee=z.charAt(ae);/^[\u00-\uff]$/.test(ee)?se+=1:se+=2}return se}ye.getStrBytesCount=x},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,Ce,ye){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isArray=void 0,ye.isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,Ce,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isBlob=void 0;function x(z){return typeof Blob!="undefined"&&z instanceof Blob}ye.isBlob=x},{}],65:[function(y,Ce,ye){(function(x){(function(){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isBuffer=void 0;function z(se){return x.isBuffer(se)}ye.isBuffer=z}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,Ce,ye){(function(x){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isDingTalk=void 0;function z(){return!!(x.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ye.isDingTalk=z}).call(this)}).call(this,y("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(y,Ce,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isFile=void 0,ye.isFile=function(x){return typeof File!="undefined"&&x instanceof File}},{}],68:[function(y,Ce,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isFunction=void 0,ye.isFunction=function(x){return typeof x=="function"}},{}],69:[function(y,Ce,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isIP=void 0,ye.isIP=function(x){var z=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,se=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(x)||se.test(x)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,Ce,ye){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isObject=void 0,ye.isObject=function(x){return Object.prototype.toString.call(x)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,Ce,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.lowercaseKeyHeader=void 0;var x=y("./isObject");function z(se){var ae={};return x.isObject(se)&&Object.keys(se).forEach(function(ee){ae[ee.toLowerCase()]=se[ee]}),ae}ye.lowercaseKeyHeader=z},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(y,Ce,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.obj2xml=void 0;var x=y("./formatObjKey");function z(ae){return Object.prototype.toString.call(ae).replace(/(.*? |])/g,"").toLowerCase()}function se(ae,ee){var fe="";return ee&&ee.headers&&(fe=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(ae=x.formatObjKey(ae,"firstUpperCase")),z(ae)==="object"?Object.keys(ae).forEach(function(E){z(ae[E])!=="undefined"&&z(ae[E])!=="null"&&(z(ae[E])==="string"||z(ae[E])==="number"?fe+="<".concat(E,">").concat(ae[E],"</").concat(E,">"):z(ae[E])==="object"?fe+="<".concat(E,">").concat(se(ae[E]),"</").concat(E,">"):z(ae[E])==="array"?fe+=ae[E].map(function(re){return"<".concat(E,">").concat(se(re),"</").concat(E,">")}).join(""):fe+="<".concat(E,">").concat(ae[E].toString(),"</").concat(E,">"))}):fe+=ae.toString(),fe}ye.obj2xml=se},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.symbol.iterator.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/es.object.assign.js");function x(ee,fe){var E=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!E){if(Array.isArray(ee)||(E=z(ee))||fe&&ee&&typeof ee.length=="number"){E&&(ee=E);var re=0,ne=function(){};return{s:ne,n:function(){return re>=ee.length?{done:!0}:{done:!1,value:ee[re++]}},e:function(ve){throw ve},f:ne}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le=!0,ue=!1,he;return{s:function(){E=E.call(ee)},n:function(){var ve=E.next();return le=ve.done,ve},e:function(ve){ue=!0,he=ve},f:function(){try{!le&&E.return!=null&&E.return()}finally{if(ue)throw he}}}}function z(ee,fe){if(ee){if(typeof ee=="string")return se(ee,fe);var E=Object.prototype.toString.call(ee).slice(8,-1);if(E==="Object"&&ee.constructor&&(E=ee.constructor.name),E==="Map"||E==="Set")return Array.from(ee);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return se(ee,fe)}}function se(ee,fe){(fe==null||fe>ee.length)&&(fe=ee.length);for(var E=0,re=new Array(fe);E<fe;E++)re[E]=ee[E];return re}Object.defineProperty(ye,"__esModule",{value:!0}),ye.omit=void 0;function ae(ee,fe){var E=Object.assign({},ee),re=x(fe),ne;try{for(re.s();!(ne=re.n()).done;){var le=ne.value;delete E[le]}}catch(ue){re.e(ue)}finally{re.f()}return E}ye.omit=ae},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(y,Ce,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.retry=void 0;function x(z,se){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,fe=ae.retryDelay,E=fe===void 0?500:fe,re=ae.errorHandler,ne=re===void 0?function(){return!0}:re,le=function ue(){for(var he=arguments.length,pe=new Array(he),ve=0;ve<he;ve++)pe[ve]=arguments[ve];return new Promise(function(de,we){z.apply(void 0,pe).then(function(Te){ee=0,de(Te)}).catch(function(Te){ee<se&&ne(Te)?(ee++,setTimeout(function(){de(ue.apply(void 0,pe))},E)):(ee=0,we(Te))})})};return le}ye.retry=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,Ce,ye){"use strict";var x=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.setRegion=void 0;var z=x(y("url")),se=y("./checkConfigValid");function ae(ee){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;se.checkConfigValid(ee,"region");var re=E?"https://":"http://",ne=fe?"-internal.aliyuncs.com":".aliyuncs.com",le="vpc100-oss-cn-";return ee.substr(0,le.length)===le&&(ne=".aliyuncs.com"),z.default.parse(re+ee+ne)}ye.setRegion=ae},{"./checkConfigValid":52,url:472}],76:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.object.assign.js");var se=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkCredentials=ye.setSTSToken=void 0;var ae=y("./formatObjKey");function ee(){return fe.apply(this,arguments)}function fe(){return fe=(0,se.default)(z.default.mark(function re(){var ne,le;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(this.options||(this.options={}),ne=new Date,!this.stsTokenFreshTime){he.next=14;break}if(!(+ne-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){he.next=12;break}return this.stsTokenFreshTime=ne,he.next=7,this.options.refreshSTSToken();case 7:le=he.sent,le=ae.formatObjKey(le,"firstLowerCase"),le.securityToken&&(le.stsToken=le.securityToken),E(le),Object.assign(this.options,le);case 12:he.next=15;break;case 14:this.stsTokenFreshTime=ne;case 15:return he.abrupt("return",null);case 16:case"end":return he.stop()}},re,this)})),fe.apply(this,arguments)}ye.setSTSToken=ee;function E(re){var ne=["accessKeySecret","accessKeyId","stsToken"],le=Object.keys(re);ne.forEach(function(ue){if(!le.find(function(he){return he===ue}))throw Error("refreshSTSToken must return contains ".concat(ue))})}ye.checkCredentials=E},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(y,Ce,ye){function x(se,ae,ee,fe,E,re,ne){try{var le=se[re](ne),ue=le.value}catch(he){ee(he);return}le.done?ae(ue):Promise.resolve(ue).then(fe,E)}function z(se){return function(){var ae=this,ee=arguments;return new Promise(function(fe,E){var re=se.apply(ae,ee);function ne(ue){x(re,fe,E,ne,le,"next",ue)}function le(ue){x(re,fe,E,ne,le,"throw",ue)}ne(void 0)})}}Ce.exports=z,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},{}],78:[function(y,Ce,ye){function x(z){return z&&z.__esModule?z:{default:z}}Ce.exports=x,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},{}],79:[function(y,Ce,ye){function x(z){"@babel/helpers - typeof";return Ce.exports=x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(se){return typeof se}:function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports,x(z)}Ce.exports=x,Ce.exports.__esModule=!0,Ce.exports.default=Ce.exports},{}],80:[function(y,Ce,ye){Ce.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,Ce,ye){Ce.exports=x,Ce.exports.HttpsAgent=x;function x(){}},{}],82:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=y("object-assign");function se(Ze,He){if(Ze===He)return 0;for(var $e=Ze.length,it=He.length,Ne=0,Fe=Math.min($e,it);Ne<Fe;++Ne)if(Ze[Ne]!==He[Ne]){$e=Ze[Ne],it=He[Ne];break}return $e<it?-1:it<$e?1:0}function ae(Ze){return x.Buffer&&typeof x.Buffer.isBuffer=="function"?x.Buffer.isBuffer(Ze):!!(Ze!=null&&Ze._isBuffer)}var ee=y("util/"),fe=Object.prototype.hasOwnProperty,E=Array.prototype.slice,re=function(){return function(){}.name==="foo"}();function ne(Ze){return Object.prototype.toString.call(Ze)}function le(Ze){return ae(Ze)||typeof x.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ze):Ze?!!(Ze instanceof DataView||Ze.buffer&&Ze.buffer instanceof ArrayBuffer):!1}var ue=Ce.exports=je,he=/\s*function\s+([^\(\s]*)\s*/;function pe(Ze){if(ee.isFunction(Ze)){if(re)return Ze.name;var He=Ze.toString(),$e=He.match(he);return $e&&$e[1]}}ue.AssertionError=function(He){this.name="AssertionError",this.actual=He.actual,this.expected=He.expected,this.operator=He.operator,He.message?(this.message=He.message,this.generatedMessage=!1):(this.message=we(this),this.generatedMessage=!0);var $e=He.stackStartFunction||Te;if(Error.captureStackTrace)Error.captureStackTrace(this,$e);else{var it=new Error;if(it.stack){var Ne=it.stack,Fe=pe($e),qe=Ne.indexOf(`
`+Fe);if(qe>=0){var rt=Ne.indexOf(`
`,qe+1);Ne=Ne.substring(rt+1)}this.stack=Ne}}},ee.inherits(ue.AssertionError,Error);function ve(Ze,He){return typeof Ze=="string"?Ze.length<He?Ze:Ze.slice(0,He):Ze}function de(Ze){if(re||!ee.isFunction(Ze))return ee.inspect(Ze);var He=pe(Ze),$e=He?": "+He:"";return"[Function"+$e+"]"}function we(Ze){return ve(de(Ze.actual),128)+" "+Ze.operator+" "+ve(de(Ze.expected),128)}function Te(Ze,He,$e,it,Ne){throw new ue.AssertionError({message:$e,actual:Ze,expected:He,operator:it,stackStartFunction:Ne})}ue.fail=Te;function je(Ze,He){Ze||Te(Ze,!0,He,"==",ue.ok)}ue.ok=je,ue.equal=function(He,$e,it){He!=$e&&Te(He,$e,it,"==",ue.equal)},ue.notEqual=function(He,$e,it){He==$e&&Te(He,$e,it,"!=",ue.notEqual)},ue.deepEqual=function(He,$e,it){Me(He,$e,!1)||Te(He,$e,it,"deepEqual",ue.deepEqual)},ue.deepStrictEqual=function(He,$e,it){Me(He,$e,!0)||Te(He,$e,it,"deepStrictEqual",ue.deepStrictEqual)};function Me(Ze,He,$e,it){if(Ze===He)return!0;if(ae(Ze)&&ae(He))return se(Ze,He)===0;if(ee.isDate(Ze)&&ee.isDate(He))return Ze.getTime()===He.getTime();if(ee.isRegExp(Ze)&&ee.isRegExp(He))return Ze.source===He.source&&Ze.global===He.global&&Ze.multiline===He.multiline&&Ze.lastIndex===He.lastIndex&&Ze.ignoreCase===He.ignoreCase;if((Ze===null||typeof Ze!="object")&&(He===null||typeof He!="object"))return $e?Ze===He:Ze==He;if(le(Ze)&&le(He)&&ne(Ze)===ne(He)&&!(Ze instanceof Float32Array||Ze instanceof Float64Array))return se(new Uint8Array(Ze.buffer),new Uint8Array(He.buffer))===0;if(ae(Ze)!==ae(He))return!1;it=it||{actual:[],expected:[]};var Ne=it.actual.indexOf(Ze);return Ne!==-1&&Ne===it.expected.indexOf(He)?!0:(it.actual.push(Ze),it.expected.push(He),ge(Ze,He,$e,it))}function Ae(Ze){return Object.prototype.toString.call(Ze)=="[object Arguments]"}function ge(Ze,He,$e,it){if(Ze==null||He===null||He===void 0)return!1;if(ee.isPrimitive(Ze)||ee.isPrimitive(He))return Ze===He;if($e&&Object.getPrototypeOf(Ze)!==Object.getPrototypeOf(He))return!1;var Ne=Ae(Ze),Fe=Ae(He);if(Ne&&!Fe||!Ne&&Fe)return!1;if(Ne)return Ze=E.call(Ze),He=E.call(He),Me(Ze,He,$e);var qe=Pe(Ze),rt=Pe(He),tt,Ve;if(qe.length!==rt.length)return!1;for(qe.sort(),rt.sort(),Ve=qe.length-1;Ve>=0;Ve--)if(qe[Ve]!==rt[Ve])return!1;for(Ve=qe.length-1;Ve>=0;Ve--)if(tt=qe[Ve],!Me(Ze[tt],He[tt],$e,it))return!1;return!0}ue.notDeepEqual=function(He,$e,it){Me(He,$e,!1)&&Te(He,$e,it,"notDeepEqual",ue.notDeepEqual)},ue.notDeepStrictEqual=be;function be(Ze,He,$e){Me(Ze,He,!0)&&Te(Ze,He,$e,"notDeepStrictEqual",be)}ue.strictEqual=function(He,$e,it){He!==$e&&Te(He,$e,it,"===",ue.strictEqual)},ue.notStrictEqual=function(He,$e,it){He===$e&&Te(He,$e,it,"!==",ue.notStrictEqual)};function Ee(Ze,He){if(!Ze||!He)return!1;if(Object.prototype.toString.call(He)=="[object RegExp]")return He.test(Ze);try{if(Ze instanceof He)return!0}catch($e){}return Error.isPrototypeOf(He)?!1:He.call({},Ze)===!0}function Re(Ze){var He;try{Ze()}catch($e){He=$e}return He}function Ie(Ze,He,$e,it){var Ne;if(typeof He!="function")throw new TypeError('"block" argument must be a function');typeof $e=="string"&&(it=$e,$e=null),Ne=Re(He),it=($e&&$e.name?" ("+$e.name+").":".")+(it?" "+it:"."),Ze&&!Ne&&Te(Ne,$e,"Missing expected exception"+it);var Fe=typeof it=="string",qe=!Ze&&ee.isError(Ne),rt=!Ze&&Ne&&!$e;if((qe&&Fe&&Ee(Ne,$e)||rt)&&Te(Ne,$e,"Got unwanted exception"+it),Ze&&Ne&&$e&&!Ee(Ne,$e)||!Ze&&Ne)throw Ne}ue.throws=function(Ze,He,$e){Ie(!0,Ze,He,$e)},ue.doesNotThrow=function(Ze,He,$e){Ie(!1,Ze,He,$e)},ue.ifError=function(Ze){if(Ze)throw Ze};function ke(Ze,He){Ze||Te(Ze,!0,He,"==",ke)}ue.strict=z(ke,ue,{equal:ue.strictEqual,deepEqual:ue.deepStrictEqual,notEqual:ue.notStrictEqual,notDeepEqual:ue.notDeepStrictEqual}),ue.strict.strict=ue.strict;var Pe=Object.keys||function(Ze){var He=[];for(var $e in Ze)fe.call(Ze,$e)&&He.push($e);return He}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,Ce,ye){typeof Object.create=="function"?Ce.exports=function(z,se){z.super_=se,z.prototype=Object.create(se.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:Ce.exports=function(z,se){z.super_=se;var ae=function(){};ae.prototype=se.prototype,z.prototype=new ae,z.prototype.constructor=z}},{}],84:[function(y,Ce,ye){Ce.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(y,Ce,ye){(function(x,z){(function(){var se=/%[sdj%]/g;ye.format=function(rt){if(!ge(rt)){for(var tt=[],Ve=0;Ve<arguments.length;Ve++)tt.push(fe(arguments[Ve]));return tt.join(" ")}for(var Ve=1,Ke=arguments,ze=Ke.length,at=String(rt).replace(se,function(ut){if(ut==="%%")return"%";if(Ve>=ze)return ut;switch(ut){case"%s":return String(Ke[Ve++]);case"%d":return Number(Ke[Ve++]);case"%j":try{return JSON.stringify(Ke[Ve++])}catch(st){return"[Circular]"}default:return ut}}),Qe=Ke[Ve];Ve<ze;Qe=Ke[++Ve])je(Qe)||!Ie(Qe)?at+=" "+Qe:at+=" "+fe(Qe);return at},ye.deprecate=function(rt,tt){if(Ee(z.process))return function(){return ye.deprecate(rt,tt).apply(this,arguments)};if(x.noDeprecation===!0)return rt;var Ve=!1;function Ke(){if(!Ve){if(x.throwDeprecation)throw new Error(tt);x.traceDeprecation?console.trace(tt):console.error(tt),Ve=!0}return rt.apply(this,arguments)}return Ke};var ae={},ee;ye.debuglog=function(rt){if(Ee(ee)&&(ee=x.env.NODE_DEBUG||""),rt=rt.toUpperCase(),!ae[rt])if(new RegExp("\\b"+rt+"\\b","i").test(ee)){var tt=x.pid;ae[rt]=function(){var Ve=ye.format.apply(ye,arguments);console.error("%s %d: %s",rt,tt,Ve)}}else ae[rt]=function(){};return ae[rt]};function fe(rt,tt){var Ve={seen:[],stylize:re};return arguments.length>=3&&(Ve.depth=arguments[2]),arguments.length>=4&&(Ve.colors=arguments[3]),Te(tt)?Ve.showHidden=tt:tt&&ye._extend(Ve,tt),Ee(Ve.showHidden)&&(Ve.showHidden=!1),Ee(Ve.depth)&&(Ve.depth=2),Ee(Ve.colors)&&(Ve.colors=!1),Ee(Ve.customInspect)&&(Ve.customInspect=!0),Ve.colors&&(Ve.stylize=E),le(Ve,rt,Ve.depth)}ye.inspect=fe,fe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},fe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function E(rt,tt){var Ve=fe.styles[tt];return Ve?"\x1B["+fe.colors[Ve][0]+"m"+rt+"\x1B["+fe.colors[Ve][1]+"m":rt}function re(rt,tt){return rt}function ne(rt){var tt={};return rt.forEach(function(Ve,Ke){tt[Ve]=!0}),tt}function le(rt,tt,Ve){if(rt.customInspect&&tt&&Ze(tt.inspect)&&tt.inspect!==ye.inspect&&!(tt.constructor&&tt.constructor.prototype===tt)){var Ke=tt.inspect(Ve,rt);return ge(Ke)||(Ke=le(rt,Ke,Ve)),Ke}var ze=ue(rt,tt);if(ze)return ze;var at=Object.keys(tt),Qe=ne(at);if(rt.showHidden&&(at=Object.getOwnPropertyNames(tt)),Pe(tt)&&(at.indexOf("message")>=0||at.indexOf("description")>=0))return he(tt);if(at.length===0){if(Ze(tt)){var ut=tt.name?": "+tt.name:"";return rt.stylize("[Function"+ut+"]","special")}if(Re(tt))return rt.stylize(RegExp.prototype.toString.call(tt),"regexp");if(ke(tt))return rt.stylize(Date.prototype.toString.call(tt),"date");if(Pe(tt))return he(tt)}var st="",Xe=!1,Le=["{","}"];if(we(tt)&&(Xe=!0,Le=["[","]"]),Ze(tt)){var De=tt.name?": "+tt.name:"";st=" [Function"+De+"]"}if(Re(tt)&&(st=" "+RegExp.prototype.toString.call(tt)),ke(tt)&&(st=" "+Date.prototype.toUTCString.call(tt)),Pe(tt)&&(st=" "+he(tt)),at.length===0&&(!Xe||tt.length==0))return Le[0]+st+Le[1];if(Ve<0)return Re(tt)?rt.stylize(RegExp.prototype.toString.call(tt),"regexp"):rt.stylize("[Object]","special");rt.seen.push(tt);var te;return Xe?te=pe(rt,tt,Ve,Qe,at):te=at.map(function(ce){return ve(rt,tt,Ve,Qe,ce,Xe)}),rt.seen.pop(),de(te,st,Le)}function ue(rt,tt){if(Ee(tt))return rt.stylize("undefined","undefined");if(ge(tt)){var Ve="'"+JSON.stringify(tt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize(Ve,"string")}if(Ae(tt))return rt.stylize(""+tt,"number");if(Te(tt))return rt.stylize(""+tt,"boolean");if(je(tt))return rt.stylize("null","null")}function he(rt){return"["+Error.prototype.toString.call(rt)+"]"}function pe(rt,tt,Ve,Ke,ze){for(var at=[],Qe=0,ut=tt.length;Qe<ut;++Qe)qe(tt,String(Qe))?at.push(ve(rt,tt,Ve,Ke,String(Qe),!0)):at.push("");return ze.forEach(function(st){st.match(/^\d+$/)||at.push(ve(rt,tt,Ve,Ke,st,!0))}),at}function ve(rt,tt,Ve,Ke,ze,at){var Qe,ut,st;if(st=Object.getOwnPropertyDescriptor(tt,ze)||{value:tt[ze]},st.get?st.set?ut=rt.stylize("[Getter/Setter]","special"):ut=rt.stylize("[Getter]","special"):st.set&&(ut=rt.stylize("[Setter]","special")),qe(Ke,ze)||(Qe="["+ze+"]"),ut||(rt.seen.indexOf(st.value)<0?(je(Ve)?ut=le(rt,st.value,null):ut=le(rt,st.value,Ve-1),ut.indexOf(`
`)>-1&&(at?ut=ut.split(`
`).map(function(Xe){return" "+Xe}).join(`
`).substr(2):ut=`
`+ut.split(`
`).map(function(Xe){return" "+Xe}).join(`
`))):ut=rt.stylize("[Circular]","special")),Ee(Qe)){if(at&&ze.match(/^\d+$/))return ut;Qe=JSON.stringify(""+ze),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=rt.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=rt.stylize(Qe,"string"))}return Qe+": "+ut}function de(rt,tt,Ve){var Ke=0,ze=rt.reduce(function(at,Qe){return Ke++,Qe.indexOf(`
`)>=0&&Ke++,at+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ze>60?Ve[0]+(tt===""?"":tt+`
`)+" "+rt.join(`,
`)+" "+Ve[1]:Ve[0]+tt+" "+rt.join(", ")+" "+Ve[1]}function we(rt){return Array.isArray(rt)}ye.isArray=we;function Te(rt){return typeof rt=="boolean"}ye.isBoolean=Te;function je(rt){return rt===null}ye.isNull=je;function Me(rt){return rt==null}ye.isNullOrUndefined=Me;function Ae(rt){return typeof rt=="number"}ye.isNumber=Ae;function ge(rt){return typeof rt=="string"}ye.isString=ge;function be(rt){return typeof rt=="symbol"}ye.isSymbol=be;function Ee(rt){return rt===void 0}ye.isUndefined=Ee;function Re(rt){return Ie(rt)&&$e(rt)==="[object RegExp]"}ye.isRegExp=Re;function Ie(rt){return typeof rt=="object"&&rt!==null}ye.isObject=Ie;function ke(rt){return Ie(rt)&&$e(rt)==="[object Date]"}ye.isDate=ke;function Pe(rt){return Ie(rt)&&($e(rt)==="[object Error]"||rt instanceof Error)}ye.isError=Pe;function Ze(rt){return typeof rt=="function"}ye.isFunction=Ze;function He(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt=="undefined"}ye.isPrimitive=He,ye.isBuffer=y("./support/isBuffer");function $e(rt){return Object.prototype.toString.call(rt)}function it(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var Ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Fe(){var rt=new Date,tt=[it(rt.getHours()),it(rt.getMinutes()),it(rt.getSeconds())].join(":");return[rt.getDate(),Ne[rt.getMonth()],tt].join(" ")}ye.log=function(){console.log("%s - %s",Fe(),ye.format.apply(ye,arguments))},ye.inherits=y("inherits"),ye._extend=function(rt,tt){if(!tt||!Ie(tt))return rt;for(var Ve=Object.keys(tt),Ke=Ve.length;Ke--;)rt[Ve[Ke]]=tt[Ve[Ke]];return rt};function qe(rt,tt){return Object.prototype.hasOwnProperty.call(rt,tt)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],se=typeof globalThis=="undefined"?x:globalThis;Ce.exports=function(){for(var ee=[],fe=0;fe<z.length;fe++)typeof se[z[fe]]=="function"&&(ee[ee.length]=z[fe]);return ee}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,Ce,ye){"use strict";ye.byteLength=re,ye.toByteArray=le,ye.fromByteArray=pe;for(var x=[],z=[],se=typeof Uint8Array!="undefined"?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,fe=ae.length;ee<fe;++ee)x[ee]=ae[ee],z[ae.charCodeAt(ee)]=ee;z[45]=62,z[95]=63;function E(ve){var de=ve.length;if(de%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var we=ve.indexOf("=");we===-1&&(we=de);var Te=we===de?0:4-we%4;return[we,Te]}function re(ve){var de=E(ve),we=de[0],Te=de[1];return(we+Te)*3/4-Te}function ne(ve,de,we){return(de+we)*3/4-we}function le(ve){var de,we=E(ve),Te=we[0],je=we[1],Me=new se(ne(ve,Te,je)),Ae=0,ge=je>0?Te-4:Te,be;for(be=0;be<ge;be+=4)de=z[ve.charCodeAt(be)]<<18|z[ve.charCodeAt(be+1)]<<12|z[ve.charCodeAt(be+2)]<<6|z[ve.charCodeAt(be+3)],Me[Ae++]=de>>16&255,Me[Ae++]=de>>8&255,Me[Ae++]=de&255;return je===2&&(de=z[ve.charCodeAt(be)]<<2|z[ve.charCodeAt(be+1)]>>4,Me[Ae++]=de&255),je===1&&(de=z[ve.charCodeAt(be)]<<10|z[ve.charCodeAt(be+1)]<<4|z[ve.charCodeAt(be+2)]>>2,Me[Ae++]=de>>8&255,Me[Ae++]=de&255),Me}function ue(ve){return x[ve>>18&63]+x[ve>>12&63]+x[ve>>6&63]+x[ve&63]}function he(ve,de,we){for(var Te,je=[],Me=de;Me<we;Me+=3)Te=(ve[Me]<<16&16711680)+(ve[Me+1]<<8&65280)+(ve[Me+2]&255),je.push(ue(Te));return je.join("")}function pe(ve){for(var de,we=ve.length,Te=we%3,je=[],Me=16383,Ae=0,ge=we-Te;Ae<ge;Ae+=Me)je.push(he(ve,Ae,Ae+Me>ge?ge:Ae+Me));return Te===1?(de=ve[we-1],je.push(x[de>>2]+x[de<<4&63]+"==")):Te===2&&(de=(ve[we-2]<<8)+ve[we-1],je.push(x[de>>10]+x[de>>4&63]+x[de<<2&63]+"=")),je.join("")}},{}],88:[function(y,Ce,ye){(function(x,z,se){typeof Ce!="undefined"&&Ce.exports?Ce.exports=se():typeof Ge=="function"&&Ge.amd?Ge(z,se):x[z]=se()})(this,"bowser",function(){var x=!0;function z(ne){function le(tt){var Ve=ne.match(tt);return Ve&&Ve.length>1&&Ve[1]||""}function ue(tt){var Ve=ne.match(tt);return Ve&&Ve.length>1&&Ve[2]||""}var he=le(/(ipod|iphone|ipad)/i).toLowerCase(),pe=/like android/i.test(ne),ve=!pe&&/android/i.test(ne),de=/nexus\s*[0-6]\s*/i.test(ne),we=!de&&/nexus\s*[0-9]+/i.test(ne),Te=/CrOS/.test(ne),je=/silk/i.test(ne),Me=/sailfish/i.test(ne),Ae=/tizen/i.test(ne),ge=/(web|hpw)(o|0)s/i.test(ne),be=/windows phone/i.test(ne),Ee=/SamsungBrowser/i.test(ne),Re=!be&&/windows/i.test(ne),Ie=!he&&!je&&/macintosh/i.test(ne),ke=!ve&&!Me&&!Ae&&!ge&&/linux/i.test(ne),Pe=ue(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ze=le(/version\/(\d+(\.\d+)?)/i),He=/tablet/i.test(ne)&&!/tablet pc/i.test(ne),$e=!He&&/[^-]mobi/i.test(ne),it=/xbox/i.test(ne),Ne;/opera/i.test(ne)?Ne={name:"Opera",opera:x,version:Ze||le(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(ne)?Ne={name:"Opera",opera:x,version:le(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ze}:/SamsungBrowser/i.test(ne)?Ne={name:"Samsung Internet for Android",samsungBrowser:x,version:Ze||le(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(ne)?Ne={name:"NAVER Whale browser",whale:x,version:le(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(ne)?Ne={name:"MZ Browser",mzbrowser:x,version:le(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(ne)?Ne={name:"Opera Coast",coast:x,version:Ze||le(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(ne)?Ne={name:"Focus",focus:x,version:le(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(ne)?Ne={name:"Yandex Browser",yandexbrowser:x,version:Ze||le(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(ne)?Ne={name:"UC Browser",ucbrowser:x,version:le(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(ne)?Ne={name:"Maxthon",maxthon:x,version:le(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(ne)?Ne={name:"Epiphany",epiphany:x,version:le(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(ne)?Ne={name:"Puffin",puffin:x,version:le(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(ne)?Ne={name:"Sleipnir",sleipnir:x,version:le(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(ne)?Ne={name:"K-Meleon",kMeleon:x,version:le(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:be?(Ne={name:"Windows Phone",osname:"Windows Phone",windowsphone:x},Pe?(Ne.msedge=x,Ne.version=Pe):(Ne.msie=x,Ne.version=le(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(ne)?Ne={name:"Internet Explorer",msie:x,version:le(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Te?Ne={name:"Chrome",osname:"Chrome OS",chromeos:x,chromeBook:x,chrome:x,version:le(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(ne)?Ne={name:"Microsoft Edge",msedge:x,version:Pe}:/vivaldi/i.test(ne)?Ne={name:"Vivaldi",vivaldi:x,version:le(/vivaldi\/(\d+(\.\d+)?)/i)||Ze}:Me?Ne={name:"Sailfish",osname:"Sailfish OS",sailfish:x,version:le(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(ne)?Ne={name:"SeaMonkey",seamonkey:x,version:le(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(ne)?(Ne={name:"Firefox",firefox:x,version:le(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(ne)&&(Ne.firefoxos=x,Ne.osname="Firefox OS")):je?Ne={name:"Amazon Silk",silk:x,version:le(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(ne)?Ne={name:"PhantomJS",phantom:x,version:le(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(ne)?Ne={name:"SlimerJS",slimer:x,version:le(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(ne)||/rim\stablet/i.test(ne)?Ne={name:"BlackBerry",osname:"BlackBerry OS",blackberry:x,version:Ze||le(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:ge?(Ne={name:"WebOS",osname:"WebOS",webos:x,version:Ze||le(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(ne)&&(Ne.touchpad=x)):/bada/i.test(ne)?Ne={name:"Bada",osname:"Bada",bada:x,version:le(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?Ne={name:"Tizen",osname:"Tizen",tizen:x,version:le(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ze}:/qupzilla/i.test(ne)?Ne={name:"QupZilla",qupzilla:x,version:le(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ze}:/chromium/i.test(ne)?Ne={name:"Chromium",chromium:x,version:le(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ze}:/chrome|crios|crmo/i.test(ne)?Ne={name:"Chrome",chrome:x,version:le(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ve?Ne={name:"Android",version:Ze}:/safari|applewebkit/i.test(ne)?(Ne={name:"Safari",safari:x},Ze&&(Ne.version=Ze)):he?(Ne={name:he=="iphone"?"iPhone":he=="ipad"?"iPad":"iPod"},Ze&&(Ne.version=Ze)):/googlebot/i.test(ne)?Ne={name:"Googlebot",googlebot:x,version:le(/googlebot\/(\d+(\.\d+))/i)||Ze}:Ne={name:le(/^(.*)\/(.*) /),version:ue(/^(.*)\/(.*) /)},!Ne.msedge&&/(apple)?webkit/i.test(ne)?(/(apple)?webkit\/537\.36/i.test(ne)?(Ne.name=Ne.name||"Blink",Ne.blink=x):(Ne.name=Ne.name||"Webkit",Ne.webkit=x),!Ne.version&&Ze&&(Ne.version=Ze)):!Ne.opera&&/gecko\//i.test(ne)&&(Ne.name=Ne.name||"Gecko",Ne.gecko=x,Ne.version=Ne.version||le(/gecko\/(\d+(\.\d+)?)/i)),!Ne.windowsphone&&(ve||Ne.silk)?(Ne.android=x,Ne.osname="Android"):!Ne.windowsphone&&he?(Ne[he]=x,Ne.ios=x,Ne.osname="iOS"):Ie?(Ne.mac=x,Ne.osname="macOS"):it?(Ne.xbox=x,Ne.osname="Xbox"):Re?(Ne.windows=x,Ne.osname="Windows"):ke&&(Ne.linux=x,Ne.osname="Linux");function Fe(tt){switch(tt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var qe="";Ne.windows?qe=Fe(le(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ne.windowsphone?qe=le(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ne.mac?(qe=le(/Mac OS X (\d+([_\.\s]\d+)*)/i),qe=qe.replace(/[_\s]/g,".")):he?(qe=le(/os (\d+([_\s]\d+)*) like mac os x/i),qe=qe.replace(/[_\s]/g,".")):ve?qe=le(/android[ \/-](\d+(\.\d+)*)/i):Ne.webos?qe=le(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ne.blackberry?qe=le(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ne.bada?qe=le(/bada\/(\d+(\.\d+)*)/i):Ne.tizen&&(qe=le(/tizen[\/\s](\d+(\.\d+)*)/i)),qe&&(Ne.osversion=qe);var rt=!Ne.windows&&qe.split(".")[0];return He||we||he=="ipad"||ve&&(rt==3||rt>=4&&!$e)||Ne.silk?Ne.tablet=x:($e||he=="iphone"||he=="ipod"||ve||de||Ne.blackberry||Ne.webos||Ne.bada)&&(Ne.mobile=x),Ne.msedge||Ne.msie&&Ne.version>=10||Ne.yandexbrowser&&Ne.version>=15||Ne.vivaldi&&Ne.version>=1||Ne.chrome&&Ne.version>=20||Ne.samsungBrowser&&Ne.version>=4||Ne.whale&&fe([Ne.version,"1.0"])===1||Ne.mzbrowser&&fe([Ne.version,"6.0"])===1||Ne.focus&&fe([Ne.version,"1.0"])===1||Ne.firefox&&Ne.version>=20||Ne.safari&&Ne.version>=6||Ne.opera&&Ne.version>=10||Ne.ios&&Ne.osversion&&Ne.osversion.split(".")[0]>=6||Ne.blackberry&&Ne.version>=10.1||Ne.chromium&&Ne.version>=20?Ne.a=x:Ne.msie&&Ne.version<10||Ne.chrome&&Ne.version<20||Ne.firefox&&Ne.version<20||Ne.safari&&Ne.version<6||Ne.opera&&Ne.version<10||Ne.ios&&Ne.osversion&&Ne.osversion.split(".")[0]<6||Ne.chromium&&Ne.version<20?Ne.c=x:Ne.x=x,Ne}var se=z(typeof navigator!="undefined"&&navigator.userAgent||"");se.test=function(ne){for(var le=0;le<ne.length;++le){var ue=ne[le];if(typeof ue=="string"&&ue in se)return!0}return!1};function ae(ne){return ne.split(".").length}function ee(ne,le){var ue=[],he;if(Array.prototype.map)return Array.prototype.map.call(ne,le);for(he=0;he<ne.length;he++)ue.push(le(ne[he]));return ue}function fe(ne){for(var le=Math.max(ae(ne[0]),ae(ne[1])),ue=ee(ne,function(he){var pe=le-ae(he);return he=he+new Array(pe+1).join(".0"),ee(he.split("."),function(ve){return new Array(20-ve.length).join("0")+ve}).reverse()});--le>=0;){if(ue[0][le]>ue[1][le])return 1;if(ue[0][le]===ue[1][le]){if(le===0)return 0}else return-1}}function E(ne,le,ue){var he=se;typeof le=="string"&&(ue=le,le=void 0),le===void 0&&(le=!1),ue&&(he=z(ue));var pe=""+he.version;for(var ve in ne)if(ne.hasOwnProperty(ve)&&he[ve]){if(typeof ne[ve]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ve+": "+String(ne));return fe([pe,ne[ve]])<0}return le}function re(ne,le,ue){return!E(ne,le,ue)}return se.isUnsupportedBrowser=E,se.compareVersions=fe,se.check=re,se._detect=z,se.detect=z,se})},{}],89:[function(y,Ce,ye){},{}],90:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=y("base64-js"),se=y("ieee754");ye.Buffer=E,ye.SlowBuffer=Te,ye.INSPECT_MAX_BYTES=50;var ae=2147483647;ye.kMaxLength=ae,E.TYPED_ARRAY_SUPPORT=ee(),!E.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ee(){try{var Se=new Uint8Array(1);return Se.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Se.foo()===42}catch(Oe){return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}});function fe(Se){if(Se>ae)throw new RangeError('The value "'+Se+'" is invalid for option "size"');var Oe=new Uint8Array(Se);return Oe.__proto__=E.prototype,Oe}function E(Se,Oe,We){if(typeof Se=="number"){if(typeof Oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(Se)}return re(Se,Oe,We)}typeof Symbol!="undefined"&&Symbol.species!=null&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),E.poolSize=8192;function re(Se,Oe,We){if(typeof Se=="string")return he(Se,Oe);if(ArrayBuffer.isView(Se))return pe(Se);if(Se==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Se);if(Ue(Se,ArrayBuffer)||Se&&Ue(Se.buffer,ArrayBuffer))return ve(Se,Oe,We);if(typeof Se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var et=Se.valueOf&&Se.valueOf();if(et!=null&&et!==Se)return E.from(et,Oe,We);var nt=de(Se);if(nt)return nt;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Se[Symbol.toPrimitive]=="function")return E.from(Se[Symbol.toPrimitive]("string"),Oe,We);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Se)}E.from=function(Se,Oe,We){return re(Se,Oe,We)},E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array;function ne(Se){if(typeof Se!="number")throw new TypeError('"size" argument must be of type number');if(Se<0)throw new RangeError('The value "'+Se+'" is invalid for option "size"')}function le(Se,Oe,We){return ne(Se),Se<=0?fe(Se):Oe!==void 0?typeof We=="string"?fe(Se).fill(Oe,We):fe(Se).fill(Oe):fe(Se)}E.alloc=function(Se,Oe,We){return le(Se,Oe,We)};function ue(Se){return ne(Se),fe(Se<0?0:we(Se)|0)}E.allocUnsafe=function(Se){return ue(Se)},E.allocUnsafeSlow=function(Se){return ue(Se)};function he(Se,Oe){if((typeof Oe!="string"||Oe==="")&&(Oe="utf8"),!E.isEncoding(Oe))throw new TypeError("Unknown encoding: "+Oe);var We=je(Se,Oe)|0,et=fe(We),nt=et.write(Se,Oe);return nt!==We&&(et=et.slice(0,nt)),et}function pe(Se){for(var Oe=Se.length<0?0:we(Se.length)|0,We=fe(Oe),et=0;et<Oe;et+=1)We[et]=Se[et]&255;return We}function ve(Se,Oe,We){if(Oe<0||Se.byteLength<Oe)throw new RangeError('"offset" is outside of buffer bounds');if(Se.byteLength<Oe+(We||0))throw new RangeError('"length" is outside of buffer bounds');var et;return Oe===void 0&&We===void 0?et=new Uint8Array(Se):We===void 0?et=new Uint8Array(Se,Oe):et=new Uint8Array(Se,Oe,We),et.__proto__=E.prototype,et}function de(Se){if(E.isBuffer(Se)){var Oe=we(Se.length)|0,We=fe(Oe);return We.length===0||Se.copy(We,0,0,Oe),We}if(Se.length!==void 0)return typeof Se.length!="number"||xe(Se.length)?fe(0):pe(Se);if(Se.type==="Buffer"&&Array.isArray(Se.data))return pe(Se.data)}function we(Se){if(Se>=ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ae.toString(16)+" bytes");return Se|0}function Te(Se){return+Se!=Se&&(Se=0),E.alloc(+Se)}E.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==E.prototype},E.compare=function(Oe,We){if(Ue(Oe,Uint8Array)&&(Oe=E.from(Oe,Oe.offset,Oe.byteLength)),Ue(We,Uint8Array)&&(We=E.from(We,We.offset,We.byteLength)),!E.isBuffer(Oe)||!E.isBuffer(We))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===We)return 0;for(var et=Oe.length,nt=We.length,dt=0,ct=Math.min(et,nt);dt<ct;++dt)if(Oe[dt]!==We[dt]){et=Oe[dt],nt=We[dt];break}return et<nt?-1:nt<et?1:0},E.isEncoding=function(Oe){switch(String(Oe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(Oe,We){if(!Array.isArray(Oe))throw new TypeError('"list" argument must be an Array of Buffers');if(Oe.length===0)return E.alloc(0);var et;if(We===void 0)for(We=0,et=0;et<Oe.length;++et)We+=Oe[et].length;var nt=E.allocUnsafe(We),dt=0;for(et=0;et<Oe.length;++et){var ct=Oe[et];if(Ue(ct,Uint8Array)&&(ct=E.from(ct)),!E.isBuffer(ct))throw new TypeError('"list" argument must be an Array of Buffers');ct.copy(nt,dt),dt+=ct.length}return nt};function je(Se,Oe){if(E.isBuffer(Se))return Se.length;if(ArrayBuffer.isView(Se)||Ue(Se,ArrayBuffer))return Se.byteLength;if(typeof Se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Se);var We=Se.length,et=arguments.length>2&&arguments[2]===!0;if(!et&&We===0)return 0;for(var nt=!1;;)switch(Oe){case"ascii":case"latin1":case"binary":return We;case"utf8":case"utf-8":return Le(Se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We*2;case"hex":return We>>>1;case"base64":return ce(Se).length;default:if(nt)return et?-1:Le(Se).length;Oe=(""+Oe).toLowerCase(),nt=!0}}E.byteLength=je;function Me(Se,Oe,We){var et=!1;if((Oe===void 0||Oe<0)&&(Oe=0),Oe>this.length||((We===void 0||We>this.length)&&(We=this.length),We<=0)||(We>>>=0,Oe>>>=0,We<=Oe))return"";for(Se||(Se="utf8");;)switch(Se){case"hex":return rt(this,Oe,We);case"utf8":case"utf-8":return $e(this,Oe,We);case"ascii":return Fe(this,Oe,We);case"latin1":case"binary":return qe(this,Oe,We);case"base64":return He(this,Oe,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,Oe,We);default:if(et)throw new TypeError("Unknown encoding: "+Se);Se=(Se+"").toLowerCase(),et=!0}}E.prototype._isBuffer=!0;function Ae(Se,Oe,We){var et=Se[Oe];Se[Oe]=Se[We],Se[We]=et}E.prototype.swap16=function(){var Oe=this.length;if(Oe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var We=0;We<Oe;We+=2)Ae(this,We,We+1);return this},E.prototype.swap32=function(){var Oe=this.length;if(Oe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var We=0;We<Oe;We+=4)Ae(this,We,We+3),Ae(this,We+1,We+2);return this},E.prototype.swap64=function(){var Oe=this.length;if(Oe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var We=0;We<Oe;We+=8)Ae(this,We,We+7),Ae(this,We+1,We+6),Ae(this,We+2,We+5),Ae(this,We+3,We+4);return this},E.prototype.toString=function(){var Oe=this.length;return Oe===0?"":arguments.length===0?$e(this,0,Oe):Me.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(Oe){if(!E.isBuffer(Oe))throw new TypeError("Argument must be a Buffer");return this===Oe?!0:E.compare(this,Oe)===0},E.prototype.inspect=function(){var Oe="",We=ye.INSPECT_MAX_BYTES;return Oe=this.toString("hex",0,We).replace(/(.{2})/g,"$1 ").trim(),this.length>We&&(Oe+=" ... "),"<Buffer "+Oe+">"},E.prototype.compare=function(Oe,We,et,nt,dt){if(Ue(Oe,Uint8Array)&&(Oe=E.from(Oe,Oe.offset,Oe.byteLength)),!E.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Oe);if(We===void 0&&(We=0),et===void 0&&(et=Oe?Oe.length:0),nt===void 0&&(nt=0),dt===void 0&&(dt=this.length),We<0||et>Oe.length||nt<0||dt>this.length)throw new RangeError("out of range index");if(nt>=dt&&We>=et)return 0;if(nt>=dt)return-1;if(We>=et)return 1;if(We>>>=0,et>>>=0,nt>>>=0,dt>>>=0,this===Oe)return 0;for(var ct=dt-nt,pt=et-We,St=Math.min(ct,pt),yt=this.slice(nt,dt),xt=Oe.slice(We,et),vt=0;vt<St;++vt)if(yt[vt]!==xt[vt]){ct=yt[vt],pt=xt[vt];break}return ct<pt?-1:pt<ct?1:0};function ge(Se,Oe,We,et,nt){if(Se.length===0)return-1;if(typeof We=="string"?(et=We,We=0):We>2147483647?We=2147483647:We<-2147483648&&(We=-2147483648),We=+We,xe(We)&&(We=nt?0:Se.length-1),We<0&&(We=Se.length+We),We>=Se.length){if(nt)return-1;We=Se.length-1}else if(We<0)if(nt)We=0;else return-1;if(typeof Oe=="string"&&(Oe=E.from(Oe,et)),E.isBuffer(Oe))return Oe.length===0?-1:be(Se,Oe,We,et,nt);if(typeof Oe=="number")return Oe=Oe&255,typeof Uint8Array.prototype.indexOf=="function"?nt?Uint8Array.prototype.indexOf.call(Se,Oe,We):Uint8Array.prototype.lastIndexOf.call(Se,Oe,We):be(Se,[Oe],We,et,nt);throw new TypeError("val must be string, number or Buffer")}function be(Se,Oe,We,et,nt){var dt=1,ct=Se.length,pt=Oe.length;if(et!==void 0&&(et=String(et).toLowerCase(),et==="ucs2"||et==="ucs-2"||et==="utf16le"||et==="utf-16le")){if(Se.length<2||Oe.length<2)return-1;dt=2,ct/=2,pt/=2,We/=2}function St(bt,ft){return dt===1?bt[ft]:bt.readUInt16BE(ft*dt)}var yt;if(nt){var xt=-1;for(yt=We;yt<ct;yt++)if(St(Se,yt)===St(Oe,xt===-1?0:yt-xt)){if(xt===-1&&(xt=yt),yt-xt+1===pt)return xt*dt}else xt!==-1&&(yt-=yt-xt),xt=-1}else for(We+pt>ct&&(We=ct-pt),yt=We;yt>=0;yt--){for(var vt=!0,Tt=0;Tt<pt;Tt++)if(St(Se,yt+Tt)!==St(Oe,Tt)){vt=!1;break}if(vt)return yt}return-1}E.prototype.includes=function(Oe,We,et){return this.indexOf(Oe,We,et)!==-1},E.prototype.indexOf=function(Oe,We,et){return ge(this,Oe,We,et,!0)},E.prototype.lastIndexOf=function(Oe,We,et){return ge(this,Oe,We,et,!1)};function Ee(Se,Oe,We,et){We=Number(We)||0;var nt=Se.length-We;et?(et=Number(et),et>nt&&(et=nt)):et=nt;var dt=Oe.length;et>dt/2&&(et=dt/2);for(var ct=0;ct<et;++ct){var pt=parseInt(Oe.substr(ct*2,2),16);if(xe(pt))return ct;Se[We+ct]=pt}return ct}function Re(Se,Oe,We,et){return _e(Le(Oe,Se.length-We),Se,We,et)}function Ie(Se,Oe,We,et){return _e(De(Oe),Se,We,et)}function ke(Se,Oe,We,et){return Ie(Se,Oe,We,et)}function Pe(Se,Oe,We,et){return _e(ce(Oe),Se,We,et)}function Ze(Se,Oe,We,et){return _e(te(Oe,Se.length-We),Se,We,et)}E.prototype.write=function(Oe,We,et,nt){if(We===void 0)nt="utf8",et=this.length,We=0;else if(et===void 0&&typeof We=="string")nt=We,et=this.length,We=0;else if(isFinite(We))We=We>>>0,isFinite(et)?(et=et>>>0,nt===void 0&&(nt="utf8")):(nt=et,et=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var dt=this.length-We;if((et===void 0||et>dt)&&(et=dt),Oe.length>0&&(et<0||We<0)||We>this.length)throw new RangeError("Attempt to write outside buffer bounds");nt||(nt="utf8");for(var ct=!1;;)switch(nt){case"hex":return Ee(this,Oe,We,et);case"utf8":case"utf-8":return Re(this,Oe,We,et);case"ascii":return Ie(this,Oe,We,et);case"latin1":case"binary":return ke(this,Oe,We,et);case"base64":return Pe(this,Oe,We,et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,Oe,We,et);default:if(ct)throw new TypeError("Unknown encoding: "+nt);nt=(""+nt).toLowerCase(),ct=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function He(Se,Oe,We){return Oe===0&&We===Se.length?z.fromByteArray(Se):z.fromByteArray(Se.slice(Oe,We))}function $e(Se,Oe,We){We=Math.min(Se.length,We);for(var et=[],nt=Oe;nt<We;){var dt=Se[nt],ct=null,pt=dt>239?4:dt>223?3:dt>191?2:1;if(nt+pt<=We){var St,yt,xt,vt;switch(pt){case 1:dt<128&&(ct=dt);break;case 2:St=Se[nt+1],(St&192)===128&&(vt=(dt&31)<<6|St&63,vt>127&&(ct=vt));break;case 3:St=Se[nt+1],yt=Se[nt+2],(St&192)===128&&(yt&192)===128&&(vt=(dt&15)<<12|(St&63)<<6|yt&63,vt>2047&&(vt<55296||vt>57343)&&(ct=vt));break;case 4:St=Se[nt+1],yt=Se[nt+2],xt=Se[nt+3],(St&192)===128&&(yt&192)===128&&(xt&192)===128&&(vt=(dt&15)<<18|(St&63)<<12|(yt&63)<<6|xt&63,vt>65535&&vt<1114112&&(ct=vt))}}ct===null?(ct=65533,pt=1):ct>65535&&(ct-=65536,et.push(ct>>>10&1023|55296),ct=56320|ct&1023),et.push(ct),nt+=pt}return Ne(et)}var it=4096;function Ne(Se){var Oe=Se.length;if(Oe<=it)return String.fromCharCode.apply(String,Se);for(var We="",et=0;et<Oe;)We+=String.fromCharCode.apply(String,Se.slice(et,et+=it));return We}function Fe(Se,Oe,We){var et="";We=Math.min(Se.length,We);for(var nt=Oe;nt<We;++nt)et+=String.fromCharCode(Se[nt]&127);return et}function qe(Se,Oe,We){var et="";We=Math.min(Se.length,We);for(var nt=Oe;nt<We;++nt)et+=String.fromCharCode(Se[nt]);return et}function rt(Se,Oe,We){var et=Se.length;(!Oe||Oe<0)&&(Oe=0),(!We||We<0||We>et)&&(We=et);for(var nt="",dt=Oe;dt<We;++dt)nt+=Xe(Se[dt]);return nt}function tt(Se,Oe,We){for(var et=Se.slice(Oe,We),nt="",dt=0;dt<et.length;dt+=2)nt+=String.fromCharCode(et[dt]+et[dt+1]*256);return nt}E.prototype.slice=function(Oe,We){var et=this.length;Oe=~~Oe,We=We===void 0?et:~~We,Oe<0?(Oe+=et,Oe<0&&(Oe=0)):Oe>et&&(Oe=et),We<0?(We+=et,We<0&&(We=0)):We>et&&(We=et),We<Oe&&(We=Oe);var nt=this.subarray(Oe,We);return nt.__proto__=E.prototype,nt};function Ve(Se,Oe,We){if(Se%1!==0||Se<0)throw new RangeError("offset is not uint");if(Se+Oe>We)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(Oe,We,et){Oe=Oe>>>0,We=We>>>0,et||Ve(Oe,We,this.length);for(var nt=this[Oe],dt=1,ct=0;++ct<We&&(dt*=256);)nt+=this[Oe+ct]*dt;return nt},E.prototype.readUIntBE=function(Oe,We,et){Oe=Oe>>>0,We=We>>>0,et||Ve(Oe,We,this.length);for(var nt=this[Oe+--We],dt=1;We>0&&(dt*=256);)nt+=this[Oe+--We]*dt;return nt},E.prototype.readUInt8=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,1,this.length),this[Oe]},E.prototype.readUInt16LE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},E.prototype.readUInt16BE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},E.prototype.readUInt32LE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+this[Oe+3]*16777216},E.prototype.readUInt32BE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,4,this.length),this[Oe]*16777216+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},E.prototype.readIntLE=function(Oe,We,et){Oe=Oe>>>0,We=We>>>0,et||Ve(Oe,We,this.length);for(var nt=this[Oe],dt=1,ct=0;++ct<We&&(dt*=256);)nt+=this[Oe+ct]*dt;return dt*=128,nt>=dt&&(nt-=Math.pow(2,8*We)),nt},E.prototype.readIntBE=function(Oe,We,et){Oe=Oe>>>0,We=We>>>0,et||Ve(Oe,We,this.length);for(var nt=We,dt=1,ct=this[Oe+--nt];nt>0&&(dt*=256);)ct+=this[Oe+--nt]*dt;return dt*=128,ct>=dt&&(ct-=Math.pow(2,8*We)),ct},E.prototype.readInt8=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,1,this.length),this[Oe]&128?(255-this[Oe]+1)*-1:this[Oe]},E.prototype.readInt16LE=function(Oe,We){Oe=Oe>>>0,We||Ve(Oe,2,this.length);var et=this[Oe]|this[Oe+1]<<8;return et&32768?et|4294901760:et},E.prototype.readInt16BE=function(Oe,We){Oe=Oe>>>0,We||Ve(Oe,2,this.length);var et=this[Oe+1]|this[Oe]<<8;return et&32768?et|4294901760:et},E.prototype.readInt32LE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},E.prototype.readInt32BE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},E.prototype.readFloatLE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,4,this.length),se.read(this,Oe,!0,23,4)},E.prototype.readFloatBE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,4,this.length),se.read(this,Oe,!1,23,4)},E.prototype.readDoubleLE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,8,this.length),se.read(this,Oe,!0,52,8)},E.prototype.readDoubleBE=function(Oe,We){return Oe=Oe>>>0,We||Ve(Oe,8,this.length),se.read(this,Oe,!1,52,8)};function Ke(Se,Oe,We,et,nt,dt){if(!E.isBuffer(Se))throw new TypeError('"buffer" argument must be a Buffer instance');if(Oe>nt||Oe<dt)throw new RangeError('"value" argument is out of bounds');if(We+et>Se.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(Oe,We,et,nt){if(Oe=+Oe,We=We>>>0,et=et>>>0,!nt){var dt=Math.pow(2,8*et)-1;Ke(this,Oe,We,et,dt,0)}var ct=1,pt=0;for(this[We]=Oe&255;++pt<et&&(ct*=256);)this[We+pt]=Oe/ct&255;return We+et},E.prototype.writeUIntBE=function(Oe,We,et,nt){if(Oe=+Oe,We=We>>>0,et=et>>>0,!nt){var dt=Math.pow(2,8*et)-1;Ke(this,Oe,We,et,dt,0)}var ct=et-1,pt=1;for(this[We+ct]=Oe&255;--ct>=0&&(pt*=256);)this[We+ct]=Oe/pt&255;return We+et},E.prototype.writeUInt8=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,1,255,0),this[We]=Oe&255,We+1},E.prototype.writeUInt16LE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,2,65535,0),this[We]=Oe&255,this[We+1]=Oe>>>8,We+2},E.prototype.writeUInt16BE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,2,65535,0),this[We]=Oe>>>8,this[We+1]=Oe&255,We+2},E.prototype.writeUInt32LE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,4,4294967295,0),this[We+3]=Oe>>>24,this[We+2]=Oe>>>16,this[We+1]=Oe>>>8,this[We]=Oe&255,We+4},E.prototype.writeUInt32BE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,4,4294967295,0),this[We]=Oe>>>24,this[We+1]=Oe>>>16,this[We+2]=Oe>>>8,this[We+3]=Oe&255,We+4},E.prototype.writeIntLE=function(Oe,We,et,nt){if(Oe=+Oe,We=We>>>0,!nt){var dt=Math.pow(2,8*et-1);Ke(this,Oe,We,et,dt-1,-dt)}var ct=0,pt=1,St=0;for(this[We]=Oe&255;++ct<et&&(pt*=256);)Oe<0&&St===0&&this[We+ct-1]!==0&&(St=1),this[We+ct]=(Oe/pt>>0)-St&255;return We+et},E.prototype.writeIntBE=function(Oe,We,et,nt){if(Oe=+Oe,We=We>>>0,!nt){var dt=Math.pow(2,8*et-1);Ke(this,Oe,We,et,dt-1,-dt)}var ct=et-1,pt=1,St=0;for(this[We+ct]=Oe&255;--ct>=0&&(pt*=256);)Oe<0&&St===0&&this[We+ct+1]!==0&&(St=1),this[We+ct]=(Oe/pt>>0)-St&255;return We+et},E.prototype.writeInt8=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[We]=Oe&255,We+1},E.prototype.writeInt16LE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,2,32767,-32768),this[We]=Oe&255,this[We+1]=Oe>>>8,We+2},E.prototype.writeInt16BE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,2,32767,-32768),this[We]=Oe>>>8,this[We+1]=Oe&255,We+2},E.prototype.writeInt32LE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,4,2147483647,-2147483648),this[We]=Oe&255,this[We+1]=Oe>>>8,this[We+2]=Oe>>>16,this[We+3]=Oe>>>24,We+4},E.prototype.writeInt32BE=function(Oe,We,et){return Oe=+Oe,We=We>>>0,et||Ke(this,Oe,We,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[We]=Oe>>>24,this[We+1]=Oe>>>16,this[We+2]=Oe>>>8,this[We+3]=Oe&255,We+4};function ze(Se,Oe,We,et,nt,dt){if(We+et>Se.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("Index out of range")}function at(Se,Oe,We,et,nt){return Oe=+Oe,We=We>>>0,nt||ze(Se,Oe,We,4,34028234663852886e22,-34028234663852886e22),se.write(Se,Oe,We,et,23,4),We+4}E.prototype.writeFloatLE=function(Oe,We,et){return at(this,Oe,We,!0,et)},E.prototype.writeFloatBE=function(Oe,We,et){return at(this,Oe,We,!1,et)};function Qe(Se,Oe,We,et,nt){return Oe=+Oe,We=We>>>0,nt||ze(Se,Oe,We,8,17976931348623157e292,-17976931348623157e292),se.write(Se,Oe,We,et,52,8),We+8}E.prototype.writeDoubleLE=function(Oe,We,et){return Qe(this,Oe,We,!0,et)},E.prototype.writeDoubleBE=function(Oe,We,et){return Qe(this,Oe,We,!1,et)},E.prototype.copy=function(Oe,We,et,nt){if(!E.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(et||(et=0),!nt&&nt!==0&&(nt=this.length),We>=Oe.length&&(We=Oe.length),We||(We=0),nt>0&&nt<et&&(nt=et),nt===et||Oe.length===0||this.length===0)return 0;if(We<0)throw new RangeError("targetStart out of bounds");if(et<0||et>=this.length)throw new RangeError("Index out of range");if(nt<0)throw new RangeError("sourceEnd out of bounds");nt>this.length&&(nt=this.length),Oe.length-We<nt-et&&(nt=Oe.length-We+et);var dt=nt-et;if(this===Oe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(We,et,nt);else if(this===Oe&&et<We&&We<nt)for(var ct=dt-1;ct>=0;--ct)Oe[ct+We]=this[ct+et];else Uint8Array.prototype.set.call(Oe,this.subarray(et,nt),We);return dt},E.prototype.fill=function(Oe,We,et,nt){if(typeof Oe=="string"){if(typeof We=="string"?(nt=We,We=0,et=this.length):typeof et=="string"&&(nt=et,et=this.length),nt!==void 0&&typeof nt!="string")throw new TypeError("encoding must be a string");if(typeof nt=="string"&&!E.isEncoding(nt))throw new TypeError("Unknown encoding: "+nt);if(Oe.length===1){var dt=Oe.charCodeAt(0);(nt==="utf8"&&dt<128||nt==="latin1")&&(Oe=dt)}}else typeof Oe=="number"&&(Oe=Oe&255);if(We<0||this.length<We||this.length<et)throw new RangeError("Out of range index");if(et<=We)return this;We=We>>>0,et=et===void 0?this.length:et>>>0,Oe||(Oe=0);var ct;if(typeof Oe=="number")for(ct=We;ct<et;++ct)this[ct]=Oe;else{var pt=E.isBuffer(Oe)?Oe:E.from(Oe,nt),St=pt.length;if(St===0)throw new TypeError('The value "'+Oe+'" is invalid for argument "value"');for(ct=0;ct<et-We;++ct)this[ct+We]=pt[ct%St]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function st(Se){if(Se=Se.split("=")[0],Se=Se.trim().replace(ut,""),Se.length<2)return"";for(;Se.length%4!==0;)Se=Se+"=";return Se}function Xe(Se){return Se<16?"0"+Se.toString(16):Se.toString(16)}function Le(Se,Oe){Oe=Oe||1/0;for(var We,et=Se.length,nt=null,dt=[],ct=0;ct<et;++ct){if(We=Se.charCodeAt(ct),We>55295&&We<57344){if(!nt){if(We>56319){(Oe-=3)>-1&&dt.push(239,191,189);continue}else if(ct+1===et){(Oe-=3)>-1&&dt.push(239,191,189);continue}nt=We;continue}if(We<56320){(Oe-=3)>-1&&dt.push(239,191,189),nt=We;continue}We=(nt-55296<<10|We-56320)+65536}else nt&&(Oe-=3)>-1&&dt.push(239,191,189);if(nt=null,We<128){if((Oe-=1)<0)break;dt.push(We)}else if(We<2048){if((Oe-=2)<0)break;dt.push(We>>6|192,We&63|128)}else if(We<65536){if((Oe-=3)<0)break;dt.push(We>>12|224,We>>6&63|128,We&63|128)}else if(We<1114112){if((Oe-=4)<0)break;dt.push(We>>18|240,We>>12&63|128,We>>6&63|128,We&63|128)}else throw new Error("Invalid code point")}return dt}function De(Se){for(var Oe=[],We=0;We<Se.length;++We)Oe.push(Se.charCodeAt(We)&255);return Oe}function te(Se,Oe){for(var We,et,nt,dt=[],ct=0;ct<Se.length&&!((Oe-=2)<0);++ct)We=Se.charCodeAt(ct),et=We>>8,nt=We%256,dt.push(nt),dt.push(et);return dt}function ce(Se){return z.toByteArray(st(Se))}function _e(Se,Oe,We,et){for(var nt=0;nt<et&&!(nt+We>=Oe.length||nt>=Se.length);++nt)Oe[nt+We]=Se[nt];return nt}function Ue(Se,Oe){return Se instanceof Oe||Se!=null&&Se.constructor!=null&&Se.constructor.name!=null&&Se.constructor.name===Oe.name}function xe(Se){return Se!==Se}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,Ce,ye){Ce.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(y,Ce,ye){"use strict";var x=y("get-intrinsic"),z=y("./"),se=z(x("String.prototype.indexOf"));Ce.exports=function(ee,fe){var E=x(ee,!!fe);return typeof E=="function"&&se(ee,".prototype.")>-1?z(E):E}},{"./":93,"get-intrinsic":348}],93:[function(y,Ce,ye){"use strict";var x=y("function-bind"),z=y("get-intrinsic"),se=z("%Function.prototype.apply%"),ae=z("%Function.prototype.call%"),ee=z("%Reflect.apply%",!0)||x.call(ae,se),fe=z("%Object.getOwnPropertyDescriptor%",!0),E=z("%Object.defineProperty%",!0),re=z("%Math.max%");if(E)try{E({},"a",{value:1})}catch(le){E=null}Ce.exports=function(ue){var he=ee(x,ae,arguments);if(fe&&E){var pe=fe(he,"length");pe.configurable&&E(he,"length",{value:1+re(0,ue.length-(arguments.length-1))})}return he};var ne=function(){return ee(x,se,arguments)};E?E(Ce.exports,"apply",{value:ne}):Ce.exports.apply=ne},{"function-bind":347,"get-intrinsic":348}],94:[function(y,Ce,ye){"use strict";var x=Array.prototype.slice;Ce.exports=z;function z(ae,ee){if(!(this instanceof z))return new z(ae,ee);this.src=ae,this._withAccess=ee}z.prototype.withAccess=function(ae){return this._withAccess=ae!==!1,this},z.prototype.pick=function(ae){return Array.isArray(ae)||(ae=x.call(arguments)),ae.length&&(this.keys=ae),this},z.prototype.to=function(ae){if(ae=ae||{},!this.src)return ae;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var fe=0;fe<ee.length;fe++)E=ee[fe],ae[E]===void 0&&(ae[E]=this.src[E]);return ae}for(var fe=0;fe<ee.length;fe++){var E=ee[fe];if(se(ae,E)){var re=this.src.__lookupGetter__(E),ne=this.src.__lookupSetter__(E);re&&ae.__defineGetter__(E,re),ne&&ae.__defineSetter__(E,ne),!re&&!ne&&(ae[E]=this.src[E])}}return ae},z.prototype.toCover=function(ae){for(var ee=this.keys||Object.keys(this.src),fe=0;fe<ee.length;fe++){var E=ee[fe];delete ae[E];var re=this.src.__lookupGetter__(E),ne=this.src.__lookupSetter__(E);re&&ae.__defineGetter__(E,re),ne&&ae.__defineSetter__(E,ne),!re&&!ne&&(ae[E]=this.src[E])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(ae){var ee={};return this.to(ee),this.src=ae,this.to(ee),this.src=ee,this};function se(ae,ee){return ae[ee]===void 0&&ae.__lookupGetter__(ee)===void 0&&ae.__lookupSetter__(ee)===void 0}},{}],95:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-callable"),se=y("../internals/try-to-string"),ae=x.TypeError;Ce.exports=function(ee){if(z(ee))return ee;throw ae(se(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-constructor"),se=y("../internals/try-to-string"),ae=x.TypeError;Ce.exports=function(ee){if(z(ee))return ee;throw ae(se(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-callable"),se=x.String,ae=x.TypeError;Ce.exports=function(ee){if(typeof ee=="object"||z(ee))return ee;throw ae("Can't set "+se(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,Ce,ye){var x=y("../internals/well-known-symbol"),z=y("../internals/object-create"),se=y("../internals/object-define-property"),ae=x("unscopables"),ee=Array.prototype;ee[ae]==null&&se.f(ee,ae,{configurable:!0,value:z(null)}),Ce.exports=function(fe){ee[ae][fe]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,Ce,ye){"use strict";var x=y("../internals/string-multibyte").charAt;Ce.exports=function(z,se,ae){return se+(ae?x(z,se).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/object-is-prototype-of"),se=x.TypeError;Ce.exports=function(ae,ee){if(z(ee,ae))return ae;throw se("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-object"),se=x.String,ae=x.TypeError;Ce.exports=function(ee){if(z(ee))return ee;throw ae(se(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,Ce,ye){Ce.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-native"),z=y("../internals/descriptors"),se=y("../internals/global"),ae=y("../internals/is-callable"),ee=y("../internals/is-object"),fe=y("../internals/has-own-property"),E=y("../internals/classof"),re=y("../internals/try-to-string"),ne=y("../internals/create-non-enumerable-property"),le=y("../internals/redefine"),ue=y("../internals/object-define-property").f,he=y("../internals/object-is-prototype-of"),pe=y("../internals/object-get-prototype-of"),ve=y("../internals/object-set-prototype-of"),de=y("../internals/well-known-symbol"),we=y("../internals/uid"),Te=se.Int8Array,je=Te&&Te.prototype,Me=se.Uint8ClampedArray,Ae=Me&&Me.prototype,ge=Te&&pe(Te),be=je&&pe(je),Ee=Object.prototype,Re=se.TypeError,Ie=de("toStringTag"),ke=we("TYPED_ARRAY_TAG"),Pe=we("TYPED_ARRAY_CONSTRUCTOR"),Ze=x&&!!ve&&E(se.opera)!=="Opera",He=!1,$e,it,Ne,Fe={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},qe={BigInt64Array:8,BigUint64Array:8},rt=function(ut){if(!ee(ut))return!1;var st=E(ut);return st==="DataView"||fe(Fe,st)||fe(qe,st)},tt=function(Qe){if(!ee(Qe))return!1;var ut=E(Qe);return fe(Fe,ut)||fe(qe,ut)},Ve=function(Qe){if(tt(Qe))return Qe;throw Re("Target is not a typed array")},Ke=function(Qe){if(ae(Qe)&&(!ve||he(ge,Qe)))return Qe;throw Re(re(Qe)+" is not a typed array constructor")},ze=function(Qe,ut,st,Xe){if(z){if(st)for(var Le in Fe){var De=se[Le];if(De&&fe(De.prototype,Qe))try{delete De.prototype[Qe]}catch(te){try{De.prototype[Qe]=ut}catch(ce){}}}(!be[Qe]||st)&&le(be,Qe,st?ut:Ze&&je[Qe]||ut,Xe)}},at=function(Qe,ut,st){var Xe,Le;if(z){if(ve){if(st){for(Xe in Fe)if(Le=se[Xe],Le&&fe(Le,Qe))try{delete Le[Qe]}catch(De){}}if(!ge[Qe]||st)try{return le(ge,Qe,st?ut:Ze&&ge[Qe]||ut)}catch(De){}else return}for(Xe in Fe)Le=se[Xe],Le&&(!Le[Qe]||st)&&le(Le,Qe,ut)}};for($e in Fe)it=se[$e],Ne=it&&it.prototype,Ne?ne(Ne,Pe,it):Ze=!1;for($e in qe)it=se[$e],Ne=it&&it.prototype,Ne&&ne(Ne,Pe,it);if((!Ze||!ae(ge)||ge===Function.prototype)&&(ge=function(){throw Re("Incorrect invocation")},Ze))for($e in Fe)se[$e]&&ve(se[$e],ge);if((!Ze||!be||be===Ee)&&(be=ge.prototype,Ze))for($e in Fe)se[$e]&&ve(se[$e].prototype,be);if(Ze&&pe(Ae)!==be&&ve(Ae,be),z&&!fe(be,Ie)){He=!0,ue(be,Ie,{get:function(){return ee(this)?this[ke]:void 0}});for($e in Fe)se[$e]&&ne(se[$e],ke,$e)}Ce.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ze,TYPED_ARRAY_CONSTRUCTOR:Pe,TYPED_ARRAY_TAG:He&&ke,aTypedArray:Ve,aTypedArrayConstructor:Ke,exportTypedArrayMethod:ze,exportTypedArrayStaticMethod:at,isView:rt,isTypedArray:tt,TypedArray:ge,TypedArrayPrototype:be}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(y,Ce,ye){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),se=y("../internals/descriptors"),ae=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),fe=y("../internals/create-non-enumerable-property"),E=y("../internals/redefine-all"),re=y("../internals/fails"),ne=y("../internals/an-instance"),le=y("../internals/to-integer-or-infinity"),ue=y("../internals/to-length"),he=y("../internals/to-index"),pe=y("../internals/ieee754"),ve=y("../internals/object-get-prototype-of"),de=y("../internals/object-set-prototype-of"),we=y("../internals/object-get-own-property-names").f,Te=y("../internals/object-define-property").f,je=y("../internals/array-fill"),Me=y("../internals/array-slice-simple"),Ae=y("../internals/set-to-string-tag"),ge=y("../internals/internal-state"),be=ee.PROPER,Ee=ee.CONFIGURABLE,Re=ge.get,Ie=ge.set,ke="ArrayBuffer",Pe="DataView",Ze="prototype",He="Wrong length",$e="Wrong index",it=x[ke],Ne=it,Fe=Ne&&Ne[Ze],qe=x[Pe],rt=qe&&qe[Ze],tt=Object.prototype,Ve=x.Array,Ke=x.RangeError,ze=z(je),at=z([].reverse),Qe=pe.pack,ut=pe.unpack,st=function(ct){return[ct&255]},Xe=function(ct){return[ct&255,ct>>8&255]},Le=function(ct){return[ct&255,ct>>8&255,ct>>16&255,ct>>24&255]},De=function(ct){return ct[3]<<24|ct[2]<<16|ct[1]<<8|ct[0]},te=function(ct){return Qe(ct,23,4)},ce=function(ct){return Qe(ct,52,8)},_e=function(ct,pt){Te(ct[Ze],pt,{get:function(){return Re(this)[pt]}})},Ue=function(ct,pt,St,yt){var xt=he(St),vt=Re(ct);if(xt+pt>vt.byteLength)throw Ke($e);var Tt=Re(vt.buffer).bytes,bt=xt+vt.byteOffset,ft=Me(Tt,bt,bt+pt);return yt?ft:at(ft)},xe=function(ct,pt,St,yt,xt,vt){var Tt=he(St),bt=Re(ct);if(Tt+pt>bt.byteLength)throw Ke($e);for(var ft=Re(bt.buffer).bytes,Dt=Tt+bt.byteOffset,At=yt(+xt),Mt=0;Mt<pt;Mt++)ft[Dt+Mt]=At[vt?Mt:pt-Mt-1]};if(!ae)Ne=function(pt){ne(this,Fe);var St=he(pt);Ie(this,{bytes:ze(Ve(St),0),byteLength:St}),se||(this.byteLength=St)},Fe=Ne[Ze],qe=function(pt,St,yt){ne(this,rt),ne(pt,Fe);var xt=Re(pt).byteLength,vt=le(St);if(vt<0||vt>xt)throw Ke("Wrong offset");if(yt=yt===void 0?xt-vt:ue(yt),vt+yt>xt)throw Ke(He);Ie(this,{buffer:pt,byteLength:yt,byteOffset:vt}),se||(this.buffer=pt,this.byteLength=yt,this.byteOffset=vt)},rt=qe[Ze],se&&(_e(Ne,"byteLength"),_e(qe,"buffer"),_e(qe,"byteLength"),_e(qe,"byteOffset")),E(rt,{getInt8:function(pt){return Ue(this,1,pt)[0]<<24>>24},getUint8:function(pt){return Ue(this,1,pt)[0]},getInt16:function(pt){var St=Ue(this,2,pt,arguments.length>1?arguments[1]:void 0);return(St[1]<<8|St[0])<<16>>16},getUint16:function(pt){var St=Ue(this,2,pt,arguments.length>1?arguments[1]:void 0);return St[1]<<8|St[0]},getInt32:function(pt){return De(Ue(this,4,pt,arguments.length>1?arguments[1]:void 0))},getUint32:function(pt){return De(Ue(this,4,pt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(pt){return ut(Ue(this,4,pt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(pt){return ut(Ue(this,8,pt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(pt,St){xe(this,1,pt,st,St)},setUint8:function(pt,St){xe(this,1,pt,st,St)},setInt16:function(pt,St){xe(this,2,pt,Xe,St,arguments.length>2?arguments[2]:void 0)},setUint16:function(pt,St){xe(this,2,pt,Xe,St,arguments.length>2?arguments[2]:void 0)},setInt32:function(pt,St){xe(this,4,pt,Le,St,arguments.length>2?arguments[2]:void 0)},setUint32:function(pt,St){xe(this,4,pt,Le,St,arguments.length>2?arguments[2]:void 0)},setFloat32:function(pt,St){xe(this,4,pt,te,St,arguments.length>2?arguments[2]:void 0)},setFloat64:function(pt,St){xe(this,8,pt,ce,St,arguments.length>2?arguments[2]:void 0)}});else{var Se=be&&it.name!==ke;if(!re(function(){it(1)})||!re(function(){new it(-1)})||re(function(){return new it,new it(1.5),new it(NaN),Se&&!Ee})){Ne=function(pt){return ne(this,Fe),new it(he(pt))},Ne[Ze]=Fe;for(var Oe=we(it),We=0,et;Oe.length>We;)(et=Oe[We++])in Ne||fe(Ne,et,it[et]);Fe.constructor=Ne}else Se&&Ee&&fe(it,"name",ke);de&&ve(rt)!==tt&&de(rt,tt);var nt=new qe(new Ne(2)),dt=z(rt.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),(nt.getInt8(0)||!nt.getInt8(1))&&E(rt,{setInt8:function(pt,St){dt(this,pt,St<<24>>24)},setUint8:function(pt,St){dt(this,pt,St<<24>>24)}},{unsafe:!0})}Ae(Ne,ke),Ae(qe,Pe),Ce.exports={ArrayBuffer:Ne,DataView:qe}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(y,Ce,ye){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),se=y("../internals/length-of-array-like"),ae=Math.min;Ce.exports=[].copyWithin||function(fe,E){var re=x(this),ne=se(re),le=z(fe,ne),ue=z(E,ne),he=arguments.length>2?arguments[2]:void 0,pe=ae((he===void 0?ne:z(he,ne))-ue,ne-le),ve=1;for(ue<le&&le<ue+pe&&(ve=-1,ue+=pe-1,le+=pe-1);pe-- >0;)ue in re?re[le]=re[ue]:delete re[le],le+=ve,ue+=ve;return re}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,Ce,ye){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),se=y("../internals/length-of-array-like");Ce.exports=function(ee){for(var fe=x(this),E=se(fe),re=arguments.length,ne=z(re>1?arguments[1]:void 0,E),le=re>2?arguments[2]:void 0,ue=le===void 0?E:z(le,E);ue>ne;)fe[ne++]=ee;return fe}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,Ce,ye){"use strict";var x=y("../internals/array-iteration").forEach,z=y("../internals/array-method-is-strict"),se=z("forEach");Ce.exports=se?[].forEach:function(ee){return x(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(y,Ce,ye){var x=y("../internals/length-of-array-like");Ce.exports=function(z,se){for(var ae=0,ee=x(se),fe=new z(ee);ee>ae;)fe[ae]=se[ae++];return fe}},{"../internals/length-of-array-like":188}],109:[function(y,Ce,ye){"use strict";var x=y("../internals/global"),z=y("../internals/function-bind-context"),se=y("../internals/function-call"),ae=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),fe=y("../internals/is-array-iterator-method"),E=y("../internals/is-constructor"),re=y("../internals/length-of-array-like"),ne=y("../internals/create-property"),le=y("../internals/get-iterator"),ue=y("../internals/get-iterator-method"),he=x.Array;Ce.exports=function(ve){var de=ae(ve),we=E(this),Te=arguments.length,je=Te>1?arguments[1]:void 0,Me=je!==void 0;Me&&(je=z(je,Te>2?arguments[2]:void 0));var Ae=ue(de),ge=0,be,Ee,Re,Ie,ke,Pe;if(Ae&&!(this==he&&fe(Ae)))for(Ie=le(de,Ae),ke=Ie.next,Ee=we?new this:[];!(Re=se(ke,Ie)).done;ge++)Pe=Me?ee(Ie,je,[Re.value,ge],!0):Re.value,ne(Ee,ge,Pe);else for(be=re(de),Ee=we?new this(be):he(be);be>ge;ge++)Pe=Me?je(de[ge],ge):de[ge],ne(Ee,ge,Pe);return Ee.length=ge,Ee}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(y,Ce,ye){var x=y("../internals/to-indexed-object"),z=y("../internals/to-absolute-index"),se=y("../internals/length-of-array-like"),ae=function(ee){return function(fe,E,re){var ne=x(fe),le=se(ne),ue=z(re,le),he;if(ee&&E!=E){for(;le>ue;)if(he=ne[ue++],he!=he)return!0}else for(;le>ue;ue++)if((ee||ue in ne)&&ne[ue]===E)return ee||ue||0;return!ee&&-1}};Ce.exports={includes:ae(!0),indexOf:ae(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,Ce,ye){var x=y("../internals/function-bind-context"),z=y("../internals/function-uncurry-this"),se=y("../internals/indexed-object"),ae=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),fe=y("../internals/array-species-create"),E=z([].push),re=function(ne){var le=ne==1,ue=ne==2,he=ne==3,pe=ne==4,ve=ne==6,de=ne==7,we=ne==5||ve;return function(Te,je,Me,Ae){for(var ge=ae(Te),be=se(ge),Ee=x(je,Me),Re=ee(be),Ie=0,ke=Ae||fe,Pe=le?ke(Te,Re):ue||de?ke(Te,0):void 0,Ze,He;Re>Ie;Ie++)if((we||Ie in be)&&(Ze=be[Ie],He=Ee(Ze,Ie,ge),ne))if(le)Pe[Ie]=He;else if(He)switch(ne){case 3:return!0;case 5:return Ze;case 6:return Ie;case 2:E(Pe,Ze)}else switch(ne){case 4:return!1;case 7:E(Pe,Ze)}return ve?-1:he||pe?pe:Pe}};Ce.exports={forEach:re(0),map:re(1),filter:re(2),some:re(3),every:re(4),find:re(5),findIndex:re(6),filterReject:re(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(y,Ce,ye){"use strict";var x=y("../internals/function-apply"),z=y("../internals/to-indexed-object"),se=y("../internals/to-integer-or-infinity"),ae=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),fe=Math.min,E=[].lastIndexOf,re=!!E&&1/[1].lastIndexOf(1,-0)<0,ne=ee("lastIndexOf"),le=re||!ne;Ce.exports=le?function(he){if(re)return x(E,this,arguments)||0;var pe=z(this),ve=ae(pe),de=ve-1;for(arguments.length>1&&(de=fe(de,se(arguments[1]))),de<0&&(de=ve+de);de>=0;de--)if(de in pe&&pe[de]===he)return de||0;return-1}:E},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(y,Ce,ye){var x=y("../internals/fails"),z=y("../internals/well-known-symbol"),se=y("../internals/engine-v8-version"),ae=z("species");Ce.exports=function(ee){return se>=51||!x(function(){var fe=[],E=fe.constructor={};return E[ae]=function(){return{foo:1}},fe[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,Ce,ye){"use strict";var x=y("../internals/fails");Ce.exports=function(z,se){var ae=[][z];return!!ae&&x(function(){ae.call(null,se||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/a-callable"),se=y("../internals/to-object"),ae=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),fe=x.TypeError,E=function(re){return function(ne,le,ue,he){z(le);var pe=se(ne),ve=ae(pe),de=ee(pe),we=re?de-1:0,Te=re?-1:1;if(ue<2)for(;;){if(we in ve){he=ve[we],we+=Te;break}if(we+=Te,re?we<0:de<=we)throw fe("Reduce of empty array with no initial value")}for(;re?we>=0:de>we;we+=Te)we in ve&&(he=le(he,ve[we],we,pe));return he}};Ce.exports={left:E(!1),right:E(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/to-absolute-index"),se=y("../internals/length-of-array-like"),ae=y("../internals/create-property"),ee=x.Array,fe=Math.max;Ce.exports=function(E,re,ne){for(var le=se(E),ue=z(re,le),he=z(ne===void 0?le:ne,le),pe=ee(fe(he-ue,0)),ve=0;ue<he;ue++,ve++)ae(pe,ve,E[ue]);return pe.length=ve,pe}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this");Ce.exports=x([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,Ce,ye){var x=y("../internals/array-slice-simple"),z=Math.floor,se=function(fe,E){var re=fe.length,ne=z(re/2);return re<8?ae(fe,E):ee(fe,se(x(fe,0,ne),E),se(x(fe,ne),E),E)},ae=function(fe,E){for(var re=fe.length,ne=1,le,ue;ne<re;){for(ue=ne,le=fe[ne];ue&&E(fe[ue-1],le)>0;)fe[ue]=fe[--ue];ue!==ne++&&(fe[ue]=le)}return fe},ee=function(fe,E,re,ne){for(var le=E.length,ue=re.length,he=0,pe=0;he<le||pe<ue;)fe[he+pe]=he<le&&pe<ue?ne(E[he],re[pe])<=0?E[he++]:re[pe++]:he<le?E[he++]:re[pe++];return fe};Ce.exports=se},{"../internals/array-slice-simple":116}],119:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-array"),se=y("../internals/is-constructor"),ae=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),fe=ee("species"),E=x.Array;Ce.exports=function(re){var ne;return z(re)&&(ne=re.constructor,se(ne)&&(ne===E||z(ne.prototype))?ne=void 0:ae(ne)&&(ne=ne[fe],ne===null&&(ne=void 0))),ne===void 0?E:ne}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,Ce,ye){var x=y("../internals/array-species-constructor");Ce.exports=function(z,se){return new(x(z))(se===0?0:se)}},{"../internals/array-species-constructor":119}],121:[function(y,Ce,ye){var x=y("../internals/an-object"),z=y("../internals/iterator-close");Ce.exports=function(se,ae,ee,fe){try{return fe?ae(x(ee)[0],ee[1]):ae(ee)}catch(E){z(se,"throw",E)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,Ce,ye){var x=y("../internals/well-known-symbol"),z=x("iterator"),se=!1;try{var ae=0,ee={next:function(){return{done:!!ae++}},return:function(){se=!0}};ee[z]=function(){return this},Array.from(ee,function(){throw 2})}catch(fe){}Ce.exports=function(fe,E){if(!E&&!se)return!1;var re=!1;try{var ne={};ne[z]=function(){return{next:function(){return{done:re=!0}}}},fe(ne)}catch(le){}return re}},{"../internals/well-known-symbol":268}],123:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=x({}.toString),se=x("".slice);Ce.exports=function(ae){return se(z(ae),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/to-string-tag-support"),se=y("../internals/is-callable"),ae=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),fe=ee("toStringTag"),E=x.Object,re=ae(function(){return arguments}())=="Arguments",ne=function(le,ue){try{return le[ue]}catch(he){}};Ce.exports=z?ae:function(le){var ue,he,pe;return le===void 0?"Undefined":le===null?"Null":typeof(he=ne(ue=E(le),fe))=="string"?he:re?ae(ue):(pe=ae(ue))=="Object"&&se(ue.callee)?"Arguments":pe}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(y,Ce,ye){var x=y("../internals/has-own-property"),z=y("../internals/own-keys"),se=y("../internals/object-get-own-property-descriptor"),ae=y("../internals/object-define-property");Ce.exports=function(ee,fe,E){for(var re=z(fe),ne=ae.f,le=se.f,ue=0;ue<re.length;ue++){var he=re[ue];!x(ee,he)&&!(E&&x(E,he))&&ne(ee,he,le(fe,he))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(y,Ce,ye){var x=y("../internals/well-known-symbol"),z=x("match");Ce.exports=function(se){var ae=/./;try{"/./"[se](ae)}catch(ee){try{return ae[z]=!1,"/./"[se](ae)}catch(fe){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,Ce,ye){var x=y("../internals/fails");Ce.exports=!x(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(y,Ce,ye){"use strict";var x=y("../internals/iterators-core").IteratorPrototype,z=y("../internals/object-create"),se=y("../internals/create-property-descriptor"),ae=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),fe=function(){return this};Ce.exports=function(E,re,ne,le){var ue=re+" Iterator";return E.prototype=z(x,{next:se(+!le,ne)}),ae(E,ue,!1,!0),ee[ue]=fe,E}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/object-define-property"),se=y("../internals/create-property-descriptor");Ce.exports=x?function(ae,ee,fe){return z.f(ae,ee,se(1,fe))}:function(ae,ee,fe){return ae[ee]=fe,ae}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,Ce,ye){Ce.exports=function(x,z){return{enumerable:!(x&1),configurable:!(x&2),writable:!(x&4),value:z}}},{}],131:[function(y,Ce,ye){"use strict";var x=y("../internals/to-property-key"),z=y("../internals/object-define-property"),se=y("../internals/create-property-descriptor");Ce.exports=function(ae,ee,fe){var E=x(ee);E in ae?z.f(ae,E,se(0,fe)):ae[E]=fe}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),se=y("../internals/is-pure"),ae=y("../internals/function-name"),ee=y("../internals/is-callable"),fe=y("../internals/create-iterator-constructor"),E=y("../internals/object-get-prototype-of"),re=y("../internals/object-set-prototype-of"),ne=y("../internals/set-to-string-tag"),le=y("../internals/create-non-enumerable-property"),ue=y("../internals/redefine"),he=y("../internals/well-known-symbol"),pe=y("../internals/iterators"),ve=y("../internals/iterators-core"),de=ae.PROPER,we=ae.CONFIGURABLE,Te=ve.IteratorPrototype,je=ve.BUGGY_SAFARI_ITERATORS,Me=he("iterator"),Ae="keys",ge="values",be="entries",Ee=function(){return this};Ce.exports=function(Re,Ie,ke,Pe,Ze,He,$e){fe(ke,Ie,Pe);var it=function(Qe){if(Qe===Ze&&tt)return tt;if(!je&&Qe in qe)return qe[Qe];switch(Qe){case Ae:return function(){return new ke(this,Qe)};case ge:return function(){return new ke(this,Qe)};case be:return function(){return new ke(this,Qe)}}return function(){return new ke(this)}},Ne=Ie+" Iterator",Fe=!1,qe=Re.prototype,rt=qe[Me]||qe["@@iterator"]||Ze&&qe[Ze],tt=!je&&rt||it(Ze),Ve=Ie=="Array"&&qe.entries||rt,Ke,ze,at;if(Ve&&(Ke=E(Ve.call(new Re)),Ke!==Object.prototype&&Ke.next&&(!se&&E(Ke)!==Te&&(re?re(Ke,Te):ee(Ke[Me])||ue(Ke,Me,Ee)),ne(Ke,Ne,!0,!0),se&&(pe[Ne]=Ee))),de&&Ze==ge&&rt&&rt.name!==ge&&(!se&&we?le(qe,"name",ge):(Fe=!0,tt=function(){return z(rt,this)})),Ze)if(ze={values:it(ge),keys:He?tt:it(Ae),entries:it(be)},$e)for(at in ze)(je||Fe||!(at in qe))&&ue(qe,at,ze[at]);else x({target:Ie,proto:!0,forced:je||Fe},ze);return(!se||$e)&&qe[Me]!==tt&&ue(qe,Me,tt,{name:Ze}),pe[Ie]=tt,ze}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(y,Ce,ye){var x=y("../internals/path"),z=y("../internals/has-own-property"),se=y("../internals/well-known-symbol-wrapped"),ae=y("../internals/object-define-property").f;Ce.exports=function(ee){var fe=x.Symbol||(x.Symbol={});z(fe,ee)||ae(fe,ee,{value:se.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,Ce,ye){var x=y("../internals/fails");Ce.exports=!x(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-object"),se=x.document,ae=z(se)&&z(se.createElement);Ce.exports=function(ee){return ae?se.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,Ce,ye){Ce.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(y,Ce,ye){var x=y("../internals/document-create-element"),z=x("span").classList,se=z&&z.constructor&&z.constructor.prototype;Ce.exports=se===Object.prototype?void 0:se},{"../internals/document-create-element":135}],138:[function(y,Ce,ye){var x=y("../internals/engine-user-agent"),z=x.match(/firefox\/(\d+)/i);Ce.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(y,Ce,ye){Ce.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,Ce,ye){var x=y("../internals/engine-user-agent");Ce.exports=/MSIE|Trident/.test(x)},{"../internals/engine-user-agent":145}],141:[function(y,Ce,ye){var x=y("../internals/engine-user-agent"),z=y("../internals/global");Ce.exports=/ipad|iphone|ipod/i.test(x)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,Ce,ye){var x=y("../internals/engine-user-agent");Ce.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(x)},{"../internals/engine-user-agent":145}],143:[function(y,Ce,ye){var x=y("../internals/classof-raw"),z=y("../internals/global");Ce.exports=x(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,Ce,ye){var x=y("../internals/engine-user-agent");Ce.exports=/web0s(?!.*chrome)/i.test(x)},{"../internals/engine-user-agent":145}],145:[function(y,Ce,ye){var x=y("../internals/get-built-in");Ce.exports=x("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/engine-user-agent"),se=x.process,ae=x.Deno,ee=se&&se.versions||ae&&ae.version,fe=ee&&ee.v8,E,re;fe&&(E=fe.split("."),re=E[0]>0&&E[0]<4?1:+(E[0]+E[1])),!re&&z&&(E=z.match(/Edge\/(\d+)/),(!E||E[1]>=74)&&(E=z.match(/Chrome\/(\d+)/),E&&(re=+E[1]))),Ce.exports=re},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,Ce,ye){var x=y("../internals/engine-user-agent"),z=x.match(/AppleWebKit\/(\d+)\./);Ce.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(y,Ce,ye){Ce.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/object-get-own-property-descriptor").f,se=y("../internals/create-non-enumerable-property"),ae=y("../internals/redefine"),ee=y("../internals/set-global"),fe=y("../internals/copy-constructor-properties"),E=y("../internals/is-forced");Ce.exports=function(re,ne){var le=re.target,ue=re.global,he=re.stat,pe,ve,de,we,Te,je;if(ue?ve=x:he?ve=x[le]||ee(le,{}):ve=(x[le]||{}).prototype,ve)for(de in ne){if(Te=ne[de],re.noTargetGet?(je=z(ve,de),we=je&&je.value):we=ve[de],pe=E(ue?de:le+(he?".":"#")+de,re.forced),!pe&&we!==void 0){if(typeof Te==typeof we)continue;fe(Te,we)}(re.sham||we&&we.sham)&&se(Te,"sham",!0),ae(ve,de,Te,re)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(y,Ce,ye){Ce.exports=function(x){try{return!!x()}catch(z){return!0}}},{}],151:[function(y,Ce,ye){"use strict";y("../modules/es.regexp.exec");var x=y("../internals/function-uncurry-this"),z=y("../internals/redefine"),se=y("../internals/regexp-exec"),ae=y("../internals/fails"),ee=y("../internals/well-known-symbol"),fe=y("../internals/create-non-enumerable-property"),E=ee("species"),re=RegExp.prototype;Ce.exports=function(ne,le,ue,he){var pe=ee(ne),ve=!ae(function(){var je={};return je[pe]=function(){return 7},""[ne](je)!=7}),de=ve&&!ae(function(){var je=!1,Me=/a/;return ne==="split"&&(Me={},Me.constructor={},Me.constructor[E]=function(){return Me},Me.flags="",Me[pe]=/./[pe]),Me.exec=function(){return je=!0,null},Me[pe](""),!je});if(!ve||!de||ue){var we=x(/./[pe]),Te=le(pe,""[ne],function(je,Me,Ae,ge,be){var Ee=x(je),Re=Me.exec;return Re===se||Re===re.exec?ve&&!be?{done:!0,value:we(Me,Ae,ge)}:{done:!0,value:Ee(Ae,Me,ge)}:{done:!1}});z(String.prototype,ne,Te[0]),z(re,pe,Te[1])}he&&fe(re[pe],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(y,Ce,ye){var x=y("../internals/function-bind-native"),z=Function.prototype,se=z.apply,ae=z.call;Ce.exports=typeof Reflect=="object"&&Reflect.apply||(x?ae.bind(se):function(){return ae.apply(se,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/a-callable"),se=y("../internals/function-bind-native"),ae=x(x.bind);Ce.exports=function(ee,fe){return z(ee),fe===void 0?ee:se?ae(ee,fe):function(){return ee.apply(fe,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,Ce,ye){var x=y("../internals/fails");Ce.exports=!x(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,Ce,ye){var x=y("../internals/function-bind-native"),z=Function.prototype.call;Ce.exports=x?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/has-own-property"),se=Function.prototype,ae=x&&Object.getOwnPropertyDescriptor,ee=z(se,"name"),fe=ee&&function(){}.name==="something",E=ee&&(!x||x&&ae(se,"name").configurable);Ce.exports={EXISTS:ee,PROPER:fe,CONFIGURABLE:E}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,Ce,ye){var x=y("../internals/function-bind-native"),z=Function.prototype,se=z.bind,ae=z.call,ee=x&&se.bind(ae,ae);Ce.exports=x?function(fe){return fe&&ee(fe)}:function(fe){return fe&&function(){return ae.apply(fe,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-callable"),se=function(ae){return z(ae)?ae:void 0};Ce.exports=function(ae,ee){return arguments.length<2?se(x[ae]):x[ae]&&x[ae][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,Ce,ye){var x=y("../internals/classof"),z=y("../internals/get-method"),se=y("../internals/iterators"),ae=y("../internals/well-known-symbol"),ee=ae("iterator");Ce.exports=function(fe){if(fe!=null)return z(fe,ee)||z(fe,"@@iterator")||se[x(fe)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-call"),se=y("../internals/a-callable"),ae=y("../internals/an-object"),ee=y("../internals/try-to-string"),fe=y("../internals/get-iterator-method"),E=x.TypeError;Ce.exports=function(re,ne){var le=arguments.length<2?fe(re):ne;if(se(le))return ae(z(le,re));throw E(ee(re)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(y,Ce,ye){var x=y("../internals/a-callable");Ce.exports=function(z,se){var ae=z[se];return ae==null?void 0:x(ae)}},{"../internals/a-callable":95}],162:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),se=Math.floor,ae=x("".charAt),ee=x("".replace),fe=x("".slice),E=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,re=/\$([$&'`]|\d{1,2})/g;Ce.exports=function(ne,le,ue,he,pe,ve){var de=ue+ne.length,we=he.length,Te=re;return pe!==void 0&&(pe=z(pe),Te=E),ee(ve,Te,function(je,Me){var Ae;switch(ae(Me,0)){case"$":return"$";case"&":return ne;case"`":return fe(le,0,ue);case"'":return fe(le,de);case"<":Ae=pe[fe(Me,1,-1)];break;default:var ge=+Me;if(ge===0)return je;if(ge>we){var be=se(ge/10);return be===0?je:be<=we?he[be-1]===void 0?ae(Me,1):he[be-1]+ae(Me,1):je}Ae=he[ge-1]}return Ae===void 0?"":Ae})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,Ce,ye){(function(x){(function(){var z=function(se){return se&&se.Math==Math&&se};Ce.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof x=="object"&&x)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),se=x({}.hasOwnProperty);Ce.exports=Object.hasOwn||function(ee,fe){return se(z(ee),fe)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,Ce,ye){Ce.exports={}},{}],166:[function(y,Ce,ye){var x=y("../internals/global");Ce.exports=function(z,se){var ae=x.console;ae&&ae.error&&(arguments.length==1?ae.error(z):ae.error(z,se))}},{"../internals/global":163}],167:[function(y,Ce,ye){var x=y("../internals/get-built-in");Ce.exports=x("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/fails"),se=y("../internals/document-create-element");Ce.exports=!x&&!z(function(){return Object.defineProperty(se("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,Ce,ye){var x=y("../internals/global"),z=x.Array,se=Math.abs,ae=Math.pow,ee=Math.floor,fe=Math.log,E=Math.LN2,re=function(le,ue,he){var pe=z(he),ve=he*8-ue-1,de=(1<<ve)-1,we=de>>1,Te=ue===23?ae(2,-24)-ae(2,-77):0,je=le<0||le===0&&1/le<0?1:0,Me=0,Ae,ge,be;for(le=se(le),le!=le||le===1/0?(ge=le!=le?1:0,Ae=de):(Ae=ee(fe(le)/E),be=ae(2,-Ae),le*be<1&&(Ae--,be*=2),Ae+we>=1?le+=Te/be:le+=Te*ae(2,1-we),le*be>=2&&(Ae++,be/=2),Ae+we>=de?(ge=0,Ae=de):Ae+we>=1?(ge=(le*be-1)*ae(2,ue),Ae=Ae+we):(ge=le*ae(2,we-1)*ae(2,ue),Ae=0));ue>=8;)pe[Me++]=ge&255,ge/=256,ue-=8;for(Ae=Ae<<ue|ge,ve+=ue;ve>0;)pe[Me++]=Ae&255,Ae/=256,ve-=8;return pe[--Me]|=je*128,pe},ne=function(le,ue){var he=le.length,pe=he*8-ue-1,ve=(1<<pe)-1,de=ve>>1,we=pe-7,Te=he-1,je=le[Te--],Me=je&127,Ae;for(je>>=7;we>0;)Me=Me*256+le[Te--],we-=8;for(Ae=Me&(1<<-we)-1,Me>>=-we,we+=ue;we>0;)Ae=Ae*256+le[Te--],we-=8;if(Me===0)Me=1-de;else{if(Me===ve)return Ae?NaN:je?-1/0:1/0;Ae=Ae+ae(2,ue),Me=Me-de}return(je?-1:1)*Ae*ae(2,Me-ue)};Ce.exports={pack:re,unpack:ne}},{"../internals/global":163}],170:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),se=y("../internals/fails"),ae=y("../internals/classof-raw"),ee=x.Object,fe=z("".split);Ce.exports=se(function(){return!ee("z").propertyIsEnumerable(0)})?function(E){return ae(E)=="String"?fe(E,""):ee(E)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,Ce,ye){var x=y("../internals/is-callable"),z=y("../internals/is-object"),se=y("../internals/object-set-prototype-of");Ce.exports=function(ae,ee,fe){var E,re;return se&&x(E=ee.constructor)&&E!==fe&&z(re=E.prototype)&&re!==fe.prototype&&se(ae,re),ae}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/is-callable"),se=y("../internals/shared-store"),ae=x(Function.toString);z(se.inspectSource)||(se.inspectSource=function(ee){return ae(ee)}),Ce.exports=se.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,Ce,ye){var x=y("../internals/native-weak-map"),z=y("../internals/global"),se=y("../internals/function-uncurry-this"),ae=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),fe=y("../internals/has-own-property"),E=y("../internals/shared-store"),re=y("../internals/shared-key"),ne=y("../internals/hidden-keys"),le="Object already initialized",ue=z.TypeError,he=z.WeakMap,pe,ve,de,we=function(Ee){return de(Ee)?ve(Ee):pe(Ee,{})},Te=function(Ee){return function(Re){var Ie;if(!ae(Re)||(Ie=ve(Re)).type!==Ee)throw ue("Incompatible receiver, "+Ee+" required");return Ie}};if(x||E.state){var je=E.state||(E.state=new he),Me=se(je.get),Ae=se(je.has),ge=se(je.set);pe=function(Ee,Re){if(Ae(je,Ee))throw new ue(le);return Re.facade=Ee,ge(je,Ee,Re),Re},ve=function(Ee){return Me(je,Ee)||{}},de=function(Ee){return Ae(je,Ee)}}else{var be=re("state");ne[be]=!0,pe=function(Ee,Re){if(fe(Ee,be))throw new ue(le);return Re.facade=Ee,ee(Ee,be,Re),Re},ve=function(Ee){return fe(Ee,be)?Ee[be]:{}},de=function(Ee){return fe(Ee,be)}}Ce.exports={set:pe,get:ve,has:de,enforce:we,getterFor:Te}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(y,Ce,ye){var x=y("../internals/well-known-symbol"),z=y("../internals/iterators"),se=x("iterator"),ae=Array.prototype;Ce.exports=function(ee){return ee!==void 0&&(z.Array===ee||ae[se]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,Ce,ye){var x=y("../internals/classof-raw");Ce.exports=Array.isArray||function(se){return x(se)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,Ce,ye){Ce.exports=function(x){return typeof x=="function"}},{}],177:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/fails"),se=y("../internals/is-callable"),ae=y("../internals/classof"),ee=y("../internals/get-built-in"),fe=y("../internals/inspect-source"),E=function(){},re=[],ne=ee("Reflect","construct"),le=/^\s*(?:class|function)\b/,ue=x(le.exec),he=!le.exec(E),pe=function(we){if(!se(we))return!1;try{return ne(E,re,we),!0}catch(Te){return!1}},ve=function(we){if(!se(we))return!1;switch(ae(we)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return he||!!ue(le,fe(we))}catch(Te){return!0}};ve.sham=!0,Ce.exports=!ne||z(function(){var de;return pe(pe.call)||!pe(Object)||!pe(function(){de=!0})||de})?ve:pe},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(y,Ce,ye){var x=y("../internals/fails"),z=y("../internals/is-callable"),se=/#|\.prototype\./,ae=function(ne,le){var ue=fe[ee(ne)];return ue==re?!0:ue==E?!1:z(le)?x(le):!!le},ee=ae.normalize=function(ne){return String(ne).replace(se,".").toLowerCase()},fe=ae.data={},E=ae.NATIVE="N",re=ae.POLYFILL="P";Ce.exports=ae},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,Ce,ye){var x=y("../internals/is-object"),z=Math.floor;Ce.exports=Number.isInteger||function(ae){return!x(ae)&&isFinite(ae)&&z(ae)===ae}},{"../internals/is-object":180}],180:[function(y,Ce,ye){var x=y("../internals/is-callable");Ce.exports=function(z){return typeof z=="object"?z!==null:x(z)}},{"../internals/is-callable":176}],181:[function(y,Ce,ye){Ce.exports=!1},{}],182:[function(y,Ce,ye){var x=y("../internals/is-object"),z=y("../internals/classof-raw"),se=y("../internals/well-known-symbol"),ae=se("match");Ce.exports=function(ee){var fe;return x(ee)&&((fe=ee[ae])!==void 0?!!fe:z(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/get-built-in"),se=y("../internals/is-callable"),ae=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),fe=x.Object;Ce.exports=ee?function(E){return typeof E=="symbol"}:function(E){var re=z("Symbol");return se(re)&&ae(re.prototype,fe(E))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-bind-context"),se=y("../internals/function-call"),ae=y("../internals/an-object"),ee=y("../internals/try-to-string"),fe=y("../internals/is-array-iterator-method"),E=y("../internals/length-of-array-like"),re=y("../internals/object-is-prototype-of"),ne=y("../internals/get-iterator"),le=y("../internals/get-iterator-method"),ue=y("../internals/iterator-close"),he=x.TypeError,pe=function(de,we){this.stopped=de,this.result=we},ve=pe.prototype;Ce.exports=function(de,we,Te){var je=Te&&Te.that,Me=!!(Te&&Te.AS_ENTRIES),Ae=!!(Te&&Te.IS_ITERATOR),ge=!!(Te&&Te.INTERRUPTED),be=z(we,je),Ee,Re,Ie,ke,Pe,Ze,He,$e=function(Ne){return Ee&&ue(Ee,"normal",Ne),new pe(!0,Ne)},it=function(Ne){return Me?(ae(Ne),ge?be(Ne[0],Ne[1],$e):be(Ne[0],Ne[1])):ge?be(Ne,$e):be(Ne)};if(Ae)Ee=de;else{if(Re=le(de),!Re)throw he(ee(de)+" is not iterable");if(fe(Re)){for(Ie=0,ke=E(de);ke>Ie;Ie++)if(Pe=it(de[Ie]),Pe&&re(ve,Pe))return Pe;return new pe(!1)}Ee=ne(de,Re)}for(Ze=Ee.next;!(He=se(Ze,Ee)).done;){try{Pe=it(He.value)}catch(Ne){ue(Ee,"throw",Ne)}if(typeof Pe=="object"&&Pe&&re(ve,Pe))return Pe}return new pe(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(y,Ce,ye){var x=y("../internals/function-call"),z=y("../internals/an-object"),se=y("../internals/get-method");Ce.exports=function(ae,ee,fe){var E,re;z(ae);try{if(E=se(ae,"return"),!E){if(ee==="throw")throw fe;return fe}E=x(E,ae)}catch(ne){re=!0,E=ne}if(ee==="throw")throw fe;if(re)throw E;return z(E),fe}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,Ce,ye){"use strict";var x=y("../internals/fails"),z=y("../internals/is-callable"),se=y("../internals/object-create"),ae=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),fe=y("../internals/well-known-symbol"),E=y("../internals/is-pure"),re=fe("iterator"),ne=!1,le,ue,he;[].keys&&(he=[].keys(),"next"in he?(ue=ae(ae(he)),ue!==Object.prototype&&(le=ue)):ne=!0);var pe=le==null||x(function(){var ve={};return le[re].call(ve)!==ve});pe?le={}:E&&(le=se(le)),z(le[re])||ee(le,re,function(){return this}),Ce.exports={IteratorPrototype:le,BUGGY_SAFARI_ITERATORS:ne}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(y,Ce,ye){arguments[4][165][0].apply(ye,arguments)},{dup:165}],188:[function(y,Ce,ye){var x=y("../internals/to-length");Ce.exports=function(z){return x(z.length)}},{"../internals/to-length":249}],189:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-bind-context"),se=y("../internals/object-get-own-property-descriptor").f,ae=y("../internals/task").set,ee=y("../internals/engine-is-ios"),fe=y("../internals/engine-is-ios-pebble"),E=y("../internals/engine-is-webos-webkit"),re=y("../internals/engine-is-node"),ne=x.MutationObserver||x.WebKitMutationObserver,le=x.document,ue=x.process,he=x.Promise,pe=se(x,"queueMicrotask"),ve=pe&&pe.value,de,we,Te,je,Me,Ae,ge,be;ve||(de=function(){var Ee,Re;for(re&&(Ee=ue.domain)&&Ee.exit();we;){Re=we.fn,we=we.next;try{Re()}catch(Ie){throw we?je():Te=void 0,Ie}}Te=void 0,Ee&&Ee.enter()},!ee&&!re&&!E&&ne&&le?(Me=!0,Ae=le.createTextNode(""),new ne(de).observe(Ae,{characterData:!0}),je=function(){Ae.data=Me=!Me}):!fe&&he&&he.resolve?(ge=he.resolve(void 0),ge.constructor=he,be=z(ge.then,ge),je=function(){be(de)}):re?je=function(){ue.nextTick(de)}:(ae=z(ae,x),je=function(){ae(de)})),Ce.exports=ve||function(Ee){var Re={fn:Ee,next:void 0};Te&&(Te.next=Re),we||(we=Re,je()),Te=Re}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(y,Ce,ye){var x=y("../internals/native-symbol");Ce.exports=x&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,Ce,ye){var x=y("../internals/engine-v8-version"),z=y("../internals/fails");Ce.exports=!!Object.getOwnPropertySymbols&&!z(function(){var se=Symbol();return!String(se)||!(Object(se)instanceof Symbol)||!Symbol.sham&&x&&x<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-callable"),se=y("../internals/inspect-source"),ae=x.WeakMap;Ce.exports=z(ae)&&/native code/.test(se(ae))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,Ce,ye){"use strict";var x=y("../internals/a-callable"),z=function(se){var ae,ee;this.promise=new se(function(fe,E){if(ae!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");ae=fe,ee=E}),this.resolve=x(ae),this.reject=x(ee)};Ce.exports.f=function(se){return new z(se)}},{"../internals/a-callable":95}],194:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-regexp"),se=x.TypeError;Ce.exports=function(ae){if(z(ae))throw se("The method doesn't accept regular expressions");return ae}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,Ce,ye){"use strict";var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),se=y("../internals/function-call"),ae=y("../internals/fails"),ee=y("../internals/object-keys"),fe=y("../internals/object-get-own-property-symbols"),E=y("../internals/object-property-is-enumerable"),re=y("../internals/to-object"),ne=y("../internals/indexed-object"),le=Object.assign,ue=Object.defineProperty,he=z([].concat);Ce.exports=!le||ae(function(){if(x&&le({b:1},le(ue({},"a",{enumerable:!0,get:function(){ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var pe={},ve={},de=Symbol(),we="abcdefghijklmnopqrst";return pe[de]=7,we.split("").forEach(function(Te){ve[Te]=Te}),le({},pe)[de]!=7||ee(le({},ve)).join("")!=we})?function(ve,de){for(var we=re(ve),Te=arguments.length,je=1,Me=fe.f,Ae=E.f;Te>je;)for(var ge=ne(arguments[je++]),be=Me?he(ee(ge),Me(ge)):ee(ge),Ee=be.length,Re=0,Ie;Ee>Re;)Ie=be[Re++],(!x||se(Ae,ge,Ie))&&(we[Ie]=ge[Ie]);return we}:le},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(y,Ce,ye){var x=y("../internals/an-object"),z=y("../internals/object-define-properties"),se=y("../internals/enum-bug-keys"),ae=y("../internals/hidden-keys"),ee=y("../internals/html"),fe=y("../internals/document-create-element"),E=y("../internals/shared-key"),re=">",ne="<",le="prototype",ue="script",he=E("IE_PROTO"),pe=function(){},ve=function(Me){return ne+ue+re+Me+ne+"/"+ue+re},de=function(Me){Me.write(ve("")),Me.close();var Ae=Me.parentWindow.Object;return Me=null,Ae},we=function(){var Me=fe("iframe"),Ae="java"+ue+":",ge;return Me.style.display="none",ee.appendChild(Me),Me.src=String(Ae),ge=Me.contentWindow.document,ge.open(),ge.write(ve("document.F=Object")),ge.close(),ge.F},Te,je=function(){try{Te=new ActiveXObject("htmlfile")}catch(Ae){}je=typeof document!="undefined"?document.domain&&Te?de(Te):we():de(Te);for(var Me=se.length;Me--;)delete je[le][se[Me]];return je()};ae[he]=!0,Ce.exports=Object.create||function(Ae,ge){var be;return Ae!==null?(pe[le]=x(Ae),be=new pe,pe[le]=null,be[he]=Ae):be=je(),ge===void 0?be:z.f(be,ge)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/v8-prototype-define-bug"),se=y("../internals/object-define-property"),ae=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),fe=y("../internals/object-keys");ye.f=x&&!z?Object.defineProperties:function(re,ne){ae(re);for(var le=ee(ne),ue=fe(ne),he=ue.length,pe=0,ve;he>pe;)se.f(re,ve=ue[pe++],le[ve]);return re}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/descriptors"),se=y("../internals/ie8-dom-define"),ae=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),fe=y("../internals/to-property-key"),E=x.TypeError,re=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,le="enumerable",ue="configurable",he="writable";ye.f=z?ae?function(ve,de,we){if(ee(ve),de=fe(de),ee(we),typeof ve=="function"&&de==="prototype"&&"value"in we&&he in we&&!we[he]){var Te=ne(ve,de);Te&&Te[he]&&(ve[de]=we.value,we={configurable:ue in we?we[ue]:Te[ue],enumerable:le in we?we[le]:Te[le],writable:!1})}return re(ve,de,we)}:re:function(ve,de,we){if(ee(ve),de=fe(de),ee(we),se)try{return re(ve,de,we)}catch(Te){}if("get"in we||"set"in we)throw E("Accessors not supported");return"value"in we&&(ve[de]=we.value),ve}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/function-call"),se=y("../internals/object-property-is-enumerable"),ae=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),fe=y("../internals/to-property-key"),E=y("../internals/has-own-property"),re=y("../internals/ie8-dom-define"),ne=Object.getOwnPropertyDescriptor;ye.f=x?ne:function(ue,he){if(ue=ee(ue),he=fe(he),re)try{return ne(ue,he)}catch(pe){}if(E(ue,he))return ae(!z(se.f,ue,he),ue[he])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(y,Ce,ye){var x=y("../internals/classof-raw"),z=y("../internals/to-indexed-object"),se=y("../internals/object-get-own-property-names").f,ae=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fe=function(E){try{return se(E)}catch(re){return ae(ee)}};Ce.exports.f=function(re){return ee&&x(re)=="Window"?fe(re):se(z(re))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,Ce,ye){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys"),se=z.concat("length","prototype");ye.f=Object.getOwnPropertyNames||function(ee){return x(ee,se)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,Ce,ye){ye.f=Object.getOwnPropertySymbols},{}],203:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/has-own-property"),se=y("../internals/is-callable"),ae=y("../internals/to-object"),ee=y("../internals/shared-key"),fe=y("../internals/correct-prototype-getter"),E=ee("IE_PROTO"),re=x.Object,ne=re.prototype;Ce.exports=fe?re.getPrototypeOf:function(le){var ue=ae(le);if(z(ue,E))return ue[E];var he=ue.constructor;return se(he)&&ue instanceof he?he.prototype:ue instanceof re?ne:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this");Ce.exports=x({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/has-own-property"),se=y("../internals/to-indexed-object"),ae=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),fe=x([].push);Ce.exports=function(E,re){var ne=se(E),le=0,ue=[],he;for(he in ne)!z(ee,he)&&z(ne,he)&&fe(ue,he);for(;re.length>le;)z(ne,he=re[le++])&&(~ae(ue,he)||fe(ue,he));return ue}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(y,Ce,ye){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys");Ce.exports=Object.keys||function(ae){return x(ae,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,Ce,ye){"use strict";var x={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,se=z&&!x.call({1:2},1);ye.f=se?function(ee){var fe=z(this,ee);return!!fe&&fe.enumerable}:x},{}],208:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/an-object"),se=y("../internals/a-possible-prototype");Ce.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ae=!1,ee={},fe;try{fe=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),fe(ee,[]),ae=ee instanceof Array}catch(E){}return function(re,ne){return z(re),se(ne),ae?fe(re,ne):re.__proto__=ne,re}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),se=y("../internals/object-keys"),ae=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,fe=z(ee),E=z([].push),re=function(ne){return function(le){for(var ue=ae(le),he=se(ue),pe=he.length,ve=0,de=[],we;pe>ve;)we=he[ve++],(!x||fe(ue,we))&&E(de,ne?[we,ue[we]]:ue[we]);return de}};Ce.exports={entries:re(!0),values:re(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(y,Ce,ye){"use strict";var x=y("../internals/to-string-tag-support"),z=y("../internals/classof");Ce.exports=x?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-call"),se=y("../internals/is-callable"),ae=y("../internals/is-object"),ee=x.TypeError;Ce.exports=function(fe,E){var re,ne;if(E==="string"&&se(re=fe.toString)&&!ae(ne=z(re,fe))||se(re=fe.valueOf)&&!ae(ne=z(re,fe))||E!=="string"&&se(re=fe.toString)&&!ae(ne=z(re,fe)))return ne;throw ee("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(y,Ce,ye){var x=y("../internals/get-built-in"),z=y("../internals/function-uncurry-this"),se=y("../internals/object-get-own-property-names"),ae=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),fe=z([].concat);Ce.exports=x("Reflect","ownKeys")||function(re){var ne=se.f(ee(re)),le=ae.f;return le?fe(ne,le(re)):ne}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(y,Ce,ye){var x=y("../internals/global");Ce.exports=x},{"../internals/global":163}],214:[function(y,Ce,ye){Ce.exports=function(x){try{return{error:!1,value:x()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/promise-native-constructor"),se=y("../internals/is-callable"),ae=y("../internals/is-forced"),ee=y("../internals/inspect-source"),fe=y("../internals/well-known-symbol"),E=y("../internals/engine-is-browser"),re=y("../internals/is-pure"),ne=y("../internals/engine-v8-version"),le=z&&z.prototype,ue=fe("species"),he=!1,pe=se(x.PromiseRejectionEvent),ve=ae("Promise",function(){var de=ee(z),we=de!==String(z);if(!we&&ne===66||re&&!(le.catch&&le.finally))return!0;if(ne>=51&&/native code/.test(de))return!1;var Te=new z(function(Ae){Ae(1)}),je=function(Ae){Ae(function(){},function(){})},Me=Te.constructor={};return Me[ue]=je,he=Te.then(function(){})instanceof je,he?!we&&E&&!pe:!0});Ce.exports={CONSTRUCTOR:ve,REJECTION_EVENT:pe,SUBCLASSING:he}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(y,Ce,ye){var x=y("../internals/global");Ce.exports=x.Promise},{"../internals/global":163}],217:[function(y,Ce,ye){var x=y("../internals/an-object"),z=y("../internals/is-object"),se=y("../internals/new-promise-capability");Ce.exports=function(ae,ee){if(x(ae),z(ee)&&ee.constructor===ae)return ee;var fe=se.f(ae),E=fe.resolve;return E(ee),fe.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,Ce,ye){var x=y("../internals/promise-native-constructor"),z=y("../internals/check-correctness-of-iteration"),se=y("../internals/promise-constructor-detection").CONSTRUCTOR;Ce.exports=se||!z(function(ae){x.all(ae).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,Ce,ye){var x=y("../internals/object-define-property").f;Ce.exports=function(z,se,ae){ae in z||x(z,ae,{configurable:!0,get:function(){return se[ae]},set:function(ee){se[ae]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,Ce,ye){var x=function(){this.head=null,this.tail=null};x.prototype={add:function(z){var se={item:z,next:null};this.head?this.tail.next=se:this.head=se,this.tail=se},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},Ce.exports=x},{}],221:[function(y,Ce,ye){var x=y("../internals/redefine");Ce.exports=function(z,se,ae){for(var ee in se)x(z,ee,se[ee],ae);return z}},{"../internals/redefine":222}],222:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/is-callable"),se=y("../internals/has-own-property"),ae=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),fe=y("../internals/inspect-source"),E=y("../internals/internal-state"),re=y("../internals/function-name").CONFIGURABLE,ne=E.get,le=E.enforce,ue=String(String).split("String");(Ce.exports=function(he,pe,ve,de){var we=de?!!de.unsafe:!1,Te=de?!!de.enumerable:!1,je=de?!!de.noTargetGet:!1,Me=de&&de.name!==void 0?de.name:pe,Ae;if(z(ve)&&(String(Me).slice(0,7)==="Symbol("&&(Me="["+String(Me).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!se(ve,"name")||re&&ve.name!==Me)&&ae(ve,"name",Me),Ae=le(ve),Ae.source||(Ae.source=ue.join(typeof Me=="string"?Me:""))),he===x){Te?he[pe]=ve:ee(pe,ve);return}else we?!je&&he[pe]&&(Te=!0):delete he[pe];Te?he[pe]=ve:ae(he,pe,ve)})(Function.prototype,"toString",function(){return z(this)&&ne(this).source||fe(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-call"),se=y("../internals/an-object"),ae=y("../internals/is-callable"),ee=y("../internals/classof-raw"),fe=y("../internals/regexp-exec"),E=x.TypeError;Ce.exports=function(re,ne){var le=re.exec;if(ae(le)){var ue=z(le,re,ne);return ue!==null&&se(ue),ue}if(ee(re)==="RegExp")return z(fe,re,ne);throw E("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(y,Ce,ye){"use strict";var x=y("../internals/function-call"),z=y("../internals/function-uncurry-this"),se=y("../internals/to-string"),ae=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),fe=y("../internals/shared"),E=y("../internals/object-create"),re=y("../internals/internal-state").get,ne=y("../internals/regexp-unsupported-dot-all"),le=y("../internals/regexp-unsupported-ncg"),ue=fe("native-string-replace",String.prototype.replace),he=RegExp.prototype.exec,pe=he,ve=z("".charAt),de=z("".indexOf),we=z("".replace),Te=z("".slice),je=function(){var be=/a/,Ee=/b*/g;return x(he,be,"a"),x(he,Ee,"a"),be.lastIndex!==0||Ee.lastIndex!==0}(),Me=ee.BROKEN_CARET,Ae=/()??/.exec("")[1]!==void 0,ge=je||Ae||Me||ne||le;ge&&(pe=function(Ee){var Re=this,Ie=re(Re),ke=se(Ee),Pe=Ie.raw,Ze,He,$e,it,Ne,Fe,qe;if(Pe)return Pe.lastIndex=Re.lastIndex,Ze=x(pe,Pe,ke),Re.lastIndex=Pe.lastIndex,Ze;var rt=Ie.groups,tt=Me&&Re.sticky,Ve=x(ae,Re),Ke=Re.source,ze=0,at=ke;if(tt&&(Ve=we(Ve,"y",""),de(Ve,"g")===-1&&(Ve+="g"),at=Te(ke,Re.lastIndex),Re.lastIndex>0&&(!Re.multiline||Re.multiline&&ve(ke,Re.lastIndex-1)!==`
`)&&(Ke="(?: "+Ke+")",at=" "+at,ze++),He=new RegExp("^(?:"+Ke+")",Ve)),Ae&&(He=new RegExp("^"+Ke+"$(?!\\s)",Ve)),je&&($e=Re.lastIndex),it=x(he,tt?He:Re,at),tt?it?(it.input=Te(it.input,ze),it[0]=Te(it[0],ze),it.index=Re.lastIndex,Re.lastIndex+=it[0].length):Re.lastIndex=0:je&&it&&(Re.lastIndex=Re.global?it.index+it[0].length:$e),Ae&&it&&it.length>1&&x(ue,it[0],He,function(){for(Ne=1;Ne<arguments.length-2;Ne++)arguments[Ne]===void 0&&(it[Ne]=void 0)}),it&&rt)for(it.groups=Fe=E(null),Ne=0;Ne<rt.length;Ne++)qe=rt[Ne],Fe[qe[0]]=it[qe[1]];return it}),Ce.exports=pe},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(y,Ce,ye){"use strict";var x=y("../internals/an-object");Ce.exports=function(){var z=x(this),se="";return z.hasIndices&&(se+="d"),z.global&&(se+="g"),z.ignoreCase&&(se+="i"),z.multiline&&(se+="m"),z.dotAll&&(se+="s"),z.unicode&&(se+="u"),z.sticky&&(se+="y"),se}},{"../internals/an-object":101}],226:[function(y,Ce,ye){var x=y("../internals/function-call"),z=y("../internals/has-own-property"),se=y("../internals/object-is-prototype-of"),ae=y("../internals/regexp-flags"),ee=RegExp.prototype;Ce.exports=function(fe){var E=fe.flags;return E===void 0&&!("flags"in ee)&&!z(fe,"flags")&&se(ee,fe)?x(ae,fe):E}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,Ce,ye){var x=y("../internals/fails"),z=y("../internals/global"),se=z.RegExp,ae=x(function(){var E=se("a","y");return E.lastIndex=2,E.exec("abcd")!=null}),ee=ae||x(function(){return!se("a","y").sticky}),fe=ae||x(function(){var E=se("^r","gy");return E.lastIndex=2,E.exec("str")!=null});Ce.exports={BROKEN_CARET:fe,MISSED_STICKY:ee,UNSUPPORTED_Y:ae}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,Ce,ye){var x=y("../internals/fails"),z=y("../internals/global"),se=z.RegExp;Ce.exports=x(function(){var ae=se(".","s");return!(ae.dotAll&&ae.exec(`
`)&&ae.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,Ce,ye){var x=y("../internals/fails"),z=y("../internals/global"),se=z.RegExp;Ce.exports=x(function(){var ae=se("(?<a>b)","g");return ae.exec("b").groups.a!=="b"||"b".replace(ae,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,Ce,ye){var x=y("../internals/global"),z=x.TypeError;Ce.exports=function(se){if(se==null)throw z("Can't call method on "+se);return se}},{"../internals/global":163}],231:[function(y,Ce,ye){Ce.exports=Object.is||function(z,se){return z===se?z!==0||1/z===1/se:z!=z&&se!=se}},{}],232:[function(y,Ce,ye){var x=y("../internals/global"),z=Object.defineProperty;Ce.exports=function(se,ae){try{z(x,se,{value:ae,configurable:!0,writable:!0})}catch(ee){x[se]=ae}return ae}},{"../internals/global":163}],233:[function(y,Ce,ye){"use strict";var x=y("../internals/get-built-in"),z=y("../internals/object-define-property"),se=y("../internals/well-known-symbol"),ae=y("../internals/descriptors"),ee=se("species");Ce.exports=function(fe){var E=x(fe),re=z.f;ae&&E&&!E[ee]&&re(E,ee,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(y,Ce,ye){var x=y("../internals/object-define-property").f,z=y("../internals/has-own-property"),se=y("../internals/well-known-symbol"),ae=se("toStringTag");Ce.exports=function(ee,fe,E){ee&&!E&&(ee=ee.prototype),ee&&!z(ee,ae)&&x(ee,ae,{configurable:!0,value:fe})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,Ce,ye){var x=y("../internals/shared"),z=y("../internals/uid"),se=x("keys");Ce.exports=function(ae){return se[ae]||(se[ae]=z(ae))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/set-global"),se="__core-js_shared__",ae=x[se]||z(se,{});Ce.exports=ae},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,Ce,ye){var x=y("../internals/is-pure"),z=y("../internals/shared-store");(Ce.exports=function(se,ae){return z[se]||(z[se]=ae!==void 0?ae:{})})("versions",[]).push({version:"3.22.1",mode:x?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(y,Ce,ye){var x=y("../internals/an-object"),z=y("../internals/a-constructor"),se=y("../internals/well-known-symbol"),ae=se("species");Ce.exports=function(ee,fe){var E=x(ee).constructor,re;return E===void 0||(re=x(E)[ae])==null?fe:z(re)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-integer-or-infinity"),se=y("../internals/to-string"),ae=y("../internals/require-object-coercible"),ee=x("".charAt),fe=x("".charCodeAt),E=x("".slice),re=function(ne){return function(le,ue){var he=se(ae(le)),pe=z(ue),ve=he.length,de,we;return pe<0||pe>=ve?ne?"":void 0:(de=fe(he,pe),de<55296||de>56319||pe+1===ve||(we=fe(he,pe+1))<56320||we>57343?ne?ee(he,pe):de:ne?E(he,pe,pe+2):(de-55296<<10)+(we-56320)+65536)}};Ce.exports={codeAt:re(!1),charAt:re(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,Ce,ye){var x=y("../internals/function-name").PROPER,z=y("../internals/fails"),se=y("../internals/whitespaces"),ae="\u200B\x85\u180E";Ce.exports=function(ee){return z(function(){return!!se[ee]()||ae[ee]()!==ae||x&&se[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=y("../internals/require-object-coercible"),se=y("../internals/to-string"),ae=y("../internals/whitespaces"),ee=x("".replace),fe="["+ae+"]",E=RegExp("^"+fe+fe+"*"),re=RegExp(fe+fe+"*$"),ne=function(le){return function(ue){var he=se(z(ue));return le&1&&(he=ee(he,E,"")),le&2&&(he=ee(he,re,"")),he}};Ce.exports={start:ne(1),end:ne(2),trim:ne(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,Ce,ye){var x=y("../internals/function-call"),z=y("../internals/get-built-in"),se=y("../internals/well-known-symbol"),ae=y("../internals/redefine");Ce.exports=function(){var ee=z("Symbol"),fe=ee&&ee.prototype,E=fe&&fe.valueOf,re=se("toPrimitive");fe&&!fe[re]&&ae(fe,re,function(ne){return x(E,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-apply"),se=y("../internals/function-bind-context"),ae=y("../internals/is-callable"),ee=y("../internals/has-own-property"),fe=y("../internals/fails"),E=y("../internals/html"),re=y("../internals/array-slice"),ne=y("../internals/document-create-element"),le=y("../internals/validate-arguments-length"),ue=y("../internals/engine-is-ios"),he=y("../internals/engine-is-node"),pe=x.setImmediate,ve=x.clearImmediate,de=x.process,we=x.Dispatch,Te=x.Function,je=x.MessageChannel,Me=x.String,Ae=0,ge={},be="onreadystatechange",Ee,Re,Ie,ke;try{Ee=x.location}catch(it){}var Pe=function(it){if(ee(ge,it)){var Ne=ge[it];delete ge[it],Ne()}},Ze=function(it){return function(){Pe(it)}},He=function(it){Pe(it.data)},$e=function(it){x.postMessage(Me(it),Ee.protocol+"//"+Ee.host)};(!pe||!ve)&&(pe=function(Ne){le(arguments.length,1);var Fe=ae(Ne)?Ne:Te(Ne),qe=re(arguments,1);return ge[++Ae]=function(){z(Fe,void 0,qe)},Re(Ae),Ae},ve=function(Ne){delete ge[Ne]},he?Re=function(it){de.nextTick(Ze(it))}:we&&we.now?Re=function(it){we.now(Ze(it))}:je&&!ue?(Ie=new je,ke=Ie.port2,Ie.port1.onmessage=He,Re=se(ke.postMessage,ke)):x.addEventListener&&ae(x.postMessage)&&!x.importScripts&&Ee&&Ee.protocol!=="file:"&&!fe($e)?(Re=$e,x.addEventListener("message",He,!1)):be in ne("script")?Re=function(it){E.appendChild(ne("script"))[be]=function(){E.removeChild(this),Pe(it)}}:Re=function(it){setTimeout(Ze(it),0)}),Ce.exports={set:pe,clear:ve}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this");Ce.exports=x(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,Ce,ye){var x=y("../internals/to-integer-or-infinity"),z=Math.max,se=Math.min;Ce.exports=function(ae,ee){var fe=x(ae);return fe<0?z(fe+ee,0):se(fe,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),se=y("../internals/to-length"),ae=x.RangeError;Ce.exports=function(ee){if(ee===void 0)return 0;var fe=z(ee),E=se(fe);if(fe!==E)throw ae("Wrong length or index");return E}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,Ce,ye){var x=y("../internals/indexed-object"),z=y("../internals/require-object-coercible");Ce.exports=function(se){return x(z(se))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,Ce,ye){var x=Math.ceil,z=Math.floor;Ce.exports=function(se){var ae=+se;return ae!==ae||ae===0?0:(ae>0?z:x)(ae)}},{}],249:[function(y,Ce,ye){var x=y("../internals/to-integer-or-infinity"),z=Math.min;Ce.exports=function(se){return se>0?z(x(se),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/require-object-coercible"),se=x.Object;Ce.exports=function(ae){return se(z(ae))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/to-positive-integer"),se=x.RangeError;Ce.exports=function(ae,ee){var fe=z(ae);if(fe%ee)throw se("Wrong offset");return fe}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),se=x.RangeError;Ce.exports=function(ae){var ee=z(ae);if(ee<0)throw se("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/function-call"),se=y("../internals/is-object"),ae=y("../internals/is-symbol"),ee=y("../internals/get-method"),fe=y("../internals/ordinary-to-primitive"),E=y("../internals/well-known-symbol"),re=x.TypeError,ne=E("toPrimitive");Ce.exports=function(le,ue){if(!se(le)||ae(le))return le;var he=ee(le,ne),pe;if(he){if(ue===void 0&&(ue="default"),pe=z(he,le,ue),!se(pe)||ae(pe))return pe;throw re("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),fe(le,ue)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(y,Ce,ye){var x=y("../internals/to-primitive"),z=y("../internals/is-symbol");Ce.exports=function(se){var ae=x(se,"string");return z(ae)?ae:ae+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,Ce,ye){var x=y("../internals/well-known-symbol"),z=x("toStringTag"),se={};se[z]="z",Ce.exports=String(se)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/classof"),se=x.String;Ce.exports=function(ae){if(z(ae)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return se(ae)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,Ce,ye){var x=y("../internals/global"),z=x.String;Ce.exports=function(se){try{return z(se)}catch(ae){return"Object"}}},{"../internals/global":163}],258:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/global"),se=y("../internals/function-call"),ae=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),fe=y("../internals/array-buffer-view-core"),E=y("../internals/array-buffer"),re=y("../internals/an-instance"),ne=y("../internals/create-property-descriptor"),le=y("../internals/create-non-enumerable-property"),ue=y("../internals/is-integral-number"),he=y("../internals/to-length"),pe=y("../internals/to-index"),ve=y("../internals/to-offset"),de=y("../internals/to-property-key"),we=y("../internals/has-own-property"),Te=y("../internals/classof"),je=y("../internals/is-object"),Me=y("../internals/is-symbol"),Ae=y("../internals/object-create"),ge=y("../internals/object-is-prototype-of"),be=y("../internals/object-set-prototype-of"),Ee=y("../internals/object-get-own-property-names").f,Re=y("../internals/typed-array-from"),Ie=y("../internals/array-iteration").forEach,ke=y("../internals/set-species"),Pe=y("../internals/object-define-property"),Ze=y("../internals/object-get-own-property-descriptor"),He=y("../internals/internal-state"),$e=y("../internals/inherit-if-required"),it=He.get,Ne=He.set,Fe=Pe.f,qe=Ze.f,rt=Math.round,tt=z.RangeError,Ve=E.ArrayBuffer,Ke=Ve.prototype,ze=E.DataView,at=fe.NATIVE_ARRAY_BUFFER_VIEWS,Qe=fe.TYPED_ARRAY_CONSTRUCTOR,ut=fe.TYPED_ARRAY_TAG,st=fe.TypedArray,Xe=fe.TypedArrayPrototype,Le=fe.aTypedArrayConstructor,De=fe.isTypedArray,te="BYTES_PER_ELEMENT",ce="Wrong length",_e=function(et,nt){Le(et);for(var dt=0,ct=nt.length,pt=new et(ct);ct>dt;)pt[dt]=nt[dt++];return pt},Ue=function(et,nt){Fe(et,nt,{get:function(){return it(this)[nt]}})},xe=function(et){var nt;return ge(Ke,et)||(nt=Te(et))=="ArrayBuffer"||nt=="SharedArrayBuffer"},Se=function(et,nt){return De(et)&&!Me(nt)&&nt in et&&ue(+nt)&&nt>=0},Oe=function(nt,dt){return dt=de(dt),Se(nt,dt)?ne(2,nt[dt]):qe(nt,dt)},We=function(nt,dt,ct){return dt=de(dt),Se(nt,dt)&&je(ct)&&we(ct,"value")&&!we(ct,"get")&&!we(ct,"set")&&!ct.configurable&&(!we(ct,"writable")||ct.writable)&&(!we(ct,"enumerable")||ct.enumerable)?(nt[dt]=ct.value,nt):Fe(nt,dt,ct)};ae?(at||(Ze.f=Oe,Pe.f=We,Ue(Xe,"buffer"),Ue(Xe,"byteOffset"),Ue(Xe,"byteLength"),Ue(Xe,"length")),x({target:"Object",stat:!0,forced:!at},{getOwnPropertyDescriptor:Oe,defineProperty:We}),Ce.exports=function(et,nt,dt){var ct=et.match(/\d+$/)[0]/8,pt=et+(dt?"Clamped":"")+"Array",St="get"+et,yt="set"+et,xt=z[pt],vt=xt,Tt=vt&&vt.prototype,bt={},ft=function(Mt,$t){var pr=it(Mt);return pr.view[St]($t*ct+pr.byteOffset,!0)},Dt=function(Mt,$t,pr){var qt=it(Mt);dt&&(pr=(pr=rt(pr))<0?0:pr>255?255:pr&255),qt.view[yt]($t*ct+qt.byteOffset,pr,!0)},At=function(Mt,$t){Fe(Mt,$t,{get:function(){return ft(this,$t)},set:function(pr){return Dt(this,$t,pr)},enumerable:!0})};at?ee&&(vt=nt(function(Mt,$t,pr,qt){return re(Mt,Tt),$e(function(){return je($t)?xe($t)?qt!==void 0?new xt($t,ve(pr,ct),qt):pr!==void 0?new xt($t,ve(pr,ct)):new xt($t):De($t)?_e(vt,$t):se(Re,vt,$t):new xt(pe($t))}(),Mt,vt)}),be&&be(vt,st),Ie(Ee(xt),function(Mt){Mt in vt||le(vt,Mt,xt[Mt])}),vt.prototype=Tt):(vt=nt(function(Mt,$t,pr,qt){re(Mt,Tt);var wr=0,jr=0,Dr,Fr,on;if(!je($t))on=pe($t),Fr=on*ct,Dr=new Ve(Fr);else if(xe($t)){Dr=$t,jr=ve(pr,ct);var wn=$t.byteLength;if(qt===void 0){if(wn%ct||(Fr=wn-jr,Fr<0))throw tt(ce)}else if(Fr=he(qt)*ct,Fr+jr>wn)throw tt(ce);on=Fr/ct}else return De($t)?_e(vt,$t):se(Re,vt,$t);for(Ne(Mt,{buffer:Dr,byteOffset:jr,byteLength:Fr,length:on,view:new ze(Dr)});wr<on;)At(Mt,wr++)}),be&&be(vt,st),Tt=vt.prototype=Ae(Xe)),Tt.constructor!==vt&&le(Tt,"constructor",vt),le(Tt,Qe,vt),ut&&le(Tt,ut,pt),bt[pt]=vt,x({global:!0,forced:vt!=xt,sham:!at},bt),te in vt||le(vt,te,ct),te in Tt||le(Tt,te,ct),ke(pt)}):Ce.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/fails"),se=y("../internals/check-correctness-of-iteration"),ae=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=x.ArrayBuffer,fe=x.Int8Array;Ce.exports=!ae||!z(function(){fe(1)})||!z(function(){new fe(-1)})||!se(function(E){new fe,new fe(null),new fe(1.5),new fe(E)},!0)||z(function(){return new fe(new ee(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(y,Ce,ye){var x=y("../internals/array-from-constructor-and-list"),z=y("../internals/typed-array-species-constructor");Ce.exports=function(se,ae){return x(z(se),ae)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,Ce,ye){var x=y("../internals/function-bind-context"),z=y("../internals/function-call"),se=y("../internals/a-constructor"),ae=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),fe=y("../internals/get-iterator"),E=y("../internals/get-iterator-method"),re=y("../internals/is-array-iterator-method"),ne=y("../internals/array-buffer-view-core").aTypedArrayConstructor;Ce.exports=function(ue){var he=se(this),pe=ae(ue),ve=arguments.length,de=ve>1?arguments[1]:void 0,we=de!==void 0,Te=E(pe),je,Me,Ae,ge,be,Ee;if(Te&&!re(Te))for(be=fe(pe,Te),Ee=be.next,pe=[];!(ge=z(Ee,be)).done;)pe.push(ge.value);for(we&&ve>2&&(de=x(de,arguments[2])),Me=ee(pe),Ae=new(ne(he))(Me),je=0;Me>je;je++)Ae[je]=we?de(pe[je],je):pe[je];return Ae}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(y,Ce,ye){var x=y("../internals/array-buffer-view-core"),z=y("../internals/species-constructor"),se=x.TYPED_ARRAY_CONSTRUCTOR,ae=x.aTypedArrayConstructor;Ce.exports=function(ee){return ae(z(ee,ee[se]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,Ce,ye){var x=y("../internals/function-uncurry-this"),z=0,se=Math.random(),ae=x(1 .toString);Ce.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+ae(++z+se,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,Ce,ye){var x=y("../internals/native-symbol");Ce.exports=x&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/fails");Ce.exports=x&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,Ce,ye){var x=y("../internals/global"),z=x.TypeError;Ce.exports=function(se,ae){if(se<ae)throw z("Not enough arguments");return se}},{"../internals/global":163}],267:[function(y,Ce,ye){var x=y("../internals/well-known-symbol");ye.f=x},{"../internals/well-known-symbol":268}],268:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/shared"),se=y("../internals/has-own-property"),ae=y("../internals/uid"),ee=y("../internals/native-symbol"),fe=y("../internals/use-symbol-as-uid"),E=z("wks"),re=x.Symbol,ne=re&&re.for,le=fe?re:re&&re.withoutSetter||ae;Ce.exports=function(ue){if(!se(E,ue)||!(ee||typeof E[ue]=="string")){var he="Symbol."+ue;ee&&se(re,ue)?E[ue]=re[ue]:fe&&ne?E[ue]=ne(he):E[ue]=le(he)}return E[ue]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(y,Ce,ye){Ce.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/global"),se=y("../internals/array-buffer"),ae=y("../internals/set-species"),ee="ArrayBuffer",fe=se[ee],E=z[ee];x({global:!0,forced:E!==fe},{ArrayBuffer:fe}),ae(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),se=y("../internals/fails"),ae=y("../internals/array-buffer"),ee=y("../internals/an-object"),fe=y("../internals/to-absolute-index"),E=y("../internals/to-length"),re=y("../internals/species-constructor"),ne=ae.ArrayBuffer,le=ae.DataView,ue=le.prototype,he=z(ne.prototype.slice),pe=z(ue.getUint8),ve=z(ue.setUint8),de=se(function(){return!new ne(2).slice(1,void 0).byteLength});x({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:de},{slice:function(Te,je){if(he&&je===void 0)return he(ee(this),Te);for(var Me=ee(this).byteLength,Ae=fe(Te,Me),ge=fe(je===void 0?Me:je,Me),be=new(re(this,ne))(E(ge-Ae)),Ee=new le(this),Re=new le(be),Ie=0;Ae<ge;)ve(Re,Ie++,pe(Ee,Ae++));return be}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/global"),se=y("../internals/fails"),ae=y("../internals/is-array"),ee=y("../internals/is-object"),fe=y("../internals/to-object"),E=y("../internals/length-of-array-like"),re=y("../internals/create-property"),ne=y("../internals/array-species-create"),le=y("../internals/array-method-has-species-support"),ue=y("../internals/well-known-symbol"),he=y("../internals/engine-v8-version"),pe=ue("isConcatSpreadable"),ve=9007199254740991,de="Maximum allowed index exceeded",we=z.TypeError,Te=he>=51||!se(function(){var ge=[];return ge[pe]=!1,ge.concat()[0]!==ge}),je=le("concat"),Me=function(ge){if(!ee(ge))return!1;var be=ge[pe];return be!==void 0?!!be:ae(ge)},Ae=!Te||!je;x({target:"Array",proto:!0,forced:Ae},{concat:function(be){var Ee=fe(this),Re=ne(Ee,0),Ie=0,ke,Pe,Ze,He,$e;for(ke=-1,Ze=arguments.length;ke<Ze;ke++)if($e=ke===-1?Ee:arguments[ke],Me($e)){if(He=E($e),Ie+He>ve)throw we(de);for(Pe=0;Pe<He;Pe++,Ie++)Pe in $e&&re(Re,Ie,$e[Pe])}else{if(Ie>=ve)throw we(de);re(Re,Ie++,$e)}return Re.length=Ie,Re}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/array-fill"),se=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{fill:z}),se("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").filter,se=y("../internals/array-method-has-species-support"),ae=se("filter");x({target:"Array",proto:!0,forced:!ae},{filter:function(fe){return z(this,fe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").find,se=y("../internals/add-to-unscopables"),ae="find",ee=!0;ae in[]&&Array(1)[ae](function(){ee=!1}),x({target:"Array",proto:!0,forced:ee},{find:function(E){return z(this,E,arguments.length>1?arguments[1]:void 0)}}),se(ae)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/array-from"),se=y("../internals/check-correctness-of-iteration"),ae=!se(function(ee){Array.from(ee)});x({target:"Array",stat:!0,forced:ae},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/array-includes").includes,se=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{includes:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}}),se("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,Ce,ye){"use strict";var x=y("../internals/to-indexed-object"),z=y("../internals/add-to-unscopables"),se=y("../internals/iterators"),ae=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,fe=y("../internals/define-iterator"),E=y("../internals/is-pure"),re=y("../internals/descriptors"),ne="Array Iterator",le=ae.set,ue=ae.getterFor(ne);Ce.exports=fe(Array,"Array",function(pe,ve){le(this,{type:ne,target:x(pe),index:0,kind:ve})},function(){var pe=ue(this),ve=pe.target,de=pe.kind,we=pe.index++;return!ve||we>=ve.length?(pe.target=void 0,{value:void 0,done:!0}):de=="keys"?{value:we,done:!1}:de=="values"?{value:ve[we],done:!1}:{value:[we,ve[we]],done:!1}},"values");var he=se.Arguments=se.Array;if(z("keys"),z("values"),z("entries"),!E&&re&&he.name!=="values")try{ee(he,"name",{value:"values"})}catch(pe){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),se=y("../internals/indexed-object"),ae=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),fe=z([].join),E=se!=Object,re=ee("join",",");x({target:"Array",proto:!0,forced:E||!re},{join:function(le){return fe(ae(this),le===void 0?",":le)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").map,se=y("../internals/array-method-has-species-support"),ae=se("map");x({target:"Array",proto:!0,forced:!ae},{map:function(fe){return z(this,fe,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/global"),se=y("../internals/is-array"),ae=y("../internals/is-constructor"),ee=y("../internals/is-object"),fe=y("../internals/to-absolute-index"),E=y("../internals/length-of-array-like"),re=y("../internals/to-indexed-object"),ne=y("../internals/create-property"),le=y("../internals/well-known-symbol"),ue=y("../internals/array-method-has-species-support"),he=y("../internals/array-slice"),pe=ue("slice"),ve=le("species"),de=z.Array,we=Math.max;x({target:"Array",proto:!0,forced:!pe},{slice:function(je,Me){var Ae=re(this),ge=E(Ae),be=fe(je,ge),Ee=fe(Me===void 0?ge:Me,ge),Re,Ie,ke;if(se(Ae)&&(Re=Ae.constructor,ae(Re)&&(Re===de||se(Re.prototype))?Re=void 0:ee(Re)&&(Re=Re[ve],Re===null&&(Re=void 0)),Re===de||Re===void 0))return he(Ae,be,Ee);for(Ie=new(Re===void 0?de:Re)(we(Ee-be,0)),ke=0;be<Ee;be++,ke++)be in Ae&&ne(Ie,ke,Ae[be]);return Ie.length=ke,Ie}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),se=y("../internals/a-callable"),ae=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),fe=y("../internals/to-string"),E=y("../internals/fails"),re=y("../internals/array-sort"),ne=y("../internals/array-method-is-strict"),le=y("../internals/engine-ff-version"),ue=y("../internals/engine-is-ie-or-edge"),he=y("../internals/engine-v8-version"),pe=y("../internals/engine-webkit-version"),ve=[],de=z(ve.sort),we=z(ve.push),Te=E(function(){ve.sort(void 0)}),je=E(function(){ve.sort(null)}),Me=ne("sort"),Ae=!E(function(){if(he)return he<70;if(!(le&&le>3)){if(ue)return!0;if(pe)return pe<603;var Ee="",Re,Ie,ke,Pe;for(Re=65;Re<76;Re++){switch(Ie=String.fromCharCode(Re),Re){case 66:case 69:case 70:case 72:ke=3;break;case 68:case 71:ke=4;break;default:ke=2}for(Pe=0;Pe<47;Pe++)ve.push({k:Ie+Pe,v:ke})}for(ve.sort(function(Ze,He){return He.v-Ze.v}),Pe=0;Pe<ve.length;Pe++)Ie=ve[Pe].k.charAt(0),Ee.charAt(Ee.length-1)!==Ie&&(Ee+=Ie);return Ee!=="DGBEFHACIJK"}}),ge=Te||!je||!Me||!Ae,be=function(Ee){return function(Re,Ie){return Ie===void 0?-1:Re===void 0?1:Ee!==void 0?+Ee(Re,Ie)||0:fe(Re)>fe(Ie)?1:-1}};x({target:"Array",proto:!0,forced:ge},{sort:function(Re){Re!==void 0&&se(Re);var Ie=ae(this);if(Ae)return Re===void 0?de(Ie):de(Ie,Re);var ke=[],Pe=ee(Ie),Ze,He;for(He=0;He<Pe;He++)He in Ie&&we(ke,Ie[He]);for(re(ke,be(Re)),Ze=ke.length,He=0;He<Ze;)Ie[He]=ke[He++];for(;He<Pe;)delete Ie[He++];return Ie}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/global"),se=y("../internals/to-absolute-index"),ae=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),fe=y("../internals/to-object"),E=y("../internals/array-species-create"),re=y("../internals/create-property"),ne=y("../internals/array-method-has-species-support"),le=ne("splice"),ue=z.TypeError,he=Math.max,pe=Math.min,ve=9007199254740991,de="Maximum allowed length exceeded";x({target:"Array",proto:!0,forced:!le},{splice:function(Te,je){var Me=fe(this),Ae=ee(Me),ge=se(Te,Ae),be=arguments.length,Ee,Re,Ie,ke,Pe,Ze;if(be===0?Ee=Re=0:be===1?(Ee=0,Re=Ae-ge):(Ee=be-2,Re=pe(he(ae(je),0),Ae-ge)),Ae+Ee-Re>ve)throw ue(de);for(Ie=E(Me,Re),ke=0;ke<Re;ke++)Pe=ge+ke,Pe in Me&&re(Ie,ke,Me[Pe]);if(Ie.length=Re,Ee<Re){for(ke=ge;ke<Ae-Re;ke++)Pe=ke+Re,Ze=ke+Ee,Pe in Me?Me[Ze]=Me[Pe]:delete Me[Ze];for(ke=Ae;ke>Ae-Re+Ee;ke--)delete Me[ke-1]}else if(Ee>Re)for(ke=Ae-Re;ke>ge;ke--)Pe=ke+Re-1,Ze=ke+Ee-1,Pe in Me?Me[Ze]=Me[Pe]:delete Me[Ze];for(ke=0;ke<Ee;ke++)Me[ke+ge]=arguments[ke+2];return Me.length=Ae-Re+Ee,Ie}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/function-name").EXISTS,se=y("../internals/function-uncurry-this"),ae=y("../internals/object-define-property").f,ee=Function.prototype,fe=se(ee.toString),E=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,re=se(E.exec),ne="name";x&&!z&&ae(ee,ne,{configurable:!0,get:function(){try{return re(E,fe(this))[1]}catch(le){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/get-built-in"),se=y("../internals/function-apply"),ae=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),fe=y("../internals/fails"),E=y("../internals/is-array"),re=y("../internals/is-callable"),ne=y("../internals/is-object"),le=y("../internals/is-symbol"),ue=y("../internals/array-slice"),he=y("../internals/native-symbol"),pe=z("JSON","stringify"),ve=ee(/./.exec),de=ee("".charAt),we=ee("".charCodeAt),Te=ee("".replace),je=ee(1 .toString),Me=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,ge=/^[\uDC00-\uDFFF]$/,be=!he||fe(function(){var ke=z("Symbol")();return pe([ke])!="[null]"||pe({a:ke})!="{}"||pe(Object(ke))!="{}"}),Ee=fe(function(){return pe("\uDF06\uD834")!=='"\\udf06\\ud834"'||pe("\uDEAD")!=='"\\udead"'}),Re=function(ke,Pe){var Ze=ue(arguments),He=Pe;if(!(!ne(Pe)&&ke===void 0||le(ke)))return E(Pe)||(Pe=function($e,it){if(re(He)&&(it=ae(He,this,$e,it)),!le(it))return it}),Ze[1]=Pe,se(pe,null,Ze)},Ie=function(ke,Pe,Ze){var He=de(Ze,Pe-1),$e=de(Ze,Pe+1);return ve(Ae,ke)&&!ve(ge,$e)||ve(ge,ke)&&!ve(Ae,He)?"\\u"+je(we(ke,0),16):ke};pe&&x({target:"JSON",stat:!0,forced:be||Ee},{stringify:function(Pe,Ze,He){var $e=ue(arguments),it=se(be?Re:pe,null,$e);return Ee&&typeof it=="string"?Te(it,Me,Ie):it}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(y,Ce,ye){"use strict";var x=y("../internals/descriptors"),z=y("../internals/global"),se=y("../internals/function-uncurry-this"),ae=y("../internals/is-forced"),ee=y("../internals/redefine"),fe=y("../internals/has-own-property"),E=y("../internals/inherit-if-required"),re=y("../internals/object-is-prototype-of"),ne=y("../internals/is-symbol"),le=y("../internals/to-primitive"),ue=y("../internals/fails"),he=y("../internals/object-get-own-property-names").f,pe=y("../internals/object-get-own-property-descriptor").f,ve=y("../internals/object-define-property").f,de=y("../internals/this-number-value"),we=y("../internals/string-trim").trim,Te="Number",je=z[Te],Me=je.prototype,Ae=z.TypeError,ge=se("".slice),be=se("".charCodeAt),Ee=function(He){var $e=le(He,"number");return typeof $e=="bigint"?$e:Re($e)},Re=function(He){var $e=le(He,"number"),it,Ne,Fe,qe,rt,tt,Ve,Ke;if(ne($e))throw Ae("Cannot convert a Symbol value to a number");if(typeof $e=="string"&&$e.length>2){if($e=we($e),it=be($e,0),it===43||it===45){if(Ne=be($e,2),Ne===88||Ne===120)return NaN}else if(it===48){switch(be($e,1)){case 66:case 98:Fe=2,qe=49;break;case 79:case 111:Fe=8,qe=55;break;default:return+$e}for(rt=ge($e,2),tt=rt.length,Ve=0;Ve<tt;Ve++)if(Ke=be(rt,Ve),Ke<48||Ke>qe)return NaN;return parseInt(rt,Fe)}}return+$e};if(ae(Te,!je(" 0o1")||!je("0b1")||je("+0x1"))){for(var Ie=function($e){var it=arguments.length<1?0:je(Ee($e)),Ne=this;return re(Me,Ne)&&ue(function(){de(Ne)})?E(Object(it),Ne,Ie):it},ke=x?he(je):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Pe=0,Ze;ke.length>Pe;Pe++)fe(je,Ze=ke[Pe])&&!fe(Ie,Ze)&&ve(Ie,Ze,pe(je,Ze));Ie.prototype=Me,Me.constructor=Ie,ee(z,Te,Ie)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/object-assign");x({target:"Object",stat:!0,forced:Object.assign!==z},{assign:z})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/object-to-array").entries;x({target:"Object",stat:!0},{entries:function(ae){return z(ae)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/native-symbol"),se=y("../internals/fails"),ae=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),fe=!z||se(function(){ae.f(1)});x({target:"Object",stat:!0,forced:fe},{getOwnPropertySymbols:function(re){var ne=ae.f;return ne?ne(ee(re)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/to-object"),se=y("../internals/object-keys"),ae=y("../internals/fails"),ee=ae(function(){se(1)});x({target:"Object",stat:!0,forced:ee},{keys:function(E){return se(z(E))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,Ce,ye){var x=y("../internals/to-string-tag-support"),z=y("../internals/redefine"),se=y("../internals/object-to-string");x||z(Object.prototype,"toString",se,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),se=y("../internals/a-callable"),ae=y("../internals/new-promise-capability"),ee=y("../internals/perform"),fe=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{all:function(ne){var le=this,ue=ae.f(le),he=ue.resolve,pe=ue.reject,ve=ee(function(){var de=se(le.resolve),we=[],Te=0,je=1;fe(ne,function(Me){var Ae=Te++,ge=!1;je++,z(de,le,Me).then(function(be){ge||(ge=!0,we[Ae]=be,--je||he(we))},pe)}),--je||he(we)});return ve.error&&pe(ve.value),ue.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),se=y("../internals/promise-constructor-detection").CONSTRUCTOR,ae=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),fe=y("../internals/is-callable"),E=y("../internals/redefine"),re=ae&&ae.prototype;if(x({target:"Promise",proto:!0,forced:se,real:!0},{catch:function(le){return this.then(void 0,le)}}),!z&&fe(ae)){var ne=ee("Promise").prototype.catch;re.catch!==ne&&E(re,"catch",ne,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),se=y("../internals/engine-is-node"),ae=y("../internals/global"),ee=y("../internals/function-call"),fe=y("../internals/redefine"),E=y("../internals/redefine-all"),re=y("../internals/object-set-prototype-of"),ne=y("../internals/set-to-string-tag"),le=y("../internals/set-species"),ue=y("../internals/a-callable"),he=y("../internals/is-callable"),pe=y("../internals/is-object"),ve=y("../internals/an-instance"),de=y("../internals/species-constructor"),we=y("../internals/task").set,Te=y("../internals/microtask"),je=y("../internals/host-report-errors"),Me=y("../internals/perform"),Ae=y("../internals/queue"),ge=y("../internals/internal-state"),be=y("../internals/promise-native-constructor"),Ee=y("../internals/promise-constructor-detection"),Re=y("../internals/new-promise-capability"),Ie="Promise",ke=Ee.CONSTRUCTOR,Pe=Ee.REJECTION_EVENT,Ze=Ee.SUBCLASSING,He=ge.getterFor(Ie),$e=ge.set,it=be&&be.prototype,Ne=be,Fe=it,qe=ae.TypeError,rt=ae.document,tt=ae.process,Ve=Re.f,Ke=Ve,ze=!!(rt&&rt.createEvent&&ae.dispatchEvent),at="unhandledrejection",Qe="rejectionhandled",ut=0,st=1,Xe=2,Le=1,De=2,te,ce,_e,Ue,xe=function(yt){var xt;return pe(yt)&&he(xt=yt.then)?xt:!1},Se=function(yt,xt){var vt=xt.value,Tt=xt.state==st,bt=Tt?yt.ok:yt.fail,ft=yt.resolve,Dt=yt.reject,At=yt.domain,Mt,$t,pr;try{bt?(Tt||(xt.rejection===De&&dt(xt),xt.rejection=Le),bt===!0?Mt=vt:(At&&At.enter(),Mt=bt(vt),At&&(At.exit(),pr=!0)),Mt===yt.promise?Dt(qe("Promise-chain cycle")):($t=xe(Mt))?ee($t,Mt,ft,Dt):ft(Mt)):Dt(vt)}catch(qt){At&&!pr&&At.exit(),Dt(qt)}},Oe=function(yt,xt){yt.notified||(yt.notified=!0,Te(function(){for(var vt=yt.reactions,Tt;Tt=vt.get();)Se(Tt,yt);yt.notified=!1,xt&&!yt.rejection&&et(yt)}))},We=function(yt,xt,vt){var Tt,bt;ze?(Tt=rt.createEvent("Event"),Tt.promise=xt,Tt.reason=vt,Tt.initEvent(yt,!1,!0),ae.dispatchEvent(Tt)):Tt={promise:xt,reason:vt},!Pe&&(bt=ae["on"+yt])?bt(Tt):yt===at&&je("Unhandled promise rejection",vt)},et=function(yt){ee(we,ae,function(){var xt=yt.facade,vt=yt.value,Tt=nt(yt),bt;if(Tt&&(bt=Me(function(){se?tt.emit("unhandledRejection",vt,xt):We(at,xt,vt)}),yt.rejection=se||nt(yt)?De:Le,bt.error))throw bt.value})},nt=function(yt){return yt.rejection!==Le&&!yt.parent},dt=function(yt){ee(we,ae,function(){var xt=yt.facade;se?tt.emit("rejectionHandled",xt):We(Qe,xt,yt.value)})},ct=function(yt,xt,vt){return function(Tt){yt(xt,Tt,vt)}},pt=function(yt,xt,vt){yt.done||(yt.done=!0,vt&&(yt=vt),yt.value=xt,yt.state=Xe,Oe(yt,!0))},St=function(yt,xt,vt){if(!yt.done){yt.done=!0,vt&&(yt=vt);try{if(yt.facade===xt)throw qe("Promise can't be resolved itself");var Tt=xe(xt);Tt?Te(function(){var bt={done:!1};try{ee(Tt,xt,ct(St,bt,yt),ct(pt,bt,yt))}catch(ft){pt(bt,ft,yt)}}):(yt.value=xt,yt.state=st,Oe(yt,!1))}catch(bt){pt({done:!1},bt,yt)}}};if(ke&&(Ne=function(xt){ve(this,Fe),ue(xt),ee(te,this);var vt=He(this);try{xt(ct(St,vt),ct(pt,vt))}catch(Tt){pt(vt,Tt)}},Fe=Ne.prototype,te=function(xt){$e(this,{type:Ie,done:!1,notified:!1,parent:!1,reactions:new Ae,rejection:!1,state:ut,value:void 0})},te.prototype=E(Fe,{then:function(xt,vt){var Tt=He(this),bt=Ve(de(this,Ne));return Tt.parent=!0,bt.ok=he(xt)?xt:!0,bt.fail=he(vt)&&vt,bt.domain=se?tt.domain:void 0,Tt.state==ut?Tt.reactions.add(bt):Te(function(){Se(bt,Tt)}),bt.promise}}),ce=function(){var yt=new te,xt=He(yt);this.promise=yt,this.resolve=ct(St,xt),this.reject=ct(pt,xt)},Re.f=Ve=function(yt){return yt===Ne||yt===_e?new ce(yt):Ke(yt)},!z&&he(be)&&it!==Object.prototype)){Ue=it.then,Ze||fe(it,"then",function(xt,vt){var Tt=this;return new Ne(function(bt,ft){ee(Ue,Tt,bt,ft)}).then(xt,vt)},{unsafe:!0});try{delete it.constructor}catch(yt){}re&&re(it,Fe)}x({global:!0,wrap:!0,forced:ke},{Promise:Ne}),ne(Ne,Ie,!1,!0),le(Ie)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(y,Ce,ye){y("../modules/es.promise.constructor"),y("../modules/es.promise.all"),y("../modules/es.promise.catch"),y("../modules/es.promise.race"),y("../modules/es.promise.reject"),y("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),se=y("../internals/a-callable"),ae=y("../internals/new-promise-capability"),ee=y("../internals/perform"),fe=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{race:function(ne){var le=this,ue=ae.f(le),he=ue.reject,pe=ee(function(){var ve=se(le.resolve);fe(ne,function(de){z(ve,le,de).then(ue.resolve,he)})});return pe.error&&he(pe.value),ue.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),se=y("../internals/new-promise-capability"),ae=y("../internals/promise-constructor-detection").CONSTRUCTOR;x({target:"Promise",stat:!0,forced:ae},{reject:function(fe){var E=se.f(this);return z(E.reject,void 0,fe),E.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/get-built-in"),se=y("../internals/is-pure"),ae=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,fe=y("../internals/promise-resolve"),E=z("Promise"),re=se&&!ee;x({target:"Promise",stat:!0,forced:se||ee},{resolve:function(le){return fe(re&&this===E?ae:this,le)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(y,Ce,ye){var x=y("../internals/descriptors"),z=y("../internals/global"),se=y("../internals/function-uncurry-this"),ae=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),fe=y("../internals/create-non-enumerable-property"),E=y("../internals/object-get-own-property-names").f,re=y("../internals/object-is-prototype-of"),ne=y("../internals/is-regexp"),le=y("../internals/to-string"),ue=y("../internals/regexp-get-flags"),he=y("../internals/regexp-sticky-helpers"),pe=y("../internals/proxy-accessor"),ve=y("../internals/redefine"),de=y("../internals/fails"),we=y("../internals/has-own-property"),Te=y("../internals/internal-state").enforce,je=y("../internals/set-species"),Me=y("../internals/well-known-symbol"),Ae=y("../internals/regexp-unsupported-dot-all"),ge=y("../internals/regexp-unsupported-ncg"),be=Me("match"),Ee=z.RegExp,Re=Ee.prototype,Ie=z.SyntaxError,ke=se(Re.exec),Pe=se("".charAt),Ze=se("".replace),He=se("".indexOf),$e=se("".slice),it=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ne=/a/g,Fe=/a/g,qe=new Ee(Ne)!==Ne,rt=he.MISSED_STICKY,tt=he.UNSUPPORTED_Y,Ve=x&&(!qe||rt||Ae||ge||de(function(){return Fe[be]=!1,Ee(Ne)!=Ne||Ee(Fe)==Fe||Ee(Ne,"i")!="/a/i"})),Ke=function(st){for(var Xe=st.length,Le=0,De="",te=!1,ce;Le<=Xe;Le++){if(ce=Pe(st,Le),ce==="\\"){De+=ce+Pe(st,++Le);continue}!te&&ce==="."?De+="[\\s\\S]":(ce==="["?te=!0:ce==="]"&&(te=!1),De+=ce)}return De},ze=function(st){for(var Xe=st.length,Le=0,De="",te=[],ce={},_e=!1,Ue=!1,xe=0,Se="",Oe;Le<=Xe;Le++){if(Oe=Pe(st,Le),Oe==="\\")Oe=Oe+Pe(st,++Le);else if(Oe==="]")_e=!1;else if(!_e)switch(!0){case Oe==="[":_e=!0;break;case Oe==="(":ke(it,$e(st,Le+1))&&(Le+=2,Ue=!0),De+=Oe,xe++;continue;case(Oe===">"&&Ue):if(Se===""||we(ce,Se))throw new Ie("Invalid capture group name");ce[Se]=!0,te[te.length]=[Se,xe],Ue=!1,Se="";continue}Ue?Se+=Oe:De+=Oe}return[De,te]};if(ae("RegExp",Ve)){for(var at=function(Xe,Le){var De=re(Re,this),te=ne(Xe),ce=Le===void 0,_e=[],Ue=Xe,xe,Se,Oe,We,et,nt;if(!De&&te&&ce&&Xe.constructor===at)return Xe;if((te||re(Re,Xe))&&(Xe=Xe.source,ce&&(Le=ue(Ue))),Xe=Xe===void 0?"":le(Xe),Le=Le===void 0?"":le(Le),Ue=Xe,Ae&&"dotAll"in Ne&&(Se=!!Le&&He(Le,"s")>-1,Se&&(Le=Ze(Le,/s/g,""))),xe=Le,rt&&"sticky"in Ne&&(Oe=!!Le&&He(Le,"y")>-1,Oe&&tt&&(Le=Ze(Le,/y/g,""))),ge&&(We=ze(Xe),Xe=We[0],_e=We[1]),et=ee(Ee(Xe,Le),De?this:Re,at),(Se||Oe||_e.length)&&(nt=Te(et),Se&&(nt.dotAll=!0,nt.raw=at(Ke(Xe),xe)),Oe&&(nt.sticky=!0),_e.length&&(nt.groups=_e)),Xe!==Ue)try{fe(et,"source",Ue===""?"(?:)":Ue)}catch(dt){}return et},Qe=E(Ee),ut=0;Qe.length>ut;)pe(at,Ee,Qe[ut++]);Re.constructor=at,at.prototype=Re,ve(z,"RegExp",at)}je("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/regexp-exec");x({target:"RegExp",proto:!0,forced:/./.exec!==z},{exec:z})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(y,Ce,ye){"use strict";var x=y("../internals/function-name").PROPER,z=y("../internals/redefine"),se=y("../internals/an-object"),ae=y("../internals/to-string"),ee=y("../internals/fails"),fe=y("../internals/regexp-get-flags"),E="toString",re=RegExp.prototype,ne=re[E],le=ee(function(){return ne.call({source:"a",flags:"b"})!="/a/b"}),ue=x&&ne.name!=E;(le||ue)&&z(RegExp.prototype,E,function(){var pe=se(this),ve=ae(pe.source),de=ae(fe(pe));return"/"+ve+"/"+de},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),se=y("../internals/not-a-regexp"),ae=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),fe=y("../internals/correct-is-regexp-logic"),E=z("".indexOf);x({target:"String",proto:!0,forced:!fe("includes")},{includes:function(ne){return!!~E(ee(ae(this)),ee(se(ne)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(y,Ce,ye){"use strict";var x=y("../internals/string-multibyte").charAt,z=y("../internals/to-string"),se=y("../internals/internal-state"),ae=y("../internals/define-iterator"),ee="String Iterator",fe=se.set,E=se.getterFor(ee);ae(String,"String",function(re){fe(this,{type:ee,string:z(re),index:0})},function(){var ne=E(this),le=ne.string,ue=ne.index,he;return ue>=le.length?{value:void 0,done:!0}:(he=x(le,ue),ne.index+=he.length,{value:he,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(y,Ce,ye){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),se=y("../internals/an-object"),ae=y("../internals/to-length"),ee=y("../internals/to-string"),fe=y("../internals/require-object-coercible"),E=y("../internals/get-method"),re=y("../internals/advance-string-index"),ne=y("../internals/regexp-exec-abstract");z("match",function(le,ue,he){return[function(ve){var de=fe(this),we=ve==null?void 0:E(ve,le);return we?x(we,ve,de):new RegExp(ve)[le](ee(de))},function(pe){var ve=se(this),de=ee(pe),we=he(ue,ve,de);if(we.done)return we.value;if(!ve.global)return ne(ve,de);var Te=ve.unicode;ve.lastIndex=0;for(var je=[],Me=0,Ae;(Ae=ne(ve,de))!==null;){var ge=ee(Ae[0]);je[Me]=ge,ge===""&&(ve.lastIndex=re(de,ae(ve.lastIndex),Te)),Me++}return Me===0?null:je}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(y,Ce,ye){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),se=y("../internals/function-uncurry-this"),ae=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),fe=y("../internals/an-object"),E=y("../internals/is-callable"),re=y("../internals/to-integer-or-infinity"),ne=y("../internals/to-length"),le=y("../internals/to-string"),ue=y("../internals/require-object-coercible"),he=y("../internals/advance-string-index"),pe=y("../internals/get-method"),ve=y("../internals/get-substitution"),de=y("../internals/regexp-exec-abstract"),we=y("../internals/well-known-symbol"),Te=we("replace"),je=Math.max,Me=Math.min,Ae=se([].concat),ge=se([].push),be=se("".indexOf),Ee=se("".slice),Re=function(Ze){return Ze===void 0?Ze:String(Ze)},Ie=function(){return"a".replace(/./,"$0")==="$0"}(),ke=function(){return/./[Te]?/./[Te]("a","$0")==="":!1}(),Pe=!ee(function(){var Ze=/./;return Ze.exec=function(){var He=[];return He.groups={a:"7"},He},"".replace(Ze,"$<a>")!=="7"});ae("replace",function(Ze,He,$e){var it=ke?"$":"$0";return[function(Fe,qe){var rt=ue(this),tt=Fe==null?void 0:pe(Fe,Te);return tt?z(tt,Fe,rt,qe):z(He,le(rt),Fe,qe)},function(Ne,Fe){var qe=fe(this),rt=le(Ne);if(typeof Fe=="string"&&be(Fe,it)===-1&&be(Fe,"$<")===-1){var tt=$e(He,qe,rt,Fe);if(tt.done)return tt.value}var Ve=E(Fe);Ve||(Fe=le(Fe));var Ke=qe.global;if(Ke){var ze=qe.unicode;qe.lastIndex=0}for(var at=[];;){var Qe=de(qe,rt);if(Qe===null||(ge(at,Qe),!Ke))break;var ut=le(Qe[0]);ut===""&&(qe.lastIndex=he(rt,ne(qe.lastIndex),ze))}for(var st="",Xe=0,Le=0;Le<at.length;Le++){Qe=at[Le];for(var De=le(Qe[0]),te=je(Me(re(Qe.index),rt.length),0),ce=[],_e=1;_e<Qe.length;_e++)ge(ce,Re(Qe[_e]));var Ue=Qe.groups;if(Ve){var xe=Ae([De],ce,te,rt);Ue!==void 0&&ge(xe,Ue);var Se=le(x(Fe,void 0,xe))}else Se=ve(De,rt,te,ce,Ue,Fe);te>=Xe&&(st+=Ee(rt,Xe,te)+Se,Xe=te+De.length)}return st+Ee(rt,Xe)}]},!Pe||!Ie||ke)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(y,Ce,ye){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),se=y("../internals/an-object"),ae=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),fe=y("../internals/to-string"),E=y("../internals/get-method"),re=y("../internals/regexp-exec-abstract");z("search",function(ne,le,ue){return[function(pe){var ve=ae(this),de=pe==null?void 0:E(pe,ne);return de?x(de,pe,ve):new RegExp(pe)[ne](fe(ve))},function(he){var pe=se(this),ve=fe(he),de=ue(le,pe,ve);if(de.done)return de.value;var we=pe.lastIndex;ee(we,0)||(pe.lastIndex=0);var Te=re(pe,ve);return ee(pe.lastIndex,we)||(pe.lastIndex=we),Te===null?-1:Te.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(y,Ce,ye){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),se=y("../internals/function-uncurry-this"),ae=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),fe=y("../internals/an-object"),E=y("../internals/require-object-coercible"),re=y("../internals/species-constructor"),ne=y("../internals/advance-string-index"),le=y("../internals/to-length"),ue=y("../internals/to-string"),he=y("../internals/get-method"),pe=y("../internals/array-slice-simple"),ve=y("../internals/regexp-exec-abstract"),de=y("../internals/regexp-exec"),we=y("../internals/regexp-sticky-helpers"),Te=y("../internals/fails"),je=we.UNSUPPORTED_Y,Me=4294967295,Ae=Math.min,ge=[].push,be=se(/./.exec),Ee=se(ge),Re=se("".slice),Ie=!Te(function(){var ke=/(?:)/,Pe=ke.exec;ke.exec=function(){return Pe.apply(this,arguments)};var Ze="ab".split(ke);return Ze.length!==2||Ze[0]!=="a"||Ze[1]!=="b"});ae("split",function(ke,Pe,Ze){var He;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?He=function($e,it){var Ne=ue(E(this)),Fe=it===void 0?Me:it>>>0;if(Fe===0)return[];if($e===void 0)return[Ne];if(!ee($e))return z(Pe,Ne,$e,Fe);for(var qe=[],rt=($e.ignoreCase?"i":"")+($e.multiline?"m":"")+($e.unicode?"u":"")+($e.sticky?"y":""),tt=0,Ve=new RegExp($e.source,rt+"g"),Ke,ze,at;(Ke=z(de,Ve,Ne))&&(ze=Ve.lastIndex,!(ze>tt&&(Ee(qe,Re(Ne,tt,Ke.index)),Ke.length>1&&Ke.index<Ne.length&&x(ge,qe,pe(Ke,1)),at=Ke[0].length,tt=ze,qe.length>=Fe)));)Ve.lastIndex===Ke.index&&Ve.lastIndex++;return tt===Ne.length?(at||!be(Ve,""))&&Ee(qe,""):Ee(qe,Re(Ne,tt)),qe.length>Fe?pe(qe,0,Fe):qe}:"0".split(void 0,0).length?He=function($e,it){return $e===void 0&&it===0?[]:z(Pe,this,$e,it)}:He=Pe,[function(it,Ne){var Fe=E(this),qe=it==null?void 0:he(it,ke);return qe?z(qe,it,Fe,Ne):z(He,ue(Fe),it,Ne)},function($e,it){var Ne=fe(this),Fe=ue($e),qe=Ze(He,Ne,Fe,it,He!==Pe);if(qe.done)return qe.value;var rt=re(Ne,RegExp),tt=Ne.unicode,Ve=(Ne.ignoreCase?"i":"")+(Ne.multiline?"m":"")+(Ne.unicode?"u":"")+(je?"g":"y"),Ke=new rt(je?"^(?:"+Ne.source+")":Ne,Ve),ze=it===void 0?Me:it>>>0;if(ze===0)return[];if(Fe.length===0)return ve(Ke,Fe)===null?[Fe]:[];for(var at=0,Qe=0,ut=[];Qe<Fe.length;){Ke.lastIndex=je?0:Qe;var st=ve(Ke,je?Re(Fe,Qe):Fe),Xe;if(st===null||(Xe=Ae(le(Ke.lastIndex+(je?Qe:0)),Fe.length))===at)Qe=ne(Fe,Qe,tt);else{if(Ee(ut,Re(Fe,at,Qe)),ut.length===ze)return ut;for(var Le=1;Le<=st.length-1;Le++)if(Ee(ut,st[Le]),ut.length===ze)return ut;Qe=at=Xe}}return Ee(ut,Re(Fe,at)),ut}]},!Ie,je)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/string-trim").trim,se=y("../internals/string-trim-forced");x({target:"String",proto:!0,forced:se("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/global"),se=y("../internals/function-call"),ae=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),fe=y("../internals/descriptors"),E=y("../internals/native-symbol"),re=y("../internals/fails"),ne=y("../internals/has-own-property"),le=y("../internals/object-is-prototype-of"),ue=y("../internals/an-object"),he=y("../internals/to-indexed-object"),pe=y("../internals/to-property-key"),ve=y("../internals/to-string"),de=y("../internals/create-property-descriptor"),we=y("../internals/object-create"),Te=y("../internals/object-keys"),je=y("../internals/object-get-own-property-names"),Me=y("../internals/object-get-own-property-names-external"),Ae=y("../internals/object-get-own-property-symbols"),ge=y("../internals/object-get-own-property-descriptor"),be=y("../internals/object-define-property"),Ee=y("../internals/object-define-properties"),Re=y("../internals/object-property-is-enumerable"),Ie=y("../internals/redefine"),ke=y("../internals/shared"),Pe=y("../internals/shared-key"),Ze=y("../internals/hidden-keys"),He=y("../internals/uid"),$e=y("../internals/well-known-symbol"),it=y("../internals/well-known-symbol-wrapped"),Ne=y("../internals/define-well-known-symbol"),Fe=y("../internals/symbol-define-to-primitive"),qe=y("../internals/set-to-string-tag"),rt=y("../internals/internal-state"),tt=y("../internals/array-iteration").forEach,Ve=Pe("hidden"),Ke="Symbol",ze="prototype",at=rt.set,Qe=rt.getterFor(Ke),ut=Object[ze],st=z.Symbol,Xe=st&&st[ze],Le=z.TypeError,De=z.QObject,te=ge.f,ce=be.f,_e=Me.f,Ue=Re.f,xe=ae([].push),Se=ke("symbols"),Oe=ke("op-symbols"),We=ke("wks"),et=!De||!De[ze]||!De[ze].findChild,nt=fe&&re(function(){return we(ce({},"a",{get:function(){return ce(this,"a",{value:7}).a}})).a!=7})?function(bt,ft,Dt){var At=te(ut,ft);At&&delete ut[ft],ce(bt,ft,Dt),At&&bt!==ut&&ce(ut,ft,At)}:ce,dt=function(bt,ft){var Dt=Se[bt]=we(Xe);return at(Dt,{type:Ke,tag:bt,description:ft}),fe||(Dt.description=ft),Dt},ct=function(ft,Dt,At){ft===ut&&ct(Oe,Dt,At),ue(ft);var Mt=pe(Dt);return ue(At),ne(Se,Mt)?(At.enumerable?(ne(ft,Ve)&&ft[Ve][Mt]&&(ft[Ve][Mt]=!1),At=we(At,{enumerable:de(0,!1)})):(ne(ft,Ve)||ce(ft,Ve,de(1,{})),ft[Ve][Mt]=!0),nt(ft,Mt,At)):ce(ft,Mt,At)},pt=function(ft,Dt){ue(ft);var At=he(Dt),Mt=Te(At).concat(Tt(At));return tt(Mt,function($t){(!fe||se(yt,At,$t))&&ct(ft,$t,At[$t])}),ft},St=function(ft,Dt){return Dt===void 0?we(ft):pt(we(ft),Dt)},yt=function(ft){var Dt=pe(ft),At=se(Ue,this,Dt);return this===ut&&ne(Se,Dt)&&!ne(Oe,Dt)?!1:At||!ne(this,Dt)||!ne(Se,Dt)||ne(this,Ve)&&this[Ve][Dt]?At:!0},xt=function(ft,Dt){var At=he(ft),Mt=pe(Dt);if(!(At===ut&&ne(Se,Mt)&&!ne(Oe,Mt))){var $t=te(At,Mt);return $t&&ne(Se,Mt)&&!(ne(At,Ve)&&At[Ve][Mt])&&($t.enumerable=!0),$t}},vt=function(ft){var Dt=_e(he(ft)),At=[];return tt(Dt,function(Mt){!ne(Se,Mt)&&!ne(Ze,Mt)&&xe(At,Mt)}),At},Tt=function(bt){var ft=bt===ut,Dt=_e(ft?Oe:he(bt)),At=[];return tt(Dt,function(Mt){ne(Se,Mt)&&(!ft||ne(ut,Mt))&&xe(At,Se[Mt])}),At};E||(st=function(){if(le(Xe,this))throw Le("Symbol is not a constructor");var ft=!arguments.length||arguments[0]===void 0?void 0:ve(arguments[0]),Dt=He(ft),At=function(Mt){this===ut&&se(At,Oe,Mt),ne(this,Ve)&&ne(this[Ve],Dt)&&(this[Ve][Dt]=!1),nt(this,Dt,de(1,Mt))};return fe&&et&&nt(ut,Dt,{configurable:!0,set:At}),dt(Dt,ft)},Xe=st[ze],Ie(Xe,"toString",function(){return Qe(this).tag}),Ie(st,"withoutSetter",function(bt){return dt(He(bt),bt)}),Re.f=yt,be.f=ct,Ee.f=pt,ge.f=xt,je.f=Me.f=vt,Ae.f=Tt,it.f=function(bt){return dt($e(bt),bt)},fe&&(ce(Xe,"description",{configurable:!0,get:function(){return Qe(this).description}}),ee||Ie(ut,"propertyIsEnumerable",yt,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:st}),tt(Te(We),function(bt){Ne(bt)}),x({target:Ke,stat:!0,forced:!E},{useSetter:function(){et=!0},useSimple:function(){et=!1}}),x({target:"Object",stat:!0,forced:!E,sham:!fe},{create:St,defineProperty:ct,defineProperties:pt,getOwnPropertyDescriptor:xt}),x({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:vt}),Fe(),qe(st,Ke),Ze[Ve]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(y,Ce,ye){"use strict";var x=y("../internals/export"),z=y("../internals/descriptors"),se=y("../internals/global"),ae=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),fe=y("../internals/is-callable"),E=y("../internals/object-is-prototype-of"),re=y("../internals/to-string"),ne=y("../internals/object-define-property").f,le=y("../internals/copy-constructor-properties"),ue=se.Symbol,he=ue&&ue.prototype;if(z&&fe(ue)&&(!("description"in he)||ue().description!==void 0)){var pe={},ve=function(){var be=arguments.length<1||arguments[0]===void 0?void 0:re(arguments[0]),Ee=E(he,this)?new ue(be):be===void 0?ue():ue(be);return be===""&&(pe[Ee]=!0),Ee};le(ve,ue),ve.prototype=he,he.constructor=ve;var de=String(ue("test"))=="Symbol(test)",we=ae(he.toString),Te=ae(he.valueOf),je=/^Symbol\((.*)\)[^)]+$/,Me=ae("".replace),Ae=ae("".slice);ne(he,"description",{configurable:!0,get:function(){var be=Te(this),Ee=we(be);if(ee(pe,be))return"";var Re=de?Ae(Ee,7,-1):Me(Ee,je,"$1");return Re===""?void 0:Re}}),x({global:!0,forced:!0},{Symbol:ve})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/get-built-in"),se=y("../internals/has-own-property"),ae=y("../internals/to-string"),ee=y("../internals/shared"),fe=y("../internals/native-symbol-registry"),E=ee("string-to-symbol-registry"),re=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!fe},{for:function(ne){var le=ae(ne);if(se(E,le))return E[le];var ue=z("Symbol")(le);return E[le]=ue,re[ue]=le,ue}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(y,Ce,ye){var x=y("../internals/define-well-known-symbol");x("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,Ce,ye){y("../modules/es.symbol.constructor"),y("../modules/es.symbol.for"),y("../modules/es.symbol.key-for"),y("../modules/es.json.stringify"),y("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(y,Ce,ye){var x=y("../internals/export"),z=y("../internals/has-own-property"),se=y("../internals/is-symbol"),ae=y("../internals/try-to-string"),ee=y("../internals/shared"),fe=y("../internals/native-symbol-registry"),E=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!fe},{keyFor:function(ne){if(!se(ne))throw TypeError(ae(ne)+" is not a symbol");if(z(E,ne))return E[ne]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(y,Ce,ye){"use strict";var x=y("../internals/function-uncurry-this"),z=y("../internals/array-buffer-view-core"),se=y("../internals/array-copy-within"),ae=x(se),ee=z.aTypedArray,fe=z.exportTypedArrayMethod;fe("copyWithin",function(re,ne){return ae(ee(this),re,ne,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").every,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("every",function(fe){return z(se(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-call"),se=y("../internals/array-fill"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("fill",function(E){var re=arguments.length;return z(se,ae(this),E,re>1?arguments[1]:void 0,re>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").filter,se=y("../internals/typed-array-from-species-and-list"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("filter",function(E){var re=z(ae(this),E,arguments.length>1?arguments[1]:void 0);return se(this,re)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").findIndex,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("findIndex",function(fe){return z(se(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").find,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("find",function(fe){return z(se(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").forEach,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("forEach",function(fe){z(se(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").includes,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("includes",function(fe){return z(se(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").indexOf,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("indexOf",function(fe){return z(se(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,Ce,ye){"use strict";var x=y("../internals/global"),z=y("../internals/fails"),se=y("../internals/function-uncurry-this"),ae=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),fe=y("../internals/well-known-symbol"),E=fe("iterator"),re=x.Uint8Array,ne=se(ee.values),le=se(ee.keys),ue=se(ee.entries),he=ae.aTypedArray,pe=ae.exportTypedArrayMethod,ve=re&&re.prototype,de=!z(function(){ve[E].call([1])}),we=!!ve&&ve.values&&ve[E]===ve.values&&ve.values.name==="values",Te=function(){return ne(he(this))};pe("entries",function(){return ue(he(this))},de),pe("keys",function(){return le(he(this))},de),pe("values",Te,de||!we,{name:"values"}),pe(E,Te,de||!we,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-uncurry-this"),se=x.aTypedArray,ae=x.exportTypedArrayMethod,ee=z([].join);ae("join",function(E){return ee(se(this),E)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-apply"),se=y("../internals/array-last-index-of"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("lastIndexOf",function(E){var re=arguments.length;return z(se,ae(this),re>1?[E,arguments[1]]:[E])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").map,se=y("../internals/typed-array-species-constructor"),ae=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("map",function(E){return z(ae(this),E,arguments.length>1?arguments[1]:void 0,function(re,ne){return new(se(re))(ne)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").right,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("reduceRight",function(fe){var E=arguments.length;return z(se(this),fe,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").left,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("reduce",function(fe){var E=arguments.length;return z(se(this),fe,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=x.aTypedArray,se=x.exportTypedArrayMethod,ae=Math.floor;se("reverse",function(){for(var fe=this,E=z(fe).length,re=ae(E/2),ne=0,le;ne<re;)le=fe[ne],fe[ne++]=fe[--E],fe[E]=le;return fe})},{"../internals/array-buffer-view-core":103}],331:[function(y,Ce,ye){"use strict";var x=y("../internals/global"),z=y("../internals/function-call"),se=y("../internals/array-buffer-view-core"),ae=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),fe=y("../internals/to-object"),E=y("../internals/fails"),re=x.RangeError,ne=x.Int8Array,le=ne&&ne.prototype,ue=le&&le.set,he=se.aTypedArray,pe=se.exportTypedArrayMethod,ve=!E(function(){var we=new Uint8ClampedArray(2);return z(ue,we,{length:1,0:3},1),we[1]!==3}),de=ve&&se.NATIVE_ARRAY_BUFFER_VIEWS&&E(function(){var we=new ne(2);return we.set(1),we.set("2",1),we[0]!==0||we[1]!==2});pe("set",function(Te){he(this);var je=ee(arguments.length>1?arguments[1]:void 0,1),Me=fe(Te);if(ve)return z(ue,this,Me,je);var Ae=this.length,ge=ae(Me),be=0;if(ge+je>Ae)throw re("Wrong length");for(;be<ge;)this[je+be]=Me[be++]},!ve||de)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/typed-array-species-constructor"),se=y("../internals/fails"),ae=y("../internals/array-slice"),ee=x.aTypedArray,fe=x.exportTypedArrayMethod,E=se(function(){new Int8Array(1).slice()});fe("slice",function(ne,le){for(var ue=ae(ee(this),ne,le),he=z(this),pe=0,ve=ue.length,de=new he(ve);ve>pe;)de[pe]=ue[pe++];return de},E)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").some,se=x.aTypedArray,ae=x.exportTypedArrayMethod;ae("some",function(fe){return z(se(this),fe,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,Ce,ye){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),se=y("../internals/fails"),ae=y("../internals/a-callable"),ee=y("../internals/array-sort"),fe=y("../internals/array-buffer-view-core"),E=y("../internals/engine-ff-version"),re=y("../internals/engine-is-ie-or-edge"),ne=y("../internals/engine-v8-version"),le=y("../internals/engine-webkit-version"),ue=fe.aTypedArray,he=fe.exportTypedArrayMethod,pe=x.Uint16Array,ve=pe&&z(pe.prototype.sort),de=!!ve&&!(se(function(){ve(new pe(2),null)})&&se(function(){ve(new pe(2),{})})),we=!!ve&&!se(function(){if(ne)return ne<74;if(E)return E<67;if(re)return!0;if(le)return le<602;var je=new pe(516),Me=Array(516),Ae,ge;for(Ae=0;Ae<516;Ae++)ge=Ae%4,je[Ae]=515-Ae,Me[Ae]=Ae-2*ge+3;for(ve(je,function(be,Ee){return(be/4|0)-(Ee/4|0)}),Ae=0;Ae<516;Ae++)if(je[Ae]!==Me[Ae])return!0}),Te=function(je){return function(Me,Ae){return je!==void 0?+je(Me,Ae)||0:Ae!==Ae?-1:Me!==Me?1:Me===0&&Ae===0?1/Me>0&&1/Ae<0?1:-1:Me>Ae}};he("sort",function(Me){return Me!==void 0&&ae(Me),we?ve(this,Me):ee(ue(this),Te(Me))},!we||de)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/to-length"),se=y("../internals/to-absolute-index"),ae=y("../internals/typed-array-species-constructor"),ee=x.aTypedArray,fe=x.exportTypedArrayMethod;fe("subarray",function(re,ne){var le=ee(this),ue=le.length,he=se(re,ue),pe=ae(le);return new pe(le.buffer,le.byteOffset+he*le.BYTES_PER_ELEMENT,z((ne===void 0?ue:se(ne,ue))-he))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(y,Ce,ye){"use strict";var x=y("../internals/global"),z=y("../internals/function-apply"),se=y("../internals/array-buffer-view-core"),ae=y("../internals/fails"),ee=y("../internals/array-slice"),fe=x.Int8Array,E=se.aTypedArray,re=se.exportTypedArrayMethod,ne=[].toLocaleString,le=!!fe&&ae(function(){ne.call(new fe(1))}),ue=ae(function(){return[1,2].toLocaleString()!=new fe([1,2]).toLocaleString()})||!ae(function(){fe.prototype.toLocaleString.call([1,2])});re("toLocaleString",function(){return z(ne,le?ee(E(this)):E(this),ee(arguments))},ue)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(y,Ce,ye){"use strict";var x=y("../internals/array-buffer-view-core").exportTypedArrayMethod,z=y("../internals/fails"),se=y("../internals/global"),ae=y("../internals/function-uncurry-this"),ee=se.Uint8Array,fe=ee&&ee.prototype||{},E=[].toString,re=ae([].join);z(function(){E.call({})})&&(E=function(){return re(this)});var ne=fe.toString!=E;x("toString",E,ne)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,Ce,ye){var x=y("../internals/typed-array-constructor");x("Uint8",function(z){return function(ae,ee,fe){return z(this,ae,ee,fe)}})},{"../internals/typed-array-constructor":258}],339:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/dom-iterables"),se=y("../internals/dom-token-list-prototype"),ae=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),fe=function(re){if(re&&re.forEach!==ae)try{ee(re,"forEach",ae)}catch(ne){re.forEach=ae}};for(var E in z)z[E]&&fe(x[E]&&x[E].prototype);fe(se)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(y,Ce,ye){var x=y("../internals/global"),z=y("../internals/dom-iterables"),se=y("../internals/dom-token-list-prototype"),ae=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),fe=y("../internals/well-known-symbol"),E=fe("iterator"),re=fe("toStringTag"),ne=ae.values,le=function(he,pe){if(he){if(he[E]!==ne)try{ee(he,E,ne)}catch(de){he[E]=ne}if(he[re]||ee(he,re,pe),z[pe]){for(var ve in ae)if(he[ve]!==ae[ve])try{ee(he,ve,ae[ve])}catch(de){he[ve]=ae[ve]}}}};for(var ue in z)le(x[ue]&&x[ue].prototype,ue);le(se,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(y,Ce,ye){function x(we){return Array.isArray?Array.isArray(we):de(we)==="[object Array]"}ye.isArray=x;function z(we){return typeof we=="boolean"}ye.isBoolean=z;function se(we){return we===null}ye.isNull=se;function ae(we){return we==null}ye.isNullOrUndefined=ae;function ee(we){return typeof we=="number"}ye.isNumber=ee;function fe(we){return typeof we=="string"}ye.isString=fe;function E(we){return typeof we=="symbol"}ye.isSymbol=E;function re(we){return we===void 0}ye.isUndefined=re;function ne(we){return de(we)==="[object RegExp]"}ye.isRegExp=ne;function le(we){return typeof we=="object"&&we!==null}ye.isObject=le;function ue(we){return de(we)==="[object Date]"}ye.isDate=ue;function he(we){return de(we)==="[object Error]"||we instanceof Error}ye.isError=he;function pe(we){return typeof we=="function"}ye.isFunction=pe;function ve(we){return we===null||typeof we=="boolean"||typeof we=="number"||typeof we=="string"||typeof we=="symbol"||typeof we=="undefined"}ye.isPrimitive=ve,ye.isBuffer=y("buffer").Buffer.isBuffer;function de(we){return Object.prototype.toString.call(we)}},{buffer:90}],342:[function(y,Ce,ye){(function(x){"use strict";var z=function(){var E=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,re=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ne=/[^-+\dA-Z]/g;return function(le,ue,he,pe){if(arguments.length===1&&fe(le)==="string"&&!/\d/.test(le)&&(ue=le,le=void 0),le=le||new Date,le instanceof Date||(le=new Date(le)),isNaN(le))throw TypeError("Invalid date");ue=String(z.masks[ue]||ue||z.masks.default);var ve=ue.slice(0,4);(ve==="UTC:"||ve==="GMT:")&&(ue=ue.slice(4),he=!0,ve==="GMT:"&&(pe=!0));var de=he?"getUTC":"get",we=le[de+"Date"](),Te=le[de+"Day"](),je=le[de+"Month"](),Me=le[de+"FullYear"](),Ae=le[de+"Hours"](),ge=le[de+"Minutes"](),be=le[de+"Seconds"](),Ee=le[de+"Milliseconds"](),Re=he?0:le.getTimezoneOffset(),Ie=ae(le),ke=ee(le),Pe={d:we,dd:se(we),ddd:z.i18n.dayNames[Te],dddd:z.i18n.dayNames[Te+7],m:je+1,mm:se(je+1),mmm:z.i18n.monthNames[je],mmmm:z.i18n.monthNames[je+12],yy:String(Me).slice(2),yyyy:Me,h:Ae%12||12,hh:se(Ae%12||12),H:Ae,HH:se(Ae),M:ge,MM:se(ge),s:be,ss:se(be),l:se(Ee,3),L:se(Math.round(Ee/10)),t:Ae<12?"a":"p",tt:Ae<12?"am":"pm",T:Ae<12?"A":"P",TT:Ae<12?"AM":"PM",Z:pe?"GMT":he?"UTC":(String(le).match(re)||[""]).pop().replace(ne,""),o:(Re>0?"-":"+")+se(Math.floor(Math.abs(Re)/60)*100+Math.abs(Re)%60,4),S:["th","st","nd","rd"][we%10>3?0:(we%100-we%10!=10)*we%10],W:Ie,N:ke};return ue.replace(E,function(Ze){return Ze in Pe?Pe[Ze]:Ze.slice(1,Ze.length-1)})}}();z.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},z.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function se(E,re){for(E=String(E),re=re||2;E.length<re;)E="0"+E;return E}function ae(E){var re=new Date(E.getFullYear(),E.getMonth(),E.getDate());re.setDate(re.getDate()-(re.getDay()+6)%7+3);var ne=new Date(re.getFullYear(),0,4);ne.setDate(ne.getDate()-(ne.getDay()+6)%7+3);var le=re.getTimezoneOffset()-ne.getTimezoneOffset();re.setHours(re.getHours()-le);var ue=(re-ne)/(864e5*7);return 1+Math.floor(ue)}function ee(E){var re=E.getDay();return re===0&&(re=7),re}function fe(E){return E===null?"null":E===void 0?"undefined":typeof E!="object"?typeof E:Array.isArray(E)?"array":{}.toString.call(E).slice(8,-1).toLowerCase()}typeof Ge=="function"&&Ge.amd?Ge(function(){return z}):typeof ye=="object"?Ce.exports=z:x.dateFormat=z})(this)},{}],343:[function(y,Ce,ye){"use strict";var x=/["'&<>]/;Ce.exports=z;function z(se){var ae=""+se,ee=x.exec(ae);if(!ee)return ae;var fe,E="",re=0,ne=0;for(re=ee.index;re<ae.length;re++){switch(ae.charCodeAt(re)){case 34:fe="&quot;";break;case 38:fe="&amp;";break;case 39:fe="&#39;";break;case 60:fe="&lt;";break;case 62:fe="&gt;";break;default:continue}ne!==re&&(E+=ae.substring(ne,re)),ne=re+1,E+=fe}return ne!==re?E+ae.substring(ne,re):E}},{}],344:[function(y,Ce,ye){"use strict";var x=typeof Reflect=="object"?Reflect:null,z=x&&typeof x.apply=="function"?x.apply:function(be,Ee,Re){return Function.prototype.apply.call(be,Ee,Re)},se;x&&typeof x.ownKeys=="function"?se=x.ownKeys:Object.getOwnPropertySymbols?se=function(be){return Object.getOwnPropertyNames(be).concat(Object.getOwnPropertySymbols(be))}:se=function(be){return Object.getOwnPropertyNames(be)};function ae(ge){console&&console.warn&&console.warn(ge)}var ee=Number.isNaN||function(be){return be!==be};function fe(){fe.init.call(this)}Ce.exports=fe,Ce.exports.once=je,fe.EventEmitter=fe,fe.prototype._events=void 0,fe.prototype._eventsCount=0,fe.prototype._maxListeners=void 0;var E=10;function re(ge){if(typeof ge!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}Object.defineProperty(fe,"defaultMaxListeners",{enumerable:!0,get:function(){return E},set:function(ge){if(typeof ge!="number"||ge<0||ee(ge))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ge+".");E=ge}}),fe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},fe.prototype.setMaxListeners=function(be){if(typeof be!="number"||be<0||ee(be))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+be+".");return this._maxListeners=be,this};function ne(ge){return ge._maxListeners===void 0?fe.defaultMaxListeners:ge._maxListeners}fe.prototype.getMaxListeners=function(){return ne(this)},fe.prototype.emit=function(be){for(var Ee=[],Re=1;Re<arguments.length;Re++)Ee.push(arguments[Re]);var Ie=be==="error",ke=this._events;if(ke!==void 0)Ie=Ie&&ke.error===void 0;else if(!Ie)return!1;if(Ie){var Pe;if(Ee.length>0&&(Pe=Ee[0]),Pe instanceof Error)throw Pe;var Ze=new Error("Unhandled error."+(Pe?" ("+Pe.message+")":""));throw Ze.context=Pe,Ze}var He=ke[be];if(He===void 0)return!1;if(typeof He=="function")z(He,this,Ee);else for(var $e=He.length,it=de(He,$e),Re=0;Re<$e;++Re)z(it[Re],this,Ee);return!0};function le(ge,be,Ee,Re){var Ie,ke,Pe;if(re(Ee),ke=ge._events,ke===void 0?(ke=ge._events=Object.create(null),ge._eventsCount=0):(ke.newListener!==void 0&&(ge.emit("newListener",be,Ee.listener?Ee.listener:Ee),ke=ge._events),Pe=ke[be]),Pe===void 0)Pe=ke[be]=Ee,++ge._eventsCount;else if(typeof Pe=="function"?Pe=ke[be]=Re?[Ee,Pe]:[Pe,Ee]:Re?Pe.unshift(Ee):Pe.push(Ee),Ie=ne(ge),Ie>0&&Pe.length>Ie&&!Pe.warned){Pe.warned=!0;var Ze=new Error("Possible EventEmitter memory leak detected. "+Pe.length+" "+String(be)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ze.name="MaxListenersExceededWarning",Ze.emitter=ge,Ze.type=be,Ze.count=Pe.length,ae(Ze)}return ge}fe.prototype.addListener=function(be,Ee){return le(this,be,Ee,!1)},fe.prototype.on=fe.prototype.addListener,fe.prototype.prependListener=function(be,Ee){return le(this,be,Ee,!0)};function ue(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function he(ge,be,Ee){var Re={fired:!1,wrapFn:void 0,target:ge,type:be,listener:Ee},Ie=ue.bind(Re);return Ie.listener=Ee,Re.wrapFn=Ie,Ie}fe.prototype.once=function(be,Ee){return re(Ee),this.on(be,he(this,be,Ee)),this},fe.prototype.prependOnceListener=function(be,Ee){return re(Ee),this.prependListener(be,he(this,be,Ee)),this},fe.prototype.removeListener=function(be,Ee){var Re,Ie,ke,Pe,Ze;if(re(Ee),Ie=this._events,Ie===void 0)return this;if(Re=Ie[be],Re===void 0)return this;if(Re===Ee||Re.listener===Ee)--this._eventsCount===0?this._events=Object.create(null):(delete Ie[be],Ie.removeListener&&this.emit("removeListener",be,Re.listener||Ee));else if(typeof Re!="function"){for(ke=-1,Pe=Re.length-1;Pe>=0;Pe--)if(Re[Pe]===Ee||Re[Pe].listener===Ee){Ze=Re[Pe].listener,ke=Pe;break}if(ke<0)return this;ke===0?Re.shift():we(Re,ke),Re.length===1&&(Ie[be]=Re[0]),Ie.removeListener!==void 0&&this.emit("removeListener",be,Ze||Ee)}return this},fe.prototype.off=fe.prototype.removeListener,fe.prototype.removeAllListeners=function(be){var Ee,Re,Ie;if(Re=this._events,Re===void 0)return this;if(Re.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Re[be]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Re[be]),this;if(arguments.length===0){var ke=Object.keys(Re),Pe;for(Ie=0;Ie<ke.length;++Ie)Pe=ke[Ie],Pe!=="removeListener"&&this.removeAllListeners(Pe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ee=Re[be],typeof Ee=="function")this.removeListener(be,Ee);else if(Ee!==void 0)for(Ie=Ee.length-1;Ie>=0;Ie--)this.removeListener(be,Ee[Ie]);return this};function pe(ge,be,Ee){var Re=ge._events;if(Re===void 0)return[];var Ie=Re[be];return Ie===void 0?[]:typeof Ie=="function"?Ee?[Ie.listener||Ie]:[Ie]:Ee?Te(Ie):de(Ie,Ie.length)}fe.prototype.listeners=function(be){return pe(this,be,!0)},fe.prototype.rawListeners=function(be){return pe(this,be,!1)},fe.listenerCount=function(ge,be){return typeof ge.listenerCount=="function"?ge.listenerCount(be):ve.call(ge,be)},fe.prototype.listenerCount=ve;function ve(ge){var be=this._events;if(be!==void 0){var Ee=be[ge];if(typeof Ee=="function")return 1;if(Ee!==void 0)return Ee.length}return 0}fe.prototype.eventNames=function(){return this._eventsCount>0?se(this._events):[]};function de(ge,be){for(var Ee=new Array(be),Re=0;Re<be;++Re)Ee[Re]=ge[Re];return Ee}function we(ge,be){for(;be+1<ge.length;be++)ge[be]=ge[be+1];ge.pop()}function Te(ge){for(var be=new Array(ge.length),Ee=0;Ee<be.length;++Ee)be[Ee]=ge[Ee].listener||ge[Ee];return be}function je(ge,be){return new Promise(function(Ee,Re){function Ie(Pe){ge.removeListener(be,ke),Re(Pe)}function ke(){typeof ge.removeListener=="function"&&ge.removeListener("error",Ie),Ee([].slice.call(arguments))}Ae(ge,be,ke,{once:!0}),be!=="error"&&Me(ge,Ie,{once:!0})})}function Me(ge,be,Ee){typeof ge.on=="function"&&Ae(ge,"error",be,Ee)}function Ae(ge,be,Ee,Re){if(typeof ge.on=="function")Re.once?ge.once(be,Ee):ge.on(be,Ee);else if(typeof ge.addEventListener=="function")ge.addEventListener(be,function Ie(ke){Re.once&&ge.removeEventListener(be,Ie),Ee(ke)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ge)}},{}],345:[function(y,Ce,ye){"use strict";var x=y("is-callable"),z=Object.prototype.toString,se=Object.prototype.hasOwnProperty,ae=function(ne,le,ue){for(var he=0,pe=ne.length;he<pe;he++)se.call(ne,he)&&(ue==null?le(ne[he],he,ne):le.call(ue,ne[he],he,ne))},ee=function(ne,le,ue){for(var he=0,pe=ne.length;he<pe;he++)ue==null?le(ne.charAt(he),he,ne):le.call(ue,ne.charAt(he),he,ne)},fe=function(ne,le,ue){for(var he in ne)se.call(ne,he)&&(ue==null?le(ne[he],he,ne):le.call(ue,ne[he],he,ne))},E=function(ne,le,ue){if(!x(le))throw new TypeError("iterator must be a function");var he;arguments.length>=3&&(he=ue),z.call(ne)==="[object Array]"?ae(ne,le,he):typeof ne=="string"?ee(ne,le,he):fe(ne,le,he)};Ce.exports=E},{"is-callable":367}],346:[function(y,Ce,ye){"use strict";var x="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,se=Object.prototype.toString,ae="[object Function]";Ce.exports=function(fe){var E=this;if(typeof E!="function"||se.call(E)!==ae)throw new TypeError(x+E);for(var re=z.call(arguments,1),ne,le=function(){if(this instanceof ne){var de=E.apply(this,re.concat(z.call(arguments)));return Object(de)===de?de:this}else return E.apply(fe,re.concat(z.call(arguments)))},ue=Math.max(0,E.length-re.length),he=[],pe=0;pe<ue;pe++)he.push("$"+pe);if(ne=Function("binder","return function ("+he.join(",")+"){ return binder.apply(this,arguments); }")(le),E.prototype){var ve=function(){};ve.prototype=E.prototype,ne.prototype=new ve,ve.prototype=null}return ne}},{}],347:[function(y,Ce,ye){"use strict";var x=y("./implementation");Ce.exports=Function.prototype.bind||x},{"./implementation":346}],348:[function(y,Ce,ye){"use strict";var x,z=SyntaxError,se=Function,ae=TypeError,ee=function(He){try{return se('"use strict"; return ('+He+").constructor;")()}catch($e){}},fe=Object.getOwnPropertyDescriptor;if(fe)try{fe({},"")}catch(He){fe=null}var E=function(){throw new ae},re=fe?function(){try{return arguments.callee,E}catch(He){try{return fe(arguments,"callee").get}catch($e){return E}}}():E,ne=y("has-symbols")(),le=y("has-proto")(),ue=Object.getPrototypeOf||(le?function(He){return He.__proto__}:null),he={},pe=typeof Uint8Array=="undefined"||!ue?x:ue(Uint8Array),ve={"%AggregateError%":typeof AggregateError=="undefined"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x:ArrayBuffer,"%ArrayIteratorPrototype%":ne&&ue?ue([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics=="undefined"?x:Atomics,"%BigInt%":typeof BigInt=="undefined"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?x:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?x:FinalizationRegistry,"%Function%":se,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array=="undefined"?x:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?x:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ne&&ue?ue(ue([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map=="undefined"?x:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ne||!ue?x:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?x:Promise,"%Proxy%":typeof Proxy=="undefined"?x:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?x:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ne||!ue?x:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ne&&ue?ue(""[Symbol.iterator]()):x,"%Symbol%":ne?Symbol:x,"%SyntaxError%":z,"%ThrowTypeError%":re,"%TypedArray%":pe,"%TypeError%":ae,"%Uint8Array%":typeof Uint8Array=="undefined"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?x:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?x:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?x:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?x:WeakSet};if(ue)try{null.error}catch(He){var de=ue(ue(He));ve["%Error.prototype%"]=de}var we=function He($e){var it;if($e==="%AsyncFunction%")it=ee("async function () {}");else if($e==="%GeneratorFunction%")it=ee("function* () {}");else if($e==="%AsyncGeneratorFunction%")it=ee("async function* () {}");else if($e==="%AsyncGenerator%"){var Ne=He("%AsyncGeneratorFunction%");Ne&&(it=Ne.prototype)}else if($e==="%AsyncIteratorPrototype%"){var Fe=He("%AsyncGenerator%");Fe&&ue&&(it=ue(Fe.prototype))}return ve[$e]=it,it},Te={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},je=y("function-bind"),Me=y("has"),Ae=je.call(Function.call,Array.prototype.concat),ge=je.call(Function.apply,Array.prototype.splice),be=je.call(Function.call,String.prototype.replace),Ee=je.call(Function.call,String.prototype.slice),Re=je.call(Function.call,RegExp.prototype.exec),Ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,Pe=function($e){var it=Ee($e,0,1),Ne=Ee($e,-1);if(it==="%"&&Ne!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Ne==="%"&&it!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var Fe=[];return be($e,Ie,function(qe,rt,tt,Ve){Fe[Fe.length]=tt?be(Ve,ke,"$1"):rt||qe}),Fe},Ze=function($e,it){var Ne=$e,Fe;if(Me(Te,Ne)&&(Fe=Te[Ne],Ne="%"+Fe[0]+"%"),Me(ve,Ne)){var qe=ve[Ne];if(qe===he&&(qe=we(Ne)),typeof qe=="undefined"&&!it)throw new ae("intrinsic "+$e+" exists, but is not available. Please file an issue!");return{alias:Fe,name:Ne,value:qe}}throw new z("intrinsic "+$e+" does not exist!")};Ce.exports=function($e,it){if(typeof $e!="string"||$e.length===0)throw new ae("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof it!="boolean")throw new ae('"allowMissing" argument must be a boolean');if(Re(/^%?[^%]*%?$/,$e)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ne=Pe($e),Fe=Ne.length>0?Ne[0]:"",qe=Ze("%"+Fe+"%",it),rt=qe.name,tt=qe.value,Ve=!1,Ke=qe.alias;Ke&&(Fe=Ke[0],ge(Ne,Ae([0,1],Ke)));for(var ze=1,at=!0;ze<Ne.length;ze+=1){var Qe=Ne[ze],ut=Ee(Qe,0,1),st=Ee(Qe,-1);if((ut==='"'||ut==="'"||ut==="`"||st==='"'||st==="'"||st==="`")&&ut!==st)throw new z("property names with quotes must have matching quotes");if((Qe==="constructor"||!at)&&(Ve=!0),Fe+="."+Qe,rt="%"+Fe+"%",Me(ve,rt))tt=ve[rt];else if(tt!=null){if(!(Qe in tt)){if(!it)throw new ae("base intrinsic for "+$e+" exists, but the property is not available.");return}if(fe&&ze+1>=Ne.length){var Xe=fe(tt,Qe);at=!!Xe,at&&"get"in Xe&&!("originalValue"in Xe.get)?tt=Xe.get:tt=tt[Qe]}else at=Me(tt,Qe),tt=tt[Qe];at&&!Ve&&(ve[rt]=tt)}}return tt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,Ce,ye){"use strict";var x=y("get-intrinsic"),z=x("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(se){z=null}Ce.exports=z},{"get-intrinsic":348}],350:[function(y,Ce,ye){"use strict";var x={foo:{}},z=Object;Ce.exports=function(){return{__proto__:x}.foo===x.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(y,Ce,ye){"use strict";var x=typeof Symbol!="undefined"&&Symbol,z=y("./shams");Ce.exports=function(){return typeof x!="function"||typeof Symbol!="function"||typeof x("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(y,Ce,ye){"use strict";Ce.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},se=Symbol("test"),ae=Object(se);if(typeof se=="string"||Object.prototype.toString.call(se)!=="[object Symbol]"||Object.prototype.toString.call(ae)!=="[object Symbol]")return!1;var ee=42;z[se]=ee;for(se in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var fe=Object.getOwnPropertySymbols(z);if(fe.length!==1||fe[0]!==se||!Object.prototype.propertyIsEnumerable.call(z,se))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(z,se);if(E.value!==ee||E.enumerable!==!0)return!1}return!0}},{}],353:[function(y,Ce,ye){"use strict";var x=y("has-symbols/shams");Ce.exports=function(){return x()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,Ce,ye){"use strict";var x=y("function-bind");Ce.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,Ce,ye){var x=y("http"),z=y("url"),se=Ce.exports;for(var ae in x)x.hasOwnProperty(ae)&&(se[ae]=x[ae]);se.request=function(fe,E){return fe=ee(fe),x.request.call(this,fe,E)},se.get=function(fe,E){return fe=ee(fe),x.get.call(this,fe,E)};function ee(fe){if(typeof fe=="string"&&(fe=z.parse(fe)),fe.protocol||(fe.protocol="https:"),fe.protocol!=="https:")throw new Error('Protocol "'+fe.protocol+'" not supported. Expected "https:"');return fe}},{http:468,url:472}],356:[function(y,Ce,ye){"use strict";var x=y("util"),z=y("ms");Ce.exports=function(se){if(typeof se=="number")return se;var ae=z(se);if(ae===void 0){var ee=new Error(x.format("humanize-ms(%j) result undefined",se));console.warn(ee.stack)}return ae}},{ms:376,util:419}],357:[function(y,Ce,ye){ye.read=function(x,z,se,ae,ee){var fe,E,re=ee*8-ae-1,ne=(1<<re)-1,le=ne>>1,ue=-7,he=se?ee-1:0,pe=se?-1:1,ve=x[z+he];for(he+=pe,fe=ve&(1<<-ue)-1,ve>>=-ue,ue+=re;ue>0;fe=fe*256+x[z+he],he+=pe,ue-=8);for(E=fe&(1<<-ue)-1,fe>>=-ue,ue+=ae;ue>0;E=E*256+x[z+he],he+=pe,ue-=8);if(fe===0)fe=1-le;else{if(fe===ne)return E?NaN:(ve?-1:1)*(1/0);E=E+Math.pow(2,ae),fe=fe-le}return(ve?-1:1)*E*Math.pow(2,fe-ae)},ye.write=function(x,z,se,ae,ee,fe){var E,re,ne,le=fe*8-ee-1,ue=(1<<le)-1,he=ue>>1,pe=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=ae?0:fe-1,de=ae?1:-1,we=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(re=isNaN(z)?1:0,E=ue):(E=Math.floor(Math.log(z)/Math.LN2),z*(ne=Math.pow(2,-E))<1&&(E--,ne*=2),E+he>=1?z+=pe/ne:z+=pe*Math.pow(2,1-he),z*ne>=2&&(E++,ne/=2),E+he>=ue?(re=0,E=ue):E+he>=1?(re=(z*ne-1)*Math.pow(2,ee),E=E+he):(re=z*Math.pow(2,he-1)*Math.pow(2,ee),E=0));ee>=8;x[se+ve]=re&255,ve+=de,re/=256,ee-=8);for(E=E<<ee|re,le+=ee;le>0;x[se+ve]=E&255,ve+=de,E/=256,le-=8);x[se+ve-de]|=we*128}},{}],358:[function(y,Ce,ye){"use strict";var x=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],z,se,ae=-1,ee=[],fe=!1;function E(){!z||!se||(z=!1,se.length?ee=se.concat(ee):ae=-1,ee.length&&re())}function re(){if(!z){fe=!1,z=!0;for(var ve=ee.length,de=setTimeout(E);ve;){for(se=ee,ee=[];se&&++ae<ve;)se[ae].run();ae=-1,ve=ee.length}se=null,ae=-1,z=!1,clearTimeout(de)}}for(var ne,le=-1,ue=x.length;++le<ue;)if(x[le]&&x[le].test&&x[le].test()){ne=x[le].install(re);break}function he(ve,de){this.fun=ve,this.array=de}he.prototype.run=function(){var ve=this.fun,de=this.array;switch(de.length){case 0:return ve();case 1:return ve(de[0]);case 2:return ve(de[0],de[1]);case 3:return ve(de[0],de[1],de[2]);default:return ve.apply(null,de)}},Ce.exports=pe;function pe(ve){var de=new Array(arguments.length-1);if(arguments.length>1)for(var we=1;we<arguments.length;we++)de[we-1]=arguments[we];ee.push(new he(ve,de)),!fe&&!z&&(fe=!0,ne())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,Ce,ye){(function(x){(function(){"use strict";ye.test=function(){return x.setImmediate?!1:typeof x.MessageChannel!="undefined"},ye.install=function(z){var se=new x.MessageChannel;return se.port1.onmessage=z,function(){se.port2.postMessage(0)}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=x.MutationObserver||x.WebKitMutationObserver;ye.test=function(){return z},ye.install=function(se){var ae=0,ee=new z(se),fe=x.document.createTextNode("");return ee.observe(fe,{characterData:!0}),function(){fe.data=ae=++ae%2}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,Ce,ye){(function(x){(function(){"use strict";ye.test=function(){return typeof x.queueMicrotask=="function"},ye.install=function(z){return function(){x.queueMicrotask(z)}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,Ce,ye){(function(x){(function(){"use strict";ye.test=function(){return"document"in x&&"onreadystatechange"in x.document.createElement("script")},ye.install=function(z){return function(){var se=x.document.createElement("script");return se.onreadystatechange=function(){z(),se.onreadystatechange=null,se.parentNode.removeChild(se),se=null},x.document.documentElement.appendChild(se),z}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,Ce,ye){"use strict";ye.test=function(){return!0},ye.install=function(x){return function(){setTimeout(x,0)}}},{}],364:[function(y,Ce,ye){typeof Object.create=="function"?Ce.exports=function(z,se){se&&(z.super_=se,z.prototype=Object.create(se.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:Ce.exports=function(z,se){if(se){z.super_=se;var ae=function(){};ae.prototype=se.prototype,z.prototype=new ae,z.prototype.constructor=z}}},{}],365:[function(y,Ce,ye){"use strict";var x=y("has-tostringtag/shams")(),z=y("call-bind/callBound"),se=z("Object.prototype.toString"),ae=function(re){return x&&re&&typeof re=="object"&&Symbol.toStringTag in re?!1:se(re)==="[object Arguments]"},ee=function(re){return ae(re)?!0:re!==null&&typeof re=="object"&&typeof re.length=="number"&&re.length>=0&&se(re)!=="[object Array]"&&se(re.callee)==="[object Function]"},fe=function(){return ae(arguments)}();ae.isLegacyArguments=ee,Ce.exports=fe?ae:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,Ce,ye){Ce.exports=function(se){return se!=null&&(x(se)||z(se)||!!se._isBuffer)};function x(se){return!!se.constructor&&typeof se.constructor.isBuffer=="function"&&se.constructor.isBuffer(se)}function z(se){return typeof se.readFloatLE=="function"&&typeof se.slice=="function"&&x(se.slice(0,0))}},{}],367:[function(y,Ce,ye){"use strict";var x=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,se,ae;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{se=Object.defineProperty({},"length",{get:function(){throw ae}}),ae={},z(function(){throw 42},null,se)}catch(Me){Me!==ae&&(z=null)}else z=null;var ee=/^\s*class\b/,fe=function(Ae){try{var ge=x.call(Ae);return ee.test(ge)}catch(be){return!1}},E=function(Ae){try{return fe(Ae)?!1:(x.call(Ae),!0)}catch(ge){return!1}},re=Object.prototype.toString,ne="[object Object]",le="[object Function]",ue="[object GeneratorFunction]",he="[object HTMLAllCollection]",pe="[object HTML document.all class]",ve="[object HTMLCollection]",de=typeof Symbol=="function"&&!!Symbol.toStringTag,we=!(0 in[,]),Te=function(){return!1};if(typeof document=="object"){var je=document.all;re.call(je)===re.call(document.all)&&(Te=function(Ae){if((we||!Ae)&&(typeof Ae=="undefined"||typeof Ae=="object"))try{var ge=re.call(Ae);return(ge===he||ge===pe||ge===ve||ge===ne)&&Ae("")==null}catch(be){}return!1})}Ce.exports=z?function(Ae){if(Te(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;try{z(Ae,null,se)}catch(ge){if(ge!==ae)return!1}return!fe(Ae)&&E(Ae)}:function(Ae){if(Te(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;if(de)return E(Ae);if(fe(Ae))return!1;var ge=re.call(Ae);return ge!==le&&ge!==ue&&!/^\[object HTML/.test(ge)?!1:E(Ae)}},{}],368:[function(y,Ce,ye){"use strict";var x=Object.prototype.toString,z=Function.prototype.toString,se=/^\s*(?:function)?\*/,ae=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,fe=function(){if(!ae)return!1;try{return Function("return function*() {}")()}catch(re){}},E;Ce.exports=function(ne){if(typeof ne!="function")return!1;if(se.test(z.call(ne)))return!0;if(!ae){var le=x.call(ne);return le==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof E=="undefined"){var ue=fe();E=ue?ee(ue):!1}return ee(ne)===E}},{"has-tostringtag/shams":353}],369:[function(y,Ce,ye){"use strict";var x=y("which-typed-array");Ce.exports=function(se){return!!x(se)}},{"which-typed-array":420}],370:[function(y,Ce,ye){var x={}.toString;Ce.exports=Array.isArray||function(z){return x.call(z)=="[object Array]"}},{}],371:[function(y,Ce,ye){(function(x){(function(){(function(z,se){typeof ye=="object"&&typeof Ce!="undefined"?Ce.exports=se(z):typeof Ge=="function"&&Ge.amd?Ge(se):se(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x!="undefined"?x:this,function(z){"use strict";z=z||{};var se=z.Base64,ae="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fe=function($e){for(var it={},Ne=0,Fe=$e.length;Ne<Fe;Ne++)it[$e.charAt(Ne)]=Ne;return it}(ee),E=String.fromCharCode,re=function($e){if($e.length<2){var it=$e.charCodeAt(0);return it<128?$e:it<2048?E(192|it>>>6)+E(128|it&63):E(224|it>>>12&15)+E(128|it>>>6&63)+E(128|it&63)}else{var it=65536+($e.charCodeAt(0)-55296)*1024+($e.charCodeAt(1)-56320);return E(240|it>>>18&7)+E(128|it>>>12&63)+E(128|it>>>6&63)+E(128|it&63)}},ne=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,le=function($e){return $e.replace(ne,re)},ue=function($e){var it=[0,2,1][$e.length%3],Ne=$e.charCodeAt(0)<<16|($e.length>1?$e.charCodeAt(1):0)<<8|($e.length>2?$e.charCodeAt(2):0),Fe=[ee.charAt(Ne>>>18),ee.charAt(Ne>>>12&63),it>=2?"=":ee.charAt(Ne>>>6&63),it>=1?"=":ee.charAt(Ne&63)];return Fe.join("")},he=z.btoa&&typeof z.btoa=="function"?function($e){return z.btoa($e)}:function($e){if($e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return $e.replace(/[\s\S]{1,3}/g,ue)},pe=function($e){return he(le(String($e)))},ve=function($e){return $e.replace(/[+\/]/g,function(it){return it=="+"?"-":"_"}).replace(/=/g,"")},de=function($e,it){return it?ve(pe($e)):pe($e)},we=function($e){return de($e,!0)},Te;z.Uint8Array&&(Te=function($e,it){for(var Ne="",Fe=0,qe=$e.length;Fe<qe;Fe+=3){var rt=$e[Fe],tt=$e[Fe+1],Ve=$e[Fe+2],Ke=rt<<16|tt<<8|Ve;Ne+=ee.charAt(Ke>>>18)+ee.charAt(Ke>>>12&63)+(typeof tt!="undefined"?ee.charAt(Ke>>>6&63):"=")+(typeof Ve!="undefined"?ee.charAt(Ke&63):"=")}return it?ve(Ne):Ne});var je=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Me=function($e){switch($e.length){case 4:var it=(7&$e.charCodeAt(0))<<18|(63&$e.charCodeAt(1))<<12|(63&$e.charCodeAt(2))<<6|63&$e.charCodeAt(3),Ne=it-65536;return E((Ne>>>10)+55296)+E((Ne&1023)+56320);case 3:return E((15&$e.charCodeAt(0))<<12|(63&$e.charCodeAt(1))<<6|63&$e.charCodeAt(2));default:return E((31&$e.charCodeAt(0))<<6|63&$e.charCodeAt(1))}},Ae=function($e){return $e.replace(je,Me)},ge=function($e){var it=$e.length,Ne=it%4,Fe=(it>0?fe[$e.charAt(0)]<<18:0)|(it>1?fe[$e.charAt(1)]<<12:0)|(it>2?fe[$e.charAt(2)]<<6:0)|(it>3?fe[$e.charAt(3)]:0),qe=[E(Fe>>>16),E(Fe>>>8&255),E(Fe&255)];return qe.length-=[0,0,2,1][Ne],qe.join("")},be=z.atob&&typeof z.atob=="function"?function($e){return z.atob($e)}:function($e){return $e.replace(/\S{1,4}/g,ge)},Ee=function($e){return be(String($e).replace(/[^A-Za-z0-9\+\/]/g,""))},Re=function($e){return Ae(be($e))},Ie=function($e){return String($e).replace(/[-_]/g,function(it){return it=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ke=function($e){return Re(Ie($e))},Pe;z.Uint8Array&&(Pe=function($e){return Uint8Array.from(Ee(Ie($e)),function(it){return it.charCodeAt(0)})});var Ze=function(){var $e=z.Base64;return z.Base64=se,$e};if(z.Base64={VERSION:ae,atob:Ee,btoa:he,fromBase64:ke,toBase64:de,utob:le,encode:de,encodeURI:we,btou:Ae,decode:ke,noConflict:Ze,fromUint8Array:Te,toUint8Array:Pe},typeof Object.defineProperty=="function"){var He=function($e){return{value:$e,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",He(function(){return ke(this)})),Object.defineProperty(String.prototype,"toBase64",He(function($e){return de(this,$e)})),Object.defineProperty(String.prototype,"toBase64URI",He(function(){return de(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof Ce!="undefined"&&Ce.exports?Ce.exports.Base64=z.Base64:typeof Ge=="function"&&Ge.amd&&Ge([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,Ce,ye){"use strict";Ce.exports=z;var x=Object.prototype.hasOwnProperty;function z(se,ae,ee){if(!se)throw new TypeError("argument dest is required");if(!ae)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(ae).forEach(function(E){if(!(!ee&&x.call(se,E))){var re=Object.getOwnPropertyDescriptor(ae,E);Object.defineProperty(se,E,re)}}),se}},{}],373:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.regexp.constructor.js"),y("core-js/modules/es.regexp.to-string.js");function x(){this._types=Object.create(null),this._extensions=Object.create(null);for(var z=0;z<arguments.length;z++)this.define(arguments[z]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}x.prototype.define=function(z,se){for(var ae in z){var ee=z[ae].map(function(ne){return ne.toLowerCase()});ae=ae.toLowerCase();for(var fe=0;fe<ee.length;fe++){var E=ee[fe];if(E[0]!=="*"){if(!se&&E in this._types)throw new Error('Attempt to change mapping for "'+E+'" extension from "'+this._types[E]+'" to "'+ae+'". Pass `force=true` to allow this, otherwise remove "'+E+'" from the list of extensions for "'+ae+'".');this._types[E]=ae}}if(se||!this._extensions[ae]){var re=ee[0];this._extensions[ae]=re[0]!=="*"?re:re.substr(1)}}},x.prototype.getType=function(z){z=String(z);var se=z.replace(/^.*[/\\]/,"").toLowerCase(),ae=se.replace(/^.*\./,"").toLowerCase(),ee=se.length<z.length,fe=ae.length<se.length-1;return(fe||!ee)&&this._types[ae]||null},x.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},Ce.exports=x},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(y,Ce,ye){"use strict";var x=y("./Mime");Ce.exports=new x(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,Ce,ye){"use strict";Ce.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(y,Ce,ye){var x=1e3,z=x*60,se=z*60,ae=se*24,ee=ae*7,fe=ae*365.25;Ce.exports=function(ue,he){he=he||{};var pe=typeof ue;if(pe==="string"&&ue.length>0)return E(ue);if(pe==="number"&&isFinite(ue))return he.long?ne(ue):re(ue);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ue))};function E(ue){if(ue=String(ue),!(ue.length>100)){var he=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ue);if(he){var pe=parseFloat(he[1]),ve=(he[2]||"ms").toLowerCase();switch(ve){case"years":case"year":case"yrs":case"yr":case"y":return pe*fe;case"weeks":case"week":case"w":return pe*ee;case"days":case"day":case"d":return pe*ae;case"hours":case"hour":case"hrs":case"hr":case"h":return pe*se;case"minutes":case"minute":case"mins":case"min":case"m":return pe*z;case"seconds":case"second":case"secs":case"sec":case"s":return pe*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return pe;default:return}}}}function re(ue){var he=Math.abs(ue);return he>=ae?Math.round(ue/ae)+"d":he>=se?Math.round(ue/se)+"h":he>=z?Math.round(ue/z)+"m":he>=x?Math.round(ue/x)+"s":ue+"ms"}function ne(ue){var he=Math.abs(ue);return he>=ae?le(ue,he,ae,"day"):he>=se?le(ue,he,se,"hour"):he>=z?le(ue,he,z,"minute"):he>=x?le(ue,he,x,"second"):ue+" ms"}function le(ue,he,pe,ve){var de=he>=pe*1.5;return Math.round(ue/pe)+" "+ve+(de?"s":"")}},{}],377:[function(y,Ce,ye){"use strict";var x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;function ae(fe){if(fe==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(fe)}function ee(){try{if(!Object.assign)return!1;var fe=new String("abc");if(fe[5]="de",Object.getOwnPropertyNames(fe)[0]==="5")return!1;for(var E={},re=0;re<10;re++)E["_"+String.fromCharCode(re)]=re;var ne=Object.getOwnPropertyNames(E).map(function(ue){return E[ue]});if(ne.join("")!=="0123456789")return!1;var le={};return"abcdefghijklmnopqrst".split("").forEach(function(ue){le[ue]=ue}),Object.keys(Object.assign({},le)).join("")==="abcdefghijklmnopqrst"}catch(ue){return!1}}Ce.exports=ee()?Object.assign:function(fe,E){for(var re,ne=ae(fe),le,ue=1;ue<arguments.length;ue++){re=Object(arguments[ue]);for(var he in re)z.call(re,he)&&(ne[he]=re[he]);if(x){le=x(re);for(var pe=0;pe<le.length;pe++)se.call(re,le[pe])&&(ne[le[pe]]=re[le[pe]])}}return ne}},{}],378:[function(y,Ce,ye){(function(x){(function(){"use strict";function z(fe){if(typeof fe!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(fe))}function se(fe,E){for(var re="",ne=0,le=-1,ue=0,he,pe=0;pe<=fe.length;++pe){if(pe<fe.length)he=fe.charCodeAt(pe);else{if(he===47)break;he=47}if(he===47){if(!(le===pe-1||ue===1))if(le!==pe-1&&ue===2){if(re.length<2||ne!==2||re.charCodeAt(re.length-1)!==46||re.charCodeAt(re.length-2)!==46){if(re.length>2){var ve=re.lastIndexOf("/");if(ve!==re.length-1){ve===-1?(re="",ne=0):(re=re.slice(0,ve),ne=re.length-1-re.lastIndexOf("/")),le=pe,ue=0;continue}}else if(re.length===2||re.length===1){re="",ne=0,le=pe,ue=0;continue}}E&&(re.length>0?re+="/..":re="..",ne=2)}else re.length>0?re+="/"+fe.slice(le+1,pe):re=fe.slice(le+1,pe),ne=pe-le-1;le=pe,ue=0}else he===46&&ue!==-1?++ue:ue=-1}return re}function ae(fe,E){var re=E.dir||E.root,ne=E.base||(E.name||"")+(E.ext||"");return re?re===E.root?re+ne:re+fe+ne:ne}var ee={resolve:function(){for(var E="",re=!1,ne,le=arguments.length-1;le>=-1&&!re;le--){var ue;le>=0?ue=arguments[le]:(ne===void 0&&(ne=x.cwd()),ue=ne),z(ue),ue.length!==0&&(E=ue+"/"+E,re=ue.charCodeAt(0)===47)}return E=se(E,!re),re?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(z(E),E.length===0)return".";var re=E.charCodeAt(0)===47,ne=E.charCodeAt(E.length-1)===47;return E=se(E,!re),E.length===0&&!re&&(E="."),E.length>0&&ne&&(E+="/"),re?"/"+E:E},isAbsolute:function(E){return z(E),E.length>0&&E.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var E,re=0;re<arguments.length;++re){var ne=arguments[re];z(ne),ne.length>0&&(E===void 0?E=ne:E+="/"+ne)}return E===void 0?".":ee.normalize(E)},relative:function(E,re){if(z(E),z(re),E===re||(E=ee.resolve(E),re=ee.resolve(re),E===re))return"";for(var ne=1;ne<E.length&&E.charCodeAt(ne)===47;++ne);for(var le=E.length,ue=le-ne,he=1;he<re.length&&re.charCodeAt(he)===47;++he);for(var pe=re.length,ve=pe-he,de=ue<ve?ue:ve,we=-1,Te=0;Te<=de;++Te){if(Te===de){if(ve>de){if(re.charCodeAt(he+Te)===47)return re.slice(he+Te+1);if(Te===0)return re.slice(he+Te)}else ue>de&&(E.charCodeAt(ne+Te)===47?we=Te:Te===0&&(we=0));break}var je=E.charCodeAt(ne+Te),Me=re.charCodeAt(he+Te);if(je!==Me)break;je===47&&(we=Te)}var Ae="";for(Te=ne+we+1;Te<=le;++Te)(Te===le||E.charCodeAt(Te)===47)&&(Ae.length===0?Ae+="..":Ae+="/..");return Ae.length>0?Ae+re.slice(he+we):(he+=we,re.charCodeAt(he)===47&&++he,re.slice(he))},_makeLong:function(E){return E},dirname:function(E){if(z(E),E.length===0)return".";for(var re=E.charCodeAt(0),ne=re===47,le=-1,ue=!0,he=E.length-1;he>=1;--he)if(re=E.charCodeAt(he),re===47){if(!ue){le=he;break}}else ue=!1;return le===-1?ne?"/":".":ne&&le===1?"//":E.slice(0,le)},basename:function(E,re){if(re!==void 0&&typeof re!="string")throw new TypeError('"ext" argument must be a string');z(E);var ne=0,le=-1,ue=!0,he;if(re!==void 0&&re.length>0&&re.length<=E.length){if(re.length===E.length&&re===E)return"";var pe=re.length-1,ve=-1;for(he=E.length-1;he>=0;--he){var de=E.charCodeAt(he);if(de===47){if(!ue){ne=he+1;break}}else ve===-1&&(ue=!1,ve=he+1),pe>=0&&(de===re.charCodeAt(pe)?--pe===-1&&(le=he):(pe=-1,le=ve))}return ne===le?le=ve:le===-1&&(le=E.length),E.slice(ne,le)}else{for(he=E.length-1;he>=0;--he)if(E.charCodeAt(he)===47){if(!ue){ne=he+1;break}}else le===-1&&(ue=!1,le=he+1);return le===-1?"":E.slice(ne,le)}},extname:function(E){z(E);for(var re=-1,ne=0,le=-1,ue=!0,he=0,pe=E.length-1;pe>=0;--pe){var ve=E.charCodeAt(pe);if(ve===47){if(!ue){ne=pe+1;break}continue}le===-1&&(ue=!1,le=pe+1),ve===46?re===-1?re=pe:he!==1&&(he=1):re!==-1&&(he=-1)}return re===-1||le===-1||he===0||he===1&&re===le-1&&re===ne+1?"":E.slice(re,le)},format:function(E){if(E===null||typeof E!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof E);return ae("/",E)},parse:function(E){z(E);var re={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return re;var ne=E.charCodeAt(0),le=ne===47,ue;le?(re.root="/",ue=1):ue=0;for(var he=-1,pe=0,ve=-1,de=!0,we=E.length-1,Te=0;we>=ue;--we){if(ne=E.charCodeAt(we),ne===47){if(!de){pe=we+1;break}continue}ve===-1&&(de=!1,ve=we+1),ne===46?he===-1?he=we:Te!==1&&(Te=1):he!==-1&&(Te=-1)}return he===-1||ve===-1||Te===0||Te===1&&he===ve-1&&he===pe+1?ve!==-1&&(pe===0&&le?re.base=re.name=E.slice(1,ve):re.base=re.name=E.slice(pe,ve)):(pe===0&&le?(re.name=E.slice(1,he),re.base=E.slice(1,ve)):(re.name=E.slice(pe,he),re.base=E.slice(pe,ve)),re.ext=E.slice(he,ve)),pe>0?re.dir=E.slice(0,pe-1):le&&(re.dir="/"),re},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,Ce.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,Ce,ye){(function(x){(function(){(function(){"use strict";var z={function:!0,object:!0},se=z[typeof window]&&window||this,ae=se,ee=z[typeof ye]&&ye,fe=z[typeof Ce]&&Ce&&!Ce.nodeType&&Ce,E=ee&&fe&&typeof x=="object"&&x;E&&(E.global===E||E.window===E||E.self===E)&&(se=E);var re=Math.pow(2,53)-1,ne=/\bOpera/,le=this,ue=Object.prototype,he=ue.hasOwnProperty,pe=ue.toString;function ve(ke){return ke=String(ke),ke.charAt(0).toUpperCase()+ke.slice(1)}function de(ke,Pe,Ze){var He={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Pe&&Ze&&/^Win/i.test(ke)&&!/^Windows Phone /i.test(ke)&&(He=He[/[\d.]+$/.exec(ke)])&&(ke="Windows "+He),ke=String(ke),Pe&&Ze&&(ke=ke.replace(RegExp(Pe,"i"),Ze)),ke=Te(ke.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),ke}function we(ke,Pe){var Ze=-1,He=ke?ke.length:0;if(typeof He=="number"&&He>-1&&He<=re)for(;++Ze<He;)Pe(ke[Ze],Ze,ke);else je(ke,Pe)}function Te(ke){return ke=Ee(ke),/^(?:webOS|i(?:OS|P))/.test(ke)?ke:ve(ke)}function je(ke,Pe){for(var Ze in ke)he.call(ke,Ze)&&Pe(ke[Ze],Ze,ke)}function Me(ke){return ke==null?ve(ke):pe.call(ke).slice(8,-1)}function Ae(ke,Pe){var Ze=ke!=null?typeof ke[Pe]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ze)&&(Ze=="object"?!!ke[Pe]:!0)}function ge(ke){return String(ke).replace(/([ -])(?!$)/g,"$1?")}function be(ke,Pe){var Ze=null;return we(ke,function(He,$e){Ze=Pe(Ze,He,$e,ke)}),Ze}function Ee(ke){return String(ke).replace(/^ +| +$/g,"")}function Re(ke){var Pe=se,Ze=ke&&typeof ke=="object"&&Me(ke)!="String";Ze&&(Pe=ke,ke=null);var He=Pe.navigator||{},$e=He.userAgent||"";ke||(ke=$e);var it=Ze||le==ae,Ne=Ze?!!He.likeChrome:/\bChrome\b/.test(ke)&&!/internal|\n/i.test(pe.toString()),Fe="Object",qe=Ze?Fe:"ScriptBridgingProxyObject",rt=Ze?Fe:"Environment",tt=Ze&&Pe.java?"JavaPackage":Me(Pe.java),Ve=Ze?Fe:"RuntimeObject",Ke=/\bJava/.test(tt)&&Pe.java,ze=Ke&&Me(Pe.environment)==rt,at=Ke?"a":"\u03B1",Qe=Ke?"b":"\u03B2",ut=Pe.document||{},st=Pe.operamini||Pe.opera,Xe=ne.test(Xe=Ze&&st?st["[[Class]]"]:Me(st))?Xe:st=null,Le,De=ke,te=[],ce=null,_e=ke==$e,Ue=_e&&st&&typeof st.version=="function"&&st.version(),xe,Se=dt([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Oe=pt(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),We=yt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),et=ct({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),nt=St(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function dt(bt){return be(bt,function(ft,Dt){return ft||RegExp("\\b"+(Dt.pattern||ge(Dt))+"\\b","i").exec(ke)&&(Dt.label||Dt)})}function ct(bt){return be(bt,function(ft,Dt,At){return ft||(Dt[We]||Dt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(We)]||RegExp("\\b"+ge(At)+"(?:\\b|\\w*\\d)","i").exec(ke))&&At})}function pt(bt){return be(bt,function(ft,Dt){return ft||RegExp("\\b"+(Dt.pattern||ge(Dt))+"\\b","i").exec(ke)&&(Dt.label||Dt)})}function St(bt){return be(bt,function(ft,Dt){var At=Dt.pattern||ge(Dt);return!ft&&(ft=RegExp("\\b"+At+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ke))&&(ft=de(ft,At,Dt.label||Dt)),ft})}function yt(bt){return be(bt,function(ft,Dt){var At=Dt.pattern||ge(Dt);return!ft&&(ft=RegExp("\\b"+At+" *\\d+[.\\w_]*","i").exec(ke)||RegExp("\\b"+At+" *\\w+-[\\w]*","i").exec(ke)||RegExp("\\b"+At+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ke))&&((ft=String(Dt.label&&!RegExp(At,"i").test(Dt.label)?Dt.label:ft).split("/"))[1]&&!/[\d.]+/.test(ft[0])&&(ft[0]+=" "+ft[1]),Dt=Dt.label||Dt,ft=Te(ft[0].replace(RegExp(At,"i"),Dt).replace(RegExp("; *(?:"+Dt+"[_-])?","i")," ").replace(RegExp("("+Dt+")[-_.]?(\\w)","i"),"$1 $2"))),ft})}function xt(bt){return be(bt,function(ft,Dt){return ft||(RegExp(Dt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ke)||0)[1]||null})}function vt(){return this.description||""}if(Se&&(Se=[Se]),/\bAndroid\b/.test(nt)&&!We&&(Le=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ke))&&(We=Ee(Le[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),et&&!We?We=yt([et]):et&&We&&(We=We.replace(RegExp("^("+ge(et)+")[-_.\\s]","i"),et+" ").replace(RegExp("^("+ge(et)+")[-_.]?(\\w)","i"),et+" $2")),(Le=/\bGoogle TV\b/.exec(We))&&(We=Le[0]),/\bSimulator\b/i.test(ke)&&(We=(We?We+" ":"")+"Simulator"),Oe=="Opera Mini"&&/\bOPiOS\b/.test(ke)&&te.push("running in Turbo/Uncompressed mode"),Oe=="IE"&&/\blike iPhone OS\b/.test(ke)?(Le=Re(ke.replace(/like iPhone OS/,"")),et=Le.manufacturer,We=Le.product):/^iP/.test(We)?(Oe||(Oe="Safari"),nt="iOS"+((Le=/ OS ([\d_]+)/i.exec(ke))?" "+Le[1].replace(/_/g,"."):"")):Oe=="Konqueror"&&/^Linux\b/i.test(nt)?nt="Kubuntu":et&&et!="Google"&&(/Chrome/.test(Oe)&&!/\bMobile Safari\b/i.test(ke)||/\bVita\b/.test(We))||/\bAndroid\b/.test(nt)&&/^Chrome/.test(Oe)&&/\bVersion\//i.test(ke)?(Oe="Android Browser",nt=/\bAndroid\b/.test(nt)?nt:"Android"):Oe=="Silk"?(/\bMobi/i.test(ke)||(nt="Android",te.unshift("desktop mode")),/Accelerated *= *true/i.test(ke)&&te.unshift("accelerated")):Oe=="UC Browser"&&/\bUCWEB\b/.test(ke)?te.push("speed mode"):Oe=="PaleMoon"&&(Le=/\bFirefox\/([\d.]+)\b/.exec(ke))?te.push("identifying as Firefox "+Le[1]):Oe=="Firefox"&&(Le=/\b(Mobile|Tablet|TV)\b/i.exec(ke))?(nt||(nt="Firefox OS"),We||(We=Le[1])):!Oe||(Le=!/\bMinefield\b/i.test(ke)&&/\b(?:Firefox|Safari)\b/.exec(Oe))?(Oe&&!We&&/[\/,]|^[^(]+?\)/.test(ke.slice(ke.indexOf(Le+"/")+8))&&(Oe=null),(Le=We||et||nt)&&(We||et||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(nt))&&(Oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(nt)?nt:Le)+" Browser")):Oe=="Electron"&&(Le=(/\bChrome\/([\d.]+)\b/.exec(ke)||0)[1])&&te.push("Chromium "+Le),Ue||(Ue=xt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",ge(Oe),"(?:Firefox|Minefield|NetFront)"])),(Le=Se=="iCab"&&parseFloat(Ue)>3&&"WebKit"||/\bOpera\b/.test(Oe)&&(/\bOPR\b/.test(ke)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ke)&&!/^(?:Trident|EdgeHTML)$/.test(Se)&&"WebKit"||!Se&&/\bMSIE\b/i.test(ke)&&(nt=="Mac OS"?"Tasman":"Trident")||Se=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Oe)&&"NetFront")&&(Se=[Le]),Oe=="IE"&&(Le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ke)||0)[1])?(Oe+=" Mobile",nt="Windows Phone "+(/\+$/.test(Le)?Le:Le+".x"),te.unshift("desktop mode")):/\bWPDesktop\b/i.test(ke)?(Oe="IE Mobile",nt="Windows Phone 8.x",te.unshift("desktop mode"),Ue||(Ue=(/\brv:([\d.]+)/.exec(ke)||0)[1])):Oe!="IE"&&Se=="Trident"&&(Le=/\brv:([\d.]+)/.exec(ke))&&(Oe&&te.push("identifying as "+Oe+(Ue?" "+Ue:"")),Oe="IE",Ue=Le[1]),_e){if(Ae(Pe,"global"))if(Ke&&(Le=Ke.lang.System,De=Le.getProperty("os.arch"),nt=nt||Le.getProperty("os.name")+" "+Le.getProperty("os.version")),ze){try{Ue=Pe.require("ringo/engine").version.join("."),Oe="RingoJS"}catch(bt){(Le=Pe.system)&&Le.global.system==Pe.system&&(Oe="Narwhal",nt||(nt=Le[0].os||null))}Oe||(Oe="Rhino")}else typeof Pe.process=="object"&&!Pe.process.browser&&(Le=Pe.process)&&(typeof Le.versions=="object"&&(typeof Le.versions.electron=="string"?(te.push("Node "+Le.versions.node),Oe="Electron",Ue=Le.versions.electron):typeof Le.versions.nw=="string"&&(te.push("Chromium "+Ue,"Node "+Le.versions.node),Oe="NW.js",Ue=Le.versions.nw)),Oe||(Oe="Node.js",De=Le.arch,nt=Le.platform,Ue=/[\d.]+/.exec(Le.version),Ue=Ue?Ue[0]:null));else Me(Le=Pe.runtime)==qe?(Oe="Adobe AIR",nt=Le.flash.system.Capabilities.os):Me(Le=Pe.phantom)==Ve?(Oe="PhantomJS",Ue=(Le=Le.version||null)&&Le.major+"."+Le.minor+"."+Le.patch):typeof ut.documentMode=="number"&&(Le=/\bTrident\/(\d+)/i.exec(ke))?(Ue=[Ue,ut.documentMode],(Le=+Le[1]+4)!=Ue[1]&&(te.push("IE "+Ue[1]+" mode"),Se&&(Se[1]=""),Ue[1]=Le),Ue=Oe=="IE"?String(Ue[1].toFixed(1)):Ue[0]):typeof ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Oe)&&(te.push("masking as "+Oe+" "+Ue),Oe="IE",Ue="11.0",Se=["Trident"],nt="Windows");nt=nt&&Te(nt)}if(Ue&&(Le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ue)||/(?:alpha|beta)(?: ?\d)?/i.exec(ke+";"+(_e&&He.appMinorVersion))||/\bMinefield\b/i.test(ke)&&"a")&&(ce=/b/i.test(Le)?"beta":"alpha",Ue=Ue.replace(RegExp(Le+"\\+?$"),"")+(ce=="beta"?Qe:at)+(/\d+\+?/.exec(Le)||"")),Oe=="Fennec"||Oe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(nt))Oe="Firefox Mobile";else if(Oe=="Maxthon"&&Ue)Ue=Ue.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(We))We=="Xbox 360"&&(nt=null),We=="Xbox 360"&&/\bIEMobile\b/.test(ke)&&te.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Oe)||Oe&&!We&&!/Browser|Mobi/.test(Oe))&&(nt=="Windows CE"||/Mobi/i.test(ke)))Oe+=" Mobile";else if(Oe=="IE"&&_e)try{Pe.external===null&&te.unshift("platform preview")}catch(bt){te.unshift("embedded")}else(/\bBlackBerry\b/.test(We)||/\bBB10\b/.test(ke))&&(Le=(RegExp(We.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ke)||0)[1]||Ue)?(Le=[Le,/BB10/.test(ke)],nt=(Le[1]?(We=null,et="BlackBerry"):"Device Software")+" "+Le[0],Ue=null):this!=je&&We!="Wii"&&(_e&&st||/Opera/.test(Oe)&&/\b(?:MSIE|Firefox)\b/i.test(ke)||Oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(nt)||Oe=="IE"&&(nt&&!/^Win/.test(nt)&&Ue>5.5||/\bWindows XP\b/.test(nt)&&Ue>8||Ue==8&&!/\bTrident\b/.test(ke)))&&!ne.test(Le=Re.call(je,ke.replace(ne,"")+";"))&&Le.name&&(Le="ing as "+Le.name+((Le=Le.version)?" "+Le:""),ne.test(Oe)?(/\bIE\b/.test(Le)&&nt=="Mac OS"&&(nt=null),Le="identify"+Le):(Le="mask"+Le,Xe?Oe=Te(Xe.replace(/([a-z])([A-Z])/g,"$1 $2")):Oe="Opera",/\bIE\b/.test(Le)&&(nt=null),_e||(Ue=null)),Se=["Presto"],te.push(Le));(Le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ke)||0)[1])&&(Le=[parseFloat(Le.replace(/\.(\d)$/,".0$1")),Le],Oe=="Safari"&&Le[1].slice(-1)=="+"?(Oe="WebKit Nightly",ce="alpha",Ue=Le[1].slice(0,-1)):(Ue==Le[1]||Ue==(Le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ke)||0)[1]))&&(Ue=null),Le[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ke)||0)[1],Le[0]==537.36&&Le[2]==537.36&&parseFloat(Le[1])>=28&&Se=="WebKit"&&(Se=["Blink"]),!_e||!Ne&&!Le[1]?(Se&&(Se[1]="like Safari"),Le=(Le=Le[0],Le<400?1:Le<500?2:Le<526?3:Le<533?4:Le<534?"4+":Le<535?5:Le<537?6:Le<538?7:Le<601?8:Le<602?9:Le<604?10:Le<606?11:Le<608?12:"12")):(Se&&(Se[1]="like Chrome"),Le=Le[1]||(Le=Le[0],Le<530?1:Le<532?2:Le<532.05?3:Le<533?4:Le<534.03?5:Le<534.07?6:Le<534.1?7:Le<534.13?8:Le<534.16?9:Le<534.24?10:Le<534.3?11:Le<535.01?12:Le<535.02?"13+":Le<535.07?15:Le<535.11?16:Le<535.19?17:Le<536.05?18:Le<536.1?19:Le<537.01?20:Le<537.11?"21+":Le<537.13?23:Le<537.18?24:Le<537.24?25:Le<537.36?26:Se!="Blink"?"27":"28")),Se&&(Se[1]+=" "+(Le+=typeof Le=="number"?".x":/[.+]/.test(Le)?"":"+")),Oe=="Safari"&&(!Ue||parseInt(Ue)>45)?Ue=Le:Oe=="Chrome"&&/\bHeadlessChrome/i.test(ke)&&te.unshift("headless")),Oe=="Opera"&&(Le=/\bzbov|zvav$/.exec(nt))?(Oe+=" ",te.unshift("desktop mode"),Le=="zvav"?(Oe+="Mini",Ue=null):Oe+="Mobile",nt=nt.replace(RegExp(" *"+Le+"$"),"")):Oe=="Safari"&&/\bChrome\b/.exec(Se&&Se[1])?(te.unshift("desktop mode"),Oe="Chrome Mobile",Ue=null,/\bOS X\b/.test(nt)?(et="Apple",nt="iOS 4.3+"):nt=null):/\bSRWare Iron\b/.test(Oe)&&!Ue&&(Ue=xt("Chrome")),Ue&&Ue.indexOf(Le=/[\d.]+$/.exec(nt))==0&&ke.indexOf("/"+Le+"-")>-1&&(nt=Ee(nt.replace(Le,""))),nt&&nt.indexOf(Oe)!=-1&&!RegExp(Oe+" OS").test(nt)&&(nt=nt.replace(RegExp(" *"+ge(Oe)+" *"),"")),Se&&!/\b(?:Avant|Nook)\b/.test(Oe)&&(/Browser|Lunascape|Maxthon/.test(Oe)||Oe!="Safari"&&/^iOS/.test(nt)&&/\bSafari\b/.test(Se[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Oe)&&Se[1])&&(Le=Se[Se.length-1])&&te.push(Le),te.length&&(te=["("+te.join("; ")+")"]),et&&We&&We.indexOf(et)<0&&te.push("on "+et),We&&te.push((/^on /.test(te[te.length-1])?"":"on ")+We),nt&&(Le=/ ([\d.+]+)$/.exec(nt),xe=Le&&nt.charAt(nt.length-Le[0].length-1)=="/",nt={architecture:32,family:Le&&!xe?nt.replace(Le[0],""):nt,version:Le?Le[1]:null,toString:function(){var bt=this.version;return this.family+(bt&&!xe?" "+bt:"")+(this.architecture==64?" 64-bit":"")}}),(Le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(De))&&!/\bi686\b/i.test(De)?(nt&&(nt.architecture=64,nt.family=nt.family.replace(RegExp(" *"+Le),"")),Oe&&(/\bWOW64\b/i.test(ke)||_e&&/\w(?:86|32)$/.test(He.cpuClass||He.platform)&&!/\bWin64; x64\b/i.test(ke))&&te.unshift("32-bit")):nt&&/^OS X/.test(nt.family)&&Oe=="Chrome"&&parseFloat(Ue)>=39&&(nt.architecture=64),ke||(ke=null);var Tt={};return Tt.description=ke,Tt.layout=Se&&Se[0],Tt.manufacturer=et,Tt.name=Oe,Tt.prerelease=ce,Tt.product=We,Tt.ua=ke,Tt.version=Oe&&Ue,Tt.os=nt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Tt.parse=Re,Tt.toString=vt,Tt.version&&te.unshift(Ue),Tt.name&&te.unshift(Oe),nt&&Oe&&!(nt==String(nt).split(" ")[0]&&(nt==Oe.split(" ")[0]||We))&&te.push(We?"("+nt+")":"on "+nt),te.length&&(Tt.description=te.join(" ")),Tt}var Ie=Re();typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd?(se.platform=Ie,Ge(function(){return Ie})):ee&&fe?je(Ie,function(ke,Pe){ee[Pe]=ke}):se.platform=Ie}).call(this)}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,Ce,ye){(function(x){(function(){"use strict";typeof x=="undefined"||!x.version||x.version.indexOf("v0.")===0||x.version.indexOf("v1.")===0&&x.version.indexOf("v1.8.")!==0?Ce.exports={nextTick:z}:Ce.exports=x;function z(se,ae,ee,fe){if(typeof se!="function")throw new TypeError('"callback" argument must be a function');var E=arguments.length,re,ne;switch(E){case 0:case 1:return x.nextTick(se);case 2:return x.nextTick(function(){se.call(null,ae)});case 3:return x.nextTick(function(){se.call(null,ae,ee)});case 4:return x.nextTick(function(){se.call(null,ae,ee,fe)});default:for(re=new Array(E-1),ne=0;ne<re.length;)re[ne++]=arguments[ne];return x.nextTick(function(){se.apply(null,re)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,Ce,ye){var x=Ce.exports={},z,se;function ae(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=ae}catch(we){z=ae}try{typeof clearTimeout=="function"?se=clearTimeout:se=ee}catch(we){se=ee}})();function fe(we){if(z===setTimeout)return setTimeout(we,0);if((z===ae||!z)&&setTimeout)return z=setTimeout,setTimeout(we,0);try{return z(we,0)}catch(Te){try{return z.call(null,we,0)}catch(je){return z.call(this,we,0)}}}function E(we){if(se===clearTimeout)return clearTimeout(we);if((se===ee||!se)&&clearTimeout)return se=clearTimeout,clearTimeout(we);try{return se(we)}catch(Te){try{return se.call(null,we)}catch(je){return se.call(this,we)}}}var re=[],ne=!1,le,ue=-1;function he(){!ne||!le||(ne=!1,le.length?re=le.concat(re):ue=-1,re.length&&pe())}function pe(){if(!ne){var we=fe(he);ne=!0;for(var Te=re.length;Te;){for(le=re,re=[];++ue<Te;)le&&le[ue].run();ue=-1,Te=re.length}le=null,ne=!1,E(we)}}x.nextTick=function(we){var Te=new Array(arguments.length-1);if(arguments.length>1)for(var je=1;je<arguments.length;je++)Te[je-1]=arguments[je];re.push(new ve(we,Te)),re.length===1&&!ne&&fe(pe)};function ve(we,Te){this.fun=we,this.array=Te}ve.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={};function de(){}x.on=de,x.addListener=de,x.once=de,x.off=de,x.removeListener=de,x.removeAllListeners=de,x.emit=de,x.prependListener=de,x.prependOnceListener=de,x.listeners=function(we){return[]},x.binding=function(we){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(we){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},{}],382:[function(y,Ce,ye){(function(x){(function(){(function(z){var se=typeof ye=="object"&&ye&&!ye.nodeType&&ye,ae=typeof Ce=="object"&&Ce&&!Ce.nodeType&&Ce,ee=typeof x=="object"&&x;(ee.global===ee||ee.window===ee||ee.self===ee)&&(z=ee);var fe,E=2147483647,re=36,ne=1,le=26,ue=38,he=700,pe=72,ve=128,de="-",we=/^xn--/,Te=/[^\x20-\x7E]/,je=/[\x2E\u3002\uFF0E\uFF61]/g,Me={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ae=re-ne,ge=Math.floor,be=String.fromCharCode,Ee;function Re(tt){throw new RangeError(Me[tt])}function Ie(tt,Ve){for(var Ke=tt.length,ze=[];Ke--;)ze[Ke]=Ve(tt[Ke]);return ze}function ke(tt,Ve){var Ke=tt.split("@"),ze="";Ke.length>1&&(ze=Ke[0]+"@",tt=Ke[1]),tt=tt.replace(je,".");var at=tt.split("."),Qe=Ie(at,Ve).join(".");return ze+Qe}function Pe(tt){for(var Ve=[],Ke=0,ze=tt.length,at,Qe;Ke<ze;)at=tt.charCodeAt(Ke++),at>=55296&&at<=56319&&Ke<ze?(Qe=tt.charCodeAt(Ke++),(Qe&64512)==56320?Ve.push(((at&1023)<<10)+(Qe&1023)+65536):(Ve.push(at),Ke--)):Ve.push(at);return Ve}function Ze(tt){return Ie(tt,function(Ve){var Ke="";return Ve>65535&&(Ve-=65536,Ke+=be(Ve>>>10&1023|55296),Ve=56320|Ve&1023),Ke+=be(Ve),Ke}).join("")}function He(tt){return tt-48<10?tt-22:tt-65<26?tt-65:tt-97<26?tt-97:re}function $e(tt,Ve){return tt+22+75*(tt<26)-((Ve!=0)<<5)}function it(tt,Ve,Ke){var ze=0;for(tt=Ke?ge(tt/he):tt>>1,tt+=ge(tt/Ve);tt>Ae*le>>1;ze+=re)tt=ge(tt/Ae);return ge(ze+(Ae+1)*tt/(tt+ue))}function Ne(tt){var Ve=[],Ke=tt.length,ze,at=0,Qe=ve,ut=pe,st,Xe,Le,De,te,ce,_e,Ue,xe;for(st=tt.lastIndexOf(de),st<0&&(st=0),Xe=0;Xe<st;++Xe)tt.charCodeAt(Xe)>=128&&Re("not-basic"),Ve.push(tt.charCodeAt(Xe));for(Le=st>0?st+1:0;Le<Ke;){for(De=at,te=1,ce=re;Le>=Ke&&Re("invalid-input"),_e=He(tt.charCodeAt(Le++)),(_e>=re||_e>ge((E-at)/te))&&Re("overflow"),at+=_e*te,Ue=ce<=ut?ne:ce>=ut+le?le:ce-ut,!(_e<Ue);ce+=re)xe=re-Ue,te>ge(E/xe)&&Re("overflow"),te*=xe;ze=Ve.length+1,ut=it(at-De,ze,De==0),ge(at/ze)>E-Qe&&Re("overflow"),Qe+=ge(at/ze),at%=ze,Ve.splice(at++,0,Qe)}return Ze(Ve)}function Fe(tt){var Ve,Ke,ze,at,Qe,ut,st,Xe,Le,De,te,ce=[],_e,Ue,xe,Se;for(tt=Pe(tt),_e=tt.length,Ve=ve,Ke=0,Qe=pe,ut=0;ut<_e;++ut)te=tt[ut],te<128&&ce.push(be(te));for(ze=at=ce.length,at&&ce.push(de);ze<_e;){for(st=E,ut=0;ut<_e;++ut)te=tt[ut],te>=Ve&&te<st&&(st=te);for(Ue=ze+1,st-Ve>ge((E-Ke)/Ue)&&Re("overflow"),Ke+=(st-Ve)*Ue,Ve=st,ut=0;ut<_e;++ut)if(te=tt[ut],te<Ve&&++Ke>E&&Re("overflow"),te==Ve){for(Xe=Ke,Le=re;De=Le<=Qe?ne:Le>=Qe+le?le:Le-Qe,!(Xe<De);Le+=re)Se=Xe-De,xe=re-De,ce.push(be($e(De+Se%xe,0))),Xe=ge(Se/xe);ce.push(be($e(Xe,0))),Qe=it(Ke,Ue,ze==at),Ke=0,++ze}++Ke,++Ve}return ce.join("")}function qe(tt){return ke(tt,function(Ve){return we.test(Ve)?Ne(Ve.slice(4).toLowerCase()):Ve})}function rt(tt){return ke(tt,function(Ve){return Te.test(Ve)?"xn--"+Fe(Ve):Ve})}if(fe={version:"1.4.1",ucs2:{decode:Pe,encode:Ze},decode:Ne,encode:Fe,toASCII:rt,toUnicode:qe},typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd)Ge("punycode",function(){return fe});else if(se&&ae)if(Ce.exports==se)ae.exports=fe;else for(Ee in fe)fe.hasOwnProperty(Ee)&&(se[Ee]=fe[Ee]);else z.punycode=fe})(this)}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,Ce,ye){"use strict";function x(se,ae){return Object.prototype.hasOwnProperty.call(se,ae)}Ce.exports=function(se,ae,ee,fe){ae=ae||"&",ee=ee||"=";var E={};if(typeof se!="string"||se.length===0)return E;var re=/\+/g;se=se.split(ae);var ne=1e3;fe&&typeof fe.maxKeys=="number"&&(ne=fe.maxKeys);var le=se.length;ne>0&&le>ne&&(le=ne);for(var ue=0;ue<le;++ue){var he=se[ue].replace(re,"%20"),pe=he.indexOf(ee),ve,de,we,Te;pe>=0?(ve=he.substr(0,pe),de=he.substr(pe+1)):(ve=he,de=""),we=decodeURIComponent(ve),Te=decodeURIComponent(de),x(E,we)?z(E[we])?E[we].push(Te):E[we]=[E[we],Te]:E[we]=Te}return E};var z=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"}},{}],384:[function(y,Ce,ye){"use strict";var x=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};Ce.exports=function(ee,fe,E,re){return fe=fe||"&",E=E||"=",ee===null&&(ee=void 0),typeof ee=="object"?se(ae(ee),function(ne){var le=encodeURIComponent(x(ne))+E;return z(ee[ne])?se(ee[ne],function(ue){return le+encodeURIComponent(x(ue))}).join(fe):le+encodeURIComponent(x(ee[ne]))}).join(fe):re?encodeURIComponent(x(re))+E+encodeURIComponent(x(ee)):""};var z=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function se(ee,fe){if(ee.map)return ee.map(fe);for(var E=[],re=0;re<ee.length;re++)E.push(fe(ee[re],re));return E}var ae=Object.keys||function(ee){var fe=[];for(var E in ee)Object.prototype.hasOwnProperty.call(ee,E)&&fe.push(E);return fe}},{}],385:[function(y,Ce,ye){"use strict";ye.decode=ye.parse=y("./decode"),ye.encode=ye.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,Ce,ye){"use strict";var x=y("process-nextick-args"),z=Object.keys||function(he){var pe=[];for(var ve in he)pe.push(ve);return pe};Ce.exports=ne;var se=Object.create(y("core-util-is"));se.inherits=y("inherits");var ae=y("./_stream_readable"),ee=y("./_stream_writable");se.inherits(ne,ae);for(var fe=z(ee.prototype),E=0;E<fe.length;E++){var re=fe[E];ne.prototype[re]||(ne.prototype[re]=ee.prototype[re])}function ne(he){if(!(this instanceof ne))return new ne(he);ae.call(this,he),ee.call(this,he),he&&he.readable===!1&&(this.readable=!1),he&&he.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,he&&he.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",le)}Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function le(){this.allowHalfOpen||this._writableState.ended||x.nextTick(ue,this)}function ue(he){he.end()}Object.defineProperty(ne.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}}),ne.prototype._destroy=function(he,pe){this.push(null),this.end(),x.nextTick(pe,he)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,Ce,ye){"use strict";Ce.exports=se;var x=y("./_stream_transform"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(se,x);function se(ae){if(!(this instanceof se))return new se(ae);x.call(this,ae)}se.prototype._transform=function(ae,ee,fe){fe(null,ae)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,Ce,ye){(function(x,z){(function(){"use strict";var se=y("process-nextick-args");Ce.exports=be;var ae=y("isarray"),ee;be.ReadableState=ge;var fe=y("events").EventEmitter,E=function(te,ce){return te.listeners(ce).length},re=y("./internal/streams/stream"),ne=y("safe-buffer").Buffer,le=z.Uint8Array||function(){};function ue(te){return ne.from(te)}function he(te){return ne.isBuffer(te)||te instanceof le}var pe=Object.create(y("core-util-is"));pe.inherits=y("inherits");var ve=y("util"),de=void 0;ve&&ve.debuglog?de=ve.debuglog("stream"):de=function(){};var we=y("./internal/streams/BufferList"),Te=y("./internal/streams/destroy"),je;pe.inherits(be,re);var Me=["error","close","destroy","pause","resume"];function Ae(te,ce,_e){if(typeof te.prependListener=="function")return te.prependListener(ce,_e);!te._events||!te._events[ce]?te.on(ce,_e):ae(te._events[ce])?te._events[ce].unshift(_e):te._events[ce]=[_e,te._events[ce]]}function ge(te,ce){ee=ee||y("./_stream_duplex"),te=te||{};var _e=ce instanceof ee;this.objectMode=!!te.objectMode,_e&&(this.objectMode=this.objectMode||!!te.readableObjectMode);var Ue=te.highWaterMark,xe=te.readableHighWaterMark,Se=this.objectMode?16:16*1024;Ue||Ue===0?this.highWaterMark=Ue:_e&&(xe||xe===0)?this.highWaterMark=xe:this.highWaterMark=Se,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new we,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(je||(je=y("string_decoder/").StringDecoder),this.decoder=new je(te.encoding),this.encoding=te.encoding)}function be(te){if(ee=ee||y("./_stream_duplex"),!(this instanceof be))return new be(te);this._readableState=new ge(te,this),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),re.call(this)}Object.defineProperty(be.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){this._readableState&&(this._readableState.destroyed=te)}}),be.prototype.destroy=Te.destroy,be.prototype._undestroy=Te.undestroy,be.prototype._destroy=function(te,ce){this.push(null),ce(te)},be.prototype.push=function(te,ce){var _e=this._readableState,Ue;return _e.objectMode?Ue=!0:typeof te=="string"&&(ce=ce||_e.defaultEncoding,ce!==_e.encoding&&(te=ne.from(te,ce),ce=""),Ue=!0),Ee(this,te,ce,!1,Ue)},be.prototype.unshift=function(te){return Ee(this,te,null,!0,!1)};function Ee(te,ce,_e,Ue,xe){var Se=te._readableState;if(ce===null)Se.reading=!1,$e(te,Se);else{var Oe;xe||(Oe=Ie(Se,ce)),Oe?te.emit("error",Oe):Se.objectMode||ce&&ce.length>0?(typeof ce!="string"&&!Se.objectMode&&Object.getPrototypeOf(ce)!==ne.prototype&&(ce=ue(ce)),Ue?Se.endEmitted?te.emit("error",new Error("stream.unshift() after end event")):Re(te,Se,ce,!0):Se.ended?te.emit("error",new Error("stream.push() after EOF")):(Se.reading=!1,Se.decoder&&!_e?(ce=Se.decoder.write(ce),Se.objectMode||ce.length!==0?Re(te,Se,ce,!1):Fe(te,Se)):Re(te,Se,ce,!1))):Ue||(Se.reading=!1)}return ke(Se)}function Re(te,ce,_e,Ue){ce.flowing&&ce.length===0&&!ce.sync?(te.emit("data",_e),te.read(0)):(ce.length+=ce.objectMode?1:_e.length,Ue?ce.buffer.unshift(_e):ce.buffer.push(_e),ce.needReadable&&it(te)),Fe(te,ce)}function Ie(te,ce){var _e;return!he(ce)&&typeof ce!="string"&&ce!==void 0&&!te.objectMode&&(_e=new TypeError("Invalid non-string/buffer chunk")),_e}function ke(te){return!te.ended&&(te.needReadable||te.length<te.highWaterMark||te.length===0)}be.prototype.isPaused=function(){return this._readableState.flowing===!1},be.prototype.setEncoding=function(te){return je||(je=y("string_decoder/").StringDecoder),this._readableState.decoder=new je(te),this._readableState.encoding=te,this};var Pe=8388608;function Ze(te){return te>=Pe?te=Pe:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function He(te,ce){return te<=0||ce.length===0&&ce.ended?0:ce.objectMode?1:te!==te?ce.flowing&&ce.length?ce.buffer.head.data.length:ce.length:(te>ce.highWaterMark&&(ce.highWaterMark=Ze(te)),te<=ce.length?te:ce.ended?ce.length:(ce.needReadable=!0,0))}be.prototype.read=function(te){de("read",te),te=parseInt(te,10);var ce=this._readableState,_e=te;if(te!==0&&(ce.emittedReadable=!1),te===0&&ce.needReadable&&(ce.length>=ce.highWaterMark||ce.ended))return de("read: emitReadable",ce.length,ce.ended),ce.length===0&&ce.ended?Xe(this):it(this),null;if(te=He(te,ce),te===0&&ce.ended)return ce.length===0&&Xe(this),null;var Ue=ce.needReadable;de("need readable",Ue),(ce.length===0||ce.length-te<ce.highWaterMark)&&(Ue=!0,de("length less than watermark",Ue)),ce.ended||ce.reading?(Ue=!1,de("reading or ended",Ue)):Ue&&(de("do read"),ce.reading=!0,ce.sync=!0,ce.length===0&&(ce.needReadable=!0),this._read(ce.highWaterMark),ce.sync=!1,ce.reading||(te=He(_e,ce)));var xe;return te>0?xe=at(te,ce):xe=null,xe===null?(ce.needReadable=!0,te=0):ce.length-=te,ce.length===0&&(ce.ended||(ce.needReadable=!0),_e!==te&&ce.ended&&Xe(this)),xe!==null&&this.emit("data",xe),xe};function $e(te,ce){if(!ce.ended){if(ce.decoder){var _e=ce.decoder.end();_e&&_e.length&&(ce.buffer.push(_e),ce.length+=ce.objectMode?1:_e.length)}ce.ended=!0,it(te)}}function it(te){var ce=te._readableState;ce.needReadable=!1,ce.emittedReadable||(de("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?se.nextTick(Ne,te):Ne(te))}function Ne(te){de("emit readable"),te.emit("readable"),ze(te)}function Fe(te,ce){ce.readingMore||(ce.readingMore=!0,se.nextTick(qe,te,ce))}function qe(te,ce){for(var _e=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length<ce.highWaterMark&&(de("maybeReadMore read 0"),te.read(0),_e!==ce.length);)_e=ce.length;ce.readingMore=!1}be.prototype._read=function(te){this.emit("error",new Error("_read() is not implemented"))},be.prototype.pipe=function(te,ce){var _e=this,Ue=this._readableState;switch(Ue.pipesCount){case 0:Ue.pipes=te;break;case 1:Ue.pipes=[Ue.pipes,te];break;default:Ue.pipes.push(te);break}Ue.pipesCount+=1,de("pipe count=%d opts=%j",Ue.pipesCount,ce);var xe=(!ce||ce.end!==!1)&&te!==x.stdout&&te!==x.stderr,Se=xe?We:vt;Ue.endEmitted?se.nextTick(Se):_e.once("end",Se),te.on("unpipe",Oe);function Oe(Tt,bt){de("onunpipe"),Tt===_e&&bt&&bt.hasUnpiped===!1&&(bt.hasUnpiped=!0,dt())}function We(){de("onend"),te.end()}var et=rt(_e);te.on("drain",et);var nt=!1;function dt(){de("cleanup"),te.removeListener("close",yt),te.removeListener("finish",xt),te.removeListener("drain",et),te.removeListener("error",St),te.removeListener("unpipe",Oe),_e.removeListener("end",We),_e.removeListener("end",vt),_e.removeListener("data",pt),nt=!0,Ue.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&et()}var ct=!1;_e.on("data",pt);function pt(Tt){de("ondata"),ct=!1;var bt=te.write(Tt);bt===!1&&!ct&&((Ue.pipesCount===1&&Ue.pipes===te||Ue.pipesCount>1&&De(Ue.pipes,te)!==-1)&&!nt&&(de("false write response, pause",_e._readableState.awaitDrain),_e._readableState.awaitDrain++,ct=!0),_e.pause())}function St(Tt){de("onerror",Tt),vt(),te.removeListener("error",St),E(te,"error")===0&&te.emit("error",Tt)}Ae(te,"error",St);function yt(){te.removeListener("finish",xt),vt()}te.once("close",yt);function xt(){de("onfinish"),te.removeListener("close",yt),vt()}te.once("finish",xt);function vt(){de("unpipe"),_e.unpipe(te)}return te.emit("pipe",_e),Ue.flowing||(de("pipe resume"),_e.resume()),te};function rt(te){return function(){var ce=te._readableState;de("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&E(te,"data")&&(ce.flowing=!0,ze(te))}}be.prototype.unpipe=function(te){var ce=this._readableState,_e={hasUnpiped:!1};if(ce.pipesCount===0)return this;if(ce.pipesCount===1)return te&&te!==ce.pipes?this:(te||(te=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,te&&te.emit("unpipe",this,_e),this);if(!te){var Ue=ce.pipes,xe=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var Se=0;Se<xe;Se++)Ue[Se].emit("unpipe",this,_e);return this}var Oe=De(ce.pipes,te);return Oe===-1?this:(ce.pipes.splice(Oe,1),ce.pipesCount-=1,ce.pipesCount===1&&(ce.pipes=ce.pipes[0]),te.emit("unpipe",this,_e),this)},be.prototype.on=function(te,ce){var _e=re.prototype.on.call(this,te,ce);if(te==="data")this._readableState.flowing!==!1&&this.resume();else if(te==="readable"){var Ue=this._readableState;!Ue.endEmitted&&!Ue.readableListening&&(Ue.readableListening=Ue.needReadable=!0,Ue.emittedReadable=!1,Ue.reading?Ue.length&&it(this):se.nextTick(tt,this))}return _e},be.prototype.addListener=be.prototype.on;function tt(te){de("readable nexttick read 0"),te.read(0)}be.prototype.resume=function(){var te=this._readableState;return te.flowing||(de("resume"),te.flowing=!0,Ve(this,te)),this};function Ve(te,ce){ce.resumeScheduled||(ce.resumeScheduled=!0,se.nextTick(Ke,te,ce))}function Ke(te,ce){ce.reading||(de("resume read 0"),te.read(0)),ce.resumeScheduled=!1,ce.awaitDrain=0,te.emit("resume"),ze(te),ce.flowing&&!ce.reading&&te.read(0)}be.prototype.pause=function(){return de("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(de("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ze(te){var ce=te._readableState;for(de("flow",ce.flowing);ce.flowing&&te.read()!==null;);}be.prototype.wrap=function(te){var ce=this,_e=this._readableState,Ue=!1;te.on("end",function(){if(de("wrapped end"),_e.decoder&&!_e.ended){var Oe=_e.decoder.end();Oe&&Oe.length&&ce.push(Oe)}ce.push(null)}),te.on("data",function(Oe){if(de("wrapped data"),_e.decoder&&(Oe=_e.decoder.write(Oe)),!(_e.objectMode&&Oe==null)&&!(!_e.objectMode&&(!Oe||!Oe.length))){var We=ce.push(Oe);We||(Ue=!0,te.pause())}});for(var xe in te)this[xe]===void 0&&typeof te[xe]=="function"&&(this[xe]=function(Oe){return function(){return te[Oe].apply(te,arguments)}}(xe));for(var Se=0;Se<Me.length;Se++)te.on(Me[Se],this.emit.bind(this,Me[Se]));return this._read=function(Oe){de("wrapped _read",Oe),Ue&&(Ue=!1,te.resume())},this},Object.defineProperty(be.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),be._fromList=at;function at(te,ce){if(ce.length===0)return null;var _e;return ce.objectMode?_e=ce.buffer.shift():!te||te>=ce.length?(ce.decoder?_e=ce.buffer.join(""):ce.buffer.length===1?_e=ce.buffer.head.data:_e=ce.buffer.concat(ce.length),ce.buffer.clear()):_e=Qe(te,ce.buffer,ce.decoder),_e}function Qe(te,ce,_e){var Ue;return te<ce.head.data.length?(Ue=ce.head.data.slice(0,te),ce.head.data=ce.head.data.slice(te)):te===ce.head.data.length?Ue=ce.shift():Ue=_e?ut(te,ce):st(te,ce),Ue}function ut(te,ce){var _e=ce.head,Ue=1,xe=_e.data;for(te-=xe.length;_e=_e.next;){var Se=_e.data,Oe=te>Se.length?Se.length:te;if(Oe===Se.length?xe+=Se:xe+=Se.slice(0,te),te-=Oe,te===0){Oe===Se.length?(++Ue,_e.next?ce.head=_e.next:ce.head=ce.tail=null):(ce.head=_e,_e.data=Se.slice(Oe));break}++Ue}return ce.length-=Ue,xe}function st(te,ce){var _e=ne.allocUnsafe(te),Ue=ce.head,xe=1;for(Ue.data.copy(_e),te-=Ue.data.length;Ue=Ue.next;){var Se=Ue.data,Oe=te>Se.length?Se.length:te;if(Se.copy(_e,_e.length-te,0,Oe),te-=Oe,te===0){Oe===Se.length?(++xe,Ue.next?ce.head=Ue.next:ce.head=ce.tail=null):(ce.head=Ue,Ue.data=Se.slice(Oe));break}++xe}return ce.length-=xe,_e}function Xe(te){var ce=te._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,se.nextTick(Le,ce,te))}function Le(te,ce){!te.endEmitted&&te.length===0&&(te.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function De(te,ce){for(var _e=0,Ue=te.length;_e<Ue;_e++)if(te[_e]===ce)return _e;return-1}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(y,Ce,ye){"use strict";Ce.exports=ae;var x=y("./_stream_duplex"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(ae,x);function se(E,re){var ne=this._transformState;ne.transforming=!1;var le=ne.writecb;if(!le)return this.emit("error",new Error("write callback called multiple times"));ne.writechunk=null,ne.writecb=null,re!=null&&this.push(re),le(E);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function ae(E){if(!(this instanceof ae))return new ae(E);x.call(this,E),this._transformState={afterTransform:se.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",ee)}function ee(){var E=this;typeof this._flush=="function"?this._flush(function(re,ne){fe(E,re,ne)}):fe(this,null,null)}ae.prototype.push=function(E,re){return this._transformState.needTransform=!1,x.prototype.push.call(this,E,re)},ae.prototype._transform=function(E,re,ne){throw new Error("_transform() is not implemented")},ae.prototype._write=function(E,re,ne){var le=this._transformState;if(le.writecb=ne,le.writechunk=E,le.writeencoding=re,!le.transforming){var ue=this._readableState;(le.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},ae.prototype._read=function(E){var re=this._transformState;re.writechunk!==null&&re.writecb&&!re.transforming?(re.transforming=!0,this._transform(re.writechunk,re.writeencoding,re.afterTransform)):re.needTransform=!0},ae.prototype._destroy=function(E,re){var ne=this;x.prototype._destroy.call(this,E,function(le){re(le),ne.emit("close")})};function fe(E,re,ne){if(re)return E.emit("error",re);if(ne!=null&&E.push(ne),E._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(E._transformState.transforming)throw new Error("Calling transform done when still transforming");return E.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(y,Ce,ye){(function(x,z,se){(function(){"use strict";var ae=y("process-nextick-args");Ce.exports=Ae;function ee(Ke,ze,at){this.chunk=Ke,this.encoding=ze,this.callback=at,this.next=null}function fe(Ke){var ze=this;this.next=null,this.entry=null,this.finish=function(){Ve(ze,Ke)}}var E=!x.browser&&["v0.10","v0.9."].indexOf(x.version.slice(0,5))>-1?se:ae.nextTick,re;Ae.WritableState=je;var ne=Object.create(y("core-util-is"));ne.inherits=y("inherits");var le={deprecate:y("util-deprecate")},ue=y("./internal/streams/stream"),he=y("safe-buffer").Buffer,pe=z.Uint8Array||function(){};function ve(Ke){return he.from(Ke)}function de(Ke){return he.isBuffer(Ke)||Ke instanceof pe}var we=y("./internal/streams/destroy");ne.inherits(Ae,ue);function Te(){}function je(Ke,ze){re=re||y("./_stream_duplex"),Ke=Ke||{};var at=ze instanceof re;this.objectMode=!!Ke.objectMode,at&&(this.objectMode=this.objectMode||!!Ke.writableObjectMode);var Qe=Ke.highWaterMark,ut=Ke.writableHighWaterMark,st=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:at&&(ut||ut===0)?this.highWaterMark=ut:this.highWaterMark=st,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Xe=Ke.decodeStrings===!1;this.decodeStrings=!Xe,this.defaultEncoding=Ke.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Le){Ze(ze,Le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new fe(this)}je.prototype.getBuffer=function(){for(var ze=this.bufferedRequest,at=[];ze;)at.push(ze),ze=ze.next;return at},function(){try{Object.defineProperty(je.prototype,"buffer",{get:le.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ke){}}();var Me;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Me=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ae,Symbol.hasInstance,{value:function(Ke){return Me.call(this,Ke)?!0:this!==Ae?!1:Ke&&Ke._writableState instanceof je}})):Me=function(Ke){return Ke instanceof this};function Ae(Ke){if(re=re||y("./_stream_duplex"),!Me.call(Ae,this)&&!(this instanceof re))return new Ae(Ke);this._writableState=new je(Ke,this),this.writable=!0,Ke&&(typeof Ke.write=="function"&&(this._write=Ke.write),typeof Ke.writev=="function"&&(this._writev=Ke.writev),typeof Ke.destroy=="function"&&(this._destroy=Ke.destroy),typeof Ke.final=="function"&&(this._final=Ke.final)),ue.call(this)}Ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ge(Ke,ze){var at=new Error("write after end");Ke.emit("error",at),ae.nextTick(ze,at)}function be(Ke,ze,at,Qe){var ut=!0,st=!1;return at===null?st=new TypeError("May not write null values to stream"):typeof at!="string"&&at!==void 0&&!ze.objectMode&&(st=new TypeError("Invalid non-string/buffer chunk")),st&&(Ke.emit("error",st),ae.nextTick(Qe,st),ut=!1),ut}Ae.prototype.write=function(Ke,ze,at){var Qe=this._writableState,ut=!1,st=!Qe.objectMode&&de(Ke);return st&&!he.isBuffer(Ke)&&(Ke=ve(Ke)),typeof ze=="function"&&(at=ze,ze=null),st?ze="buffer":ze||(ze=Qe.defaultEncoding),typeof at!="function"&&(at=Te),Qe.ended?ge(this,at):(st||be(this,Qe,Ke,at))&&(Qe.pendingcb++,ut=Re(this,Qe,st,Ke,ze,at)),ut},Ae.prototype.cork=function(){var Ke=this._writableState;Ke.corked++},Ae.prototype.uncork=function(){var Ke=this._writableState;Ke.corked&&(Ke.corked--,!Ke.writing&&!Ke.corked&&!Ke.finished&&!Ke.bufferProcessing&&Ke.bufferedRequest&&it(this,Ke))},Ae.prototype.setDefaultEncoding=function(ze){if(typeof ze=="string"&&(ze=ze.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ze+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ze);return this._writableState.defaultEncoding=ze,this};function Ee(Ke,ze,at){return!Ke.objectMode&&Ke.decodeStrings!==!1&&typeof ze=="string"&&(ze=he.from(ze,at)),ze}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(Ke,ze,at,Qe,ut,st){if(!at){var Xe=Ee(ze,Qe,ut);Qe!==Xe&&(at=!0,ut="buffer",Qe=Xe)}var Le=ze.objectMode?1:Qe.length;ze.length+=Le;var De=ze.length<ze.highWaterMark;if(De||(ze.needDrain=!0),ze.writing||ze.corked){var te=ze.lastBufferedRequest;ze.lastBufferedRequest={chunk:Qe,encoding:ut,isBuf:at,callback:st,next:null},te?te.next=ze.lastBufferedRequest:ze.bufferedRequest=ze.lastBufferedRequest,ze.bufferedRequestCount+=1}else Ie(Ke,ze,!1,Le,Qe,ut,st);return De}function Ie(Ke,ze,at,Qe,ut,st,Xe){ze.writelen=Qe,ze.writecb=Xe,ze.writing=!0,ze.sync=!0,at?Ke._writev(ut,ze.onwrite):Ke._write(ut,st,ze.onwrite),ze.sync=!1}function ke(Ke,ze,at,Qe,ut){--ze.pendingcb,at?(ae.nextTick(ut,Qe),ae.nextTick(rt,Ke,ze),Ke._writableState.errorEmitted=!0,Ke.emit("error",Qe)):(ut(Qe),Ke._writableState.errorEmitted=!0,Ke.emit("error",Qe),rt(Ke,ze))}function Pe(Ke){Ke.writing=!1,Ke.writecb=null,Ke.length-=Ke.writelen,Ke.writelen=0}function Ze(Ke,ze){var at=Ke._writableState,Qe=at.sync,ut=at.writecb;if(Pe(at),ze)ke(Ke,at,Qe,ze,ut);else{var st=Ne(at);!st&&!at.corked&&!at.bufferProcessing&&at.bufferedRequest&&it(Ke,at),Qe?E(He,Ke,at,st,ut):He(Ke,at,st,ut)}}function He(Ke,ze,at,Qe){at||$e(Ke,ze),ze.pendingcb--,Qe(),rt(Ke,ze)}function $e(Ke,ze){ze.length===0&&ze.needDrain&&(ze.needDrain=!1,Ke.emit("drain"))}function it(Ke,ze){ze.bufferProcessing=!0;var at=ze.bufferedRequest;if(Ke._writev&&at&&at.next){var Qe=ze.bufferedRequestCount,ut=new Array(Qe),st=ze.corkedRequestsFree;st.entry=at;for(var Xe=0,Le=!0;at;)ut[Xe]=at,at.isBuf||(Le=!1),at=at.next,Xe+=1;ut.allBuffers=Le,Ie(Ke,ze,!0,ze.length,ut,"",st.finish),ze.pendingcb++,ze.lastBufferedRequest=null,st.next?(ze.corkedRequestsFree=st.next,st.next=null):ze.corkedRequestsFree=new fe(ze),ze.bufferedRequestCount=0}else{for(;at;){var De=at.chunk,te=at.encoding,ce=at.callback,_e=ze.objectMode?1:De.length;if(Ie(Ke,ze,!1,_e,De,te,ce),at=at.next,ze.bufferedRequestCount--,ze.writing)break}at===null&&(ze.lastBufferedRequest=null)}ze.bufferedRequest=at,ze.bufferProcessing=!1}Ae.prototype._write=function(Ke,ze,at){at(new Error("_write() is not implemented"))},Ae.prototype._writev=null,Ae.prototype.end=function(Ke,ze,at){var Qe=this._writableState;typeof Ke=="function"?(at=Ke,Ke=null,ze=null):typeof ze=="function"&&(at=ze,ze=null),Ke!=null&&this.write(Ke,ze),Qe.corked&&(Qe.corked=1,this.uncork()),!Qe.ending&&!Qe.finished&&tt(this,Qe,at)};function Ne(Ke){return Ke.ending&&Ke.length===0&&Ke.bufferedRequest===null&&!Ke.finished&&!Ke.writing}function Fe(Ke,ze){Ke._final(function(at){ze.pendingcb--,at&&Ke.emit("error",at),ze.prefinished=!0,Ke.emit("prefinish"),rt(Ke,ze)})}function qe(Ke,ze){!ze.prefinished&&!ze.finalCalled&&(typeof Ke._final=="function"?(ze.pendingcb++,ze.finalCalled=!0,ae.nextTick(Fe,Ke,ze)):(ze.prefinished=!0,Ke.emit("prefinish")))}function rt(Ke,ze){var at=Ne(ze);return at&&(qe(Ke,ze),ze.pendingcb===0&&(ze.finished=!0,Ke.emit("finish"))),at}function tt(Ke,ze,at){ze.ending=!0,rt(Ke,ze),at&&(ze.finished?ae.nextTick(at):Ke.once("finish",at)),ze.ended=!0,Ke.writable=!1}function Ve(Ke,ze,at){var Qe=Ke.entry;for(Ke.entry=null;Qe;){var ut=Qe.callback;ze.pendingcb--,ut(at),Qe=Qe.next}ze.corkedRequestsFree?ze.corkedRequestsFree.next=Ke:ze.corkedRequestsFree=Ke}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ke){this._writableState&&(this._writableState.destroyed=Ke)}}),Ae.prototype.destroy=we.destroy,Ae.prototype._undestroy=we.undestroy,Ae.prototype._destroy=function(Ke,ze){this.end(),ze(Ke)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(y,Ce,ye){"use strict";function x(ee,fe){if(!(ee instanceof fe))throw new TypeError("Cannot call a class as a function")}var z=y("safe-buffer").Buffer,se=y("util");function ae(ee,fe,E){ee.copy(fe,E)}Ce.exports=function(){function ee(){x(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(E){var re={data:E,next:null};this.length>0?this.tail.next=re:this.head=re,this.tail=re,++this.length},ee.prototype.unshift=function(E){var re={data:E,next:this.head};this.length===0&&(this.tail=re),this.head=re,++this.length},ee.prototype.shift=function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(E){if(this.length===0)return"";for(var re=this.head,ne=""+re.data;re=re.next;)ne+=E+re.data;return ne},ee.prototype.concat=function(E){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var re=z.allocUnsafe(E>>>0),ne=this.head,le=0;ne;)ae(ne.data,re,le),le+=ne.data.length,ne=ne.next;return re},ee}(),se&&se.inspect&&se.inspect.custom&&(Ce.exports.prototype[se.inspect.custom]=function(){var ee=se.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,Ce,ye){"use strict";var x=y("process-nextick-args");function z(ee,fe){var E=this,re=this._readableState&&this._readableState.destroyed,ne=this._writableState&&this._writableState.destroyed;return re||ne?(fe?fe(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&x.nextTick(ae,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(le){!fe&&le?(x.nextTick(ae,E,le),E._writableState&&(E._writableState.errorEmitted=!0)):fe&&fe(le)}),this)}function se(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ae(ee,fe){ee.emit("error",fe)}Ce.exports={destroy:z,undestroy:se}},{"process-nextick-args":380}],393:[function(y,Ce,ye){Ce.exports=y("events").EventEmitter},{events:344}],394:[function(y,Ce,ye){ye=Ce.exports=y("./lib/_stream_readable.js"),ye.Stream=ye,ye.Readable=ye,ye.Writable=y("./lib/_stream_writable.js"),ye.Duplex=y("./lib/_stream_duplex.js"),ye.Transform=y("./lib/_stream_transform.js"),ye.PassThrough=y("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(y,Ce,ye){var x=function(z){"use strict";var se=Object.prototype,ae=se.hasOwnProperty,ee,fe=typeof Symbol=="function"?Symbol:{},E=fe.iterator||"@@iterator",re=fe.asyncIterator||"@@asyncIterator",ne=fe.toStringTag||"@@toStringTag";function le(qe,rt,tt){return Object.defineProperty(qe,rt,{value:tt,enumerable:!0,configurable:!0,writable:!0}),qe[rt]}try{le({},"")}catch(qe){le=function(rt,tt,Ve){return rt[tt]=Ve}}function ue(qe,rt,tt,Ve){var Ke=rt&&rt.prototype instanceof je?rt:je,ze=Object.create(Ke.prototype),at=new it(Ve||[]);return ze._invoke=Pe(qe,tt,at),ze}z.wrap=ue;function he(qe,rt,tt){try{return{type:"normal",arg:qe.call(rt,tt)}}catch(Ve){return{type:"throw",arg:Ve}}}var pe="suspendedStart",ve="suspendedYield",de="executing",we="completed",Te={};function je(){}function Me(){}function Ae(){}var ge={};le(ge,E,function(){return this});var be=Object.getPrototypeOf,Ee=be&&be(be(Ne([])));Ee&&Ee!==se&&ae.call(Ee,E)&&(ge=Ee);var Re=Ae.prototype=je.prototype=Object.create(ge);Me.prototype=Ae,le(Re,"constructor",Ae),le(Ae,"constructor",Me),Me.displayName=le(Ae,ne,"GeneratorFunction");function Ie(qe){["next","throw","return"].forEach(function(rt){le(qe,rt,function(tt){return this._invoke(rt,tt)})})}z.isGeneratorFunction=function(qe){var rt=typeof qe=="function"&&qe.constructor;return rt?rt===Me||(rt.displayName||rt.name)==="GeneratorFunction":!1},z.mark=function(qe){return Object.setPrototypeOf?Object.setPrototypeOf(qe,Ae):(qe.__proto__=Ae,le(qe,ne,"GeneratorFunction")),qe.prototype=Object.create(Re),qe},z.awrap=function(qe){return{__await:qe}};function ke(qe,rt){function tt(ze,at,Qe,ut){var st=he(qe[ze],qe,at);if(st.type==="throw")ut(st.arg);else{var Xe=st.arg,Le=Xe.value;return Le&&typeof Le=="object"&&ae.call(Le,"__await")?rt.resolve(Le.__await).then(function(De){tt("next",De,Qe,ut)},function(De){tt("throw",De,Qe,ut)}):rt.resolve(Le).then(function(De){Xe.value=De,Qe(Xe)},function(De){return tt("throw",De,Qe,ut)})}}var Ve;function Ke(ze,at){function Qe(){return new rt(function(ut,st){tt(ze,at,ut,st)})}return Ve=Ve?Ve.then(Qe,Qe):Qe()}this._invoke=Ke}Ie(ke.prototype),le(ke.prototype,re,function(){return this}),z.AsyncIterator=ke,z.async=function(qe,rt,tt,Ve,Ke){Ke===void 0&&(Ke=Promise);var ze=new ke(ue(qe,rt,tt,Ve),Ke);return z.isGeneratorFunction(rt)?ze:ze.next().then(function(at){return at.done?at.value:ze.next()})};function Pe(qe,rt,tt){var Ve=pe;return function(ze,at){if(Ve===de)throw new Error("Generator is already running");if(Ve===we){if(ze==="throw")throw at;return Fe()}for(tt.method=ze,tt.arg=at;;){var Qe=tt.delegate;if(Qe){var ut=Ze(Qe,tt);if(ut){if(ut===Te)continue;return ut}}if(tt.method==="next")tt.sent=tt._sent=tt.arg;else if(tt.method==="throw"){if(Ve===pe)throw Ve=we,tt.arg;tt.dispatchException(tt.arg)}else tt.method==="return"&&tt.abrupt("return",tt.arg);Ve=de;var st=he(qe,rt,tt);if(st.type==="normal"){if(Ve=tt.done?we:ve,st.arg===Te)continue;return{value:st.arg,done:tt.done}}else st.type==="throw"&&(Ve=we,tt.method="throw",tt.arg=st.arg)}}}function Ze(qe,rt){var tt=qe.iterator[rt.method];if(tt===ee){if(rt.delegate=null,rt.method==="throw"){if(qe.iterator.return&&(rt.method="return",rt.arg=ee,Ze(qe,rt),rt.method==="throw"))return Te;rt.method="throw",rt.arg=new TypeError("The iterator does not provide a 'throw' method")}return Te}var Ve=he(tt,qe.iterator,rt.arg);if(Ve.type==="throw")return rt.method="throw",rt.arg=Ve.arg,rt.delegate=null,Te;var Ke=Ve.arg;if(!Ke)return rt.method="throw",rt.arg=new TypeError("iterator result is not an object"),rt.delegate=null,Te;if(Ke.done)rt[qe.resultName]=Ke.value,rt.next=qe.nextLoc,rt.method!=="return"&&(rt.method="next",rt.arg=ee);else return Ke;return rt.delegate=null,Te}Ie(Re),le(Re,ne,"Generator"),le(Re,E,function(){return this}),le(Re,"toString",function(){return"[object Generator]"});function He(qe){var rt={tryLoc:qe[0]};1 in qe&&(rt.catchLoc=qe[1]),2 in qe&&(rt.finallyLoc=qe[2],rt.afterLoc=qe[3]),this.tryEntries.push(rt)}function $e(qe){var rt=qe.completion||{};rt.type="normal",delete rt.arg,qe.completion=rt}function it(qe){this.tryEntries=[{tryLoc:"root"}],qe.forEach(He,this),this.reset(!0)}z.keys=function(qe){var rt=[];for(var tt in qe)rt.push(tt);return rt.reverse(),function Ve(){for(;rt.length;){var Ke=rt.pop();if(Ke in qe)return Ve.value=Ke,Ve.done=!1,Ve}return Ve.done=!0,Ve}};function Ne(qe){if(qe){var rt=qe[E];if(rt)return rt.call(qe);if(typeof qe.next=="function")return qe;if(!isNaN(qe.length)){var tt=-1,Ve=function Ke(){for(;++tt<qe.length;)if(ae.call(qe,tt))return Ke.value=qe[tt],Ke.done=!1,Ke;return Ke.value=ee,Ke.done=!0,Ke};return Ve.next=Ve}}return{next:Fe}}z.values=Ne;function Fe(){return{value:ee,done:!0}}return it.prototype={constructor:it,reset:function(qe){if(this.prev=0,this.next=0,this.sent=this._sent=ee,this.done=!1,this.delegate=null,this.method="next",this.arg=ee,this.tryEntries.forEach($e),!qe)for(var rt in this)rt.charAt(0)==="t"&&ae.call(this,rt)&&!isNaN(+rt.slice(1))&&(this[rt]=ee)},stop:function(){this.done=!0;var qe=this.tryEntries[0],rt=qe.completion;if(rt.type==="throw")throw rt.arg;return this.rval},dispatchException:function(qe){if(this.done)throw qe;var rt=this;function tt(ut,st){return ze.type="throw",ze.arg=qe,rt.next=ut,st&&(rt.method="next",rt.arg=ee),!!st}for(var Ve=this.tryEntries.length-1;Ve>=0;--Ve){var Ke=this.tryEntries[Ve],ze=Ke.completion;if(Ke.tryLoc==="root")return tt("end");if(Ke.tryLoc<=this.prev){var at=ae.call(Ke,"catchLoc"),Qe=ae.call(Ke,"finallyLoc");if(at&&Qe){if(this.prev<Ke.catchLoc)return tt(Ke.catchLoc,!0);if(this.prev<Ke.finallyLoc)return tt(Ke.finallyLoc)}else if(at){if(this.prev<Ke.catchLoc)return tt(Ke.catchLoc,!0)}else if(Qe){if(this.prev<Ke.finallyLoc)return tt(Ke.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(qe,rt){for(var tt=this.tryEntries.length-1;tt>=0;--tt){var Ve=this.tryEntries[tt];if(Ve.tryLoc<=this.prev&&ae.call(Ve,"finallyLoc")&&this.prev<Ve.finallyLoc){var Ke=Ve;break}}Ke&&(qe==="break"||qe==="continue")&&Ke.tryLoc<=rt&&rt<=Ke.finallyLoc&&(Ke=null);var ze=Ke?Ke.completion:{};return ze.type=qe,ze.arg=rt,Ke?(this.method="next",this.next=Ke.finallyLoc,Te):this.complete(ze)},complete:function(qe,rt){if(qe.type==="throw")throw qe.arg;return qe.type==="break"||qe.type==="continue"?this.next=qe.arg:qe.type==="return"?(this.rval=this.arg=qe.arg,this.method="return",this.next="end"):qe.type==="normal"&&rt&&(this.next=rt),Te},finish:function(qe){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var tt=this.tryEntries[rt];if(tt.finallyLoc===qe)return this.complete(tt.completion,tt.afterLoc),$e(tt),Te}},catch:function(qe){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var tt=this.tryEntries[rt];if(tt.tryLoc===qe){var Ve=tt.completion;if(Ve.type==="throw"){var Ke=Ve.arg;$e(tt)}return Ke}}throw new Error("illegal catch attempt")},delegateYield:function(qe,rt,tt){return this.delegate={iterator:Ne(qe),resultName:rt,nextLoc:tt},this.method==="next"&&(this.arg=ee),Te}},z}(typeof Ce=="object"?Ce.exports:{});try{regeneratorRuntime=x}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},{}],396:[function(y,Ce,ye){var x=y("buffer"),z=x.Buffer;function se(ee,fe){for(var E in ee)fe[E]=ee[E]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?Ce.exports=x:(se(x,ye),ye.Buffer=ae);function ae(ee,fe,E){return z(ee,fe,E)}se(z,ae),ae.from=function(ee,fe,E){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return z(ee,fe,E)},ae.alloc=function(ee,fe,E){if(typeof ee!="number")throw new TypeError("Argument must be a number");var re=z(ee);return fe!==void 0?typeof E=="string"?re.fill(fe,E):re.fill(fe):re.fill(0),re},ae.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z(ee)},ae.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(ee)}},{buffer:90}],397:[function(y,Ce,ye){(function(x){(function(){(function(z){z.parser=function(Xe,Le){return new ae(Xe,Le)},z.SAXParser=ae,z.SAXStream=ue,z.createStream=le,z.MAX_BUFFER_LENGTH=64*1024;var se=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];z.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function ae(Xe,Le){if(!(this instanceof ae))return new ae(Xe,Le);var De=this;fe(De),De.q=De.c="",De.bufferCheckPosition=z.MAX_BUFFER_LENGTH,De.opt=Le||{},De.opt.lowercase=De.opt.lowercase||De.opt.lowercasetags,De.looseCase=De.opt.lowercase?"toLowerCase":"toUpperCase",De.tags=[],De.closed=De.closedRoot=De.sawRoot=!1,De.tag=De.error=null,De.strict=!!Xe,De.noscript=!!(Xe||De.opt.noscript),De.state=ke.BEGIN,De.strictEntities=De.opt.strictEntities,De.ENTITIES=De.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),De.attribList=[],De.opt.xmlns&&(De.ns=Object.create(we)),De.trackPosition=De.opt.position!==!1,De.trackPosition&&(De.position=De.line=De.column=0),Ze(De,"onready")}Object.create||(Object.create=function(Xe){function Le(){}Le.prototype=Xe;var De=new Le;return De}),Object.keys||(Object.keys=function(Xe){var Le=[];for(var De in Xe)Xe.hasOwnProperty(De)&&Le.push(De);return Le});function ee(Xe){for(var Le=Math.max(z.MAX_BUFFER_LENGTH,10),De=0,te=0,ce=se.length;te<ce;te++){var _e=Xe[se[te]].length;if(_e>Le)switch(se[te]){case"textNode":$e(Xe);break;case"cdata":He(Xe,"oncdata",Xe.cdata),Xe.cdata="";break;case"script":He(Xe,"onscript",Xe.script),Xe.script="";break;default:Ne(Xe,"Max buffer length exceeded: "+se[te])}De=Math.max(De,_e)}var Ue=z.MAX_BUFFER_LENGTH-De;Xe.bufferCheckPosition=Ue+Xe.position}function fe(Xe){for(var Le=0,De=se.length;Le<De;Le++)Xe[se[Le]]=""}function E(Xe){$e(Xe),Xe.cdata!==""&&(He(Xe,"oncdata",Xe.cdata),Xe.cdata=""),Xe.script!==""&&(He(Xe,"onscript",Xe.script),Xe.script="")}ae.prototype={end:function(){Fe(this)},write:st,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var re;try{re=y("stream").Stream}catch(Xe){re=function(){}}var ne=z.EVENTS.filter(function(Xe){return Xe!=="error"&&Xe!=="end"});function le(Xe,Le){return new ue(Xe,Le)}function ue(Xe,Le){if(!(this instanceof ue))return new ue(Xe,Le);re.apply(this),this._parser=new ae(Xe,Le),this.writable=!0,this.readable=!0;var De=this;this._parser.onend=function(){De.emit("end")},this._parser.onerror=function(te){De.emit("error",te),De._parser.error=null},this._decoder=null,ne.forEach(function(te){Object.defineProperty(De,"on"+te,{get:function(){return De._parser["on"+te]},set:function(ce){if(!ce)return De.removeAllListeners(te),De._parser["on"+te]=ce,ce;De.on(te,ce)},enumerable:!0,configurable:!1})})}ue.prototype=Object.create(re.prototype,{constructor:{value:ue}}),ue.prototype.write=function(Xe){if(typeof x=="function"&&typeof x.isBuffer=="function"&&x.isBuffer(Xe)){if(!this._decoder){var Le=y("string_decoder").StringDecoder;this._decoder=new Le("utf8")}Xe=this._decoder.write(Xe)}return this._parser.write(Xe.toString()),this.emit("data",Xe),!0},ue.prototype.end=function(Xe){return Xe&&Xe.length&&this.write(Xe),this._parser.end(),!0},ue.prototype.on=function(Xe,Le){var De=this;return!De._parser["on"+Xe]&&ne.indexOf(Xe)!==-1&&(De._parser["on"+Xe]=function(){var te=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);te.splice(0,0,Xe),De.emit.apply(De,te)}),re.prototype.on.call(De,Xe,Le)};var he="[CDATA[",pe="DOCTYPE",ve="http://www.w3.org/XML/1998/namespace",de="http://www.w3.org/2000/xmlns/",we={xml:ve,xmlns:de},Te=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,je=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Me=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ae=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function ge(Xe){return Xe===" "||Xe===`
`||Xe==="\r"||Xe===" "}function be(Xe){return Xe==='"'||Xe==="'"}function Ee(Xe){return Xe===">"||ge(Xe)}function Re(Xe,Le){return Xe.test(Le)}function Ie(Xe,Le){return!Re(Xe,Le)}var ke=0;z.STATE={BEGIN:ke++,BEGIN_WHITESPACE:ke++,TEXT:ke++,TEXT_ENTITY:ke++,OPEN_WAKA:ke++,SGML_DECL:ke++,SGML_DECL_QUOTED:ke++,DOCTYPE:ke++,DOCTYPE_QUOTED:ke++,DOCTYPE_DTD:ke++,DOCTYPE_DTD_QUOTED:ke++,COMMENT_STARTING:ke++,COMMENT:ke++,COMMENT_ENDING:ke++,COMMENT_ENDED:ke++,CDATA:ke++,CDATA_ENDING:ke++,CDATA_ENDING_2:ke++,PROC_INST:ke++,PROC_INST_BODY:ke++,PROC_INST_ENDING:ke++,OPEN_TAG:ke++,OPEN_TAG_SLASH:ke++,ATTRIB:ke++,ATTRIB_NAME:ke++,ATTRIB_NAME_SAW_WHITE:ke++,ATTRIB_VALUE:ke++,ATTRIB_VALUE_QUOTED:ke++,ATTRIB_VALUE_CLOSED:ke++,ATTRIB_VALUE_UNQUOTED:ke++,ATTRIB_VALUE_ENTITY_Q:ke++,ATTRIB_VALUE_ENTITY_U:ke++,CLOSE_TAG:ke++,CLOSE_TAG_SAW_WHITE:ke++,SCRIPT:ke++,SCRIPT_ENDING:ke++},z.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},z.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(z.ENTITIES).forEach(function(Xe){var Le=z.ENTITIES[Xe],De=typeof Le=="number"?String.fromCharCode(Le):Le;z.ENTITIES[Xe]=De});for(var Pe in z.STATE)z.STATE[z.STATE[Pe]]=Pe;ke=z.STATE;function Ze(Xe,Le,De){Xe[Le]&&Xe[Le](De)}function He(Xe,Le,De){Xe.textNode&&$e(Xe),Ze(Xe,Le,De)}function $e(Xe){Xe.textNode=it(Xe.opt,Xe.textNode),Xe.textNode&&Ze(Xe,"ontext",Xe.textNode),Xe.textNode=""}function it(Xe,Le){return Xe.trim&&(Le=Le.trim()),Xe.normalize&&(Le=Le.replace(/\s+/g," ")),Le}function Ne(Xe,Le){return $e(Xe),Xe.trackPosition&&(Le+=`
Line: `+Xe.line+`
Column: `+Xe.column+`
Char: `+Xe.c),Le=new Error(Le),Xe.error=Le,Ze(Xe,"onerror",Le),Xe}function Fe(Xe){return Xe.sawRoot&&!Xe.closedRoot&&qe(Xe,"Unclosed root tag"),Xe.state!==ke.BEGIN&&Xe.state!==ke.BEGIN_WHITESPACE&&Xe.state!==ke.TEXT&&Ne(Xe,"Unexpected end"),$e(Xe),Xe.c="",Xe.closed=!0,Ze(Xe,"onend"),ae.call(Xe,Xe.strict,Xe.opt),Xe}function qe(Xe,Le){if(typeof Xe!="object"||!(Xe instanceof ae))throw new Error("bad call to strictFail");Xe.strict&&Ne(Xe,Le)}function rt(Xe){Xe.strict||(Xe.tagName=Xe.tagName[Xe.looseCase]());var Le=Xe.tags[Xe.tags.length-1]||Xe,De=Xe.tag={name:Xe.tagName,attributes:{}};Xe.opt.xmlns&&(De.ns=Le.ns),Xe.attribList.length=0,He(Xe,"onopentagstart",De)}function tt(Xe,Le){var De=Xe.indexOf(":"),te=De<0?["",Xe]:Xe.split(":"),ce=te[0],_e=te[1];return Le&&Xe==="xmlns"&&(ce="xmlns",_e=""),{prefix:ce,local:_e}}function Ve(Xe){if(Xe.strict||(Xe.attribName=Xe.attribName[Xe.looseCase]()),Xe.attribList.indexOf(Xe.attribName)!==-1||Xe.tag.attributes.hasOwnProperty(Xe.attribName)){Xe.attribName=Xe.attribValue="";return}if(Xe.opt.xmlns){var Le=tt(Xe.attribName,!0),De=Le.prefix,te=Le.local;if(De==="xmlns")if(te==="xml"&&Xe.attribValue!==ve)qe(Xe,"xml: prefix must be bound to "+ve+`
Actual: `+Xe.attribValue);else if(te==="xmlns"&&Xe.attribValue!==de)qe(Xe,"xmlns: prefix must be bound to "+de+`
Actual: `+Xe.attribValue);else{var ce=Xe.tag,_e=Xe.tags[Xe.tags.length-1]||Xe;ce.ns===_e.ns&&(ce.ns=Object.create(_e.ns)),ce.ns[te]=Xe.attribValue}Xe.attribList.push([Xe.attribName,Xe.attribValue])}else Xe.tag.attributes[Xe.attribName]=Xe.attribValue,He(Xe,"onattribute",{name:Xe.attribName,value:Xe.attribValue});Xe.attribName=Xe.attribValue=""}function Ke(Xe,Le){if(Xe.opt.xmlns){var De=Xe.tag,te=tt(Xe.tagName);De.prefix=te.prefix,De.local=te.local,De.uri=De.ns[te.prefix]||"",De.prefix&&!De.uri&&(qe(Xe,"Unbound namespace prefix: "+JSON.stringify(Xe.tagName)),De.uri=te.prefix);var ce=Xe.tags[Xe.tags.length-1]||Xe;De.ns&&ce.ns!==De.ns&&Object.keys(De.ns).forEach(function(pt){He(Xe,"onopennamespace",{prefix:pt,uri:De.ns[pt]})});for(var _e=0,Ue=Xe.attribList.length;_e<Ue;_e++){var xe=Xe.attribList[_e],Se=xe[0],Oe=xe[1],We=tt(Se,!0),et=We.prefix,nt=We.local,dt=et===""?"":De.ns[et]||"",ct={name:Se,value:Oe,prefix:et,local:nt,uri:dt};et&&et!=="xmlns"&&!dt&&(qe(Xe,"Unbound namespace prefix: "+JSON.stringify(et)),ct.uri=et),Xe.tag.attributes[Se]=ct,He(Xe,"onattribute",ct)}Xe.attribList.length=0}Xe.tag.isSelfClosing=!!Le,Xe.sawRoot=!0,Xe.tags.push(Xe.tag),He(Xe,"onopentag",Xe.tag),Le||(!Xe.noscript&&Xe.tagName.toLowerCase()==="script"?Xe.state=ke.SCRIPT:Xe.state=ke.TEXT,Xe.tag=null,Xe.tagName=""),Xe.attribName=Xe.attribValue="",Xe.attribList.length=0}function ze(Xe){if(!Xe.tagName){qe(Xe,"Weird empty close tag."),Xe.textNode+="</>",Xe.state=ke.TEXT;return}if(Xe.script){if(Xe.tagName!=="script"){Xe.script+="</"+Xe.tagName+">",Xe.tagName="",Xe.state=ke.SCRIPT;return}He(Xe,"onscript",Xe.script),Xe.script=""}var Le=Xe.tags.length,De=Xe.tagName;Xe.strict||(De=De[Xe.looseCase]());for(var te=De;Le--;){var ce=Xe.tags[Le];if(ce.name!==te)qe(Xe,"Unexpected close tag");else break}if(Le<0){qe(Xe,"Unmatched closing tag: "+Xe.tagName),Xe.textNode+="</"+Xe.tagName+">",Xe.state=ke.TEXT;return}Xe.tagName=De;for(var _e=Xe.tags.length;_e-- >Le;){var Ue=Xe.tag=Xe.tags.pop();Xe.tagName=Xe.tag.name,He(Xe,"onclosetag",Xe.tagName);var xe={};for(var Se in Ue.ns)xe[Se]=Ue.ns[Se];var Oe=Xe.tags[Xe.tags.length-1]||Xe;Xe.opt.xmlns&&Ue.ns!==Oe.ns&&Object.keys(Ue.ns).forEach(function(We){var et=Ue.ns[We];He(Xe,"onclosenamespace",{prefix:We,uri:et})})}Le===0&&(Xe.closedRoot=!0),Xe.tagName=Xe.attribValue=Xe.attribName="",Xe.attribList.length=0,Xe.state=ke.TEXT}function at(Xe){var Le=Xe.entity,De=Le.toLowerCase(),te,ce="";return Xe.ENTITIES[Le]?Xe.ENTITIES[Le]:Xe.ENTITIES[De]?Xe.ENTITIES[De]:(Le=De,Le.charAt(0)==="#"&&(Le.charAt(1)==="x"?(Le=Le.slice(2),te=parseInt(Le,16),ce=te.toString(16)):(Le=Le.slice(1),te=parseInt(Le,10),ce=te.toString(10))),Le=Le.replace(/^0+/,""),isNaN(te)||ce.toLowerCase()!==Le?(qe(Xe,"Invalid character entity"),"&"+Xe.entity+";"):String.fromCodePoint(te))}function Qe(Xe,Le){Le==="<"?(Xe.state=ke.OPEN_WAKA,Xe.startTagPosition=Xe.position):ge(Le)||(qe(Xe,"Non-whitespace before first tag."),Xe.textNode=Le,Xe.state=ke.TEXT)}function ut(Xe,Le){var De="";return Le<Xe.length&&(De=Xe.charAt(Le)),De}function st(Xe){var Le=this;if(this.error)throw this.error;if(Le.closed)return Ne(Le,"Cannot write after close. Assign an onready handler.");if(Xe===null)return Fe(Le);typeof Xe=="object"&&(Xe=Xe.toString());for(var De=0,te="";te=ut(Xe,De++),Le.c=te,!!te;)switch(Le.trackPosition&&(Le.position++,te===`
`?(Le.line++,Le.column=0):Le.column++),Le.state){case ke.BEGIN:if(Le.state=ke.BEGIN_WHITESPACE,te==="\uFEFF")continue;Qe(Le,te);continue;case ke.BEGIN_WHITESPACE:Qe(Le,te);continue;case ke.TEXT:if(Le.sawRoot&&!Le.closedRoot){for(var ce=De-1;te&&te!=="<"&&te!=="&";)te=ut(Xe,De++),te&&Le.trackPosition&&(Le.position++,te===`
`?(Le.line++,Le.column=0):Le.column++);Le.textNode+=Xe.substring(ce,De-1)}te==="<"&&!(Le.sawRoot&&Le.closedRoot&&!Le.strict)?(Le.state=ke.OPEN_WAKA,Le.startTagPosition=Le.position):(!ge(te)&&(!Le.sawRoot||Le.closedRoot)&&qe(Le,"Text data outside of root node."),te==="&"?Le.state=ke.TEXT_ENTITY:Le.textNode+=te);continue;case ke.SCRIPT:te==="<"?Le.state=ke.SCRIPT_ENDING:Le.script+=te;continue;case ke.SCRIPT_ENDING:te==="/"?Le.state=ke.CLOSE_TAG:(Le.script+="<"+te,Le.state=ke.SCRIPT);continue;case ke.OPEN_WAKA:if(te==="!")Le.state=ke.SGML_DECL,Le.sgmlDecl="";else if(!ge(te))if(Re(Te,te))Le.state=ke.OPEN_TAG,Le.tagName=te;else if(te==="/")Le.state=ke.CLOSE_TAG,Le.tagName="";else if(te==="?")Le.state=ke.PROC_INST,Le.procInstName=Le.procInstBody="";else{if(qe(Le,"Unencoded <"),Le.startTagPosition+1<Le.position){var _e=Le.position-Le.startTagPosition;te=new Array(_e).join(" ")+te}Le.textNode+="<"+te,Le.state=ke.TEXT}continue;case ke.SGML_DECL:(Le.sgmlDecl+te).toUpperCase()===he?(He(Le,"onopencdata"),Le.state=ke.CDATA,Le.sgmlDecl="",Le.cdata=""):Le.sgmlDecl+te==="--"?(Le.state=ke.COMMENT,Le.comment="",Le.sgmlDecl=""):(Le.sgmlDecl+te).toUpperCase()===pe?(Le.state=ke.DOCTYPE,(Le.doctype||Le.sawRoot)&&qe(Le,"Inappropriately located doctype declaration"),Le.doctype="",Le.sgmlDecl=""):te===">"?(He(Le,"onsgmldeclaration",Le.sgmlDecl),Le.sgmlDecl="",Le.state=ke.TEXT):(be(te)&&(Le.state=ke.SGML_DECL_QUOTED),Le.sgmlDecl+=te);continue;case ke.SGML_DECL_QUOTED:te===Le.q&&(Le.state=ke.SGML_DECL,Le.q=""),Le.sgmlDecl+=te;continue;case ke.DOCTYPE:te===">"?(Le.state=ke.TEXT,He(Le,"ondoctype",Le.doctype),Le.doctype=!0):(Le.doctype+=te,te==="["?Le.state=ke.DOCTYPE_DTD:be(te)&&(Le.state=ke.DOCTYPE_QUOTED,Le.q=te));continue;case ke.DOCTYPE_QUOTED:Le.doctype+=te,te===Le.q&&(Le.q="",Le.state=ke.DOCTYPE);continue;case ke.DOCTYPE_DTD:Le.doctype+=te,te==="]"?Le.state=ke.DOCTYPE:be(te)&&(Le.state=ke.DOCTYPE_DTD_QUOTED,Le.q=te);continue;case ke.DOCTYPE_DTD_QUOTED:Le.doctype+=te,te===Le.q&&(Le.state=ke.DOCTYPE_DTD,Le.q="");continue;case ke.COMMENT:te==="-"?Le.state=ke.COMMENT_ENDING:Le.comment+=te;continue;case ke.COMMENT_ENDING:te==="-"?(Le.state=ke.COMMENT_ENDED,Le.comment=it(Le.opt,Le.comment),Le.comment&&He(Le,"oncomment",Le.comment),Le.comment=""):(Le.comment+="-"+te,Le.state=ke.COMMENT);continue;case ke.COMMENT_ENDED:te!==">"?(qe(Le,"Malformed comment"),Le.comment+="--"+te,Le.state=ke.COMMENT):Le.state=ke.TEXT;continue;case ke.CDATA:te==="]"?Le.state=ke.CDATA_ENDING:Le.cdata+=te;continue;case ke.CDATA_ENDING:te==="]"?Le.state=ke.CDATA_ENDING_2:(Le.cdata+="]"+te,Le.state=ke.CDATA);continue;case ke.CDATA_ENDING_2:te===">"?(Le.cdata&&He(Le,"oncdata",Le.cdata),He(Le,"onclosecdata"),Le.cdata="",Le.state=ke.TEXT):te==="]"?Le.cdata+="]":(Le.cdata+="]]"+te,Le.state=ke.CDATA);continue;case ke.PROC_INST:te==="?"?Le.state=ke.PROC_INST_ENDING:ge(te)?Le.state=ke.PROC_INST_BODY:Le.procInstName+=te;continue;case ke.PROC_INST_BODY:if(!Le.procInstBody&&ge(te))continue;te==="?"?Le.state=ke.PROC_INST_ENDING:Le.procInstBody+=te;continue;case ke.PROC_INST_ENDING:te===">"?(He(Le,"onprocessinginstruction",{name:Le.procInstName,body:Le.procInstBody}),Le.procInstName=Le.procInstBody="",Le.state=ke.TEXT):(Le.procInstBody+="?"+te,Le.state=ke.PROC_INST_BODY);continue;case ke.OPEN_TAG:Re(je,te)?Le.tagName+=te:(rt(Le),te===">"?Ke(Le):te==="/"?Le.state=ke.OPEN_TAG_SLASH:(ge(te)||qe(Le,"Invalid character in tag name"),Le.state=ke.ATTRIB));continue;case ke.OPEN_TAG_SLASH:te===">"?(Ke(Le,!0),ze(Le)):(qe(Le,"Forward-slash in opening tag not followed by >"),Le.state=ke.ATTRIB);continue;case ke.ATTRIB:if(ge(te))continue;te===">"?Ke(Le):te==="/"?Le.state=ke.OPEN_TAG_SLASH:Re(Te,te)?(Le.attribName=te,Le.attribValue="",Le.state=ke.ATTRIB_NAME):qe(Le,"Invalid attribute name");continue;case ke.ATTRIB_NAME:te==="="?Le.state=ke.ATTRIB_VALUE:te===">"?(qe(Le,"Attribute without value"),Le.attribValue=Le.attribName,Ve(Le),Ke(Le)):ge(te)?Le.state=ke.ATTRIB_NAME_SAW_WHITE:Re(je,te)?Le.attribName+=te:qe(Le,"Invalid attribute name");continue;case ke.ATTRIB_NAME_SAW_WHITE:if(te==="=")Le.state=ke.ATTRIB_VALUE;else{if(ge(te))continue;qe(Le,"Attribute without value"),Le.tag.attributes[Le.attribName]="",Le.attribValue="",He(Le,"onattribute",{name:Le.attribName,value:""}),Le.attribName="",te===">"?Ke(Le):Re(Te,te)?(Le.attribName=te,Le.state=ke.ATTRIB_NAME):(qe(Le,"Invalid attribute name"),Le.state=ke.ATTRIB)}continue;case ke.ATTRIB_VALUE:if(ge(te))continue;be(te)?(Le.q=te,Le.state=ke.ATTRIB_VALUE_QUOTED):(qe(Le,"Unquoted attribute value"),Le.state=ke.ATTRIB_VALUE_UNQUOTED,Le.attribValue=te);continue;case ke.ATTRIB_VALUE_QUOTED:if(te!==Le.q){te==="&"?Le.state=ke.ATTRIB_VALUE_ENTITY_Q:Le.attribValue+=te;continue}Ve(Le),Le.q="",Le.state=ke.ATTRIB_VALUE_CLOSED;continue;case ke.ATTRIB_VALUE_CLOSED:ge(te)?Le.state=ke.ATTRIB:te===">"?Ke(Le):te==="/"?Le.state=ke.OPEN_TAG_SLASH:Re(Te,te)?(qe(Le,"No whitespace between attributes"),Le.attribName=te,Le.attribValue="",Le.state=ke.ATTRIB_NAME):qe(Le,"Invalid attribute name");continue;case ke.ATTRIB_VALUE_UNQUOTED:if(!Ee(te)){te==="&"?Le.state=ke.ATTRIB_VALUE_ENTITY_U:Le.attribValue+=te;continue}Ve(Le),te===">"?Ke(Le):Le.state=ke.ATTRIB;continue;case ke.CLOSE_TAG:if(Le.tagName)te===">"?ze(Le):Re(je,te)?Le.tagName+=te:Le.script?(Le.script+="</"+Le.tagName,Le.tagName="",Le.state=ke.SCRIPT):(ge(te)||qe(Le,"Invalid tagname in closing tag"),Le.state=ke.CLOSE_TAG_SAW_WHITE);else{if(ge(te))continue;Ie(Te,te)?Le.script?(Le.script+="</"+te,Le.state=ke.SCRIPT):qe(Le,"Invalid tagname in closing tag."):Le.tagName=te}continue;case ke.CLOSE_TAG_SAW_WHITE:if(ge(te))continue;te===">"?ze(Le):qe(Le,"Invalid characters in closing tag");continue;case ke.TEXT_ENTITY:case ke.ATTRIB_VALUE_ENTITY_Q:case ke.ATTRIB_VALUE_ENTITY_U:var Ue,xe;switch(Le.state){case ke.TEXT_ENTITY:Ue=ke.TEXT,xe="textNode";break;case ke.ATTRIB_VALUE_ENTITY_Q:Ue=ke.ATTRIB_VALUE_QUOTED,xe="attribValue";break;case ke.ATTRIB_VALUE_ENTITY_U:Ue=ke.ATTRIB_VALUE_UNQUOTED,xe="attribValue";break}te===";"?(Le[xe]+=at(Le),Le.entity="",Le.state=Ue):Re(Le.entity.length?Ae:Me,te)?Le.entity+=te:(qe(Le,"Invalid character in entity name"),Le[xe]+="&"+Le.entity+te,Le.entity="",Le.state=Ue);continue;default:throw new Error(Le,"Unknown state: "+Le.state)}return Le.position>=Le.bufferCheckPosition&&ee(Le),Le}String.fromCodePoint||function(){var Xe=String.fromCharCode,Le=Math.floor,De=function(){var te=16384,ce=[],_e,Ue,xe=-1,Se=arguments.length;if(!Se)return"";for(var Oe="";++xe<Se;){var We=Number(arguments[xe]);if(!isFinite(We)||We<0||We>1114111||Le(We)!==We)throw RangeError("Invalid code point: "+We);We<=65535?ce.push(We):(We-=65536,_e=(We>>10)+55296,Ue=We%1024+56320,ce.push(_e,Ue)),(xe+1===Se||ce.length>te)&&(Oe+=Xe.apply(null,ce),ce.length=0)}return Oe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:De,configurable:!0,writable:!0}):String.fromCodePoint=De}()})(typeof ye=="undefined"?this.sax={}:ye)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,Ce,ye){Ce.exports=se;var x=y("events").EventEmitter,z=y("inherits");z(se,x),se.Readable=y("readable-stream/lib/_stream_readable.js"),se.Writable=y("readable-stream/lib/_stream_writable.js"),se.Duplex=y("readable-stream/lib/_stream_duplex.js"),se.Transform=y("readable-stream/lib/_stream_transform.js"),se.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),se.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),se.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),se.Stream=se;function se(){x.call(this)}se.prototype.pipe=function(ae,ee){var fe=this;function E(ve){ae.writable&&ae.write(ve)===!1&&fe.pause&&fe.pause()}fe.on("data",E);function re(){fe.readable&&fe.resume&&fe.resume()}ae.on("drain",re),!ae._isStdio&&(!ee||ee.end!==!1)&&(fe.on("end",le),fe.on("close",ue));var ne=!1;function le(){ne||(ne=!0,ae.end())}function ue(){ne||(ne=!0,typeof ae.destroy=="function"&&ae.destroy())}function he(ve){if(pe(),x.listenerCount(this,"error")===0)throw ve}fe.on("error",he),ae.on("error",he);function pe(){fe.removeListener("data",E),ae.removeListener("drain",re),fe.removeListener("end",le),fe.removeListener("close",ue),fe.removeListener("error",he),ae.removeListener("error",he),fe.removeListener("end",pe),fe.removeListener("close",pe),ae.removeListener("close",pe)}return fe.on("end",pe),fe.on("close",pe),ae.on("close",pe),ae.emit("pipe",fe),ae}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(y,Ce,ye){"use strict";function x(re,ne){re.prototype=Object.create(ne.prototype),re.prototype.constructor=re,re.__proto__=ne}var z={};function se(re,ne,le){le||(le=Error);function ue(pe,ve,de){return typeof ne=="string"?ne:ne(pe,ve,de)}var he=function(pe){x(ve,pe);function ve(de,we,Te){return pe.call(this,ue(de,we,Te))||this}return ve}(le);he.prototype.name=le.name,he.prototype.code=re,z[re]=he}function ae(re,ne){if(Array.isArray(re)){var le=re.length;return re=re.map(function(ue){return String(ue)}),le>2?"one of ".concat(ne," ").concat(re.slice(0,le-1).join(", "),", or ")+re[le-1]:le===2?"one of ".concat(ne," ").concat(re[0]," or ").concat(re[1]):"of ".concat(ne," ").concat(re[0])}else return"of ".concat(ne," ").concat(String(re))}function ee(re,ne,le){return re.substr(!le||le<0?0:+le,ne.length)===ne}function fe(re,ne,le){return(le===void 0||le>re.length)&&(le=re.length),re.substring(le-ne.length,le)===ne}function E(re,ne,le){return typeof le!="number"&&(le=0),le+ne.length>re.length?!1:re.indexOf(ne,le)!==-1}se("ERR_INVALID_OPT_VALUE",function(re,ne){return'The value "'+ne+'" is invalid for option "'+re+'"'},TypeError),se("ERR_INVALID_ARG_TYPE",function(re,ne,le){var ue;typeof ne=="string"&&ee(ne,"not ")?(ue="must not be",ne=ne.replace(/^not /,"")):ue="must be";var he;if(fe(re," argument"))he="The ".concat(re," ").concat(ue," ").concat(ae(ne,"type"));else{var pe=E(re,".")?"property":"argument";he='The "'.concat(re,'" ').concat(pe," ").concat(ue," ").concat(ae(ne,"type"))}return he+=". Received type ".concat(typeof le),he},TypeError),se("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),se("ERR_METHOD_NOT_IMPLEMENTED",function(re){return"The "+re+" method is not implemented"}),se("ERR_STREAM_PREMATURE_CLOSE","Premature close"),se("ERR_STREAM_DESTROYED",function(re){return"Cannot call "+re+" after a stream was destroyed"}),se("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),se("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),se("ERR_STREAM_WRITE_AFTER_END","write after end"),se("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),se("ERR_UNKNOWN_ENCODING",function(re){return"Unknown encoding: "+re},TypeError),se("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ce.exports.codes=z},{}],400:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=Object.keys||function(ue){var he=[];for(var pe in ue)he.push(pe);return he};Ce.exports=re;var se=y("./_stream_readable"),ae=y("./_stream_writable");y("inherits")(re,se);for(var ee=z(ae.prototype),fe=0;fe<ee.length;fe++){var E=ee[fe];re.prototype[E]||(re.prototype[E]=ae.prototype[E])}function re(ue){if(!(this instanceof re))return new re(ue);se.call(this,ue),ae.call(this,ue),this.allowHalfOpen=!0,ue&&(ue.readable===!1&&(this.readable=!1),ue.writable===!1&&(this.writable=!1),ue.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ne)))}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(re.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(re.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ne(){this._writableState.ended||x.nextTick(le,this)}function le(ue){ue.end()}Object.defineProperty(re.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}})}).call(this)}).call(this,y("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(y,Ce,ye){"use strict";Ce.exports=z;var x=y("./_stream_transform");y("inherits")(z,x);function z(se){if(!(this instanceof z))return new z(se);x.call(this,se)}z.prototype._transform=function(se,ae,ee){ee(null,se)}},{"./_stream_transform":403,inherits:364}],402:[function(y,Ce,ye){(function(x,z){(function(){"use strict";Ce.exports=He;var se;He.ReadableState=Ze;var ae=y("events").EventEmitter,ee=function(Se,Oe){return Se.listeners(Oe).length},fe=y("./internal/streams/stream"),E=y("buffer").Buffer,re=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ne(xe){return E.from(xe)}function le(xe){return E.isBuffer(xe)||xe instanceof re}var ue=y("util"),he;ue&&ue.debuglog?he=ue.debuglog("stream"):he=function(){};var pe=y("./internal/streams/buffer_list"),ve=y("./internal/streams/destroy"),de=y("./internal/streams/state"),we=de.getHighWaterMark,Te=y("../errors").codes,je=Te.ERR_INVALID_ARG_TYPE,Me=Te.ERR_STREAM_PUSH_AFTER_EOF,Ae=Te.ERR_METHOD_NOT_IMPLEMENTED,ge=Te.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,be,Ee,Re;y("inherits")(He,fe);var Ie=ve.errorOrDestroy,ke=["error","close","destroy","pause","resume"];function Pe(xe,Se,Oe){if(typeof xe.prependListener=="function")return xe.prependListener(Se,Oe);!xe._events||!xe._events[Se]?xe.on(Se,Oe):Array.isArray(xe._events[Se])?xe._events[Se].unshift(Oe):xe._events[Se]=[Oe,xe._events[Se]]}function Ze(xe,Se,Oe){se=se||y("./_stream_duplex"),xe=xe||{},typeof Oe!="boolean"&&(Oe=Se instanceof se),this.objectMode=!!xe.objectMode,Oe&&(this.objectMode=this.objectMode||!!xe.readableObjectMode),this.highWaterMark=we(this,xe,"readableHighWaterMark",Oe),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=xe.emitClose!==!1,this.autoDestroy=!!xe.autoDestroy,this.destroyed=!1,this.defaultEncoding=xe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,xe.encoding&&(be||(be=y("string_decoder/").StringDecoder),this.decoder=new be(xe.encoding),this.encoding=xe.encoding)}function He(xe){if(se=se||y("./_stream_duplex"),!(this instanceof He))return new He(xe);var Se=this instanceof se;this._readableState=new Ze(xe,this,Se),this.readable=!0,xe&&(typeof xe.read=="function"&&(this._read=xe.read),typeof xe.destroy=="function"&&(this._destroy=xe.destroy)),fe.call(this)}Object.defineProperty(He.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Se){this._readableState&&(this._readableState.destroyed=Se)}}),He.prototype.destroy=ve.destroy,He.prototype._undestroy=ve.undestroy,He.prototype._destroy=function(xe,Se){Se(xe)},He.prototype.push=function(xe,Se){var Oe=this._readableState,We;return Oe.objectMode?We=!0:typeof xe=="string"&&(Se=Se||Oe.defaultEncoding,Se!==Oe.encoding&&(xe=E.from(xe,Se),Se=""),We=!0),$e(this,xe,Se,!1,We)},He.prototype.unshift=function(xe){return $e(this,xe,null,!0,!1)};function $e(xe,Se,Oe,We,et){he("readableAddChunk",Se);var nt=xe._readableState;if(Se===null)nt.reading=!1,tt(xe,nt);else{var dt;if(et||(dt=Ne(nt,Se)),dt)Ie(xe,dt);else if(nt.objectMode||Se&&Se.length>0)if(typeof Se!="string"&&!nt.objectMode&&Object.getPrototypeOf(Se)!==E.prototype&&(Se=ne(Se)),We)nt.endEmitted?Ie(xe,new ge):it(xe,nt,Se,!0);else if(nt.ended)Ie(xe,new Me);else{if(nt.destroyed)return!1;nt.reading=!1,nt.decoder&&!Oe?(Se=nt.decoder.write(Se),nt.objectMode||Se.length!==0?it(xe,nt,Se,!1):ze(xe,nt)):it(xe,nt,Se,!1)}else We||(nt.reading=!1,ze(xe,nt))}return!nt.ended&&(nt.length<nt.highWaterMark||nt.length===0)}function it(xe,Se,Oe,We){Se.flowing&&Se.length===0&&!Se.sync?(Se.awaitDrain=0,xe.emit("data",Oe)):(Se.length+=Se.objectMode?1:Oe.length,We?Se.buffer.unshift(Oe):Se.buffer.push(Oe),Se.needReadable&&Ve(xe)),ze(xe,Se)}function Ne(xe,Se){var Oe;return!le(Se)&&typeof Se!="string"&&Se!==void 0&&!xe.objectMode&&(Oe=new je("chunk",["string","Buffer","Uint8Array"],Se)),Oe}He.prototype.isPaused=function(){return this._readableState.flowing===!1},He.prototype.setEncoding=function(xe){be||(be=y("string_decoder/").StringDecoder);var Se=new be(xe);this._readableState.decoder=Se,this._readableState.encoding=this._readableState.decoder.encoding;for(var Oe=this._readableState.buffer.head,We="";Oe!==null;)We+=Se.write(Oe.data),Oe=Oe.next;return this._readableState.buffer.clear(),We!==""&&this._readableState.buffer.push(We),this._readableState.length=We.length,this};var Fe=1073741824;function qe(xe){return xe>=Fe?xe=Fe:(xe--,xe|=xe>>>1,xe|=xe>>>2,xe|=xe>>>4,xe|=xe>>>8,xe|=xe>>>16,xe++),xe}function rt(xe,Se){return xe<=0||Se.length===0&&Se.ended?0:Se.objectMode?1:xe!==xe?Se.flowing&&Se.length?Se.buffer.head.data.length:Se.length:(xe>Se.highWaterMark&&(Se.highWaterMark=qe(xe)),xe<=Se.length?xe:Se.ended?Se.length:(Se.needReadable=!0,0))}He.prototype.read=function(xe){he("read",xe),xe=parseInt(xe,10);var Se=this._readableState,Oe=xe;if(xe!==0&&(Se.emittedReadable=!1),xe===0&&Se.needReadable&&((Se.highWaterMark!==0?Se.length>=Se.highWaterMark:Se.length>0)||Se.ended))return he("read: emitReadable",Se.length,Se.ended),Se.length===0&&Se.ended?ce(this):Ve(this),null;if(xe=rt(xe,Se),xe===0&&Se.ended)return Se.length===0&&ce(this),null;var We=Se.needReadable;he("need readable",We),(Se.length===0||Se.length-xe<Se.highWaterMark)&&(We=!0,he("length less than watermark",We)),Se.ended||Se.reading?(We=!1,he("reading or ended",We)):We&&(he("do read"),Se.reading=!0,Se.sync=!0,Se.length===0&&(Se.needReadable=!0),this._read(Se.highWaterMark),Se.sync=!1,Se.reading||(xe=rt(Oe,Se)));var et;return xe>0?et=te(xe,Se):et=null,et===null?(Se.needReadable=Se.length<=Se.highWaterMark,xe=0):(Se.length-=xe,Se.awaitDrain=0),Se.length===0&&(Se.ended||(Se.needReadable=!0),Oe!==xe&&Se.ended&&ce(this)),et!==null&&this.emit("data",et),et};function tt(xe,Se){if(he("onEofChunk"),!Se.ended){if(Se.decoder){var Oe=Se.decoder.end();Oe&&Oe.length&&(Se.buffer.push(Oe),Se.length+=Se.objectMode?1:Oe.length)}Se.ended=!0,Se.sync?Ve(xe):(Se.needReadable=!1,Se.emittedReadable||(Se.emittedReadable=!0,Ke(xe)))}}function Ve(xe){var Se=xe._readableState;he("emitReadable",Se.needReadable,Se.emittedReadable),Se.needReadable=!1,Se.emittedReadable||(he("emitReadable",Se.flowing),Se.emittedReadable=!0,x.nextTick(Ke,xe))}function Ke(xe){var Se=xe._readableState;he("emitReadable_",Se.destroyed,Se.length,Se.ended),!Se.destroyed&&(Se.length||Se.ended)&&(xe.emit("readable"),Se.emittedReadable=!1),Se.needReadable=!Se.flowing&&!Se.ended&&Se.length<=Se.highWaterMark,De(xe)}function ze(xe,Se){Se.readingMore||(Se.readingMore=!0,x.nextTick(at,xe,Se))}function at(xe,Se){for(;!Se.reading&&!Se.ended&&(Se.length<Se.highWaterMark||Se.flowing&&Se.length===0);){var Oe=Se.length;if(he("maybeReadMore read 0"),xe.read(0),Oe===Se.length)break}Se.readingMore=!1}He.prototype._read=function(xe){Ie(this,new Ae("_read()"))},He.prototype.pipe=function(xe,Se){var Oe=this,We=this._readableState;switch(We.pipesCount){case 0:We.pipes=xe;break;case 1:We.pipes=[We.pipes,xe];break;default:We.pipes.push(xe);break}We.pipesCount+=1,he("pipe count=%d opts=%j",We.pipesCount,Se);var et=(!Se||Se.end!==!1)&&xe!==x.stdout&&xe!==x.stderr,nt=et?ct:ft;We.endEmitted?x.nextTick(nt):Oe.once("end",nt),xe.on("unpipe",dt);function dt(Dt,At){he("onunpipe"),Dt===Oe&&At&&At.hasUnpiped===!1&&(At.hasUnpiped=!0,yt())}function ct(){he("onend"),xe.end()}var pt=Qe(Oe);xe.on("drain",pt);var St=!1;function yt(){he("cleanup"),xe.removeListener("close",Tt),xe.removeListener("finish",bt),xe.removeListener("drain",pt),xe.removeListener("error",vt),xe.removeListener("unpipe",dt),Oe.removeListener("end",ct),Oe.removeListener("end",ft),Oe.removeListener("data",xt),St=!0,We.awaitDrain&&(!xe._writableState||xe._writableState.needDrain)&&pt()}Oe.on("data",xt);function xt(Dt){he("ondata");var At=xe.write(Dt);he("dest.write",At),At===!1&&((We.pipesCount===1&&We.pipes===xe||We.pipesCount>1&&Ue(We.pipes,xe)!==-1)&&!St&&(he("false write response, pause",We.awaitDrain),We.awaitDrain++),Oe.pause())}function vt(Dt){he("onerror",Dt),ft(),xe.removeListener("error",vt),ee(xe,"error")===0&&Ie(xe,Dt)}Pe(xe,"error",vt);function Tt(){xe.removeListener("finish",bt),ft()}xe.once("close",Tt);function bt(){he("onfinish"),xe.removeListener("close",Tt),ft()}xe.once("finish",bt);function ft(){he("unpipe"),Oe.unpipe(xe)}return xe.emit("pipe",Oe),We.flowing||(he("pipe resume"),Oe.resume()),xe};function Qe(xe){return function(){var Oe=xe._readableState;he("pipeOnDrain",Oe.awaitDrain),Oe.awaitDrain&&Oe.awaitDrain--,Oe.awaitDrain===0&&ee(xe,"data")&&(Oe.flowing=!0,De(xe))}}He.prototype.unpipe=function(xe){var Se=this._readableState,Oe={hasUnpiped:!1};if(Se.pipesCount===0)return this;if(Se.pipesCount===1)return xe&&xe!==Se.pipes?this:(xe||(xe=Se.pipes),Se.pipes=null,Se.pipesCount=0,Se.flowing=!1,xe&&xe.emit("unpipe",this,Oe),this);if(!xe){var We=Se.pipes,et=Se.pipesCount;Se.pipes=null,Se.pipesCount=0,Se.flowing=!1;for(var nt=0;nt<et;nt++)We[nt].emit("unpipe",this,{hasUnpiped:!1});return this}var dt=Ue(Se.pipes,xe);return dt===-1?this:(Se.pipes.splice(dt,1),Se.pipesCount-=1,Se.pipesCount===1&&(Se.pipes=Se.pipes[0]),xe.emit("unpipe",this,Oe),this)},He.prototype.on=function(xe,Se){var Oe=fe.prototype.on.call(this,xe,Se),We=this._readableState;return xe==="data"?(We.readableListening=this.listenerCount("readable")>0,We.flowing!==!1&&this.resume()):xe==="readable"&&!We.endEmitted&&!We.readableListening&&(We.readableListening=We.needReadable=!0,We.flowing=!1,We.emittedReadable=!1,he("on readable",We.length,We.reading),We.length?Ve(this):We.reading||x.nextTick(st,this)),Oe},He.prototype.addListener=He.prototype.on,He.prototype.removeListener=function(xe,Se){var Oe=fe.prototype.removeListener.call(this,xe,Se);return xe==="readable"&&x.nextTick(ut,this),Oe},He.prototype.removeAllListeners=function(xe){var Se=fe.prototype.removeAllListeners.apply(this,arguments);return(xe==="readable"||xe===void 0)&&x.nextTick(ut,this),Se};function ut(xe){var Se=xe._readableState;Se.readableListening=xe.listenerCount("readable")>0,Se.resumeScheduled&&!Se.paused?Se.flowing=!0:xe.listenerCount("data")>0&&xe.resume()}function st(xe){he("readable nexttick read 0"),xe.read(0)}He.prototype.resume=function(){var xe=this._readableState;return xe.flowing||(he("resume"),xe.flowing=!xe.readableListening,Xe(this,xe)),xe.paused=!1,this};function Xe(xe,Se){Se.resumeScheduled||(Se.resumeScheduled=!0,x.nextTick(Le,xe,Se))}function Le(xe,Se){he("resume",Se.reading),Se.reading||xe.read(0),Se.resumeScheduled=!1,xe.emit("resume"),De(xe),Se.flowing&&!Se.reading&&xe.read(0)}He.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function De(xe){var Se=xe._readableState;for(he("flow",Se.flowing);Se.flowing&&xe.read()!==null;);}He.prototype.wrap=function(xe){var Se=this,Oe=this._readableState,We=!1;xe.on("end",function(){if(he("wrapped end"),Oe.decoder&&!Oe.ended){var dt=Oe.decoder.end();dt&&dt.length&&Se.push(dt)}Se.push(null)}),xe.on("data",function(dt){if(he("wrapped data"),Oe.decoder&&(dt=Oe.decoder.write(dt)),!(Oe.objectMode&&dt==null)&&!(!Oe.objectMode&&(!dt||!dt.length))){var ct=Se.push(dt);ct||(We=!0,xe.pause())}});for(var et in xe)this[et]===void 0&&typeof xe[et]=="function"&&(this[et]=function(ct){return function(){return xe[ct].apply(xe,arguments)}}(et));for(var nt=0;nt<ke.length;nt++)xe.on(ke[nt],this.emit.bind(this,ke[nt]));return this._read=function(dt){he("wrapped _read",dt),We&&(We=!1,xe.resume())},this},typeof Symbol=="function"&&(He.prototype[Symbol.asyncIterator]=function(){return Ee===void 0&&(Ee=y("./internal/streams/async_iterator")),Ee(this)}),Object.defineProperty(He.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(He.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(He.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Se){this._readableState&&(this._readableState.flowing=Se)}}),He._fromList=te,Object.defineProperty(He.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(xe,Se){if(Se.length===0)return null;var Oe;return Se.objectMode?Oe=Se.buffer.shift():!xe||xe>=Se.length?(Se.decoder?Oe=Se.buffer.join(""):Se.buffer.length===1?Oe=Se.buffer.first():Oe=Se.buffer.concat(Se.length),Se.buffer.clear()):Oe=Se.buffer.consume(xe,Se.decoder),Oe}function ce(xe){var Se=xe._readableState;he("endReadable",Se.endEmitted),Se.endEmitted||(Se.ended=!0,x.nextTick(_e,Se,xe))}function _e(xe,Se){if(he("endReadableNT",xe.endEmitted,xe.length),!xe.endEmitted&&xe.length===0&&(xe.endEmitted=!0,Se.readable=!1,Se.emit("end"),xe.autoDestroy)){var Oe=Se._writableState;(!Oe||Oe.autoDestroy&&Oe.finished)&&Se.destroy()}}typeof Symbol=="function"&&(He.from=function(xe,Se){return Re===void 0&&(Re=y("./internal/streams/from")),Re(He,xe,Se)});function Ue(xe,Se){for(var Oe=0,We=xe.length;Oe<We;Oe++)if(xe[Oe]===Se)return Oe;return-1}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(y,Ce,ye){"use strict";Ce.exports=re;var x=y("../errors").codes,z=x.ERR_METHOD_NOT_IMPLEMENTED,se=x.ERR_MULTIPLE_CALLBACK,ae=x.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=x.ERR_TRANSFORM_WITH_LENGTH_0,fe=y("./_stream_duplex");y("inherits")(re,fe);function E(ue,he){var pe=this._transformState;pe.transforming=!1;var ve=pe.writecb;if(ve===null)return this.emit("error",new se);pe.writechunk=null,pe.writecb=null,he!=null&&this.push(he),ve(ue);var de=this._readableState;de.reading=!1,(de.needReadable||de.length<de.highWaterMark)&&this._read(de.highWaterMark)}function re(ue){if(!(this instanceof re))return new re(ue);fe.call(this,ue),this._transformState={afterTransform:E.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ue&&(typeof ue.transform=="function"&&(this._transform=ue.transform),typeof ue.flush=="function"&&(this._flush=ue.flush)),this.on("prefinish",ne)}function ne(){var ue=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(he,pe){le(ue,he,pe)}):le(this,null,null)}re.prototype.push=function(ue,he){return this._transformState.needTransform=!1,fe.prototype.push.call(this,ue,he)},re.prototype._transform=function(ue,he,pe){pe(new z("_transform()"))},re.prototype._write=function(ue,he,pe){var ve=this._transformState;if(ve.writecb=pe,ve.writechunk=ue,ve.writeencoding=he,!ve.transforming){var de=this._readableState;(ve.needTransform||de.needReadable||de.length<de.highWaterMark)&&this._read(de.highWaterMark)}},re.prototype._read=function(ue){var he=this._transformState;he.writechunk!==null&&!he.transforming?(he.transforming=!0,this._transform(he.writechunk,he.writeencoding,he.afterTransform)):he.needTransform=!0},re.prototype._destroy=function(ue,he){fe.prototype._destroy.call(this,ue,function(pe){he(pe)})};function le(ue,he,pe){if(he)return ue.emit("error",he);if(pe!=null&&ue.push(pe),ue._writableState.length)throw new ee;if(ue._transformState.transforming)throw new ae;return ue.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,Ce,ye){(function(x,z){(function(){"use strict";Ce.exports=Ze;function se(De,te,ce){this.chunk=De,this.encoding=te,this.callback=ce,this.next=null}function ae(De){var te=this;this.next=null,this.entry=null,this.finish=function(){Le(te,De)}}var ee;Ze.WritableState=ke;var fe={deprecate:y("util-deprecate")},E=y("./internal/streams/stream"),re=y("buffer").Buffer,ne=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function le(De){return re.from(De)}function ue(De){return re.isBuffer(De)||De instanceof ne}var he=y("./internal/streams/destroy"),pe=y("./internal/streams/state"),ve=pe.getHighWaterMark,de=y("../errors").codes,we=de.ERR_INVALID_ARG_TYPE,Te=de.ERR_METHOD_NOT_IMPLEMENTED,je=de.ERR_MULTIPLE_CALLBACK,Me=de.ERR_STREAM_CANNOT_PIPE,Ae=de.ERR_STREAM_DESTROYED,ge=de.ERR_STREAM_NULL_VALUES,be=de.ERR_STREAM_WRITE_AFTER_END,Ee=de.ERR_UNKNOWN_ENCODING,Re=he.errorOrDestroy;y("inherits")(Ze,E);function Ie(){}function ke(De,te,ce){ee=ee||y("./_stream_duplex"),De=De||{},typeof ce!="boolean"&&(ce=te instanceof ee),this.objectMode=!!De.objectMode,ce&&(this.objectMode=this.objectMode||!!De.writableObjectMode),this.highWaterMark=ve(this,De,"writableHighWaterMark",ce),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var _e=De.decodeStrings===!1;this.decodeStrings=!_e,this.defaultEncoding=De.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ue){tt(te,Ue)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=De.emitClose!==!1,this.autoDestroy=!!De.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ae(this)}ke.prototype.getBuffer=function(){for(var te=this.bufferedRequest,ce=[];te;)ce.push(te),te=te.next;return ce},function(){try{Object.defineProperty(ke.prototype,"buffer",{get:fe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(De){}}();var Pe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pe=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ze,Symbol.hasInstance,{value:function(te){return Pe.call(this,te)?!0:this!==Ze?!1:te&&te._writableState instanceof ke}})):Pe=function(te){return te instanceof this};function Ze(De){ee=ee||y("./_stream_duplex");var te=this instanceof ee;if(!te&&!Pe.call(Ze,this))return new Ze(De);this._writableState=new ke(De,this,te),this.writable=!0,De&&(typeof De.write=="function"&&(this._write=De.write),typeof De.writev=="function"&&(this._writev=De.writev),typeof De.destroy=="function"&&(this._destroy=De.destroy),typeof De.final=="function"&&(this._final=De.final)),E.call(this)}Ze.prototype.pipe=function(){Re(this,new Me)};function He(De,te){var ce=new be;Re(De,ce),x.nextTick(te,ce)}function $e(De,te,ce,_e){var Ue;return ce===null?Ue=new ge:typeof ce!="string"&&!te.objectMode&&(Ue=new we("chunk",["string","Buffer"],ce)),Ue?(Re(De,Ue),x.nextTick(_e,Ue),!1):!0}Ze.prototype.write=function(De,te,ce){var _e=this._writableState,Ue=!1,xe=!_e.objectMode&&ue(De);return xe&&!re.isBuffer(De)&&(De=le(De)),typeof te=="function"&&(ce=te,te=null),xe?te="buffer":te||(te=_e.defaultEncoding),typeof ce!="function"&&(ce=Ie),_e.ending?He(this,ce):(xe||$e(this,_e,De,ce))&&(_e.pendingcb++,Ue=Ne(this,_e,xe,De,te,ce)),Ue},Ze.prototype.cork=function(){this._writableState.corked++},Ze.prototype.uncork=function(){var De=this._writableState;De.corked&&(De.corked--,!De.writing&&!De.corked&&!De.bufferProcessing&&De.bufferedRequest&&ze(this,De))},Ze.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new Ee(te);return this._writableState.defaultEncoding=te,this},Object.defineProperty(Ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function it(De,te,ce){return!De.objectMode&&De.decodeStrings!==!1&&typeof te=="string"&&(te=re.from(te,ce)),te}Object.defineProperty(Ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ne(De,te,ce,_e,Ue,xe){if(!ce){var Se=it(te,_e,Ue);_e!==Se&&(ce=!0,Ue="buffer",_e=Se)}var Oe=te.objectMode?1:_e.length;te.length+=Oe;var We=te.length<te.highWaterMark;if(We||(te.needDrain=!0),te.writing||te.corked){var et=te.lastBufferedRequest;te.lastBufferedRequest={chunk:_e,encoding:Ue,isBuf:ce,callback:xe,next:null},et?et.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else Fe(De,te,!1,Oe,_e,Ue,xe);return We}function Fe(De,te,ce,_e,Ue,xe,Se){te.writelen=_e,te.writecb=Se,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new Ae("write")):ce?De._writev(Ue,te.onwrite):De._write(Ue,xe,te.onwrite),te.sync=!1}function qe(De,te,ce,_e,Ue){--te.pendingcb,ce?(x.nextTick(Ue,_e),x.nextTick(st,De,te),De._writableState.errorEmitted=!0,Re(De,_e)):(Ue(_e),De._writableState.errorEmitted=!0,Re(De,_e),st(De,te))}function rt(De){De.writing=!1,De.writecb=null,De.length-=De.writelen,De.writelen=0}function tt(De,te){var ce=De._writableState,_e=ce.sync,Ue=ce.writecb;if(typeof Ue!="function")throw new je;if(rt(ce),te)qe(De,ce,_e,te,Ue);else{var xe=at(ce)||De.destroyed;!xe&&!ce.corked&&!ce.bufferProcessing&&ce.bufferedRequest&&ze(De,ce),_e?x.nextTick(Ve,De,ce,xe,Ue):Ve(De,ce,xe,Ue)}}function Ve(De,te,ce,_e){ce||Ke(De,te),te.pendingcb--,_e(),st(De,te)}function Ke(De,te){te.length===0&&te.needDrain&&(te.needDrain=!1,De.emit("drain"))}function ze(De,te){te.bufferProcessing=!0;var ce=te.bufferedRequest;if(De._writev&&ce&&ce.next){var _e=te.bufferedRequestCount,Ue=new Array(_e),xe=te.corkedRequestsFree;xe.entry=ce;for(var Se=0,Oe=!0;ce;)Ue[Se]=ce,ce.isBuf||(Oe=!1),ce=ce.next,Se+=1;Ue.allBuffers=Oe,Fe(De,te,!0,te.length,Ue,"",xe.finish),te.pendingcb++,te.lastBufferedRequest=null,xe.next?(te.corkedRequestsFree=xe.next,xe.next=null):te.corkedRequestsFree=new ae(te),te.bufferedRequestCount=0}else{for(;ce;){var We=ce.chunk,et=ce.encoding,nt=ce.callback,dt=te.objectMode?1:We.length;if(Fe(De,te,!1,dt,We,et,nt),ce=ce.next,te.bufferedRequestCount--,te.writing)break}ce===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=ce,te.bufferProcessing=!1}Ze.prototype._write=function(De,te,ce){ce(new Te("_write()"))},Ze.prototype._writev=null,Ze.prototype.end=function(De,te,ce){var _e=this._writableState;return typeof De=="function"?(ce=De,De=null,te=null):typeof te=="function"&&(ce=te,te=null),De!=null&&this.write(De,te),_e.corked&&(_e.corked=1,this.uncork()),_e.ending||Xe(this,_e,ce),this},Object.defineProperty(Ze.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function at(De){return De.ending&&De.length===0&&De.bufferedRequest===null&&!De.finished&&!De.writing}function Qe(De,te){De._final(function(ce){te.pendingcb--,ce&&Re(De,ce),te.prefinished=!0,De.emit("prefinish"),st(De,te)})}function ut(De,te){!te.prefinished&&!te.finalCalled&&(typeof De._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,x.nextTick(Qe,De,te)):(te.prefinished=!0,De.emit("prefinish")))}function st(De,te){var ce=at(te);if(ce&&(ut(De,te),te.pendingcb===0&&(te.finished=!0,De.emit("finish"),te.autoDestroy))){var _e=De._readableState;(!_e||_e.autoDestroy&&_e.endEmitted)&&De.destroy()}return ce}function Xe(De,te,ce){te.ending=!0,st(De,te),ce&&(te.finished?x.nextTick(ce):De.once("finish",ce)),te.ended=!0,De.writable=!1}function Le(De,te,ce){var _e=De.entry;for(De.entry=null;_e;){var Ue=_e.callback;te.pendingcb--,Ue(ce),_e=_e.next}te.corkedRequestsFree.next=De}Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),Ze.prototype.destroy=he.destroy,Ze.prototype._undestroy=he.undestroy,Ze.prototype._destroy=function(De,te){te(De)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(y,Ce,ye){(function(x){(function(){"use strict";var z;function se(ge,be,Ee){return be=ae(be),be in ge?Object.defineProperty(ge,be,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):ge[be]=Ee,ge}function ae(ge){var be=ee(ge,"string");return typeof be=="symbol"?be:String(be)}function ee(ge,be){if(typeof ge!="object"||ge===null)return ge;var Ee=ge[Symbol.toPrimitive];if(Ee!==void 0){var Re=Ee.call(ge,be||"default");if(typeof Re!="object")return Re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(be==="string"?String:Number)(ge)}var fe=y("./end-of-stream"),E=Symbol("lastResolve"),re=Symbol("lastReject"),ne=Symbol("error"),le=Symbol("ended"),ue=Symbol("lastPromise"),he=Symbol("handlePromise"),pe=Symbol("stream");function ve(ge,be){return{value:ge,done:be}}function de(ge){var be=ge[E];if(be!==null){var Ee=ge[pe].read();Ee!==null&&(ge[ue]=null,ge[E]=null,ge[re]=null,be(ve(Ee,!1)))}}function we(ge){x.nextTick(de,ge)}function Te(ge,be){return function(Ee,Re){ge.then(function(){if(be[le]){Ee(ve(void 0,!0));return}be[he](Ee,Re)},Re)}}var je=Object.getPrototypeOf(function(){}),Me=Object.setPrototypeOf((z={get stream(){return this[pe]},next:function(){var be=this,Ee=this[ne];if(Ee!==null)return Promise.reject(Ee);if(this[le])return Promise.resolve(ve(void 0,!0));if(this[pe].destroyed)return new Promise(function(Pe,Ze){x.nextTick(function(){be[ne]?Ze(be[ne]):Pe(ve(void 0,!0))})});var Re=this[ue],Ie;if(Re)Ie=new Promise(Te(Re,this));else{var ke=this[pe].read();if(ke!==null)return Promise.resolve(ve(ke,!1));Ie=new Promise(this[he])}return this[ue]=Ie,Ie}},se(z,Symbol.asyncIterator,function(){return this}),se(z,"return",function(){var be=this;return new Promise(function(Ee,Re){be[pe].destroy(null,function(Ie){if(Ie){Re(Ie);return}Ee(ve(void 0,!0))})})}),z),je),Ae=function(be){var Ee,Re=Object.create(Me,(Ee={},se(Ee,pe,{value:be,writable:!0}),se(Ee,E,{value:null,writable:!0}),se(Ee,re,{value:null,writable:!0}),se(Ee,ne,{value:null,writable:!0}),se(Ee,le,{value:be._readableState.endEmitted,writable:!0}),se(Ee,he,{value:function(ke,Pe){var Ze=Re[pe].read();Ze?(Re[ue]=null,Re[E]=null,Re[re]=null,ke(ve(Ze,!1))):(Re[E]=ke,Re[re]=Pe)},writable:!0}),Ee));return Re[ue]=null,fe(be,function(Ie){if(Ie&&Ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ke=Re[re];ke!==null&&(Re[ue]=null,Re[E]=null,Re[re]=null,ke(Ie)),Re[ne]=Ie;return}var Pe=Re[E];Pe!==null&&(Re[ue]=null,Re[E]=null,Re[re]=null,Pe(ve(void 0,!0))),Re[le]=!0}),be.on("readable",we.bind(null,Re)),Re};Ce.exports=Ae}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,Ce,ye){"use strict";function x(de,we){var Te=Object.keys(de);if(Object.getOwnPropertySymbols){var je=Object.getOwnPropertySymbols(de);we&&(je=je.filter(function(Me){return Object.getOwnPropertyDescriptor(de,Me).enumerable})),Te.push.apply(Te,je)}return Te}function z(de){for(var we=1;we<arguments.length;we++){var Te=arguments[we]!=null?arguments[we]:{};we%2?x(Object(Te),!0).forEach(function(je){se(de,je,Te[je])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(Te)):x(Object(Te)).forEach(function(je){Object.defineProperty(de,je,Object.getOwnPropertyDescriptor(Te,je))})}return de}function se(de,we,Te){return we=E(we),we in de?Object.defineProperty(de,we,{value:Te,enumerable:!0,configurable:!0,writable:!0}):de[we]=Te,de}function ae(de,we){if(!(de instanceof we))throw new TypeError("Cannot call a class as a function")}function ee(de,we){for(var Te=0;Te<we.length;Te++){var je=we[Te];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(de,E(je.key),je)}}function fe(de,we,Te){return we&&ee(de.prototype,we),Te&&ee(de,Te),Object.defineProperty(de,"prototype",{writable:!1}),de}function E(de){var we=re(de,"string");return typeof we=="symbol"?we:String(we)}function re(de,we){if(typeof de!="object"||de===null)return de;var Te=de[Symbol.toPrimitive];if(Te!==void 0){var je=Te.call(de,we||"default");if(typeof je!="object")return je;throw new TypeError("@@toPrimitive must return a primitive value.")}return(we==="string"?String:Number)(de)}var ne=y("buffer"),le=ne.Buffer,ue=y("util"),he=ue.inspect,pe=he&&he.custom||"inspect";function ve(de,we,Te){le.prototype.copy.call(de,we,Te)}Ce.exports=function(){function de(){ae(this,de),this.head=null,this.tail=null,this.length=0}return fe(de,[{key:"push",value:function(Te){var je={data:Te,next:null};this.length>0?this.tail.next=je:this.head=je,this.tail=je,++this.length}},{key:"unshift",value:function(Te){var je={data:Te,next:this.head};this.length===0&&(this.tail=je),this.head=je,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Te=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Te}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Te){if(this.length===0)return"";for(var je=this.head,Me=""+je.data;je=je.next;)Me+=Te+je.data;return Me}},{key:"concat",value:function(Te){if(this.length===0)return le.alloc(0);for(var je=le.allocUnsafe(Te>>>0),Me=this.head,Ae=0;Me;)ve(Me.data,je,Ae),Ae+=Me.data.length,Me=Me.next;return je}},{key:"consume",value:function(Te,je){var Me;return Te<this.head.data.length?(Me=this.head.data.slice(0,Te),this.head.data=this.head.data.slice(Te)):Te===this.head.data.length?Me=this.shift():Me=je?this._getString(Te):this._getBuffer(Te),Me}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Te){var je=this.head,Me=1,Ae=je.data;for(Te-=Ae.length;je=je.next;){var ge=je.data,be=Te>ge.length?ge.length:Te;if(be===ge.length?Ae+=ge:Ae+=ge.slice(0,Te),Te-=be,Te===0){be===ge.length?(++Me,je.next?this.head=je.next:this.head=this.tail=null):(this.head=je,je.data=ge.slice(be));break}++Me}return this.length-=Me,Ae}},{key:"_getBuffer",value:function(Te){var je=le.allocUnsafe(Te),Me=this.head,Ae=1;for(Me.data.copy(je),Te-=Me.data.length;Me=Me.next;){var ge=Me.data,be=Te>ge.length?ge.length:Te;if(ge.copy(je,je.length-Te,0,be),Te-=be,Te===0){be===ge.length?(++Ae,Me.next?this.head=Me.next:this.head=this.tail=null):(this.head=Me,Me.data=ge.slice(be));break}++Ae}return this.length-=Ae,je}},{key:pe,value:function(Te,je){return he(this,z(z({},je),{},{depth:0,customInspect:!1}))}}]),de}()},{buffer:90,util:89}],407:[function(y,Ce,ye){(function(x){(function(){"use strict";function z(re,ne){var le=this,ue=this._readableState&&this._readableState.destroyed,he=this._writableState&&this._writableState.destroyed;return ue||he?(ne?ne(re):re&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(fe,this,re)):x.nextTick(fe,this,re)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(re||null,function(pe){!ne&&pe?le._writableState?le._writableState.errorEmitted?x.nextTick(ae,le):(le._writableState.errorEmitted=!0,x.nextTick(se,le,pe)):x.nextTick(se,le,pe):ne?(x.nextTick(ae,le),ne(pe)):x.nextTick(ae,le)}),this)}function se(re,ne){fe(re,ne),ae(re)}function ae(re){re._writableState&&!re._writableState.emitClose||re._readableState&&!re._readableState.emitClose||re.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function fe(re,ne){re.emit("error",ne)}function E(re,ne){var le=re._readableState,ue=re._writableState;le&&le.autoDestroy||ue&&ue.autoDestroy?re.destroy(ne):re.emit("error",ne)}Ce.exports={destroy:z,undestroy:ee,errorOrDestroy:E}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,Ce,ye){"use strict";var x=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(fe){var E=!1;return function(){if(!E){E=!0;for(var re=arguments.length,ne=new Array(re),le=0;le<re;le++)ne[le]=arguments[le];fe.apply(this,ne)}}}function se(){}function ae(fe){return fe.setHeader&&typeof fe.abort=="function"}function ee(fe,E,re){if(typeof E=="function")return ee(fe,null,E);E||(E={}),re=z(re||se);var ne=E.readable||E.readable!==!1&&fe.readable,le=E.writable||E.writable!==!1&&fe.writable,ue=function(){fe.writable||pe()},he=fe._writableState&&fe._writableState.finished,pe=function(){le=!1,he=!0,ne||re.call(fe)},ve=fe._readableState&&fe._readableState.endEmitted,de=function(){ne=!1,ve=!0,le||re.call(fe)},we=function(Ae){re.call(fe,Ae)},Te=function(){var Ae;if(ne&&!ve)return(!fe._readableState||!fe._readableState.ended)&&(Ae=new x),re.call(fe,Ae);if(le&&!he)return(!fe._writableState||!fe._writableState.ended)&&(Ae=new x),re.call(fe,Ae)},je=function(){fe.req.on("finish",pe)};return ae(fe)?(fe.on("complete",pe),fe.on("abort",Te),fe.req?je():fe.on("request",je)):le&&!fe._writableState&&(fe.on("end",ue),fe.on("close",ue)),fe.on("end",de),fe.on("finish",pe),E.error!==!1&&fe.on("error",we),fe.on("close",Te),function(){fe.removeListener("complete",pe),fe.removeListener("abort",Te),fe.removeListener("request",je),fe.req&&fe.req.removeListener("finish",pe),fe.removeListener("end",ue),fe.removeListener("close",ue),fe.removeListener("finish",pe),fe.removeListener("end",de),fe.removeListener("error",we),fe.removeListener("close",Te)}}Ce.exports=ee},{"../../../errors":399}],409:[function(y,Ce,ye){Ce.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,Ce,ye){"use strict";var x;function z(pe){var ve=!1;return function(){ve||(ve=!0,pe.apply(void 0,arguments))}}var se=y("../../../errors").codes,ae=se.ERR_MISSING_ARGS,ee=se.ERR_STREAM_DESTROYED;function fe(pe){if(pe)throw pe}function E(pe){return pe.setHeader&&typeof pe.abort=="function"}function re(pe,ve,de,we){we=z(we);var Te=!1;pe.on("close",function(){Te=!0}),x===void 0&&(x=y("./end-of-stream")),x(pe,{readable:ve,writable:de},function(Me){if(Me)return we(Me);Te=!0,we()});var je=!1;return function(Me){if(!Te&&!je){if(je=!0,E(pe))return pe.abort();if(typeof pe.destroy=="function")return pe.destroy();we(Me||new ee("pipe"))}}}function ne(pe){pe()}function le(pe,ve){return pe.pipe(ve)}function ue(pe){return!pe.length||typeof pe[pe.length-1]!="function"?fe:pe.pop()}function he(){for(var pe=arguments.length,ve=new Array(pe),de=0;de<pe;de++)ve[de]=arguments[de];var we=ue(ve);if(Array.isArray(ve[0])&&(ve=ve[0]),ve.length<2)throw new ae("streams");var Te,je=ve.map(function(Me,Ae){var ge=Ae<ve.length-1,be=Ae>0;return re(Me,ge,be,function(Ee){Te||(Te=Ee),Ee&&je.forEach(ne),!ge&&(je.forEach(ne),we(Te))})});return ve.reduce(le)}Ce.exports=he},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,Ce,ye){"use strict";var x=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(ae,ee,fe){return ae.highWaterMark!=null?ae.highWaterMark:ee?ae[fe]:null}function se(ae,ee,fe,E){var re=z(ee,E,fe);if(re!=null){if(!(isFinite(re)&&Math.floor(re)===re)||re<0){var ne=E?fe:"highWaterMark";throw new x(ne,re)}return Math.floor(re)}return ae.objectMode?16:16*1024}Ce.exports={getHighWaterMark:se}},{"../../../errors":399}],412:[function(y,Ce,ye){arguments[4][393][0].apply(ye,arguments)},{dup:393,events:344}],413:[function(y,Ce,ye){"use strict";var x=y("safe-buffer").Buffer,z=x.isEncoding||function(je){switch(je=""+je,je&&je.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function se(je){if(!je)return"utf8";for(var Me;;)switch(je){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return je;default:if(Me)return;je=(""+je).toLowerCase(),Me=!0}}function ae(je){var Me=se(je);if(typeof Me!="string"&&(x.isEncoding===z||!z(je)))throw new Error("Unknown encoding: "+je);return Me||je}ye.StringDecoder=ee;function ee(je){this.encoding=ae(je);var Me;switch(this.encoding){case"utf16le":this.text=he,this.end=pe,Me=4;break;case"utf8":this.fillLast=ne,Me=4;break;case"base64":this.text=ve,this.end=de,Me=3;break;default:this.write=we,this.end=Te;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(Me)}ee.prototype.write=function(je){if(je.length===0)return"";var Me,Ae;if(this.lastNeed){if(Me=this.fillLast(je),Me===void 0)return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae<je.length?Me?Me+this.text(je,Ae):this.text(je,Ae):Me||""},ee.prototype.end=ue,ee.prototype.text=le,ee.prototype.fillLast=function(je){if(this.lastNeed<=je.length)return je.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);je.copy(this.lastChar,this.lastTotal-this.lastNeed,0,je.length),this.lastNeed-=je.length};function fe(je){return je<=127?0:je>>5===6?2:je>>4===14?3:je>>3===30?4:je>>6===2?-1:-2}function E(je,Me,Ae){var ge=Me.length-1;if(ge<Ae)return 0;var be=fe(Me[ge]);return be>=0?(be>0&&(je.lastNeed=be-1),be):--ge<Ae||be===-2?0:(be=fe(Me[ge]),be>=0?(be>0&&(je.lastNeed=be-2),be):--ge<Ae||be===-2?0:(be=fe(Me[ge]),be>=0?(be>0&&(be===2?be=0:je.lastNeed=be-3),be):0))}function re(je,Me,Ae){if((Me[0]&192)!==128)return je.lastNeed=0,"\uFFFD";if(je.lastNeed>1&&Me.length>1){if((Me[1]&192)!==128)return je.lastNeed=1,"\uFFFD";if(je.lastNeed>2&&Me.length>2&&(Me[2]&192)!==128)return je.lastNeed=2,"\uFFFD"}}function ne(je){var Me=this.lastTotal-this.lastNeed,Ae=re(this,je,Me);if(Ae!==void 0)return Ae;if(this.lastNeed<=je.length)return je.copy(this.lastChar,Me,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);je.copy(this.lastChar,Me,0,je.length),this.lastNeed-=je.length}function le(je,Me){var Ae=E(this,je,Me);if(!this.lastNeed)return je.toString("utf8",Me);this.lastTotal=Ae;var ge=je.length-(Ae-this.lastNeed);return je.copy(this.lastChar,0,ge),je.toString("utf8",Me,ge)}function ue(je){var Me=je&&je.length?this.write(je):"";return this.lastNeed?Me+"\uFFFD":Me}function he(je,Me){if((je.length-Me)%2===0){var Ae=je.toString("utf16le",Me);if(Ae){var ge=Ae.charCodeAt(Ae.length-1);if(ge>=55296&&ge<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=je[je.length-2],this.lastChar[1]=je[je.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=je[je.length-1],je.toString("utf16le",Me,je.length-1)}function pe(je){var Me=je&&je.length?this.write(je):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return Me+this.lastChar.toString("utf16le",0,Ae)}return Me}function ve(je,Me){var Ae=(je.length-Me)%3;return Ae===0?je.toString("base64",Me):(this.lastNeed=3-Ae,this.lastTotal=3,Ae===1?this.lastChar[0]=je[je.length-1]:(this.lastChar[0]=je[je.length-2],this.lastChar[1]=je[je.length-1]),je.toString("base64",Me,je.length-Ae))}function de(je){var Me=je&&je.length?this.write(je):"";return this.lastNeed?Me+this.lastChar.toString("base64",0,3-this.lastNeed):Me}function we(je){return je.toString(this.encoding)}function Te(je){return je&&je.length?this.write(je):""}},{"safe-buffer":396}],414:[function(y,Ce,ye){(function(x,z){(function(){var se=y("process/browser.js").nextTick,ae=Function.prototype.apply,ee=Array.prototype.slice,fe={},E=0;ye.setTimeout=function(){return new re(ae.call(setTimeout,window,arguments),clearTimeout)},ye.setInterval=function(){return new re(ae.call(setInterval,window,arguments),clearInterval)},ye.clearTimeout=ye.clearInterval=function(ne){ne.close()};function re(ne,le){this._id=ne,this._clearFn=le}re.prototype.unref=re.prototype.ref=function(){},re.prototype.close=function(){this._clearFn.call(window,this._id)},ye.enroll=function(ne,le){clearTimeout(ne._idleTimeoutId),ne._idleTimeout=le},ye.unenroll=function(ne){clearTimeout(ne._idleTimeoutId),ne._idleTimeout=-1},ye._unrefActive=ye.active=function(ne){clearTimeout(ne._idleTimeoutId);var le=ne._idleTimeout;le>=0&&(ne._idleTimeoutId=setTimeout(function(){ne._onTimeout&&ne._onTimeout()},le))},ye.setImmediate=typeof x=="function"?x:function(ne){var le=E++,ue=arguments.length<2?!1:ee.call(arguments,1);return fe[le]=!0,se(function(){fe[le]&&(ue?ne.apply(null,ue):ne.call(null),ye.clearImmediate(le))}),le},ye.clearImmediate=typeof z=="function"?z:function(ne){delete fe[ne]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,Ce,ye){var x=y("buffer").Buffer;Ce.exports=function(z){if(z instanceof Uint8Array){if(z.byteOffset===0&&z.byteLength===z.buffer.byteLength)return z.buffer;if(typeof z.buffer.slice=="function")return z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength)}if(x.isBuffer(z)){for(var se=new Uint8Array(z.length),ae=z.length,ee=0;ee<ae;ee++)se[ee]=z[ee];return se.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,Ce,ye){(function(x){(function(){Ce.exports=z;function z(ae,ee){if(se("noDeprecation"))return ae;var fe=!1;function E(){if(!fe){if(se("throwDeprecation"))throw new Error(ee);se("traceDeprecation")?console.trace(ee):console.warn(ee),fe=!0}return ae.apply(this,arguments)}return E}function se(ae){try{if(!x.localStorage)return!1}catch(fe){return!1}var ee=x.localStorage[ae];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,Ce,ye){arguments[4][84][0].apply(ye,arguments)},{dup:84}],418:[function(y,Ce,ye){"use strict";var x=y("is-arguments"),z=y("is-generator-function"),se=y("which-typed-array"),ae=y("is-typed-array");function ee(et){return et.call.bind(et)}var fe=typeof BigInt!="undefined",E=typeof Symbol!="undefined",re=ee(Object.prototype.toString),ne=ee(Number.prototype.valueOf),le=ee(String.prototype.valueOf),ue=ee(Boolean.prototype.valueOf);if(fe)var he=ee(BigInt.prototype.valueOf);if(E)var pe=ee(Symbol.prototype.valueOf);function ve(et,nt){if(typeof et!="object")return!1;try{return nt(et),!0}catch(dt){return!1}}ye.isArgumentsObject=x,ye.isGeneratorFunction=z,ye.isTypedArray=ae;function de(et){return typeof Promise!="undefined"&&et instanceof Promise||et!==null&&typeof et=="object"&&typeof et.then=="function"&&typeof et.catch=="function"}ye.isPromise=de;function we(et){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(et):ae(et)||ze(et)}ye.isArrayBufferView=we;function Te(et){return se(et)==="Uint8Array"}ye.isUint8Array=Te;function je(et){return se(et)==="Uint8ClampedArray"}ye.isUint8ClampedArray=je;function Me(et){return se(et)==="Uint16Array"}ye.isUint16Array=Me;function Ae(et){return se(et)==="Uint32Array"}ye.isUint32Array=Ae;function ge(et){return se(et)==="Int8Array"}ye.isInt8Array=ge;function be(et){return se(et)==="Int16Array"}ye.isInt16Array=be;function Ee(et){return se(et)==="Int32Array"}ye.isInt32Array=Ee;function Re(et){return se(et)==="Float32Array"}ye.isFloat32Array=Re;function Ie(et){return se(et)==="Float64Array"}ye.isFloat64Array=Ie;function ke(et){return se(et)==="BigInt64Array"}ye.isBigInt64Array=ke;function Pe(et){return se(et)==="BigUint64Array"}ye.isBigUint64Array=Pe;function Ze(et){return re(et)==="[object Map]"}Ze.working=typeof Map!="undefined"&&Ze(new Map);function He(et){return typeof Map=="undefined"?!1:Ze.working?Ze(et):et instanceof Map}ye.isMap=He;function $e(et){return re(et)==="[object Set]"}$e.working=typeof Set!="undefined"&&$e(new Set);function it(et){return typeof Set=="undefined"?!1:$e.working?$e(et):et instanceof Set}ye.isSet=it;function Ne(et){return re(et)==="[object WeakMap]"}Ne.working=typeof WeakMap!="undefined"&&Ne(new WeakMap);function Fe(et){return typeof WeakMap=="undefined"?!1:Ne.working?Ne(et):et instanceof WeakMap}ye.isWeakMap=Fe;function qe(et){return re(et)==="[object WeakSet]"}qe.working=typeof WeakSet!="undefined"&&qe(new WeakSet);function rt(et){return qe(et)}ye.isWeakSet=rt;function tt(et){return re(et)==="[object ArrayBuffer]"}tt.working=typeof ArrayBuffer!="undefined"&&tt(new ArrayBuffer);function Ve(et){return typeof ArrayBuffer=="undefined"?!1:tt.working?tt(et):et instanceof ArrayBuffer}ye.isArrayBuffer=Ve;function Ke(et){return re(et)==="[object DataView]"}Ke.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Ke(new DataView(new ArrayBuffer(1),0,1));function ze(et){return typeof DataView=="undefined"?!1:Ke.working?Ke(et):et instanceof DataView}ye.isDataView=ze;var at=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Qe(et){return re(et)==="[object SharedArrayBuffer]"}function ut(et){return typeof at=="undefined"?!1:(typeof Qe.working=="undefined"&&(Qe.working=Qe(new at)),Qe.working?Qe(et):et instanceof at)}ye.isSharedArrayBuffer=ut;function st(et){return re(et)==="[object AsyncFunction]"}ye.isAsyncFunction=st;function Xe(et){return re(et)==="[object Map Iterator]"}ye.isMapIterator=Xe;function Le(et){return re(et)==="[object Set Iterator]"}ye.isSetIterator=Le;function De(et){return re(et)==="[object Generator]"}ye.isGeneratorObject=De;function te(et){return re(et)==="[object WebAssembly.Module]"}ye.isWebAssemblyCompiledModule=te;function ce(et){return ve(et,ne)}ye.isNumberObject=ce;function _e(et){return ve(et,le)}ye.isStringObject=_e;function Ue(et){return ve(et,ue)}ye.isBooleanObject=Ue;function xe(et){return fe&&ve(et,he)}ye.isBigIntObject=xe;function Se(et){return E&&ve(et,pe)}ye.isSymbolObject=Se;function Oe(et){return ce(et)||_e(et)||Ue(et)||xe(et)||Se(et)}ye.isBoxedPrimitive=Oe;function We(et){return typeof Uint8Array!="undefined"&&(Ve(et)||ut(et))}ye.isAnyArrayBuffer=We,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(et){Object.defineProperty(ye,et,{enumerable:!1,value:function(){throw new Error(et+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,Ce,ye){(function(x){(function(){var z=Object.getOwnPropertyDescriptors||function(at){for(var Qe=Object.keys(at),ut={},st=0;st<Qe.length;st++)ut[Qe[st]]=Object.getOwnPropertyDescriptor(at,Qe[st]);return ut},se=/%[sdj%]/g;ye.format=function(ze){if(!be(ze)){for(var at=[],Qe=0;Qe<arguments.length;Qe++)at.push(E(arguments[Qe]));return at.join(" ")}for(var Qe=1,ut=arguments,st=ut.length,Xe=String(ze).replace(se,function(De){if(De==="%%")return"%";if(Qe>=st)return De;switch(De){case"%s":return String(ut[Qe++]);case"%d":return Number(ut[Qe++]);case"%j":try{return JSON.stringify(ut[Qe++])}catch(te){return"[Circular]"}default:return De}}),Le=ut[Qe];Qe<st;Le=ut[++Qe])Me(Le)||!ke(Le)?Xe+=" "+Le:Xe+=" "+E(Le);return Xe},ye.deprecate=function(ze,at){if(typeof x!="undefined"&&x.noDeprecation===!0)return ze;if(typeof x=="undefined")return function(){return ye.deprecate(ze,at).apply(this,arguments)};var Qe=!1;function ut(){if(!Qe){if(x.throwDeprecation)throw new Error(at);x.traceDeprecation?console.trace(at):console.error(at),Qe=!0}return ze.apply(this,arguments)}return ut};var ae={},ee=/^$/;if(x.env.NODE_DEBUG){var fe=x.env.NODE_DEBUG;fe=fe.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+fe+"$","i")}ye.debuglog=function(ze){if(ze=ze.toUpperCase(),!ae[ze])if(ee.test(ze)){var at=x.pid;ae[ze]=function(){var Qe=ye.format.apply(ye,arguments);console.error("%s %d: %s",ze,at,Qe)}}else ae[ze]=function(){};return ae[ze]};function E(ze,at){var Qe={seen:[],stylize:ne};return arguments.length>=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),je(at)?Qe.showHidden=at:at&&ye._extend(Qe,at),Re(Qe.showHidden)&&(Qe.showHidden=!1),Re(Qe.depth)&&(Qe.depth=2),Re(Qe.colors)&&(Qe.colors=!1),Re(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=re),ue(Qe,ze,Qe.depth)}ye.inspect=E,E.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},E.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function re(ze,at){var Qe=E.styles[at];return Qe?"\x1B["+E.colors[Qe][0]+"m"+ze+"\x1B["+E.colors[Qe][1]+"m":ze}function ne(ze,at){return ze}function le(ze){var at={};return ze.forEach(function(Qe,ut){at[Qe]=!0}),at}function ue(ze,at,Qe){if(ze.customInspect&&at&&He(at.inspect)&&at.inspect!==ye.inspect&&!(at.constructor&&at.constructor.prototype===at)){var ut=at.inspect(Qe,ze);return be(ut)||(ut=ue(ze,ut,Qe)),ut}var st=he(ze,at);if(st)return st;var Xe=Object.keys(at),Le=le(Xe);if(ze.showHidden&&(Xe=Object.getOwnPropertyNames(at)),Ze(at)&&(Xe.indexOf("message")>=0||Xe.indexOf("description")>=0))return pe(at);if(Xe.length===0){if(He(at)){var De=at.name?": "+at.name:"";return ze.stylize("[Function"+De+"]","special")}if(Ie(at))return ze.stylize(RegExp.prototype.toString.call(at),"regexp");if(Pe(at))return ze.stylize(Date.prototype.toString.call(at),"date");if(Ze(at))return pe(at)}var te="",ce=!1,_e=["{","}"];if(Te(at)&&(ce=!0,_e=["[","]"]),He(at)){var Ue=at.name?": "+at.name:"";te=" [Function"+Ue+"]"}if(Ie(at)&&(te=" "+RegExp.prototype.toString.call(at)),Pe(at)&&(te=" "+Date.prototype.toUTCString.call(at)),Ze(at)&&(te=" "+pe(at)),Xe.length===0&&(!ce||at.length==0))return _e[0]+te+_e[1];if(Qe<0)return Ie(at)?ze.stylize(RegExp.prototype.toString.call(at),"regexp"):ze.stylize("[Object]","special");ze.seen.push(at);var xe;return ce?xe=ve(ze,at,Qe,Le,Xe):xe=Xe.map(function(Se){return de(ze,at,Qe,Le,Se,ce)}),ze.seen.pop(),we(xe,te,_e)}function he(ze,at){if(Re(at))return ze.stylize("undefined","undefined");if(be(at)){var Qe="'"+JSON.stringify(at).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ze.stylize(Qe,"string")}if(ge(at))return ze.stylize(""+at,"number");if(je(at))return ze.stylize(""+at,"boolean");if(Me(at))return ze.stylize("null","null")}function pe(ze){return"["+Error.prototype.toString.call(ze)+"]"}function ve(ze,at,Qe,ut,st){for(var Xe=[],Le=0,De=at.length;Le<De;++Le)rt(at,String(Le))?Xe.push(de(ze,at,Qe,ut,String(Le),!0)):Xe.push("");return st.forEach(function(te){te.match(/^\d+$/)||Xe.push(de(ze,at,Qe,ut,te,!0))}),Xe}function de(ze,at,Qe,ut,st,Xe){var Le,De,te;if(te=Object.getOwnPropertyDescriptor(at,st)||{value:at[st]},te.get?te.set?De=ze.stylize("[Getter/Setter]","special"):De=ze.stylize("[Getter]","special"):te.set&&(De=ze.stylize("[Setter]","special")),rt(ut,st)||(Le="["+st+"]"),De||(ze.seen.indexOf(te.value)<0?(Me(Qe)?De=ue(ze,te.value,null):De=ue(ze,te.value,Qe-1),De.indexOf(`
`)>-1&&(Xe?De=De.split(`
`).map(function(ce){return" "+ce}).join(`
`).slice(2):De=`
`+De.split(`
`).map(function(ce){return" "+ce}).join(`
`))):De=ze.stylize("[Circular]","special")),Re(Le)){if(Xe&&st.match(/^\d+$/))return De;Le=JSON.stringify(""+st),Le.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Le=Le.slice(1,-1),Le=ze.stylize(Le,"name")):(Le=Le.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Le=ze.stylize(Le,"string"))}return Le+": "+De}function we(ze,at,Qe){var ut=0,st=ze.reduce(function(Xe,Le){return ut++,Le.indexOf(`
`)>=0&&ut++,Xe+Le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return st>60?Qe[0]+(at===""?"":at+`
`)+" "+ze.join(`,
`)+" "+Qe[1]:Qe[0]+at+" "+ze.join(", ")+" "+Qe[1]}ye.types=y("./support/types");function Te(ze){return Array.isArray(ze)}ye.isArray=Te;function je(ze){return typeof ze=="boolean"}ye.isBoolean=je;function Me(ze){return ze===null}ye.isNull=Me;function Ae(ze){return ze==null}ye.isNullOrUndefined=Ae;function ge(ze){return typeof ze=="number"}ye.isNumber=ge;function be(ze){return typeof ze=="string"}ye.isString=be;function Ee(ze){return typeof ze=="symbol"}ye.isSymbol=Ee;function Re(ze){return ze===void 0}ye.isUndefined=Re;function Ie(ze){return ke(ze)&&it(ze)==="[object RegExp]"}ye.isRegExp=Ie,ye.types.isRegExp=Ie;function ke(ze){return typeof ze=="object"&&ze!==null}ye.isObject=ke;function Pe(ze){return ke(ze)&&it(ze)==="[object Date]"}ye.isDate=Pe,ye.types.isDate=Pe;function Ze(ze){return ke(ze)&&(it(ze)==="[object Error]"||ze instanceof Error)}ye.isError=Ze,ye.types.isNativeError=Ze;function He(ze){return typeof ze=="function"}ye.isFunction=He;function $e(ze){return ze===null||typeof ze=="boolean"||typeof ze=="number"||typeof ze=="string"||typeof ze=="symbol"||typeof ze=="undefined"}ye.isPrimitive=$e,ye.isBuffer=y("./support/isBuffer");function it(ze){return Object.prototype.toString.call(ze)}function Ne(ze){return ze<10?"0"+ze.toString(10):ze.toString(10)}var Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qe(){var ze=new Date,at=[Ne(ze.getHours()),Ne(ze.getMinutes()),Ne(ze.getSeconds())].join(":");return[ze.getDate(),Fe[ze.getMonth()],at].join(" ")}ye.log=function(){console.log("%s - %s",qe(),ye.format.apply(ye,arguments))},ye.inherits=y("inherits"),ye._extend=function(ze,at){if(!at||!ke(at))return ze;for(var Qe=Object.keys(at),ut=Qe.length;ut--;)ze[Qe[ut]]=at[Qe[ut]];return ze};function rt(ze,at){return Object.prototype.hasOwnProperty.call(ze,at)}var tt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ye.promisify=function(at){if(typeof at!="function")throw new TypeError('The "original" argument must be of type Function');if(tt&&at[tt]){var Qe=at[tt];if(typeof Qe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qe,tt,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Qe}function Qe(){for(var ut,st,Xe=new Promise(function(te,ce){ut=te,st=ce}),Le=[],De=0;De<arguments.length;De++)Le.push(arguments[De]);Le.push(function(te,ce){te?st(te):ut(ce)});try{at.apply(this,Le)}catch(te){st(te)}return Xe}return Object.setPrototypeOf(Qe,Object.getPrototypeOf(at)),tt&&Object.defineProperty(Qe,tt,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Qe,z(at))},ye.promisify.custom=tt;function Ve(ze,at){if(!ze){var Qe=new Error("Promise was rejected with a falsy value");Qe.reason=ze,ze=Qe}return at(ze)}function Ke(ze){if(typeof ze!="function")throw new TypeError('The "original" argument must be of type Function');function at(){for(var Qe=[],ut=0;ut<arguments.length;ut++)Qe.push(arguments[ut]);var st=Qe.pop();if(typeof st!="function")throw new TypeError("The last argument must be of type Function");var Xe=this,Le=function(){return st.apply(Xe,arguments)};ze.apply(this,Qe).then(function(De){x.nextTick(Le.bind(null,null,De))},function(De){x.nextTick(Ve.bind(null,De,Le))})}return Object.setPrototypeOf(at,Object.getPrototypeOf(ze)),Object.defineProperties(at,z(ze)),at}ye.callbackify=Ke}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=y("for-each"),se=y("available-typed-arrays"),ae=y("call-bind"),ee=y("call-bind/callBound"),fe=y("gopd"),E=ee("Object.prototype.toString"),re=y("has-tostringtag/shams")(),ne=typeof globalThis=="undefined"?x:globalThis,le=se(),ue=ee("String.prototype.slice"),he=Object.getPrototypeOf,pe=ee("Array.prototype.indexOf",!0)||function(je,Me){for(var Ae=0;Ae<je.length;Ae+=1)if(je[Ae]===Me)return Ae;return-1},ve={__proto__:null};re&&fe&&he?z(le,function(Te){var je=new ne[Te];if(Symbol.toStringTag in je){var Me=he(je),Ae=fe(Me,Symbol.toStringTag);if(!Ae){var ge=he(Me);Ae=fe(ge,Symbol.toStringTag)}ve["$"+Te]=ae(Ae.get)}}):z(le,function(Te){var je=new ne[Te];ve["$"+Te]=ae(je.slice)});var de=function(je){var Me=!1;return z(ve,function(Ae,ge){if(!Me)try{"$"+Ae(je)===ge&&(Me=ue(ge,1))}catch(be){}}),Me},we=function(je){var Me=!1;return z(ve,function(Ae,ge){if(!Me)try{Ae(je),Me=ue(ge,1)}catch(be){}}),Me};Ce.exports=function(je){if(!je||typeof je!="object")return!1;if(!re){var Me=ue(E(je),8,-1);return pe(le,Me)>-1?Me:Me!=="Object"?!1:we(je)}return fe?de(je):null}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(y,Ce,ye){(function(){"use strict";ye.stripBOM=function(x){return x[0]==="\uFEFF"?x.substring(1):x}}).call(this)},{}],422:[function(y,Ce,ye){(function(){"use strict";var x,z,se,ae,ee,fe={}.hasOwnProperty;x=y("xmlbuilder"),z=y("./defaults").defaults,ae=function(E){return typeof E=="string"&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},ee=function(E){return"<![CDATA["+se(E)+"]]>"},se=function(E){return E.replace("]]>","]]]]><![CDATA[>")},ye.Builder=function(){function E(re){var ne,le,ue;this.options={},le=z["0.2"];for(ne in le)fe.call(le,ne)&&(ue=le[ne],this.options[ne]=ue);for(ne in re)fe.call(re,ne)&&(ue=re[ne],this.options[ne]=ue)}return E.prototype.buildObject=function(re){var ne,le,ue,he,pe;return ne=this.options.attrkey,le=this.options.charkey,Object.keys(re).length===1&&this.options.rootName===z["0.2"].rootName?(pe=Object.keys(re)[0],re=re[pe]):pe=this.options.rootName,ue=function(ve){return function(de,we){var Te,je,Me,Ae,ge,be;if(typeof we!="object")ve.options.cdata&&ae(we)?de.raw(ee(we)):de.txt(we);else if(Array.isArray(we)){for(Ae in we)if(fe.call(we,Ae)){je=we[Ae];for(ge in je)Me=je[ge],de=ue(de.ele(ge),Me).up()}}else for(ge in we)if(fe.call(we,ge))if(je=we[ge],ge===ne){if(typeof je=="object")for(Te in je)be=je[Te],de=de.att(Te,be)}else if(ge===le)ve.options.cdata&&ae(je)?de=de.raw(ee(je)):de=de.txt(je);else if(Array.isArray(je))for(Ae in je)fe.call(je,Ae)&&(Me=je[Ae],typeof Me=="string"?ve.options.cdata&&ae(Me)?de=de.ele(ge).raw(ee(Me)).up():de=de.ele(ge,Me).up():de=ue(de.ele(ge),Me).up());else typeof je=="object"?de=ue(de.ele(ge),je).up():typeof je=="string"&&ve.options.cdata&&ae(je)?de=de.ele(ge).raw(ee(je)).up():(je==null&&(je=""),de=de.ele(ge,je.toString()).up());return de}}(this),he=x.create(pe,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ue(he,re).end(this.options.renderOpts)},E}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,Ce,ye){(function(){ye.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(y,Ce,ye){(function(){"use strict";var x,z,se,ae,ee,fe,E,re,ne,le=function(pe,ve){return function(){return pe.apply(ve,arguments)}},ue=function(pe,ve){for(var de in ve)he.call(ve,de)&&(pe[de]=ve[de]);function we(){this.constructor=pe}return we.prototype=ve.prototype,pe.prototype=new we,pe.__super__=ve.prototype,pe},he={}.hasOwnProperty;re=y("sax"),ae=y("events"),x=y("./bom"),E=y("./processors"),ne=y("timers").setImmediate,z=y("./defaults").defaults,ee=function(pe){return typeof pe=="object"&&pe!=null&&Object.keys(pe).length===0},fe=function(pe,ve,de){var we,Te,je;for(we=0,Te=pe.length;we<Te;we++)je=pe[we],ve=je(ve,de);return ve},se=function(pe,ve,de){var we;return we=Object.create(null),we.value=de,we.writable=!0,we.enumerable=!0,we.configurable=!0,Object.defineProperty(pe,ve,we)},ye.Parser=function(pe){ue(ve,pe);function ve(de){this.parseStringPromise=le(this.parseStringPromise,this),this.parseString=le(this.parseString,this),this.reset=le(this.reset,this),this.assignOrPush=le(this.assignOrPush,this),this.processAsync=le(this.processAsync,this);var we,Te,je;if(!(this instanceof ye.Parser))return new ye.Parser(de);this.options={},Te=z["0.2"];for(we in Te)he.call(Te,we)&&(je=Te[we],this.options[we]=je);for(we in de)he.call(de,we)&&(je=de[we],this.options[we]=je);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(E.normalize)),this.reset()}return ve.prototype.processAsync=function(){var de,we;try{return this.remaining.length<=this.options.chunkSize?(de=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(de),this.saxParser.close()):(de=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(de),ne(this.processAsync))}catch(Te){if(we=Te,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(we)}},ve.prototype.assignOrPush=function(de,we,Te){return we in de?(de[we]instanceof Array||se(de,we,[de[we]]),de[we].push(Te)):this.options.explicitArray?se(de,we,[Te]):se(de,we,Te)},ve.prototype.reset=function(){var de,we,Te,je;return this.removeAllListeners(),this.saxParser=re.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Me){return function(Ae){if(Me.saxParser.resume(),!Me.saxParser.errThrown)return Me.saxParser.errThrown=!0,Me.emit("error",Ae)}}(this),this.saxParser.onend=function(Me){return function(){if(!Me.saxParser.ended)return Me.saxParser.ended=!0,Me.emit("end",Me.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,je=[],de=this.options.attrkey,we=this.options.charkey,this.saxParser.onopentag=function(Me){return function(Ae){var ge,be,Ee,Re,Ie;if(Ee={},Ee[we]="",!Me.options.ignoreAttrs){Ie=Ae.attributes;for(ge in Ie)he.call(Ie,ge)&&(!(de in Ee)&&!Me.options.mergeAttrs&&(Ee[de]={}),be=Me.options.attrValueProcessors?fe(Me.options.attrValueProcessors,Ae.attributes[ge],ge):Ae.attributes[ge],Re=Me.options.attrNameProcessors?fe(Me.options.attrNameProcessors,ge):ge,Me.options.mergeAttrs?Me.assignOrPush(Ee,Re,be):se(Ee[de],Re,be))}return Ee["#name"]=Me.options.tagNameProcessors?fe(Me.options.tagNameProcessors,Ae.name):Ae.name,Me.options.xmlns&&(Ee[Me.options.xmlnskey]={uri:Ae.uri,local:Ae.local}),je.push(Ee)}}(this),this.saxParser.onclosetag=function(Me){return function(){var Ae,ge,be,Ee,Re,Ie,ke,Pe,Ze,He;if(Ie=je.pop(),Re=Ie["#name"],(!Me.options.explicitChildren||!Me.options.preserveChildrenOrder)&&delete Ie["#name"],Ie.cdata===!0&&(Ae=Ie.cdata,delete Ie.cdata),Ze=je[je.length-1],Ie[we].match(/^\s*$/)&&!Ae?(ge=Ie[we],delete Ie[we]):(Me.options.trim&&(Ie[we]=Ie[we].trim()),Me.options.normalize&&(Ie[we]=Ie[we].replace(/\s{2,}/g," ").trim()),Ie[we]=Me.options.valueProcessors?fe(Me.options.valueProcessors,Ie[we],Re):Ie[we],Object.keys(Ie).length===1&&we in Ie&&!Me.EXPLICIT_CHARKEY&&(Ie=Ie[we])),ee(Ie)&&(typeof Me.options.emptyTag=="function"?Ie=Me.options.emptyTag():Ie=Me.options.emptyTag!==""?Me.options.emptyTag:ge),Me.options.validator!=null&&(He="/"+function(){var $e,it,Ne;for(Ne=[],$e=0,it=je.length;$e<it;$e++)Ee=je[$e],Ne.push(Ee["#name"]);return Ne}().concat(Re).join("/"),function(){var $e;try{return Ie=Me.options.validator(He,Ze&&Ze[Re],Ie)}catch(it){return $e=it,Me.emit("error",$e)}}()),Me.options.explicitChildren&&!Me.options.mergeAttrs&&typeof Ie=="object"){if(!Me.options.preserveChildrenOrder)Ee={},Me.options.attrkey in Ie&&(Ee[Me.options.attrkey]=Ie[Me.options.attrkey],delete Ie[Me.options.attrkey]),!Me.options.charsAsChildren&&Me.options.charkey in Ie&&(Ee[Me.options.charkey]=Ie[Me.options.charkey],delete Ie[Me.options.charkey]),Object.getOwnPropertyNames(Ie).length>0&&(Ee[Me.options.childkey]=Ie),Ie=Ee;else if(Ze){Ze[Me.options.childkey]=Ze[Me.options.childkey]||[],ke={};for(be in Ie)he.call(Ie,be)&&se(ke,be,Ie[be]);Ze[Me.options.childkey].push(ke),delete Ie["#name"],Object.keys(Ie).length===1&&we in Ie&&!Me.EXPLICIT_CHARKEY&&(Ie=Ie[we])}}return je.length>0?Me.assignOrPush(Ze,Re,Ie):(Me.options.explicitRoot&&(Pe=Ie,Ie={},se(Ie,Re,Pe)),Me.resultObject=Ie,Me.saxParser.ended=!0,Me.emit("end",Me.resultObject))}}(this),Te=function(Me){return function(Ae){var ge,be;if(be=je[je.length-1],be)return be[we]+=Ae,Me.options.explicitChildren&&Me.options.preserveChildrenOrder&&Me.options.charsAsChildren&&(Me.options.includeWhiteChars||Ae.replace(/\\n/g,"").trim()!=="")&&(be[Me.options.childkey]=be[Me.options.childkey]||[],ge={"#name":"__text__"},ge[we]=Ae,Me.options.normalize&&(ge[we]=ge[we].replace(/\s{2,}/g," ").trim()),be[Me.options.childkey].push(ge)),be}}(this),this.saxParser.ontext=Te,this.saxParser.oncdata=function(Me){return function(Ae){var ge;if(ge=Te(Ae),ge)return ge.cdata=!0}}(this)},ve.prototype.parseString=function(de,we){var Te;we!=null&&typeof we=="function"&&(this.on("end",function(je){return this.reset(),we(null,je)}),this.on("error",function(je){return this.reset(),we(je)}));try{return de=de.toString(),de.trim()===""?(this.emit("end",null),!0):(de=x.stripBOM(de),this.options.async?(this.remaining=de,ne(this.processAsync),this.saxParser):this.saxParser.write(de).close())}catch(je){if(Te=je,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Te}else return this.emit("error",Te),this.saxParser.errThrown=!0}},ve.prototype.parseStringPromise=function(de){return new Promise(function(we){return function(Te,je){return we.parseString(de,function(Me,Ae){return Me?je(Me):Te(Ae)})}}(this))},ve}(ae),ye.parseString=function(pe,ve,de){var we,Te,je;return de!=null?(typeof de=="function"&&(we=de),typeof ve=="object"&&(Te=ve)):(typeof ve=="function"&&(we=ve),Te={}),je=new ye.Parser(Te),je.parseString(pe,we)},ye.parseStringPromise=function(pe,ve){var de,we;return typeof ve=="object"&&(de=ve),we=new ye.Parser(de),we.parseStringPromise(pe)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,Ce,ye){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),ye.normalize=function(z){return z.toLowerCase()},ye.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},ye.stripPrefix=function(z){return z.replace(x,"")},ye.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},ye.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(y,Ce,ye){(function(){"use strict";var x,z,se,ae,ee=function(E,re){for(var ne in re)fe.call(re,ne)&&(E[ne]=re[ne]);function le(){this.constructor=E}return le.prototype=re.prototype,E.prototype=new le,E.__super__=re.prototype,E},fe={}.hasOwnProperty;z=y("./defaults"),x=y("./builder"),se=y("./parser"),ae=y("./processors"),ye.defaults=z.defaults,ye.processors=ae,ye.ValidationError=function(E){ee(re,E);function re(ne){this.message=ne}return re}(Error),ye.Builder=x.Builder,ye.Parser=se.Parser,ye.parseString=se.parseString,ye.parseStringPromise=se.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,Ce,ye){(function(){Ce.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,Ce,ye){(function(){Ce.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re=[].slice,ne={}.hasOwnProperty;x=function(){var le,ue,he,pe,ve,de;if(de=arguments[0],ve=2<=arguments.length?re.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(le=0,he=ve.length;le<he;le++)if(pe=ve[le],pe!=null)for(ue in pe)ne.call(pe,ue)&&(de[ue]=pe[ue]);return de},ee=function(le){return!!le&&Object.prototype.toString.call(le)==="[object Function]"},fe=function(le){var ue;return!!le&&((ue=typeof le)=="function"||ue==="object")},se=function(le){return ee(Array.isArray)?Array.isArray(le):Object.prototype.toString.call(le)==="[object Array]"},ae=function(le){var ue;if(se(le))return!le.length;for(ue in le)if(ne.call(le,ue))return!1;return!0},E=function(le){var ue,he;return fe(le)&&(he=Object.getPrototypeOf(le))&&(ue=he.constructor)&&typeof ue=="function"&&ue instanceof ue&&Function.prototype.toString.call(ue)===Function.prototype.toString.call(Object)},z=function(le){return ee(le.valueOf)?le.valueOf():le},Ce.exports.assign=x,Ce.exports.isFunction=ee,Ce.exports.isObject=fe,Ce.exports.isArray=se,Ce.exports.isEmpty=ae,Ce.exports.isPlainObject=E,Ce.exports.getValue=z}).call(this)},{}],430:[function(y,Ce,ye){(function(){Ce.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,Ce,ye){(function(){var x,z,se;x=y("./NodeType"),se=y("./XMLNode"),Ce.exports=z=function(){function ae(ee,fe,E){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),fe==null)throw new Error("Missing attribute name. "+this.debugInfo(fe));this.name=this.stringify.name(fe),this.value=this.stringify.attValue(E),this.type=x.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(ae.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ae.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(ae.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(ae.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ae.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ae.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ae.prototype,"specified",{get:function(){return!0}}),ae.prototype.clone=function(){return Object.create(this)},ae.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},ae.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},ae.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},ae}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),se=y("./XMLCharacterData"),Ce.exports=z=function(fe){ae(E,fe);function E(re,ne){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=x.CData,this.value=this.stringify.cdata(ne)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.cdata(this,this.options.writer.filterOptions(re))},E}(se)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,Ce,ye){(function(){var x,z,se=function(ee,fe){for(var E in fe)ae.call(fe,E)&&(ee[E]=fe[E]);function re(){this.constructor=ee}return re.prototype=fe.prototype,ee.prototype=new re,ee.__super__=fe.prototype,ee},ae={}.hasOwnProperty;z=y("./XMLNode"),Ce.exports=x=function(ee){se(fe,ee);function fe(E){fe.__super__.constructor.call(this,E),this.value=""}return Object.defineProperty(fe.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(fe.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(fe.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),fe.prototype.clone=function(){return Object.create(this)},fe.prototype.substringData=function(E,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.insertData=function(E,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.deleteData=function(E,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.replaceData=function(E,re,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.isEqualNode=function(E){return!(!fe.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},fe}(z)}).call(this)},{"./XMLNode":450}],434:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),Ce.exports=se=function(fe){ae(E,fe);function E(re,ne){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=x.Comment,this.value=this.stringify.comment(ne)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.comment(this,this.options.writer.filterOptions(re))},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,Ce,ye){(function(){var x,z,se;z=y("./XMLDOMErrorHandler"),se=y("./XMLDOMStringList"),Ce.exports=x=function(){function ae(){var ee;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(ae.prototype,"parameterNames",{get:function(){return new se(Object.keys(this.defaultParams))}}),ae.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},ae.prototype.canSetParameter=function(ee,fe){return!0},ae.prototype.setParameter=function(ee,fe){return fe!=null?this.params[ee]=fe:delete this.params[ee]},ae}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,Ce,ye){(function(){var x;Ce.exports=x=function(){function z(){}return z.prototype.handleError=function(se){throw new Error(se)},z}()}).call(this)},{}],437:[function(y,Ce,ye){(function(){var x;Ce.exports=x=function(){function z(){}return z.prototype.hasFeature=function(se,ae){return!0},z.prototype.createDocumentType=function(se,ae,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(se,ae,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(se){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(se,ae){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(y,Ce,ye){(function(){var x;Ce.exports=x=function(){function z(se){this.arr=se||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(se){return this.arr[se]||null},z.prototype.contains=function(se){return this.arr.indexOf(se)!==-1},z}()}).call(this)},{}],439:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;se=y("./XMLNode"),x=y("./NodeType"),Ce.exports=z=function(fe){ae(E,fe);function E(re,ne,le,ue,he,pe){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(le==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(ne));if(!ue)throw new Error("Missing DTD attribute type. "+this.debugInfo(ne));if(!he)throw new Error("Missing DTD attribute default. "+this.debugInfo(ne));if(he.indexOf("#")!==0&&(he="#"+he),!he.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(ne));if(pe&&!he.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(ne));this.elementName=this.stringify.name(ne),this.type=x.AttributeDeclaration,this.attributeName=this.stringify.name(le),this.attributeType=this.stringify.dtdAttType(ue),pe&&(this.defaultValue=this.stringify.dtdAttDefault(pe)),this.defaultValueType=he}return E.prototype.toString=function(re){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(re))},E}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;se=y("./XMLNode"),x=y("./NodeType"),Ce.exports=z=function(fe){ae(E,fe);function E(re,ne,le){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing DTD element name. "+this.debugInfo());le||(le="(#PCDATA)"),Array.isArray(le)&&(le="("+le.join(",")+")"),this.name=this.stringify.name(ne),this.type=x.ElementDeclaration,this.value=this.stringify.dtdElementValue(le)}return E.prototype.toString=function(re){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(re))},E}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,Ce,ye){(function(){var x,z,se,ae,ee=function(E,re){for(var ne in re)fe.call(re,ne)&&(E[ne]=re[ne]);function le(){this.constructor=E}return le.prototype=re.prototype,E.prototype=new le,E.__super__=re.prototype,E},fe={}.hasOwnProperty;ae=y("./Utility").isObject,se=y("./XMLNode"),x=y("./NodeType"),Ce.exports=z=function(E){ee(re,E);function re(ne,le,ue,he){if(re.__super__.constructor.call(this,ne),ue==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ue));if(he==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ue));if(this.pe=!!le,this.name=this.stringify.name(ue),this.type=x.EntityDeclaration,!ae(he))this.value=this.stringify.dtdEntityValue(he),this.internal=!0;else{if(!he.pubID&&!he.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ue));if(he.pubID&&!he.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ue));if(this.internal=!1,he.pubID!=null&&(this.pubID=this.stringify.dtdPubID(he.pubID)),he.sysID!=null&&(this.sysID=this.stringify.dtdSysID(he.sysID)),he.nData!=null&&(this.nData=this.stringify.dtdNData(he.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ue))}}return Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(re.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlVersion",{get:function(){return null}}),re.prototype.toString=function(ne){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(ne))},re}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;se=y("./XMLNode"),x=y("./NodeType"),Ce.exports=z=function(fe){ae(E,fe);function E(re,ne,le){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing DTD notation name. "+this.debugInfo(ne));if(!le.pubID&&!le.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(ne));this.name=this.stringify.name(ne),this.type=x.NotationDeclaration,le.pubID!=null&&(this.pubID=this.stringify.dtdPubID(le.pubID)),le.sysID!=null&&(this.sysID=this.stringify.dtdSysID(le.sysID))}return Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),E.prototype.toString=function(re){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(re))},E}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,Ce,ye){(function(){var x,z,se,ae,ee=function(E,re){for(var ne in re)fe.call(re,ne)&&(E[ne]=re[ne]);function le(){this.constructor=E}return le.prototype=re.prototype,E.prototype=new le,E.__super__=re.prototype,E},fe={}.hasOwnProperty;ae=y("./Utility").isObject,se=y("./XMLNode"),x=y("./NodeType"),Ce.exports=z=function(E){ee(re,E);function re(ne,le,ue,he){var pe;re.__super__.constructor.call(this,ne),ae(le)&&(pe=le,le=pe.version,ue=pe.encoding,he=pe.standalone),le||(le="1.0"),this.type=x.Declaration,this.version=this.stringify.xmlVersion(le),ue!=null&&(this.encoding=this.stringify.xmlEncoding(ue)),he!=null&&(this.standalone=this.stringify.xmlStandalone(he))}return re.prototype.toString=function(ne){return this.options.writer.declaration(this,this.options.writer.filterOptions(ne))},re}(se)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re,ne,le=function(he,pe){for(var ve in pe)ue.call(pe,ve)&&(he[ve]=pe[ve]);function de(){this.constructor=he}return de.prototype=pe.prototype,he.prototype=new de,he.__super__=pe.prototype,he},ue={}.hasOwnProperty;ne=y("./Utility").isObject,re=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLDTDAttList"),ae=y("./XMLDTDEntity"),se=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),E=y("./XMLNamedNodeMap"),Ce.exports=fe=function(he){le(pe,he);function pe(ve,de,we){var Te,je,Me,Ae,ge,be;if(pe.__super__.constructor.call(this,ve),this.type=x.DocType,ve.children){for(Ae=ve.children,je=0,Me=Ae.length;je<Me;je++)if(Te=Ae[je],Te.type===x.Element){this.name=Te.name;break}}this.documentObject=ve,ne(de)&&(ge=de,de=ge.pubID,we=ge.sysID),we==null&&(be=[de,we],we=be[0],de=be[1]),de!=null&&(this.pubID=this.stringify.dtdPubID(de)),we!=null&&(this.sysID=this.stringify.dtdSysID(we))}return Object.defineProperty(pe.prototype,"entities",{get:function(){var ve,de,we,Te,je;for(Te={},je=this.children,de=0,we=je.length;de<we;de++)ve=je[de],ve.type===x.EntityDeclaration&&!ve.pe&&(Te[ve.name]=ve);return new E(Te)}}),Object.defineProperty(pe.prototype,"notations",{get:function(){var ve,de,we,Te,je;for(Te={},je=this.children,de=0,we=je.length;de<we;de++)ve=je[de],ve.type===x.NotationDeclaration&&(Te[ve.name]=ve);return new E(Te)}}),Object.defineProperty(pe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(pe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(pe.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),pe.prototype.element=function(ve,de){var we;return we=new se(this,ve,de),this.children.push(we),this},pe.prototype.attList=function(ve,de,we,Te,je){var Me;return Me=new z(this,ve,de,we,Te,je),this.children.push(Me),this},pe.prototype.entity=function(ve,de){var we;return we=new ae(this,!1,ve,de),this.children.push(we),this},pe.prototype.pEntity=function(ve,de){var we;return we=new ae(this,!0,ve,de),this.children.push(we),this},pe.prototype.notation=function(ve,de){var we;return we=new ee(this,ve,de),this.children.push(we),this},pe.prototype.toString=function(ve){return this.options.writer.docType(this,this.options.writer.filterOptions(ve))},pe.prototype.ele=function(ve,de){return this.element(ve,de)},pe.prototype.att=function(ve,de,we,Te,je){return this.attList(ve,de,we,Te,je)},pe.prototype.ent=function(ve,de){return this.entity(ve,de)},pe.prototype.pent=function(ve,de){return this.pEntity(ve,de)},pe.prototype.not=function(ve,de){return this.notation(ve,de)},pe.prototype.up=function(){return this.root()||this.documentObject},pe.prototype.isEqualNode=function(ve){return!(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.name!==this.name||ve.publicId!==this.publicId||ve.systemId!==this.systemId)},pe}(re)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re,ne=function(ue,he){for(var pe in he)le.call(he,pe)&&(ue[pe]=he[pe]);function ve(){this.constructor=ue}return ve.prototype=he.prototype,ue.prototype=new ve,ue.__super__=he.prototype,ue},le={}.hasOwnProperty;re=y("./Utility").isPlainObject,se=y("./XMLDOMImplementation"),z=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),x=y("./NodeType"),E=y("./XMLStringifier"),fe=y("./XMLStringWriter"),Ce.exports=ae=function(ue){ne(he,ue);function he(pe){he.__super__.constructor.call(this,null),this.name="#document",this.type=x.Document,this.documentURI=null,this.domConfig=new z,pe||(pe={}),pe.writer||(pe.writer=new fe),this.options=pe,this.stringify=new E(pe)}return Object.defineProperty(he.prototype,"implementation",{value:new se}),Object.defineProperty(he.prototype,"doctype",{get:function(){var pe,ve,de,we;for(we=this.children,ve=0,de=we.length;ve<de;ve++)if(pe=we[ve],pe.type===x.DocType)return pe;return null}}),Object.defineProperty(he.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(he.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(he.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(he.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].encoding:null}}),Object.defineProperty(he.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(he.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(he.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(he.prototype,"origin",{get:function(){return null}}),Object.defineProperty(he.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(he.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(he.prototype,"contentType",{get:function(){return null}}),he.prototype.end=function(pe){var ve;return ve={},pe?re(pe)&&(ve=pe,pe=this.options.writer):pe=this.options.writer,pe.document(this,pe.filterOptions(ve))},he.prototype.toString=function(pe){return this.options.writer.document(this,this.options.writer.filterOptions(pe))},he.prototype.createElement=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTextNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createComment=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createCDATASection=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createProcessingInstruction=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttribute=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEntityReference=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.importNode=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createElementNS=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttributeNS=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(pe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementById=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.adoptNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.renameNode=function(pe,ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEvent=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createNodeIterator=function(pe,ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTreeWalker=function(pe,ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},he}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re,ne,le,ue,he,pe,ve,de,we,Te,je,Me,Ae,ge,be,Ee,Re,Ie={}.hasOwnProperty;Re=y("./Utility"),be=Re.isObject,ge=Re.isFunction,Ee=Re.isPlainObject,Ae=Re.getValue,x=y("./NodeType"),he=y("./XMLDocument"),ve=y("./XMLElement"),ae=y("./XMLCData"),ee=y("./XMLComment"),we=y("./XMLRaw"),Me=y("./XMLText"),de=y("./XMLProcessingInstruction"),le=y("./XMLDeclaration"),ue=y("./XMLDocType"),fe=y("./XMLDTDAttList"),re=y("./XMLDTDEntity"),E=y("./XMLDTDElement"),ne=y("./XMLDTDNotation"),se=y("./XMLAttribute"),je=y("./XMLStringifier"),Te=y("./XMLStringWriter"),z=y("./WriterState"),Ce.exports=pe=function(){function ke(Pe,Ze,He){var $e;this.name="?xml",this.type=x.Document,Pe||(Pe={}),$e={},Pe.writer?Ee(Pe.writer)&&($e=Pe.writer,Pe.writer=new Te):Pe.writer=new Te,this.options=Pe,this.writer=Pe.writer,this.writerOptions=this.writer.filterOptions($e),this.stringify=new je(Pe),this.onDataCallback=Ze||function(){},this.onEndCallback=He||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ke.prototype.createChildNode=function(Pe){var Ze,He,$e,it,Ne,Fe,qe,rt;switch(Pe.type){case x.CData:this.cdata(Pe.value);break;case x.Comment:this.comment(Pe.value);break;case x.Element:$e={},qe=Pe.attribs;for(He in qe)Ie.call(qe,He)&&(Ze=qe[He],$e[He]=Ze.value);this.node(Pe.name,$e);break;case x.Dummy:this.dummy();break;case x.Raw:this.raw(Pe.value);break;case x.Text:this.text(Pe.value);break;case x.ProcessingInstruction:this.instruction(Pe.target,Pe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Pe.constructor.name)}for(rt=Pe.children,Ne=0,Fe=rt.length;Ne<Fe;Ne++)it=rt[Ne],this.createChildNode(it),it.type===x.Element&&this.up();return this},ke.prototype.dummy=function(){return this},ke.prototype.node=function(Pe,Ze,He){var $e;if(Pe==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Pe));return this.openCurrent(),Pe=Ae(Pe),Ze==null&&(Ze={}),Ze=Ae(Ze),be(Ze)||($e=[Ze,He],He=$e[0],Ze=$e[1]),this.currentNode=new ve(this,Pe,Ze),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,He!=null&&this.text(He),this},ke.prototype.element=function(Pe,Ze,He){var $e,it,Ne,Fe,qe,rt;if(this.currentNode&&this.currentNode.type===x.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Pe)||be(Pe)||ge(Pe))for(Fe=this.options.noValidation,this.options.noValidation=!0,rt=new he(this.options).element("TEMP_ROOT"),rt.element(Pe),this.options.noValidation=Fe,qe=rt.children,it=0,Ne=qe.length;it<Ne;it++)$e=qe[it],this.createChildNode($e),$e.type===x.Element&&this.up();else this.node(Pe,Ze,He);return this},ke.prototype.attribute=function(Pe,Ze){var He,$e;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Pe));if(Pe!=null&&(Pe=Ae(Pe)),be(Pe))for(He in Pe)Ie.call(Pe,He)&&($e=Pe[He],this.attribute(He,$e));else ge(Ze)&&(Ze=Ze.apply()),this.options.keepNullAttributes&&Ze==null?this.currentNode.attribs[Pe]=new se(this,Pe,""):Ze!=null&&(this.currentNode.attribs[Pe]=new se(this,Pe,Ze));return this},ke.prototype.text=function(Pe){var Ze;return this.openCurrent(),Ze=new Me(this,Pe),this.onData(this.writer.text(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.cdata=function(Pe){var Ze;return this.openCurrent(),Ze=new ae(this,Pe),this.onData(this.writer.cdata(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.comment=function(Pe){var Ze;return this.openCurrent(),Ze=new ee(this,Pe),this.onData(this.writer.comment(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.raw=function(Pe){var Ze;return this.openCurrent(),Ze=new we(this,Pe),this.onData(this.writer.raw(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.instruction=function(Pe,Ze){var He,$e,it,Ne,Fe;if(this.openCurrent(),Pe!=null&&(Pe=Ae(Pe)),Ze!=null&&(Ze=Ae(Ze)),Array.isArray(Pe))for(He=0,Ne=Pe.length;He<Ne;He++)$e=Pe[He],this.instruction($e);else if(be(Pe))for($e in Pe)Ie.call(Pe,$e)&&(it=Pe[$e],this.instruction($e,it));else ge(Ze)&&(Ze=Ze.apply()),Fe=new de(this,Pe,Ze),this.onData(this.writer.processingInstruction(Fe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ke.prototype.declaration=function(Pe,Ze,He){var $e;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return $e=new le(this,Pe,Ze,He),this.onData(this.writer.declaration($e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.doctype=function(Pe,Ze,He){if(this.openCurrent(),Pe==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ue(this,Ze,He),this.currentNode.rootNodeName=Pe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ke.prototype.dtdElement=function(Pe,Ze){var He;return this.openCurrent(),He=new E(this,Pe,Ze),this.onData(this.writer.dtdElement(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.attList=function(Pe,Ze,He,$e,it){var Ne;return this.openCurrent(),Ne=new fe(this,Pe,Ze,He,$e,it),this.onData(this.writer.dtdAttList(Ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.entity=function(Pe,Ze){var He;return this.openCurrent(),He=new re(this,!1,Pe,Ze),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.pEntity=function(Pe,Ze){var He;return this.openCurrent(),He=new re(this,!0,Pe,Ze),this.onData(this.writer.dtdEntity(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.notation=function(Pe,Ze){var He;return this.openCurrent(),He=new ne(this,Pe,Ze),this.onData(this.writer.dtdNotation(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},ke.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},ke.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ke.prototype.openNode=function(Pe){var Ze,He,$e,it;if(!Pe.isOpen){if(!this.root&&this.currentLevel===0&&Pe.type===x.Element&&(this.root=Pe),He="",Pe.type===x.Element){this.writerOptions.state=z.OpenTag,He=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"<"+Pe.name,it=Pe.attribs;for($e in it)Ie.call(it,$e)&&(Ze=it[$e],He+=this.writer.attribute(Ze,this.writerOptions,this.currentLevel));He+=(Pe.children?">":"/>")+this.writer.endline(Pe,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,He=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Pe.rootNodeName,Pe.pubID&&Pe.sysID?He+=' PUBLIC "'+Pe.pubID+'" "'+Pe.sysID+'"':Pe.sysID&&(He+=' SYSTEM "'+Pe.sysID+'"'),Pe.children?(He+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,He+=">"),He+=this.writer.endline(Pe,this.writerOptions,this.currentLevel);return this.onData(He,this.currentLevel),Pe.isOpen=!0}},ke.prototype.closeNode=function(Pe){var Ze;if(!Pe.isClosed)return Ze="",this.writerOptions.state=z.CloseTag,Pe.type===x.Element?Ze=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"</"+Pe.name+">"+this.writer.endline(Pe,this.writerOptions,this.currentLevel):Ze=this.writer.indent(Pe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Pe,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(Ze,this.currentLevel),Pe.isClosed=!0},ke.prototype.onData=function(Pe,Ze){return this.documentStarted=!0,this.onDataCallback(Pe,Ze+1)},ke.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ke.prototype.debugInfo=function(Pe){return Pe==null?"":"node: <"+Pe+">"},ke.prototype.ele=function(){return this.element.apply(this,arguments)},ke.prototype.nod=function(Pe,Ze,He){return this.node(Pe,Ze,He)},ke.prototype.txt=function(Pe){return this.text(Pe)},ke.prototype.dat=function(Pe){return this.cdata(Pe)},ke.prototype.com=function(Pe){return this.comment(Pe)},ke.prototype.ins=function(Pe,Ze){return this.instruction(Pe,Ze)},ke.prototype.dec=function(Pe,Ze,He){return this.declaration(Pe,Ze,He)},ke.prototype.dtd=function(Pe,Ze,He){return this.doctype(Pe,Ze,He)},ke.prototype.e=function(Pe,Ze,He){return this.element(Pe,Ze,He)},ke.prototype.n=function(Pe,Ze,He){return this.node(Pe,Ze,He)},ke.prototype.t=function(Pe){return this.text(Pe)},ke.prototype.d=function(Pe){return this.cdata(Pe)},ke.prototype.c=function(Pe){return this.comment(Pe)},ke.prototype.r=function(Pe){return this.raw(Pe)},ke.prototype.i=function(Pe,Ze){return this.instruction(Pe,Ze)},ke.prototype.att=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.a=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.ent=function(Pe,Ze){return this.entity(Pe,Ze)},ke.prototype.pent=function(Pe,Ze){return this.pEntity(Pe,Ze)},ke.prototype.not=function(Pe,Ze){return this.notation(Pe,Ze)},ke}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;se=y("./XMLNode"),x=y("./NodeType"),Ce.exports=z=function(fe){ae(E,fe);function E(re){E.__super__.constructor.call(this,re),this.type=x.Dummy}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return""},E}(se)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re,ne,le=function(he,pe){for(var ve in pe)ue.call(pe,ve)&&(he[ve]=pe[ve]);function de(){this.constructor=he}return de.prototype=pe.prototype,he.prototype=new de,he.__super__=pe.prototype,he},ue={}.hasOwnProperty;ne=y("./Utility"),re=ne.isObject,E=ne.isFunction,fe=ne.getValue,ee=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLAttribute"),ae=y("./XMLNamedNodeMap"),Ce.exports=se=function(he){le(pe,he);function pe(ve,de,we){var Te,je,Me,Ae;if(pe.__super__.constructor.call(this,ve),de==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(de),this.type=x.Element,this.attribs={},this.schemaTypeInfo=null,we!=null&&this.attribute(we),ve.type===x.Document&&(this.isRoot=!0,this.documentObject=ve,ve.rootObject=this,ve.children)){for(Ae=ve.children,je=0,Me=Ae.length;je<Me;je++)if(Te=Ae[je],Te.type===x.DocType){Te.name=this.name;break}}}return Object.defineProperty(pe.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(pe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(pe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new ae(this.attribs)),this.attributeMap}}),pe.prototype.clone=function(){var ve,de,we,Te;we=Object.create(this),we.isRoot&&(we.documentObject=null),we.attribs={},Te=this.attribs;for(de in Te)ue.call(Te,de)&&(ve=Te[de],we.attribs[de]=ve.clone());return we.children=[],this.children.forEach(function(je){var Me;return Me=je.clone(),Me.parent=we,we.children.push(Me)}),we},pe.prototype.attribute=function(ve,de){var we,Te;if(ve!=null&&(ve=fe(ve)),re(ve))for(we in ve)ue.call(ve,we)&&(Te=ve[we],this.attribute(we,Te));else E(de)&&(de=de.apply()),this.options.keepNullAttributes&&de==null?this.attribs[ve]=new z(this,ve,""):de!=null&&(this.attribs[ve]=new z(this,ve,de));return this},pe.prototype.removeAttribute=function(ve){var de,we,Te;if(ve==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ve=fe(ve),Array.isArray(ve))for(we=0,Te=ve.length;we<Te;we++)de=ve[we],delete this.attribs[de];else delete this.attribs[ve];return this},pe.prototype.toString=function(ve){return this.options.writer.element(this,this.options.writer.filterOptions(ve))},pe.prototype.att=function(ve,de){return this.attribute(ve,de)},pe.prototype.a=function(ve,de){return this.attribute(ve,de)},pe.prototype.getAttribute=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].value:null},pe.prototype.setAttribute=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNode=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve]:null},pe.prototype.setAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNS=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNS=function(ve,de,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNS=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNodeNS=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNodeNS=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.hasAttribute=function(ve){return this.attribs.hasOwnProperty(ve)},pe.prototype.hasAttributeNS=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttribute=function(ve,de){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].isId:de},pe.prototype.setIdAttributeNS=function(ve,de,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttributeNode=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(ve,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByClassName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.isEqualNode=function(ve){var de,we,Te;if(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.namespaceURI!==this.namespaceURI||ve.prefix!==this.prefix||ve.localName!==this.localName||ve.attribs.length!==this.attribs.length)return!1;for(de=we=0,Te=this.attribs.length-1;0<=Te?we<=Te:we>=Te;de=0<=Te?++we:--we)if(!this.attribs[de].isEqualNode(ve.attribs[de]))return!1;return!0},pe}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,Ce,ye){(function(){var x;Ce.exports=x=function(){function z(se){this.nodes=se}return Object.defineProperty(z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.getNamedItem=function(se){return this.nodes[se]},z.prototype.setNamedItem=function(se){var ae;return ae=this.nodes[se.nodeName],this.nodes[se.nodeName]=se,ae||null},z.prototype.removeNamedItem=function(se){var ae;return ae=this.nodes[se],delete this.nodes[se],ae||null},z.prototype.item=function(se){return this.nodes[Object.keys(this.nodes)[se]]||null},z.prototype.getNamedItemNS=function(se,ae){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(se){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(se,ae){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re,ne,le,ue,he,pe,ve,de,we,Te,je,Me,Ae={}.hasOwnProperty;Me=y("./Utility"),je=Me.isObject,Te=Me.isFunction,we=Me.isEmpty,de=Me.getValue,re=null,se=null,ae=null,ee=null,fe=null,pe=null,ve=null,he=null,E=null,z=null,ue=null,ne=null,x=null,Ce.exports=le=function(){function ge(be){this.parent=be,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,re||(re=y("./XMLElement"),se=y("./XMLCData"),ae=y("./XMLComment"),ee=y("./XMLDeclaration"),fe=y("./XMLDocType"),pe=y("./XMLRaw"),ve=y("./XMLText"),he=y("./XMLProcessingInstruction"),E=y("./XMLDummy"),z=y("./NodeType"),ue=y("./XMLNodeList"),ne=y("./XMLNamedNodeMap"),x=y("./DocumentPosition"))}return Object.defineProperty(ge.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(ge.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ge.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(ge.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(ge.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ue(this.children)),this.childNodeList}}),Object.defineProperty(ge.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(ge.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(ge.prototype,"previousSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be-1]||null}}),Object.defineProperty(ge.prototype,"nextSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be+1]||null}}),Object.defineProperty(ge.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(ge.prototype,"textContent",{get:function(){var be,Ee,Re,Ie,ke;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(ke="",Ie=this.children,Ee=0,Re=Ie.length;Ee<Re;Ee++)be=Ie[Ee],be.textContent&&(ke+=be.textContent);return ke}else return null},set:function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ge.prototype.setParent=function(be){var Ee,Re,Ie,ke,Pe;for(this.parent=be,be&&(this.options=be.options,this.stringify=be.stringify),ke=this.children,Pe=[],Re=0,Ie=ke.length;Re<Ie;Re++)Ee=ke[Re],Pe.push(Ee.setParent(this));return Pe},ge.prototype.element=function(be,Ee,Re){var Ie,ke,Pe,Ze,He,$e,it,Ne,Fe,qe,rt;if($e=null,Ee===null&&Re==null&&(Fe=[{},null],Ee=Fe[0],Re=Fe[1]),Ee==null&&(Ee={}),Ee=de(Ee),je(Ee)||(qe=[Ee,Re],Re=qe[0],Ee=qe[1]),be!=null&&(be=de(be)),Array.isArray(be))for(Pe=0,it=be.length;Pe<it;Pe++)ke=be[Pe],$e=this.element(ke);else if(Te(be))$e=this.element(be.apply());else if(je(be)){for(He in be)if(Ae.call(be,He))if(rt=be[He],Te(rt)&&(rt=rt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&He.indexOf(this.stringify.convertAttKey)===0)$e=this.attribute(He.substr(this.stringify.convertAttKey.length),rt);else if(!this.options.separateArrayItems&&Array.isArray(rt)&&we(rt))$e=this.dummy();else if(je(rt)&&we(rt))$e=this.element(He);else if(!this.options.keepNullNodes&&rt==null)$e=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(rt))for(Ze=0,Ne=rt.length;Ze<Ne;Ze++)ke=rt[Ze],Ie={},Ie[He]=ke,$e=this.element(Ie);else je(rt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&He.indexOf(this.stringify.convertTextKey)===0?$e=this.element(rt):($e=this.element(He),$e.element(rt)):$e=this.element(He,rt)}else!this.options.keepNullNodes&&Re===null?$e=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&be.indexOf(this.stringify.convertTextKey)===0?$e=this.text(Re):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&be.indexOf(this.stringify.convertCDataKey)===0?$e=this.cdata(Re):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&be.indexOf(this.stringify.convertCommentKey)===0?$e=this.comment(Re):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&be.indexOf(this.stringify.convertRawKey)===0?$e=this.raw(Re):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&be.indexOf(this.stringify.convertPIKey)===0?$e=this.instruction(be.substr(this.stringify.convertPIKey.length),Re):$e=this.node(be,Ee,Re);if($e==null)throw new Error("Could not create any elements with: "+be+". "+this.debugInfo());return $e},ge.prototype.insertBefore=function(be,Ee,Re){var Ie,ke,Pe,Ze,He;if(be!=null&&be.type)return Pe=be,Ze=Ee,Pe.setParent(this),Ze?(ke=children.indexOf(Ze),He=children.splice(ke),children.push(Pe),Array.prototype.push.apply(children,He)):children.push(Pe),Pe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(be));return ke=this.parent.children.indexOf(this),He=this.parent.children.splice(ke),Ie=this.parent.element(be,Ee,Re),Array.prototype.push.apply(this.parent.children,He),Ie},ge.prototype.insertAfter=function(be,Ee,Re){var Ie,ke,Pe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(be));return ke=this.parent.children.indexOf(this),Pe=this.parent.children.splice(ke+1),Ie=this.parent.element(be,Ee,Re),Array.prototype.push.apply(this.parent.children,Pe),Ie},ge.prototype.remove=function(){var be,Ee;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return be=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[be,be-be+1].concat(Ee=[])),this.parent},ge.prototype.node=function(be,Ee,Re){var Ie,ke;return be!=null&&(be=de(be)),Ee||(Ee={}),Ee=de(Ee),je(Ee)||(ke=[Ee,Re],Re=ke[0],Ee=ke[1]),Ie=new re(this,be,Ee),Re!=null&&Ie.text(Re),this.children.push(Ie),Ie},ge.prototype.text=function(be){var Ee;return je(be)&&this.element(be),Ee=new ve(this,be),this.children.push(Ee),this},ge.prototype.cdata=function(be){var Ee;return Ee=new se(this,be),this.children.push(Ee),this},ge.prototype.comment=function(be){var Ee;return Ee=new ae(this,be),this.children.push(Ee),this},ge.prototype.commentBefore=function(be){var Ee,Re,Ie;return Re=this.parent.children.indexOf(this),Ie=this.parent.children.splice(Re),Ee=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Ie),this},ge.prototype.commentAfter=function(be){var Ee,Re,Ie;return Re=this.parent.children.indexOf(this),Ie=this.parent.children.splice(Re+1),Ee=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Ie),this},ge.prototype.raw=function(be){var Ee;return Ee=new pe(this,be),this.children.push(Ee),this},ge.prototype.dummy=function(){var be;return be=new E(this),be},ge.prototype.instruction=function(be,Ee){var Re,Ie,ke,Pe,Ze;if(be!=null&&(be=de(be)),Ee!=null&&(Ee=de(Ee)),Array.isArray(be))for(Pe=0,Ze=be.length;Pe<Ze;Pe++)Re=be[Pe],this.instruction(Re);else if(je(be))for(Re in be)Ae.call(be,Re)&&(Ie=be[Re],this.instruction(Re,Ie));else Te(Ee)&&(Ee=Ee.apply()),ke=new he(this,be,Ee),this.children.push(ke);return this},ge.prototype.instructionBefore=function(be,Ee){var Re,Ie,ke;return Ie=this.parent.children.indexOf(this),ke=this.parent.children.splice(Ie),Re=this.parent.instruction(be,Ee),Array.prototype.push.apply(this.parent.children,ke),this},ge.prototype.instructionAfter=function(be,Ee){var Re,Ie,ke;return Ie=this.parent.children.indexOf(this),ke=this.parent.children.splice(Ie+1),Re=this.parent.instruction(be,Ee),Array.prototype.push.apply(this.parent.children,ke),this},ge.prototype.declaration=function(be,Ee,Re){var Ie,ke;return Ie=this.document(),ke=new ee(Ie,be,Ee,Re),Ie.children.length===0?Ie.children.unshift(ke):Ie.children[0].type===z.Declaration?Ie.children[0]=ke:Ie.children.unshift(ke),Ie.root()||Ie},ge.prototype.dtd=function(be,Ee){var Re,Ie,ke,Pe,Ze,He,$e,it,Ne,Fe;for(Ie=this.document(),ke=new fe(Ie,be,Ee),Ne=Ie.children,Pe=Ze=0,$e=Ne.length;Ze<$e;Pe=++Ze)if(Re=Ne[Pe],Re.type===z.DocType)return Ie.children[Pe]=ke,ke;for(Fe=Ie.children,Pe=He=0,it=Fe.length;He<it;Pe=++He)if(Re=Fe[Pe],Re.isRoot)return Ie.children.splice(Pe,0,ke),ke;return Ie.children.push(ke),ke},ge.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},ge.prototype.root=function(){var be;for(be=this;be;){if(be.type===z.Document)return be.rootObject;if(be.isRoot)return be;be=be.parent}},ge.prototype.document=function(){var be;for(be=this;be;){if(be.type===z.Document)return be;be=be.parent}},ge.prototype.end=function(be){return this.document().end(be)},ge.prototype.prev=function(){var be;if(be=this.parent.children.indexOf(this),be<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[be-1]},ge.prototype.next=function(){var be;if(be=this.parent.children.indexOf(this),be===-1||be===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[be+1]},ge.prototype.importDocument=function(be){var Ee;return Ee=be.root().clone(),Ee.parent=this,Ee.isRoot=!1,this.children.push(Ee),this},ge.prototype.debugInfo=function(be){var Ee,Re;return be=be||this.name,be==null&&!((Ee=this.parent)!=null&&Ee.name)?"":be==null?"parent: <"+this.parent.name+">":(Re=this.parent)!=null&&Re.name?"node: <"+be+">, parent: <"+this.parent.name+">":"node: <"+be+">"},ge.prototype.ele=function(be,Ee,Re){return this.element(be,Ee,Re)},ge.prototype.nod=function(be,Ee,Re){return this.node(be,Ee,Re)},ge.prototype.txt=function(be){return this.text(be)},ge.prototype.dat=function(be){return this.cdata(be)},ge.prototype.com=function(be){return this.comment(be)},ge.prototype.ins=function(be,Ee){return this.instruction(be,Ee)},ge.prototype.doc=function(){return this.document()},ge.prototype.dec=function(be,Ee,Re){return this.declaration(be,Ee,Re)},ge.prototype.e=function(be,Ee,Re){return this.element(be,Ee,Re)},ge.prototype.n=function(be,Ee,Re){return this.node(be,Ee,Re)},ge.prototype.t=function(be){return this.text(be)},ge.prototype.d=function(be){return this.cdata(be)},ge.prototype.c=function(be){return this.comment(be)},ge.prototype.r=function(be){return this.raw(be)},ge.prototype.i=function(be,Ee){return this.instruction(be,Ee)},ge.prototype.u=function(){return this.up()},ge.prototype.importXMLBuilder=function(be){return this.importDocument(be)},ge.prototype.replaceChild=function(be,Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.removeChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.appendChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.hasChildNodes=function(){return this.children.length!==0},ge.prototype.cloneNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.isSupported=function(be,Ee){return!0},ge.prototype.hasAttributes=function(){return this.attribs.length!==0},ge.prototype.compareDocumentPosition=function(be){var Ee,Re;return Ee=this,Ee===be?0:this.document()!==be.document()?(Re=x.Disconnected|x.ImplementationSpecific,Math.random()<.5?Re|=x.Preceding:Re|=x.Following,Re):Ee.isAncestor(be)?x.Contains|x.Preceding:Ee.isDescendant(be)?x.Contains|x.Following:Ee.isPreceding(be)?x.Preceding:x.Following},ge.prototype.isSameNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.lookupPrefix=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.isDefaultNamespace=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.lookupNamespaceURI=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.isEqualNode=function(be){var Ee,Re,Ie;if(be.nodeType!==this.nodeType||be.children.length!==this.children.length)return!1;for(Ee=Re=0,Ie=this.children.length-1;0<=Ie?Re<=Ie:Re>=Ie;Ee=0<=Ie?++Re:--Re)if(!this.children[Ee].isEqualNode(be.children[Ee]))return!1;return!0},ge.prototype.getFeature=function(be,Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.setUserData=function(be,Ee,Re){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.getUserData=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ge.prototype.contains=function(be){return be?be===this||this.isDescendant(be):!1},ge.prototype.isDescendant=function(be){var Ee,Re,Ie,ke,Pe;for(Pe=this.children,Ie=0,ke=Pe.length;Ie<ke;Ie++)if(Ee=Pe[Ie],be===Ee||(Re=Ee.isDescendant(be),Re))return!0;return!1},ge.prototype.isAncestor=function(be){return be.isDescendant(this)},ge.prototype.isPreceding=function(be){var Ee,Re;return Ee=this.treePosition(be),Re=this.treePosition(this),Ee===-1||Re===-1?!1:Ee<Re},ge.prototype.isFollowing=function(be){var Ee,Re;return Ee=this.treePosition(be),Re=this.treePosition(this),Ee===-1||Re===-1?!1:Ee>Re},ge.prototype.treePosition=function(be){var Ee,Re;return Re=0,Ee=!1,this.foreachTreeNode(this.document(),function(Ie){if(Re++,!Ee&&Ie===be)return Ee=!0}),Ee?Re:-1},ge.prototype.foreachTreeNode=function(be,Ee){var Re,Ie,ke,Pe,Ze;for(be||(be=this.document()),Pe=be.children,Ie=0,ke=Pe.length;Ie<ke;Ie++){if(Re=Pe[Ie],Ze=Ee(Re))return Ze;if(Ze=this.foreachTreeNode(Re,Ee),Ze)return Ze}},ge}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(y,Ce,ye){(function(){var x;Ce.exports=x=function(){function z(se){this.nodes=se}return Object.defineProperty(z.prototype,"length",{get:function(){return this.nodes.length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.item=function(se){return this.nodes[se]||null},z}()}).call(this)},{}],452:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),Ce.exports=se=function(fe){ae(E,fe);function E(re,ne,le){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=x.ProcessingInstruction,this.target=this.stringify.insTarget(ne),this.name=this.target,le&&(this.value=this.stringify.insValue(le))}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(re))},E.prototype.isEqualNode=function(re){return!(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(re)||re.target!==this.target)},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLNode"),Ce.exports=se=function(fe){ae(E,fe);function E(re,ne){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=x.Raw,this.value=this.stringify.raw(ne)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.raw(this,this.options.writer.filterOptions(re))},E}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,Ce,ye){(function(){var x,z,se,ae,ee=function(E,re){for(var ne in re)fe.call(re,ne)&&(E[ne]=re[ne]);function le(){this.constructor=E}return le.prototype=re.prototype,E.prototype=new le,E.__super__=re.prototype,E},fe={}.hasOwnProperty;x=y("./NodeType"),ae=y("./XMLWriterBase"),z=y("./WriterState"),Ce.exports=se=function(E){ee(re,E);function re(ne,le){this.stream=ne,re.__super__.constructor.call(this,le)}return re.prototype.endline=function(ne,le,ue){return ne.isLastRootNode&&le.state===z.CloseTag?"":re.__super__.endline.call(this,ne,le,ue)},re.prototype.document=function(ne,le){var ue,he,pe,ve,de,we,Te,je,Me;for(Te=ne.children,he=pe=0,de=Te.length;pe<de;he=++pe)ue=Te[he],ue.isLastRootNode=he===ne.children.length-1;for(le=this.filterOptions(le),je=ne.children,Me=[],ve=0,we=je.length;ve<we;ve++)ue=je[ve],Me.push(this.writeChildNode(ue,le,0));return Me},re.prototype.attribute=function(ne,le,ue){return this.stream.write(re.__super__.attribute.call(this,ne,le,ue))},re.prototype.cdata=function(ne,le,ue){return this.stream.write(re.__super__.cdata.call(this,ne,le,ue))},re.prototype.comment=function(ne,le,ue){return this.stream.write(re.__super__.comment.call(this,ne,le,ue))},re.prototype.declaration=function(ne,le,ue){return this.stream.write(re.__super__.declaration.call(this,ne,le,ue))},re.prototype.docType=function(ne,le,ue){var he,pe,ve,de;if(ue||(ue=0),this.openNode(ne,le,ue),le.state=z.OpenTag,this.stream.write(this.indent(ne,le,ue)),this.stream.write("<!DOCTYPE "+ne.root().name),ne.pubID&&ne.sysID?this.stream.write(' PUBLIC "'+ne.pubID+'" "'+ne.sysID+'"'):ne.sysID&&this.stream.write(' SYSTEM "'+ne.sysID+'"'),ne.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(ne,le,ue)),le.state=z.InsideTag,de=ne.children,pe=0,ve=de.length;pe<ve;pe++)he=de[pe],this.writeChildNode(he,le,ue+1);le.state=z.CloseTag,this.stream.write("]")}return le.state=z.CloseTag,this.stream.write(le.spaceBeforeSlash+">"),this.stream.write(this.endline(ne,le,ue)),le.state=z.None,this.closeNode(ne,le,ue)},re.prototype.element=function(ne,le,ue){var he,pe,ve,de,we,Te,je,Me,Ae,ge;ue||(ue=0),this.openNode(ne,le,ue),le.state=z.OpenTag,this.stream.write(this.indent(ne,le,ue)+"<"+ne.name),Ae=ne.attribs;for(je in Ae)fe.call(Ae,je)&&(he=Ae[je],this.attribute(he,le,ue));if(ve=ne.children.length,de=ve===0?null:ne.children[0],ve===0||ne.children.every(function(be){return(be.type===x.Text||be.type===x.Raw)&&be.value===""}))le.allowEmpty?(this.stream.write(">"),le.state=z.CloseTag,this.stream.write("</"+ne.name+">")):(le.state=z.CloseTag,this.stream.write(le.spaceBeforeSlash+"/>"));else if(le.pretty&&ve===1&&(de.type===x.Text||de.type===x.Raw)&&de.value!=null)this.stream.write(">"),le.state=z.InsideTag,le.suppressPrettyCount++,Me=!0,this.writeChildNode(de,le,ue+1),le.suppressPrettyCount--,Me=!1,le.state=z.CloseTag,this.stream.write("</"+ne.name+">");else{for(this.stream.write(">"+this.endline(ne,le,ue)),le.state=z.InsideTag,ge=ne.children,we=0,Te=ge.length;we<Te;we++)pe=ge[we],this.writeChildNode(pe,le,ue+1);le.state=z.CloseTag,this.stream.write(this.indent(ne,le,ue)+"</"+ne.name+">")}return this.stream.write(this.endline(ne,le,ue)),le.state=z.None,this.closeNode(ne,le,ue)},re.prototype.processingInstruction=function(ne,le,ue){return this.stream.write(re.__super__.processingInstruction.call(this,ne,le,ue))},re.prototype.raw=function(ne,le,ue){return this.stream.write(re.__super__.raw.call(this,ne,le,ue))},re.prototype.text=function(ne,le,ue){return this.stream.write(re.__super__.text.call(this,ne,le,ue))},re.prototype.dtdAttList=function(ne,le,ue){return this.stream.write(re.__super__.dtdAttList.call(this,ne,le,ue))},re.prototype.dtdElement=function(ne,le,ue){return this.stream.write(re.__super__.dtdElement.call(this,ne,le,ue))},re.prototype.dtdEntity=function(ne,le,ue){return this.stream.write(re.__super__.dtdEntity.call(this,ne,le,ue))},re.prototype.dtdNotation=function(ne,le,ue){return this.stream.write(re.__super__.dtdNotation.call(this,ne,le,ue))},re}(ae)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,Ce,ye){(function(){var x,z,se=function(ee,fe){for(var E in fe)ae.call(fe,E)&&(ee[E]=fe[E]);function re(){this.constructor=ee}return re.prototype=fe.prototype,ee.prototype=new re,ee.__super__=fe.prototype,ee},ae={}.hasOwnProperty;z=y("./XMLWriterBase"),Ce.exports=x=function(ee){se(fe,ee);function fe(E){fe.__super__.constructor.call(this,E)}return fe.prototype.document=function(E,re){var ne,le,ue,he,pe;for(re=this.filterOptions(re),he="",pe=E.children,le=0,ue=pe.length;le<ue;le++)ne=pe[le],he+=this.writeChildNode(ne,re,0);return re.pretty&&he.slice(-re.newline.length)===re.newline&&(he=he.slice(0,-re.newline.length)),he},fe}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,Ce,ye){(function(){var x,z=function(ae,ee){return function(){return ae.apply(ee,arguments)}},se={}.hasOwnProperty;Ce.exports=x=function(){function ae(ee){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var fe,E,re;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),E=ee.stringify||{};for(fe in E)se.call(E,fe)&&(re=E[fe],this[fe]=re)}return ae.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},ae.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},ae.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},ae.prototype.comment=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ee);return this.assertLegalChar(ee)},ae.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},ae.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},ae.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.insValue=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/\?>/))throw new Error("Invalid processing instruction value: "+ee);return this.assertLegalChar(ee)},ae.prototype.xmlVersion=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ee);return ee},ae.prototype.xmlEncoding=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ee);return this.assertLegalChar(ee)},ae.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},ae.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ae.prototype.convertAttKey="@",ae.prototype.convertPIKey="?",ae.prototype.convertTextKey="#text",ae.prototype.convertCDataKey="#cdata",ae.prototype.convertCommentKey="#comment",ae.prototype.convertRawKey="#raw",ae.prototype.assertLegalChar=function(ee){var fe,E;if(this.options.noValidation)return ee;if(fe="",this.options.version==="1.0"){if(fe=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(fe))throw new Error("Invalid character in string: "+ee+" at index "+E.index)}else if(this.options.version==="1.1"&&(fe=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(fe)))throw new Error("Invalid character in string: "+ee+" at index "+E.index);return ee},ae.prototype.assertLegalName=function(ee){var fe;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),fe=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ee.match(fe))throw new Error("Invalid character in name");return ee},ae.prototype.textEscape=function(ee){var fe;return this.options.noValidation?ee:(fe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(fe,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},ae.prototype.attEscape=function(ee){var fe;return this.options.noValidation?ee:(fe=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(fe,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},ae}()}).call(this)},{}],457:[function(y,Ce,ye){(function(){var x,z,se,ae=function(fe,E){for(var re in E)ee.call(E,re)&&(fe[re]=E[re]);function ne(){this.constructor=fe}return ne.prototype=E.prototype,fe.prototype=new ne,fe.__super__=E.prototype,fe},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),Ce.exports=se=function(fe){ae(E,fe);function E(re,ne){if(E.__super__.constructor.call(this,re),ne==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=x.Text,this.value=this.stringify.text(ne)}return Object.defineProperty(E.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"wholeText",{get:function(){var re,ne,le;for(le="",ne=this.previousSibling;ne;)le=ne.data+le,ne=ne.previousSibling;for(le+=this.data,re=this.nextSibling;re;)le=le+re.data,re=re.nextSibling;return le}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(re){return this.options.writer.text(this,this.options.writer.filterOptions(re))},E.prototype.splitText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceWholeText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re,ne,le,ue,he,pe,ve,de,we,Te,je={}.hasOwnProperty;Te=y("./Utility").assign,x=y("./NodeType"),ne=y("./XMLDeclaration"),le=y("./XMLDocType"),se=y("./XMLCData"),ae=y("./XMLComment"),he=y("./XMLElement"),ve=y("./XMLRaw"),de=y("./XMLText"),pe=y("./XMLProcessingInstruction"),ue=y("./XMLDummy"),ee=y("./XMLDTDAttList"),fe=y("./XMLDTDElement"),E=y("./XMLDTDEntity"),re=y("./XMLDTDNotation"),z=y("./WriterState"),Ce.exports=we=function(){function Me(Ae){var ge,be,Ee;Ae||(Ae={}),this.options=Ae,be=Ae.writer||{};for(ge in be)je.call(be,ge)&&(Ee=be[ge],this["_"+ge]=this[ge],this[ge]=Ee)}return Me.prototype.filterOptions=function(Ae){var ge,be,Ee,Re,Ie,ke,Pe,Ze;return Ae||(Ae={}),Ae=Te({},this.options,Ae),ge={writer:this},ge.pretty=Ae.pretty||!1,ge.allowEmpty=Ae.allowEmpty||!1,ge.indent=(be=Ae.indent)!=null?be:" ",ge.newline=(Ee=Ae.newline)!=null?Ee:`
`,ge.offset=(Re=Ae.offset)!=null?Re:0,ge.dontPrettyTextNodes=(Ie=(ke=Ae.dontPrettyTextNodes)!=null?ke:Ae.dontprettytextnodes)!=null?Ie:0,ge.spaceBeforeSlash=(Pe=(Ze=Ae.spaceBeforeSlash)!=null?Ze:Ae.spacebeforeslash)!=null?Pe:"",ge.spaceBeforeSlash===!0&&(ge.spaceBeforeSlash=" "),ge.suppressPrettyCount=0,ge.user={},ge.state=z.None,ge},Me.prototype.indent=function(Ae,ge,be){var Ee;return!ge.pretty||ge.suppressPrettyCount?"":ge.pretty&&(Ee=(be||0)+ge.offset+1,Ee>0)?new Array(Ee).join(ge.indent):""},Me.prototype.endline=function(Ae,ge,be){return!ge.pretty||ge.suppressPrettyCount?"":ge.newline},Me.prototype.attribute=function(Ae,ge,be){var Ee;return this.openAttribute(Ae,ge,be),Ee=" "+Ae.name+'="'+Ae.value+'"',this.closeAttribute(Ae,ge,be),Ee},Me.prototype.cdata=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<![CDATA[",ge.state=z.InsideTag,Ee+=Ae.value,ge.state=z.CloseTag,Ee+="]]>"+this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.comment=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<!-- ",ge.state=z.InsideTag,Ee+=Ae.value,ge.state=z.CloseTag,Ee+=" -->"+this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.declaration=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<?xml",ge.state=z.InsideTag,Ee+=' version="'+Ae.version+'"',Ae.encoding!=null&&(Ee+=' encoding="'+Ae.encoding+'"'),Ae.standalone!=null&&(Ee+=' standalone="'+Ae.standalone+'"'),ge.state=z.CloseTag,Ee+=ge.spaceBeforeSlash+"?>",Ee+=this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.docType=function(Ae,ge,be){var Ee,Re,Ie,ke,Pe;if(be||(be=0),this.openNode(Ae,ge,be),ge.state=z.OpenTag,ke=this.indent(Ae,ge,be),ke+="<!DOCTYPE "+Ae.root().name,Ae.pubID&&Ae.sysID?ke+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(ke+=' SYSTEM "'+Ae.sysID+'"'),Ae.children.length>0){for(ke+=" [",ke+=this.endline(Ae,ge,be),ge.state=z.InsideTag,Pe=Ae.children,Re=0,Ie=Pe.length;Re<Ie;Re++)Ee=Pe[Re],ke+=this.writeChildNode(Ee,ge,be+1);ge.state=z.CloseTag,ke+="]"}return ge.state=z.CloseTag,ke+=ge.spaceBeforeSlash+">",ke+=this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),ke},Me.prototype.element=function(Ae,ge,be){var Ee,Re,Ie,ke,Pe,Ze,He,$e,it,Ne,Fe,qe,rt,tt;be||(be=0),Ne=!1,Fe="",this.openNode(Ae,ge,be),ge.state=z.OpenTag,Fe+=this.indent(Ae,ge,be)+"<"+Ae.name,qe=Ae.attribs;for(it in qe)je.call(qe,it)&&(Ee=qe[it],Fe+=this.attribute(Ee,ge,be));if(Ie=Ae.children.length,ke=Ie===0?null:Ae.children[0],Ie===0||Ae.children.every(function(Ve){return(Ve.type===x.Text||Ve.type===x.Raw)&&Ve.value===""}))ge.allowEmpty?(Fe+=">",ge.state=z.CloseTag,Fe+="</"+Ae.name+">"+this.endline(Ae,ge,be)):(ge.state=z.CloseTag,Fe+=ge.spaceBeforeSlash+"/>"+this.endline(Ae,ge,be));else if(ge.pretty&&Ie===1&&(ke.type===x.Text||ke.type===x.Raw)&&ke.value!=null)Fe+=">",ge.state=z.InsideTag,ge.suppressPrettyCount++,Ne=!0,Fe+=this.writeChildNode(ke,ge,be+1),ge.suppressPrettyCount--,Ne=!1,ge.state=z.CloseTag,Fe+="</"+Ae.name+">"+this.endline(Ae,ge,be);else{if(ge.dontPrettyTextNodes){for(rt=Ae.children,Pe=0,He=rt.length;Pe<He;Pe++)if(Re=rt[Pe],(Re.type===x.Text||Re.type===x.Raw)&&Re.value!=null){ge.suppressPrettyCount++,Ne=!0;break}}for(Fe+=">"+this.endline(Ae,ge,be),ge.state=z.InsideTag,tt=Ae.children,Ze=0,$e=tt.length;Ze<$e;Ze++)Re=tt[Ze],Fe+=this.writeChildNode(Re,ge,be+1);ge.state=z.CloseTag,Fe+=this.indent(Ae,ge,be)+"</"+Ae.name+">",Ne&&ge.suppressPrettyCount--,Fe+=this.endline(Ae,ge,be),ge.state=z.None}return this.closeNode(Ae,ge,be),Fe},Me.prototype.writeChildNode=function(Ae,ge,be){switch(Ae.type){case x.CData:return this.cdata(Ae,ge,be);case x.Comment:return this.comment(Ae,ge,be);case x.Element:return this.element(Ae,ge,be);case x.Raw:return this.raw(Ae,ge,be);case x.Text:return this.text(Ae,ge,be);case x.ProcessingInstruction:return this.processingInstruction(Ae,ge,be);case x.Dummy:return"";case x.Declaration:return this.declaration(Ae,ge,be);case x.DocType:return this.docType(Ae,ge,be);case x.AttributeDeclaration:return this.dtdAttList(Ae,ge,be);case x.ElementDeclaration:return this.dtdElement(Ae,ge,be);case x.EntityDeclaration:return this.dtdEntity(Ae,ge,be);case x.NotationDeclaration:return this.dtdNotation(Ae,ge,be);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}},Me.prototype.processingInstruction=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<?",ge.state=z.InsideTag,Ee+=Ae.target,Ae.value&&(Ee+=" "+Ae.value),ge.state=z.CloseTag,Ee+=ge.spaceBeforeSlash+"?>",Ee+=this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.raw=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be),ge.state=z.InsideTag,Ee+=Ae.value,ge.state=z.CloseTag,Ee+=this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.text=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be),ge.state=z.InsideTag,Ee+=Ae.value,ge.state=z.CloseTag,Ee+=this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.dtdAttList=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<!ATTLIST",ge.state=z.InsideTag,Ee+=" "+Ae.elementName+" "+Ae.attributeName+" "+Ae.attributeType,Ae.defaultValueType!=="#DEFAULT"&&(Ee+=" "+Ae.defaultValueType),Ae.defaultValue&&(Ee+=' "'+Ae.defaultValue+'"'),ge.state=z.CloseTag,Ee+=ge.spaceBeforeSlash+">"+this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.dtdElement=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<!ELEMENT",ge.state=z.InsideTag,Ee+=" "+Ae.name+" "+Ae.value,ge.state=z.CloseTag,Ee+=ge.spaceBeforeSlash+">"+this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.dtdEntity=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<!ENTITY",ge.state=z.InsideTag,Ae.pe&&(Ee+=" %"),Ee+=" "+Ae.name,Ae.value?Ee+=' "'+Ae.value+'"':(Ae.pubID&&Ae.sysID?Ee+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Ee+=' SYSTEM "'+Ae.sysID+'"'),Ae.nData&&(Ee+=" NDATA "+Ae.nData)),ge.state=z.CloseTag,Ee+=ge.spaceBeforeSlash+">"+this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.dtdNotation=function(Ae,ge,be){var Ee;return this.openNode(Ae,ge,be),ge.state=z.OpenTag,Ee=this.indent(Ae,ge,be)+"<!NOTATION",ge.state=z.InsideTag,Ee+=" "+Ae.name,Ae.pubID&&Ae.sysID?Ee+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.pubID?Ee+=' PUBLIC "'+Ae.pubID+'"':Ae.sysID&&(Ee+=' SYSTEM "'+Ae.sysID+'"'),ge.state=z.CloseTag,Ee+=ge.spaceBeforeSlash+">"+this.endline(Ae,ge,be),ge.state=z.None,this.closeNode(Ae,ge,be),Ee},Me.prototype.openNode=function(Ae,ge,be){},Me.prototype.closeNode=function(Ae,ge,be){},Me.prototype.openAttribute=function(Ae,ge,be){},Me.prototype.closeAttribute=function(Ae,ge,be){},Me}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(y,Ce,ye){(function(){var x,z,se,ae,ee,fe,E,re,ne,le;le=y("./Utility"),re=le.assign,ne=le.isFunction,se=y("./XMLDOMImplementation"),ae=y("./XMLDocument"),ee=y("./XMLDocumentCB"),E=y("./XMLStringWriter"),fe=y("./XMLStreamWriter"),x=y("./NodeType"),z=y("./WriterState"),Ce.exports.create=function(ue,he,pe,ve){var de,we;if(ue==null)throw new Error("Root element needs a name.");return ve=re({},he,pe,ve),de=new ae(ve),we=de.element(ue),ve.headless||(de.declaration(ve),(ve.pubID!=null||ve.sysID!=null)&&de.dtd(ve)),we},Ce.exports.begin=function(ue,he,pe){var ve;return ne(ue)&&(ve=[ue,he],he=ve[0],pe=ve[1],ue={}),he?new ee(ue,he,pe):new ae(ue)},Ce.exports.stringWriter=function(ue){return new E(ue)},Ce.exports.streamWriter=function(ue,he){return new fe(ue,he)},Ce.exports.implementation=new se,Ce.exports.nodeType=x,Ce.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,Ce,ye){Ce.exports=z;var x=Object.prototype.hasOwnProperty;function z(){for(var se={},ae=0;ae<arguments.length;ae++){var ee=arguments[ae];for(var fe in ee)x.call(ee,fe)&&(se[fe]=ee[fe])}return se}},{}],461:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.slice.js");var x=y("buffer").Buffer,z=y("./sha"),se=y("./md5"),ae={sha1:z,md5:se},ee=64,fe=x.alloc(ee);fe.fill(0);function E(le,ue,he){x.isBuffer(ue)||(ue=x.from(ue)),x.isBuffer(he)||(he=x.from(he)),ue.length>ee?ue=le(ue):ue.length<ee&&(ue=x.concat([ue,fe],ee));for(var pe=x.alloc(ee),ve=x.alloc(ee),de=0;de<ee;de++)pe[de]=ue[de]^54,ve[de]=ue[de]^92;var we=le(x.concat([pe,he]));return le(x.concat([ve,we]))}function re(le,ue){le=le||"sha1";var he=ae[le],pe=[],ve=0;return he||ne("algorithm:",le,"is not yet supported"),{update:function(we){return x.isBuffer(we)||(we=x.from(we)),pe.push(we),ve+=we.length,this},digest:function(we){var Te=x.concat(pe),je=ue?E(he,ue,Te):he(Te);return pe=null,we?je.toString(we):je}}}function ne(){var le=[].slice.call(arguments).join(" ");throw new Error([le,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}ye.createHash=function(le){return re(le)},ye.createHmac=function(le,ue){return re(le,ue)},ye.createCredentials=function(){ne("sorry,createCredentials is not implemented yet")},ye.createCipher=function(){ne("sorry,createCipher is not implemented yet")},ye.createCipheriv=function(){ne("sorry,createCipheriv is not implemented yet")},ye.createDecipher=function(){ne("sorry,createDecipher is not implemented yet")},ye.createDecipheriv=function(){ne("sorry,createDecipheriv is not implemented yet")},ye.createSign=function(){ne("sorry,createSign is not implemented yet")},ye.createVerify=function(){ne("sorry,createVerify is not implemented yet")},ye.createDiffieHellman=function(){ne("sorry,createDiffieHellman is not implemented yet")},ye.pbkdf2=function(){ne("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(y,Ce,ye){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js");var x=y("buffer").Buffer,z=4,se=x.alloc(z);se.fill(0);var ae=8;function ee(re,ne){if(re.length%z!==0){var le=re.length+(z-re.length%z);re=x.concat([re,se],le)}for(var ue=[],he=ne?re.readInt32BE:re.readInt32LE,pe=0;pe<re.length;pe+=z)ue.push(he.call(re,pe));return ue}function fe(re,ne,le){for(var ue=x.alloc(ne),he=le?ue.writeInt32BE:ue.writeInt32LE,pe=0;pe<re.length;pe++)he.call(ue,re[pe],pe*4,!0);return ue}function E(re,ne,le,ue){x.isBuffer(re)||(re=x.from(re));var he=ne(ee(re,ue),re.length*ae);return fe(he,le,ue)}Ce.exports={hash:E}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,Ce,ye){"use strict";var x=y("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function se(ue,he){ue[he>>5]|=128<<he%32,ue[(he+64>>>9<<4)+14]=he;for(var pe=1732584193,ve=-271733879,de=-1732584194,we=271733878,Te=0;Te<ue.length;Te+=16){var je=pe,Me=ve,Ae=de,ge=we;pe=ee(pe,ve,de,we,ue[Te+0],7,-680876936),we=ee(we,pe,ve,de,ue[Te+1],12,-389564586),de=ee(de,we,pe,ve,ue[Te+2],17,606105819),ve=ee(ve,de,we,pe,ue[Te+3],22,-1044525330),pe=ee(pe,ve,de,we,ue[Te+4],7,-176418897),we=ee(we,pe,ve,de,ue[Te+5],12,1200080426),de=ee(de,we,pe,ve,ue[Te+6],17,-1473231341),ve=ee(ve,de,we,pe,ue[Te+7],22,-45705983),pe=ee(pe,ve,de,we,ue[Te+8],7,1770035416),we=ee(we,pe,ve,de,ue[Te+9],12,-1958414417),de=ee(de,we,pe,ve,ue[Te+10],17,-42063),ve=ee(ve,de,we,pe,ue[Te+11],22,-1990404162),pe=ee(pe,ve,de,we,ue[Te+12],7,1804603682),we=ee(we,pe,ve,de,ue[Te+13],12,-40341101),de=ee(de,we,pe,ve,ue[Te+14],17,-1502002290),ve=ee(ve,de,we,pe,ue[Te+15],22,1236535329),pe=fe(pe,ve,de,we,ue[Te+1],5,-165796510),we=fe(we,pe,ve,de,ue[Te+6],9,-1069501632),de=fe(de,we,pe,ve,ue[Te+11],14,643717713),ve=fe(ve,de,we,pe,ue[Te+0],20,-373897302),pe=fe(pe,ve,de,we,ue[Te+5],5,-701558691),we=fe(we,pe,ve,de,ue[Te+10],9,38016083),de=fe(de,we,pe,ve,ue[Te+15],14,-660478335),ve=fe(ve,de,we,pe,ue[Te+4],20,-405537848),pe=fe(pe,ve,de,we,ue[Te+9],5,568446438),we=fe(we,pe,ve,de,ue[Te+14],9,-1019803690),de=fe(de,we,pe,ve,ue[Te+3],14,-187363961),ve=fe(ve,de,we,pe,ue[Te+8],20,1163531501),pe=fe(pe,ve,de,we,ue[Te+13],5,-1444681467),we=fe(we,pe,ve,de,ue[Te+2],9,-51403784),de=fe(de,we,pe,ve,ue[Te+7],14,1735328473),ve=fe(ve,de,we,pe,ue[Te+12],20,-1926607734),pe=E(pe,ve,de,we,ue[Te+5],4,-378558),we=E(we,pe,ve,de,ue[Te+8],11,-2022574463),de=E(de,we,pe,ve,ue[Te+11],16,1839030562),ve=E(ve,de,we,pe,ue[Te+14],23,-35309556),pe=E(pe,ve,de,we,ue[Te+1],4,-1530992060),we=E(we,pe,ve,de,ue[Te+4],11,1272893353),de=E(de,we,pe,ve,ue[Te+7],16,-155497632),ve=E(ve,de,we,pe,ue[Te+10],23,-1094730640),pe=E(pe,ve,de,we,ue[Te+13],4,681279174),we=E(we,pe,ve,de,ue[Te+0],11,-358537222),de=E(de,we,pe,ve,ue[Te+3],16,-722521979),ve=E(ve,de,we,pe,ue[Te+6],23,76029189),pe=E(pe,ve,de,we,ue[Te+9],4,-640364487),we=E(we,pe,ve,de,ue[Te+12],11,-421815835),de=E(de,we,pe,ve,ue[Te+15],16,530742520),ve=E(ve,de,we,pe,ue[Te+2],23,-995338651),pe=re(pe,ve,de,we,ue[Te+0],6,-198630844),we=re(we,pe,ve,de,ue[Te+7],10,1126891415),de=re(de,we,pe,ve,ue[Te+14],15,-1416354905),ve=re(ve,de,we,pe,ue[Te+5],21,-57434055),pe=re(pe,ve,de,we,ue[Te+12],6,1700485571),we=re(we,pe,ve,de,ue[Te+3],10,-1894986606),de=re(de,we,pe,ve,ue[Te+10],15,-1051523),ve=re(ve,de,we,pe,ue[Te+1],21,-2054922799),pe=re(pe,ve,de,we,ue[Te+8],6,1873313359),we=re(we,pe,ve,de,ue[Te+15],10,-30611744),de=re(de,we,pe,ve,ue[Te+6],15,-1560198380),ve=re(ve,de,we,pe,ue[Te+13],21,1309151649),pe=re(pe,ve,de,we,ue[Te+4],6,-145523070),we=re(we,pe,ve,de,ue[Te+11],10,-1120210379),de=re(de,we,pe,ve,ue[Te+2],15,718787259),ve=re(ve,de,we,pe,ue[Te+9],21,-343485551),pe=ne(pe,je),ve=ne(ve,Me),de=ne(de,Ae),we=ne(we,ge)}return Array(pe,ve,de,we)}function ae(ue,he,pe,ve,de,we){return ne(le(ne(ne(he,ue),ne(ve,we)),de),pe)}function ee(ue,he,pe,ve,de,we,Te){return ae(he&pe|~he&ve,ue,he,de,we,Te)}function fe(ue,he,pe,ve,de,we,Te){return ae(he&ve|pe&~ve,ue,he,de,we,Te)}function E(ue,he,pe,ve,de,we,Te){return ae(he^pe^ve,ue,he,de,we,Te)}function re(ue,he,pe,ve,de,we,Te){return ae(pe^(he|~ve),ue,he,de,we,Te)}function ne(ue,he){var pe=(ue&65535)+(he&65535),ve=(ue>>16)+(he>>16)+(pe>>16);return ve<<16|pe&65535}function le(ue,he){return ue<<he|ue>>>32-he}Ce.exports=function(he){return x.hash(he,se,16)}},{"./helpers":462}],464:[function(y,Ce,ye){"use strict";var x=y("./helpers");function z(E,re){E[re>>5]|=128<<24-re%32,E[(re+64>>9<<4)+15]=re;for(var ne=Array(80),le=1732584193,ue=-271733879,he=-1732584194,pe=271733878,ve=-1009589776,de=0;de<E.length;de+=16){for(var we=le,Te=ue,je=he,Me=pe,Ae=ve,ge=0;ge<80;ge++){ge<16?ne[ge]=E[de+ge]:ne[ge]=fe(ne[ge-3]^ne[ge-8]^ne[ge-14]^ne[ge-16],1);var be=ee(ee(fe(le,5),se(ge,ue,he,pe)),ee(ee(ve,ne[ge]),ae(ge)));ve=pe,pe=he,he=fe(ue,30),ue=le,le=be}le=ee(le,we),ue=ee(ue,Te),he=ee(he,je),pe=ee(pe,Me),ve=ee(ve,Ae)}return Array(le,ue,he,pe,ve)}function se(E,re,ne,le){return E<20?re&ne|~re&le:E<40?re^ne^le:E<60?re&ne|re&le|ne&le:re^ne^le}function ae(E){return E<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514}function ee(E,re){var ne=(E&65535)+(re&65535),le=(E>>16)+(re>>16)+(ne>>16);return le<<16|ne&65535}function fe(E,re){return E<<re|E>>>32-re}Ce.exports=function(re){return x.hash(re,z,20,!0)}},{"./helpers":462}],465:[function(y,Ce,ye){"use strict";Ce.exports=function(){return function(){}}},{}],466:[function(y,Ce,ye){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),se=z(y("@babel/runtime/helpers/typeof")),ae=y("stream"),ee=ae.Stream,fe=y("../lib/common/utils/isArray"),E=fe.isArray;Ce.exports.string=function(le){return typeof le=="string"},Ce.exports.array=E,Ce.exports.buffer=x.isBuffer;function re(ne){return ne instanceof ee}Ce.exports.writableStream=function(le){return re(le)&&typeof le._write=="function"&&(0,se.default)(le._writableState)==="object"}}).call(this)}).call(this,{isBuffer:y("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(y,Ce,ye){"use strict";var x=y("immediate"),z=Ce.exports={};z.nextTick=x,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function se(){}z.on=se,z.addListener=se,z.once=se,z.off=se,z.removeListener=se,z.removeAllListeners=se,z.emit=se,z.prependListener=se,z.prependOnceListener=se,z.listeners=function(ae){return[]},z.binding=function(ae){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(ae){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(y,Ce,ye){(function(x){(function(){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js");var z=y("./lib/request"),se=y("./lib/response"),ae=y("xtend"),ee=y("builtin-status-codes"),fe=y("url"),E=ye;E.request=function(re,ne){typeof re=="string"?re=fe.parse(re):re=ae(re);var le=x.location.protocol.search(/^https?:$/)===-1?"http:":"",ue=re.protocol||le,he=re.hostname||re.host,pe=re.port,ve=re.path||"/";he&&he.indexOf(":")!==-1&&(he="["+he+"]"),re.url=(he?ue+"//"+he:"")+(pe?":"+pe:"")+ve,re.method=(re.method||"GET").toUpperCase(),re.headers=re.headers||{};var de=new z(re);return ne&&de.on("response",ne),de},E.get=function(ne,le){var ue=E.request(ne,le);return ue.end(),ue},E.ClientRequest=z,E.IncomingMessage=se.IncomingMessage,E.Agent=function(){},E.Agent.defaultMaxSockets=4,E.globalAgent=new E.Agent,E.STATUS_CODES=ee,E.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(y,Ce,ye){(function(x){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array-buffer.constructor.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.array.slice.js"),ye.fetch=E(x.fetch)&&E(x.ReadableStream),ye.writableStream=E(x.WritableStream),ye.abortController=E(x.AbortController),ye.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ye.blobConstructor=!0}catch(re){}var z;function se(){if(z!==void 0)return z;if(x.XMLHttpRequest){z=new x.XMLHttpRequest;try{z.open("GET",x.XDomainRequest?"/":"https://example.com")}catch(re){z=null}}else z=null;return z}function ae(re){var ne=se();if(!ne)return!1;try{return ne.responseType=re,ne.responseType===re}catch(le){}return!1}var ee=typeof x.ArrayBuffer!="undefined",fe=ee&&E(x.ArrayBuffer.prototype.slice);ye.arraybuffer=ye.fetch||ee&&ae("arraybuffer"),ye.msstream=!ye.fetch&&fe&&ae("ms-stream"),ye.mozchunkedarraybuffer=!ye.fetch&&ee&&ae("moz-chunked-arraybuffer"),ye.overrideMimeType=ye.fetch||(se()?E(se().overrideMimeType):!1),ye.vbArray=E(x.VBArray);function E(re){return typeof re=="function"}z=null}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(y,Ce,ye){(function(x,z,se){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js");var ae=y("./capability"),ee=y("inherits"),fe=y("./response"),E=y("readable-stream"),re=y("to-arraybuffer"),ne=fe.IncomingMessage,le=fe.readyStates;function ue(de,we){return ae.fetch&&we?"fetch":ae.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ae.msstream?"ms-stream":ae.arraybuffer&&de?"arraybuffer":ae.vbArray&&de?"text:vbarray":"text"}var he=Ce.exports=function(de){var we=this;E.Writable.call(we),we._opts=de,we._body=[],we._headers={},de.auth&&we.setHeader("Authorization","Basic "+new se(de.auth).toString("base64")),Object.keys(de.headers).forEach(function(Me){we.setHeader(Me,de.headers[Me])});var Te,je=!0;if(de.mode==="disable-fetch"||"requestTimeout"in de&&!ae.abortController)je=!1,Te=!0;else if(de.mode==="prefer-streaming")Te=!1;else if(de.mode==="allow-wrong-content-type")Te=!ae.overrideMimeType;else if(!de.mode||de.mode==="default"||de.mode==="prefer-fast")Te=!0;else throw new Error("Invalid value for opts.mode");we._mode=ue(Te,je),we._fetchTimer=null,we.on("finish",function(){we._onFinish()})};ee(he,E.Writable),he.prototype.setHeader=function(de,we){var Te=this,je=de.toLowerCase();ve.indexOf(je)===-1&&(Te._headers[je]={name:de,value:we})},he.prototype.getHeader=function(de){var we=this._headers[de.toLowerCase()];return we?we.value:null},he.prototype.removeHeader=function(de){var we=this;delete we._headers[de.toLowerCase()]},he.prototype._onFinish=function(){var de=this;if(!de._destroyed){var we=de._opts,Te=de._headers,je=null;we.method!=="GET"&&we.method!=="HEAD"&&(ae.arraybuffer?je=re(se.concat(de._body)):ae.blobConstructor?je=new z.Blob(de._body.map(function(Re){return re(Re)}),{type:(Te["content-type"]||{}).value||""}):je=se.concat(de._body).toString());var Me=[];if(Object.keys(Te).forEach(function(Re){var Ie=Te[Re].name,ke=Te[Re].value;Array.isArray(ke)?ke.forEach(function(Pe){Me.push([Ie,Pe])}):Me.push([Ie,ke])}),de._mode==="fetch"){var Ae=null,ge=null;if(ae.abortController){var be=new AbortController;Ae=be.signal,de._fetchAbortController=be,"requestTimeout"in we&&we.requestTimeout!==0&&(de._fetchTimer=z.setTimeout(function(){de.emit("requestTimeout"),de._fetchAbortController&&de._fetchAbortController.abort()},we.requestTimeout))}z.fetch(de._opts.url,{method:de._opts.method,headers:Me,body:je||void 0,mode:"cors",credentials:we.withCredentials?"include":"same-origin",signal:Ae}).then(function(Re){de._fetchResponse=Re,de._connect()},function(Re){z.clearTimeout(de._fetchTimer),de._destroyed||de.emit("error",Re)})}else{var Ee=de._xhr=new z.XMLHttpRequest;try{Ee.open(de._opts.method,de._opts.url,!0)}catch(Re){x.nextTick(function(){de.emit("error",Re)});return}"responseType"in Ee&&(Ee.responseType=de._mode.split(":")[0]),"withCredentials"in Ee&&(Ee.withCredentials=!!we.withCredentials),de._mode==="text"&&"overrideMimeType"in Ee&&Ee.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in we&&(Ee.timeout=we.requestTimeout,Ee.ontimeout=function(){de.emit("requestTimeout")}),Me.forEach(function(Re){Ee.setRequestHeader(Re[0],Re[1])}),de._response=null,Ee.onreadystatechange=function(){switch(Ee.readyState){case le.LOADING:case le.DONE:de._onXHRProgress();break}},de._mode==="moz-chunked-arraybuffer"&&(Ee.onprogress=function(){de._onXHRProgress()}),Ee.onerror=function(){de._destroyed||de.emit("error",new Error("XHR error"))};try{Ee.send(je)}catch(Re){x.nextTick(function(){de.emit("error",Re)});return}}}};function pe(de){try{var we=de.status;return we!==null&&we!==0}catch(Te){return!1}}he.prototype._onXHRProgress=function(){var de=this;!pe(de._xhr)||de._destroyed||(de._response||de._connect(),de._response._onXHRProgress())},he.prototype._connect=function(){var de=this;de._destroyed||(de._response=new ne(de._xhr,de._fetchResponse,de._mode,de._fetchTimer),de._response.on("error",function(we){de.emit("error",we)}),de.emit("response",de._response))},he.prototype._write=function(de,we,Te){var je=this;je._body.push(de),Te()},he.prototype.abort=he.prototype.destroy=function(){var de=this;de._destroyed=!0,z.clearTimeout(de._fetchTimer),de._response&&(de._response._destroyed=!0),de._xhr?de._xhr.abort():de._fetchAbortController&&de._fetchAbortController.abort()},he.prototype.end=function(de,we,Te){var je=this;typeof de=="function"&&(Te=de,de=void 0),E.Writable.prototype.end.call(je,de,we,Te)},he.prototype.flushHeaders=function(){},he.prototype.setTimeout=function(){},he.prototype.setNoDelay=function(){},he.prototype.setSocketKeepAlive=function(){};var ve=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(y,Ce,ye){(function(x,z,se){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js"),y("core-js/modules/es.array.slice.js");var ae=y("./capability"),ee=y("inherits"),fe=y("readable-stream"),E=ye.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},re=ye.IncomingMessage=function(ne,le,ue,he){var pe=this;if(fe.Readable.call(pe),pe._mode=ue,pe.headers={},pe.rawHeaders=[],pe.trailers={},pe.rawTrailers=[],pe.on("end",function(){x.nextTick(function(){pe.emit("close")})}),ue==="fetch"){var ve=function Ae(){we.read().then(function(ge){if(!pe._destroyed){if(ge.done){z.clearTimeout(he),pe.push(null);return}pe.push(new se(ge.value)),Ae()}}).catch(function(ge){z.clearTimeout(he),pe._destroyed||pe.emit("error",ge)})};if(pe._fetchResponse=le,pe.url=le.url,pe.statusCode=le.status,pe.statusMessage=le.statusText,le.headers.forEach(function(Ae,ge){pe.headers[ge.toLowerCase()]=Ae,pe.rawHeaders.push(ge,Ae)}),ae.writableStream){var de=new WritableStream({write:function(ge){return new Promise(function(be,Ee){pe._destroyed?Ee():pe.push(new se(ge))?be():pe._resumeFetch=be})},close:function(){z.clearTimeout(he),pe._destroyed||pe.push(null)},abort:function(ge){pe._destroyed||pe.emit("error",ge)}});try{le.body.pipeTo(de).catch(function(Ae){z.clearTimeout(he),pe._destroyed||pe.emit("error",Ae)});return}catch(Ae){}}var we=le.body.getReader();ve()}else{pe._xhr=ne,pe._pos=0,pe.url=ne.responseURL,pe.statusCode=ne.status,pe.statusMessage=ne.statusText;var Te=ne.getAllResponseHeaders().split(/\r?\n/);if(Te.forEach(function(Ae){var ge=Ae.match(/^([^:]+):\s*(.*)/);if(ge){var be=ge[1].toLowerCase();be==="set-cookie"?(pe.headers[be]===void 0&&(pe.headers[be]=[]),pe.headers[be].push(ge[2])):pe.headers[be]!==void 0?pe.headers[be]+=", "+ge[2]:pe.headers[be]=ge[2],pe.rawHeaders.push(ge[1],ge[2])}}),pe._charset="x-user-defined",!ae.overrideMimeType){var je=pe.rawHeaders["mime-type"];if(je){var Me=je.match(/;\s*charset=([^;])(;|$)/);Me&&(pe._charset=Me[1].toLowerCase())}pe._charset||(pe._charset="utf-8")}}};ee(re,fe.Readable),re.prototype._read=function(){var ne=this,le=ne._resumeFetch;le&&(ne._resumeFetch=null,le())},re.prototype._onXHRProgress=function(){var ne=this,le=ne._xhr,ue=null;switch(ne._mode){case"text:vbarray":if(le.readyState!==E.DONE)break;try{ue=new z.VBArray(le.responseBody).toArray()}catch(we){}if(ue!==null){ne.push(new se(ue));break}case"text":try{ue=le.responseText}catch(we){ne._mode="text:vbarray";break}if(ue.length>ne._pos){var he=ue.substr(ne._pos);if(ne._charset==="x-user-defined"){for(var pe=new se(he.length),ve=0;ve<he.length;ve++)pe[ve]=he.charCodeAt(ve)&255;ne.push(pe)}else ne.push(he,ne._charset);ne._pos=ue.length}break;case"arraybuffer":if(le.readyState!==E.DONE||!le.response)break;ue=le.response,ne.push(new se(new Uint8Array(ue)));break;case"moz-chunked-arraybuffer":if(ue=le.response,le.readyState!==E.LOADING||!ue)break;ne.push(new se(new Uint8Array(ue)));break;case"ms-stream":if(ue=le.response,le.readyState!==E.LOADING)break;var de=new z.MSStreamReader;de.onprogress=function(){de.result.byteLength>ne._pos&&(ne.push(new se(new Uint8Array(de.result.slice(ne._pos)))),ne._pos=de.result.byteLength)},de.onload=function(){ne.push(null)},de.readAsArrayBuffer(ue);break}ne._xhr.readyState===E.DONE&&ne._mode!=="ms-stream"&&ne.push(null)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.splice.js");var se=y("punycode"),ae=y("./util");ye.parse=ge,ye.resolve=Ee,ye.resolveObject=Re,ye.format=be,ye.Url=ee;function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var fe=/^([a-z0-9.+-]+:)/i,E=/:[0-9]*$/,re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ne=["<",">",'"',"`"," ","\r",`
`," "],le=["{","}","|","\\","^","`"].concat(ne),ue=["'"].concat(le),he=["%","/","?",";","#"].concat(ue),pe=["/","?","#"],ve=255,de=/^[+a-z0-9A-Z_-]{0,63}$/,we=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Te={javascript:!0,"javascript:":!0},je={javascript:!0,"javascript:":!0},Me={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=y("querystring");function ge(Ie,ke,Pe){if(Ie&&ae.isObject(Ie)&&Ie instanceof ee)return Ie;var Ze=new ee;return Ze.parse(Ie,ke,Pe),Ze}ee.prototype.parse=function(Ie,ke,Pe){if(!ae.isString(Ie))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(Ie));var Ze=Ie.indexOf("?"),He=Ze!==-1&&Ze<Ie.indexOf("#")?"?":"#",$e=Ie.split(He),it=/\\/g;$e[0]=$e[0].replace(it,"/"),Ie=$e.join(He);var Ne=Ie;if(Ne=Ne.trim(),!Pe&&Ie.split("#").length===1){var Fe=re.exec(Ne);if(Fe)return this.path=Ne,this.href=Ne,this.pathname=Fe[1],Fe[2]?(this.search=Fe[2],ke?this.query=Ae.parse(this.search.substr(1)):this.query=this.search.substr(1)):ke&&(this.search="",this.query={}),this}var qe=fe.exec(Ne);if(qe){qe=qe[0];var rt=qe.toLowerCase();this.protocol=rt,Ne=Ne.substr(qe.length)}if(Pe||qe||Ne.match(/^\/\/[^@\/]+@[^@\/]+/)){var tt=Ne.substr(0,2)==="//";tt&&!(qe&&je[qe])&&(Ne=Ne.substr(2),this.slashes=!0)}if(!je[qe]&&(tt||qe&&!Me[qe])){for(var Ve=-1,Ke=0;Ke<pe.length;Ke++){var ze=Ne.indexOf(pe[Ke]);ze!==-1&&(Ve===-1||ze<Ve)&&(Ve=ze)}var at,Qe;Ve===-1?Qe=Ne.lastIndexOf("@"):Qe=Ne.lastIndexOf("@",Ve),Qe!==-1&&(at=Ne.slice(0,Qe),Ne=Ne.slice(Qe+1),this.auth=decodeURIComponent(at)),Ve=-1;for(var Ke=0;Ke<he.length;Ke++){var ze=Ne.indexOf(he[Ke]);ze!==-1&&(Ve===-1||ze<Ve)&&(Ve=ze)}Ve===-1&&(Ve=Ne.length),this.host=Ne.slice(0,Ve),Ne=Ne.slice(Ve),this.parseHost(),this.hostname=this.hostname||"";var ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ut)for(var st=this.hostname.split("."),Ke=0,Xe=st.length;Ke<Xe;Ke++){var Le=st[Ke];if(Le&&!Le.match(de)){for(var De="",te=0,ce=Le.length;te<ce;te++)Le.charCodeAt(te)>127?De+="x":De+=Le[te];if(!De.match(de)){var _e=st.slice(0,Ke),Ue=st.slice(Ke+1),xe=Le.match(we);xe&&(_e.push(xe[1]),Ue.unshift(xe[2])),Ue.length&&(Ne="/"+Ue.join(".")+Ne),this.hostname=_e.join(".");break}}}this.hostname.length>ve?this.hostname="":this.hostname=this.hostname.toLowerCase(),ut||(this.hostname=se.toASCII(this.hostname));var Se=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Se,this.href+=this.host,ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ne[0]!=="/"&&(Ne="/"+Ne))}if(!Te[rt])for(var Ke=0,Xe=ue.length;Ke<Xe;Ke++){var We=ue[Ke];if(Ne.indexOf(We)!==-1){var et=encodeURIComponent(We);et===We&&(et=escape(We)),Ne=Ne.split(We).join(et)}}var nt=Ne.indexOf("#");nt!==-1&&(this.hash=Ne.substr(nt),Ne=Ne.slice(0,nt));var dt=Ne.indexOf("?");if(dt!==-1?(this.search=Ne.substr(dt),this.query=Ne.substr(dt+1),ke&&(this.query=Ae.parse(this.query)),Ne=Ne.slice(0,dt)):ke&&(this.search="",this.query={}),Ne&&(this.pathname=Ne),Me[rt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Se=this.pathname||"",ct=this.search||"";this.path=Se+ct}return this.href=this.format(),this};function be(Ie){return ae.isString(Ie)&&(Ie=ge(Ie)),Ie instanceof ee?Ie.format():ee.prototype.format.call(Ie)}ee.prototype.format=function(){var Ie=this.auth||"";Ie&&(Ie=encodeURIComponent(Ie),Ie=Ie.replace(/%3A/i,":"),Ie+="@");var ke=this.protocol||"",Pe=this.pathname||"",Ze=this.hash||"",He=!1,$e="";this.host?He=Ie+this.host:this.hostname&&(He=Ie+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(He+=":"+this.port)),this.query&&ae.isObject(this.query)&&Object.keys(this.query).length&&($e=Ae.stringify(this.query));var it=this.search||$e&&"?"+$e||"";return ke&&ke.substr(-1)!==":"&&(ke+=":"),this.slashes||(!ke||Me[ke])&&He!==!1?(He="//"+(He||""),Pe&&Pe.charAt(0)!=="/"&&(Pe="/"+Pe)):He||(He=""),Ze&&Ze.charAt(0)!=="#"&&(Ze="#"+Ze),it&&it.charAt(0)!=="?"&&(it="?"+it),Pe=Pe.replace(/[?#]/g,function(Ne){return encodeURIComponent(Ne)}),it=it.replace("#","%23"),ke+He+Pe+it+Ze};function Ee(Ie,ke){return ge(Ie,!1,!0).resolve(ke)}ee.prototype.resolve=function(Ie){return this.resolveObject(ge(Ie,!1,!0)).format()};function Re(Ie,ke){return Ie?ge(Ie,!1,!0).resolveObject(ke):ke}ee.prototype.resolveObject=function(Ie){if(ae.isString(Ie)){var ke=new ee;ke.parse(Ie,!1,!0),Ie=ke}for(var Pe=new ee,Ze=Object.keys(this),He=0;He<Ze.length;He++){var $e=Ze[He];Pe[$e]=this[$e]}if(Pe.hash=Ie.hash,Ie.href==="")return Pe.href=Pe.format(),Pe;if(Ie.slashes&&!Ie.protocol){for(var it=Object.keys(Ie),Ne=0;Ne<it.length;Ne++){var Fe=it[Ne];Fe!=="protocol"&&(Pe[Fe]=Ie[Fe])}return Me[Pe.protocol]&&Pe.hostname&&!Pe.pathname&&(Pe.path=Pe.pathname="/"),Pe.href=Pe.format(),Pe}if(Ie.protocol&&Ie.protocol!==Pe.protocol){if(!Me[Ie.protocol]){for(var qe=Object.keys(Ie),rt=0;rt<qe.length;rt++){var tt=qe[rt];Pe[tt]=Ie[tt]}return Pe.href=Pe.format(),Pe}if(Pe.protocol=Ie.protocol,!Ie.host&&!je[Ie.protocol]){for(var Xe=(Ie.pathname||"").split("/");Xe.length&&!(Ie.host=Xe.shift()););Ie.host||(Ie.host=""),Ie.hostname||(Ie.hostname=""),Xe[0]!==""&&Xe.unshift(""),Xe.length<2&&Xe.unshift(""),Pe.pathname=Xe.join("/")}else Pe.pathname=Ie.pathname;if(Pe.search=Ie.search,Pe.query=Ie.query,Pe.host=Ie.host||"",Pe.auth=Ie.auth,Pe.hostname=Ie.hostname||Ie.host,Pe.port=Ie.port,Pe.pathname||Pe.search){var Ve=Pe.pathname||"",Ke=Pe.search||"";Pe.path=Ve+Ke}return Pe.slashes=Pe.slashes||Ie.slashes,Pe.href=Pe.format(),Pe}var ze=Pe.pathname&&Pe.pathname.charAt(0)==="/",at=Ie.host||Ie.pathname&&Ie.pathname.charAt(0)==="/",Qe=at||ze||Pe.host&&Ie.pathname,ut=Qe,st=Pe.pathname&&Pe.pathname.split("/")||[],Xe=Ie.pathname&&Ie.pathname.split("/")||[],Le=Pe.protocol&&!Me[Pe.protocol];if(Le&&(Pe.hostname="",Pe.port=null,Pe.host&&(st[0]===""?st[0]=Pe.host:st.unshift(Pe.host)),Pe.host="",Ie.protocol&&(Ie.hostname=null,Ie.port=null,Ie.host&&(Xe[0]===""?Xe[0]=Ie.host:Xe.unshift(Ie.host)),Ie.host=null),Qe=Qe&&(Xe[0]===""||st[0]==="")),at)Pe.host=Ie.host||Ie.host===""?Ie.host:Pe.host,Pe.hostname=Ie.hostname||Ie.hostname===""?Ie.hostname:Pe.hostname,Pe.search=Ie.search,Pe.query=Ie.query,st=Xe;else if(Xe.length)st||(st=[]),st.pop(),st=st.concat(Xe),Pe.search=Ie.search,Pe.query=Ie.query;else if(!ae.isNullOrUndefined(Ie.search)){if(Le){Pe.hostname=Pe.host=st.shift();var De=Pe.host&&Pe.host.indexOf("@")>0?Pe.host.split("@"):!1;De&&(Pe.auth=De.shift(),Pe.host=Pe.hostname=De.shift())}return Pe.search=Ie.search,Pe.query=Ie.query,(!ae.isNull(Pe.pathname)||!ae.isNull(Pe.search))&&(Pe.path=(Pe.pathname?Pe.pathname:"")+(Pe.search?Pe.search:"")),Pe.href=Pe.format(),Pe}if(!st.length)return Pe.pathname=null,Pe.search?Pe.path="/"+Pe.search:Pe.path=null,Pe.href=Pe.format(),Pe;for(var te=st.slice(-1)[0],ce=(Pe.host||Ie.host||st.length>1)&&(te==="."||te==="..")||te==="",_e=0,Ue=st.length;Ue>=0;Ue--)te=st[Ue],te==="."?st.splice(Ue,1):te===".."?(st.splice(Ue,1),_e++):_e&&(st.splice(Ue,1),_e--);if(!Qe&&!ut)for(;_e--;_e)st.unshift("..");Qe&&st[0]!==""&&(!st[0]||st[0].charAt(0)!=="/")&&st.unshift(""),ce&&st.join("/").substr(-1)!=="/"&&st.push("");var xe=st[0]===""||st[0]&&st[0].charAt(0)==="/";if(Le){Pe.hostname=Pe.host=xe?"":st.length?st.shift():"";var De=Pe.host&&Pe.host.indexOf("@")>0?Pe.host.split("@"):!1;De&&(Pe.auth=De.shift(),Pe.host=Pe.hostname=De.shift())}return Qe=Qe||Pe.host&&st.length,Qe&&!xe&&st.unshift(""),st.length?Pe.pathname=st.join("/"):(Pe.pathname=null,Pe.path=null),(!ae.isNull(Pe.pathname)||!ae.isNull(Pe.search))&&(Pe.path=(Pe.pathname?Pe.pathname:"")+(Pe.search?Pe.search:"")),Pe.auth=Ie.auth||Pe.auth,Pe.slashes=Pe.slashes||Ie.slashes,Pe.href=Pe.format(),Pe},ee.prototype.parseHost=function(){var Ie=this.host,ke=E.exec(Ie);ke&&(ke=ke[0],ke!==":"&&(this.port=ke.substr(1)),Ie=Ie.substr(0,Ie.length-ke.length)),Ie&&(this.hostname=Ie)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(y,Ce,ye){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));Ce.exports={isString:function(ae){return typeof ae=="string"},isObject:function(ae){return(0,z.default)(ae)==="object"&&ae!==null},isNull:function(ae){return ae===null},isNullOrUndefined:function(ae){return ae==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,Ce,ye){"use strict";y("core-js/modules/es.number.constructor.js"),ye.encodeURIComponent=function(x){try{return encodeURIComponent(x)}catch(z){return x}},ye.escape=y("escape-html"),ye.timestamp=function(z){if(z){var se=z;return typeof se=="string"&&(se=Number(se)),String(z).length===10&&(se*=1e3),new Date(se)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,Ce,ye){(function(x,z){(function(){"use strict";var se=y("@babel/runtime/helpers/interopRequireDefault"),ae=se(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.concat.js");var ee=y("util"),fe=y("url"),E=y("http"),re=y("https"),ne=y("debug")("urllib"),le=y("humanize-ms"),ue=0,he=Math.pow(2,31)-10,pe=/^https?:\/\//i;function ve(je,Me){return je===void 0?Me:je}function de(je){return je?je.split(";")[0].trim().toLowerCase():""}function we(je,Me){return function(Ae,ge,be){if(Ae)return Me(Ae);je({data:ge,status:be.statusCode,headers:be.headers,res:be})}}ye.TIMEOUTS=[le("300s"),le("300s")];var Te=["json","text"];ye.request=function(Me,Ae,ge){return arguments.length===2&&typeof Ae=="function"&&(ge=Ae,Ae=null),typeof ge=="function"?ye.requestWithCallback(Me,Ae,ge):new Promise(function(be,Ee){ye.requestWithCallback(Me,Ae,we(be,Ee))})},ye.requestWithCallback=function(Me,Ae,ge){if(!Me||typeof Me!="string"&&(0,ae.default)(Me)!=="object"){var be=ee.format("expect request url to be a string or a http request options, but got %j",Me);throw new Error(be)}arguments.length===2&&typeof Ae=="function"&&(ge=Ae,Ae=null),Ae=Ae||{},ue>=he&&(ue=0);var Ee=++ue;Ae.requestUrls=Ae.requestUrls||[];var Re={requestId:Ee,url:Me,args:Ae,ctx:Ae.ctx};Ae.emitter&&Ae.emitter.emit("request",Re),Ae.timeout=Ae.timeout||ye.TIMEOUTS,Ae.maxRedirects=Ae.maxRedirects||10,Ae.streaming=Ae.streaming||Ae.customResponse;var Ie=Date.now(),ke;typeof Me=="string"?(pe.test(Me)||(Me="https://"+Me),ke=fe.parse(Me)):ke=Me;var Pe=(Ae.type||Ae.method||ke.method||"GET").toUpperCase(),Ze=ke.port||80,He=E,$e=ve(Ae.agent,ye.agent),it=Ae.fixJSONCtlChars;ke.protocol==="https:"&&(He=re,$e=ve(Ae.httpsAgent,ye.httpsAgent),ke.port||(Ze=443));var Ne={host:ke.hostname||ke.host||"localhost",path:ke.path||"/",method:Pe,port:Ze,agent:$e,headers:Ae.headers||{},lookup:Ae.lookup};Array.isArray(Ae.timeout)?Ne.requestTimeout=Ae.timeout[Ae.timeout.length-1]:typeof Ae.timeout!="undefined"&&(Ne.requestTimeout=Ae.timeout);var Fe=Ae.auth||ke.auth;Fe&&(Ne.auth=Fe);var qe=Ae.content||Ae.data,rt=Pe==="GET"||Pe==="HEAD"||Ae.dataAsQueryString;if(!Ae.content&&qe&&!(typeof qe=="string"||z.isBuffer(qe)))if(rt)qe=Ae.nestedQuerystring?qs.stringify(qe):querystring.stringify(qe);else{var tt=Ne.headers["Content-Type"]||Ne.headers["content-type"];tt||(Ae.contentType==="json"?tt="application/json":tt="application/x-www-form-urlencoded",Ne.headers["Content-Type"]=tt),de(tt)==="application/json"?qe=JSON.stringify(qe):qe=Ae.nestedQuerystring?qs.stringify(qe):querystring.stringify(qe)}rt&&qe&&(Ne.path+=(ke.query?"&":"?")+qe,qe=null);var Ve=0;if(qe){var Ke=qe.length;z.isBuffer(qe)||(Ke=z.byteLength(qe)),Ve=Ne.headers["Content-Length"]=Ke}Ae.dataType==="json"&&(Ne.headers.Accept="application/json"),typeof Ae.beforeRequest=="function"&&Ae.beforeRequest(Ne);var ze=null,at=null,Qe=null,ut=!1,st=!1,Xe=0,Le=-1,De=!1,te="",ce="",_e=null;Ae.timing&&(_e={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Ue(){ze&&(clearTimeout(ze),ze=null)}function xe(){at&&(clearTimeout(at),at=null)}function Se(vt,Tt,bt){if(xe(),!ge){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ee,x.pid,Ne.method,Me),vt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Ee,x.pid,vt.name,vt.message,vt.stack);return}var ft=ge;ge=null;var Dt={};bt&&(Le=bt.statusCode,Dt=bt.headers);var At=Date.now()-Ie;_e&&(_e.contentDownload=At),ne("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",At,Xe,Le,Ne.method,Ne.host,Ne.path,st,_e);var Mt={status:Le,statusCode:Le,headers:Dt,size:Xe,aborted:De,rt:At,keepAliveSocket:st,data:Tt,requestUrls:Ae.requestUrls,timing:_e,remoteAddress:te,remotePort:ce};if(vt){var $t="";$e&&typeof $e.getCurrentStatus=="function"&&($t=", agent status: "+JSON.stringify($e.getCurrentStatus())),vt.message+=", "+Ne.method+" "+Me+" "+Le+" (connected: "+ut+", keepalive socket: "+st+$t+`)
headers: `+JSON.stringify(Dt),vt.data=Tt,vt.path=Ne.path,vt.status=Le,vt.headers=Dt,vt.res=Mt}ft(vt,Tt,Ae.streaming?bt:Mt),Ae.emitter&&(Re.url=Me,Re.socket=yt&&yt.connection,Re.options=Ne,Re.size=Ve,Ae.emitter.emit("response",{requestId:Ee,error:vt,ctx:Ae.ctx,req:Re,res:Mt}))}function Oe(vt){var Tt=null;if(Ae.followRedirect&&statuses.redirect[vt.statusCode]){Ae._followRedirectCount=(Ae._followRedirectCount||0)+1;var bt=vt.headers.location;if(!bt)Tt=new Error("Got statusCode "+vt.statusCode+" but cannot resolve next location from headers"),Tt.name="FollowRedirectError";else if(Ae._followRedirectCount>Ae.maxRedirects)Tt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Me),Tt.name="MaxRedirectError";else{var ft=Ae.formatRedirectUrl?Ae.formatRedirectUrl(Me,bt):fe.resolve(Me,bt);ne("Request#%d %s: `redirected` from %s to %s",Ee,Ne.path,Me,ft),xe(),Ae.headers&&Ae.headers.Host&&pe.test(bt)&&(Ae.headers.Host=null);var Dt=ge;return ge=null,ye.requestWithCallback(ft,Ae,Dt),{redirect:!0,error:null}}}return{redirect:!1,error:Tt}}Ae.gzip&&!Ne.headers["Accept-Encoding"]&&!Ne.headers["accept-encoding"]&&(Ne.headers["Accept-Encoding"]="gzip");function We(vt,Tt,bt){var ft=vt.headers["content-encoding"];return bt(null,Tt,ft)}var et=Ae.writeStream;ne("Request#%d %s %s with headers %j, options.path: %s",Ee,Pe,Me,Ne.headers,Ne.path),Ae.requestUrls.push(Me);function nt(vt){if(_e&&(_e.waiting=Date.now()-Ie),ne("Request#%d %s `req response` event emit: status %d, headers: %j",Ee,Me,vt.statusCode,vt.headers),Ae.streaming){var Tt=Oe(vt);if(Tt.redirect){vt.resume();return}return Tt.error?(vt.resume(),Se(Tt.error,null,vt)):Se(null,null,vt)}if(vt.on("close",function(){ne("Request#%d %s: `res close` event emit, total size %d",Ee,Me,Xe)}),vt.on("error",function(){ne("Request#%d %s: `res error` event emit, total size %d",Ee,Me,Xe)}),vt.on("aborted",function(){De=!0,ne("Request#%d %s: `res aborted` event emit, total size %d",Ee,Me,Xe)}),et){var bt=Oe(vt);if(bt.redirect){vt.resume();return}return bt.error?(vt.resume(),et.end(),Se(bt.error,null,vt)):(Ae.consumeWriteStream===!1?vt.on("end",Se.bind(null,null,null,vt)):et.on("close",function(){ne("Request#%d %s: writeStream close event emitted",Ee,Me),Se(Qe||null,null,vt)}),vt.pipe(et))}var ft=[];vt.on("data",function(Dt){ne("Request#%d %s: `res data` event emit, size %d",Ee,Me,Dt.length),Xe+=Dt.length,ft.push(Dt)}),vt.on("end",function(){var Dt=z.concat(ft,Xe);if(ne("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ee,Me,Xe,vt._dumped),Qe)return Se(Qe,Dt,vt);var At=Oe(vt);if(At.error)return Se(At.error,Dt,vt);At.redirect||We(vt,Dt,function(Mt,$t,pr){if(Mt)return Se(Mt,Dt,vt);if(!pr&&Te.indexOf(Ae.dataType)>=0){try{$t=decodeBodyByCharset($t,vt)}catch(wr){return ne("decodeBodyByCharset error: %s",wr),Se(null,$t,vt)}if(Ae.dataType==="json")if(Xe===0)$t=null;else{var qt=parseJSON($t,it);qt.error?Mt=qt.error:$t=qt.data}}De&&ne("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ee,Me),Se(Mt,$t,vt)})})}var dt,ct;Array.isArray(Ae.timeout)?(dt=le(Ae.timeout[0]),ct=le(Ae.timeout[1])):dt=ct=le(Ae.timeout),ne("ConnectTimeout: %d, ResponseTimeout: %d",dt,ct);function pt(){ne("Connect timer ticking, timeout: %d",dt),ze=setTimeout(function(){ze=null,Le===-1&&(Le=-2);var vt="Connect timeout for "+dt+"ms",Tt="ConnectionTimeoutError";yt.socket||(Tt="SocketAssignTimeoutError",vt+=", working sockets is full"),Qe=new Error(vt),Qe.name=Tt,Qe.requestId=Ee,ne("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ee,Me,Qe.name,vt,ut),xt()},dt)}function St(){ne("Response timer ticking, timeout: %d",ct),at=setTimeout(function(){at=null;var vt="Response timeout for "+ct+"ms",Tt="ResponseTimeoutError";Qe=new Error(vt),Qe.name=Tt,Qe.requestId=Ee,ne("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ee,Me,Qe.name,vt,ut),xt()},ct)}var yt;Ne.mode=Ae.mode?Ae.mode:"";try{yt=He.request(Ne,nt)}catch(vt){return Se(vt)}typeof window=="undefined"?pt():yt.on("requestTimeout",function(){Le===-1&&(Le=-2);var vt="Connect timeout for "+dt+"ms",Tt="ConnectionTimeoutError";Qe=new Error(vt),Qe.name=Tt,Qe.requestId=Ee,xt()});function xt(){ne("Request#%d %s abort, connected: %s",Ee,Me,ut),yt.socket||(Qe.noSocket=!0,Se(Qe)),yt.abort()}return _e&&yt.on("finish",function(){_e.requestSent=Date.now()-Ie}),yt.once("socket",function(vt){_e&&(_e.queuing=Date.now()-Ie);var Tt=vt.readyState;if(Tt==="opening"){vt.once("lookup",function(bt,ft,Dt){ne("Request#%d %s lookup: %s, %s, %s",Ee,Me,bt,ft,Dt),_e&&(_e.dnslookup=Date.now()-Ie),ft&&(te=ft)}),vt.once("connect",function(){_e&&(_e.connected=Date.now()-Ie),Ue(),St(),ne("Request#%d %s new socket connected",Ee,Me),ut=!0,te||(te=vt.remoteAddress),ce=vt.remotePort});return}ne("Request#%d %s reuse socket connected, readyState: %s",Ee,Me,Tt),ut=!0,st=!0,te||(te=vt.remoteAddress),ce=vt.remotePort,Ue(),St()}),yt.on("error",function(vt){(vt.name==="Error"||vt.name==="TypeError")&&(vt.name=ut?"ResponseError":"RequestError"),vt.message+=' (req "error")',ne("Request#%d %s `req error` event emit, %s: %s",Ee,Me,vt.name,vt.message),Se(Qe||vt)}),et&&et.once("error",function(vt){vt.message+=' (writeStream "error")',Qe=vt,ne("Request#%d %s `writeStream error` event emit, %s: %s",Ee,Me,vt.name,vt.message),xt()}),Ae.stream?(Ae.stream.pipe(yt),Ae.stream.once("error",function(vt){vt.message+=' (stream "error")',Qe=vt,ne("Request#%d %s `readStream error` event emit, %s: %s",Ee,Me,vt.name,vt.message),xt()})):yt.end(qe),yt.requestId=Ee,yt}}).call(this)}).call(this,y("_process"),y("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},99498:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780))})(function(Ye){Ye.defineOption("placeholder","",function(se,ae,ee){var fe=ee&&ee!=Ye.Init;if(ae&&!fe)se.on("blur",ye),se.on("change",x),se.on("swapDoc",x),Ye.on(se.getInputField(),"compositionupdate",se.state.placeholderCompose=function(){Ce(se)}),x(se);else if(!ae&&fe){se.off("blur",ye),se.off("change",x),se.off("swapDoc",x),Ye.off(se.getInputField(),"compositionupdate",se.state.placeholderCompose),mt(se);var E=se.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}ae&&!se.hasFocus()&&ye(se)});function mt(se){se.state.placeholder&&(se.state.placeholder.parentNode.removeChild(se.state.placeholder),se.state.placeholder=null)}function y(se){mt(se);var ae=se.state.placeholder=document.createElement("pre");ae.style.cssText="height: 0; overflow: visible",ae.style.direction=se.getOption("direction"),ae.className="CodeMirror-placeholder CodeMirror-line-like";var ee=se.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),ae.appendChild(ee),se.display.lineSpace.insertBefore(ae,se.display.lineSpace.firstChild)}function Ce(se){setTimeout(function(){var ae=!1,ee=se.getInputField();ee.nodeName=="TEXTAREA"?ae=!ee.value:se.lineCount()==1&&(ae=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),ae?y(se):mt(se)},20)}function ye(se){z(se)&&y(se)}function x(se){var ae=se.getWrapperElement(),ee=z(se);ae.className=ae.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(se):mt(se)}function z(se){return se.lineCount()===1&&se.getLine(0)===""}})},25717:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780))})(function(Ye){var mt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=Ye.Pos;Ye.defineOption("autoCloseBrackets",!1,function(le,ue,he){he&&he!=Ye.Init&&(le.removeKeyMap(ye),le.state.closeBrackets=null),ue&&(x(Ce(ue,"pairs")),le.state.closeBrackets=ue,le.addKeyMap(ye))});function Ce(le,ue){return ue=="pairs"&&typeof le=="string"?le:typeof le=="object"&&le[ue]!=null?le[ue]:mt[ue]}var ye={Backspace:ae,Enter:ee};function x(le){for(var ue=0;ue<le.length;ue++){var he=le.charAt(ue),pe="'"+he+"'";ye[pe]||(ye[pe]=z(he))}}x(mt.pairs+"`");function z(le){return function(ue){return E(ue,le)}}function se(le){var ue=le.state.closeBrackets;if(!ue||ue.override)return ue;var he=le.getModeAt(le.getCursor());return he.closeBrackets||ue}function ae(le){var ue=se(le);if(!ue||le.getOption("disableInput"))return Ye.Pass;for(var he=Ce(ue,"pairs"),pe=le.listSelections(),ve=0;ve<pe.length;ve++){if(!pe[ve].empty())return Ye.Pass;var de=re(le,pe[ve].head);if(!de||he.indexOf(de)%2!=0)return Ye.Pass}for(var ve=pe.length-1;ve>=0;ve--){var we=pe[ve].head;le.replaceRange("",y(we.line,we.ch-1),y(we.line,we.ch+1),"+delete")}}function ee(le){var ue=se(le),he=ue&&Ce(ue,"explode");if(!he||le.getOption("disableInput"))return Ye.Pass;for(var pe=le.listSelections(),ve=0;ve<pe.length;ve++){if(!pe[ve].empty())return Ye.Pass;var de=re(le,pe[ve].head);if(!de||he.indexOf(de)%2!=0)return Ye.Pass}le.operation(function(){var we=le.lineSeparator()||`
`;le.replaceSelection(we+we,null),le.execCommand("goCharLeft"),pe=le.listSelections();for(var Te=0;Te<pe.length;Te++){var je=pe[Te].head.line;le.indentLine(je,null,!0),le.indentLine(je+1,null,!0)}})}function fe(le){var ue=Ye.cmpPos(le.anchor,le.head)>0;return{anchor:new y(le.anchor.line,le.anchor.ch+(ue?-1:1)),head:new y(le.head.line,le.head.ch+(ue?1:-1))}}function E(le,ue){var he=se(le);if(!he||le.getOption("disableInput"))return Ye.Pass;var pe=Ce(he,"pairs"),ve=pe.indexOf(ue);if(ve==-1)return Ye.Pass;for(var de=Ce(he,"closeBefore"),we=Ce(he,"triples"),Te=pe.charAt(ve+1)==ue,je=le.listSelections(),Me=ve%2==0,Ae,ge=0;ge<je.length;ge++){var be=je[ge],Ee=be.head,Re,Ie=le.getRange(Ee,y(Ee.line,Ee.ch+1));if(Me&&!be.empty())Re="surround";else if((Te||!Me)&&Ie==ue)Te&&ne(le,Ee)?Re="both":we.indexOf(ue)>=0&&le.getRange(Ee,y(Ee.line,Ee.ch+3))==ue+ue+ue?Re="skipThree":Re="skip";else if(Te&&Ee.ch>1&&we.indexOf(ue)>=0&&le.getRange(y(Ee.line,Ee.ch-2),Ee)==ue+ue){if(Ee.ch>2&&/\bstring/.test(le.getTokenTypeAt(y(Ee.line,Ee.ch-2))))return Ye.Pass;Re="addFour"}else if(Te){var ke=Ee.ch==0?" ":le.getRange(y(Ee.line,Ee.ch-1),Ee);if(!Ye.isWordChar(Ie)&&ke!=ue&&!Ye.isWordChar(ke))Re="both";else return Ye.Pass}else if(Me&&(Ie.length===0||/\s/.test(Ie)||de.indexOf(Ie)>-1))Re="both";else return Ye.Pass;if(!Ae)Ae=Re;else if(Ae!=Re)return Ye.Pass}var Pe=ve%2?pe.charAt(ve-1):ue,Ze=ve%2?ue:pe.charAt(ve+1);le.operation(function(){if(Ae=="skip")le.execCommand("goCharRight");else if(Ae=="skipThree")for(var He=0;He<3;He++)le.execCommand("goCharRight");else if(Ae=="surround"){for(var $e=le.getSelections(),He=0;He<$e.length;He++)$e[He]=Pe+$e[He]+Ze;le.replaceSelections($e,"around"),$e=le.listSelections().slice();for(var He=0;He<$e.length;He++)$e[He]=fe($e[He]);le.setSelections($e)}else Ae=="both"?(le.replaceSelection(Pe+Ze,null),le.triggerElectric(Pe+Ze),le.execCommand("goCharLeft")):Ae=="addFour"&&(le.replaceSelection(Pe+Pe+Pe+Pe,"before"),le.execCommand("goCharRight"))})}function re(le,ue){var he=le.getRange(y(ue.line,ue.ch-1),y(ue.line,ue.ch+1));return he.length==2?he:null}function ne(le,ue){var he=le.getTokenAt(y(ue.line,ue.ch+1));return/\bstring/.test(he.type)&&he.start==ue.ch&&(ue.ch==0||!/\bstring/.test(le.getTokenTypeAt(ue)))}})},6313:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780),Ge(52730))})(function(Ye){Ye.defineOption("autoCloseTags",!1,function(ae,ee,fe){if(fe!=Ye.Init&&fe&&ae.removeKeyMap("autoCloseTags"),!!ee){var E={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(E["'/'"]=function(re){return x(re)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(E["'>'"]=function(re){return Ce(re)}),ae.addKeyMap(E)}});var mt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],y=["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 Ce(ae){if(ae.getOption("disableInput"))return Ye.Pass;for(var ee=ae.listSelections(),fe=[],E=ae.getOption("autoCloseTags"),re=0;re<ee.length;re++){if(!ee[re].empty())return Ye.Pass;var ne=ee[re].head,le=ae.getTokenAt(ne),ue=Ye.innerMode(ae.getMode(),le.state),he=ue.state,pe=ue.mode.xmlCurrentTag&&ue.mode.xmlCurrentTag(he),ve=pe&&pe.name;if(!ve)return Ye.Pass;var de=ue.mode.configuration=="html",we=typeof E=="object"&&E.dontCloseTags||de&&mt,Te=typeof E=="object"&&E.indentTags||de&&y;le.end>ne.ch&&(ve=ve.slice(0,ve.length-le.end+ne.ch));var je=ve.toLowerCase();if(!ve||le.type=="string"&&(le.end!=ne.ch||!/[\"\']/.test(le.string.charAt(le.string.length-1))||le.string.length==1)||le.type=="tag"&&pe.close||le.string.indexOf("/")==ne.ch-le.start-1||we&&z(we,je)>-1||se(ae,ue.mode.xmlCurrentContext&&ue.mode.xmlCurrentContext(he)||[],ve,ne,!0))return Ye.Pass;var Me=typeof E=="object"&&E.emptyTags;if(Me&&z(Me,ve)>-1){fe[re]={text:"/>",newPos:Ye.Pos(ne.line,ne.ch+2)};continue}var Ae=Te&&z(Te,je)>-1;fe[re]={indent:Ae,text:">"+(Ae?`
`:"")+"</"+ve+">",newPos:Ae?Ye.Pos(ne.line+1,0):Ye.Pos(ne.line,ne.ch+1)}}for(var ge=typeof E=="object"&&E.dontIndentOnAutoClose,re=ee.length-1;re>=0;re--){var be=fe[re];ae.replaceRange(be.text,ee[re].head,ee[re].anchor,"+insert");var Ee=ae.listSelections().slice(0);Ee[re]={head:be.newPos,anchor:be.newPos},ae.setSelections(Ee),!ge&&be.indent&&(ae.indentLine(be.newPos.line,null,!0),ae.indentLine(be.newPos.line+1,null,!0))}}function ye(ae,ee){for(var fe=ae.listSelections(),E=[],re=ee?"/":"</",ne=ae.getOption("autoCloseTags"),le=typeof ne=="object"&&ne.dontIndentOnSlash,ue=0;ue<fe.length;ue++){if(!fe[ue].empty())return Ye.Pass;var he=fe[ue].head,pe=ae.getTokenAt(he),ve=Ye.innerMode(ae.getMode(),pe.state),de=ve.state;if(ee&&(pe.type=="string"||pe.string.charAt(0)!="<"||pe.start!=he.ch-1))return Ye.Pass;var we,Te=ve.mode.name!="xml"&&ae.getMode().name=="htmlmixed";if(Te&&ve.mode.name=="javascript")we=re+"script";else if(Te&&ve.mode.name=="css")we=re+"style";else{var je=ve.mode.xmlCurrentContext&&ve.mode.xmlCurrentContext(de);if(!je||je.length&&se(ae,je,je[je.length-1],he))return Ye.Pass;we=re+je[je.length-1]}ae.getLine(he.line).charAt(pe.end)!=">"&&(we+=">"),E[ue]=we}if(ae.replaceSelections(E),fe=ae.listSelections(),!le)for(var ue=0;ue<fe.length;ue++)(ue==fe.length-1||fe[ue].head.line<fe[ue+1].head.line)&&ae.indentLine(fe[ue].head.line)}function x(ae){return ae.getOption("disableInput")?Ye.Pass:ye(ae,!0)}Ye.commands.closeTag=function(ae){return ye(ae)};function z(ae,ee){if(ae.indexOf)return ae.indexOf(ee);for(var fe=0,E=ae.length;fe<E;++fe)if(ae[fe]==ee)return fe;return-1}function se(ae,ee,fe,E,re){if(!Ye.scanForClosingTag)return!1;var ne=Math.min(ae.lastLine()+1,E.line+500),le=Ye.scanForClosingTag(ae,E,null,ne);if(!le||le.tag!=fe)return!1;for(var ue=re?1:0,he=ee.length-1;he>=0&&ee[he]==fe;he--)++ue;E=le.to;for(var he=1;he<ue;he++){var pe=Ye.scanForClosingTag(ae,E,null,ne);if(!pe||pe.tag!=fe)return!1;E=pe.to}return!0}})},52730:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780))})(function(Ye){"use strict";var mt=Ye.Pos;function y(he,pe){return he.line-pe.line||he.ch-pe.ch}var Ce="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ye=Ce+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+Ce+"]["+ye+"]*)","g");function z(he,pe,ve,de){this.line=pe,this.ch=ve,this.cm=he,this.text=he.getLine(pe),this.min=de?Math.max(de.from,he.firstLine()):he.firstLine(),this.max=de?Math.min(de.to-1,he.lastLine()):he.lastLine()}function se(he,pe){var ve=he.cm.getTokenTypeAt(mt(he.line,pe));return ve&&/\btag\b/.test(ve)}function ae(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function ee(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function fe(he){for(;;){var pe=he.text.indexOf(">",he.ch);if(pe==-1){if(ae(he))continue;return}if(!se(he,pe+1)){he.ch=pe+1;continue}var ve=he.text.lastIndexOf("/",pe),de=ve>-1&&!/\S/.test(he.text.slice(ve+1,pe));return he.ch=pe+1,de?"selfClose":"regular"}}function E(he){for(;;){var pe=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(pe==-1){if(ee(he))continue;return}if(!se(he,pe+1)){he.ch=pe;continue}x.lastIndex=pe,he.ch=pe;var ve=x.exec(he.text);if(ve&&ve.index==pe)return ve}}function re(he){for(;;){x.lastIndex=he.ch;var pe=x.exec(he.text);if(!pe){if(ae(he))continue;return}if(!se(he,pe.index+1)){he.ch=pe.index+1;continue}return he.ch=pe.index+pe[0].length,pe}}function ne(he){for(;;){var pe=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(pe==-1){if(ee(he))continue;return}if(!se(he,pe+1)){he.ch=pe;continue}var ve=he.text.lastIndexOf("/",pe),de=ve>-1&&!/\S/.test(he.text.slice(ve+1,pe));return he.ch=pe+1,de?"selfClose":"regular"}}function le(he,pe){for(var ve=[];;){var de=re(he),we,Te=he.line,je=he.ch-(de?de[0].length:0);if(!de||!(we=fe(he)))return;if(we!="selfClose")if(de[1]){for(var Me=ve.length-1;Me>=0;--Me)if(ve[Me]==de[2]){ve.length=Me;break}if(Me<0&&(!pe||pe==de[2]))return{tag:de[2],from:mt(Te,je),to:mt(he.line,he.ch)}}else ve.push(de[2])}}function ue(he,pe){for(var ve=[];;){var de=ne(he);if(!de)return;if(de=="selfClose"){E(he);continue}var we=he.line,Te=he.ch,je=E(he);if(!je)return;if(je[1])ve.push(je[2]);else{for(var Me=ve.length-1;Me>=0;--Me)if(ve[Me]==je[2]){ve.length=Me;break}if(Me<0&&(!pe||pe==je[2]))return{tag:je[2],from:mt(he.line,he.ch),to:mt(we,Te)}}}}Ye.registerHelper("fold","xml",function(he,pe){for(var ve=new z(he,pe.line,0);;){var de=re(ve);if(!de||ve.line!=pe.line)return;var we=fe(ve);if(!we)return;if(!de[1]&&we!="selfClose"){var Te=mt(ve.line,ve.ch),je=le(ve,de[2]);return je&&y(je.from,Te)>0?{from:Te,to:je.from}:null}}}),Ye.findMatchingTag=function(he,pe,ve){var de=new z(he,pe.line,pe.ch,ve);if(!(de.text.indexOf(">")==-1&&de.text.indexOf("<")==-1)){var we=fe(de),Te=we&&mt(de.line,de.ch),je=we&&E(de);if(!(!we||!je||y(de,pe)>0)){var Me={from:mt(de.line,de.ch),to:Te,tag:je[2]};return we=="selfClose"?{open:Me,close:null,at:"open"}:je[1]?{open:ue(de,je[2]),close:Me,at:"close"}:(de=new z(he,Te.line,Te.ch,ve),{open:Me,close:le(de,je[2]),at:"open"})}}},Ye.findEnclosingTag=function(he,pe,ve,de){for(var we=new z(he,pe.line,pe.ch,ve);;){var Te=ue(we,de);if(!Te)break;var je=new z(he,pe.line,pe.ch,ve),Me=le(je,Te.tag);if(Me)return{open:Te,close:Me}}},Ye.scanForClosingTag=function(he,pe,ve,de){var we=new z(he,pe.line,pe.ch,de?{from:0,to:de}:null);return le(we,ve)}})},89780:function(Ht){(function(_t,Ge){Ht.exports=Ge()})(this,function(){"use strict";var _t=navigator.userAgent,Ge=navigator.platform,Ye=/gecko\/\d/i.test(_t),mt=/MSIE \d/.test(_t),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_t),Ce=/Edge\/(\d+)/.exec(_t),ye=mt||y||Ce,x=ye&&(mt?document.documentMode||6:+(Ce||y)[1]),z=!Ce&&/WebKit\//.test(_t),se=z&&/Qt\/\d+\.\d+/.test(_t),ae=!Ce&&/Chrome\//.test(_t),ee=/Opera\//.test(_t),fe=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_t),re=/PhantomJS/.test(_t),ne=!Ce&&/AppleWebKit/.test(_t)&&/Mobile\/\w+/.test(_t),le=/Android/.test(_t),ue=ne||le||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_t),he=ne||/Mac/.test(Ge),pe=/\bCrOS\b/.test(_t),ve=/win/i.test(Ge),de=ee&&_t.match(/Version\/(\d*\.\d*)/);de&&(de=Number(de[1])),de&&de>=15&&(ee=!1,z=!0);var we=he&&(se||ee&&(de==null||de<12.11)),Te=Ye||ye&&x>=9;function je(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Me=function(a,b){var oe=a.className,ie=je(b).exec(oe);if(ie){var me=oe.slice(ie.index+ie[0].length);a.className=oe.slice(0,ie.index)+(me?ie[1]+me:"")}};function Ae(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function ge(a,b){return Ae(a).appendChild(b)}function be(a,b,oe,ie){var me=document.createElement(a);if(oe&&(me.className=oe),ie&&(me.style.cssText=ie),typeof b=="string")me.appendChild(document.createTextNode(b));else if(b)for(var Be=0;Be<b.length;++Be)me.appendChild(b[Be]);return me}function Ee(a,b,oe,ie){var me=be(a,b,oe,ie);return me.setAttribute("role","presentation"),me}var Re;document.createRange?Re=function(a,b,oe,ie){var me=document.createRange();return me.setEnd(ie||a,oe),me.setStart(a,b),me}:Re=function(a,b,oe){var ie=document.body.createTextRange();try{ie.moveToElementText(a.parentNode)}catch(me){return ie}return ie.collapse(!0),ie.moveEnd("character",oe),ie.moveStart("character",b),ie};function Ie(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function ke(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Pe(a,b){var oe=a.className;je(b).test(oe)||(a.className+=(oe?" ":"")+b)}function Ze(a,b){for(var oe=a.split(" "),ie=0;ie<oe.length;ie++)oe[ie]&&!je(oe[ie]).test(b)&&(b+=" "+oe[ie]);return b}var He=function(a){a.select()};ne?He=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ye&&(He=function(a){try{a.select()}catch(b){}});function $e(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function it(a,b,oe){b||(b={});for(var ie in a)a.hasOwnProperty(ie)&&(oe!==!1||!b.hasOwnProperty(ie))&&(b[ie]=a[ie]);return b}function Ne(a,b,oe,ie,me){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Be=ie||0,Je=me||0;;){var ot=a.indexOf(" ",Be);if(ot<0||ot>=b)return Je+(b-Be);Je+=ot-Be,Je+=oe-Je%oe,Be=ot+1}}var Fe=function(){this.id=null,this.f=null,this.time=0,this.handler=$e(this.onTimeout,this)};Fe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},Fe.prototype.set=function(a,b){this.f=b;var oe=+new Date+a;(!this.id||oe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=oe)};function qe(a,b){for(var oe=0;oe<a.length;++oe)if(a[oe]==b)return oe;return-1}var rt=50,tt={toString:function(){return"CodeMirror.Pass"}},Ve={scroll:!1},Ke={origin:"*mouse"},ze={origin:"+move"};function at(a,b,oe){for(var ie=0,me=0;;){var Be=a.indexOf(" ",ie);Be==-1&&(Be=a.length);var Je=Be-ie;if(Be==a.length||me+Je>=b)return ie+Math.min(Je,b-me);if(me+=Be-ie,me+=oe-me%oe,ie=Be+1,me>=b)return ie}}var Qe=[""];function ut(a){for(;Qe.length<=a;)Qe.push(st(Qe)+" ");return Qe[a]}function st(a){return a[a.length-1]}function Xe(a,b){for(var oe=[],ie=0;ie<a.length;ie++)oe[ie]=b(a[ie],ie);return oe}function Le(a,b,oe){for(var ie=0,me=oe(b);ie<a.length&&oe(a[ie])<=me;)ie++;a.splice(ie,0,b)}function De(){}function te(a,b){var oe;return Object.create?oe=Object.create(a):(De.prototype=a,oe=new De),b&&it(b,oe),oe}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function _e(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ce.test(a))}function Ue(a,b){return b?b.source.indexOf("\\w")>-1&&_e(a)?!0:b.test(a):_e(a)}function xe(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Se=/[\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 Oe(a){return a.charCodeAt(0)>=768&&Se.test(a)}function We(a,b,oe){for(;(oe<0?b>0:b<a.length)&&Oe(a.charAt(b));)b+=oe;return b}function et(a,b,oe){for(var ie=b>oe?-1:1;;){if(b==oe)return b;var me=(b+oe)/2,Be=ie<0?Math.ceil(me):Math.floor(me);if(Be==b)return a(Be)?b:oe;a(Be)?oe=Be:b=Be+ie}}function nt(a,b,oe,ie){if(!a)return ie(b,oe,"ltr",0);for(var me=!1,Be=0;Be<a.length;++Be){var Je=a[Be];(Je.from<oe&&Je.to>b||b==oe&&Je.to==b)&&(ie(Math.max(Je.from,b),Math.min(Je.to,oe),Je.level==1?"rtl":"ltr",Be),me=!0)}me||ie(b,oe,"ltr")}var dt=null;function ct(a,b,oe){var ie;dt=null;for(var me=0;me<a.length;++me){var Be=a[me];if(Be.from<b&&Be.to>b)return me;Be.to==b&&(Be.from!=Be.to&&oe=="before"?ie=me:dt=me),Be.from==b&&(Be.from!=Be.to&&oe!="before"?ie=me:dt=me)}return ie!=null?ie:dt}var pt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function oe(ht){return ht<=247?a.charAt(ht):1424<=ht&&ht<=1524?"R":1536<=ht&&ht<=1785?b.charAt(ht-1536):1774<=ht&&ht<=2220?"r":8192<=ht&&ht<=8203?"w":ht==8204?"b":"L"}var ie=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,me=/[stwN]/,Be=/[LRr]/,Je=/[Lb1n]/,ot=/[1n]/;function lt(ht,wt,Et){this.level=ht,this.from=wt,this.to=Et}return function(ht,wt){var Et=wt=="ltr"?"L":"R";if(ht.length==0||wt=="ltr"&&!ie.test(ht))return!1;for(var Wt=ht.length,Nt=[],cr=0;cr<Wt;++cr)Nt.push(oe(ht.charCodeAt(cr)));for(var vr=0,kr=Et;vr<Wt;++vr){var Rr=Nt[vr];Rr=="m"?Nt[vr]=kr:kr=Rr}for(var Hr=0,Mr=Et;Hr<Wt;++Hr){var Qr=Nt[Hr];Qr=="1"&&Mr=="r"?Nt[Hr]="n":Be.test(Qr)&&(Mr=Qr,Qr=="r"&&(Nt[Hr]="R"))}for(var En=1,ln=Nt[0];En<Wt-1;++En){var Vn=Nt[En];Vn=="+"&&ln=="1"&&Nt[En+1]=="1"?Nt[En]="1":Vn==","&&ln==Nt[En+1]&&(ln=="1"||ln=="n")&&(Nt[En]=ln),ln=Vn}for(var ci=0;ci<Wt;++ci){var Li=Nt[ci];if(Li==",")Nt[ci]="N";else if(Li=="%"){var xi=void 0;for(xi=ci+1;xi<Wt&&Nt[xi]=="%";++xi);for(var oa=ci&&Nt[ci-1]=="!"||xi<Wt&&Nt[xi]=="1"?"1":"N",ea=ci;ea<xi;++ea)Nt[ea]=oa;ci=xi-1}}for(var Oi=0,ta=Et;Oi<Wt;++Oi){var Wi=Nt[Oi];ta=="L"&&Wi=="1"?Nt[Oi]="L":Be.test(Wi)&&(ta=Wi)}for(var Ri=0;Ri<Wt;++Ri)if(me.test(Nt[Ri])){var Di=void 0;for(Di=Ri+1;Di<Wt&&me.test(Nt[Di]);++Di);for(var Ei=(Ri?Nt[Ri-1]:Et)=="L",ra=(Di<Wt?Nt[Di]:Et)=="L",xo=Ei==ra?Ei?"L":"R":Et,Xa=Ri;Xa<Di;++Xa)Nt[Xa]=xo;Ri=Di-1}for(var Hi=[],Sa,Bi=0;Bi<Wt;)if(Je.test(Nt[Bi])){var Bs=Bi;for(++Bi;Bi<Wt&&Je.test(Nt[Bi]);++Bi);Hi.push(new lt(0,Bs,Bi))}else{var Na=Bi,eo=Hi.length,to=wt=="rtl"?1:0;for(++Bi;Bi<Wt&&Nt[Bi]!="L";++Bi);for(var Yi=Na;Yi<Bi;)if(ot.test(Nt[Yi])){Na<Yi&&(Hi.splice(eo,0,new lt(1,Na,Yi)),eo+=to);var So=Yi;for(++Yi;Yi<Bi&&ot.test(Nt[Yi]);++Yi);Hi.splice(eo,0,new lt(2,So,Yi)),eo+=to,Na=Yi}else++Yi;Na<Bi&&Hi.splice(eo,0,new lt(1,Na,Bi))}return wt=="ltr"&&(Hi[0].level==1&&(Sa=ht.match(/^\s+/))&&(Hi[0].from=Sa[0].length,Hi.unshift(new lt(0,0,Sa[0].length))),st(Hi).level==1&&(Sa=ht.match(/\s+$/))&&(st(Hi).to-=Sa[0].length,Hi.push(new lt(0,Wt-Sa[0].length,Wt)))),wt=="rtl"?Hi.reverse():Hi}}();function St(a,b){var oe=a.order;return oe==null&&(oe=a.order=pt(a.text,b)),oe}var yt=[],xt=function(a,b,oe){if(a.addEventListener)a.addEventListener(b,oe,!1);else if(a.attachEvent)a.attachEvent("on"+b,oe);else{var ie=a._handlers||(a._handlers={});ie[b]=(ie[b]||yt).concat(oe)}};function vt(a,b){return a._handlers&&a._handlers[b]||yt}function Tt(a,b,oe){if(a.removeEventListener)a.removeEventListener(b,oe,!1);else if(a.detachEvent)a.detachEvent("on"+b,oe);else{var ie=a._handlers,me=ie&&ie[b];if(me){var Be=qe(me,oe);Be>-1&&(ie[b]=me.slice(0,Be).concat(me.slice(Be+1)))}}}function bt(a,b){var oe=vt(a,b);if(oe.length)for(var ie=Array.prototype.slice.call(arguments,2),me=0;me<oe.length;++me)oe[me].apply(null,ie)}function ft(a,b,oe){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),bt(a,oe||b.type,a,b),qt(b)||b.codemirrorIgnore}function Dt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var oe=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),ie=0;ie<b.length;++ie)qe(oe,b[ie])==-1&&oe.push(b[ie])}function At(a,b){return vt(a,b).length>0}function Mt(a){a.prototype.on=function(b,oe){xt(this,b,oe)},a.prototype.off=function(b,oe){Tt(this,b,oe)}}function $t(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function pr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function qt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function wr(a){$t(a),pr(a)}function jr(a){return a.target||a.srcElement}function Dr(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),he&&a.ctrlKey&&b==1&&(b=3),b}var Fr=function(){if(ye&&x<9)return!1;var a=be("div");return"draggable"in a||"dragDrop"in a}(),on;function wn(a){if(on==null){var b=be("span","\u200B");ge(a,be("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(on=b.offsetWidth<=1&&b.offsetHeight>2&&!(ye&&x<8))}var oe=on?be("span","\u200B"):be("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return oe.setAttribute("cm-text",""),oe}var hn;function Gr(a){if(hn!=null)return hn;var b=ge(a,document.createTextNode("A\u062EA")),oe=Re(b,0,1).getBoundingClientRect(),ie=Re(b,1,2).getBoundingClientRect();return Ae(a),!oe||oe.left==oe.right?!1:hn=ie.right-oe.right<3}var An=`
b`.split(/\n/).length!=3?function(a){for(var b=0,oe=[],ie=a.length;b<=ie;){var me=a.indexOf(`
`,b);me==-1&&(me=a.length);var Be=a.slice(b,a.charAt(me-1)=="\r"?me-1:me),Je=Be.indexOf("\r");Je!=-1?(oe.push(Be.slice(0,Je)),b+=Je+1):(oe.push(Be),b=me+1)}return oe}:function(a){return a.split(/\r\n?|\n/)},Rn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(oe){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Tr=function(){var a=be("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Sr=null;function sn(a){if(Sr!=null)return Sr;var b=ge(a,be("span","x")),oe=b.getBoundingClientRect(),ie=Re(b,0,1).getBoundingClientRect();return Sr=Math.abs(oe.left-ie.left)>1}var lr={},tr={};function or(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),lr[a]=b}function Pr(a,b){tr[a]=b}function mr(a){if(typeof a=="string"&&tr.hasOwnProperty(a))a=tr[a];else if(a&&typeof a.name=="string"&&tr.hasOwnProperty(a.name)){var b=tr[a.name];typeof b=="string"&&(b={name:b}),a=te(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return mr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return mr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Br(a,b){b=mr(b);var oe=lr[b.name];if(!oe)return Br(a,"text/plain");var ie=oe(a,b);if(qr.hasOwnProperty(b.name)){var me=qr[b.name];for(var Be in me)me.hasOwnProperty(Be)&&(ie.hasOwnProperty(Be)&&(ie["_"+Be]=ie[Be]),ie[Be]=me[Be])}if(ie.name=b.name,b.helperType&&(ie.helperType=b.helperType),b.modeProps)for(var Je in b.modeProps)ie[Je]=b.modeProps[Je];return ie}var qr={};function tn(a,b){var oe=qr.hasOwnProperty(a)?qr[a]:qr[a]={};it(b,oe)}function Zr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var oe={};for(var ie in b){var me=b[ie];me instanceof Array&&(me=me.concat([])),oe[ie]=me}return oe}function Lr(a,b){for(var oe;a.innerMode&&(oe=a.innerMode(b),!(!oe||oe.mode==a));)b=oe.state,a=oe.mode;return oe||{mode:a,state:b}}function pn(a,b,oe){return a.startState?a.startState(b,oe):!0}var fr=function(a,b,oe){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=oe};fr.prototype.eol=function(){return this.pos>=this.string.length},fr.prototype.sol=function(){return this.pos==this.lineStart},fr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fr.prototype.eat=function(a){var b=this.string.charAt(this.pos),oe;if(typeof a=="string"?oe=b==a:oe=b&&(a.test?a.test(b):a(b)),oe)return++this.pos,b},fr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},fr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},fr.prototype.skipToEnd=function(){this.pos=this.string.length},fr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},fr.prototype.backUp=function(a){this.pos-=a},fr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},fr.prototype.indentation=function(){return Ne(this.string,null,this.tabSize)-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},fr.prototype.match=function(a,b,oe){if(typeof a=="string"){var ie=function(Je){return oe?Je.toLowerCase():Je},me=this.string.substr(this.pos,a.length);if(ie(me)==ie(a))return b!==!1&&(this.pos+=a.length),!0}else{var Be=this.string.slice(this.pos).match(a);return Be&&Be.index>0?null:(Be&&b!==!1&&(this.pos+=Be[0].length),Be)}},fr.prototype.current=function(){return this.string.slice(this.start,this.pos)},fr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},fr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},fr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Vt(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var oe=a;!oe.lines;)for(var ie=0;;++ie){var me=oe.children[ie],Be=me.chunkSize();if(b<Be){oe=me;break}b-=Be}return oe.lines[b]}function xr(a,b,oe){var ie=[],me=b.line;return a.iter(b.line,oe.line+1,function(Be){var Je=Be.text;me==oe.line&&(Je=Je.slice(0,oe.ch)),me==b.line&&(Je=Je.slice(b.ch)),ie.push(Je),++me}),ie}function Kr(a,b,oe){var ie=[];return a.iter(b,oe,function(me){ie.push(me.text)}),ie}function mn(a,b){var oe=b-a.height;if(oe)for(var ie=a;ie;ie=ie.parent)ie.height+=oe}function Ct(a){if(a.parent==null)return null;for(var b=a.parent,oe=qe(b.lines,a),ie=b.parent;ie;b=ie,ie=ie.parent)for(var me=0;ie.children[me]!=b;++me)oe+=ie.children[me].chunkSize();return oe+b.first}function kt(a,b){var oe=a.first;e:do{for(var ie=0;ie<a.children.length;++ie){var me=a.children[ie],Be=me.height;if(b<Be){a=me;continue e}b-=Be,oe+=me.chunkSize()}return oe}while(!a.lines);for(var Je=0;Je<a.lines.length;++Je){var ot=a.lines[Je],lt=ot.height;if(b<lt)break;b-=lt}return oe+Je}function ir(a,b){return b>=a.first&&b<a.first+a.size}function Kt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function jt(a,b,oe){if(oe===void 0&&(oe=null),!(this instanceof jt))return new jt(a,b,oe);this.line=a,this.ch=b,this.sticky=oe}function nr(a,b){return a.line-b.line||a.ch-b.ch}function dr(a,b){return a.sticky==b.sticky&&nr(a,b)==0}function hr(a){return jt(a.line,a.ch)}function br(a,b){return nr(a,b)<0?b:a}function ur(a,b){return nr(a,b)<0?a:b}function gr(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function Pt(a,b){if(b.line<a.first)return jt(a.first,0);var oe=a.first+a.size-1;return b.line>oe?jt(oe,Vt(a,oe).text.length):Ur(b,Vt(a,b.line).text.length)}function Ur(a,b){var oe=a.ch;return oe==null||oe>b?jt(a.line,b):oe<0?jt(a.line,0):a}function sr(a,b){for(var oe=[],ie=0;ie<b.length;ie++)oe[ie]=Pt(a,b[ie]);return oe}var yr=function(a,b){this.state=a,this.lookAhead=b},Or=function(a,b,oe,ie){this.state=b,this.doc=a,this.line=oe,this.maxLookAhead=ie||0,this.baseTokens=null,this.baseTokenPos=1};Or.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Or.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Or.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Or.fromSaved=function(a,b,oe){return b instanceof yr?new Or(a,Zr(a.mode,b.state),oe,b.lookAhead):new Or(a,Zr(a.mode,b),oe)},Or.prototype.save=function(a){var b=a!==!1?Zr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yr(b,this.maxLookAhead):b};function Wr(a,b,oe,ie){var me=[a.state.modeGen],Be={};Hn(a,b.text,a.doc.mode,oe,function(ht,wt){return me.push(ht,wt)},Be,ie);for(var Je=oe.state,ot=function(ht){oe.baseTokens=me;var wt=a.state.overlays[ht],Et=1,Wt=0;oe.state=!0,Hn(a,b.text,wt.mode,oe,function(Nt,cr){for(var vr=Et;Wt<Nt;){var kr=me[Et];kr>Nt&&me.splice(Et,1,Nt,me[Et+1],kr),Et+=2,Wt=Math.min(Nt,kr)}if(cr)if(wt.opaque)me.splice(vr,Et-vr,Nt,"overlay "+cr),Et=vr+2;else for(;vr<Et;vr+=2){var Rr=me[vr+1];me[vr+1]=(Rr?Rr+" ":"")+"overlay "+cr}},Be),oe.state=Je,oe.baseTokens=null,oe.baseTokenPos=1},lt=0;lt<a.state.overlays.length;++lt)ot(lt);return{styles:me,classes:Be.bgClass||Be.textClass?Be:null}}function an(a,b,oe){if(!b.styles||b.styles[0]!=a.state.modeGen){var ie=Ln(a,Ct(b)),me=b.text.length>a.options.maxHighlightLength&&Zr(a.doc.mode,ie.state),Be=Wr(a,b,ie);me&&(ie.state=me),b.stateAfter=ie.save(!me),b.styles=Be.styles,Be.classes?b.styleClasses=Be.classes:b.styleClasses&&(b.styleClasses=null),oe===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Ln(a,b,oe){var ie=a.doc,me=a.display;if(!ie.mode.startState)return new Or(ie,!0,b);var Be=Gn(a,b,oe),Je=Be>ie.first&&Vt(ie,Be-1).stateAfter,ot=Je?Or.fromSaved(ie,Je,Be):new Or(ie,pn(ie.mode),Be);return ie.iter(Be,b,function(lt){yn(a,lt.text,ot);var ht=ot.line;lt.stateAfter=ht==b-1||ht%5==0||ht>=me.viewFrom&&ht<me.viewTo?ot.save():null,ot.nextLine()}),oe&&(ie.modeFrontier=ot.line),ot}function yn(a,b,oe,ie){var me=a.doc.mode,Be=new fr(b,a.options.tabSize,oe);for(Be.start=Be.pos=ie||0,b==""&&un(me,oe.state);!Be.eol();)On(me,Be,oe.state),Be.start=Be.pos}function un(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var oe=Lr(a,b);if(oe.mode.blankLine)return oe.mode.blankLine(oe.state)}}function On(a,b,oe,ie){for(var me=0;me<10;me++){ie&&(ie[0]=Lr(a,oe).mode);var Be=a.token(b,oe);if(b.pos>b.start)return Be}throw new Error("Mode "+a.name+" failed to advance stream.")}var zr=function(a,b,oe){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=oe};function zn(a,b,oe,ie){var me=a.doc,Be=me.mode,Je;b=Pt(me,b);var ot=Vt(me,b.line),lt=Ln(a,b.line,oe),ht=new fr(ot.text,a.options.tabSize,lt),wt;for(ie&&(wt=[]);(ie||ht.pos<b.ch)&&!ht.eol();)ht.start=ht.pos,Je=On(Be,ht,lt.state),ie&&wt.push(new zr(ht,Je,Zr(me.mode,lt.state)));return ie?wt:new zr(ht,Je,lt.state)}function Xn(a,b){if(a)for(;;){var oe=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!oe)break;a=a.slice(0,oe.index)+a.slice(oe.index+oe[0].length);var ie=oe[1]?"bgClass":"textClass";b[ie]==null?b[ie]=oe[2]:new RegExp("(?:^|\\s)"+oe[2]+"(?:$|\\s)").test(b[ie])||(b[ie]+=" "+oe[2])}return a}function Hn(a,b,oe,ie,me,Be,Je){var ot=oe.flattenSpans;ot==null&&(ot=a.options.flattenSpans);var lt=0,ht=null,wt=new fr(b,a.options.tabSize,ie),Et,Wt=a.options.addModeClass&&[null];for(b==""&&Xn(un(oe,ie.state),Be);!wt.eol();){if(wt.pos>a.options.maxHighlightLength?(ot=!1,Je&&yn(a,b,ie,wt.pos),wt.pos=b.length,Et=null):Et=Xn(On(oe,wt,ie.state,Wt),Be),Wt){var Nt=Wt[0].name;Nt&&(Et="m-"+(Et?Nt+" "+Et:Nt))}if(!ot||ht!=Et){for(;lt<wt.start;)lt=Math.min(wt.start,lt+5e3),me(lt,ht);ht=Et}wt.start=wt.pos}for(;lt<wt.pos;){var cr=Math.min(wt.pos,lt+5e3);me(cr,ht),lt=cr}}function Gn(a,b,oe){for(var ie,me,Be=a.doc,Je=oe?-1:b-(a.doc.mode.innerMode?1e3:100),ot=b;ot>Je;--ot){if(ot<=Be.first)return Be.first;var lt=Vt(Be,ot-1),ht=lt.stateAfter;if(ht&&(!oe||ot+(ht instanceof yr?ht.lookAhead:0)<=Be.modeFrontier))return ot;var wt=Ne(lt.text,null,a.options.tabSize);(me==null||ie>wt)&&(me=ot-1,ie=wt)}return me}function Yn(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var oe=a.first,ie=b-1;ie>oe;ie--){var me=Vt(a,ie).stateAfter;if(me&&(!(me instanceof yr)||ie+me.lookAhead<b)){oe=ie+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,oe)}}var Kn=!1,Dn=!1;function $n(){Kn=!0}function Wn(){Dn=!0}function _r(a,b,oe){this.marker=a,this.from=b,this.to=oe}function en(a,b){if(a)for(var oe=0;oe<a.length;++oe){var ie=a[oe];if(ie.marker==b)return ie}}function bn(a,b){for(var oe,ie=0;ie<a.length;++ie)a[ie]!=b&&(oe||(oe=[])).push(a[ie]);return oe}function In(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Mn(a,b,oe){var ie;if(a)for(var me=0;me<a.length;++me){var Be=a[me],Je=Be.marker,ot=Be.from==null||(Je.inclusiveLeft?Be.from<=b:Be.from<b);if(ot||Be.from==b&&Je.type=="bookmark"&&(!oe||!Be.marker.insertLeft)){var lt=Be.to==null||(Je.inclusiveRight?Be.to>=b:Be.to>b);(ie||(ie=[])).push(new _r(Je,Be.from,lt?null:Be.to))}}return ie}function Nn(a,b,oe){var ie;if(a)for(var me=0;me<a.length;++me){var Be=a[me],Je=Be.marker,ot=Be.to==null||(Je.inclusiveRight?Be.to>=b:Be.to>b);if(ot||Be.from==b&&Je.type=="bookmark"&&(!oe||Be.marker.insertLeft)){var lt=Be.from==null||(Je.inclusiveLeft?Be.from<=b:Be.from<b);(ie||(ie=[])).push(new _r(Je,lt?null:Be.from-b,Be.to==null?null:Be.to-b))}}return ie}function ii(a,b){if(b.full)return null;var oe=ir(a,b.from.line)&&Vt(a,b.from.line).markedSpans,ie=ir(a,b.to.line)&&Vt(a,b.to.line).markedSpans;if(!oe&&!ie)return null;var me=b.from.ch,Be=b.to.ch,Je=nr(b.from,b.to)==0,ot=Mn(oe,me,Je),lt=Nn(ie,Be,Je),ht=b.text.length==1,wt=st(b.text).length+(ht?me:0);if(ot)for(var Et=0;Et<ot.length;++Et){var Wt=ot[Et];if(Wt.to==null){var Nt=en(lt,Wt.marker);Nt?ht&&(Wt.to=Nt.to==null?null:Nt.to+wt):Wt.to=me}}if(lt)for(var cr=0;cr<lt.length;++cr){var vr=lt[cr];if(vr.to!=null&&(vr.to+=wt),vr.from==null){var kr=en(ot,vr.marker);kr||(vr.from=wt,ht&&(ot||(ot=[])).push(vr))}else vr.from+=wt,ht&&(ot||(ot=[])).push(vr)}ot&&(ot=gt(ot)),lt&&lt!=ot&&(lt=gt(lt));var Rr=[ot];if(!ht){var Hr=b.text.length-2,Mr;if(Hr>0&&ot)for(var Qr=0;Qr<ot.length;++Qr)ot[Qr].to==null&&(Mr||(Mr=[])).push(new _r(ot[Qr].marker,null,null));for(var En=0;En<Hr;++En)Rr.push(Mr);Rr.push(lt)}return Rr}function gt(a){for(var b=0;b<a.length;++b){var oe=a[b];oe.from!=null&&oe.from==oe.to&&oe.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Lt(a,b,oe){var ie=null;if(a.iter(b.line,oe.line+1,function(Nt){if(Nt.markedSpans)for(var cr=0;cr<Nt.markedSpans.length;++cr){var vr=Nt.markedSpans[cr].marker;vr.readOnly&&(!ie||qe(ie,vr)==-1)&&(ie||(ie=[])).push(vr)}}),!ie)return null;for(var me=[{from:b,to:oe}],Be=0;Be<ie.length;++Be)for(var Je=ie[Be],ot=Je.find(0),lt=0;lt<me.length;++lt){var ht=me[lt];if(!(nr(ht.to,ot.from)<0||nr(ht.from,ot.to)>0)){var wt=[lt,1],Et=nr(ht.from,ot.from),Wt=nr(ht.to,ot.to);(Et<0||!Je.inclusiveLeft&&!Et)&&wt.push({from:ht.from,to:ot.from}),(Wt>0||!Je.inclusiveRight&&!Wt)&&wt.push({from:ot.to,to:ht.to}),me.splice.apply(me,wt),lt+=wt.length-3}}return me}function Rt(a){var b=a.markedSpans;if(b){for(var oe=0;oe<b.length;++oe)b[oe].marker.detachLine(a);a.markedSpans=null}}function Ft(a,b){if(b){for(var oe=0;oe<b.length;++oe)b[oe].marker.attachLine(a);a.markedSpans=b}}function Gt(a){return a.inclusiveLeft?-1:0}function It(a){return a.inclusiveRight?1:0}function Yt(a,b){var oe=a.lines.length-b.lines.length;if(oe!=0)return oe;var ie=a.find(),me=b.find(),Be=nr(ie.from,me.from)||Gt(a)-Gt(b);if(Be)return-Be;var Je=nr(ie.to,me.to)||It(a)-It(b);return Je||b.id-a.id}function rr(a,b){var oe=Dn&&a.markedSpans,ie;if(oe)for(var me=void 0,Be=0;Be<oe.length;++Be)me=oe[Be],me.marker.collapsed&&(b?me.from:me.to)==null&&(!ie||Yt(ie,me.marker)<0)&&(ie=me.marker);return ie}function Qt(a){return rr(a,!0)}function Ot(a){return rr(a,!1)}function Ut(a,b){var oe=Dn&&a.markedSpans,ie;if(oe)for(var me=0;me<oe.length;++me){var Be=oe[me];Be.marker.collapsed&&(Be.from==null||Be.from<b)&&(Be.to==null||Be.to>b)&&(!ie||Yt(ie,Be.marker)<0)&&(ie=Be.marker)}return ie}function zt(a,b,oe,ie,me){var Be=Vt(a,b),Je=Dn&&Be.markedSpans;if(Je)for(var ot=0;ot<Je.length;++ot){var lt=Je[ot];if(lt.marker.collapsed){var ht=lt.marker.find(0),wt=nr(ht.from,oe)||Gt(lt.marker)-Gt(me),Et=nr(ht.to,ie)||It(lt.marker)-It(me);if(!(wt>=0&&Et<=0||wt<=0&&Et>=0)&&(wt<=0&&(lt.marker.inclusiveRight&&me.inclusiveLeft?nr(ht.to,oe)>=0:nr(ht.to,oe)>0)||wt>=0&&(lt.marker.inclusiveRight&&me.inclusiveLeft?nr(ht.from,ie)<=0:nr(ht.from,ie)<0)))return!0}}}function Zt(a){for(var b;b=Qt(a);)a=b.find(-1,!0).line;return a}function er(a){for(var b;b=Ot(a);)a=b.find(1,!0).line;return a}function Bt(a){for(var b,oe;b=Ot(a);)a=b.find(1,!0).line,(oe||(oe=[])).push(a);return oe}function Jt(a,b){var oe=Vt(a,b),ie=Zt(oe);return oe==ie?b:Ct(ie)}function Xt(a,b){if(b>a.lastLine())return b;var oe=Vt(a,b),ie;if(!ar(a,oe))return b;for(;ie=Ot(oe);)oe=ie.find(1,!0).line;return Ct(oe)+1}function ar(a,b){var oe=Dn&&b.markedSpans;if(oe){for(var ie=void 0,me=0;me<oe.length;++me)if(ie=oe[me],!!ie.marker.collapsed){if(ie.from==null)return!0;if(!ie.marker.widgetNode&&ie.from==0&&ie.marker.inclusiveLeft&&Er(a,b,ie))return!0}}}function Er(a,b,oe){if(oe.to==null){var ie=oe.marker.find(1,!0);return Er(a,ie.line,en(ie.line.markedSpans,oe.marker))}if(oe.marker.inclusiveRight&&oe.to==b.text.length)return!0;for(var me=void 0,Be=0;Be<b.markedSpans.length;++Be)if(me=b.markedSpans[Be],me.marker.collapsed&&!me.marker.widgetNode&&me.from==oe.to&&(me.to==null||me.to!=oe.from)&&(me.marker.inclusiveLeft||oe.marker.inclusiveRight)&&Er(a,b,me))return!0}function Cr(a){a=Zt(a);for(var b=0,oe=a.parent,ie=0;ie<oe.lines.length;++ie){var me=oe.lines[ie];if(me==a)break;b+=me.height}for(var Be=oe.parent;Be;oe=Be,Be=oe.parent)for(var Je=0;Je<Be.children.length;++Je){var ot=Be.children[Je];if(ot==oe)break;b+=ot.height}return b}function Vr(a){if(a.height==0)return 0;for(var b=a.text.length,oe,ie=a;oe=Qt(ie);){var me=oe.find(0,!0);ie=me.from.line,b+=me.from.ch-me.to.ch}for(ie=a;oe=Ot(ie);){var Be=oe.find(0,!0);b-=ie.text.length-Be.from.ch,ie=Be.to.line,b+=ie.text.length-Be.to.ch}return b}function Ar(a){var b=a.display,oe=a.doc;b.maxLine=Vt(oe,oe.first),b.maxLineLength=Vr(b.maxLine),b.maxLineChanged=!0,oe.iter(function(ie){var me=Vr(ie);me>b.maxLineLength&&(b.maxLineLength=me,b.maxLine=ie)})}var $r=function(a,b,oe){this.text=a,Ft(this,b),this.height=oe?oe(this):1};$r.prototype.lineNo=function(){return Ct(this)},Mt($r);function rn(a,b,oe,ie){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Rt(a),Ft(a,oe);var me=ie?ie(a):1;me!=a.height&&mn(a,me)}function cn(a){a.parent=null,Rt(a)}var nn={},xn={};function kn(a,b){if(!a||/^\s*$/.test(a))return null;var oe=b.addModeClass?xn:nn;return oe[a]||(oe[a]=a.replace(/\S+/g,"cm-$&"))}function vn(a,b){var oe=Ee("span",null,null,z?"padding-right: .1px":null),ie={pre:Ee("pre",[oe],"CodeMirror-line"),content:oe,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var me=0;me<=(b.rest?b.rest.length:0);me++){var Be=me?b.rest[me-1]:b.line,Je=void 0;ie.pos=0,ie.addToken=Jr,Gr(a.display.measure)&&(Je=St(Be,a.doc.direction))&&(ie.addToken=Yr(ie.addToken,Je)),ie.map=[];var ot=b!=a.display.externalMeasured&&Ct(Be);Tn(Be,ie,an(a,Be,ot)),Be.styleClasses&&(Be.styleClasses.bgClass&&(ie.bgClass=Ze(Be.styleClasses.bgClass,ie.bgClass||"")),Be.styleClasses.textClass&&(ie.textClass=Ze(Be.styleClasses.textClass,ie.textClass||""))),ie.map.length==0&&ie.map.push(0,0,ie.content.appendChild(wn(a.display.measure))),me==0?(b.measure.map=ie.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(ie.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(z){var lt=ie.content.lastChild;(/\bcm-tab\b/.test(lt.className)||lt.querySelector&&lt.querySelector(".cm-tab"))&&(ie.content.className="cm-tab-wrap-hack")}return bt(a,"renderLine",a,b.line,ie.pre),ie.pre.className&&(ie.textClass=Ze(ie.pre.className,ie.textClass||"")),ie}function Sn(a){var b=be("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Jr(a,b,oe,ie,me,Be,Je){if(b){var ot=a.splitSpaces?Ir(b,a.trailingSpace):b,lt=a.cm.state.specialChars,ht=!1,wt;if(!lt.test(b))a.col+=b.length,wt=document.createTextNode(ot),a.map.push(a.pos,a.pos+b.length,wt),ye&&x<9&&(ht=!0),a.pos+=b.length;else{wt=document.createDocumentFragment();for(var Et=0;;){lt.lastIndex=Et;var Wt=lt.exec(b),Nt=Wt?Wt.index-Et:b.length-Et;if(Nt){var cr=document.createTextNode(ot.slice(Et,Et+Nt));ye&&x<9?wt.appendChild(be("span",[cr])):wt.appendChild(cr),a.map.push(a.pos,a.pos+Nt,cr),a.col+=Nt,a.pos+=Nt}if(!Wt)break;Et+=Nt+1;var vr=void 0;if(Wt[0]==" "){var kr=a.cm.options.tabSize,Rr=kr-a.col%kr;vr=wt.appendChild(be("span",ut(Rr),"cm-tab")),vr.setAttribute("role","presentation"),vr.setAttribute("cm-text"," "),a.col+=Rr}else Wt[0]=="\r"||Wt[0]==`
`?(vr=wt.appendChild(be("span",Wt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vr.setAttribute("cm-text",Wt[0]),a.col+=1):(vr=a.cm.options.specialCharPlaceholder(Wt[0]),vr.setAttribute("cm-text",Wt[0]),ye&&x<9?wt.appendChild(be("span",[vr])):wt.appendChild(vr),a.col+=1);a.map.push(a.pos,a.pos+1,vr),a.pos++}}if(a.trailingSpace=ot.charCodeAt(b.length-1)==32,oe||ie||me||ht||Be||Je){var Hr=oe||"";ie&&(Hr+=ie),me&&(Hr+=me);var Mr=be("span",[wt],Hr,Be);if(Je)for(var Qr in Je)Je.hasOwnProperty(Qr)&&Qr!="style"&&Qr!="class"&&Mr.setAttribute(Qr,Je[Qr]);return a.content.appendChild(Mr)}a.content.appendChild(wt)}}function Ir(a,b){if(a.length>1&&!/ /.test(a))return a;for(var oe=b,ie="",me=0;me<a.length;me++){var Be=a.charAt(me);Be==" "&&oe&&(me==a.length-1||a.charCodeAt(me+1)==32)&&(Be="\xA0"),ie+=Be,oe=Be==" "}return ie}function Yr(a,b){return function(oe,ie,me,Be,Je,ot,lt){me=me?me+" cm-force-border":"cm-force-border";for(var ht=oe.pos,wt=ht+ie.length;;){for(var Et=void 0,Wt=0;Wt<b.length&&(Et=b[Wt],!(Et.to>ht&&Et.from<=ht));Wt++);if(Et.to>=wt)return a(oe,ie,me,Be,Je,ot,lt);a(oe,ie.slice(0,Et.to-ht),me,Be,null,ot,lt),Be=null,ie=ie.slice(Et.to-ht),ht=Et.to}}}function Nr(a,b,oe,ie){var me=!ie&&oe.widgetNode;me&&a.map.push(a.pos,a.pos+b,me),!ie&&a.cm.display.input.needsContentAttribute&&(me||(me=a.content.appendChild(document.createElement("span"))),me.setAttribute("cm-marker",oe.id)),me&&(a.cm.display.input.setUneditable(me),a.content.appendChild(me)),a.pos+=b,a.trailingSpace=!1}function Tn(a,b,oe){var ie=a.markedSpans,me=a.text,Be=0;if(!ie){for(var Je=1;Je<oe.length;Je+=2)b.addToken(b,me.slice(Be,Be=oe[Je]),kn(oe[Je+1],b.cm.options));return}for(var ot=me.length,lt=0,ht=1,wt="",Et,Wt,Nt=0,cr,vr,kr,Rr,Hr;;){if(Nt==lt){cr=vr=kr=Wt="",Hr=null,Rr=null,Nt=1/0;for(var Mr=[],Qr=void 0,En=0;En<ie.length;++En){var ln=ie[En],Vn=ln.marker;if(Vn.type=="bookmark"&&ln.from==lt&&Vn.widgetNode)Mr.push(Vn);else if(ln.from<=lt&&(ln.to==null||ln.to>lt||Vn.collapsed&&ln.to==lt&&ln.from==lt)){if(ln.to!=null&&ln.to!=lt&&Nt>ln.to&&(Nt=ln.to,vr=""),Vn.className&&(cr+=" "+Vn.className),Vn.css&&(Wt=(Wt?Wt+";":"")+Vn.css),Vn.startStyle&&ln.from==lt&&(kr+=" "+Vn.startStyle),Vn.endStyle&&ln.to==Nt&&(Qr||(Qr=[])).push(Vn.endStyle,ln.to),Vn.title&&((Hr||(Hr={})).title=Vn.title),Vn.attributes)for(var ci in Vn.attributes)(Hr||(Hr={}))[ci]=Vn.attributes[ci];Vn.collapsed&&(!Rr||Yt(Rr.marker,Vn)<0)&&(Rr=ln)}else ln.from>lt&&Nt>ln.from&&(Nt=ln.from)}if(Qr)for(var Li=0;Li<Qr.length;Li+=2)Qr[Li+1]==Nt&&(vr+=" "+Qr[Li]);if(!Rr||Rr.from==lt)for(var xi=0;xi<Mr.length;++xi)Nr(b,0,Mr[xi]);if(Rr&&(Rr.from||0)==lt){if(Nr(b,(Rr.to==null?ot+1:Rr.to)-lt,Rr.marker,Rr.from==null),Rr.to==null)return;Rr.to==lt&&(Rr=!1)}}if(lt>=ot)break;for(var oa=Math.min(ot,Nt);;){if(wt){var ea=lt+wt.length;if(!Rr){var Oi=ea>oa?wt.slice(0,oa-lt):wt;b.addToken(b,Oi,Et?Et+cr:cr,kr,lt+Oi.length==Nt?vr:"",Wt,Hr)}if(ea>=oa){wt=wt.slice(oa-lt),lt=oa;break}lt=ea,kr=""}wt=me.slice(Be,Be=oe[ht++]),Et=kn(oe[ht++],b.cm.options)}}}function Cn(a,b,oe){this.line=b,this.rest=Bt(b),this.size=this.rest?Ct(st(this.rest))-oe+1:1,this.node=this.text=null,this.hidden=ar(a,b)}function jn(a,b,oe){for(var ie=[],me,Be=b;Be<oe;Be=me){var Je=new Cn(a.doc,Vt(a.doc,Be),Be);me=Be+Je.size,ie.push(Je)}return ie}var Jn=null;function Si(a){Jn?Jn.ops.push(a):a.ownsGroup=Jn={ops:[a],delayedCallbacks:[]}}function oi(a){var b=a.delayedCallbacks,oe=0;do{for(;oe<b.length;oe++)b[oe].call(null);for(var ie=0;ie<a.ops.length;ie++){var me=a.ops[ie];if(me.cursorActivityHandlers)for(;me.cursorActivityCalled<me.cursorActivityHandlers.length;)me.cursorActivityHandlers[me.cursorActivityCalled++].call(null,me.cm)}}while(oe<b.length)}function Gi(a,b){var oe=a.ownsGroup;if(oe)try{oi(oe)}finally{Jn=null,b(oe)}}var ji=null;function Qn(a,b){var oe=vt(a,b);if(oe.length){var ie=Array.prototype.slice.call(arguments,2),me;Jn?me=Jn.delayedCallbacks:ji?me=ji:(me=ji=[],setTimeout(ei,0));for(var Be=function(ot){me.push(function(){return oe[ot].apply(null,ie)})},Je=0;Je<oe.length;++Je)Be(Je)}}function ei(){var a=ji;ji=null;for(var b=0;b<a.length;++b)a[b]()}function ti(a,b,oe,ie){for(var me=0;me<b.changes.length;me++){var Be=b.changes[me];Be=="text"?si(a,b):Be=="gutter"?fn(a,b,oe,ie):Be=="class"?Xr(a,b):Be=="widget"&&dn(a,b,ie)}b.changes=null}function ki(a){return a.node==a.text&&(a.node=be("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ye&&x<8&&(a.node.style.zIndex=2)),a.node}function ai(a,b){var oe=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(oe&&(oe+=" CodeMirror-linebackground"),b.background)oe?b.background.className=oe:(b.background.parentNode.removeChild(b.background),b.background=null);else if(oe){var ie=ki(b);b.background=ie.insertBefore(be("div",null,oe),ie.firstChild),a.display.input.setUneditable(b.background)}}function ui(a,b){var oe=a.display.externalMeasured;return oe&&oe.line==b.line?(a.display.externalMeasured=null,b.measure=oe.measure,oe.built):vn(a,b)}function si(a,b){var oe=b.text.className,ie=ui(a,b);b.text==b.node&&(b.node=ie.pre),b.text.parentNode.replaceChild(ie.pre,b.text),b.text=ie.pre,ie.bgClass!=b.bgClass||ie.textClass!=b.textClass?(b.bgClass=ie.bgClass,b.textClass=ie.textClass,Xr(a,b)):oe&&(b.text.className=oe)}function Xr(a,b){ai(a,b),b.line.wrapClass?ki(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var oe=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=oe||""}function fn(a,b,oe,ie){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var me=ki(b);b.gutterBackground=be("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?ie.fixedPos:-ie.gutterTotalWidth)+"px; width: "+ie.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),me.insertBefore(b.gutterBackground,b.text)}var Be=b.line.gutterMarkers;if(a.options.lineNumbers||Be){var Je=ki(b),ot=b.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?ie.fixedPos:-ie.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ot),Je.insertBefore(ot,b.text),b.line.gutterClass&&(ot.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Be||!Be["CodeMirror-linenumbers"])&&(b.lineNumber=ot.appendChild(be("div",Kt(a.options,oe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ie.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Be)for(var lt=0;lt<a.display.gutterSpecs.length;++lt){var ht=a.display.gutterSpecs[lt].className,wt=Be.hasOwnProperty(ht)&&Be[ht];wt&&ot.appendChild(be("div",[wt],"CodeMirror-gutter-elt","left: "+ie.gutterLeft[ht]+"px; width: "+ie.gutterWidth[ht]+"px"))}}}function dn(a,b,oe){b.alignable&&(b.alignable=null);for(var ie=je("CodeMirror-linewidget"),me=b.node.firstChild,Be=void 0;me;me=Be)Be=me.nextSibling,ie.test(me.className)&&b.node.removeChild(me);Zn(a,b,oe)}function gn(a,b,oe,ie){var me=ui(a,b);return b.text=b.node=me.pre,me.bgClass&&(b.bgClass=me.bgClass),me.textClass&&(b.textClass=me.textClass),Xr(a,b),fn(a,b,oe,ie),Zn(a,b,ie),b.node}function Zn(a,b,oe){if(qn(a,b.line,b,oe,!0),b.rest)for(var ie=0;ie<b.rest.length;ie++)qn(a,b.rest[ie],b,oe,!1)}function qn(a,b,oe,ie,me){if(b.widgets)for(var Be=ki(oe),Je=0,ot=b.widgets;Je<ot.length;++Je){var lt=ot[Je],ht=be("div",[lt.node],"CodeMirror-linewidget"+(lt.className?" "+lt.className:""));lt.handleMouseEvents||ht.setAttribute("cm-ignore-events","true"),Zi(lt,ht,oe,ie),a.display.input.setUneditable(ht),me&&lt.above?Be.insertBefore(ht,oe.gutter||oe.text):Be.appendChild(ht),Qn(lt,"redraw")}}function Zi(a,b,oe,ie){if(a.noHScroll){(oe.alignable||(oe.alignable=[])).push(b);var me=ie.wrapperWidth;b.style.left=ie.fixedPos+"px",a.coverGutter||(me-=ie.gutterTotalWidth,b.style.paddingLeft=ie.gutterTotalWidth+"px"),b.style.width=me+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-ie.gutterTotalWidth+"px"))}function di(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Ie(document.body,a.node)){var oe="position: relative;";a.coverGutter&&(oe+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(oe+="width: "+b.display.wrapper.clientWidth+"px;"),ge(b.display.measure,be("div",[a.node],null,oe))}return a.height=a.node.parentNode.offsetHeight}function fi(a,b){for(var oe=jr(b);oe!=a.wrapper;oe=oe.parentNode)if(!oe||oe.nodeType==1&&oe.getAttribute("cm-ignore-events")=="true"||oe.parentNode==a.sizer&&oe!=a.mover)return!0}function Pn(a){return a.lineSpace.offsetTop}function bi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ki(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=ge(a.measure,be("pre","x","CodeMirror-line-like")),oe=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ie={left:parseInt(oe.paddingLeft),right:parseInt(oe.paddingRight)};return!isNaN(ie.left)&&!isNaN(ie.right)&&(a.cachedPaddingH=ie),ie}function ri(a){return rt-a.display.nativeBarWidth}function sa(a){return a.display.scroller.clientWidth-ri(a)-a.display.barWidth}function Vi(a){return a.display.scroller.clientHeight-ri(a)-a.display.barHeight}function $i(a,b,oe){var ie=a.options.lineWrapping,me=ie&&sa(a);if(!b.measure.heights||ie&&b.measure.width!=me){var Be=b.measure.heights=[];if(ie){b.measure.width=me;for(var Je=b.text.firstChild.getClientRects(),ot=0;ot<Je.length-1;ot++){var lt=Je[ot],ht=Je[ot+1];Math.abs(lt.bottom-ht.bottom)>2&&Be.push((lt.bottom+ht.top)/2-oe.top)}}Be.push(oe.bottom-oe.top)}}function vi(a,b,oe){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var ie=0;ie<a.rest.length;ie++)if(a.rest[ie]==b)return{map:a.measure.maps[ie],cache:a.measure.caches[ie]};for(var me=0;me<a.rest.length;me++)if(Ct(a.rest[me])>oe)return{map:a.measure.maps[me],cache:a.measure.caches[me],before:!0}}function ro(a,b){b=Zt(b);var oe=Ct(b),ie=a.display.externalMeasured=new Cn(a.doc,b,oe);ie.lineN=oe;var me=ie.built=vn(a,ie);return ie.text=me.pre,ge(a.display.lineMeasure,me.pre),ie}function Ya(a,b,oe,ie){return na(a,ma(a,b),oe,ie)}function pa(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Aa(a,b)];var oe=a.display.externalMeasured;if(oe&&b>=oe.lineN&&b<oe.lineN+oe.size)return oe}function ma(a,b){var oe=Ct(b),ie=pa(a,oe);ie&&!ie.text?ie=null:ie&&ie.changes&&(ti(a,ie,oe,ua(a)),a.curOp.forceUpdate=!0),ie||(ie=ro(a,b));var me=vi(ie,b,oe);return{line:b,view:ie,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function na(a,b,oe,ie,me){b.before&&(oe=-1);var Be=oe+(ie||""),Je;return b.cache.hasOwnProperty(Be)?Je=b.cache[Be]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||($i(a,b.view,b.rect),b.hasHeights=!0),Je=ao(a,b,oe,ie),Je.bogus||(b.cache[Be]=Je)),{left:Je.left,right:Je.right,top:me?Je.rtop:Je.top,bottom:me?Je.rbottom:Je.bottom}}var Ca={left:0,right:0,top:0,bottom:0};function no(a,b,oe){for(var ie,me,Be,Je,ot,lt,ht=0;ht<a.length;ht+=3)if(ot=a[ht],lt=a[ht+1],b<ot?(me=0,Be=1,Je="left"):b<lt?(me=b-ot,Be=me+1):(ht==a.length-3||b==lt&&a[ht+3]>b)&&(Be=lt-ot,me=Be-1,b>=lt&&(Je="right")),me!=null){if(ie=a[ht+2],ot==lt&&oe==(ie.insertLeft?"left":"right")&&(Je=oe),oe=="left"&&me==0)for(;ht&&a[ht-2]==a[ht-3]&&a[ht-1].insertLeft;)ie=a[(ht-=3)+2],Je="left";if(oe=="right"&&me==lt-ot)for(;ht<a.length-3&&a[ht+3]==a[ht+4]&&!a[ht+5].insertLeft;)ie=a[(ht+=3)+2],Je="right";break}return{node:ie,start:me,end:Be,collapse:Je,coverStart:ot,coverEnd:lt}}function io(a,b){var oe=Ca;if(b=="left")for(var ie=0;ie<a.length&&(oe=a[ie]).left==oe.right;ie++);else for(var me=a.length-1;me>=0&&(oe=a[me]).left==oe.right;me--);return oe}function ao(a,b,oe,ie){var me=no(b.map,oe,ie),Be=me.node,Je=me.start,ot=me.end,lt=me.collapse,ht;if(Be.nodeType==3){for(var wt=0;wt<4;wt++){for(;Je&&Oe(b.line.text.charAt(me.coverStart+Je));)--Je;for(;me.coverStart+ot<me.coverEnd&&Oe(b.line.text.charAt(me.coverStart+ot));)++ot;if(ye&&x<9&&Je==0&&ot==me.coverEnd-me.coverStart?ht=Be.parentNode.getBoundingClientRect():ht=io(Re(Be,Je,ot).getClientRects(),ie),ht.left||ht.right||Je==0)break;ot=Je,Je=Je-1,lt="right"}ye&&x<11&&(ht=La(a.display.measure,ht))}else{Je>0&&(lt=ie="right");var Et;a.options.lineWrapping&&(Et=Be.getClientRects()).length>1?ht=Et[ie=="right"?Et.length-1:0]:ht=Be.getBoundingClientRect()}if(ye&&x<9&&!Je&&(!ht||!ht.left&&!ht.right)){var Wt=Be.parentNode.getClientRects()[0];Wt?ht={left:Wt.left,right:Wt.left+Ji(a.display),top:Wt.top,bottom:Wt.bottom}:ht=Ca}for(var Nt=ht.top-b.rect.top,cr=ht.bottom-b.rect.top,vr=(Nt+cr)/2,kr=b.view.measure.heights,Rr=0;Rr<kr.length-1&&!(vr<kr[Rr]);Rr++);var Hr=Rr?kr[Rr-1]:0,Mr=kr[Rr],Qr={left:(lt=="right"?ht.right:ht.left)-b.rect.left,right:(lt=="left"?ht.left:ht.right)-b.rect.left,top:Hr,bottom:Mr};return!ht.left&&!ht.right&&(Qr.bogus=!0),a.options.singleCursorHeightPerLine||(Qr.rtop=Nt,Qr.rbottom=cr),Qr}function La(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sn(a))return b;var oe=screen.logicalXDPI/screen.deviceXDPI,ie=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*oe,right:b.right*oe,top:b.top*ie,bottom:b.bottom*ie}}function $a(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function Ba(a){a.display.externalMeasure=null,Ae(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)$a(a.display.view[b])}function Ea(a){Ba(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Ja(){return ae&&le?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function oo(){return ae&&le?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Fa(a){var b=0;if(a.widgets)for(var oe=0;oe<a.widgets.length;++oe)a.widgets[oe].above&&(b+=di(a.widgets[oe]));return b}function ka(a,b,oe,ie,me){if(!me){var Be=Fa(b);oe.top+=Be,oe.bottom+=Be}if(ie=="line")return oe;ie||(ie="local");var Je=Cr(b);if(ie=="local"?Je+=Pn(a.display):Je-=a.display.viewOffset,ie=="page"||ie=="window"){var ot=a.display.lineSpace.getBoundingClientRect();Je+=ot.top+(ie=="window"?0:oo());var lt=ot.left+(ie=="window"?0:Ja());oe.left+=lt,oe.right+=lt}return oe.top+=Je,oe.bottom+=Je,oe}function Ta(a,b,oe){if(oe=="div")return b;var ie=b.left,me=b.top;if(oe=="page")ie-=Ja(),me-=oo();else if(oe=="local"||!oe){var Be=a.display.sizer.getBoundingClientRect();ie+=Be.left,me+=Be.top}var Je=a.display.lineSpace.getBoundingClientRect();return{left:ie-Je.left,top:me-Je.top}}function Fi(a,b,oe,ie,me){return ie||(ie=Vt(a.doc,b.line)),ka(a,ie,Ya(a,ie,b.ch,me),oe)}function hi(a,b,oe,ie,me,Be){ie=ie||Vt(a.doc,b.line),me||(me=ma(a,ie));function Je(cr,vr){var kr=na(a,me,cr,vr?"right":"left",Be);return vr?kr.left=kr.right:kr.right=kr.left,ka(a,ie,kr,oe)}var ot=St(ie,a.doc.direction),lt=b.ch,ht=b.sticky;if(lt>=ie.text.length?(lt=ie.text.length,ht="before"):lt<=0&&(lt=0,ht="after"),!ot)return Je(ht=="before"?lt-1:lt,ht=="before");function wt(cr,vr,kr){var Rr=ot[vr],Hr=Rr.level==1;return Je(kr?cr-1:cr,Hr!=kr)}var Et=ct(ot,lt,ht),Wt=dt,Nt=wt(lt,Et,ht=="before");return Wt!=null&&(Nt.other=wt(lt,Wt,ht!="before")),Nt}function Un(a,b){var oe=0;b=Pt(a.doc,b),a.options.lineWrapping||(oe=Ji(a.display)*b.ch);var ie=Vt(a.doc,b.line),me=Cr(ie)+Pn(a.display);return{left:oe,right:oe,top:me,bottom:me+ie.height}}function _n(a,b,oe,ie,me){var Be=jt(a,b,oe);return Be.xRel=me,ie&&(Be.outside=ie),Be}function gi(a,b,oe){var ie=a.doc;if(oe+=a.display.viewOffset,oe<0)return _n(ie.first,0,null,-1,-1);var me=kt(ie,oe),Be=ie.first+ie.size-1;if(me>Be)return _n(ie.first+ie.size-1,Vt(ie,Be).text.length,null,1,1);b<0&&(b=0);for(var Je=Vt(ie,me);;){var ot=la(a,Je,me,b,oe),lt=Ut(Je,ot.ch+(ot.xRel>0||ot.outside>0?1:0));if(!lt)return ot;var ht=lt.find(1);if(ht.line==me)return ht;Je=Vt(ie,me=ht.line)}}function pi(a,b,oe,ie){ie-=Fa(b);var me=b.text.length,Be=et(function(Je){return na(a,oe,Je-1).bottom<=ie},me,0);return me=et(function(Je){return na(a,oe,Je).top>ie},Be,me),{begin:Be,end:me}}function wi(a,b,oe,ie){oe||(oe=ma(a,b));var me=ka(a,b,na(a,oe,ie),"line").top;return pi(a,b,oe,me)}function Ti(a,b,oe,ie){return a.bottom<=oe?!1:a.top>oe?!0:(ie?a.left:a.right)>b}function la(a,b,oe,ie,me){me-=Cr(b);var Be=ma(a,b),Je=Fa(b),ot=0,lt=b.text.length,ht=!0,wt=St(b,a.doc.direction);if(wt){var Et=(a.options.lineWrapping?va:ia)(a,b,oe,Be,wt,ie,me);ht=Et.level!=1,ot=ht?Et.from:Et.to-1,lt=ht?Et.to:Et.from-1}var Wt=null,Nt=null,cr=et(function(En){var ln=na(a,Be,En);return ln.top+=Je,ln.bottom+=Je,Ti(ln,ie,me,!1)?(ln.top<=me&&ln.left<=ie&&(Wt=En,Nt=ln),!0):!1},ot,lt),vr,kr,Rr=!1;if(Nt){var Hr=ie-Nt.left<Nt.right-ie,Mr=Hr==ht;cr=Wt+(Mr?0:1),kr=Mr?"after":"before",vr=Hr?Nt.left:Nt.right}else{!ht&&(cr==lt||cr==ot)&&cr++,kr=cr==0?"after":cr==b.text.length?"before":na(a,Be,cr-(ht?1:0)).bottom+Je<=me==ht?"after":"before";var Qr=hi(a,jt(oe,cr,kr),"line",b,Be);vr=Qr.left,Rr=me<Qr.top?-1:me>=Qr.bottom?1:0}return cr=We(b.text,cr,1),_n(oe,cr,kr,Rr,ie-vr)}function ia(a,b,oe,ie,me,Be,Je){var ot=et(function(Et){var Wt=me[Et],Nt=Wt.level!=1;return Ti(hi(a,jt(oe,Nt?Wt.to:Wt.from,Nt?"before":"after"),"line",b,ie),Be,Je,!0)},0,me.length-1),lt=me[ot];if(ot>0){var ht=lt.level!=1,wt=hi(a,jt(oe,ht?lt.from:lt.to,ht?"after":"before"),"line",b,ie);Ti(wt,Be,Je,!0)&&wt.top>Je&&(lt=me[ot-1])}return lt}function va(a,b,oe,ie,me,Be,Je){var ot=pi(a,b,ie,Je),lt=ot.begin,ht=ot.end;/\s/.test(b.text.charAt(ht-1))&&ht--;for(var wt=null,Et=null,Wt=0;Wt<me.length;Wt++){var Nt=me[Wt];if(!(Nt.from>=ht||Nt.to<=lt)){var cr=Nt.level!=1,vr=na(a,ie,cr?Math.min(ht,Nt.to)-1:Math.max(lt,Nt.from)).right,kr=vr<Be?Be-vr+1e9:vr-Be;(!wt||Et>kr)&&(wt=Nt,Et=kr)}}return wt||(wt=me[me.length-1]),wt.from<lt&&(wt={from:lt,to:wt.to,level:wt.level}),wt.to>ht&&(wt={from:wt.from,to:ht,level:wt.level}),wt}var mi;function Pi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(mi==null){mi=be("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)mi.appendChild(document.createTextNode("x")),mi.appendChild(be("br"));mi.appendChild(document.createTextNode("x"))}ge(a.measure,mi);var oe=mi.offsetHeight/50;return oe>3&&(a.cachedTextHeight=oe),Ae(a.measure),oe||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=be("span","xxxxxxxxxx"),oe=be("pre",[b],"CodeMirror-line-like");ge(a.measure,oe);var ie=b.getBoundingClientRect(),me=(ie.right-ie.left)/10;return me>2&&(a.cachedCharWidth=me),me||10}function ua(a){for(var b=a.display,oe={},ie={},me=b.gutters.clientLeft,Be=b.gutters.firstChild,Je=0;Be;Be=Be.nextSibling,++Je){var ot=a.display.gutterSpecs[Je].className;oe[ot]=Be.offsetLeft+Be.clientLeft+me,ie[ot]=Be.clientWidth}return{fixedPos:Qa(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:oe,gutterWidth:ie,wrapperWidth:b.wrapper.clientWidth}}function Qa(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Co(a){var b=Pi(a.display),oe=a.options.lineWrapping,ie=oe&&Math.max(5,a.display.scroller.clientWidth/Ji(a.display)-3);return function(me){if(ar(a.doc,me))return 0;var Be=0;if(me.widgets)for(var Je=0;Je<me.widgets.length;Je++)me.widgets[Je].height&&(Be+=me.widgets[Je].height);return oe?Be+(Math.ceil(me.text.length/ie)||1)*b:Be+b}}function Eo(a){var b=a.doc,oe=Co(a);b.iter(function(ie){var me=oe(ie);me!=ie.height&&mn(ie,me)})}function wa(a,b,oe,ie){var me=a.display;if(!oe&&jr(b).getAttribute("cm-not-content")=="true")return null;var Be,Je,ot=me.lineSpace.getBoundingClientRect();try{Be=b.clientX-ot.left,Je=b.clientY-ot.top}catch(Et){return null}var lt=gi(a,Be,Je),ht;if(ie&&lt.xRel>0&&(ht=Vt(a.doc,lt.line).text).length==lt.ch){var wt=Ne(ht,ht.length,a.options.tabSize)-ht.length;lt=jt(lt.line,Math.max(0,Math.round((Be-Ki(a.display).left)/Ji(a.display))-wt))}return lt}function Aa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var oe=a.display.view,ie=0;ie<oe.length;ie++)if(b-=oe[ie].size,b<0)return ie}function Ui(a,b,oe,ie){b==null&&(b=a.doc.first),oe==null&&(oe=a.doc.first+a.doc.size),ie||(ie=0);var me=a.display;if(ie&&oe<me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>b)&&(me.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=me.viewTo)Dn&&Jt(a.doc,b)<me.viewTo&&Qi(a);else if(oe<=me.viewFrom)Dn&&Xt(a.doc,oe+ie)>me.viewFrom?Qi(a):(me.viewFrom+=ie,me.viewTo+=ie);else if(b<=me.viewFrom&&oe>=me.viewTo)Qi(a);else if(b<=me.viewFrom){var Be=so(a,oe,oe+ie,1);Be?(me.view=me.view.slice(Be.index),me.viewFrom=Be.lineN,me.viewTo+=ie):Qi(a)}else if(oe>=me.viewTo){var Je=so(a,b,b,-1);Je?(me.view=me.view.slice(0,Je.index),me.viewTo=Je.lineN):Qi(a)}else{var ot=so(a,b,b,-1),lt=so(a,oe,oe+ie,1);ot&&lt?(me.view=me.view.slice(0,ot.index).concat(jn(a,ot.lineN,lt.lineN)).concat(me.view.slice(lt.index)),me.viewTo+=ie):Qi(a)}var ht=me.externalMeasured;ht&&(oe<ht.lineN?ht.lineN+=ie:b<ht.lineN+ht.size&&(me.externalMeasured=null))}function ca(a,b,oe){a.curOp.viewChanged=!0;var ie=a.display,me=a.display.externalMeasured;if(me&&b>=me.lineN&&b<me.lineN+me.size&&(ie.externalMeasured=null),!(b<ie.viewFrom||b>=ie.viewTo)){var Be=ie.view[Aa(a,b)];if(Be.node!=null){var Je=Be.changes||(Be.changes=[]);qe(Je,oe)==-1&&Je.push(oe)}}}function Qi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function so(a,b,oe,ie){var me=Aa(a,b),Be,Je=a.display.view;if(!Dn||oe==a.doc.first+a.doc.size)return{index:me,lineN:oe};for(var ot=a.display.viewFrom,lt=0;lt<me;lt++)ot+=Je[lt].size;if(ot!=b){if(ie>0){if(me==Je.length-1)return null;Be=ot+Je[me].size-b,me++}else Be=ot-b;b+=Be,oe+=Be}for(;Jt(a.doc,oe)!=oe;){if(me==(ie<0?0:Je.length-1))return null;oe+=ie*Je[me-(ie<0?1:0)].size,me+=ie}return{index:me,lineN:oe}}function Jo(a,b,oe){var ie=a.display,me=ie.view;me.length==0||b>=ie.viewTo||oe<=ie.viewFrom?(ie.view=jn(a,b,oe),ie.viewFrom=b):(ie.viewFrom>b?ie.view=jn(a,b,ie.viewFrom).concat(ie.view):ie.viewFrom<b&&(ie.view=ie.view.slice(Aa(a,b))),ie.viewFrom=b,ie.viewTo<oe?ie.view=ie.view.concat(jn(a,ie.viewTo,oe)):ie.viewTo>oe&&(ie.view=ie.view.slice(0,Aa(a,oe)))),ie.viewTo=oe}function Qo(a){for(var b=a.display.view,oe=0,ie=0;ie<b.length;ie++){var me=b[ie];!me.hidden&&(!me.node||me.changes)&&++oe}return oe}function Ua(a){a.display.input.showSelection(a.display.input.prepareSelection())}function qo(a,b){b===void 0&&(b=!0);for(var oe=a.doc,ie={},me=ie.cursors=document.createDocumentFragment(),Be=ie.selection=document.createDocumentFragment(),Je=0;Je<oe.sel.ranges.length;Je++)if(!(!b&&Je==oe.sel.primIndex)){var ot=oe.sel.ranges[Je];if(!(ot.from().line>=a.display.viewTo||ot.to().line<a.display.viewFrom)){var lt=ot.empty();(lt||a.options.showCursorWhenSelecting)&&ko(a,ot.head,me),lt||es(a,ot,Be)}}return ie}function ko(a,b,oe){var ie=hi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),me=oe.appendChild(be("div","\xA0","CodeMirror-cursor"));if(me.style.left=ie.left+"px",me.style.top=ie.top+"px",me.style.height=Math.max(0,ie.bottom-ie.top)*a.options.cursorHeight+"px",ie.other){var Be=oe.appendChild(be("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Be.style.display="",Be.style.left=ie.other.left+"px",Be.style.top=ie.other.top+"px",Be.style.height=(ie.other.bottom-ie.other.top)*.85+"px"}}function ja(a,b){return a.top-b.top||a.left-b.left}function es(a,b,oe){var ie=a.display,me=a.doc,Be=document.createDocumentFragment(),Je=Ki(a.display),ot=Je.left,lt=Math.max(ie.sizerWidth,sa(a)-ie.sizer.offsetLeft)-Je.right,ht=me.direction=="ltr";function wt(Mr,Qr,En,ln){Qr<0&&(Qr=0),Qr=Math.round(Qr),ln=Math.round(ln),Be.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+Mr+`px;
top: `+Qr+"px; width: "+(En==null?lt-Mr:En)+`px;
height: `+(ln-Qr)+"px"))}function Et(Mr,Qr,En){var ln=Vt(me,Mr),Vn=ln.text.length,ci,Li;function xi(Oi,ta){return Fi(a,jt(Mr,Oi),"div",ln,ta)}function oa(Oi,ta,Wi){var Ri=wi(a,ln,null,Oi),Di=ta=="ltr"==(Wi=="after")?"left":"right",Ei=Wi=="after"?Ri.begin:Ri.end-(/\s/.test(ln.text.charAt(Ri.end-1))?2:1);return xi(Ei,Di)[Di]}var ea=St(ln,me.direction);return nt(ea,Qr||0,En==null?Vn:En,function(Oi,ta,Wi,Ri){var Di=Wi=="ltr",Ei=xi(Oi,Di?"left":"right"),ra=xi(ta-1,Di?"right":"left"),xo=Qr==null&&Oi==0,Xa=En==null&&ta==Vn,Hi=Ri==0,Sa=!ea||Ri==ea.length-1;if(ra.top-Ei.top<=3){var Bi=(ht?xo:Xa)&&Hi,Bs=(ht?Xa:xo)&&Sa,Na=Bi?ot:(Di?Ei:ra).left,eo=Bs?lt:(Di?ra:Ei).right;wt(Na,Ei.top,eo-Na,Ei.bottom)}else{var to,Yi,So,Fs;Di?(to=ht&&xo&&Hi?ot:Ei.left,Yi=ht?lt:oa(Oi,Wi,"before"),So=ht?ot:oa(ta,Wi,"after"),Fs=ht&&Xa&&Sa?lt:ra.right):(to=ht?oa(Oi,Wi,"before"):ot,Yi=!ht&&xo&&Hi?lt:Ei.right,So=!ht&&Xa&&Sa?ot:ra.left,Fs=ht?oa(ta,Wi,"after"):lt),wt(to,Ei.top,Yi-to,Ei.bottom),Ei.bottom<ra.top&&wt(ot,Ei.bottom,null,ra.top),wt(So,ra.top,Fs-So,ra.bottom)}(!ci||ja(Ei,ci)<0)&&(ci=Ei),ja(ra,ci)<0&&(ci=ra),(!Li||ja(Ei,Li)<0)&&(Li=Ei),ja(ra,Li)<0&&(Li=ra)}),{start:ci,end:Li}}var Wt=b.from(),Nt=b.to();if(Wt.line==Nt.line)Et(Wt.line,Wt.ch,Nt.ch);else{var cr=Vt(me,Wt.line),vr=Vt(me,Nt.line),kr=Zt(cr)==Zt(vr),Rr=Et(Wt.line,Wt.ch,kr?cr.text.length+1:null).end,Hr=Et(Nt.line,kr?0:null,Nt.ch).start;kr&&(Rr.top<Hr.top-2?(wt(Rr.right,Rr.top,null,Rr.bottom),wt(ot,Hr.top,Hr.left,Hr.bottom)):wt(Rr.right,Rr.top,Hr.left-Rr.right,Rr.bottom)),Rr.bottom<Hr.top&&wt(ot,Rr.bottom,null,Hr.top)}oe.appendChild(Be)}function To(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var oe=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Wa(a),b.cursorDiv.style.visibility=(oe=!oe)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Ao(a){a.state.focused||(a.display.input.focus(),Oo(a))}function jo(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Wa(a))},100)}function Oo(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(bt(a,"focus",a,b),a.state.focused=!0,Pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),z&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),To(a))}function Wa(a,b){a.state.delayingBlurEvent||(a.state.focused&&(bt(a,"blur",a,b),a.state.focused=!1,Me(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function lo(a){for(var b=a.display,oe=b.lineDiv.offsetTop,ie=0;ie<b.view.length;ie++){var me=b.view[ie],Be=a.options.lineWrapping,Je=void 0,ot=0;if(!me.hidden){if(ye&&x<8){var lt=me.node.offsetTop+me.node.offsetHeight;Je=lt-oe,oe=lt}else{var ht=me.node.getBoundingClientRect();Je=ht.bottom-ht.top,!Be&&me.text.firstChild&&(ot=me.text.firstChild.getBoundingClientRect().right-ht.left-1)}var wt=me.line.height-Je;if((wt>.005||wt<-.005)&&(mn(me.line,Je),Do(me.line),me.rest))for(var Et=0;Et<me.rest.length;Et++)Do(me.rest[Et]);if(ot>a.display.sizerWidth){var Wt=Math.ceil(ot/Ji(a.display));Wt>a.display.maxLineLength&&(a.display.maxLineLength=Wt,a.display.maxLine=me.line,a.display.maxLineChanged=!0)}}}}function Do(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var oe=a.widgets[b],ie=oe.node.parentNode;ie&&(oe.height=ie.offsetHeight)}}function Oa(a,b,oe){var ie=oe&&oe.top!=null?Math.max(0,oe.top):a.scroller.scrollTop;ie=Math.floor(ie-Pn(a));var me=oe&&oe.bottom!=null?oe.bottom:ie+a.wrapper.clientHeight,Be=kt(b,ie),Je=kt(b,me);if(oe&&oe.ensure){var ot=oe.ensure.from.line,lt=oe.ensure.to.line;ot<Be?(Be=ot,Je=kt(b,Cr(Vt(b,ot))+a.wrapper.clientHeight)):Math.min(lt,b.lastLine())>=Je&&(Be=kt(b,Cr(Vt(b,lt))-a.wrapper.clientHeight),Je=lt)}return{from:Be,to:Math.max(Je,Be+1)}}function Po(a,b){if(!ft(a,"scrollCursorIntoView")){var oe=a.display,ie=oe.sizer.getBoundingClientRect(),me=null;if(b.top+ie.top<0?me=!0:b.bottom+ie.top>(window.innerHeight||document.documentElement.clientHeight)&&(me=!1),me!=null&&!re){var Be=be("div","\u200B",null,`position: absolute;
top: `+(b.top-oe.viewOffset-Pn(a.display))+`px;
height: `+(b.bottom-b.top+ri(a)+oe.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Be),Be.scrollIntoView(me),a.display.lineSpace.removeChild(Be)}}}function _o(a,b,oe,ie){ie==null&&(ie=0);var me;!a.options.lineWrapping&&b==oe&&(b=b.ch?jt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,oe=b.sticky=="before"?jt(b.line,b.ch+1,"before"):b);for(var Be=0;Be<5;Be++){var Je=!1,ot=hi(a,b),lt=!oe||oe==b?ot:hi(a,oe);me={left:Math.min(ot.left,lt.left),top:Math.min(ot.top,lt.top)-ie,right:Math.max(ot.left,lt.left),bottom:Math.max(ot.bottom,lt.bottom)+ie};var ht=uo(a,me),wt=a.doc.scrollTop,Et=a.doc.scrollLeft;if(ht.scrollTop!=null&&(Pa(a,ht.scrollTop),Math.abs(a.doc.scrollTop-wt)>1&&(Je=!0)),ht.scrollLeft!=null&&(_a(a,ht.scrollLeft),Math.abs(a.doc.scrollLeft-Et)>1&&(Je=!0)),!Je)break}return me}function ts(a,b){var oe=uo(a,b);oe.scrollTop!=null&&Pa(a,oe.scrollTop),oe.scrollLeft!=null&&_a(a,oe.scrollLeft)}function uo(a,b){var oe=a.display,ie=Pi(a.display);b.top<0&&(b.top=0);var me=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:oe.scroller.scrollTop,Be=Vi(a),Je={};b.bottom-b.top>Be&&(b.bottom=b.top+Be);var ot=a.doc.height+bi(oe),lt=b.top<ie,ht=b.bottom>ot-ie;if(b.top<me)Je.scrollTop=lt?0:b.top;else if(b.bottom>me+Be){var wt=Math.min(b.top,(ht?ot:b.bottom)-Be);wt!=me&&(Je.scrollTop=wt)}var Et=a.options.fixedGutter?0:oe.gutters.offsetWidth,Wt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:oe.scroller.scrollLeft-Et,Nt=sa(a)-oe.gutters.offsetWidth,cr=b.right-b.left>Nt;return cr&&(b.right=b.left+Nt),b.left<10?Je.scrollLeft=0:b.left<Wt?Je.scrollLeft=Math.max(0,b.left+Et-(cr?0:10)):b.right>Nt+Wt-3&&(Je.scrollLeft=b.right+(cr?0:10)-Nt),Je}function co(a,b){b!=null&&(Za(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Da(a){Za(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function qa(a,b,oe){(b!=null||oe!=null)&&Za(a),b!=null&&(a.curOp.scrollLeft=b),oe!=null&&(a.curOp.scrollTop=oe)}function rs(a,b){Za(a),a.curOp.scrollToPos=b}function Za(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var oe=Un(a,b.from),ie=Un(a,b.to);Ro(a,oe,ie,b.margin)}}function Ro(a,b,oe,ie){var me=uo(a,{left:Math.min(b.left,oe.left),top:Math.min(b.top,oe.top)-ie,right:Math.max(b.right,oe.right),bottom:Math.max(b.bottom,oe.bottom)+ie});qa(a,me.scrollLeft,me.scrollTop)}function Pa(a,b){Math.abs(a.doc.scrollTop-b)<2||(Ye||bs(a,{top:b}),Mo(a,b,!0),Ye&&bs(a),Io(a,100))}function Mo(a,b,oe){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!oe)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function _a(a,b,oe,ie){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((oe?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!ie)&&(a.doc.scrollLeft=b,Ws(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Bn(a){var b=a.display,oe=b.gutters.offsetWidth,ie=Math.round(a.doc.height+bi(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?oe:0,docHeight:ie,scrollHeight:ie+ri(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:oe}}var Fn=function(a,b,oe){this.cm=oe;var ie=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),me=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ie.tabIndex=me.tabIndex=-1,a(ie),a(me),xt(ie,"scroll",function(){ie.clientHeight&&b(ie.scrollTop,"vertical")}),xt(me,"scroll",function(){me.clientWidth&&b(me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ye&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fn.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,oe=a.scrollHeight>a.clientHeight+1,ie=a.nativeBarWidth;if(oe){this.vert.style.display="block",this.vert.style.bottom=b?ie+"px":"0";var me=a.viewHeight-(b?ie:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+me)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=oe?ie+"px":"0",this.horiz.style.left=a.barLeft+"px";var Be=a.viewWidth-a.barLeft-(oe?ie:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Be)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(ie==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:oe?ie:0,bottom:b?ie:0}},Fn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fn.prototype.zeroWidthHack=function(){var a=he&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fe,this.disableVert=new Fe},Fn.prototype.enableZeroWidthBar=function(a,b,oe){a.style.pointerEvents="auto";function ie(){var me=a.getBoundingClientRect(),Be=oe=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);Be!=a?a.style.pointerEvents="none":b.set(1e3,ie)}b.set(1e3,ie)},Fn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Ci=function(){};Ci.prototype.update=function(){return{bottom:0,right:0}},Ci.prototype.setScrollLeft=function(){},Ci.prototype.setScrollTop=function(){},Ci.prototype.clear=function(){};function Mi(a,b){b||(b=Bn(a));var oe=a.display.barWidth,ie=a.display.barHeight;_i(a,b);for(var me=0;me<4&&oe!=a.display.barWidth||ie!=a.display.barHeight;me++)oe!=a.display.barWidth&&a.options.lineWrapping&&lo(a),_i(a,Bn(a)),oe=a.display.barWidth,ie=a.display.barHeight}function _i(a,b){var oe=a.display,ie=oe.scrollbars.update(b);oe.sizer.style.paddingRight=(oe.barWidth=ie.right)+"px",oe.sizer.style.paddingBottom=(oe.barHeight=ie.bottom)+"px",oe.heightForcer.style.borderBottom=ie.bottom+"px solid transparent",ie.right&&ie.bottom?(oe.scrollbarFiller.style.display="block",oe.scrollbarFiller.style.height=ie.bottom+"px",oe.scrollbarFiller.style.width=ie.right+"px"):oe.scrollbarFiller.style.display="",ie.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(oe.gutterFiller.style.display="block",oe.gutterFiller.style.height=ie.bottom+"px",oe.gutterFiller.style.width=b.gutterWidth+"px"):oe.gutterFiller.style.display=""}var Ra={native:Fn,null:Ci};function xa(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Me(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ra[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),xt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,oe){oe=="horizontal"?_a(a,b):Pa(a,b)},a),a.display.scrollbars.addClass&&Pe(a.display.wrapper,a.display.scrollbars.addClass)}var Ma=0;function fa(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ma},Si(a.curOp)}function ga(a){var b=a.curOp;b&&Gi(b,function(oe){for(var ie=0;ie<oe.ops.length;ie++)oe.ops[ie].cm.curOp=null;Vl(oe)})}function Vl(a){for(var b=a.ops,oe=0;oe<b.length;oe++)Xl(b[oe]);for(var ie=0;ie<b.length;ie++)Yl(b[ie]);for(var me=0;me<b.length;me++)$l(b[me]);for(var Be=0;Be<b.length;Be++)Jl(b[Be]);for(var Je=0;Je<b.length;Je++)Ql(b[Je])}function Xl(a){var b=a.cm,oe=b.display;eu(b),a.updateMaxLine&&Ar(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<oe.viewFrom||a.scrollToPos.to.line>=oe.viewTo)||oe.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new ns(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Yl(a){a.updatedDisplay=a.mustUpdate&&ys(a.cm,a.update)}function $l(a){var b=a.cm,oe=b.display;a.updatedDisplay&&lo(b),a.barMeasure=Bn(b),oe.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Ya(b,oe.maxLine,oe.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(oe.scroller.clientWidth,oe.sizer.offsetLeft+a.adjustWidthTo+ri(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,oe.sizer.offsetLeft+a.adjustWidthTo-sa(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=oe.input.prepareSelection())}function Jl(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&_a(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var oe=a.focus&&a.focus==ke();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,oe),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Mi(b,a.barMeasure),a.updatedDisplay&&xs(b,a.barMeasure),a.selectionChanged&&To(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),oe&&Ao(a.cm)}function Ql(a){var b=a.cm,oe=b.display,ie=b.doc;if(a.updatedDisplay&&Us(b,a.update),oe.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(oe.wheelStartX=oe.wheelStartY=null),a.scrollTop!=null&&Mo(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&_a(b,a.scrollLeft,!0,!0),a.scrollToPos){var me=_o(b,Pt(ie,a.scrollToPos.from),Pt(ie,a.scrollToPos.to),a.scrollToPos.margin);Po(b,me)}var Be=a.maybeHiddenMarkers,Je=a.maybeUnhiddenMarkers;if(Be)for(var ot=0;ot<Be.length;++ot)Be[ot].lines.length||bt(Be[ot],"hide");if(Je)for(var lt=0;lt<Je.length;++lt)Je[lt].lines.length&&bt(Je[lt],"unhide");oe.wrapper.offsetHeight&&(ie.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&bt(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function aa(a,b){if(a.curOp)return b();fa(a);try{return b()}finally{ga(a)}}function Ii(a,b){return function(){if(a.curOp)return b.apply(a,arguments);fa(a);try{return b.apply(a,arguments)}finally{ga(a)}}}function Xi(a){return function(){if(this.curOp)return a.apply(this,arguments);fa(this);try{return a.apply(this,arguments)}finally{ga(this)}}}function Ni(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);fa(b);try{return a.apply(this,arguments)}finally{ga(b)}}}function Io(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,$e(ql,a))}function ql(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var oe=+new Date+a.options.workTime,ie=Ln(a,b.highlightFrontier),me=[];b.iter(ie.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Be){if(ie.line>=a.display.viewFrom){var Je=Be.styles,ot=Be.text.length>a.options.maxHighlightLength?Zr(b.mode,ie.state):null,lt=Wr(a,Be,ie,!0);ot&&(ie.state=ot),Be.styles=lt.styles;var ht=Be.styleClasses,wt=lt.classes;wt?Be.styleClasses=wt:ht&&(Be.styleClasses=null);for(var Et=!Je||Je.length!=Be.styles.length||ht!=wt&&(!ht||!wt||ht.bgClass!=wt.bgClass||ht.textClass!=wt.textClass),Wt=0;!Et&&Wt<Je.length;++Wt)Et=Je[Wt]!=Be.styles[Wt];Et&&me.push(ie.line),Be.stateAfter=ie.save(),ie.nextLine()}else Be.text.length<=a.options.maxHighlightLength&&yn(a,Be.text,ie),Be.stateAfter=ie.line%5==0?ie.save():null,ie.nextLine();if(+new Date>oe)return Io(a,a.options.workDelay),!0}),b.highlightFrontier=ie.line,b.modeFrontier=Math.max(b.modeFrontier,ie.line),me.length&&aa(a,function(){for(var Be=0;Be<me.length;Be++)ca(a,me[Be],"text")})}}var ns=function(a,b,oe){var ie=a.display;this.viewport=b,this.visible=Oa(ie,a.doc,b),this.editorIsHidden=!ie.wrapper.offsetWidth,this.wrapperHeight=ie.wrapper.clientHeight,this.wrapperWidth=ie.wrapper.clientWidth,this.oldDisplayWidth=sa(a),this.force=oe,this.dims=ua(a),this.events=[]};ns.prototype.signal=function(a,b){At(a,b)&&this.events.push(arguments)},ns.prototype.finish=function(){for(var a=0;a<this.events.length;a++)bt.apply(null,this.events[a])};function eu(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=ri(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=ri(a)+"px",b.scrollbarsClipped=!0)}function tu(a){if(a.hasFocus())return null;var b=ke();if(!b||!Ie(a.display.lineDiv,b))return null;var oe={activeElt:b};if(window.getSelection){var ie=window.getSelection();ie.anchorNode&&ie.extend&&Ie(a.display.lineDiv,ie.anchorNode)&&(oe.anchorNode=ie.anchorNode,oe.anchorOffset=ie.anchorOffset,oe.focusNode=ie.focusNode,oe.focusOffset=ie.focusOffset)}return oe}function ru(a){if(!(!a||!a.activeElt||a.activeElt==ke())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ie(document.body,a.anchorNode)&&Ie(document.body,a.focusNode))){var b=window.getSelection(),oe=document.createRange();oe.setEnd(a.anchorNode,a.anchorOffset),oe.collapse(!1),b.removeAllRanges(),b.addRange(oe),b.extend(a.focusNode,a.focusOffset)}}function ys(a,b){var oe=a.display,ie=a.doc;if(b.editorIsHidden)return Qi(a),!1;if(!b.force&&b.visible.from>=oe.viewFrom&&b.visible.to<=oe.viewTo&&(oe.updateLineNumbers==null||oe.updateLineNumbers>=oe.viewTo)&&oe.renderedView==oe.view&&Qo(a)==0)return!1;Zs(a)&&(Qi(a),b.dims=ua(a));var me=ie.first+ie.size,Be=Math.max(b.visible.from-a.options.viewportMargin,ie.first),Je=Math.min(me,b.visible.to+a.options.viewportMargin);oe.viewFrom<Be&&Be-oe.viewFrom<20&&(Be=Math.max(ie.first,oe.viewFrom)),oe.viewTo>Je&&oe.viewTo-Je<20&&(Je=Math.min(me,oe.viewTo)),Dn&&(Be=Jt(a.doc,Be),Je=Xt(a.doc,Je));var ot=Be!=oe.viewFrom||Je!=oe.viewTo||oe.lastWrapHeight!=b.wrapperHeight||oe.lastWrapWidth!=b.wrapperWidth;Jo(a,Be,Je),oe.viewOffset=Cr(Vt(a.doc,oe.viewFrom)),a.display.mover.style.top=oe.viewOffset+"px";var lt=Qo(a);if(!ot&&lt==0&&!b.force&&oe.renderedView==oe.view&&(oe.updateLineNumbers==null||oe.updateLineNumbers>=oe.viewTo))return!1;var ht=tu(a);return lt>4&&(oe.lineDiv.style.display="none"),nu(a,oe.updateLineNumbers,b.dims),lt>4&&(oe.lineDiv.style.display=""),oe.renderedView=oe.view,ru(ht),Ae(oe.cursorDiv),Ae(oe.selectionDiv),oe.gutters.style.height=oe.sizer.style.minHeight=0,ot&&(oe.lastWrapHeight=b.wrapperHeight,oe.lastWrapWidth=b.wrapperWidth,Io(a,400)),oe.updateLineNumbers=null,!0}function Us(a,b){for(var oe=b.viewport,ie=!0;;ie=!1){if(!ie||!a.options.lineWrapping||b.oldDisplayWidth==sa(a)){if(oe&&oe.top!=null&&(oe={top:Math.min(a.doc.height+bi(a.display)-Vi(a),oe.top)}),b.visible=Oa(a.display,a.doc,oe),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else ie&&(b.visible=Oa(a.display,a.doc,oe));if(!ys(a,b))break;lo(a);var me=Bn(a);Ua(a),Mi(a,me),xs(a,me),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function bs(a,b){var oe=new ns(a,b);if(ys(a,oe)){lo(a),Us(a,oe);var ie=Bn(a);Ua(a),Mi(a,ie),xs(a,ie),oe.finish()}}function nu(a,b,oe){var ie=a.display,me=a.options.lineNumbers,Be=ie.lineDiv,Je=Be.firstChild;function ot(cr){var vr=cr.nextSibling;return z&&he&&a.display.currentWheelTarget==cr?cr.style.display="none":cr.parentNode.removeChild(cr),vr}for(var lt=ie.view,ht=ie.viewFrom,wt=0;wt<lt.length;wt++){var Et=lt[wt];if(!Et.hidden)if(!Et.node||Et.node.parentNode!=Be){var Wt=gn(a,Et,ht,oe);Be.insertBefore(Wt,Je)}else{for(;Je!=Et.node;)Je=ot(Je);var Nt=me&&b!=null&&b<=ht&&Et.lineNumber;Et.changes&&(qe(Et.changes,"gutter")>-1&&(Nt=!1),ti(a,Et,ht,oe)),Nt&&(Ae(Et.lineNumber),Et.lineNumber.appendChild(document.createTextNode(Kt(a.options,ht)))),Je=Et.node.nextSibling}ht+=Et.size}for(;Je;)Je=ot(Je)}function ws(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function xs(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+ri(a)+"px"}function Ws(a){var b=a.display,oe=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var ie=Qa(b)-b.scroller.scrollLeft+a.doc.scrollLeft,me=b.gutters.offsetWidth,Be=ie+"px",Je=0;Je<oe.length;Je++)if(!oe[Je].hidden){a.options.fixedGutter&&(oe[Je].gutter&&(oe[Je].gutter.style.left=Be),oe[Je].gutterBackground&&(oe[Je].gutterBackground.style.left=Be));var ot=oe[Je].alignable;if(ot)for(var lt=0;lt<ot.length;lt++)ot[lt].style.left=Be}a.options.fixedGutter&&(b.gutters.style.left=ie+me+"px")}}function Zs(a){if(!a.options.lineNumbers)return!1;var b=a.doc,oe=Kt(a.options,b.first+b.size-1),ie=a.display;if(oe.length!=ie.lineNumChars){var me=ie.measure.appendChild(be("div",[be("div",oe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Be=me.firstChild.offsetWidth,Je=me.offsetWidth-Be;return ie.lineGutter.style.width="",ie.lineNumInnerWidth=Math.max(Be,ie.lineGutter.offsetWidth-Je)+1,ie.lineNumWidth=ie.lineNumInnerWidth+Je,ie.lineNumChars=ie.lineNumInnerWidth?oe.length:-1,ie.lineGutter.style.width=ie.lineNumWidth+"px",ws(a.display),!0}return!1}function Ss(a,b){for(var oe=[],ie=!1,me=0;me<a.length;me++){var Be=a[me],Je=null;if(typeof Be!="string"&&(Je=Be.style,Be=Be.className),Be=="CodeMirror-linenumbers")if(b)ie=!0;else continue;oe.push({className:Be,style:Je})}return b&&!ie&&oe.push({className:"CodeMirror-linenumbers",style:null}),oe}function zs(a){var b=a.gutters,oe=a.gutterSpecs;Ae(b),a.lineGutter=null;for(var ie=0;ie<oe.length;++ie){var me=oe[ie],Be=me.className,Je=me.style,ot=b.appendChild(be("div",null,"CodeMirror-gutter "+Be));Je&&(ot.style.cssText=Je),Be=="CodeMirror-linenumbers"&&(a.lineGutter=ot,ot.style.width=(a.lineNumWidth||1)+"px")}b.style.display=oe.length?"":"none",ws(a)}function No(a){zs(a.display),Ui(a),Ws(a)}function iu(a,b,oe,ie){var me=this;this.input=oe,me.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=Ee("div",null,"CodeMirror-code"),me.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=be("div",null,"CodeMirror-cursors"),me.measure=be("div",null,"CodeMirror-measure"),me.lineMeasure=be("div",null,"CodeMirror-measure"),me.lineSpace=Ee("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var Be=Ee("div",[me.lineSpace],"CodeMirror-lines");me.mover=be("div",[Be],null,"position: relative"),me.sizer=be("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=be("div",null,null,"position: absolute; height: "+rt+"px; width: 1px;"),me.gutters=be("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=be("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=be("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),ye&&x<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!z&&!(Ye&&ue)&&(me.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(me.wrapper):a(me.wrapper)),me.viewFrom=me.viewTo=b.first,me.reportedViewFrom=me.reportedViewTo=b.first,me.view=[],me.renderedView=null,me.externalMeasured=null,me.viewOffset=0,me.lastWrapHeight=me.lastWrapWidth=0,me.updateLineNumbers=null,me.nativeBarWidth=me.barHeight=me.barWidth=0,me.scrollbarsClipped=!1,me.lineNumWidth=me.lineNumInnerWidth=me.lineNumChars=null,me.alignWidgets=!1,me.cachedCharWidth=me.cachedTextHeight=me.cachedPaddingH=null,me.maxLine=null,me.maxLineLength=0,me.maxLineChanged=!1,me.wheelDX=me.wheelDY=me.wheelStartX=me.wheelStartY=null,me.shift=!1,me.selForContextMenu=null,me.activeTouch=null,me.gutterSpecs=Ss(ie.gutters,ie.lineNumbers),zs(me),oe.init(me)}var is=0,da=null;ye?da=-.53:Ye?da=15:ae?da=-.7:fe&&(da=-1/3);function Hs(a){var b=a.wheelDeltaX,oe=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),oe==null&&a.detail&&a.axis==a.VERTICAL_AXIS?oe=a.detail:oe==null&&(oe=a.wheelDelta),{x:b,y:oe}}function au(a){var b=Hs(a);return b.x*=da,b.y*=da,b}function Gs(a,b){var oe=Hs(b),ie=oe.x,me=oe.y,Be=a.display,Je=Be.scroller,ot=Je.scrollWidth>Je.clientWidth,lt=Je.scrollHeight>Je.clientHeight;if(ie&&ot||me&&lt){if(me&&he&&z){e:for(var ht=b.target,wt=Be.view;ht!=Je;ht=ht.parentNode)for(var Et=0;Et<wt.length;Et++)if(wt[Et].node==ht){a.display.currentWheelTarget=ht;break e}}if(ie&&!Ye&&!ee&&da!=null){me&&lt&&Pa(a,Math.max(0,Je.scrollTop+me*da)),_a(a,Math.max(0,Je.scrollLeft+ie*da)),(!me||me&&lt)&&$t(b),Be.wheelStartX=null;return}if(me&&da!=null){var Wt=me*da,Nt=a.doc.scrollTop,cr=Nt+Be.wrapper.clientHeight;Wt<0?Nt=Math.max(0,Nt+Wt-50):cr=Math.min(a.doc.height,cr+Wt+50),bs(a,{top:Nt,bottom:cr})}is<20&&(Be.wheelStartX==null?(Be.wheelStartX=Je.scrollLeft,Be.wheelStartY=Je.scrollTop,Be.wheelDX=ie,Be.wheelDY=me,setTimeout(function(){if(Be.wheelStartX!=null){var vr=Je.scrollLeft-Be.wheelStartX,kr=Je.scrollTop-Be.wheelStartY,Rr=kr&&Be.wheelDY&&kr/Be.wheelDY||vr&&Be.wheelDX&&vr/Be.wheelDX;Be.wheelStartX=Be.wheelStartY=null,Rr&&(da=(da*is+Rr)/(is+1),++is)}},200)):(Be.wheelDX+=ie,Be.wheelDY+=me))}}var ha=function(a,b){this.ranges=a,this.primIndex=b};ha.prototype.primary=function(){return this.ranges[this.primIndex]},ha.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var oe=this.ranges[b],ie=a.ranges[b];if(!dr(oe.anchor,ie.anchor)||!dr(oe.head,ie.head))return!1}return!0},ha.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new ni(hr(this.ranges[b].anchor),hr(this.ranges[b].head));return new ha(a,this.primIndex)},ha.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},ha.prototype.contains=function(a,b){b||(b=a);for(var oe=0;oe<this.ranges.length;oe++){var ie=this.ranges[oe];if(nr(b,ie.from())>=0&&nr(a,ie.to())<=0)return oe}return-1};var ni=function(a,b){this.anchor=a,this.head=b};ni.prototype.from=function(){return ur(this.anchor,this.head)},ni.prototype.to=function(){return br(this.anchor,this.head)},ni.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ya(a,b,oe){var ie=a&&a.options.selectionsMayTouch,me=b[oe];b.sort(function(Wt,Nt){return nr(Wt.from(),Nt.from())}),oe=qe(b,me);for(var Be=1;Be<b.length;Be++){var Je=b[Be],ot=b[Be-1],lt=nr(ot.to(),Je.from());if(ie&&!Je.empty()?lt>0:lt>=0){var ht=ur(ot.from(),Je.from()),wt=br(ot.to(),Je.to()),Et=ot.empty()?Je.from()==Je.head:ot.from()==ot.head;Be<=oe&&--oe,b.splice(--Be,2,new ni(Et?wt:ht,Et?ht:wt))}}return new ha(b,oe)}function za(a,b){return new ha([new ni(a,b||a)],0)}function Ha(a){return a.text?jt(a.from.line+a.text.length-1,st(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ks(a,b){if(nr(a,b.from)<0)return a;if(nr(a,b.to)<=0)return Ha(b);var oe=a.line+b.text.length-(b.to.line-b.from.line)-1,ie=a.ch;return a.line==b.to.line&&(ie+=Ha(b).ch-b.to.ch),jt(oe,ie)}function Cs(a,b){for(var oe=[],ie=0;ie<a.sel.ranges.length;ie++){var me=a.sel.ranges[ie];oe.push(new ni(Ks(me.anchor,b),Ks(me.head,b)))}return ya(a.cm,oe,a.sel.primIndex)}function Vs(a,b,oe){return a.line==b.line?jt(oe.line,a.ch-b.ch+oe.ch):jt(oe.line+(a.line-b.line),a.ch)}function ou(a,b,oe){for(var ie=[],me=jt(a.first,0),Be=me,Je=0;Je<b.length;Je++){var ot=b[Je],lt=Vs(ot.from,me,Be),ht=Vs(Ha(ot),me,Be);if(me=ot.to,Be=ht,oe=="around"){var wt=a.sel.ranges[Je],Et=nr(wt.head,wt.anchor)<0;ie[Je]=new ni(Et?ht:lt,Et?lt:ht)}else ie[Je]=new ni(lt,lt)}return new ha(ie,a.sel.primIndex)}function Es(a){a.doc.mode=Br(a.options,a.doc.modeOption),Lo(a)}function Lo(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Io(a,100),a.state.modeGen++,a.curOp&&Ui(a)}function Xs(a,b){return b.from.ch==0&&b.to.ch==0&&st(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function ks(a,b,oe,ie){function me(Hr){return oe?oe[Hr]:null}function Be(Hr,Mr,Qr){rn(Hr,Mr,Qr,ie),Qn(Hr,"change",Hr,b)}function Je(Hr,Mr){for(var Qr=[],En=Hr;En<Mr;++En)Qr.push(new $r(ht[En],me(En),ie));return Qr}var ot=b.from,lt=b.to,ht=b.text,wt=Vt(a,ot.line),Et=Vt(a,lt.line),Wt=st(ht),Nt=me(ht.length-1),cr=lt.line-ot.line;if(b.full)a.insert(0,Je(0,ht.length)),a.remove(ht.length,a.size-ht.length);else if(Xs(a,b)){var vr=Je(0,ht.length-1);Be(Et,Et.text,Nt),cr&&a.remove(ot.line,cr),vr.length&&a.insert(ot.line,vr)}else if(wt==Et)if(ht.length==1)Be(wt,wt.text.slice(0,ot.ch)+Wt+wt.text.slice(lt.ch),Nt);else{var kr=Je(1,ht.length-1);kr.push(new $r(Wt+wt.text.slice(lt.ch),Nt,ie)),Be(wt,wt.text.slice(0,ot.ch)+ht[0],me(0)),a.insert(ot.line+1,kr)}else if(ht.length==1)Be(wt,wt.text.slice(0,ot.ch)+ht[0]+Et.text.slice(lt.ch),me(0)),a.remove(ot.line+1,cr);else{Be(wt,wt.text.slice(0,ot.ch)+ht[0],me(0)),Be(Et,Wt+Et.text.slice(lt.ch),Nt);var Rr=Je(1,ht.length-1);cr>1&&a.remove(ot.line+1,cr-1),a.insert(ot.line+1,Rr)}Qn(a,"change",a,b)}function Ga(a,b,oe){function ie(me,Be,Je){if(me.linked)for(var ot=0;ot<me.linked.length;++ot){var lt=me.linked[ot];if(lt.doc!=Be){var ht=Je&&lt.sharedHist;oe&&!ht||(b(lt.doc,ht),ie(lt.doc,me,ht))}}}ie(a,null,!0)}function Ys(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,Eo(a),Es(a),$s(a),a.options.lineWrapping||Ar(a),a.options.mode=b.modeOption,Ui(a)}function $s(a){(a.doc.direction=="rtl"?Pe:Me)(a.display.lineDiv,"CodeMirror-rtl")}function su(a){aa(a,function(){$s(a),Ui(a)})}function as(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function Ts(a,b){var oe={from:hr(b.from),to:Ha(b),text:xr(a,b.from,b.to)};return el(a,oe,b.from.line,b.to.line+1),Ga(a,function(ie){return el(ie,oe,b.from.line,b.to.line+1)},!0),oe}function Js(a){for(;a.length;){var b=st(a);if(b.ranges)a.pop();else break}}function lu(a,b){if(b)return Js(a.done),st(a.done);if(a.done.length&&!st(a.done).ranges)return st(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),st(a.done)}function Qs(a,b,oe,ie){var me=a.history;me.undone.length=0;var Be=+new Date,Je,ot;if((me.lastOp==ie||me.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&me.lastModTime>Be-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(Je=lu(me,me.lastOp==ie)))ot=st(Je.changes),nr(b.from,b.to)==0&&nr(b.from,ot.to)==0?ot.to=Ha(b):Je.changes.push(Ts(a,b));else{var lt=st(me.done);for((!lt||!lt.ranges)&&os(a.sel,me.done),Je={changes:[Ts(a,b)],generation:me.generation},me.done.push(Je);me.done.length>me.undoDepth;)me.done.shift(),me.done[0].ranges||me.done.shift()}me.done.push(oe),me.generation=++me.maxGeneration,me.lastModTime=me.lastSelTime=Be,me.lastOp=me.lastSelOp=ie,me.lastOrigin=me.lastSelOrigin=b.origin,ot||bt(a,"historyAdded")}function uu(a,b,oe,ie){var me=b.charAt(0);return me=="*"||me=="+"&&oe.ranges.length==ie.ranges.length&&oe.somethingSelected()==ie.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function cu(a,b,oe,ie){var me=a.history,Be=ie&&ie.origin;oe==me.lastSelOp||Be&&me.lastSelOrigin==Be&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==Be||uu(a,Be,st(me.done),b))?me.done[me.done.length-1]=b:os(b,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=Be,me.lastSelOp=oe,ie&&ie.clearRedo!==!1&&Js(me.undone)}function os(a,b){var oe=st(b);oe&&oe.ranges&&oe.equals(a)||b.push(a)}function el(a,b,oe,ie){var me=b["spans_"+a.id],Be=0;a.iter(Math.max(a.first,oe),Math.min(a.first+a.size,ie),function(Je){Je.markedSpans&&((me||(me=b["spans_"+a.id]={}))[Be]=Je.markedSpans),++Be})}function fu(a){if(!a)return null;for(var b,oe=0;oe<a.length;++oe)a[oe].marker.explicitlyCleared?b||(b=a.slice(0,oe)):b&&b.push(a[oe]);return b?b.length?b:null:a}function du(a,b){var oe=b["spans_"+a.id];if(!oe)return null;for(var ie=[],me=0;me<b.text.length;++me)ie.push(fu(oe[me]));return ie}function tl(a,b){var oe=du(a,b),ie=ii(a,b);if(!oe)return ie;if(!ie)return oe;for(var me=0;me<oe.length;++me){var Be=oe[me],Je=ie[me];if(Be&&Je)e:for(var ot=0;ot<Je.length;++ot){for(var lt=Je[ot],ht=0;ht<Be.length;++ht)if(Be[ht].marker==lt.marker)continue e;Be.push(lt)}else Je&&(oe[me]=Je)}return oe}function fo(a,b,oe){for(var ie=[],me=0;me<a.length;++me){var Be=a[me];if(Be.ranges){ie.push(oe?ha.prototype.deepCopy.call(Be):Be);continue}var Je=Be.changes,ot=[];ie.push({changes:ot});for(var lt=0;lt<Je.length;++lt){var ht=Je[lt],wt=void 0;if(ot.push({from:ht.from,to:ht.to,text:ht.text}),b)for(var Et in ht)(wt=Et.match(/^spans_(\d+)$/))&&qe(b,Number(wt[1]))>-1&&(st(ot)[Et]=ht[Et],delete ht[Et])}}return ie}function As(a,b,oe,ie){if(ie){var me=a.anchor;if(oe){var Be=nr(b,me)<0;Be!=nr(oe,me)<0?(me=b,b=oe):Be!=nr(b,oe)<0&&(b=oe)}return new ni(me,b)}else return new ni(oe||b,b)}function ss(a,b,oe,ie,me){me==null&&(me=a.cm&&(a.cm.display.shift||a.extend)),zi(a,new ha([As(a.sel.primary(),b,oe,me)],0),ie)}function rl(a,b,oe){for(var ie=[],me=a.cm&&(a.cm.display.shift||a.extend),Be=0;Be<a.sel.ranges.length;Be++)ie[Be]=As(a.sel.ranges[Be],b[Be],null,me);var Je=ya(a.cm,ie,a.sel.primIndex);zi(a,Je,oe)}function js(a,b,oe,ie){var me=a.sel.ranges.slice(0);me[b]=oe,zi(a,ya(a.cm,me,a.sel.primIndex),ie)}function nl(a,b,oe,ie){zi(a,za(b,oe),ie)}function hu(a,b,oe){var ie={ranges:b.ranges,update:function(me){this.ranges=[];for(var Be=0;Be<me.length;Be++)this.ranges[Be]=new ni(Pt(a,me[Be].anchor),Pt(a,me[Be].head))},origin:oe&&oe.origin};return bt(a,"beforeSelectionChange",a,ie),a.cm&&bt(a.cm,"beforeSelectionChange",a.cm,ie),ie.ranges!=b.ranges?ya(a.cm,ie.ranges,ie.ranges.length-1):b}function il(a,b,oe){var ie=a.history.done,me=st(ie);me&&me.ranges?(ie[ie.length-1]=b,ls(a,b,oe)):zi(a,b,oe)}function zi(a,b,oe){ls(a,b,oe),cu(a,a.sel,a.cm?a.cm.curOp.id:NaN,oe)}function ls(a,b,oe){(At(a,"beforeSelectionChange")||a.cm&&At(a.cm,"beforeSelectionChange"))&&(b=hu(a,b,oe));var ie=oe&&oe.bias||(nr(b.primary().head,a.sel.primary().head)<0?-1:1);al(a,sl(a,b,ie,!0)),!(oe&&oe.scroll===!1)&&a.cm&&Da(a.cm)}function al(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Dt(a.cm)),Qn(a,"cursorActivity",a))}function ol(a){al(a,sl(a,a.sel,null,!1))}function sl(a,b,oe,ie){for(var me,Be=0;Be<b.ranges.length;Be++){var Je=b.ranges[Be],ot=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Be],lt=us(a,Je.anchor,ot&&ot.anchor,oe,ie),ht=us(a,Je.head,ot&&ot.head,oe,ie);(me||lt!=Je.anchor||ht!=Je.head)&&(me||(me=b.ranges.slice(0,Be)),me[Be]=new ni(lt,ht))}return me?ya(a.cm,me,b.primIndex):b}function ho(a,b,oe,ie,me){var Be=Vt(a,b.line);if(Be.markedSpans)for(var Je=0;Je<Be.markedSpans.length;++Je){var ot=Be.markedSpans[Je],lt=ot.marker,ht="selectLeft"in lt?!lt.selectLeft:lt.inclusiveLeft,wt="selectRight"in lt?!lt.selectRight:lt.inclusiveRight;if((ot.from==null||(ht?ot.from<=b.ch:ot.from<b.ch))&&(ot.to==null||(wt?ot.to>=b.ch:ot.to>b.ch))){if(me&&(bt(lt,"beforeCursorEnter"),lt.explicitlyCleared))if(Be.markedSpans){--Je;continue}else break;if(!lt.atomic)continue;if(oe){var Et=lt.find(ie<0?1:-1),Wt=void 0;if((ie<0?wt:ht)&&(Et=ll(a,Et,-ie,Et&&Et.line==b.line?Be:null)),Et&&Et.line==b.line&&(Wt=nr(Et,oe))&&(ie<0?Wt<0:Wt>0))return ho(a,Et,b,ie,me)}var Nt=lt.find(ie<0?-1:1);return(ie<0?ht:wt)&&(Nt=ll(a,Nt,ie,Nt.line==b.line?Be:null)),Nt?ho(a,Nt,b,ie,me):null}}return b}function us(a,b,oe,ie,me){var Be=ie||1,Je=ho(a,b,oe,Be,me)||!me&&ho(a,b,oe,Be,!0)||ho(a,b,oe,-Be,me)||!me&&ho(a,b,oe,-Be,!0);return Je||(a.cantEdit=!0,jt(a.first,0))}function ll(a,b,oe,ie){return oe<0&&b.ch==0?b.line>a.first?Pt(a,jt(b.line-1)):null:oe>0&&b.ch==(ie||Vt(a,b.line)).text.length?b.line<a.first+a.size-1?jt(b.line+1,0):null:new jt(b.line,b.ch+oe)}function ul(a){a.setSelection(jt(a.firstLine(),0),jt(a.lastLine()),Ve)}function cl(a,b,oe){var ie={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ie.canceled=!0}};return oe&&(ie.update=function(me,Be,Je,ot){me&&(ie.from=Pt(a,me)),Be&&(ie.to=Pt(a,Be)),Je&&(ie.text=Je),ot!==void 0&&(ie.origin=ot)}),bt(a,"beforeChange",a,ie),a.cm&&bt(a.cm,"beforeChange",a.cm,ie),ie.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:ie.from,to:ie.to,text:ie.text,origin:ie.origin}}function po(a,b,oe){if(a.cm){if(!a.cm.curOp)return Ii(a.cm,po)(a,b,oe);if(a.cm.state.suppressEdits)return}if(!((At(a,"beforeChange")||a.cm&&At(a.cm,"beforeChange"))&&(b=cl(a,b,!0),!b))){var ie=Kn&&!oe&&Lt(a,b.from,b.to);if(ie)for(var me=ie.length-1;me>=0;--me)fl(a,{from:ie[me].from,to:ie[me].to,text:me?[""]:b.text,origin:b.origin});else fl(a,b)}}function fl(a,b){if(!(b.text.length==1&&b.text[0]==""&&nr(b.from,b.to)==0)){var oe=Cs(a,b);Qs(a,b,oe,a.cm?a.cm.curOp.id:NaN),Bo(a,b,oe,ii(a,b));var ie=[];Ga(a,function(me,Be){!Be&&qe(ie,me.history)==-1&&(ml(me.history,b),ie.push(me.history)),Bo(me,b,null,ii(me,b))})}}function cs(a,b,oe){var ie=a.cm&&a.cm.state.suppressEdits;if(!(ie&&!oe)){for(var me=a.history,Be,Je=a.sel,ot=b=="undo"?me.done:me.undone,lt=b=="undo"?me.undone:me.done,ht=0;ht<ot.length&&(Be=ot[ht],!(oe?Be.ranges&&!Be.equals(a.sel):!Be.ranges));ht++);if(ht!=ot.length){for(me.lastOrigin=me.lastSelOrigin=null;;)if(Be=ot.pop(),Be.ranges){if(os(Be,lt),oe&&!Be.equals(a.sel)){zi(a,Be,{clearRedo:!1});return}Je=Be}else if(ie){ot.push(Be);return}else break;var wt=[];os(Je,lt),lt.push({changes:wt,generation:me.generation}),me.generation=Be.generation||++me.maxGeneration;for(var Et=At(a,"beforeChange")||a.cm&&At(a.cm,"beforeChange"),Wt=function(vr){var kr=Be.changes[vr];if(kr.origin=b,Et&&!cl(a,kr,!1))return ot.length=0,{};wt.push(Ts(a,kr));var Rr=vr?Cs(a,kr):st(ot);Bo(a,kr,Rr,tl(a,kr)),!vr&&a.cm&&a.cm.scrollIntoView({from:kr.from,to:Ha(kr)});var Hr=[];Ga(a,function(Mr,Qr){!Qr&&qe(Hr,Mr.history)==-1&&(ml(Mr.history,kr),Hr.push(Mr.history)),Bo(Mr,kr,null,tl(Mr,kr))})},Nt=Be.changes.length-1;Nt>=0;--Nt){var cr=Wt(Nt);if(cr)return cr.v}}}}function dl(a,b){if(b!=0&&(a.first+=b,a.sel=new ha(Xe(a.sel.ranges,function(me){return new ni(jt(me.anchor.line+b,me.anchor.ch),jt(me.head.line+b,me.head.ch))}),a.sel.primIndex),a.cm)){Ui(a.cm,a.first,a.first-b,b);for(var oe=a.cm.display,ie=oe.viewFrom;ie<oe.viewTo;ie++)ca(a.cm,ie,"gutter")}}function Bo(a,b,oe,ie){if(a.cm&&!a.cm.curOp)return Ii(a.cm,Bo)(a,b,oe,ie);if(b.to.line<a.first){dl(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var me=b.text.length-1-(a.first-b.from.line);dl(a,me),b={from:jt(a.first,0),to:jt(b.to.line+me,b.to.ch),text:[st(b.text)],origin:b.origin}}var Be=a.lastLine();b.to.line>Be&&(b={from:b.from,to:jt(Be,Vt(a,Be).text.length),text:[b.text[0]],origin:b.origin}),b.removed=xr(a,b.from,b.to),oe||(oe=Cs(a,b)),a.cm?pu(a.cm,b,ie):ks(a,b,ie),ls(a,oe,Ve),a.cantEdit&&us(a,jt(a.firstLine(),0))&&(a.cantEdit=!1)}}function pu(a,b,oe){var ie=a.doc,me=a.display,Be=b.from,Je=b.to,ot=!1,lt=Be.line;a.options.lineWrapping||(lt=Ct(Zt(Vt(ie,Be.line))),ie.iter(lt,Je.line+1,function(Nt){if(Nt==me.maxLine)return ot=!0,!0})),ie.sel.contains(b.from,b.to)>-1&&Dt(a),ks(ie,b,oe,Co(a)),a.options.lineWrapping||(ie.iter(lt,Be.line+b.text.length,function(Nt){var cr=Vr(Nt);cr>me.maxLineLength&&(me.maxLine=Nt,me.maxLineLength=cr,me.maxLineChanged=!0,ot=!1)}),ot&&(a.curOp.updateMaxLine=!0)),Yn(ie,Be.line),Io(a,400);var ht=b.text.length-(Je.line-Be.line)-1;b.full?Ui(a):Be.line==Je.line&&b.text.length==1&&!Xs(a.doc,b)?ca(a,Be.line,"text"):Ui(a,Be.line,Je.line+1,ht);var wt=At(a,"changes"),Et=At(a,"change");if(Et||wt){var Wt={from:Be,to:Je,text:b.text,removed:b.removed,origin:b.origin};Et&&Qn(a,"change",a,Wt),wt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Wt)}a.display.selForContextMenu=null}function mo(a,b,oe,ie,me){var Be;ie||(ie=oe),nr(ie,oe)<0&&(Be=[ie,oe],oe=Be[0],ie=Be[1]),typeof b=="string"&&(b=a.splitLines(b)),po(a,{from:oe,to:ie,text:b,origin:me})}function hl(a,b,oe,ie){oe<a.line?a.line+=ie:b<a.line&&(a.line=b,a.ch=0)}function pl(a,b,oe,ie){for(var me=0;me<a.length;++me){var Be=a[me],Je=!0;if(Be.ranges){Be.copied||(Be=a[me]=Be.deepCopy(),Be.copied=!0);for(var ot=0;ot<Be.ranges.length;ot++)hl(Be.ranges[ot].anchor,b,oe,ie),hl(Be.ranges[ot].head,b,oe,ie);continue}for(var lt=0;lt<Be.changes.length;++lt){var ht=Be.changes[lt];if(oe<ht.from.line)ht.from=jt(ht.from.line+ie,ht.from.ch),ht.to=jt(ht.to.line+ie,ht.to.ch);else if(b<=ht.to.line){Je=!1;break}}Je||(a.splice(0,me+1),me=0)}}function ml(a,b){var oe=b.from.line,ie=b.to.line,me=b.text.length-(ie-oe)-1;pl(a.done,oe,ie,me),pl(a.undone,oe,ie,me)}function Fo(a,b,oe,ie){var me=b,Be=b;return typeof b=="number"?Be=Vt(a,gr(a,b)):me=Ct(b),me==null?null:(ie(Be,me)&&a.cm&&ca(a.cm,me,oe),Be)}function Uo(a){this.lines=a,this.parent=null;for(var b=0,oe=0;oe<a.length;++oe)a[oe].parent=this,b+=a[oe].height;this.height=b}Uo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var oe=a,ie=a+b;oe<ie;++oe){var me=this.lines[oe];this.height-=me.height,cn(me),Qn(me,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,oe){this.height+=oe,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var ie=0;ie<b.length;++ie)b[ie].parent=this},iterN:function(a,b,oe){for(var ie=a+b;a<ie;++a)if(oe(this.lines[a]))return!0}};function Wo(a){this.children=a;for(var b=0,oe=0,ie=0;ie<a.length;++ie){var me=a[ie];b+=me.chunkSize(),oe+=me.height,me.parent=this}this.size=b,this.height=oe,this.parent=null}Wo.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var oe=0;oe<this.children.length;++oe){var ie=this.children[oe],me=ie.chunkSize();if(a<me){var Be=Math.min(b,me-a),Je=ie.height;if(ie.removeInner(a,Be),this.height-=Je-ie.height,me==Be&&(this.children.splice(oe--,1),ie.parent=null),(b-=Be)==0)break;a=0}else a-=me}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Uo))){var ot=[];this.collapse(ot),this.children=[new Uo(ot)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,oe){this.size+=b.length,this.height+=oe;for(var ie=0;ie<this.children.length;++ie){var me=this.children[ie],Be=me.chunkSize();if(a<=Be){if(me.insertInner(a,b,oe),me.lines&&me.lines.length>50){for(var Je=me.lines.length%25+25,ot=Je;ot<me.lines.length;){var lt=new Uo(me.lines.slice(ot,ot+=25));me.height-=lt.height,this.children.splice(++ie,0,lt),lt.parent=this}me.lines=me.lines.slice(0,Je),this.maybeSpill()}break}a-=Be}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),oe=new Wo(b);if(a.parent){a.size-=oe.size,a.height-=oe.height;var me=qe(a.parent.children,a);a.parent.children.splice(me+1,0,oe)}else{var ie=new Wo(a.children);ie.parent=a,a.children=[ie,oe],a=ie}oe.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,oe){for(var ie=0;ie<this.children.length;++ie){var me=this.children[ie],Be=me.chunkSize();if(a<Be){var Je=Math.min(b,Be-a);if(me.iterN(a,Je,oe))return!0;if((b-=Je)==0)break;a=0}else a-=Be}}};var Zo=function(a,b,oe){if(oe)for(var ie in oe)oe.hasOwnProperty(ie)&&(this[ie]=oe[ie]);this.doc=a,this.node=b};Zo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,oe=this.line,ie=Ct(oe);if(!(ie==null||!b)){for(var me=0;me<b.length;++me)b[me]==this&&b.splice(me--,1);b.length||(oe.widgets=null);var Be=di(this);mn(oe,Math.max(0,oe.height-Be)),a&&(aa(a,function(){vl(a,oe,-Be),ca(a,ie,"widget")}),Qn(a,"lineWidgetCleared",a,this,ie))}},Zo.prototype.changed=function(){var a=this,b=this.height,oe=this.doc.cm,ie=this.line;this.height=null;var me=di(this)-b;me&&(ar(this.doc,ie)||mn(ie,ie.height+me),oe&&aa(oe,function(){oe.curOp.forceUpdate=!0,vl(oe,ie,me),Qn(oe,"lineWidgetChanged",oe,a,Ct(ie))}))},Mt(Zo);function vl(a,b,oe){Cr(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&co(a,oe)}function mu(a,b,oe,ie){var me=new Zo(a,oe,ie),Be=a.cm;return Be&&me.noHScroll&&(Be.display.alignWidgets=!0),Fo(a,b,"widget",function(Je){var ot=Je.widgets||(Je.widgets=[]);if(me.insertAt==null?ot.push(me):ot.splice(Math.min(ot.length-1,Math.max(0,me.insertAt)),0,me),me.line=Je,Be&&!ar(a,Je)){var lt=Cr(Je)<a.scrollTop;mn(Je,Je.height+di(me)),lt&&co(Be,me.height),Be.curOp.forceUpdate=!0}return!0}),Be&&Qn(Be,"lineWidgetAdded",Be,me,typeof b=="number"?b:Ct(b)),me}var gl=0,Ka=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++gl};Ka.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&fa(a),At(this,"clear")){var oe=this.find();oe&&Qn(this,"clear",oe.from,oe.to)}for(var ie=null,me=null,Be=0;Be<this.lines.length;++Be){var Je=this.lines[Be],ot=en(Je.markedSpans,this);a&&!this.collapsed?ca(a,Ct(Je),"text"):a&&(ot.to!=null&&(me=Ct(Je)),ot.from!=null&&(ie=Ct(Je))),Je.markedSpans=bn(Je.markedSpans,ot),ot.from==null&&this.collapsed&&!ar(this.doc,Je)&&a&&mn(Je,Pi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var lt=0;lt<this.lines.length;++lt){var ht=Zt(this.lines[lt]),wt=Vr(ht);wt>a.display.maxLineLength&&(a.display.maxLine=ht,a.display.maxLineLength=wt,a.display.maxLineChanged=!0)}ie!=null&&a&&this.collapsed&&Ui(a,ie,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ol(a.doc)),a&&Qn(a,"markerCleared",a,this,ie,me),b&&ga(a),this.parent&&this.parent.clear()}},Ka.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var oe,ie,me=0;me<this.lines.length;++me){var Be=this.lines[me],Je=en(Be.markedSpans,this);if(Je.from!=null&&(oe=jt(b?Be:Ct(Be),Je.from),a==-1))return oe;if(Je.to!=null&&(ie=jt(b?Be:Ct(Be),Je.to),a==1))return ie}return oe&&{from:oe,to:ie}},Ka.prototype.changed=function(){var a=this,b=this.find(-1,!0),oe=this,ie=this.doc.cm;!b||!ie||aa(ie,function(){var me=b.line,Be=Ct(b.line),Je=pa(ie,Be);if(Je&&($a(Je),ie.curOp.selectionChanged=ie.curOp.forceUpdate=!0),ie.curOp.updateMaxLine=!0,!ar(oe.doc,me)&&oe.height!=null){var ot=oe.height;oe.height=null;var lt=di(oe)-ot;lt&&mn(me,me.height+lt)}Qn(ie,"markerChanged",ie,a)})},Ka.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||qe(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Ka.prototype.detachLine=function(a){if(this.lines.splice(qe(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Mt(Ka);function vo(a,b,oe,ie,me){if(ie&&ie.shared)return vu(a,b,oe,ie,me);if(a.cm&&!a.cm.curOp)return Ii(a.cm,vo)(a,b,oe,ie,me);var Be=new Ka(a,me),Je=nr(b,oe);if(ie&&it(ie,Be,!1),Je>0||Je==0&&Be.clearWhenEmpty!==!1)return Be;if(Be.replacedWith&&(Be.collapsed=!0,Be.widgetNode=Ee("span",[Be.replacedWith],"CodeMirror-widget"),ie.handleMouseEvents||Be.widgetNode.setAttribute("cm-ignore-events","true"),ie.insertLeft&&(Be.widgetNode.insertLeft=!0)),Be.collapsed){if(zt(a,b.line,b,oe,Be)||b.line!=oe.line&&zt(a,oe.line,b,oe,Be))throw new Error("Inserting collapsed marker partially overlapping an existing one");Wn()}Be.addToHistory&&Qs(a,{from:b,to:oe,origin:"markText"},a.sel,NaN);var ot=b.line,lt=a.cm,ht;if(a.iter(ot,oe.line+1,function(Et){lt&&Be.collapsed&&!lt.options.lineWrapping&&Zt(Et)==lt.display.maxLine&&(ht=!0),Be.collapsed&&ot!=b.line&&mn(Et,0),In(Et,new _r(Be,ot==b.line?b.ch:null,ot==oe.line?oe.ch:null)),++ot}),Be.collapsed&&a.iter(b.line,oe.line+1,function(Et){ar(a,Et)&&mn(Et,0)}),Be.clearOnEnter&&xt(Be,"beforeCursorEnter",function(){return Be.clear()}),Be.readOnly&&($n(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Be.collapsed&&(Be.id=++gl,Be.atomic=!0),lt){if(ht&&(lt.curOp.updateMaxLine=!0),Be.collapsed)Ui(lt,b.line,oe.line+1);else if(Be.className||Be.startStyle||Be.endStyle||Be.css||Be.attributes||Be.title)for(var wt=b.line;wt<=oe.line;wt++)ca(lt,wt,"text");Be.atomic&&ol(lt.doc),Qn(lt,"markerAdded",lt,Be)}return Be}var zo=function(a,b){this.markers=a,this.primary=b;for(var oe=0;oe<a.length;++oe)a[oe].parent=this};zo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Qn(this,"clear")}},zo.prototype.find=function(a,b){return this.primary.find(a,b)},Mt(zo);function vu(a,b,oe,ie,me){ie=it(ie),ie.shared=!1;var Be=[vo(a,b,oe,ie,me)],Je=Be[0],ot=ie.widgetNode;return Ga(a,function(lt){ot&&(ie.widgetNode=ot.cloneNode(!0)),Be.push(vo(lt,Pt(lt,b),Pt(lt,oe),ie,me));for(var ht=0;ht<lt.linked.length;++ht)if(lt.linked[ht].isParent)return;Je=st(Be)}),new zo(Be,Je)}function yl(a){return a.findMarks(jt(a.first,0),a.clipPos(jt(a.lastLine())),function(b){return b.parent})}function gu(a,b){for(var oe=0;oe<b.length;oe++){var ie=b[oe],me=ie.find(),Be=a.clipPos(me.from),Je=a.clipPos(me.to);if(nr(Be,Je)){var ot=vo(a,Be,Je,ie.primary,ie.primary.type);ie.markers.push(ot),ot.parent=ie}}}function yu(a){for(var b=function(ie){var me=a[ie],Be=[me.primary.doc];Ga(me.primary.doc,function(lt){return Be.push(lt)});for(var Je=0;Je<me.markers.length;Je++){var ot=me.markers[Je];qe(Be,ot.doc)==-1&&(ot.parent=null,me.markers.splice(Je--,1))}},oe=0;oe<a.length;oe++)b(oe)}var bu=0,qi=function(a,b,oe,ie,me){if(!(this instanceof qi))return new qi(a,b,oe,ie,me);oe==null&&(oe=0),Wo.call(this,[new Uo([new $r("",null)])]),this.first=oe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=oe;var Be=jt(oe,0);this.sel=za(Be),this.history=new as(null),this.id=++bu,this.modeOption=b,this.lineSep=ie,this.direction=me=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),ks(this,{from:Be,to:Be,text:a}),zi(this,za(Be),Ve)};qi.prototype=te(Wo.prototype,{constructor:qi,iter:function(a,b,oe){oe?this.iterN(a-this.first,b-a,oe):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var oe=0,ie=0;ie<b.length;++ie)oe+=b[ie].height;this.insertInner(a-this.first,b,oe)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Kr(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ni(function(a){var b=jt(this.first,0),oe=this.first+this.size-1;po(this,{from:b,to:jt(oe,Vt(this,oe).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),zi(this,za(b),Ve)}),replaceRange:function(a,b,oe,ie){b=Pt(this,b),oe=oe?Pt(this,oe):b,mo(this,a,b,oe,ie)},getRange:function(a,b,oe){var ie=xr(this,Pt(this,a),Pt(this,b));return oe===!1?ie:ie.join(oe||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(ir(this,a))return Vt(this,a)},getLineNumber:function(a){return Ct(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Vt(this,a)),Zt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Pt(this,a)},getCursor:function(a){var b=this.sel.primary(),oe;return a==null||a=="head"?oe=b.head:a=="anchor"?oe=b.anchor:a=="end"||a=="to"||a===!1?oe=b.to():oe=b.from(),oe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ni(function(a,b,oe){nl(this,Pt(this,typeof a=="number"?jt(a,b||0):a),null,oe)}),setSelection:Ni(function(a,b,oe){nl(this,Pt(this,a),Pt(this,b||a),oe)}),extendSelection:Ni(function(a,b,oe){ss(this,Pt(this,a),b&&Pt(this,b),oe)}),extendSelections:Ni(function(a,b){rl(this,sr(this,a),b)}),extendSelectionsBy:Ni(function(a,b){var oe=Xe(this.sel.ranges,a);rl(this,sr(this,oe),b)}),setSelections:Ni(function(a,b,oe){if(a.length){for(var ie=[],me=0;me<a.length;me++)ie[me]=new ni(Pt(this,a[me].anchor),Pt(this,a[me].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),zi(this,ya(this.cm,ie,b),oe)}}),addSelection:Ni(function(a,b,oe){var ie=this.sel.ranges.slice(0);ie.push(new ni(Pt(this,a),Pt(this,b||a))),zi(this,ya(this.cm,ie,ie.length-1),oe)}),getSelection:function(a){for(var b=this.sel.ranges,oe,ie=0;ie<b.length;ie++){var me=xr(this,b[ie].from(),b[ie].to());oe=oe?oe.concat(me):me}return a===!1?oe:oe.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],oe=this.sel.ranges,ie=0;ie<oe.length;ie++){var me=xr(this,oe[ie].from(),oe[ie].to());a!==!1&&(me=me.join(a||this.lineSeparator())),b[ie]=me}return b},replaceSelection:function(a,b,oe){for(var ie=[],me=0;me<this.sel.ranges.length;me++)ie[me]=a;this.replaceSelections(ie,b,oe||"+input")},replaceSelections:Ni(function(a,b,oe){for(var ie=[],me=this.sel,Be=0;Be<me.ranges.length;Be++){var Je=me.ranges[Be];ie[Be]={from:Je.from(),to:Je.to(),text:this.splitLines(a[Be]),origin:oe}}for(var ot=b&&b!="end"&&ou(this,ie,b),lt=ie.length-1;lt>=0;lt--)po(this,ie[lt]);ot?il(this,ot):this.cm&&Da(this.cm)}),undo:Ni(function(){cs(this,"undo")}),redo:Ni(function(){cs(this,"redo")}),undoSelection:Ni(function(){cs(this,"undo",!0)}),redoSelection:Ni(function(){cs(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,oe=0,ie=0;ie<a.done.length;ie++)a.done[ie].ranges||++b;for(var me=0;me<a.undone.length;me++)a.undone[me].ranges||++oe;return{undo:b,redo:oe}},clearHistory:function(){var a=this;this.history=new as(this.history.maxGeneration),Ga(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:fo(this.history.done),undone:fo(this.history.undone)}},setHistory:function(a){var b=this.history=new as(this.history.maxGeneration);b.done=fo(a.done.slice(0),null,!0),b.undone=fo(a.undone.slice(0),null,!0)},setGutterMarker:Ni(function(a,b,oe){return Fo(this,a,"gutter",function(ie){var me=ie.gutterMarkers||(ie.gutterMarkers={});return me[b]=oe,!oe&&xe(me)&&(ie.gutterMarkers=null),!0})}),clearGutter:Ni(function(a){var b=this;this.iter(function(oe){oe.gutterMarkers&&oe.gutterMarkers[a]&&Fo(b,oe,"gutter",function(){return oe.gutterMarkers[a]=null,xe(oe.gutterMarkers)&&(oe.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!ir(this,a)||(b=a,a=Vt(this,a),!a))return null}else if(b=Ct(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Ni(function(a,b,oe){return Fo(this,a,b=="gutter"?"gutter":"class",function(ie){var me=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ie[me])ie[me]=oe;else{if(je(oe).test(ie[me]))return!1;ie[me]+=" "+oe}return!0})}),removeLineClass:Ni(function(a,b,oe){return Fo(this,a,b=="gutter"?"gutter":"class",function(ie){var me=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Be=ie[me];if(Be)if(oe==null)ie[me]=null;else{var Je=Be.match(je(oe));if(!Je)return!1;var ot=Je.index+Je[0].length;ie[me]=Be.slice(0,Je.index)+(!Je.index||ot==Be.length?"":" ")+Be.slice(ot)||null}else return!1;return!0})}),addLineWidget:Ni(function(a,b,oe){return mu(this,a,b,oe)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,oe){return vo(this,Pt(this,a),Pt(this,b),oe,oe&&oe.type||"range")},setBookmark:function(a,b){var oe={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=Pt(this,a),vo(this,a,a,oe,"bookmark")},findMarksAt:function(a){a=Pt(this,a);var b=[],oe=Vt(this,a.line).markedSpans;if(oe)for(var ie=0;ie<oe.length;++ie){var me=oe[ie];(me.from==null||me.from<=a.ch)&&(me.to==null||me.to>=a.ch)&&b.push(me.marker.parent||me.marker)}return b},findMarks:function(a,b,oe){a=Pt(this,a),b=Pt(this,b);var ie=[],me=a.line;return this.iter(a.line,b.line+1,function(Be){var Je=Be.markedSpans;if(Je)for(var ot=0;ot<Je.length;ot++){var lt=Je[ot];!(lt.to!=null&&me==a.line&&a.ch>=lt.to||lt.from==null&&me!=a.line||lt.from!=null&&me==b.line&&lt.from>=b.ch)&&(!oe||oe(lt.marker))&&ie.push(lt.marker.parent||lt.marker)}++me}),ie},getAllMarks:function(){var a=[];return this.iter(function(b){var oe=b.markedSpans;if(oe)for(var ie=0;ie<oe.length;++ie)oe[ie].from!=null&&a.push(oe[ie].marker)}),a},posFromIndex:function(a){var b,oe=this.first,ie=this.lineSeparator().length;return this.iter(function(me){var Be=me.text.length+ie;if(Be>a)return b=a,!0;a-=Be,++oe}),Pt(this,jt(oe,b))},indexFromPos:function(a){a=Pt(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var oe=this.lineSeparator().length;return this.iter(this.first,a.line,function(ie){b+=ie.text.length+oe}),b},copy:function(a){var b=new qi(Kr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,oe=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<oe&&(oe=a.to);var ie=new qi(Kr(this,b,oe),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(ie.history=this.history),(this.linked||(this.linked=[])).push({doc:ie,sharedHist:a.sharedHist}),ie.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(ie,yl(this)),ie},unlinkDoc:function(a){if(a instanceof yi&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var oe=this.linked[b];if(oe.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),yu(yl(this));break}}if(a.history==this.history){var ie=[a.id];Ga(a,function(me){return ie.push(me.id)},!0),a.history=new as(null),a.history.done=fo(this.history.done,ie),a.history.undone=fo(this.history.undone,ie)}},iterLinkedDocs:function(a){Ga(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):An(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ni(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&su(this.cm))})}),qi.prototype.eachLine=qi.prototype.iter;var bl=0;function wu(a){var b=this;if(wl(b),!(ft(b,a)||fi(b.display,a))){$t(a),ye&&(bl=+new Date);var oe=wa(b,a,!0),ie=a.dataTransfer.files;if(!(!oe||b.isReadOnly()))if(ie&&ie.length&&window.FileReader&&window.File)for(var me=ie.length,Be=Array(me),Je=0,ot=function(){++Je==me&&Ii(b,function(){oe=Pt(b.doc,oe);var Nt={from:oe,to:oe,text:b.doc.splitLines(Be.filter(function(cr){return cr!=null}).join(b.doc.lineSeparator())),origin:"paste"};po(b.doc,Nt),il(b.doc,za(Pt(b.doc,oe),Pt(b.doc,Ha(Nt))))})()},lt=function(Nt,cr){if(b.options.allowDropFileTypes&&qe(b.options.allowDropFileTypes,Nt.type)==-1){ot();return}var vr=new FileReader;vr.onerror=function(){return ot()},vr.onload=function(){var kr=vr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(kr)){ot();return}Be[cr]=kr,ot()},vr.readAsText(Nt)},ht=0;ht<ie.length;ht++)lt(ie[ht],ht);else{if(b.state.draggingText&&b.doc.sel.contains(oe)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var wt=a.dataTransfer.getData("Text");if(wt){var Et;if(b.state.draggingText&&!b.state.draggingText.copy&&(Et=b.listSelections()),ls(b.doc,za(oe,oe)),Et)for(var Wt=0;Wt<Et.length;++Wt)mo(b.doc,"",Et[Wt].anchor,Et[Wt].head,"drag");b.replaceSelection(wt,"around","paste"),b.display.input.focus()}}catch(Nt){}}}}function xu(a,b){if(ye&&(!a.state.draggingText||+new Date-bl<100)){wr(b);return}if(!(ft(a,b)||fi(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!fe)){var oe=be("img",null,null,"position: fixed; left: 0; top: 0;");oe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(oe.width=oe.height=1,a.display.wrapper.appendChild(oe),oe._top=oe.offsetTop),b.dataTransfer.setDragImage(oe,0,0),ee&&oe.parentNode.removeChild(oe)}}function Su(a,b){var oe=wa(a,b);if(oe){var ie=document.createDocumentFragment();ko(a,oe,ie),a.display.dragCursor||(a.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ge(a.display.dragCursor,ie)}}function wl(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function xl(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),oe=[],ie=0;ie<b.length;ie++){var me=b[ie].CodeMirror;me&&oe.push(me)}oe.length&&oe[0].operation(function(){for(var Be=0;Be<oe.length;Be++)a(oe[Be])})}}var Sl=!1;function Cu(){Sl||(Eu(),Sl=!0)}function Eu(){var a;xt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,xl(ku)},100))}),xt(window,"blur",function(){return xl(Wa)})}function ku(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var Va={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ho=0;Ho<10;Ho++)Va[Ho+48]=Va[Ho+96]=String(Ho);for(var fs=65;fs<=90;fs++)Va[fs]=String.fromCharCode(fs);for(var Go=1;Go<=12;Go++)Va[Go+111]=Va[Go+63235]="F"+Go;var Ia={};Ia.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ia.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ia.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ia.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ia.default=he?Ia.macDefault:Ia.pcDefault;function Tu(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var oe,ie,me,Be,Je=0;Je<b.length-1;Je++){var ot=b[Je];if(/^(cmd|meta|m)$/i.test(ot))Be=!0;else if(/^a(lt)?$/i.test(ot))oe=!0;else if(/^(c|ctrl|control)$/i.test(ot))ie=!0;else if(/^s(hift)?$/i.test(ot))me=!0;else throw new Error("Unrecognized modifier name: "+ot)}return oe&&(a="Alt-"+a),ie&&(a="Ctrl-"+a),Be&&(a="Cmd-"+a),me&&(a="Shift-"+a),a}function Au(a){var b={};for(var oe in a)if(a.hasOwnProperty(oe)){var ie=a[oe];if(/^(name|fallthrough|(de|at)tach)$/.test(oe))continue;if(ie=="..."){delete a[oe];continue}for(var me=Xe(oe.split(" "),Tu),Be=0;Be<me.length;Be++){var Je=void 0,ot=void 0;Be==me.length-1?(ot=me.join(" "),Je=ie):(ot=me.slice(0,Be+1).join(" "),Je="...");var lt=b[ot];if(!lt)b[ot]=Je;else if(lt!=Je)throw new Error("Inconsistent bindings for "+ot)}delete a[oe]}for(var ht in b)a[ht]=b[ht];return a}function go(a,b,oe,ie){b=ds(b);var me=b.call?b.call(a,ie):b[a];if(me===!1)return"nothing";if(me==="...")return"multi";if(me!=null&&oe(me))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return go(a,b.fallthrough,oe,ie);for(var Be=0;Be<b.fallthrough.length;Be++){var Je=go(a,b.fallthrough[Be],oe,ie);if(Je)return Je}}}function Cl(a){var b=typeof a=="string"?a:Va[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function El(a,b,oe){var ie=a;return b.altKey&&ie!="Alt"&&(a="Alt-"+a),(we?b.metaKey:b.ctrlKey)&&ie!="Ctrl"&&(a="Ctrl-"+a),(we?b.ctrlKey:b.metaKey)&&ie!="Mod"&&(a="Cmd-"+a),!oe&&b.shiftKey&&ie!="Shift"&&(a="Shift-"+a),a}function kl(a,b){if(ee&&a.keyCode==34&&a.char)return!1;var oe=Va[a.keyCode];return oe==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(oe=a.code),El(oe,a,b))}function ds(a){return typeof a=="string"?Ia[a]:a}function yo(a,b){for(var oe=a.doc.sel.ranges,ie=[],me=0;me<oe.length;me++){for(var Be=b(oe[me]);ie.length&&nr(Be.from,st(ie).to)<=0;){var Je=ie.pop();if(nr(Je.from,Be.from)<0){Be.from=Je.from;break}}ie.push(Be)}aa(a,function(){for(var ot=ie.length-1;ot>=0;ot--)mo(a.doc,"",ie[ot].from,ie[ot].to,"+delete");Da(a)})}function Os(a,b,oe){var ie=We(a.text,b+oe,oe);return ie<0||ie>a.text.length?null:ie}function Ds(a,b,oe){var ie=Os(a,b.ch,oe);return ie==null?null:new jt(b.line,ie,oe<0?"after":"before")}function Ps(a,b,oe,ie,me){if(a){b.doc.direction=="rtl"&&(me=-me);var Be=St(oe,b.doc.direction);if(Be){var Je=me<0?st(Be):Be[0],ot=me<0==(Je.level==1),lt=ot?"after":"before",ht;if(Je.level>0||b.doc.direction=="rtl"){var wt=ma(b,oe);ht=me<0?oe.text.length-1:0;var Et=na(b,wt,ht).top;ht=et(function(Wt){return na(b,wt,Wt).top==Et},me<0==(Je.level==1)?Je.from:Je.to-1,ht),lt=="before"&&(ht=Os(oe,ht,1))}else ht=me<0?Je.to:Je.from;return new jt(ie,ht,lt)}}return new jt(ie,me<0?oe.text.length:0,me<0?"before":"after")}function ju(a,b,oe,ie){var me=St(b,a.doc.direction);if(!me)return Ds(b,oe,ie);oe.ch>=b.text.length?(oe.ch=b.text.length,oe.sticky="before"):oe.ch<=0&&(oe.ch=0,oe.sticky="after");var Be=ct(me,oe.ch,oe.sticky),Je=me[Be];if(a.doc.direction=="ltr"&&Je.level%2==0&&(ie>0?Je.to>oe.ch:Je.from<oe.ch))return Ds(b,oe,ie);var ot=function(Rr,Hr){return Os(b,Rr instanceof jt?Rr.ch:Rr,Hr)},lt,ht=function(Rr){return a.options.lineWrapping?(lt=lt||ma(a,b),wi(a,b,lt,Rr)):{begin:0,end:b.text.length}},wt=ht(oe.sticky=="before"?ot(oe,-1):oe.ch);if(a.doc.direction=="rtl"||Je.level==1){var Et=Je.level==1==ie<0,Wt=ot(oe,Et?1:-1);if(Wt!=null&&(Et?Wt<=Je.to&&Wt<=wt.end:Wt>=Je.from&&Wt>=wt.begin)){var Nt=Et?"before":"after";return new jt(oe.line,Wt,Nt)}}var cr=function(Rr,Hr,Mr){for(var Qr=function(ci,Li){return Li?new jt(oe.line,ot(ci,1),"before"):new jt(oe.line,ci,"after")};Rr>=0&&Rr<me.length;Rr+=Hr){var En=me[Rr],ln=Hr>0==(En.level!=1),Vn=ln?Mr.begin:ot(Mr.end,-1);if(En.from<=Vn&&Vn<En.to||(Vn=ln?En.from:ot(En.to,-1),Mr.begin<=Vn&&Vn<Mr.end))return Qr(Vn,ln)}},vr=cr(Be+ie,ie,wt);if(vr)return vr;var kr=ie>0?wt.end:ot(wt.begin,-1);return kr!=null&&!(ie>0&&kr==b.text.length)&&(vr=cr(ie>0?0:me.length-1,ie,ht(kr)),vr)?vr:null}var Ko={selectAll:ul,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ve)},killLine:function(a){return yo(a,function(b){if(b.empty()){var oe=Vt(a.doc,b.head.line).text.length;return b.head.ch==oe&&b.head.line<a.lastLine()?{from:b.head,to:jt(b.head.line+1,0)}:{from:b.head,to:jt(b.head.line,oe)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return yo(a,function(b){return{from:jt(b.from().line,0),to:Pt(a.doc,jt(b.to().line+1,0))}})},delLineLeft:function(a){return yo(a,function(b){return{from:jt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return yo(a,function(b){var oe=a.charCoords(b.head,"div").top+5,ie=a.coordsChar({left:0,top:oe},"div");return{from:ie,to:b.from()}})},delWrappedLineRight:function(a){return yo(a,function(b){var oe=a.charCoords(b.head,"div").top+5,ie=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:oe},"div");return{from:b.from(),to:ie}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(jt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(jt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Tl(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Al(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return Ou(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var oe=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:oe},"div")},ze)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var oe=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:oe},"div")},ze)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var oe=a.cursorCoords(b.head,"div").top+5,ie=a.coordsChar({left:0,top:oe},"div");return ie.ch<a.getLine(ie.line).search(/\S/)?Al(a,b.head):ie},ze)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],oe=a.listSelections(),ie=a.options.tabSize,me=0;me<oe.length;me++){var Be=oe[me].from(),Je=Ne(a.getLine(Be.line),Be.ch,ie);b.push(ut(ie-Je%ie))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return aa(a,function(){for(var b=a.listSelections(),oe=[],ie=0;ie<b.length;ie++)if(b[ie].empty()){var me=b[ie].head,Be=Vt(a.doc,me.line).text;if(Be){if(me.ch==Be.length&&(me=new jt(me.line,me.ch-1)),me.ch>0)me=new jt(me.line,me.ch+1),a.replaceRange(Be.charAt(me.ch-1)+Be.charAt(me.ch-2),jt(me.line,me.ch-2),me,"+transpose");else if(me.line>a.doc.first){var Je=Vt(a.doc,me.line-1).text;Je&&(me=new jt(me.line,1),a.replaceRange(Be.charAt(0)+a.doc.lineSeparator()+Je.charAt(Je.length-1),jt(me.line-1,Je.length-1),me,"+transpose"))}}oe.push(new ni(me,me))}a.setSelections(oe)})},newlineAndIndent:function(a){return aa(a,function(){for(var b=a.listSelections(),oe=b.length-1;oe>=0;oe--)a.replaceRange(a.doc.lineSeparator(),b[oe].anchor,b[oe].head,"+input");b=a.listSelections();for(var ie=0;ie<b.length;ie++)a.indentLine(b[ie].from().line,null,!0);Da(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Tl(a,b){var oe=Vt(a.doc,b),ie=Zt(oe);return ie!=oe&&(b=Ct(ie)),Ps(!0,a,ie,b,1)}function Ou(a,b){var oe=Vt(a.doc,b),ie=er(oe);return ie!=oe&&(b=Ct(ie)),Ps(!0,a,oe,b,-1)}function Al(a,b){var oe=Tl(a,b.line),ie=Vt(a.doc,oe.line),me=St(ie,a.doc.direction);if(!me||me[0].level==0){var Be=Math.max(oe.ch,ie.text.search(/\S/)),Je=b.line==oe.line&&b.ch<=Be&&b.ch;return jt(oe.line,Je?0:Be,oe.sticky)}return oe}function hs(a,b,oe){if(typeof b=="string"&&(b=Ko[b],!b))return!1;a.display.input.ensurePolled();var ie=a.display.shift,me=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),oe&&(a.display.shift=!1),me=b(a)!=tt}finally{a.display.shift=ie,a.state.suppressEdits=!1}return me}function Du(a,b,oe){for(var ie=0;ie<a.state.keyMaps.length;ie++){var me=go(b,a.state.keyMaps[ie],oe,a);if(me)return me}return a.options.extraKeys&&go(b,a.options.extraKeys,oe,a)||go(b,a.options.keyMap,oe,a)}var Pu=new Fe;function Vo(a,b,oe,ie){var me=a.state.keySeq;if(me){if(Cl(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:Pu.set(50,function(){a.state.keySeq==me&&(a.state.keySeq=null,a.display.input.reset())}),jl(a,me+" "+b,oe,ie))return!0}return jl(a,b,oe,ie)}function jl(a,b,oe,ie){var me=Du(a,b,ie);return me=="multi"&&(a.state.keySeq=b),me=="handled"&&Qn(a,"keyHandled",a,b,oe),(me=="handled"||me=="multi")&&($t(oe),To(a)),!!me}function Ol(a,b){var oe=kl(b,!0);return oe?b.shiftKey&&!a.state.keySeq?Vo(a,"Shift-"+oe,b,function(ie){return hs(a,ie,!0)})||Vo(a,oe,b,function(ie){if(typeof ie=="string"?/^go[A-Z]/.test(ie):ie.motion)return hs(a,ie)}):Vo(a,oe,b,function(ie){return hs(a,ie)}):!1}function _u(a,b,oe){return Vo(a,"'"+oe+"'",b,function(ie){return hs(a,ie,!0)})}var _s=null;function Dl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=ke(),!ft(b,a))){ye&&x<11&&a.keyCode==27&&(a.returnValue=!1);var oe=a.keyCode;b.display.shift=oe==16||a.shiftKey;var ie=Ol(b,a);ee&&(_s=ie?oe:null,!ie&&oe==88&&!Tr&&(he?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),Ye&&!he&&!ie&&oe==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),oe==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Ru(b)}}function Ru(a){var b=a.display.lineDiv;Pe(b,"CodeMirror-crosshair");function oe(ie){(ie.keyCode==18||!ie.altKey)&&(Me(b,"CodeMirror-crosshair"),Tt(document,"keyup",oe),Tt(document,"mouseover",oe))}xt(document,"keyup",oe),xt(document,"mouseover",oe)}function Pl(a){a.keyCode==16&&(this.doc.sel.shift=!1),ft(this,a)}function _l(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(fi(b.display,a)||ft(b,a)||a.ctrlKey&&!a.altKey||he&&a.metaKey)){var oe=a.keyCode,ie=a.charCode;if(ee&&oe==_s){_s=null,$t(a);return}if(!(ee&&(!a.which||a.which<10)&&Ol(b,a))){var me=String.fromCharCode(ie==null?oe:ie);me!="\b"&&(_u(b,a,me)||b.display.input.onKeyPress(a))}}}var Mu=400,Rs=function(a,b,oe){this.time=a,this.pos=b,this.button=oe};Rs.prototype.compare=function(a,b,oe){return this.time+Mu>a&&nr(b,this.pos)==0&&oe==this.button};var Xo,Yo;function Iu(a,b){var oe=+new Date;return Yo&&Yo.compare(oe,a,b)?(Xo=Yo=null,"triple"):Xo&&Xo.compare(oe,a,b)?(Yo=new Rs(oe,a,b),Xo=null,"double"):(Xo=new Rs(oe,a,b),Yo=null,"single")}function Rl(a){var b=this,oe=b.display;if(!(ft(b,a)||oe.activeTouch&&oe.input.supportsTouch())){if(oe.input.ensurePolled(),oe.shift=a.shiftKey,fi(oe,a)){z||(oe.scroller.draggable=!1,setTimeout(function(){return oe.scroller.draggable=!0},100));return}if(!Ms(b,a)){var ie=wa(b,a),me=Dr(a),Be=ie?Iu(ie,me):"single";window.focus(),me==1&&b.state.selectingText&&b.state.selectingText(a),!(ie&&Nu(b,me,ie,Be,a))&&(me==1?ie?Bu(b,ie,Be,a):jr(a)==oe.scroller&&$t(a):me==2?(ie&&ss(b.doc,ie),setTimeout(function(){return oe.input.focus()},20)):me==3&&(Te?b.display.input.onContextMenu(a):jo(b)))}}}function Nu(a,b,oe,ie,me){var Be="Click";return ie=="double"?Be="Double"+Be:ie=="triple"&&(Be="Triple"+Be),Be=(b==1?"Left":b==2?"Middle":"Right")+Be,Vo(a,El(Be,me),me,function(Je){if(typeof Je=="string"&&(Je=Ko[Je]),!Je)return!1;var ot=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ot=Je(a,oe)!=tt}finally{a.state.suppressEdits=!1}return ot})}function Lu(a,b,oe){var ie=a.getOption("configureMouse"),me=ie?ie(a,b,oe):{};if(me.unit==null){var Be=pe?oe.shiftKey&&oe.metaKey:oe.altKey;me.unit=Be?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(me.extend==null||a.doc.extend)&&(me.extend=a.doc.extend||oe.shiftKey),me.addNew==null&&(me.addNew=he?oe.metaKey:oe.ctrlKey),me.moveOnDrag==null&&(me.moveOnDrag=!(he?oe.altKey:oe.ctrlKey)),me}function Bu(a,b,oe,ie){ye?setTimeout($e(Ao,a),0):a.curOp.focus=ke();var me=Lu(a,oe,ie),Be=a.doc.sel,Je;a.options.dragDrop&&Fr&&!a.isReadOnly()&&oe=="single"&&(Je=Be.contains(b))>-1&&(nr((Je=Be.ranges[Je]).from(),b)<0||b.xRel>0)&&(nr(Je.to(),b)>0||b.xRel<0)?Fu(a,ie,b,me):Uu(a,ie,b,me)}function Fu(a,b,oe,ie){var me=a.display,Be=!1,Je=Ii(a,function(ht){z&&(me.scroller.draggable=!1),a.state.draggingText=!1,Tt(me.wrapper.ownerDocument,"mouseup",Je),Tt(me.wrapper.ownerDocument,"mousemove",ot),Tt(me.scroller,"dragstart",lt),Tt(me.scroller,"drop",Je),Be||($t(ht),ie.addNew||ss(a.doc,oe,null,null,ie.extend),z&&!fe||ye&&x==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),ot=function(ht){Be=Be||Math.abs(b.clientX-ht.clientX)+Math.abs(b.clientY-ht.clientY)>=10},lt=function(){return Be=!0};z&&(me.scroller.draggable=!0),a.state.draggingText=Je,Je.copy=!ie.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),xt(me.wrapper.ownerDocument,"mouseup",Je),xt(me.wrapper.ownerDocument,"mousemove",ot),xt(me.scroller,"dragstart",lt),xt(me.scroller,"drop",Je),jo(a),setTimeout(function(){return me.input.focus()},20)}function Ml(a,b,oe){if(oe=="char")return new ni(b,b);if(oe=="word")return a.findWordAt(b);if(oe=="line")return new ni(jt(b.line,0),Pt(a.doc,jt(b.line+1,0)));var ie=oe(a,b);return new ni(ie.from,ie.to)}function Uu(a,b,oe,ie){var me=a.display,Be=a.doc;$t(b);var Je,ot,lt=Be.sel,ht=lt.ranges;if(ie.addNew&&!ie.extend?(ot=Be.sel.contains(oe),ot>-1?Je=ht[ot]:Je=new ni(oe,oe)):(Je=Be.sel.primary(),ot=Be.sel.primIndex),ie.unit=="rectangle")ie.addNew||(Je=new ni(oe,oe)),oe=wa(a,b,!0,!0),ot=-1;else{var wt=Ml(a,oe,ie.unit);ie.extend?Je=As(Je,wt.anchor,wt.head,ie.extend):Je=wt}ie.addNew?ot==-1?(ot=ht.length,zi(Be,ya(a,ht.concat([Je]),ot),{scroll:!1,origin:"*mouse"})):ht.length>1&&ht[ot].empty()&&ie.unit=="char"&&!ie.extend?(zi(Be,ya(a,ht.slice(0,ot).concat(ht.slice(ot+1)),0),{scroll:!1,origin:"*mouse"}),lt=Be.sel):js(Be,ot,Je,Ke):(ot=0,zi(Be,new ha([Je],0),Ke),lt=Be.sel);var Et=oe;function Wt(Mr){if(nr(Et,Mr)!=0)if(Et=Mr,ie.unit=="rectangle"){for(var Qr=[],En=a.options.tabSize,ln=Ne(Vt(Be,oe.line).text,oe.ch,En),Vn=Ne(Vt(Be,Mr.line).text,Mr.ch,En),ci=Math.min(ln,Vn),Li=Math.max(ln,Vn),xi=Math.min(oe.line,Mr.line),oa=Math.min(a.lastLine(),Math.max(oe.line,Mr.line));xi<=oa;xi++){var ea=Vt(Be,xi).text,Oi=at(ea,ci,En);ci==Li?Qr.push(new ni(jt(xi,Oi),jt(xi,Oi))):ea.length>Oi&&Qr.push(new ni(jt(xi,Oi),jt(xi,at(ea,Li,En))))}Qr.length||Qr.push(new ni(oe,oe)),zi(Be,ya(a,lt.ranges.slice(0,ot).concat(Qr),ot),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Mr)}else{var ta=Je,Wi=Ml(a,Mr,ie.unit),Ri=ta.anchor,Di;nr(Wi.anchor,Ri)>0?(Di=Wi.head,Ri=ur(ta.from(),Wi.anchor)):(Di=Wi.anchor,Ri=br(ta.to(),Wi.head));var Ei=lt.ranges.slice(0);Ei[ot]=Wu(a,new ni(Pt(Be,Ri),Di)),zi(Be,ya(a,Ei,ot),Ke)}}var Nt=me.wrapper.getBoundingClientRect(),cr=0;function vr(Mr){var Qr=++cr,En=wa(a,Mr,!0,ie.unit=="rectangle");if(En)if(nr(En,Et)!=0){a.curOp.focus=ke(),Wt(En);var ln=Oa(me,Be);(En.line>=ln.to||En.line<ln.from)&&setTimeout(Ii(a,function(){cr==Qr&&vr(Mr)}),150)}else{var Vn=Mr.clientY<Nt.top?-20:Mr.clientY>Nt.bottom?20:0;Vn&&setTimeout(Ii(a,function(){cr==Qr&&(me.scroller.scrollTop+=Vn,vr(Mr))}),50)}}function kr(Mr){a.state.selectingText=!1,cr=1/0,Mr&&($t(Mr),me.input.focus()),Tt(me.wrapper.ownerDocument,"mousemove",Rr),Tt(me.wrapper.ownerDocument,"mouseup",Hr),Be.history.lastSelOrigin=null}var Rr=Ii(a,function(Mr){Mr.buttons===0||!Dr(Mr)?kr(Mr):vr(Mr)}),Hr=Ii(a,kr);a.state.selectingText=Hr,xt(me.wrapper.ownerDocument,"mousemove",Rr),xt(me.wrapper.ownerDocument,"mouseup",Hr)}function Wu(a,b){var oe=b.anchor,ie=b.head,me=Vt(a.doc,oe.line);if(nr(oe,ie)==0&&oe.sticky==ie.sticky)return b;var Be=St(me);if(!Be)return b;var Je=ct(Be,oe.ch,oe.sticky),ot=Be[Je];if(ot.from!=oe.ch&&ot.to!=oe.ch)return b;var lt=Je+(ot.from==oe.ch==(ot.level!=1)?0:1);if(lt==0||lt==Be.length)return b;var ht;if(ie.line!=oe.line)ht=(ie.line-oe.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var wt=ct(Be,ie.ch,ie.sticky),Et=wt-Je||(ie.ch-oe.ch)*(ot.level==1?-1:1);wt==lt-1||wt==lt?ht=Et<0:ht=Et>0}var Wt=Be[lt+(ht?-1:0)],Nt=ht==(Wt.level==1),cr=Nt?Wt.from:Wt.to,vr=Nt?"after":"before";return oe.ch==cr&&oe.sticky==vr?b:new ni(new jt(oe.line,cr,vr),ie)}function Il(a,b,oe,ie){var me,Be;if(b.touches)me=b.touches[0].clientX,Be=b.touches[0].clientY;else try{me=b.clientX,Be=b.clientY}catch(Wt){return!1}if(me>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;ie&&$t(b);var Je=a.display,ot=Je.lineDiv.getBoundingClientRect();if(Be>ot.bottom||!At(a,oe))return qt(b);Be-=ot.top-Je.viewOffset;for(var lt=0;lt<a.display.gutterSpecs.length;++lt){var ht=Je.gutters.childNodes[lt];if(ht&&ht.getBoundingClientRect().right>=me){var wt=kt(a.doc,Be),Et=a.display.gutterSpecs[lt];return bt(a,oe,a,wt,Et.className,b),qt(b)}}}function Ms(a,b){return Il(a,b,"gutterClick",!0)}function Nl(a,b){fi(a.display,b)||Zu(a,b)||ft(a,b,"contextmenu")||Te||a.display.input.onContextMenu(b)}function Zu(a,b){return At(a,"gutterContextMenu")?Il(a,b,"gutterContextMenu",!1):!1}function Ll(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ea(a)}var bo={toString:function(){return"CodeMirror.Init"}},Bl={},ps={};function zu(a){var b=a.optionHandlers;function oe(ie,me,Be,Je){a.defaults[ie]=me,Be&&(b[ie]=Je?function(ot,lt,ht){ht!=bo&&Be(ot,lt,ht)}:Be)}a.defineOption=oe,a.Init=bo,oe("value","",function(ie,me){return ie.setValue(me)},!0),oe("mode",null,function(ie,me){ie.doc.modeOption=me,Es(ie)},!0),oe("indentUnit",2,Es,!0),oe("indentWithTabs",!1),oe("smartIndent",!0),oe("tabSize",4,function(ie){Lo(ie),Ea(ie),Ui(ie)},!0),oe("lineSeparator",null,function(ie,me){if(ie.doc.lineSep=me,!!me){var Be=[],Je=ie.doc.first;ie.doc.iter(function(lt){for(var ht=0;;){var wt=lt.text.indexOf(me,ht);if(wt==-1)break;ht=wt+me.length,Be.push(jt(Je,wt))}Je++});for(var ot=Be.length-1;ot>=0;ot--)mo(ie.doc,me,Be[ot],jt(Be[ot].line,Be[ot].ch+me.length))}}),oe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ie,me,Be){ie.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),Be!=bo&&ie.refresh()}),oe("specialCharPlaceholder",Sn,function(ie){return ie.refresh()},!0),oe("electricChars",!0),oe("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),oe("spellcheck",!1,function(ie,me){return ie.getInputField().spellcheck=me},!0),oe("autocorrect",!1,function(ie,me){return ie.getInputField().autocorrect=me},!0),oe("autocapitalize",!1,function(ie,me){return ie.getInputField().autocapitalize=me},!0),oe("rtlMoveVisually",!ve),oe("wholeLineUpdateBefore",!0),oe("theme","default",function(ie){Ll(ie),No(ie)},!0),oe("keyMap","default",function(ie,me,Be){var Je=ds(me),ot=Be!=bo&&ds(Be);ot&&ot.detach&&ot.detach(ie,Je),Je.attach&&Je.attach(ie,ot||null)}),oe("extraKeys",null),oe("configureMouse",null),oe("lineWrapping",!1,Gu,!0),oe("gutters",[],function(ie,me){ie.display.gutterSpecs=Ss(me,ie.options.lineNumbers),No(ie)},!0),oe("fixedGutter",!0,function(ie,me){ie.display.gutters.style.left=me?Qa(ie.display)+"px":"0",ie.refresh()},!0),oe("coverGutterNextToScrollbar",!1,function(ie){return Mi(ie)},!0),oe("scrollbarStyle","native",function(ie){xa(ie),Mi(ie),ie.display.scrollbars.setScrollTop(ie.doc.scrollTop),ie.display.scrollbars.setScrollLeft(ie.doc.scrollLeft)},!0),oe("lineNumbers",!1,function(ie,me){ie.display.gutterSpecs=Ss(ie.options.gutters,me),No(ie)},!0),oe("firstLineNumber",1,No,!0),oe("lineNumberFormatter",function(ie){return ie},No,!0),oe("showCursorWhenSelecting",!1,Ua,!0),oe("resetSelectionOnContextMenu",!0),oe("lineWiseCopyCut",!0),oe("pasteLinesPerSelection",!0),oe("selectionsMayTouch",!1),oe("readOnly",!1,function(ie,me){me=="nocursor"&&(Wa(ie),ie.display.input.blur()),ie.display.input.readOnlyChanged(me)}),oe("screenReaderLabel",null,function(ie,me){me=me===""?null:me,ie.display.input.screenReaderLabelChanged(me)}),oe("disableInput",!1,function(ie,me){me||ie.display.input.reset()},!0),oe("dragDrop",!0,Hu),oe("allowDropFileTypes",null),oe("cursorBlinkRate",530),oe("cursorScrollMargin",0),oe("cursorHeight",1,Ua,!0),oe("singleCursorHeightPerLine",!0,Ua,!0),oe("workTime",100),oe("workDelay",100),oe("flattenSpans",!0,Lo,!0),oe("addModeClass",!1,Lo,!0),oe("pollInterval",100),oe("undoDepth",200,function(ie,me){return ie.doc.history.undoDepth=me}),oe("historyEventDelay",1250),oe("viewportMargin",10,function(ie){return ie.refresh()},!0),oe("maxHighlightLength",1e4,Lo,!0),oe("moveInputWithCursor",!0,function(ie,me){me||ie.display.input.resetPosition()}),oe("tabindex",null,function(ie,me){return ie.display.input.getField().tabIndex=me||""}),oe("autofocus",null),oe("direction","ltr",function(ie,me){return ie.doc.setDirection(me)},!0),oe("phrases",null)}function Hu(a,b,oe){var ie=oe&&oe!=bo;if(!b!=!ie){var me=a.display.dragFunctions,Be=b?xt:Tt;Be(a.display.scroller,"dragstart",me.start),Be(a.display.scroller,"dragenter",me.enter),Be(a.display.scroller,"dragover",me.over),Be(a.display.scroller,"dragleave",me.leave),Be(a.display.scroller,"drop",me.drop)}}function Gu(a){a.options.lineWrapping?(Pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Me(a.display.wrapper,"CodeMirror-wrap"),Ar(a)),Eo(a),Ui(a),Ea(a),setTimeout(function(){return Mi(a)},100)}function yi(a,b){var oe=this;if(!(this instanceof yi))return new yi(a,b);this.options=b=b?it(b):{},it(Bl,b,!1);var ie=b.value;typeof ie=="string"?ie=new qi(ie,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ie.modeOption=b.mode),this.doc=ie;var me=new yi.inputStyles[b.inputStyle](this),Be=this.display=new iu(a,ie,me,b);Be.wrapper.CodeMirror=this,Ll(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xa(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Fe,keySeq:null,specialChars:null},b.autofocus&&!ue&&Be.input.focus(),ye&&x<11&&setTimeout(function(){return oe.display.input.reset(!0)},20),Ku(this),Cu(),fa(this),this.curOp.forceUpdate=!0,Ys(this,ie),b.autofocus&&!ue||this.hasFocus()?setTimeout(function(){oe.hasFocus()&&!oe.state.focused&&Oo(oe)},20):Wa(this);for(var Je in ps)ps.hasOwnProperty(Je)&&ps[Je](this,b[Je],bo);Zs(this),b.finishInit&&b.finishInit(this);for(var ot=0;ot<Is.length;++ot)Is[ot](this);ga(this),z&&b.lineWrapping&&getComputedStyle(Be.lineDiv).textRendering=="optimizelegibility"&&(Be.lineDiv.style.textRendering="auto")}yi.defaults=Bl,yi.optionHandlers=ps;function Ku(a){var b=a.display;xt(b.scroller,"mousedown",Ii(a,Rl)),ye&&x<11?xt(b.scroller,"dblclick",Ii(a,function(lt){if(!ft(a,lt)){var ht=wa(a,lt);if(!(!ht||Ms(a,lt)||fi(a.display,lt))){$t(lt);var wt=a.findWordAt(ht);ss(a.doc,wt.anchor,wt.head)}}})):xt(b.scroller,"dblclick",function(lt){return ft(a,lt)||$t(lt)}),xt(b.scroller,"contextmenu",function(lt){return Nl(a,lt)}),xt(b.input.getField(),"contextmenu",function(lt){b.scroller.contains(lt.target)||Nl(a,lt)});var oe,ie={end:0};function me(){b.activeTouch&&(oe=setTimeout(function(){return b.activeTouch=null},1e3),ie=b.activeTouch,ie.end=+new Date)}function Be(lt){if(lt.touches.length!=1)return!1;var ht=lt.touches[0];return ht.radiusX<=1&&ht.radiusY<=1}function Je(lt,ht){if(ht.left==null)return!0;var wt=ht.left-lt.left,Et=ht.top-lt.top;return wt*wt+Et*Et>20*20}xt(b.scroller,"touchstart",function(lt){if(!ft(a,lt)&&!Be(lt)&&!Ms(a,lt)){b.input.ensurePolled(),clearTimeout(oe);var ht=+new Date;b.activeTouch={start:ht,moved:!1,prev:ht-ie.end<=300?ie:null},lt.touches.length==1&&(b.activeTouch.left=lt.touches[0].pageX,b.activeTouch.top=lt.touches[0].pageY)}}),xt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),xt(b.scroller,"touchend",function(lt){var ht=b.activeTouch;if(ht&&!fi(b,lt)&&ht.left!=null&&!ht.moved&&new Date-ht.start<300){var wt=a.coordsChar(b.activeTouch,"page"),Et;!ht.prev||Je(ht,ht.prev)?Et=new ni(wt,wt):!ht.prev.prev||Je(ht,ht.prev.prev)?Et=a.findWordAt(wt):Et=new ni(jt(wt.line,0),Pt(a.doc,jt(wt.line+1,0))),a.setSelection(Et.anchor,Et.head),a.focus(),$t(lt)}me()}),xt(b.scroller,"touchcancel",me),xt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Pa(a,b.scroller.scrollTop),_a(a,b.scroller.scrollLeft,!0),bt(a,"scroll",a))}),xt(b.scroller,"mousewheel",function(lt){return Gs(a,lt)}),xt(b.scroller,"DOMMouseScroll",function(lt){return Gs(a,lt)}),xt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(lt){ft(a,lt)||wr(lt)},over:function(lt){ft(a,lt)||(Su(a,lt),wr(lt))},start:function(lt){return xu(a,lt)},drop:Ii(a,wu),leave:function(lt){ft(a,lt)||wl(a)}};var ot=b.input.getField();xt(ot,"keyup",function(lt){return Pl.call(a,lt)}),xt(ot,"keydown",Ii(a,Dl)),xt(ot,"keypress",Ii(a,_l)),xt(ot,"focus",function(lt){return Oo(a,lt)}),xt(ot,"blur",function(lt){return Wa(a,lt)})}var Is=[];yi.defineInitHook=function(a){return Is.push(a)};function $o(a,b,oe,ie){var me=a.doc,Be;oe==null&&(oe="add"),oe=="smart"&&(me.mode.indent?Be=Ln(a,b).state:oe="prev");var Je=a.options.tabSize,ot=Vt(me,b),lt=Ne(ot.text,null,Je);ot.stateAfter&&(ot.stateAfter=null);var ht=ot.text.match(/^\s*/)[0],wt;if(!ie&&!/\S/.test(ot.text))wt=0,oe="not";else if(oe=="smart"&&(wt=me.mode.indent(Be,ot.text.slice(ht.length),ot.text),wt==tt||wt>150)){if(!ie)return;oe="prev"}oe=="prev"?b>me.first?wt=Ne(Vt(me,b-1).text,null,Je):wt=0:oe=="add"?wt=lt+a.options.indentUnit:oe=="subtract"?wt=lt-a.options.indentUnit:typeof oe=="number"&&(wt=lt+oe),wt=Math.max(0,wt);var Et="",Wt=0;if(a.options.indentWithTabs)for(var Nt=Math.floor(wt/Je);Nt;--Nt)Wt+=Je,Et+=" ";if(Wt<wt&&(Et+=ut(wt-Wt)),Et!=ht)return mo(me,Et,jt(b,0),jt(b,ht.length),"+input"),ot.stateAfter=null,!0;for(var cr=0;cr<me.sel.ranges.length;cr++){var vr=me.sel.ranges[cr];if(vr.head.line==b&&vr.head.ch<ht.length){var kr=jt(b,ht.length);js(me,cr,new ni(kr,kr));break}}}var ba=null;function ms(a){ba=a}function Ns(a,b,oe,ie,me){var Be=a.doc;a.display.shift=!1,ie||(ie=Be.sel);var Je=+new Date-200,ot=me=="paste"||a.state.pasteIncoming>Je,lt=An(b),ht=null;if(ot&&ie.ranges.length>1)if(ba&&ba.text.join(`
`)==b){if(ie.ranges.length%ba.text.length==0){ht=[];for(var wt=0;wt<ba.text.length;wt++)ht.push(Be.splitLines(ba.text[wt]))}}else lt.length==ie.ranges.length&&a.options.pasteLinesPerSelection&&(ht=Xe(lt,function(Rr){return[Rr]}));for(var Et=a.curOp.updateInput,Wt=ie.ranges.length-1;Wt>=0;Wt--){var Nt=ie.ranges[Wt],cr=Nt.from(),vr=Nt.to();Nt.empty()&&(oe&&oe>0?cr=jt(cr.line,cr.ch-oe):a.state.overwrite&&!ot?vr=jt(vr.line,Math.min(Vt(Be,vr.line).text.length,vr.ch+st(lt).length)):ot&&ba&&ba.lineWise&&ba.text.join(`
`)==lt.join(`
`)&&(cr=vr=jt(cr.line,0)));var kr={from:cr,to:vr,text:ht?ht[Wt%ht.length]:lt,origin:me||(ot?"paste":a.state.cutIncoming>Je?"cut":"+input")};po(a.doc,kr),Qn(a,"inputRead",a,kr)}b&&!ot&&Ul(a,b),Da(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Et),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Fl(a,b){var oe=a.clipboardData&&a.clipboardData.getData("Text");if(oe)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&aa(b,function(){return Ns(b,oe,0,null,"paste")}),!0}function Ul(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var oe=a.doc.sel,ie=oe.ranges.length-1;ie>=0;ie--){var me=oe.ranges[ie];if(!(me.head.ch>100||ie&&oe.ranges[ie-1].head.line==me.head.line)){var Be=a.getModeAt(me.head),Je=!1;if(Be.electricChars){for(var ot=0;ot<Be.electricChars.length;ot++)if(b.indexOf(Be.electricChars.charAt(ot))>-1){Je=$o(a,me.head.line,"smart");break}}else Be.electricInput&&Be.electricInput.test(Vt(a.doc,me.head.line).text.slice(0,me.head.ch))&&(Je=$o(a,me.head.line,"smart"));Je&&Qn(a,"electricInput",a,me.head.line)}}}function Wl(a){for(var b=[],oe=[],ie=0;ie<a.doc.sel.ranges.length;ie++){var me=a.doc.sel.ranges[ie].head.line,Be={anchor:jt(me,0),head:jt(me+1,0)};oe.push(Be),b.push(a.getRange(Be.anchor,Be.head))}return{text:b,ranges:oe}}function Zl(a,b,oe,ie){a.setAttribute("autocorrect",oe?"":"off"),a.setAttribute("autocapitalize",ie?"":"off"),a.setAttribute("spellcheck",!!b)}function zl(){var a=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=be("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?a.style.width="1000px":a.setAttribute("wrap","off"),ne&&(a.style.border="1px solid black"),Zl(a),b}function Vu(a){var b=a.optionHandlers,oe=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ie,me){var Be=this.options,Je=Be[ie];Be[ie]==me&&ie!="mode"||(Be[ie]=me,b.hasOwnProperty(ie)&&Ii(this,b[ie])(this,me,Je),bt(this,"optionChange",this,ie))},getOption:function(ie){return this.options[ie]},getDoc:function(){return this.doc},addKeyMap:function(ie,me){this.state.keyMaps[me?"push":"unshift"](ds(ie))},removeKeyMap:function(ie){for(var me=this.state.keyMaps,Be=0;Be<me.length;++Be)if(me[Be]==ie||me[Be].name==ie)return me.splice(Be,1),!0},addOverlay:Xi(function(ie,me){var Be=ie.token?ie:a.getMode(this.options,ie);if(Be.startState)throw new Error("Overlays may not be stateful.");Le(this.state.overlays,{mode:Be,modeSpec:ie,opaque:me&&me.opaque,priority:me&&me.priority||0},function(Je){return Je.priority}),this.state.modeGen++,Ui(this)}),removeOverlay:Xi(function(ie){for(var me=this.state.overlays,Be=0;Be<me.length;++Be){var Je=me[Be].modeSpec;if(Je==ie||typeof ie=="string"&&Je.name==ie){me.splice(Be,1),this.state.modeGen++,Ui(this);return}}}),indentLine:Xi(function(ie,me,Be){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),ir(this.doc,ie)&&$o(this,ie,me,Be)}),indentSelection:Xi(function(ie){for(var me=this.doc.sel.ranges,Be=-1,Je=0;Je<me.length;Je++){var ot=me[Je];if(ot.empty())ot.head.line>Be&&($o(this,ot.head.line,ie,!0),Be=ot.head.line,Je==this.doc.sel.primIndex&&Da(this));else{var lt=ot.from(),ht=ot.to(),wt=Math.max(Be,lt.line);Be=Math.min(this.lastLine(),ht.line-(ht.ch?0:1))+1;for(var Et=wt;Et<Be;++Et)$o(this,Et,ie);var Wt=this.doc.sel.ranges;lt.ch==0&&me.length==Wt.length&&Wt[Je].from().ch>0&&js(this.doc,Je,new ni(lt,Wt[Je].to()),Ve)}}}),getTokenAt:function(ie,me){return zn(this,ie,me)},getLineTokens:function(ie,me){return zn(this,jt(ie),me,!0)},getTokenTypeAt:function(ie){ie=Pt(this.doc,ie);var me=an(this,Vt(this.doc,ie.line)),Be=0,Je=(me.length-1)/2,ot=ie.ch,lt;if(ot==0)lt=me[2];else for(;;){var ht=Be+Je>>1;if((ht?me[ht*2-1]:0)>=ot)Je=ht;else if(me[ht*2+1]<ot)Be=ht+1;else{lt=me[ht*2+2];break}}var wt=lt?lt.indexOf("overlay "):-1;return wt<0?lt:wt==0?null:lt.slice(0,wt-1)},getModeAt:function(ie){var me=this.doc.mode;return me.innerMode?a.innerMode(me,this.getTokenAt(ie).state).mode:me},getHelper:function(ie,me){return this.getHelpers(ie,me)[0]},getHelpers:function(ie,me){var Be=[];if(!oe.hasOwnProperty(me))return Be;var Je=oe[me],ot=this.getModeAt(ie);if(typeof ot[me]=="string")Je[ot[me]]&&Be.push(Je[ot[me]]);else if(ot[me])for(var lt=0;lt<ot[me].length;lt++){var ht=Je[ot[me][lt]];ht&&Be.push(ht)}else ot.helperType&&Je[ot.helperType]?Be.push(Je[ot.helperType]):Je[ot.name]&&Be.push(Je[ot.name]);for(var wt=0;wt<Je._global.length;wt++){var Et=Je._global[wt];Et.pred(ot,this)&&qe(Be,Et.val)==-1&&Be.push(Et.val)}return Be},getStateAfter:function(ie,me){var Be=this.doc;return ie=gr(Be,ie==null?Be.first+Be.size-1:ie),Ln(this,ie+1,me).state},cursorCoords:function(ie,me){var Be,Je=this.doc.sel.primary();return ie==null?Be=Je.head:typeof ie=="object"?Be=Pt(this.doc,ie):Be=ie?Je.from():Je.to(),hi(this,Be,me||"page")},charCoords:function(ie,me){return Fi(this,Pt(this.doc,ie),me||"page")},coordsChar:function(ie,me){return ie=Ta(this,ie,me||"page"),gi(this,ie.left,ie.top)},lineAtHeight:function(ie,me){return ie=Ta(this,{top:ie,left:0},me||"page").top,kt(this.doc,ie+this.display.viewOffset)},heightAtLine:function(ie,me,Be){var Je=!1,ot;if(typeof ie=="number"){var lt=this.doc.first+this.doc.size-1;ie<this.doc.first?ie=this.doc.first:ie>lt&&(ie=lt,Je=!0),ot=Vt(this.doc,ie)}else ot=ie;return ka(this,ot,{top:0,left:0},me||"page",Be||Je).top+(Je?this.doc.height-Cr(ot):0)},defaultTextHeight:function(){return Pi(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ie,me,Be,Je,ot){var lt=this.display;ie=hi(this,Pt(this.doc,ie));var ht=ie.bottom,wt=ie.left;if(me.style.position="absolute",me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(me),lt.sizer.appendChild(me),Je=="over")ht=ie.top;else if(Je=="above"||Je=="near"){var Et=Math.max(lt.wrapper.clientHeight,this.doc.height),Wt=Math.max(lt.sizer.clientWidth,lt.lineSpace.clientWidth);(Je=="above"||ie.bottom+me.offsetHeight>Et)&&ie.top>me.offsetHeight?ht=ie.top-me.offsetHeight:ie.bottom+me.offsetHeight<=Et&&(ht=ie.bottom),wt+me.offsetWidth>Wt&&(wt=Wt-me.offsetWidth)}me.style.top=ht+"px",me.style.left=me.style.right="",ot=="right"?(wt=lt.sizer.clientWidth-me.offsetWidth,me.style.right="0px"):(ot=="left"?wt=0:ot=="middle"&&(wt=(lt.sizer.clientWidth-me.offsetWidth)/2),me.style.left=wt+"px"),Be&&ts(this,{left:wt,top:ht,right:wt+me.offsetWidth,bottom:ht+me.offsetHeight})},triggerOnKeyDown:Xi(Dl),triggerOnKeyPress:Xi(_l),triggerOnKeyUp:Pl,triggerOnMouseDown:Xi(Rl),execCommand:function(ie){if(Ko.hasOwnProperty(ie))return Ko[ie].call(null,this)},triggerElectric:Xi(function(ie){Ul(this,ie)}),findPosH:function(ie,me,Be,Je){var ot=1;me<0&&(ot=-1,me=-me);for(var lt=Pt(this.doc,ie),ht=0;ht<me&&(lt=Ls(this.doc,lt,ot,Be,Je),!lt.hitSide);++ht);return lt},moveH:Xi(function(ie,me){var Be=this;this.extendSelectionsBy(function(Je){return Be.display.shift||Be.doc.extend||Je.empty()?Ls(Be.doc,Je.head,ie,me,Be.options.rtlMoveVisually):ie<0?Je.from():Je.to()},ze)}),deleteH:Xi(function(ie,me){var Be=this.doc.sel,Je=this.doc;Be.somethingSelected()?Je.replaceSelection("",null,"+delete"):yo(this,function(ot){var lt=Ls(Je,ot.head,ie,me,!1);return ie<0?{from:lt,to:ot.head}:{from:ot.head,to:lt}})}),findPosV:function(ie,me,Be,Je){var ot=1,lt=Je;me<0&&(ot=-1,me=-me);for(var ht=Pt(this.doc,ie),wt=0;wt<me;++wt){var Et=hi(this,ht,"div");if(lt==null?lt=Et.left:Et.left=lt,ht=Hl(this,Et,ot,Be),ht.hitSide)break}return ht},moveV:Xi(function(ie,me){var Be=this,Je=this.doc,ot=[],lt=!this.display.shift&&!Je.extend&&Je.sel.somethingSelected();if(Je.extendSelectionsBy(function(wt){if(lt)return ie<0?wt.from():wt.to();var Et=hi(Be,wt.head,"div");wt.goalColumn!=null&&(Et.left=wt.goalColumn),ot.push(Et.left);var Wt=Hl(Be,Et,ie,me);return me=="page"&&wt==Je.sel.primary()&&co(Be,Fi(Be,Wt,"div").top-Et.top),Wt},ze),ot.length)for(var ht=0;ht<Je.sel.ranges.length;ht++)Je.sel.ranges[ht].goalColumn=ot[ht]}),findWordAt:function(ie){var me=this.doc,Be=Vt(me,ie.line).text,Je=ie.ch,ot=ie.ch;if(Be){var lt=this.getHelper(ie,"wordChars");(ie.sticky=="before"||ot==Be.length)&&Je?--Je:++ot;for(var ht=Be.charAt(Je),wt=Ue(ht,lt)?function(Et){return Ue(Et,lt)}:/\s/.test(ht)?function(Et){return/\s/.test(Et)}:function(Et){return!/\s/.test(Et)&&!Ue(Et)};Je>0&&wt(Be.charAt(Je-1));)--Je;for(;ot<Be.length&&wt(Be.charAt(ot));)++ot}return new ni(jt(ie.line,Je),jt(ie.line,ot))},toggleOverwrite:function(ie){ie!=null&&ie==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Pe(this.display.cursorDiv,"CodeMirror-overwrite"):Me(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ke()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xi(function(ie,me){qa(this,ie,me)}),getScrollInfo:function(){var ie=this.display.scroller;return{left:ie.scrollLeft,top:ie.scrollTop,height:ie.scrollHeight-ri(this)-this.display.barHeight,width:ie.scrollWidth-ri(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:sa(this)}},scrollIntoView:Xi(function(ie,me){ie==null?(ie={from:this.doc.sel.primary().head,to:null},me==null&&(me=this.options.cursorScrollMargin)):typeof ie=="number"?ie={from:jt(ie,0),to:null}:ie.from==null&&(ie={from:ie,to:null}),ie.to||(ie.to=ie.from),ie.margin=me||0,ie.from.line!=null?rs(this,ie):Ro(this,ie.from,ie.to,ie.margin)}),setSize:Xi(function(ie,me){var Be=this,Je=function(lt){return typeof lt=="number"||/^\d+$/.test(String(lt))?lt+"px":lt};ie!=null&&(this.display.wrapper.style.width=Je(ie)),me!=null&&(this.display.wrapper.style.height=Je(me)),this.options.lineWrapping&&Ba(this);var ot=this.display.viewFrom;this.doc.iter(ot,this.display.viewTo,function(lt){if(lt.widgets){for(var ht=0;ht<lt.widgets.length;ht++)if(lt.widgets[ht].noHScroll){ca(Be,ot,"widget");break}}++ot}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(ie){return aa(this,ie)},startOperation:function(){return fa(this)},endOperation:function(){return ga(this)},refresh:Xi(function(){var ie=this.display.cachedTextHeight;Ui(this),this.curOp.forceUpdate=!0,Ea(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(ie==null||Math.abs(ie-Pi(this.display))>.5||this.options.lineWrapping)&&Eo(this),bt(this,"refresh",this)}),swapDoc:Xi(function(ie){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),Ys(this,ie),Ea(this),this.display.input.reset(),qa(this,ie.scrollLeft,ie.scrollTop),this.curOp.forceScroll=!0,Qn(this,"swapDoc",this,me),me}),phrase:function(ie){var me=this.options.phrases;return me&&Object.prototype.hasOwnProperty.call(me,ie)?me[ie]:ie},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}},Mt(a),a.registerHelper=function(ie,me,Be){oe.hasOwnProperty(ie)||(oe[ie]=a[ie]={_global:[]}),oe[ie][me]=Be},a.registerGlobalHelper=function(ie,me,Be,Je){a.registerHelper(ie,me,Je),oe[ie]._global.push({pred:Be,val:Je})}}function Ls(a,b,oe,ie,me){var Be=b,Je=oe,ot=Vt(a,b.line),lt=me&&a.direction=="rtl"?-oe:oe;function ht(){var Hr=b.line+lt;return Hr<a.first||Hr>=a.first+a.size?!1:(b=new jt(Hr,b.ch,b.sticky),ot=Vt(a,Hr))}function wt(Hr){var Mr;if(ie=="codepoint"){var Qr=ot.text.charCodeAt(b.ch+(ie>0?0:-1));isNaN(Qr)?Mr=null:Mr=new jt(b.line,Math.max(0,Math.min(ot.text.length,b.ch+oe*(Qr>=55296&&Qr<56320?2:1))),-oe)}else me?Mr=ju(a.cm,ot,b,oe):Mr=Ds(ot,b,oe);if(Mr==null)if(!Hr&&ht())b=Ps(me,a.cm,ot,b.line,lt);else return!1;else b=Mr;return!0}if(ie=="char"||ie=="codepoint")wt();else if(ie=="column")wt(!0);else if(ie=="word"||ie=="group")for(var Et=null,Wt=ie=="group",Nt=a.cm&&a.cm.getHelper(b,"wordChars"),cr=!0;!(oe<0&&!wt(!cr));cr=!1){var vr=ot.text.charAt(b.ch)||`
`,kr=Ue(vr,Nt)?"w":Wt&&vr==`
`?"n":!Wt||/\s/.test(vr)?null:"p";if(Wt&&!cr&&!kr&&(kr="s"),Et&&Et!=kr){oe<0&&(oe=1,wt(),b.sticky="after");break}if(kr&&(Et=kr),oe>0&&!wt(!cr))break}var Rr=us(a,b,Be,Je,!0);return dr(Be,Rr)&&(Rr.hitSide=!0),Rr}function Hl(a,b,oe,ie){var me=a.doc,Be=b.left,Je;if(ie=="page"){var ot=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),lt=Math.max(ot-.5*Pi(a.display),3);Je=(oe>0?b.bottom:b.top)+oe*lt}else ie=="line"&&(Je=oe>0?b.bottom+3:b.top-3);for(var ht;ht=gi(a,Be,Je),!!ht.outside;){if(oe<0?Je<=0:Je>=me.height){ht.hitSide=!0;break}Je+=oe*5}return ht}var li=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};li.prototype.init=function(a){var b=this,oe=this,ie=oe.cm,me=oe.div=a.lineDiv;Zl(me,ie.options.spellcheck,ie.options.autocorrect,ie.options.autocapitalize);function Be(ot){for(var lt=ot.target;lt;lt=lt.parentNode){if(lt==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(lt.className))break}return!1}xt(me,"paste",function(ot){!Be(ot)||ft(ie,ot)||Fl(ot,ie)||x<=11&&setTimeout(Ii(ie,function(){return b.updateFromDOM()}),20)}),xt(me,"compositionstart",function(ot){b.composing={data:ot.data,done:!1}}),xt(me,"compositionupdate",function(ot){b.composing||(b.composing={data:ot.data,done:!1})}),xt(me,"compositionend",function(ot){b.composing&&(ot.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),xt(me,"touchstart",function(){return oe.forceCompositionEnd()}),xt(me,"input",function(){b.composing||b.readFromDOMSoon()});function Je(ot){if(!(!Be(ot)||ft(ie,ot))){if(ie.somethingSelected())ms({lineWise:!1,text:ie.getSelections()}),ot.type=="cut"&&ie.replaceSelection("",null,"cut");else if(ie.options.lineWiseCopyCut){var lt=Wl(ie);ms({lineWise:!0,text:lt.text}),ot.type=="cut"&&ie.operation(function(){ie.setSelections(lt.ranges,0,Ve),ie.replaceSelection("",null,"cut")})}else return;if(ot.clipboardData){ot.clipboardData.clearData();var ht=ba.text.join(`
`);if(ot.clipboardData.setData("Text",ht),ot.clipboardData.getData("Text")==ht){ot.preventDefault();return}}var wt=zl(),Et=wt.firstChild;ie.display.lineSpace.insertBefore(wt,ie.display.lineSpace.firstChild),Et.value=ba.text.join(`
`);var Wt=document.activeElement;He(Et),setTimeout(function(){ie.display.lineSpace.removeChild(wt),Wt.focus(),Wt==me&&oe.showPrimarySelection()},50)}}xt(me,"copy",Je),xt(me,"cut",Je)},li.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},li.prototype.prepareSelection=function(){var a=qo(this.cm,!1);return a.focus=document.activeElement==this.div,a},li.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},li.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},li.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,oe=b.doc.sel.primary(),ie=oe.from(),me=oe.to();if(b.display.viewTo==b.display.viewFrom||ie.line>=b.display.viewTo||me.line<b.display.viewFrom){a.removeAllRanges();return}var Be=vs(b,a.anchorNode,a.anchorOffset),Je=vs(b,a.focusNode,a.focusOffset);if(!(Be&&!Be.bad&&Je&&!Je.bad&&nr(ur(Be,Je),ie)==0&&nr(br(Be,Je),me)==0)){var ot=b.display.view,lt=ie.line>=b.display.viewFrom&&Gl(b,ie)||{node:ot[0].measure.map[2],offset:0},ht=me.line<b.display.viewTo&&Gl(b,me);if(!ht){var wt=ot[ot.length-1].measure,Et=wt.maps?wt.maps[wt.maps.length-1]:wt.map;ht={node:Et[Et.length-1],offset:Et[Et.length-2]-Et[Et.length-3]}}if(!lt||!ht){a.removeAllRanges();return}var Wt=a.rangeCount&&a.getRangeAt(0),Nt;try{Nt=Re(lt.node,lt.offset,ht.offset,ht.node)}catch(cr){}Nt&&(!Ye&&b.state.focused?(a.collapse(lt.node,lt.offset),Nt.collapsed||(a.removeAllRanges(),a.addRange(Nt))):(a.removeAllRanges(),a.addRange(Nt)),Wt&&a.anchorNode==null?a.addRange(Wt):Ye&&this.startGracePeriod()),this.rememberSelection()}},li.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},li.prototype.showMultipleSelections=function(a){ge(this.cm.display.cursorDiv,a.cursors),ge(this.cm.display.selectionDiv,a.selection)},li.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},li.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Ie(this.div,b)},li.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},li.prototype.blur=function(){this.div.blur()},li.prototype.getField=function(){return this.div},li.prototype.supportsTouch=function(){return!0},li.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():aa(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},li.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},li.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(le&&ae&&this.cm.display.gutterSpecs.length&&Xu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var oe=vs(b,a.anchorNode,a.anchorOffset),ie=vs(b,a.focusNode,a.focusOffset);oe&&ie&&aa(b,function(){zi(b.doc,za(oe,ie),Ve),(oe.bad||ie.bad)&&(b.curOp.selectionChanged=!0)})}}},li.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,oe=a.doc.sel.primary(),ie=oe.from(),me=oe.to();if(ie.ch==0&&ie.line>a.firstLine()&&(ie=jt(ie.line-1,Vt(a.doc,ie.line-1).length)),me.ch==Vt(a.doc,me.line).text.length&&me.line<a.lastLine()&&(me=jt(me.line+1,0)),ie.line<b.viewFrom||me.line>b.viewTo-1)return!1;var Be,Je,ot;ie.line==b.viewFrom||(Be=Aa(a,ie.line))==0?(Je=Ct(b.view[0].line),ot=b.view[0].node):(Je=Ct(b.view[Be].line),ot=b.view[Be-1].node.nextSibling);var lt=Aa(a,me.line),ht,wt;if(lt==b.view.length-1?(ht=b.viewTo-1,wt=b.lineDiv.lastChild):(ht=Ct(b.view[lt+1].line)-1,wt=b.view[lt+1].node.previousSibling),!ot)return!1;for(var Et=a.doc.splitLines(Yu(a,ot,wt,Je,ht)),Wt=xr(a.doc,jt(Je,0),jt(ht,Vt(a.doc,ht).text.length));Et.length>1&&Wt.length>1;)if(st(Et)==st(Wt))Et.pop(),Wt.pop(),ht--;else if(Et[0]==Wt[0])Et.shift(),Wt.shift(),Je++;else break;for(var Nt=0,cr=0,vr=Et[0],kr=Wt[0],Rr=Math.min(vr.length,kr.length);Nt<Rr&&vr.charCodeAt(Nt)==kr.charCodeAt(Nt);)++Nt;for(var Hr=st(Et),Mr=st(Wt),Qr=Math.min(Hr.length-(Et.length==1?Nt:0),Mr.length-(Wt.length==1?Nt:0));cr<Qr&&Hr.charCodeAt(Hr.length-cr-1)==Mr.charCodeAt(Mr.length-cr-1);)++cr;if(Et.length==1&&Wt.length==1&&Je==ie.line)for(;Nt&&Nt>ie.ch&&Hr.charCodeAt(Hr.length-cr-1)==Mr.charCodeAt(Mr.length-cr-1);)Nt--,cr++;Et[Et.length-1]=Hr.slice(0,Hr.length-cr).replace(/^\u200b+/,""),Et[0]=Et[0].slice(Nt).replace(/\u200b+$/,"");var En=jt(Je,Nt),ln=jt(ht,Wt.length?st(Wt).length-cr:0);if(Et.length>1||Et[0]||nr(En,ln))return mo(a.doc,Et,En,ln,"+input"),!0},li.prototype.ensurePolled=function(){this.forceCompositionEnd()},li.prototype.reset=function(){this.forceCompositionEnd()},li.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},li.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},li.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&aa(this.cm,function(){return Ui(a.cm)})},li.prototype.setUneditable=function(a){a.contentEditable="false"},li.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ii(this.cm,Ns)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},li.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},li.prototype.onContextMenu=function(){},li.prototype.resetPosition=function(){},li.prototype.needsContentAttribute=!0;function Gl(a,b){var oe=pa(a,b.line);if(!oe||oe.hidden)return null;var ie=Vt(a.doc,b.line),me=vi(oe,ie,b.line),Be=St(ie,a.doc.direction),Je="left";if(Be){var ot=ct(Be,b.ch);Je=ot%2?"right":"left"}var lt=no(me.map,b.ch,Je);return lt.offset=lt.collapse=="right"?lt.end:lt.start,lt}function Xu(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function wo(a,b){return b&&(a.bad=!0),a}function Yu(a,b,oe,ie,me){var Be="",Je=!1,ot=a.doc.lineSeparator(),lt=!1;function ht(Nt){return function(cr){return cr.id==Nt}}function wt(){Je&&(Be+=ot,lt&&(Be+=ot),Je=lt=!1)}function Et(Nt){Nt&&(wt(),Be+=Nt)}function Wt(Nt){if(Nt.nodeType==1){var cr=Nt.getAttribute("cm-text");if(cr){Et(cr);return}var vr=Nt.getAttribute("cm-marker"),kr;if(vr){var Rr=a.findMarks(jt(ie,0),jt(me+1,0),ht(+vr));Rr.length&&(kr=Rr[0].find(0))&&Et(xr(a.doc,kr.from,kr.to).join(ot));return}if(Nt.getAttribute("contenteditable")=="false")return;var Hr=/^(pre|div|p|li|table|br)$/i.test(Nt.nodeName);if(!/^br$/i.test(Nt.nodeName)&&Nt.textContent.length==0)return;Hr&&wt();for(var Mr=0;Mr<Nt.childNodes.length;Mr++)Wt(Nt.childNodes[Mr]);/^(pre|p)$/i.test(Nt.nodeName)&&(lt=!0),Hr&&(Je=!0)}else Nt.nodeType==3&&Et(Nt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Wt(b),b!=oe;)b=b.nextSibling,lt=!1;return Be}function vs(a,b,oe){var ie;if(b==a.display.lineDiv){if(ie=a.display.lineDiv.childNodes[oe],!ie)return wo(a.clipPos(jt(a.display.viewTo-1)),!0);b=null,oe=0}else for(ie=b;;ie=ie.parentNode){if(!ie||ie==a.display.lineDiv)return null;if(ie.parentNode&&ie.parentNode==a.display.lineDiv)break}for(var me=0;me<a.display.view.length;me++){var Be=a.display.view[me];if(Be.node==ie)return $u(Be,b,oe)}}function $u(a,b,oe){var ie=a.text.firstChild,me=!1;if(!b||!Ie(ie,b))return wo(jt(Ct(a.line),0),!0);if(b==ie&&(me=!0,b=ie.childNodes[oe],oe=0,!b)){var Be=a.rest?st(a.rest):a.line;return wo(jt(Ct(Be),Be.text.length),me)}var Je=b.nodeType==3?b:null,ot=b;for(!Je&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(Je=b.firstChild,oe&&(oe=Je.nodeValue.length));ot.parentNode!=ie;)ot=ot.parentNode;var lt=a.measure,ht=lt.maps;function wt(kr,Rr,Hr){for(var Mr=-1;Mr<(ht?ht.length:0);Mr++)for(var Qr=Mr<0?lt.map:ht[Mr],En=0;En<Qr.length;En+=3){var ln=Qr[En+2];if(ln==kr||ln==Rr){var Vn=Ct(Mr<0?a.line:a.rest[Mr]),ci=Qr[En]+Hr;return(Hr<0||ln!=kr)&&(ci=Qr[En+(Hr?1:0)]),jt(Vn,ci)}}}var Et=wt(Je,ot,oe);if(Et)return wo(Et,me);for(var Wt=ot.nextSibling,Nt=Je?Je.nodeValue.length-oe:0;Wt;Wt=Wt.nextSibling){if(Et=wt(Wt,Wt.firstChild,0),Et)return wo(jt(Et.line,Et.ch-Nt),me);Nt+=Wt.textContent.length}for(var cr=ot.previousSibling,vr=oe;cr;cr=cr.previousSibling){if(Et=wt(cr,cr.firstChild,-1),Et)return wo(jt(Et.line,Et.ch+vr),me);vr+=cr.textContent.length}}var Ai=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new Fe,this.hasSelection=!1,this.composing=null};Ai.prototype.init=function(a){var b=this,oe=this,ie=this.cm;this.createField(a);var me=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),ne&&(me.style.width="0px"),xt(me,"input",function(){ye&&x>=9&&b.hasSelection&&(b.hasSelection=null),oe.poll()}),xt(me,"paste",function(Je){ft(ie,Je)||Fl(Je,ie)||(ie.state.pasteIncoming=+new Date,oe.fastPoll())});function Be(Je){if(!ft(ie,Je)){if(ie.somethingSelected())ms({lineWise:!1,text:ie.getSelections()});else if(ie.options.lineWiseCopyCut){var ot=Wl(ie);ms({lineWise:!0,text:ot.text}),Je.type=="cut"?ie.setSelections(ot.ranges,null,Ve):(oe.prevInput="",me.value=ot.text.join(`
`),He(me))}else return;Je.type=="cut"&&(ie.state.cutIncoming=+new Date)}}xt(me,"cut",Be),xt(me,"copy",Be),xt(a.scroller,"paste",function(Je){if(!(fi(a,Je)||ft(ie,Je))){if(!me.dispatchEvent){ie.state.pasteIncoming=+new Date,oe.focus();return}var ot=new Event("paste");ot.clipboardData=Je.clipboardData,me.dispatchEvent(ot)}}),xt(a.lineSpace,"selectstart",function(Je){fi(a,Je)||$t(Je)}),xt(me,"compositionstart",function(){var Je=ie.getCursor("from");oe.composing&&oe.composing.range.clear(),oe.composing={start:Je,range:ie.markText(Je,ie.getCursor("to"),{className:"CodeMirror-composing"})}}),xt(me,"compositionend",function(){oe.composing&&(oe.poll(),oe.composing.range.clear(),oe.composing=null)})},Ai.prototype.createField=function(a){this.wrapper=zl(),this.textarea=this.wrapper.firstChild},Ai.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ai.prototype.prepareSelection=function(){var a=this.cm,b=a.display,oe=a.doc,ie=qo(a);if(a.options.moveInputWithCursor){var me=hi(a,oe.sel.primary().head,"div"),Be=b.wrapper.getBoundingClientRect(),Je=b.lineDiv.getBoundingClientRect();ie.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,me.top+Je.top-Be.top)),ie.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,me.left+Je.left-Be.left))}return ie},Ai.prototype.showSelection=function(a){var b=this.cm,oe=b.display;ge(oe.cursorDiv,a.cursors),ge(oe.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ai.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var oe=b.getSelection();this.textarea.value=oe,b.state.focused&&He(this.textarea),ye&&x>=9&&(this.hasSelection=oe)}else a||(this.prevInput=this.textarea.value="",ye&&x>=9&&(this.hasSelection=null))}},Ai.prototype.getField=function(){return this.textarea},Ai.prototype.supportsTouch=function(){return!1},Ai.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||ke()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ai.prototype.blur=function(){this.textarea.blur()},Ai.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ai.prototype.receivedFocus=function(){this.slowPoll()},Ai.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ai.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function oe(){var ie=b.poll();!ie&&!a?(a=!0,b.polling.set(60,oe)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,oe)},Ai.prototype.poll=function(){var a=this,b=this.cm,oe=this.textarea,ie=this.prevInput;if(this.contextMenuPending||!b.state.focused||Rn(oe)&&!ie&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var me=oe.value;if(me==ie&&!b.somethingSelected())return!1;if(ye&&x>=9&&this.hasSelection===me||he&&/[\uf700-\uf7ff]/.test(me))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Be=me.charCodeAt(0);if(Be==8203&&!ie&&(ie="\u200B"),Be==8666)return this.reset(),this.cm.execCommand("undo")}for(var Je=0,ot=Math.min(ie.length,me.length);Je<ot&&ie.charCodeAt(Je)==me.charCodeAt(Je);)++Je;return aa(b,function(){Ns(b,me.slice(Je),ie.length-Je,null,a.composing?"*compose":null),me.length>1e3||me.indexOf(`
`)>-1?oe.value=a.prevInput="":a.prevInput=me,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ai.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ai.prototype.onKeyPress=function(){ye&&x>=9&&(this.hasSelection=null),this.fastPoll()},Ai.prototype.onContextMenu=function(a){var b=this,oe=b.cm,ie=oe.display,me=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Be=wa(oe,a),Je=ie.scroller.scrollTop;if(!Be||ee)return;var ot=oe.options.resetSelectionOnContextMenu;ot&&oe.doc.sel.contains(Be)==-1&&Ii(oe,zi)(oe.doc,za(Be),Ve);var lt=me.style.cssText,ht=b.wrapper.style.cssText,wt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-wt.top-5)+"px; left: "+(a.clientX-wt.left-5)+`px;
z-index: 1000; background: `+(ye?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Et;z&&(Et=window.scrollY),ie.input.focus(),z&&window.scrollTo(null,Et),ie.input.reset(),oe.somethingSelected()||(me.value=b.prevInput=" "),b.contextMenuPending=Nt,ie.selForContextMenu=oe.doc.sel,clearTimeout(ie.detectingSelectAll);function Wt(){if(me.selectionStart!=null){var vr=oe.somethingSelected(),kr="\u200B"+(vr?me.value:"");me.value="\u21DA",me.value=kr,b.prevInput=vr?"":"\u200B",me.selectionStart=1,me.selectionEnd=kr.length,ie.selForContextMenu=oe.doc.sel}}function Nt(){if(b.contextMenuPending==Nt&&(b.contextMenuPending=!1,b.wrapper.style.cssText=ht,me.style.cssText=lt,ye&&x<9&&ie.scrollbars.setScrollTop(ie.scroller.scrollTop=Je),me.selectionStart!=null)){(!ye||ye&&x<9)&&Wt();var vr=0,kr=function(){ie.selForContextMenu==oe.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&b.prevInput=="\u200B"?Ii(oe,ul)(oe):vr++<10?ie.detectingSelectAll=setTimeout(kr,500):(ie.selForContextMenu=null,ie.input.reset())};ie.detectingSelectAll=setTimeout(kr,200)}}if(ye&&x>=9&&Wt(),Te){wr(a);var cr=function(){Tt(window,"mouseup",cr),setTimeout(Nt,20)};xt(window,"mouseup",cr)}else setTimeout(Nt,50)},Ai.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ai.prototype.setUneditable=function(){},Ai.prototype.needsContentAttribute=!1;function Ju(a,b){if(b=b?it(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var oe=ke();b.autofocus=oe==a||a.getAttribute("autofocus")!=null&&oe==document.body}function ie(){a.value=ot.getValue()}var me;if(a.form&&(xt(a.form,"submit",ie),!b.leaveSubmitMethodAlone)){var Be=a.form;me=Be.submit;try{var Je=Be.submit=function(){ie(),Be.submit=me,Be.submit(),Be.submit=Je}}catch(lt){}}b.finishInit=function(lt){lt.save=ie,lt.getTextArea=function(){return a},lt.toTextArea=function(){lt.toTextArea=isNaN,ie(),a.parentNode.removeChild(lt.getWrapperElement()),a.style.display="",a.form&&(Tt(a.form,"submit",ie),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=me))}},a.style.display="none";var ot=yi(function(lt){return a.parentNode.insertBefore(lt,a.nextSibling)},b);return ot}function Qu(a){a.off=Tt,a.on=xt,a.wheelEventPixels=au,a.Doc=qi,a.splitLines=An,a.countColumn=Ne,a.findColumn=at,a.isWordChar=_e,a.Pass=tt,a.signal=bt,a.Line=$r,a.changeEnd=Ha,a.scrollbarModel=Ra,a.Pos=jt,a.cmpPos=nr,a.modes=lr,a.mimeModes=tr,a.resolveMode=mr,a.getMode=Br,a.modeExtensions=qr,a.extendMode=tn,a.copyState=Zr,a.startState=pn,a.innerMode=Lr,a.commands=Ko,a.keyMap=Ia,a.keyName=kl,a.isModifierKey=Cl,a.lookupKey=go,a.normalizeKeyMap=Au,a.StringStream=fr,a.SharedTextMarker=zo,a.TextMarker=Ka,a.LineWidget=Zo,a.e_preventDefault=$t,a.e_stopPropagation=pr,a.e_stop=wr,a.addClass=Pe,a.contains=Ie,a.rmClass=Me,a.keyNames=Va}zu(yi),Vu(yi);var qu="iter insert remove copy getEditor constructor".split(" ");for(var gs in qi.prototype)qi.prototype.hasOwnProperty(gs)&&qe(qu,gs)<0&&(yi.prototype[gs]=function(a){return function(){return a.apply(this.doc,arguments)}}(qi.prototype[gs]));return Mt(qi),yi.inputStyles={textarea:Ai,contenteditable:li},yi.defineMode=function(a){!yi.defaults.mode&&a!="null"&&(yi.defaults.mode=a),or.apply(this,arguments)},yi.defineMIME=Pr,yi.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),yi.defineMIME("text/plain","null"),yi.defineExtension=function(a,b){yi.prototype[a]=b},yi.defineDocExtension=function(a,b){qi.prototype[a]=b},yi.fromTextArea=Ju,Qu(yi),yi.version="5.58.2",yi})},25419:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780),Ge(15525),Ge(98101))})(function(Ye){"use strict";Ye.defineMode("markdown",function(mt,y){var Ce=Ye.getMode(mt,"text/html"),ye=Ce.name=="null";function x(Ne){if(Ye.findModeByName){var Fe=Ye.findModeByName(Ne);Fe&&(Ne=Fe.mime||Fe.mimes[0])}var qe=Ye.getMode(mt,Ne);return qe.name=="null"?null:qe}y.highlightFormatting===void 0&&(y.highlightFormatting=!1),y.maxBlockquoteDepth===void 0&&(y.maxBlockquoteDepth=0),y.taskLists===void 0&&(y.taskLists=!1),y.strikethrough===void 0&&(y.strikethrough=!1),y.emoji===void 0&&(y.emoji=!1),y.fencedCodeBlockHighlighting===void 0&&(y.fencedCodeBlockHighlighting=!0),y.fencedCodeBlockDefaultMode===void 0&&(y.fencedCodeBlockDefaultMode="text/plain"),y.xml===void 0&&(y.xml=!0),y.tokenTypeOverrides===void 0&&(y.tokenTypeOverrides={});var z={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 z)z.hasOwnProperty(se)&&y.tokenTypeOverrides[se]&&(z[se]=y.tokenTypeOverrides[se]);var ae=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,fe=/^\[(x| )\](?=\s)/i,E=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,re=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ne=/^[^#!\[\]*_\\<>` "'(~:]+/,le=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,pe=" ";function ve(Ne,Fe,qe){return Fe.f=Fe.inline=qe,qe(Ne,Fe)}function de(Ne,Fe,qe){return Fe.f=Fe.block=qe,qe(Ne,Fe)}function we(Ne){return!Ne||!/\S/.test(Ne.string)}function Te(Ne){if(Ne.linkTitle=!1,Ne.linkHref=!1,Ne.linkText=!1,Ne.em=!1,Ne.strong=!1,Ne.strikethrough=!1,Ne.quote=0,Ne.indentedCode=!1,Ne.f==Me){var Fe=ye;if(!Fe){var qe=Ye.innerMode(Ce,Ne.htmlState);Fe=qe.mode.name=="xml"&&qe.state.tagStart===null&&!qe.state.context&&qe.state.tokenize.isInText}Fe&&(Ne.f=Ee,Ne.block=je,Ne.htmlState=null)}return Ne.trailingSpace=0,Ne.trailingSpaceNewLine=!1,Ne.prevLine=Ne.thisLine,Ne.thisLine={stream:null},null}function je(Ne,Fe){var qe=Ne.column()===Fe.indentation,rt=we(Fe.prevLine.stream),tt=Fe.indentedCode,Ve=Fe.prevLine.hr,Ke=Fe.list!==!1,ze=(Fe.listStack[Fe.listStack.length-1]||0)+3;Fe.indentedCode=!1;var at=Fe.indentation;if(Fe.indentationDiff===null&&(Fe.indentationDiff=Fe.indentation,Ke)){for(Fe.list=null;at<Fe.listStack[Fe.listStack.length-1];)Fe.listStack.pop(),Fe.listStack.length?Fe.indentation=Fe.listStack[Fe.listStack.length-1]:Fe.list=!1;Fe.list!==!1&&(Fe.indentationDiff=at-Fe.listStack[Fe.listStack.length-1])}var Qe=!rt&&!Ve&&!Fe.prevLine.header&&(!Ke||!tt)&&!Fe.prevLine.fencedCodeEnd,ut=(Fe.list===!1||Ve||rt)&&Fe.indentation<=ze&&Ne.match(ae),st=null;if(Fe.indentationDiff>=4&&(tt||Fe.prevLine.fencedCodeEnd||Fe.prevLine.header||rt))return Ne.skipToEnd(),Fe.indentedCode=!0,z.code;if(Ne.eatSpace())return null;if(qe&&Fe.indentation<=ze&&(st=Ne.match(E))&&st[1].length<=6)return Fe.quote=0,Fe.header=st[1].length,Fe.thisLine.header=!0,y.highlightFormatting&&(Fe.formatting="header"),Fe.f=Fe.inline,ge(Fe);if(Fe.indentation<=ze&&Ne.eat(">"))return Fe.quote=qe?1:Fe.quote+1,y.highlightFormatting&&(Fe.formatting="quote"),Ne.eatSpace(),ge(Fe);if(!ut&&!Fe.setext&&qe&&Fe.indentation<=ze&&(st=Ne.match(ee))){var Xe=st[1]?"ol":"ul";return Fe.indentation=at+Ne.current().length,Fe.list=!0,Fe.quote=0,Fe.listStack.push(Fe.indentation),Fe.em=!1,Fe.strong=!1,Fe.code=!1,Fe.strikethrough=!1,y.taskLists&&Ne.match(fe,!1)&&(Fe.taskList=!0),Fe.f=Fe.inline,y.highlightFormatting&&(Fe.formatting=["list","list-"+Xe]),ge(Fe)}else{if(qe&&Fe.indentation<=ze&&(st=Ne.match(le,!0)))return Fe.quote=0,Fe.fencedEndRE=new RegExp(st[1]+"+ *$"),Fe.localMode=y.fencedCodeBlockHighlighting&&x(st[2]||y.fencedCodeBlockDefaultMode),Fe.localMode&&(Fe.localState=Ye.startState(Fe.localMode)),Fe.f=Fe.block=Ae,y.highlightFormatting&&(Fe.formatting="code-block"),Fe.code=-1,ge(Fe);if(Fe.setext||(!Qe||!Ke)&&!Fe.quote&&Fe.list===!1&&!Fe.code&&!ut&&!ue.test(Ne.string)&&(st=Ne.lookAhead(1))&&(st=st.match(re)))return Fe.setext?(Fe.header=Fe.setext,Fe.setext=0,Ne.skipToEnd(),y.highlightFormatting&&(Fe.formatting="header")):(Fe.header=st[0].charAt(0)=="="?1:2,Fe.setext=Fe.header),Fe.thisLine.header=!0,Fe.f=Fe.inline,ge(Fe);if(ut)return Ne.skipToEnd(),Fe.hr=!0,Fe.thisLine.hr=!0,z.hr;if(Ne.peek()==="[")return ve(Ne,Fe,Ze)}return ve(Ne,Fe,Fe.inline)}function Me(Ne,Fe){var qe=Ce.token(Ne,Fe.htmlState);if(!ye){var rt=Ye.innerMode(Ce,Fe.htmlState);(rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText||Fe.md_inside&&Ne.current().indexOf(">")>-1)&&(Fe.f=Ee,Fe.block=je,Fe.htmlState=null)}return qe}function Ae(Ne,Fe){var qe=Fe.listStack[Fe.listStack.length-1]||0,rt=Fe.indentation<qe,tt=qe+3;if(Fe.fencedEndRE&&Fe.indentation<=tt&&(rt||Ne.match(Fe.fencedEndRE))){y.highlightFormatting&&(Fe.formatting="code-block");var Ve;return rt||(Ve=ge(Fe)),Fe.localMode=Fe.localState=null,Fe.block=je,Fe.f=Ee,Fe.fencedEndRE=null,Fe.code=0,Fe.thisLine.fencedCodeEnd=!0,rt?de(Ne,Fe,Fe.block):Ve}else return Fe.localMode?Fe.localMode.token(Ne,Fe.localState):(Ne.skipToEnd(),z.code)}function ge(Ne){var Fe=[];if(Ne.formatting){Fe.push(z.formatting),typeof Ne.formatting=="string"&&(Ne.formatting=[Ne.formatting]);for(var qe=0;qe<Ne.formatting.length;qe++)Fe.push(z.formatting+"-"+Ne.formatting[qe]),Ne.formatting[qe]==="header"&&Fe.push(z.formatting+"-"+Ne.formatting[qe]+"-"+Ne.header),Ne.formatting[qe]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ne.quote?Fe.push(z.formatting+"-"+Ne.formatting[qe]+"-"+Ne.quote):Fe.push("error"))}if(Ne.taskOpen)return Fe.push("meta"),Fe.length?Fe.join(" "):null;if(Ne.taskClosed)return Fe.push("property"),Fe.length?Fe.join(" "):null;if(Ne.linkHref?Fe.push(z.linkHref,"url"):(Ne.strong&&Fe.push(z.strong),Ne.em&&Fe.push(z.em),Ne.strikethrough&&Fe.push(z.strikethrough),Ne.emoji&&Fe.push(z.emoji),Ne.linkText&&Fe.push(z.linkText),Ne.code&&Fe.push(z.code),Ne.image&&Fe.push(z.image),Ne.imageAltText&&Fe.push(z.imageAltText,"link"),Ne.imageMarker&&Fe.push(z.imageMarker)),Ne.header&&Fe.push(z.header,z.header+"-"+Ne.header),Ne.quote&&(Fe.push(z.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ne.quote?Fe.push(z.quote+"-"+Ne.quote):Fe.push(z.quote+"-"+y.maxBlockquoteDepth)),Ne.list!==!1){var rt=(Ne.listStack.length-1)%3;rt?rt===1?Fe.push(z.list2):Fe.push(z.list3):Fe.push(z.list1)}return Ne.trailingSpaceNewLine?Fe.push("trailing-space-new-line"):Ne.trailingSpace&&Fe.push("trailing-space-"+(Ne.trailingSpace%2?"a":"b")),Fe.length?Fe.join(" "):null}function be(Ne,Fe){if(Ne.match(ne,!0))return ge(Fe)}function Ee(Ne,Fe){var qe=Fe.text(Ne,Fe);if(typeof qe!="undefined")return qe;if(Fe.list)return Fe.list=null,ge(Fe);if(Fe.taskList){var rt=Ne.match(fe,!0)[1]===" ";return rt?Fe.taskOpen=!0:Fe.taskClosed=!0,y.highlightFormatting&&(Fe.formatting="task"),Fe.taskList=!1,ge(Fe)}if(Fe.taskOpen=!1,Fe.taskClosed=!1,Fe.header&&Ne.match(/^#+$/,!0))return y.highlightFormatting&&(Fe.formatting="header"),ge(Fe);var tt=Ne.next();if(Fe.linkTitle){Fe.linkTitle=!1;var Ve=tt;tt==="("&&(Ve=")"),Ve=(Ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ke="^\\s*(?:[^"+Ve+"\\\\]+|\\\\\\\\|\\\\.)"+Ve;if(Ne.match(new RegExp(Ke),!0))return z.linkHref}if(tt==="`"){var ze=Fe.formatting;y.highlightFormatting&&(Fe.formatting="code"),Ne.eatWhile("`");var at=Ne.current().length;if(Fe.code==0&&(!Fe.quote||at==1))return Fe.code=at,ge(Fe);if(at==Fe.code){var Qe=ge(Fe);return Fe.code=0,Qe}else return Fe.formatting=ze,ge(Fe)}else if(Fe.code)return ge(Fe);if(tt==="\\"&&(Ne.next(),y.highlightFormatting)){var ut=ge(Fe),st=z.formatting+"-escape";return ut?ut+" "+st:st}if(tt==="!"&&Ne.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Fe.imageMarker=!0,Fe.image=!0,y.highlightFormatting&&(Fe.formatting="image"),ge(Fe);if(tt==="["&&Fe.imageMarker&&Ne.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Fe.imageMarker=!1,Fe.imageAltText=!0,y.highlightFormatting&&(Fe.formatting="image"),ge(Fe);if(tt==="]"&&Fe.imageAltText){y.highlightFormatting&&(Fe.formatting="image");var ut=ge(Fe);return Fe.imageAltText=!1,Fe.image=!1,Fe.inline=Fe.f=Ie,ut}if(tt==="["&&!Fe.image)return Fe.linkText&&Ne.match(/^.*?\]/)||(Fe.linkText=!0,y.highlightFormatting&&(Fe.formatting="link")),ge(Fe);if(tt==="]"&&Fe.linkText){y.highlightFormatting&&(Fe.formatting="link");var ut=ge(Fe);return Fe.linkText=!1,Fe.inline=Fe.f=Ne.match(/\(.*?\)| ?\[.*?\]/,!1)?Ie:Ee,ut}if(tt==="<"&&Ne.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=Re,y.highlightFormatting&&(Fe.formatting="link");var ut=ge(Fe);return ut?ut+=" ":ut="",ut+z.linkInline}if(tt==="<"&&Ne.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Fe.f=Fe.inline=Re,y.highlightFormatting&&(Fe.formatting="link");var ut=ge(Fe);return ut?ut+=" ":ut="",ut+z.linkEmail}if(y.xml&&tt==="<"&&Ne.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Xe=Ne.string.indexOf(">",Ne.pos);if(Xe!=-1){var Le=Ne.string.substring(Ne.start,Xe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Le)&&(Fe.md_inside=!0)}return Ne.backUp(1),Fe.htmlState=Ye.startState(Ce),de(Ne,Fe,Me)}if(y.xml&&tt==="<"&&Ne.match(/^\/\w*?>/))return Fe.md_inside=!1,"tag";if(tt==="*"||tt==="_"){for(var De=1,te=Ne.pos==1?" ":Ne.string.charAt(Ne.pos-2);De<3&&Ne.eat(tt);)De++;var ce=Ne.peek()||" ",_e=!/\s/.test(ce)&&(!he.test(ce)||/\s/.test(te)||he.test(te)),Ue=!/\s/.test(te)&&(!he.test(te)||/\s/.test(ce)||he.test(ce)),xe=null,Se=null;if(De%2&&(!Fe.em&&_e&&(tt==="*"||!Ue||he.test(te))?xe=!0:Fe.em==tt&&Ue&&(tt==="*"||!_e||he.test(ce))&&(xe=!1)),De>1&&(!Fe.strong&&_e&&(tt==="*"||!Ue||he.test(te))?Se=!0:Fe.strong==tt&&Ue&&(tt==="*"||!_e||he.test(ce))&&(Se=!1)),Se!=null||xe!=null){y.highlightFormatting&&(Fe.formatting=xe==null?"strong":Se==null?"em":"strong em"),xe===!0&&(Fe.em=tt),Se===!0&&(Fe.strong=tt);var Qe=ge(Fe);return xe===!1&&(Fe.em=!1),Se===!1&&(Fe.strong=!1),Qe}}else if(tt===" "&&(Ne.eat("*")||Ne.eat("_"))){if(Ne.peek()===" ")return ge(Fe);Ne.backUp(1)}if(y.strikethrough){if(tt==="~"&&Ne.eatWhile(tt)){if(Fe.strikethrough){y.highlightFormatting&&(Fe.formatting="strikethrough");var Qe=ge(Fe);return Fe.strikethrough=!1,Qe}else if(Ne.match(/^[^\s]/,!1))return Fe.strikethrough=!0,y.highlightFormatting&&(Fe.formatting="strikethrough"),ge(Fe)}else if(tt===" "&&Ne.match(/^~~/,!0)){if(Ne.peek()===" ")return ge(Fe);Ne.backUp(2)}}if(y.emoji&&tt===":"&&Ne.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Fe.emoji=!0,y.highlightFormatting&&(Fe.formatting="emoji");var Oe=ge(Fe);return Fe.emoji=!1,Oe}return tt===" "&&(Ne.match(/^ +$/,!1)?Fe.trailingSpace++:Fe.trailingSpace&&(Fe.trailingSpaceNewLine=!0)),ge(Fe)}function Re(Ne,Fe){var qe=Ne.next();if(qe===">"){Fe.f=Fe.inline=Ee,y.highlightFormatting&&(Fe.formatting="link");var rt=ge(Fe);return rt?rt+=" ":rt="",rt+z.linkInline}return Ne.match(/^[^>]+/,!0),z.linkInline}function Ie(Ne,Fe){if(Ne.eatSpace())return null;var qe=Ne.next();return qe==="("||qe==="["?(Fe.f=Fe.inline=Pe(qe==="("?")":"]"),y.highlightFormatting&&(Fe.formatting="link-string"),Fe.linkHref=!0,ge(Fe)):"error"}var ke={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Pe(Ne){return function(Fe,qe){var rt=Fe.next();if(rt===Ne){qe.f=qe.inline=Ee,y.highlightFormatting&&(qe.formatting="link-string");var tt=ge(qe);return qe.linkHref=!1,tt}return Fe.match(ke[Ne]),qe.linkHref=!0,ge(qe)}}function Ze(Ne,Fe){return Ne.match(/^([^\]\\]|\\.)*\]:/,!1)?(Fe.f=He,Ne.next(),y.highlightFormatting&&(Fe.formatting="link"),Fe.linkText=!0,ge(Fe)):ve(Ne,Fe,Ee)}function He(Ne,Fe){if(Ne.match(/^\]:/,!0)){Fe.f=Fe.inline=$e,y.highlightFormatting&&(Fe.formatting="link");var qe=ge(Fe);return Fe.linkText=!1,qe}return Ne.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function $e(Ne,Fe){return Ne.eatSpace()?null:(Ne.match(/^[^\s]+/,!0),Ne.peek()===void 0?Fe.linkTitle=!0:Ne.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Fe.f=Fe.inline=Ee,z.linkHref+" url")}var it={startState:function(){return{f:je,prevLine:{stream:null},thisLine:{stream:null},block:je,htmlState:null,indentation:0,inline:Ee,text:be,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(Ne){return{f:Ne.f,prevLine:Ne.prevLine,thisLine:Ne.thisLine,block:Ne.block,htmlState:Ne.htmlState&&Ye.copyState(Ce,Ne.htmlState),indentation:Ne.indentation,localMode:Ne.localMode,localState:Ne.localMode?Ye.copyState(Ne.localMode,Ne.localState):null,inline:Ne.inline,text:Ne.text,formatting:!1,linkText:Ne.linkText,linkTitle:Ne.linkTitle,linkHref:Ne.linkHref,code:Ne.code,em:Ne.em,strong:Ne.strong,strikethrough:Ne.strikethrough,emoji:Ne.emoji,header:Ne.header,setext:Ne.setext,hr:Ne.hr,taskList:Ne.taskList,list:Ne.list,listStack:Ne.listStack.slice(0),quote:Ne.quote,indentedCode:Ne.indentedCode,trailingSpace:Ne.trailingSpace,trailingSpaceNewLine:Ne.trailingSpaceNewLine,md_inside:Ne.md_inside,fencedEndRE:Ne.fencedEndRE}},token:function(Ne,Fe){if(Fe.formatting=!1,Ne!=Fe.thisLine.stream){if(Fe.header=0,Fe.hr=!1,Ne.match(/^\s*$/,!0))return Te(Fe),null;if(Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:Ne},Fe.taskList=!1,Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,!Fe.localState&&(Fe.f=Fe.block,Fe.f!=Me)){var qe=Ne.match(/^\s*/,!0)[0].replace(/\t/g,pe).length;if(Fe.indentation=qe,Fe.indentationDiff=null,qe>0)return null}}return Fe.f(Ne,Fe)},innerMode:function(Ne){return Ne.block==Me?{state:Ne.htmlState,mode:Ce}:Ne.localState?{state:Ne.localState,mode:Ne.localMode}:{state:Ne,mode:it}},indent:function(Ne,Fe,qe){return Ne.block==Me&&Ce.indent?Ce.indent(Ne.htmlState,Fe,qe):Ne.localState&&Ne.localMode.indent?Ne.localMode.indent(Ne.localState,Fe,qe):Ye.Pass},blankLine:Te,getType:ge,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return it},"xml"),Ye.defineMIME("text/markdown","markdown"),Ye.defineMIME("text/x-markdown","markdown")})},98101:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780))})(function(Ye){"use strict";Ye.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 mt=0;mt<Ye.modeInfo.length;mt++){var y=Ye.modeInfo[mt];y.mimes&&(y.mime=y.mimes[0])}Ye.findModeByMIME=function(Ce){Ce=Ce.toLowerCase();for(var ye=0;ye<Ye.modeInfo.length;ye++){var x=Ye.modeInfo[ye];if(x.mime==Ce)return x;if(x.mimes){for(var z=0;z<x.mimes.length;z++)if(x.mimes[z]==Ce)return x}}if(/\+xml$/.test(Ce))return Ye.findModeByMIME("application/xml");if(/\+json$/.test(Ce))return Ye.findModeByMIME("application/json")},Ye.findModeByExtension=function(Ce){Ce=Ce.toLowerCase();for(var ye=0;ye<Ye.modeInfo.length;ye++){var x=Ye.modeInfo[ye];if(x.ext){for(var z=0;z<x.ext.length;z++)if(x.ext[z]==Ce)return x}}},Ye.findModeByFileName=function(Ce){for(var ye=0;ye<Ye.modeInfo.length;ye++){var x=Ye.modeInfo[ye];if(x.file&&x.file.test(Ce))return x}var z=Ce.lastIndexOf("."),se=z>-1&&Ce.substring(z+1,Ce.length);if(se)return Ye.findModeByExtension(se)},Ye.findModeByName=function(Ce){Ce=Ce.toLowerCase();for(var ye=0;ye<Ye.modeInfo.length;ye++){var x=Ye.modeInfo[ye];if(x.name.toLowerCase()==Ce)return x;if(x.alias){for(var z=0;z<x.alias.length;z++)if(x.alias[z].toLowerCase()==Ce)return x}}}})},67549:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780))})(function(Ye){"use strict";Ye.defineMode("stex",function(mt,y){"use strict";function Ce(ne,le){ne.cmdState.push(le)}function ye(ne){return ne.cmdState.length>0?ne.cmdState[ne.cmdState.length-1]:null}function x(ne){var le=ne.cmdState.pop();le&&le.closeBracket()}function z(ne){for(var le=ne.cmdState,ue=le.length-1;ue>=0;ue--){var he=le[ue];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function se(ne,le,ue){return function(){this.name=ne,this.bracketNo=0,this.style=le,this.styles=ue,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ae={};ae.importmodule=se("importmodule","tag",["string","builtin"]),ae.documentclass=se("documentclass","tag",["","atom"]),ae.usepackage=se("usepackage","tag",["atom"]),ae.begin=se("begin","tag",["atom"]),ae.end=se("end","tag",["atom"]),ae.label=se("label","tag",["atom"]),ae.ref=se("ref","tag",["atom"]),ae.eqref=se("eqref","tag",["atom"]),ae.cite=se("cite","tag",["atom"]),ae.bibitem=se("bibitem","tag",["atom"]),ae.Bibitem=se("Bibitem","tag",["atom"]),ae.RBibitem=se("RBibitem","tag",["atom"]),ae.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(ne,le){ne.f=le}function fe(ne,le){var ue;if(ne.match(/^\\[a-zA-Z@]+/)){var he=ne.current().slice(1);return ue=ae.hasOwnProperty(he)?ae[he]:ae.DEFAULT,ue=new ue,Ce(le,ue),ee(le,re),ue.style}if(ne.match(/^\\[$&%#{}_]/)||ne.match(/^\\[,;!\/\\]/))return"tag";if(ne.match("\\["))return ee(le,function(ve,de){return E(ve,de,"\\]")}),"keyword";if(ne.match("\\("))return ee(le,function(ve,de){return E(ve,de,"\\)")}),"keyword";if(ne.match("$$"))return ee(le,function(ve,de){return E(ve,de,"$$")}),"keyword";if(ne.match("$"))return ee(le,function(ve,de){return E(ve,de,"$")}),"keyword";var pe=ne.next();if(pe=="%")return ne.skipToEnd(),"comment";if(pe=="}"||pe=="]"){if(ue=ye(le),ue)ue.closeBracket(pe),ee(le,re);else return"error";return"bracket"}else return pe=="{"||pe=="["?(ue=ae.DEFAULT,ue=new ue,Ce(le,ue),"bracket"):/\d/.test(pe)?(ne.eatWhile(/[\w.%]/),"atom"):(ne.eatWhile(/[\w\-_]/),ue=z(le),ue.name=="begin"&&(ue.argument=ne.current()),ue.styleIdentifier())}function E(ne,le,ue){if(ne.eatSpace())return null;if(ue&&ne.match(ue))return ee(le,fe),"keyword";if(ne.match(/^\\[a-zA-Z@]+/))return"tag";if(ne.match(/^[a-zA-Z]+/))return"variable-2";if(ne.match(/^\\[$&%#{}_]/)||ne.match(/^\\[,;!\/]/)||ne.match(/^[\^_&]/))return"tag";if(ne.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ne.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=ne.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(ne.skipToEnd(),"comment"):"error"}function re(ne,le){var ue=ne.peek(),he;return ue=="{"||ue=="["?(he=ye(le),he.openBracket(ue),ne.eat(ue),ee(le,fe),"bracket"):/[ \t\r]/.test(ue)?(ne.eat(ue),null):(ee(le,fe),x(le),fe(ne,le))}return{startState:function(){var ne=y.inMathMode?function(le,ue){return E(le,ue)}:fe;return{cmdState:[],f:ne}},copyState:function(ne){return{cmdState:ne.cmdState.slice(),f:ne.f}},token:function(ne,le){return le.f(ne,le)},blankLine:function(ne){ne.f=fe,ne.cmdState.length=0},lineComment:"%"}}),Ye.defineMIME("text/x-stex","stex"),Ye.defineMIME("text/x-latex","stex")})},15525:function(Ht,_t,Ge){(function(Ye){Ye(Ge(89780))})(function(Ye){"use strict";var mt={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},y={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ye.defineMode("xml",function(Ce,ye){var x=Ce.indentUnit,z={},se=ye.htmlMode?mt:y;for(var ae in se)z[ae]=se[ae];for(var ae in ye)z[ae]=ye[ae];var ee,fe;function E(Re,Ie){function ke(He){return Ie.tokenize=He,He(Re,Ie)}var Pe=Re.next();if(Pe=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?ke(le("atom","]]>")):null:Re.match("--")?ke(le("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),ke(ue(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),Ie.tokenize=le("meta","?>"),"meta"):(ee=Re.eat("/")?"closeTag":"openTag",Ie.tokenize=re,"tag bracket");if(Pe=="&"){var Ze;return Re.eat("#")?Re.eat("x")?Ze=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):Ze=Re.eatWhile(/[\d]/)&&Re.eat(";"):Ze=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),Ze?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}E.isInText=!0;function re(Re,Ie){var ke=Re.next();if(ke==">"||ke=="/"&&Re.eat(">"))return Ie.tokenize=E,ee=ke==">"?"endTag":"selfcloseTag","tag bracket";if(ke=="=")return ee="equals",null;if(ke=="<"){Ie.tokenize=E,Ie.state=de,Ie.tagName=Ie.tagStart=null;var Pe=Ie.tokenize(Re,Ie);return Pe?Pe+" tag error":"tag error"}else return/[\'\"]/.test(ke)?(Ie.tokenize=ne(ke),Ie.stringStartCol=Re.column(),Ie.tokenize(Re,Ie)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ne(Re){var Ie=function(ke,Pe){for(;!ke.eol();)if(ke.next()==Re){Pe.tokenize=re;break}return"string"};return Ie.isInAttribute=!0,Ie}function le(Re,Ie){return function(ke,Pe){for(;!ke.eol();){if(ke.match(Ie)){Pe.tokenize=E;break}ke.next()}return Re}}function ue(Re){return function(Ie,ke){for(var Pe;(Pe=Ie.next())!=null;){if(Pe=="<")return ke.tokenize=ue(Re+1),ke.tokenize(Ie,ke);if(Pe==">")if(Re==1){ke.tokenize=E;break}else return ke.tokenize=ue(Re-1),ke.tokenize(Ie,ke)}return"meta"}}function he(Re,Ie,ke){this.prev=Re.context,this.tagName=Ie,this.indent=Re.indented,this.startOfLine=ke,(z.doNotIndent.hasOwnProperty(Ie)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function pe(Re){Re.context&&(Re.context=Re.context.prev)}function ve(Re,Ie){for(var ke;;){if(!Re.context||(ke=Re.context.tagName,!z.contextGrabbers.hasOwnProperty(ke)||!z.contextGrabbers[ke].hasOwnProperty(Ie)))return;pe(Re)}}function de(Re,Ie,ke){return Re=="openTag"?(ke.tagStart=Ie.column(),we):Re=="closeTag"?Te:de}function we(Re,Ie,ke){return Re=="word"?(ke.tagName=Ie.current(),fe="tag",Ae):z.allowMissingTagName&&Re=="endTag"?(fe="tag bracket",Ae(Re,Ie,ke)):(fe="error",we)}function Te(Re,Ie,ke){if(Re=="word"){var Pe=Ie.current();return ke.context&&ke.context.tagName!=Pe&&z.implicitlyClosed.hasOwnProperty(ke.context.tagName)&&pe(ke),ke.context&&ke.context.tagName==Pe||z.matchClosing===!1?(fe="tag",je):(fe="tag error",Me)}else return z.allowMissingTagName&&Re=="endTag"?(fe="tag bracket",je(Re,Ie,ke)):(fe="error",Me)}function je(Re,Ie,ke){return Re!="endTag"?(fe="error",je):(pe(ke),de)}function Me(Re,Ie,ke){return fe="error",je(Re,Ie,ke)}function Ae(Re,Ie,ke){if(Re=="word")return fe="attribute",ge;if(Re=="endTag"||Re=="selfcloseTag"){var Pe=ke.tagName,Ze=ke.tagStart;return ke.tagName=ke.tagStart=null,Re=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(Pe)?ve(ke,Pe):(ve(ke,Pe),ke.context=new he(ke,Pe,Ze==ke.indented)),de}return fe="error",Ae}function ge(Re,Ie,ke){return Re=="equals"?be:(z.allowMissing||(fe="error"),Ae(Re,Ie,ke))}function be(Re,Ie,ke){return Re=="string"?Ee:Re=="word"&&z.allowUnquoted?(fe="string",Ae):(fe="error",Ae(Re,Ie,ke))}function Ee(Re,Ie,ke){return Re=="string"?Ee:Ae(Re,Ie,ke)}return{startState:function(Re){var Ie={tokenize:E,state:de,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(Ie.baseIndent=Re),Ie},token:function(Re,Ie){if(!Ie.tagName&&Re.sol()&&(Ie.indented=Re.indentation()),Re.eatSpace())return null;ee=null;var ke=Ie.tokenize(Re,Ie);return(ke||ee)&&ke!="comment"&&(fe=null,Ie.state=Ie.state(ee||ke,Re,Ie),fe&&(ke=fe=="error"?ke+" error":fe)),ke},indent:function(Re,Ie,ke){var Pe=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+x;if(Pe&&Pe.noIndent)return Ye.Pass;if(Re.tokenize!=re&&Re.tokenize!=E)return ke?ke.match(/^(\s*)/)[0].length:0;if(Re.tagName)return z.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(Ie))return 0;var Ze=Ie&&/^<(\/)?([\w_:\.-]*)/.exec(Ie);if(Ze&&Ze[1])for(;Pe;)if(Pe.tagName==Ze[2]){Pe=Pe.prev;break}else if(z.implicitlyClosed.hasOwnProperty(Pe.tagName))Pe=Pe.prev;else break;else if(Ze)for(;Pe;){var He=z.contextGrabbers[Pe.tagName];if(He&&He.hasOwnProperty(Ze[2]))Pe=Pe.prev;else break}for(;Pe&&Pe.prev&&!Pe.startOfLine;)Pe=Pe.prev;return Pe?Pe.indent+x:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==be&&(Re.state=Ae)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var Ie=[],ke=Re.context;ke;ke=ke.prev)ke.tagName&&Ie.push(ke.tagName);return Ie.reverse()}}}),Ye.defineMIME("text/xml","xml"),Ye.defineMIME("application/xml","xml"),Ye.mimeModes.hasOwnProperty("text/html")||Ye.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Ht,_t,Ge){var Ye,mt;(function(y,Ce){Ht.exports=Ce(y)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ge.g!="undefined"?Ge.g:this,function(y){"use strict";y=y||{};var Ce=y.Base64,ye="2.6.4",x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(ke){for(var Pe={},Ze=0,He=ke.length;Ze<He;Ze++)Pe[ke.charAt(Ze)]=Ze;return Pe}(x),se=String.fromCharCode,ae=function(ke){if(ke.length<2){var Pe=ke.charCodeAt(0);return Pe<128?ke:Pe<2048?se(192|Pe>>>6)+se(128|Pe&63):se(224|Pe>>>12&15)+se(128|Pe>>>6&63)+se(128|Pe&63)}else{var Pe=65536+(ke.charCodeAt(0)-55296)*1024+(ke.charCodeAt(1)-56320);return se(240|Pe>>>18&7)+se(128|Pe>>>12&63)+se(128|Pe>>>6&63)+se(128|Pe&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,fe=function(ke){return ke.replace(ee,ae)},E=function(ke){var Pe=[0,2,1][ke.length%3],Ze=ke.charCodeAt(0)<<16|(ke.length>1?ke.charCodeAt(1):0)<<8|(ke.length>2?ke.charCodeAt(2):0),He=[x.charAt(Ze>>>18),x.charAt(Ze>>>12&63),Pe>=2?"=":x.charAt(Ze>>>6&63),Pe>=1?"=":x.charAt(Ze&63)];return He.join("")},re=y.btoa&&typeof y.btoa=="function"?function(ke){return y.btoa(ke)}:function(ke){if(ke.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return ke.replace(/[\s\S]{1,3}/g,E)},ne=function(ke){return re(fe(String(ke)))},le=function(ke){return ke.replace(/[+\/]/g,function(Pe){return Pe=="+"?"-":"_"}).replace(/=/g,"")},ue=function(ke,Pe){return Pe?le(ne(ke)):ne(ke)},he=function(ke){return ue(ke,!0)},pe;y.Uint8Array&&(pe=function(ke,Pe){for(var Ze="",He=0,$e=ke.length;He<$e;He+=3){var it=ke[He],Ne=ke[He+1],Fe=ke[He+2],qe=it<<16|Ne<<8|Fe;Ze+=x.charAt(qe>>>18)+x.charAt(qe>>>12&63)+(typeof Ne!="undefined"?x.charAt(qe>>>6&63):"=")+(typeof Fe!="undefined"?x.charAt(qe&63):"=")}return Pe?le(Ze):Ze});var ve=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,de=function(ke){switch(ke.length){case 4:var Pe=(7&ke.charCodeAt(0))<<18|(63&ke.charCodeAt(1))<<12|(63&ke.charCodeAt(2))<<6|63&ke.charCodeAt(3),Ze=Pe-65536;return se((Ze>>>10)+55296)+se((Ze&1023)+56320);case 3:return se((15&ke.charCodeAt(0))<<12|(63&ke.charCodeAt(1))<<6|63&ke.charCodeAt(2));default:return se((31&ke.charCodeAt(0))<<6|63&ke.charCodeAt(1))}},we=function(ke){return ke.replace(ve,de)},Te=function(ke){var Pe=ke.length,Ze=Pe%4,He=(Pe>0?z[ke.charAt(0)]<<18:0)|(Pe>1?z[ke.charAt(1)]<<12:0)|(Pe>2?z[ke.charAt(2)]<<6:0)|(Pe>3?z[ke.charAt(3)]:0),$e=[se(He>>>16),se(He>>>8&255),se(He&255)];return $e.length-=[0,0,2,1][Ze],$e.join("")},je=y.atob&&typeof y.atob=="function"?function(ke){return y.atob(ke)}:function(ke){return ke.replace(/\S{1,4}/g,Te)},Me=function(ke){return je(String(ke).replace(/[^A-Za-z0-9\+\/]/g,""))},Ae=function(ke){return we(je(ke))},ge=function(ke){return String(ke).replace(/[-_]/g,function(Pe){return Pe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},be=function(ke){return Ae(ge(ke))},Ee;y.Uint8Array&&(Ee=function(ke){return Uint8Array.from(Me(ge(ke)),function(Pe){return Pe.charCodeAt(0)})});var Re=function(){var ke=y.Base64;return y.Base64=Ce,ke};if(y.Base64={VERSION:ye,atob:Me,btoa:re,fromBase64:be,toBase64:ue,utob:fe,encode:ue,encodeURI:he,btou:we,decode:be,noConflict:Re,fromUint8Array:pe,toUint8Array:Ee},typeof Object.defineProperty=="function"){var Ie=function(ke){return{value:ke,enumerable:!1,writable:!0,configurable:!0}};y.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ie(function(){return be(this)})),Object.defineProperty(String.prototype,"toBase64",Ie(function(ke){return ue(this,ke)})),Object.defineProperty(String.prototype,"toBase64URI",Ie(function(){return ue(this,!0)}))}}return y.Meteor&&(Base64=y.Base64),Ht.exports?Ht.exports.Base64=y.Base64:(Ye=[],mt=function(){return y.Base64}.apply(_t,Ye),mt!==void 0&&(Ht.exports=mt)),{Base64:y.Base64}})},2859:function(Ht,_t,Ge){"use strict";Ge.d(_t,{hP:function(){return Le}});var Ye=function(De,te){return(Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,_e){ce.__proto__=_e}||function(ce,_e){for(var Ue in _e)Object.prototype.hasOwnProperty.call(_e,Ue)&&(ce[Ue]=_e[Ue])})(De,te)};function mt(De,te){function ce(){this.constructor=De}Ye(De,te),De.prototype=te===null?Object.create(te):(ce.prototype=te.prototype,new ce)}function y(De,te,ce,_e){return new(ce||(ce=Promise))(function(Ue,xe){function Se(et){try{We(_e.next(et))}catch(nt){xe(nt)}}function Oe(et){try{We(_e.throw(et))}catch(nt){xe(nt)}}function We(et){var nt;et.done?Ue(et.value):(nt=et.value,nt instanceof ce?nt:new ce(function(dt){dt(nt)})).then(Se,Oe)}We((_e=_e.apply(De,te||[])).next())})}function Ce(De,te){var ce,_e,Ue,xe,Se={label:0,sent:function(){if(1&Ue[0])throw Ue[1];return Ue[1]},trys:[],ops:[]};return xe={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(xe[Symbol.iterator]=function(){return this}),xe;function Oe(We){return function(et){return function(nt){if(ce)throw new TypeError("Generator is already executing.");for(;Se;)try{if(ce=1,_e&&(Ue=2&nt[0]?_e.return:nt[0]?_e.throw||((Ue=_e.return)&&Ue.call(_e),0):_e.next)&&!(Ue=Ue.call(_e,nt[1])).done)return Ue;switch(_e=0,Ue&&(nt=[2&nt[0],Ue.value]),nt[0]){case 0:case 1:Ue=nt;break;case 4:return Se.label++,{value:nt[1],done:!1};case 5:Se.label++,_e=nt[1],nt=[0];continue;case 7:nt=Se.ops.pop(),Se.trys.pop();continue;default:if(Ue=Se.trys,!((Ue=Ue.length>0&&Ue[Ue.length-1])||nt[0]!==6&&nt[0]!==2)){Se=0;continue}if(nt[0]===3&&(!Ue||nt[1]>Ue[0]&&nt[1]<Ue[3])){Se.label=nt[1];break}if(nt[0]===6&&Se.label<Ue[1]){Se.label=Ue[1],Ue=nt;break}if(Ue&&Se.label<Ue[2]){Se.label=Ue[2],Se.ops.push(nt);break}Ue[2]&&Se.ops.pop(),Se.trys.pop();continue}nt=te.call(De,Se)}catch(dt){nt=[6,dt],_e=0}finally{ce=Ue=0}if(5&nt[0])throw nt[1];return{value:nt[0]?nt[1]:void 0,done:!0}}([We,et])}}}function ye(){for(var De=0,te=0,ce=arguments.length;te<ce;te++)De+=arguments[te].length;var _e=Array(De),Ue=0;for(te=0;te<ce;te++)for(var xe=arguments[te],Se=0,Oe=xe.length;Se<Oe;Se++,Ue++)_e[Ue]=xe[Se];return _e}var x=function(){function De(){}return De.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},De.setAttributes=function(te,ce){for(var _e=0,Ue=ce;_e<Ue.length;_e++){var xe=Ue[_e],Se=xe[0],Oe=xe[1];te.setAttribute(Se,Oe)}},De.createRect=function(te,ce,_e){var Ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ue.setAttribute("width",te.toString()),Ue.setAttribute("height",ce.toString()),_e&&De.setAttributes(Ue,_e),Ue},De.createLine=function(te,ce,_e,Ue,xe){var Se=document.createElementNS("http://www.w3.org/2000/svg","line");return Se.setAttribute("x1",te.toString()),Se.setAttribute("y1",ce.toString()),Se.setAttribute("x2",_e.toString()),Se.setAttribute("y2",Ue.toString()),xe&&De.setAttributes(Se,xe),Se},De.createPolygon=function(te,ce){var _e=document.createElementNS("http://www.w3.org/2000/svg","polygon");return _e.setAttribute("points",te),ce&&De.setAttributes(_e,ce),_e},De.createCircle=function(te,ce){var _e=document.createElementNS("http://www.w3.org/2000/svg","circle");return _e.setAttribute("cx",(te/2).toString()),_e.setAttribute("cy",(te/2).toString()),_e.setAttribute("r",te.toString()),ce&&De.setAttributes(_e,ce),_e},De.createEllipse=function(te,ce,_e){var Ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ue.setAttribute("cx",(te/2).toString()),Ue.setAttribute("cy",(ce/2).toString()),Ue.setAttribute("rx",(te/2).toString()),Ue.setAttribute("ry",(ce/2).toString()),_e&&De.setAttributes(Ue,_e),Ue},De.createGroup=function(te){var ce=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&De.setAttributes(ce,te),ce},De.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},De.createMarker=function(te,ce,_e,Ue,xe,Se,Oe){var We=document.createElementNS("http://www.w3.org/2000/svg","marker");return De.setAttributes(We,[["id",te],["orient",ce],["markerWidth",_e.toString()],["markerHeight",Ue.toString()],["refX",xe.toString()],["refY",Se.toString()]]),We.appendChild(Oe),We},De.createText=function(te){var ce=document.createElementNS("http://www.w3.org/2000/svg","text");return ce.setAttribute("x","0"),ce.setAttribute("y","0"),te&&De.setAttributes(ce,te),ce},De.createTSpan=function(te,ce){var _e=document.createElementNS("http://www.w3.org/2000/svg","tspan");return _e.textContent=te,ce&&De.setAttributes(_e,ce),_e},De.createImage=function(te){var ce=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&De.setAttributes(ce,te),ce},De.createPoint=function(te,ce){var _e=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return _e.x=te,_e.y=ce,_e},De.createPath=function(te,ce){var _e=document.createElementNS("http://www.w3.org/2000/svg","path");return _e.setAttribute("d",te),ce&&De.setAttributes(_e,ce),_e},De}(),z=function(){function De(){}return De.addKey=function(te){De.key=te},Object.defineProperty(De,"isLicensed",{get:function(){return!!De.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(De.key)},enumerable:!1,configurable:!0}),De}(),se=function(){function De(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return De.prototype.rasterize=function(te,ce,_e){var Ue=this;return new Promise(function(xe){var Se=_e!==void 0?_e:document.createElement("canvas");te===null&&(Ue.markersOnly=!0,Ue.naturalSize=!1);var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg");Oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Oe.setAttribute("width",ce.width.baseVal.valueAsString),Oe.setAttribute("height",ce.height.baseVal.valueAsString),Oe.setAttribute("viewBox","0 0 "+ce.viewBox.baseVal.width.toString()+" "+ce.viewBox.baseVal.height.toString()),Oe.innerHTML=ce.innerHTML,Ue.naturalSize===!0?(Oe.width.baseVal.value=te.naturalWidth,Oe.height.baseVal.value=te.naturalHeight):Ue.width!==void 0&&Ue.height!==void 0&&(Oe.width.baseVal.value=Ue.width,Oe.height.baseVal.value=Ue.height),Se.width=Oe.width.baseVal.value,Se.height=Oe.height.baseVal.value;var We=Oe.outerHTML,et=Se.getContext("2d");Ue.markersOnly!==!0&&et.drawImage(te,0,0,Se.width,Se.height);var nt=window.URL,dt=new Image(Se.width,Se.height);dt.setAttribute("crossOrigin","anonymous");var ct=new Blob([We],{type:"image/svg+xml"}),pt=nt.createObjectURL(ct);dt.onload=function(){et.drawImage(dt,0,0),nt.revokeObjectURL(pt);var St=Se.toDataURL(Ue.imageType,Ue.imageQuality);xe(St)},dt.src=pt})},De}(),ae=function(){},ee=function(){function De(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(De.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),De.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},De.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},De.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new fe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new fe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new fe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new E("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new E("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},De.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},De}(),fe=function(De,te){this.selector=De,this.style=te},E=function(De,te){this.localName=De,this.style=te},re=function(){function De(te,ce,_e,Ue,xe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ce,this.markerItems=_e,this.uiStyleSettings=Ue,this.styles=xe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return De.prototype.show=function(te){var ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var _e=document.createElement("div");_e.className=this.toolbarBlockStyleClass.name,_e.style.whiteSpace="nowrap",this.uiContainer.appendChild(_e),this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(_e,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(xe){var Se=document.createElement("div");Se.className=""+ce.toolbarButtonStyleClass.name,Se.setAttribute("data-type-name",xe.typeName),Se.innerHTML=xe.icon,Se.addEventListener("click",function(){ce.markerToolbarButtonClicked(Se,xe)}),ce.buttons.push(Se),ce.markerButtons.push(Se)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ue=document.createElement("div");Ue.className=this.toolbarBlockStyleClass.name,Ue.style.whiteSpace="nowrap",Ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ue),this.addActionButton(Ue,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ue,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},De.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},De.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},De.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},De.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce<this.markerButtons.length;ce++)ce<te||ce===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ce]):(ce===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ce]))}},De.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},De.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(ce){ce.className=ce.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ce.className=ce.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},De.prototype.addActionButton=function(te,ce,_e){var Ue=this,xe=document.createElement("div");switch(xe.className=""+this.toolbarButtonStyleClass.name,xe.innerHTML=ce,xe.setAttribute("data-action",_e),xe.addEventListener("click",function(){Ue.actionToolbarButtonClicked(xe,_e)}),_e){case"select":xe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":xe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":xe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":xe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":xe.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(xe),this.buttons.push(xe)},De.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new E("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new E("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new E("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new E("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new E("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new E("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new E("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new E("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new fe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new fe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},De.prototype.markerToolbarButtonClicked=function(te,ce){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(_e){return _e("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},De.prototype.actionToolbarButtonClicked=function(te,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(_e){return _e("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},De.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},De.prototype.setActiveMarkerButton=function(te){var ce=this.markerButtons.find(function(_e){return _e.getAttribute("data-type-name")===te});ce&&this.setActiveButton(ce)},De.prototype.setCurrentMarker=function(te){var ce=this;this.currentMarker=te,this.buttons.filter(function(_e){return/delete|notes/.test(_e.getAttribute("data-action"))}).forEach(function(_e){ce.currentMarker===void 0?(_e.style.fillOpacity="0.4",_e.style.pointerEvents="none"):(_e.style.fillOpacity="1",_e.style.pointerEvents="all")})},De}(),ne=function(){function De(te,ce,_e,Ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ce,this.uiStyleSettings=_e,this.styles=Ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return De.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new E("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 E("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new E("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new E("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new E("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 E("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new E("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
padding: `+ce+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new E("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new E("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new fe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new fe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},De.prototype.show=function(te){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},De.prototype.setPanelButtons=function(te){var ce,_e,Ue=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((_e=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&_e!==void 0?_e:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(xe){var Se;xe.uiStyleSettings=Ue.uiStyleSettings;var Oe=document.createElement("div");Oe.className=Ue.toolboxButtonStyleClass.name+" "+((Se=Ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Se!==void 0?Se:Ue.toolboxButtonStyleColorsClass.name),Oe.innerHTML=xe.icon,Oe.title=xe.title,Oe.addEventListener("click",function(){Ue.panelButtonClick(xe)}),Ue.panelButtons.push(Oe),Ue.buttonRow.appendChild(Oe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},De.prototype.panelButtonClick=function(te){var ce=this,_e=-1;if(te!==this.activePanel){_e=this.panels.indexOf(te),this.panelRow.innerHTML="";var Ue=te.getUi();Ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(xe,Se){var Oe,We;xe.className=ce.toolboxButtonStyleClass.name+" "+(Se===_e?""+((Oe=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe:ce.toolboxActiveButtonStyleColorsClass.name):""+((We=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:ce.toolboxButtonStyleColorsClass.name))})},De}(),le=function(De,te){this.title=De,this.icon=te},ue=function(De){function te(ce,_e,Ue,xe){var Se=De.call(this,ce,xe||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Se.colors=[],Se.addTransparent=!1,Se.colorBoxes=[],Se.colors=_e,Se.currentColor=Ue,Se.setCurrentColor=Se.setCurrentColor.bind(Se),Se.getColorBox=Se.getColorBox.bind(Se),Se}return mt(te,De),te.prototype.getUi=function(){var ce=this,_e=document.createElement("div");return _e.style.overflow="hidden",_e.style.whiteSpace="nowrap",this.colors.forEach(function(Ue){var xe=ce.getColorBox(Ue);_e.appendChild(xe),ce.colorBoxes.push(xe)}),_e},te.prototype.getColorBox=function(ce){var _e=this,Ue=this.uiStyleSettings.toolbarHeight/4,xe=this.uiStyleSettings.toolbarHeight-Ue,Se=document.createElement("div");Se.style.display="inline-block",Se.style.boxSizing="content-box",Se.style.width=xe-2+"px",Se.style.height=xe-2+"px",Se.style.padding="1px",Se.style.marginRight="2px",Se.style.marginBottom="2px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderRadius=(xe+2)/2+"px",Se.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){_e.setCurrentColor(ce,Se)});var Oe=document.createElement("div");return Oe.style.display="inline-block",Oe.style.width=xe-2+"px",Oe.style.height=xe-2+"px",Oe.style.backgroundColor=ce,Oe.style.borderRadius=xe/2+"px",ce==="transparent"&&(Oe.style.fill=this.uiStyleSettings.toolboxAccentColor,Oe.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),Se.appendChild(Oe),Se},te.prototype.setCurrentColor=function(ce,_e){var Ue=this;this.currentColor=ce,this.colorBoxes.forEach(function(xe){xe.style.borderColor=xe===_e?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},te}(le),he=function(){function De(te,ce,_e){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ce,this.globalSettings=_e,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(De.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),De.prototype.ownsTarget=function(te){return!1},Object.defineProperty(De.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),De.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},De.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},De.prototype.pointerDown=function(te,ce){},De.prototype.dblClick=function(te,ce){},De.prototype.manipulate=function(te){},De.prototype.pointerUp=function(te){this.stateChanged()},De.prototype.dispose=function(){},De.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},De.prototype.getState=function(){return{typeName:De.typeName,state:this.state,notes:this.notes}},De.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},De.prototype.scale=function(te,ce){},De.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},De.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},De.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},De.typeName="MarkerBase",De}(),pe=function(){function De(){this.findGripByVisual=this.findGripByVisual.bind(this)}return De.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},De}(),ve=function(){function De(){this.GRIP_SIZE=10,this.visual=x.createGroup(),this.visual.appendChild(x.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(x.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return De.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},De}(),de=function(){function De(){}return De.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},De.toSVGMatrix=function(te,ce){return te.a=ce.a,te.b=ce.b,te.c=ce.c,te.d=ce.d,te.e=ce.e,te.f=ce.f,te},De}(),we=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.left=0,xe.top=0,xe.width=0,xe.height=0,xe.defaultSize={x:50,y:20},xe.offsetX=0,xe.offsetY=0,xe.rotationAngle=0,xe.CB_DISTANCE=10,xe._suppressMarkerCreateEvent=!1,xe.container.transform.baseVal.appendItem(x.createTransform()),xe.setupControlBox(),xe}return mt(te,De),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var _e=x.createTransform();this._visual.transform.baseVal.appendItem(_e)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ue=this.unrotatePoint(ce);if(this.manipulationStartX=Ue.x,this.manipulationStartY=Ue.y,this.offsetX=Ue.x-this.left,this.offsetY=Ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(_e),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(_e)){this.activeGrip=this.rotatorGrip;var xe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=xe.x-this.width/2,this.top=xe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Se=this.container.transform.baseVal.getItem(0);Se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Se,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ce){var _e=this.state;De.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",_e==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},te.prototype.manipulate=function(ce){var _e=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(_e.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(_e.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(_e):this.state==="rotate"&&this.rotate(ce)},te.prototype.resize=function(ce){var _e=this.manipulationStartLeft,Ue=this.manipulationStartWidth,xe=this.manipulationStartTop,Se=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:_e=this.manipulationStartLeft+ce.x-this.manipulationStartX,Ue=this.manipulationStartWidth+this.manipulationStartLeft-_e;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ue=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:xe=this.manipulationStartTop+ce.y-this.manipulationStartY,Se=this.manipulationStartHeight+this.manipulationStartTop-xe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Se=this.manipulationStartHeight+ce.y-this.manipulationStartY}Ue>=0?(this.left=_e,this.width=Ue):(this.left=_e+Ue,this.width=-Ue),Se>=0?(this.top=xe,this.height=Se):(this.top=xe+Se,this.height=-Se),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var _e=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*_e,this.applyRotation()}},te.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},te.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var _e=this.container.getCTM(),Ue=x.createPoint(ce.x,ce.y);return{x:(Ue=Ue.matrixTransform(_e)).x,y:Ue.y}},te.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var _e=this.container.getCTM();_e=_e.inverse();var Ue=x.createPoint(ce.x,ce.y);return{x:(Ue=Ue.matrixTransform(_e)).x,y:Ue.y}},te.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=x.createGroup();var ce=x.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=x.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=x.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 pe,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ce=new ve;return ce.visual.transform.baseVal.appendItem(x.createTransform()),this.controlBox.appendChild(ce.visual),ce},te.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,_e=-ce/2,Ue=_e,xe=(this.width+this.CB_DISTANCE)/2-ce/2,Se=(this.height+this.CB_DISTANCE)/2-ce/2,Oe=this.height+this.CB_DISTANCE-ce/2,We=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,_e,Ue),this.positionGrip(this.controlGrips.topCenter.visual,xe,Ue),this.positionGrip(this.controlGrips.topRight.visual,We,Ue),this.positionGrip(this.controlGrips.centerLeft.visual,_e,Se),this.positionGrip(this.controlGrips.centerRight.visual,We,Se),this.positionGrip(this.controlGrips.bottomLeft.visual,_e,Oe),this.positionGrip(this.controlGrips.bottomCenter.visual,xe,Oe),this.positionGrip(this.controlGrips.bottomRight.visual,We,Oe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,xe,Ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ce,_e,Ue){var xe=ce.transform.baseVal.getItem(0);xe.setTranslate(_e,Ue),ce.transform.baseVal.replaceItem(xe,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:de.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:de.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},De.prototype.getState.call(this))},te.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var _e=ce;this.left=_e.left,this.top=_e.top,this.width=_e.width,this.height=_e.height,this.rotationAngle=_e.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(de.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,_e.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(de.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,_e.containerTransformMatrix))},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e);var Ue=this.rotatePoint({x:this.left,y:this.top}),xe=this.unrotatePoint({x:Ue.x*ce,y:Ue.y*_e});this.left=xe.x,this.top=xe.y,this.width=this.width*ce,this.height=this.height*_e,this.adjustControlBox()},te}(he),Te=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.opacity=1,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},te.prototype.createVisual=function(){this.visual=x.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},te.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce)},te.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},te.prototype.setSize=function(){De.prototype.setSize.call(this),x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize()},te.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},te.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&x.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},De.prototype.getState.call(this))},te.prototype.restoreState=function(ce){var _e=ce;this.fillColor=_e.fillColor,this.strokeColor=_e.strokeColor,this.strokeWidth=_e.strokeWidth,this.strokeDasharray=_e.strokeDasharray,this.opacity=_e.opacity,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e),this.setSize()},te.title="Rectangle marker",te}(we),je=function(De){function te(ce,_e,Ue,xe){var Se=De.call(this,ce,xe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Se.widths=[],Se.widthBoxes=[],Se.widths=_e,Se.currentWidth=Ue,Se.setCurrentWidth=Se.setCurrentWidth.bind(Se),Se}return mt(te,De),te.prototype.getUi=function(){var ce=this,_e=document.createElement("div");return _e.style.display="flex",_e.style.overflow="hidden",_e.style.flexGrow="2",this.widths.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="flex",xe.style.flexGrow="2",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=Ue===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){ce.setCurrentWidth(Ue,xe)}),_e.appendChild(xe);var Se=document.createElement("div");Se.innerText=Ue.toString(),Se.style.marginRight="5px",xe.appendChild(Se);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.display="flex",Oe.style.alignItems="center";var We=document.createElement("hr");We.style.minWidth="20px",We.style.border="0px",We.style.borderTop=Ue+"px solid "+ce.uiStyleSettings.toolboxColor,We.style.flexGrow="2",Oe.appendChild(We),xe.appendChild(Oe),ce.widthBoxes.push(xe)}),_e},te.prototype.setCurrentWidth=function(ce,_e){var Ue=this;this.currentWidth=ce,this.widthBoxes.forEach(function(xe){xe.style.borderColor=xe===_e?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(le),Me=function(De){function te(ce,_e,Ue,xe){var Se=De.call(this,ce,xe||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Se.styles=[],Se.styleBoxes=[],Se.styles=_e,Se.currentStyle=Ue,Se.setCurrentStyle=Se.setCurrentStyle.bind(Se),Se}return mt(te,De),te.prototype.getUi=function(){var ce=this,_e=document.createElement("div");return _e.style.display="flex",_e.style.overflow="hidden",_e.style.flexGrow="2",this.styles.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/ce.styles.length-5+"%",xe.style.borderColor=Ue===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){ce.setCurrentStyle(Ue,xe)}),_e.appendChild(xe);var Se=document.createElement("div");Se.style.minHeight="20px",Se.style.flexGrow="2",Se.style.overflow="hidden";var Oe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ue!==""?'stroke-dasharray="'+Ue+'"':"")+` />
</svg>`;Se.innerHTML=Oe,xe.appendChild(Se),ce.styleBoxes.push(xe)}),_e},te.prototype.setCurrentStyle=function(ce,_e){var Ue=this;this.currentStyle=ce,this.styleBoxes.forEach(function(xe){xe.style.borderColor=xe===_e?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(le),Ae=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.strokePanel=new ue("Line color",Ue.defaultColorSet,Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new je("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Me("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return mt(te,De),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=te.typeName,ce},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(Te),ge=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"},be=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.x1=0,xe.y1=0,xe.x2=0,xe.y2=0,xe.defaultLength=50,xe.manipulationStartX=0,xe.manipulationStartY=0,xe.manipulationStartX1=0,xe.manipulationStartY1=0,xe.manipulationStartX2=0,xe.manipulationStartY2=0,xe.setupControlBox(),xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!!De.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.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(_e)?this.activeGrip=this.grip1:this.grip2.ownsTarget(_e)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ce){var _e=this.state;De.prototype.pointerUp.call(this,ce),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(ce),this._state="select",_e==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},te.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){De.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){De.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=x.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ce=new ve;return ce.visual.transform.baseVal.appendItem(x.createTransform()),this.controlBox.appendChild(ce.visual),ce},te.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},te.prototype.positionGrip=function(ce,_e,Ue){var xe=ce.transform.baseVal.getItem(0);xe.setTranslate(_e,Ue),ce.transform.baseVal.replaceItem(xe,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},De.prototype.getState.call(this))},te.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var _e=ce;this.x1=_e.x1,this.y1=_e.y1,this.x2=_e.x2,this.y2=_e.y2},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e),this.x1=this.x1*ce,this.y1=this.y1*_e,this.x2=this.x2*ce,this.y2=this.y2*_e,this.adjustVisual(),this.adjustControlBox()},te}(he),Ee=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.strokePanel=new ue("Line color",Ue.defaultColorSet,Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new je("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Me("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.selectorLine=x.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=x.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),x.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),x.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),x.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},te.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},De.prototype.getState.call(this));return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var _e=ce;this.strokeColor=_e.strokeColor,this.strokeWidth=_e.strokeWidth,this.strokeDasharray=_e.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(be),Re=function(De){function te(ce,_e,Ue,xe){var Se=De.call(this,ce,xe||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Se.fonts=[],Se.fontBoxes=[],Se.fonts=_e,Se.currentFont=Ue,Se.setCurrentFont=Se.setCurrentFont.bind(Se),Se}return mt(te,De),te.prototype.getUi=function(){var ce=this,_e=document.createElement("div");return _e.style.overflow="hidden",_e.style.flexGrow="2",this.fonts.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="inline-block",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/ce.fonts.length-5+"%",xe.style.borderColor=Ue===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){ce.setCurrentFont(Ue,xe)}),_e.appendChild(xe);var Se=document.createElement("div");Se.style.display="flex",Se.style.minHeight="20px",Se.style.flexGrow="2",Se.style.fontFamily=Ue,Se.style.overflow="hidden";var Oe=document.createElement("div");Oe.style.whiteSpace="nowrap",Oe.style.overflow="hidden",Oe.style.textOverflow="ellipsis",Oe.innerHTML="The quick brown fox jumps over the lazy dog",Se.appendChild(Oe),xe.appendChild(Se),ce.fontBoxes.push(xe)}),_e},te.prototype.setCurrentFont=function(ce,_e){var Ue=this;this.currentFont=ce,this.fontBoxes.forEach(function(xe){xe.style.borderColor=xe===_e?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(le),Ie=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.color="transparent",xe.padding=5,xe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",xe.text=xe.DEFAULT_TEXT,xe.isMoved=!1,xe.color=Ue.defaultColor,xe.fontFamily=Ue.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setColor=xe.setColor.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.renderText=xe.renderText.bind(xe),xe.sizeText=xe.sizeText.bind(xe),xe.textEditDivClicked=xe.textEditDivClicked.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.setSize=xe.setSize.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.colorPanel=new ue("Color",Ue.defaultColorSet,Ue.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.fontFamilyPanel=new Re("Font",Ue.defaultFontFamilies,Ue.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe}return mt(te,De),te.prototype.ownsTarget=function(ce){if(De.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var _e=!1;return this.textElement.childNodes.forEach(function(Ue){Ue===ce&&(_e=!0)}),_e},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.bgRectangle=x.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=x.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(x.createTransform()),this.textElement.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},te.prototype.renderText=function(){var ce=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(_e){ce.textElement.appendChild(x.createTSpan(_e.trim()===""?" ":_e.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),_e=1;if(ce.width>0&&ce.height>0){var Ue=(1*this.width-this.width*this.padding*2/100)/ce.width,xe=(1*this.height-this.height*this.padding*2/100)/ce.height;_e=Math.min(Ue,xe)}return _e},te.prototype.getTextPosition=function(ce){var _e=this.textElement.getBBox(),Ue=0,xe=0;return _e.width>0&&_e.height>0&&(Ue=(this.width-_e.width*ce)/2,xe=this.height/2-_e.height*ce/2),{x:Ue,y:xe}},te.prototype.sizeText=function(){var ce=this.textElement.getBBox(),_e=this.getTextScale(),Ue=this.getTextPosition(_e);Ue.y-=ce.y*_e,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ue.x+"px, "+Ue.y+"px) scale("+_e+", "+_e+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ue.x,Ue.y),this.textElement.transform.baseVal.getItem(1).setScale(_e,_e))},te.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){De.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),x.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ce){var _e=this.state;_e==="creating"&&(this._suppressMarkerCreateEvent=!0),De.prototype.pointerUp.call(this,ce),this.setSize(),(_e==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ce=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(_e){_e.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var _e=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&_e>.9;)_e-=.1,ce.textEditor.style.fontSize=Math.max(_e,.9)+"em"}),this.textEditor.addEventListener("keyup",function(_e){_e.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(_e){if(_e.clipboardData){var Ue=_e.clipboardData.getData("text"),xe=window.getSelection();if(!xe.rangeCount)return!1;xe.deleteFromDocument(),xe.getRangeAt(0).insertNode(document.createTextNode(Ue)),_e.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),_e=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ue=this.textElement.getBBox(),xe={x:Ue.width*ce,y:Ue.height*ce};_e.x-=xe.x/2,_e.y-=xe.y/2,this.textEditor.style.top=_e.y+"px",this.textEditor.style.left=_e.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-_e.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){De.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),De.prototype.deselect.call(this)},te.prototype.dblClick=function(ce,_e){De.prototype.dblClick.call(this,ce,_e),this.showTextEditor()},te.prototype.setColor=function(ce){this.textElement&&x.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},te.prototype.setFont=function(ce){this.textElement&&x.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},De.prototype.getState.call(this));return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){var _e=ce;this.color=_e.color,this.fontFamily=_e.fontFamily,this.padding=_e.padding,this.text=_e.text,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',te}(we),ke=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.color="transparent",xe.lineWidth=3,xe.drawing=!1,xe.pixelRatio=1,xe.color=Ue.defaultColor,xe.lineWidth=Ue.defaultStrokeWidth,xe.pixelRatio=Ue.freehandPixelRatio,xe.setColor=xe.setColor.bind(xe),xe.addCanvas=xe.addCanvas.bind(xe),xe.finishCreation=xe.finishCreation.bind(xe),xe.setLineWidth=xe.setLineWidth.bind(xe),xe.colorPanel=new ue("Color",Ue.defaultColorSet,Ue.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.lineWidthPanel=new je("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.lineWidthPanel.onWidthChanged=xe.setLineWidth,xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.drawingImage=x.createImage(),this.visual.appendChild(this.drawingImage);var ce=x.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ce,_e){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(ce.x,ce.y),this.drawing=!0):De.prototype.pointerDown.call(this,ce,_e)},te.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):De.prototype.manipulate.call(this,ce)},te.prototype.resize=function(ce){De.prototype.resize.call(this,ce),x.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),x.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):De.prototype.pointerUp.call(this,ce)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),De.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),De.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),_e=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ue=_e[0],xe=_e[1],Se=_e[2],Oe=_e[3],We=!1,et=0;et<this.canvasElement.height;et++)for(var nt=0;nt<this.canvasElement.width;nt++)ce.data[et*this.canvasElement.width*4+4*nt+3]>0&&(We=!0,et<xe&&(xe=et),nt<Ue&&(Ue=nt),et>Oe&&(Oe=et),nt>Se&&(Se=nt));if(We){this.left=Ue/this.pixelRatio,this.top=xe/this.pixelRatio,this.width=(Se-Ue)/this.pixelRatio,this.height=(Oe-xe)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=Se-Ue,dt.height=Oe-xe,dt.getContext("2d").putImageData(this.canvasContext.getImageData(Ue,xe,Se-Ue,Oe-xe),0,0),this.drawingImgUrl=dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){x.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),x.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},te.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},De.prototype.getState.call(this));return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){this.createVisual(),De.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',te}(we),Pe=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,Ue||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return xe.typeBoxes=[],xe.currentType=_e,xe.setCurrentType=xe.setCurrentType.bind(xe),xe}return mt(te,De),te.prototype.getUi=function(){var ce=this,_e=document.createElement("div");_e.style.display="flex",_e.style.overflow="hidden",_e.style.flexGrow="2";for(var Ue=function(Oe){var We="both";switch(Oe){case 0:We="both";break;case 1:We="start";break;case 2:We="end";break;case 3:We="none"}var et=document.createElement("div");if(et.style.display="flex",et.style.flexGrow="2",et.style.alignItems="center",et.style.justifyContent="space-between",et.style.padding="5px",et.style.borderWidth="2px",et.style.borderStyle="solid",et.style.borderColor=We===xe.currentType?xe.uiStyleSettings.toolboxAccentColor:"transparent",et.addEventListener("click",function(){ce.setCurrentType(We,et)}),_e.appendChild(et),We==="both"||We==="start"){var nt=document.createElement("div");nt.style.display="flex",nt.style.alignItems="center",nt.style.minHeight="20px",nt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,nt.style.marginLeft="5px",et.appendChild(nt)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var ct=document.createElement("hr");if(ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop="3px solid "+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee"),ct.style.flexGrow="2",dt.appendChild(ct),et.appendChild(dt),We==="both"||We==="end"){var pt=document.createElement("div");pt.style.display="flex",pt.style.alignItems="center",pt.style.minHeight="20px",pt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,pt.style.marginRight="5px",et.appendChild(pt)}xe.typeBoxes.push(et)},xe=this,Se=0;Se<4;Se++)Ue(Se);return _e},te.prototype.setCurrentType=function(ce,_e){var Ue=this;this.currentType=ce,this.typeBoxes.forEach(function(xe){xe.style.borderColor=xe===_e?Ue.uiStyleSettings!==void 0?Ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(le),Ze=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.arrowType="end",xe.arrowBaseHeight=10,xe.arrowBaseWidth=10,xe.getArrowPoints=xe.getArrowPoints.bind(xe),xe.setArrowType=xe.setArrowType.bind(xe),xe.arrowTypePanel=new Pe("Arrow type","end"),xe.arrowTypePanel.onArrowTypeChanged=xe.setArrowType,xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},te.prototype.getArrowPoints=function(ce,_e){var Ue=this.arrowBaseWidth+2*this.strokeWidth,xe=this.arrowBaseHeight+2*this.strokeWidth;return ce-Ue/2+","+(_e+xe/2)+" "+ce+","+(_e-xe/2)+" "+(ce+Ue/2)+","+(_e+xe/2)},te.prototype.createTips=function(){this.arrow1=x.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=x.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(De.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",x.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),x.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var _e=this.arrow1.transform.baseVal.getItem(0);_e.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(_e,0);var Ue=this.arrow2.transform.baseVal.getItem(0);Ue.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ue,0)}},te.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},De.prototype.getState.call(this));return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var _e=ce;this.arrowType=_e.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(Ee),He=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.fillColor=Ue.defaultFillColor,xe.strokeWidth=0,xe.fillPanel=new ue("Color",Ue.defaultColorSet,Ue.defaultFillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe}return mt(te,De),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=te.typeName,ce},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(Te),$e=function(De){function te(ce,_e,Ue,xe){var Se=De.call(this,ce,xe||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Se.opacities=[],Se.opacityBoxes=[],Se.opacities=_e,Se.currentOpacity=Ue,Se.setCurrentOpacity=Se.setCurrentOpacity.bind(Se),Se}return mt(te,De),te.prototype.getUi=function(){var ce=this,_e=document.createElement("div");return _e.style.display="flex",_e.style.overflow="hidden",_e.style.flexGrow="2",_e.style.justifyContent="space-between",this.opacities.forEach(function(Ue){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="center",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=Ue===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){ce.setCurrentOpacity(Ue,xe)}),_e.appendChild(xe);var Se=document.createElement("div");Se.innerText=100*Ue+"%",xe.appendChild(Se),ce.opacityBoxes.push(xe)}),_e},te.prototype.setCurrentOpacity=function(ce,_e){var Ue=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(xe){xe.style.borderColor=xe===_e?Ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(le),it=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.setOpacity=xe.setOpacity.bind(xe),xe.fillColor=Ue.defaultHighlightColor,xe.strokeWidth=0,xe.opacity=Ue.defaultHighlightOpacity,xe.fillPanel=new ue("Color",Ue.defaultColorSet,xe.fillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe.opacityPanel=new $e("Opacity",Ue.defaultOpacitySteps,xe.opacity),xe.opacityPanel.onOpacityChanged=xe.setOpacity,xe}return mt(te,De),te.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&x.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=te.typeName,ce},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',te}(He),Ne='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Fe='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',qe=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.bgColor="transparent",xe.tipPosition={x:0,y:0},xe.tipBase1Position={x:0,y:0},xe.tipBase2Position={x:0,y:0},xe.tipMoving=!1,xe.color=Ue.defaultStrokeColor,xe.bgColor=Ue.defaultFillColor,xe.fontFamily=Ue.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setBgColor=xe.setBgColor.bind(xe),xe.getTipPoints=xe.getTipPoints.bind(xe),xe.positionTip=xe.positionTip.bind(xe),xe.setTipPoints=xe.setTipPoints.bind(xe),xe.colorPanel=new ue("Text color",Ue.defaultColorSet,xe.color,Ne),xe.colorPanel.onColorChanged=xe.setColor,xe.bgColorPanel=new ue("Fill color",Ue.defaultColorSet,xe.bgColor,Fe),xe.bgColorPanel.onColorChanged=xe.setBgColor,xe.fontFamilyPanel=new Re("Font",Ue.defaultFontFamilies,Ue.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.tipGrip=new ve,xe.tipGrip.visual.transform.baseVal.appendItem(x.createTransform()),xe.controlBox.appendChild(xe.tipGrip.visual),xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return De.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},te.prototype.createTip=function(){x.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=x.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ce,_e){this.state==="new"&&De.prototype.pointerDown.call(this,ce,_e),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(_e)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):De.prototype.pointerDown.call(this,ce,_e)},te.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,De.prototype.pointerUp.call(this,ce);else{var _e=this.state==="creating";De.prototype.pointerUp.call(this,ce),this.setTipPoints(_e),this.positionTip()}},te.prototype.manipulate=function(ce){if(this.tipMoving){var _e=this.unrotatePoint(ce);this.tipPosition={x:_e.x-this.manipulationStartLeft,y:_e.y-this.manipulationStartTop},this.positionTip()}else De.prototype.manipulate.call(this,ce)},te.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(x.setAttributes(this.bgRectangle,[["fill",ce]]),x.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var _e=Math.min(this.height/2,15),Ue=this.height/5;ce&&(this.tipPosition={x:_e+Ue/2,y:this.height+20});var xe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?xe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ue=this.width/5,_e=Math.min(this.width/2,15),this.tipBase1Position={x:_e,y:0},this.tipBase2Position={x:_e+Ue,y:0}):(this.tipBase1Position={x:0,y:_e},this.tipBase2Position={x:0,y:_e+Ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?xe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ue=this.width/5,_e=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-_e-Ue,y:0},this.tipBase2Position={x:this.width-_e,y:0}):(this.tipBase1Position={x:this.width,y:_e},this.tipBase2Position={x:this.width,y:_e+Ue}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?xe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ue=this.width/5,_e=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-_e-Ue,y:this.height},this.tipBase2Position={x:this.width-_e,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-_e-Ue},this.tipBase2Position={x:this.width,y:this.height-_e}):xe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ue=this.width/5,_e=Math.min(this.width/2,15),this.tipBase1Position={x:_e,y:this.height},this.tipBase2Position={x:_e+Ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-_e},this.tipBase2Position={x:0,y:this.height-_e-Ue})},te.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.positionTip()},te.prototype.positionTip=function(){x.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ce=this.tipGrip.visual.transform.baseVal.getItem(0);ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ce,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),De.prototype.select.call(this)},te.prototype.getState=function(){var ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},De.prototype.getState.call(this));return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){var _e=ce;this.bgColor=_e.bgColor,this.tipPosition=_e.tipPosition,De.prototype.restoreState.call(this,ce),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e),this.tipPosition={x:this.tipPosition.x*ce,y:this.tipPosition.y*_e},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',te}(Ie),rt=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.opacity=1,xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.fillColor=Ue.defaultFillColor,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.setOpacity=xe.setOpacity.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe.strokePanel=new ue("Line color",ye(Ue.defaultColorSet,["transparent"]),Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.fillPanel=new ue("Fill color",ye(Ue.defaultColorSet,["transparent"]),xe.fillColor,Fe),xe.fillPanel.onColorChanged=xe.setFillColor,xe.strokeWidthPanel=new je("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Me("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe.opacityPanel=new $e("Opacity",Ue.defaultOpacitySteps,xe.opacity),xe.opacityPanel.onOpacityChanged=xe.setOpacity,xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},te.prototype.createVisual=function(){this.visual=x.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},te.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce)},te.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},te.prototype.setSize=function(){De.prototype.setSize.call(this),x.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize()},te.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&x.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},te.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&x.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},te.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&x.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&x.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&x.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},De.prototype.getState.call(this));return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){var _e=ce;this.fillColor=_e.fillColor,this.strokeColor=_e.strokeColor,this.strokeWidth=_e.strokeWidth,this.strokeDasharray=_e.strokeDasharray,this.opacity=_e.opacity,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(we),tt=function(De){function te(ce,_e,Ue){return De.call(this,ce,_e,Ue)||this}return mt(te,De),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.tip1&&ce!==this.tip2)},te.prototype.createTips=function(){this.tip1=x.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.tip1),this.tip2=x.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(x.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(De.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(x.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),x.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),_e=this.tip1.transform.baseVal.getItem(0);_e.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(_e,0);var Ue=this.tip2.transform.baseVal.getItem(0);Ue.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ue,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',te}(Ee),Ve=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.strokePanel.colors=Ue.defaultColorSet,xe.fillColor="transparent",xe}return mt(te,De),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=De.prototype.getState.call(this);return ce.typeName=te.typeName,ce},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(rt),Ke=function(){function De(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),De.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},De.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},De.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},De.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},De.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},De}(),ze=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.curveX=0,xe.curveY=0,xe.manipulationStartCurveX=0,xe.manipulationStartCurveY=0,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.positionGrips=xe.positionGrips.bind(xe),xe.addControlGrips=xe.addControlGrips.bind(xe),xe.adjustVisual=xe.adjustVisual.bind(xe),xe.setupControlBox=xe.setupControlBox.bind(xe),xe.resize=xe.resize.bind(xe),xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.strokePanel=new ue("Line color",Ue.defaultColorSet,Ue.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new je("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Me("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.selectorCurve=x.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=x.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(_e)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),x.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),x.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),x.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){De.prototype.setupControlBox.call(this),this.curveControlLine1=x.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=x.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,De.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){De.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),De.prototype.manipulate.call(this,ce)},te.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),De.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},te.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},te.prototype.scale=function(ce,_e){this.curveX=this.curveX*ce,this.curveY=this.curveY*_e,De.prototype.scale.call(this,ce,_e)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},De.prototype.getState.call(this));return ce.typeName=te.typeName,ce},te.prototype.restoreState=function(ce){De.prototype.restoreState.call(this,ce);var _e=ce;this.strokeColor=_e.strokeColor,this.strokeWidth=_e.strokeWidth,this.strokeDasharray=_e.strokeDasharray,this.curveX=_e.curveX,this.curveY=_e.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',te}(be),at=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,_e,Ue)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.textColor="transparent",xe.fontSize="1rem",xe.isMoved=!1,xe.captionText="Caption",xe.PADDING=5,xe.captionBoxWidth=0,xe.captionBoxHeight=0,xe.strokeColor=Ue.defaultColor,xe.strokeWidth=Ue.defaultStrokeWidth,xe.strokeDasharray=Ue.defaultStrokeDasharray,xe.fillColor=Ue.defaultFillColor,xe.textColor=Ue.defaultStrokeColor,xe.fontFamily=Ue.defaultFontFamily,xe.fontSize=Ue.defaultCaptionFontSize,xe.captionText=Ue.defaultCaptionText,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe.sizeCaption=xe.sizeCaption.bind(xe),xe.setCaptionText=xe.setCaptionText.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.finishTextEditing=xe.finishTextEditing.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.setTextColor=xe.setTextColor.bind(xe),xe.strokePanel=new ue("Line color",ye(Ue.defaultColorSet,["transparent"]),xe.strokeColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.fillPanel=new ue("Fill color",ye(Ue.defaultColorSet,["transparent"]),xe.fillColor,Fe),xe.fillPanel.onColorChanged=xe.setFillColor,xe.strokeWidthPanel=new je("Line width",Ue.defaultStrokeWidths,Ue.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Me("Line style",Ue.defaultStrokeDasharrays,Ue.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe.fontFamilyPanel=new Re("Font",Ue.defaultFontFamilies,Ue.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.textColorPanel=new ue("Text color",Ue.defaultColorSet,xe.textColor,Ne),xe.textColorPanel.onColorChanged=xe.setTextColor,xe}return mt(te,De),te.prototype.ownsTarget=function(ce){return!(!De.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},te.prototype.createVisual=function(){this.visual=x.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=x.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=x.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=x.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ce,_e){De.prototype.pointerDown.call(this,ce,_e),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},te.prototype.manipulate=function(ce){De.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ce){De.prototype.resize.call(this,ce),this.setSize()},te.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),x.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')"]]),x.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ce=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(_e){_e.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(_e){_e.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(_e){_e.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ce){this.captionElement&&x.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ce){this.captionElement&&x.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){De.prototype.setSize.call(this),x.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ce){De.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ce,_e){De.prototype.dblClick.call(this,ce,_e),this.showTextEditor()},te.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&x.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},te.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&x.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},te.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&x.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&x.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ce=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},De.prototype.getState.call(this));return ce.typeName=this.typeName,ce},te.prototype.restoreState=function(ce){var _e=ce;this.fillColor=_e.fillColor,this.strokeColor=_e.strokeColor,this.strokeWidth=_e.strokeWidth,this.strokeDasharray=_e.strokeDasharray,this.textColor=_e.textColor,this.fontFamily=_e.fontFamily,this.captionText=_e.captionText,this.fontSize=_e.fontSize,this.createVisual(),De.prototype.restoreState.call(this,ce),this.setSize()},te.prototype.scale=function(ce,_e){De.prototype.scale.call(this,ce,_e),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',te}(we),Qe=function(){function De(te,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ce}return Object.defineProperty(De.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),De.prototype.preventDefault=function(){this._defaultPrevented=!0},De}(),ut=function(De){function te(ce,_e,Ue){var xe=De.call(this,ce,!1)||this;return xe.dataUrl=_e,xe.state=Ue,xe}return mt(te,De),te}(Qe),st=function(De){function te(ce,_e,Ue){Ue===void 0&&(Ue=!1);var xe=De.call(this,ce,Ue)||this;return xe.marker=_e,xe}return mt(te,De),te}(Qe),Xe=function(){function De(){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 De.prototype.addEventListener=function(te,ce){this[te].push(ce)},De.prototype.removeEventListener=function(te,ce){var _e=this[te].indexOf(ce);_e>-1&&this[te].splice(_e,1)},De}(),Le=function(){function De(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ge,this._isOpen=!1,this.undoRedoManager=new Ke,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 Xe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=De.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(De.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ae,ke,Ze,Ie,Ve,rt,it,qe,tt,He,Ee,ze,at]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ae,ke,Ze,Ie,rt,it,qe]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ae,ke,Ze,Ie,it]},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ce=this;this._availableMarkerTypes.splice(0),te.forEach(function(_e){if(typeof _e=="string"){var Ue=ce.ALL_MARKER_TYPES.find(function(xe){return xe.typeName===_e});Ue!==void 0&&ce._availableMarkerTypes.push(Ue)}else ce._availableMarkerTypes.push(_e)})},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),De.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),z.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},De.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new Qe(te))})},De.prototype.render=function(){return y(this,void 0,void 0,function(){var te;return Ce(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(te=new se).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},De.prototype.close=function(te){var ce=this;if(te===void 0&&(te=!1),this.isOpen){var _e=!1;te||this.eventListeners.beforeclose.forEach(function(Ue){var xe=new Qe(ce,!0);Ue(xe),xe.defaultPrevented&&(_e=!0)}),_e||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ue){return Ue(new Qe(ce))}),this.detachEvents(),this._isOpen=!1)}},De.prototype.addMarkersToToolbar=function(){for(var te,ce=[],_e=0;_e<arguments.length;_e++)ce[_e]=arguments[_e];(te=this._availableMarkerTypes).push.apply(te,ce)},De.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ce){te(ce.dataUrl,ce.state)})},De.prototype.removeRenderEventListener=function(te){},De.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},De.prototype.removeCloseEventListener=function(te){},De.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},De.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ce=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,_e=ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ce,_e)},De.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},De.prototype.resize=function(te,ce){this._isResizing=!0;var _e=te/this.imageWidth,Ue=ce/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ce),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(_e,Ue),this._isResizing=!1},De.prototype.scaleMarkers=function(te,ce){var _e,Ue=this;this._currentMarker&&this._currentMarker instanceof Ie?this._currentMarker.scale(te,ce):(_e=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(xe){xe!==Ue._currentMarker&&xe.scale(te,ce)}),_e!==void 0&&this.setCurrentMarker(_e)},De.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},De.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ce=this.editorCanvas.getBoundingClientRect();this.left=te.left-ce.left,this.top=te.top-ce.top},De.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},De.prototype.addDefs=function(){for(var te,ce=[],_e=0;_e<arguments.length;_e++)ce[_e]=arguments[_e];this.defs=x.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ce)},De.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},De.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},De.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},De.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},De.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},De.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},De.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},De.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},De.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")},De.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"},De.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},De.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new re(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ne(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},De.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},De.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},De.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())},De.prototype.toolbarButtonClicked=function(te,ce){if(te==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(te==="action")switch(ce){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()}},De.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ue){var xe=new st(te,te._currentMarker,!0);Ue(xe),xe.defaultPrevented&&(ce=!0)}),!ce){var _e=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ue){return Ue(new st(te,_e))})}}},De.prototype.clear=function(){var te=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Se){var Oe=new st(te,void 0,!0);Se(Oe),Oe.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var _e=function(Se){var Oe=Ue.markers[Se];Ue.setCurrentMarker(Ue.markers[Se]),Ue._currentMarker.dispose(),Ue.markerImage.removeChild(Ue._currentMarker.container),Ue.markers.splice(Ue.markers.indexOf(Ue._currentMarker),1),Ue.eventListeners.markerdelete.forEach(function(We){return We(new st(te,Oe))})},Ue=this,xe=this.markers.length-1;xe>=0;xe--)_e(xe);this.addUndoStep()}},Object.defineProperty(De.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),De.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},De.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)},De.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},De.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),_e=this.undoRedoManager.getLastUndoStep();if(!_e||_e.width===ce.width&&_e.height===ce.height){var Ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),Ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(xe){return xe(new Qe(te))})}else this.undoRedoManager.replaceLastUndoStep(ce),this.eventListeners.statechange.forEach(function(xe){return xe(new Qe(te))})}},De.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},De.prototype.undoStep=function(){var te=this,ce=this.undoRedoManager.undo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(_e){return _e(new Qe(te))}))},De.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},De.prototype.redoStep=function(){var te=this,ce=this.undoRedoManager.redo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(_e){return _e(new Qe(te))}))},De.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},De.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},De.prototype.startRenderAndClose=function(){return y(this,void 0,void 0,function(){var te,ce,_e=this;return Ce(this,function(Ue){switch(Ue.label){case 0:return[4,this.render()];case 1:return te=Ue.sent(),ce=this.getState(),this.eventListeners.render.forEach(function(xe){return xe(new ut(_e,te,ce))}),this.close(!0),[2]}})})},De.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(_e){return ce.markers.push(_e.getState())}),ce},De.prototype.restoreState=function(te){var ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(_e){var Ue=ce._availableMarkerTypes.find(function(Se){return Se.typeName===_e.typeName});if(Ue!==void 0){var xe=ce.addNewMarker(Ue);xe.restoreState(_e),ce.markers.push(xe)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(_e){return _e(new Qe(ce))})},De.prototype.addNewMarker=function(te){var ce=x.createGroup();return this.markerImage.appendChild(ce),new te(ce,this.overlayContainer,this.settings)},De.prototype.createNewMarker=function(te){var ce,_e=this;(ce=typeof te=="string"?this._availableMarkerTypes.find(function(Ue){return Ue.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ce),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ue){return Ue(new st(_e,_e._currentMarker))}))},De.prototype.markerCreated=function(te){var ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof ke&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ke):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(_e){return _e(new st(ce,ce._currentMarker))})},De.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},De.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},De.prototype.markerStateChanged=function(te){var ce=this;this.eventListeners.markerchange.forEach(function(_e){return _e(new st(ce,te))})},De.prototype.setCurrentMarker=function(te){var ce=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(_e){return _e(new st(ce,ce._currentMarker))})),this._currentMarker=te,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(_e){return _e(new st(ce,ce._currentMarker))}))},De.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ce=this.markers.find(function(_e){return _e.ownsTarget(te.target)});ce!==void 0?(this.setCurrentMarker(ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},De.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ce=this.markers.find(function(_e){return _e.ownsTarget(te.target)});ce!==void 0&&ce!==this._currentMarker&&this.setCurrentMarker(ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},De.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},De.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},De.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},De.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},De.prototype.clientToLocalCoordinates=function(te,ce){var _e=this.markerImage.getBoundingClientRect();return{x:(te-_e.left)/this.zoomLevel,y:(ce-_e.top)/this.zoomLevel}},De.prototype.onWindowResize=function(){this.positionUI()},De.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},De.prototype.addLicenseKey=function(te){z.addKey(te)},De.prototype.addEventListener=function(te,ce){this.eventListeners.addEventListener(te,ce)},De.prototype.removeEventListener=function(te,ce){this.eventListeners.removeEventListener(te,ce)},De.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(De.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),De.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new Qe(te))}))},De.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new Qe(te))}))},De.instanceCounter=0,De}()},98535:function(Ht,_t,Ge){"use strict";Ge.r(_t),Ge.d(_t,{Panel:function(){return ke},default:function(){return Ie}});var Ye=Ge(32855),mt=Ge(3300),y=Ge(11913),Ce=Ge(34666),ye=Ge(92310),x=Ge.n(ye),z=Ge(18929),se=Ge(48736),ae=Ge(59301),ee=Ge(43079),fe=Ge(11592),E=Ge(27247),re=Ge(74430),ne=Ge(77900),le=Ge(10228),ue=ae.forwardRef(function(Pe,Ze){var He=Pe.prefixCls,$e=Pe.forceRender,it=Pe.className,Ne=Pe.style,Fe=Pe.children,qe=Pe.isActive,rt=Pe.role,tt=Pe.classNames,Ve=Pe.styles,Ke=ae.useState(qe||$e),ze=(0,y.Z)(Ke,2),at=ze[0],Qe=ze[1];return ae.useEffect(function(){($e||qe)&&Qe(!0)},[$e,qe]),at?ae.createElement("div",{ref:Ze,className:x()("".concat(He,"-content"),(0,re.Z)((0,re.Z)({},"".concat(He,"-content-active"),qe),"".concat(He,"-content-inactive"),!qe),it),style:Ne,role:rt},ae.createElement("div",{className:x()("".concat(He,"-content-box"),tt==null?void 0:tt.body),style:Ve==null?void 0:Ve.body},Fe)):null});ue.displayName="PanelContent";var he=ue,pe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],ve=ae.forwardRef(function(Pe,Ze){var He=Pe.showArrow,$e=He===void 0?!0:He,it=Pe.headerClass,Ne=Pe.isActive,Fe=Pe.onItemClick,qe=Pe.forceRender,rt=Pe.className,tt=Pe.classNames,Ve=tt===void 0?{}:tt,Ke=Pe.styles,ze=Ke===void 0?{}:Ke,at=Pe.prefixCls,Qe=Pe.collapsible,ut=Pe.accordion,st=Pe.panelKey,Xe=Pe.extra,Le=Pe.header,De=Pe.expandIcon,te=Pe.openMotion,ce=Pe.destroyInactivePanel,_e=Pe.children,Ue=(0,ee.Z)(Pe,pe),xe=Qe==="disabled",Se=Xe!=null&&typeof Xe!="boolean",Oe=(0,re.Z)((0,re.Z)((0,re.Z)({onClick:function(){Fe==null||Fe(st)},onKeyDown:function(St){(St.key==="Enter"||St.keyCode===le.Z.ENTER||St.which===le.Z.ENTER)&&(Fe==null||Fe(st))},role:ut?"tab":"button"},"aria-expanded",Ne),"aria-disabled",xe),"tabIndex",xe?-1:0),We=typeof De=="function"?De(Pe):ae.createElement("i",{className:"arrow"}),et=We&&ae.createElement("div",(0,Ye.Z)({className:"".concat(at,"-expand-icon")},["header","icon"].includes(Qe)?Oe:{}),We),nt=x()("".concat(at,"-item"),(0,re.Z)((0,re.Z)({},"".concat(at,"-item-active"),Ne),"".concat(at,"-item-disabled"),xe),rt),dt=x()(it,"".concat(at,"-header"),(0,re.Z)({},"".concat(at,"-collapsible-").concat(Qe),!!Qe),Ve.header),ct=(0,E.Z)({className:dt,style:ze.header},["header","icon"].includes(Qe)?{}:Oe);return ae.createElement("div",(0,Ye.Z)({},Ue,{ref:Ze,className:nt}),ae.createElement("div",ct,$e&&et,ae.createElement("span",(0,Ye.Z)({className:"".concat(at,"-header-text")},Qe==="header"?Oe:{}),Le),Se&&ae.createElement("div",{className:"".concat(at,"-extra")},Xe)),ae.createElement(ne.default,(0,Ye.Z)({visible:Ne,leavedClassName:"".concat(at,"-content-hidden")},te,{forceRender:qe,removeOnLeave:ce}),function(pt,St){var yt=pt.className,xt=pt.style;return ae.createElement(he,{ref:St,prefixCls:at,className:yt,classNames:Ve,style:xt,styles:ze,isActive:Ne,forceRender:qe,role:ut?"tabpanel":void 0},_e)}))}),de=ve,we=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Te=function(Ze,He){var $e=He.prefixCls,it=He.accordion,Ne=He.collapsible,Fe=He.destroyInactivePanel,qe=He.onItemClick,rt=He.activeKey,tt=He.openMotion,Ve=He.expandIcon;return Ze.map(function(Ke,ze){var at=Ke.children,Qe=Ke.label,ut=Ke.key,st=Ke.collapsible,Xe=Ke.onItemClick,Le=Ke.destroyInactivePanel,De=(0,ee.Z)(Ke,we),te=String(ut!=null?ut:ze),ce=st!=null?st:Ne,_e=Le!=null?Le:Fe,Ue=function(Oe){ce!=="disabled"&&(qe(Oe),Xe==null||Xe(Oe))},xe=!1;return it?xe=rt[0]===te:xe=rt.indexOf(te)>-1,ae.createElement(de,(0,Ye.Z)({},De,{prefixCls:$e,key:te,panelKey:te,isActive:xe,accordion:it,openMotion:tt,expandIcon:Ve,header:Qe,collapsible:ce,onItemClick:Ue,destroyInactivePanel:_e}),at)})},je=function(Ze,He,$e){if(!Ze)return null;var it=$e.prefixCls,Ne=$e.accordion,Fe=$e.collapsible,qe=$e.destroyInactivePanel,rt=$e.onItemClick,tt=$e.activeKey,Ve=$e.openMotion,Ke=$e.expandIcon,ze=Ze.key||String(He),at=Ze.props,Qe=at.header,ut=at.headerClass,st=at.destroyInactivePanel,Xe=at.collapsible,Le=at.onItemClick,De=!1;Ne?De=tt[0]===ze:De=tt.indexOf(ze)>-1;var te=Xe!=null?Xe:Fe,ce=function(xe){te!=="disabled"&&(rt(xe),Le==null||Le(xe))},_e={key:ze,panelKey:ze,header:Qe,headerClass:ut,isActive:De,prefixCls:it,destroyInactivePanel:st!=null?st:qe,openMotion:Ve,accordion:Ne,children:Ze.props.children,onItemClick:ce,expandIcon:Ke,collapsible:te};return typeof Ze.type=="string"?Ze:(Object.keys(_e).forEach(function(Ue){typeof _e[Ue]=="undefined"&&delete _e[Ue]}),ae.cloneElement(Ze,_e))};function Me(Pe,Ze,He){return Array.isArray(Pe)?Te(Pe,He):(0,fe.Z)(Ze).map(function($e,it){return je($e,it,He)})}var Ae=Me,ge=Ge(26112);function be(Pe){var Ze=Pe;if(!Array.isArray(Ze)){var He=(0,Ce.Z)(Ze);Ze=He==="number"||He==="string"?[Ze]:[]}return Ze.map(function($e){return String($e)})}var Ee=ae.forwardRef(function(Pe,Ze){var He=Pe.prefixCls,$e=He===void 0?"rc-collapse":He,it=Pe.destroyInactivePanel,Ne=it===void 0?!1:it,Fe=Pe.style,qe=Pe.accordion,rt=Pe.className,tt=Pe.children,Ve=Pe.collapsible,Ke=Pe.openMotion,ze=Pe.expandIcon,at=Pe.activeKey,Qe=Pe.defaultActiveKey,ut=Pe.onChange,st=Pe.items,Xe=x()($e,rt),Le=(0,z.Z)([],{value:at,onChange:function(Se){return ut==null?void 0:ut(Se)},defaultValue:Qe,postState:be}),De=(0,y.Z)(Le,2),te=De[0],ce=De[1],_e=function(Se){return ce(function(){if(qe)return te[0]===Se?[]:[Se];var Oe=te.indexOf(Se),We=Oe>-1;return We?te.filter(function(et){return et!==Se}):[].concat((0,mt.Z)(te),[Se])})};(0,se.ZP)(!tt,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Ue=Ae(st,tt,{prefixCls:$e,accordion:qe,openMotion:Ke,expandIcon:ze,collapsible:Ve,destroyInactivePanel:Ne,onItemClick:_e,activeKey:te});return ae.createElement("div",(0,Ye.Z)({ref:Ze,className:Xe,style:Fe,role:qe?"tablist":void 0},(0,ge.Z)(Pe,{aria:!0,data:!0})),Ue)}),Re=Object.assign(Ee,{Panel:de}),Ie=Re,ke=Re.Panel},66042:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return Ie}});var Ye=Ge(27247),mt=Ge(11913),y=Ge(43403),Ce=Ge(34280),ye=Ge(59301),x=ye.createContext(null),z=ye.createContext({}),se=x,ae=Ge(74430),ee=Ge(32855),fe=Ge(92310),E=Ge.n(fe),re=Ge(77900),ne=Ge(10228),le=Ge(26112),ue=Ge(43079),he=Ge(8654),pe=["prefixCls","className","containerRef"],ve=function(Pe){var Ze=Pe.prefixCls,He=Pe.className,$e=Pe.containerRef,it=(0,ue.Z)(Pe,pe),Ne=ye.useContext(z),Fe=Ne.panel,qe=(0,he.x1)(Fe,$e);return ye.createElement("div",(0,ee.Z)({className:E()("".concat(Ze,"-content"),He),role:"dialog",ref:qe},(0,le.Z)(Pe,{aria:!0}),{"aria-modal":"true"},it))},de=ve,we=Ge(48736);function Te(ke){return typeof ke=="string"&&String(Number(ke))===ke?((0,we.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ke)):ke}function je(ke){warning(!("wrapperClassName"in ke),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ke.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Me={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ae(ke,Pe){var Ze,He,$e,it=ke.prefixCls,Ne=ke.open,Fe=ke.placement,qe=ke.inline,rt=ke.push,tt=ke.forceRender,Ve=ke.autoFocus,Ke=ke.keyboard,ze=ke.classNames,at=ke.rootClassName,Qe=ke.rootStyle,ut=ke.zIndex,st=ke.className,Xe=ke.id,Le=ke.style,De=ke.motion,te=ke.width,ce=ke.height,_e=ke.children,Ue=ke.mask,xe=ke.maskClosable,Se=ke.maskMotion,Oe=ke.maskClassName,We=ke.maskStyle,et=ke.afterOpenChange,nt=ke.onClose,dt=ke.onMouseEnter,ct=ke.onMouseOver,pt=ke.onMouseLeave,St=ke.onClick,yt=ke.onKeyDown,xt=ke.onKeyUp,vt=ke.styles,Tt=ke.drawerRender,bt=ye.useRef(),ft=ye.useRef(),Dt=ye.useRef();ye.useImperativeHandle(Pe,function(){return bt.current});var At=function(Sr){var sn=Sr.keyCode,lr=Sr.shiftKey;switch(sn){case ne.Z.TAB:{if(sn===ne.Z.TAB){if(!lr&&document.activeElement===Dt.current){var tr;(tr=ft.current)===null||tr===void 0||tr.focus({preventScroll:!0})}else if(lr&&document.activeElement===ft.current){var or;(or=Dt.current)===null||or===void 0||or.focus({preventScroll:!0})}}break}case ne.Z.ESC:{nt&&Ke&&(Sr.stopPropagation(),nt(Sr));break}}};ye.useEffect(function(){if(Ne&&Ve){var Tr;(Tr=bt.current)===null||Tr===void 0||Tr.focus({preventScroll:!0})}},[Ne]);var Mt=ye.useState(!1),$t=(0,mt.Z)(Mt,2),pr=$t[0],qt=$t[1],wr=ye.useContext(se),jr;typeof rt=="boolean"?jr=rt?{}:{distance:0}:jr=rt||{};var Dr=(Ze=(He=($e=jr)===null||$e===void 0?void 0:$e.distance)!==null&&He!==void 0?He:wr==null?void 0:wr.pushDistance)!==null&&Ze!==void 0?Ze:180,Fr=ye.useMemo(function(){return{pushDistance:Dr,push:function(){qt(!0)},pull:function(){qt(!1)}}},[Dr]);ye.useEffect(function(){if(Ne){var Tr;wr==null||(Tr=wr.push)===null||Tr===void 0||Tr.call(wr)}else{var Sr;wr==null||(Sr=wr.pull)===null||Sr===void 0||Sr.call(wr)}},[Ne]),ye.useEffect(function(){return function(){var Tr;wr==null||(Tr=wr.pull)===null||Tr===void 0||Tr.call(wr)}},[]);var on=Ue&&ye.createElement(re.default,(0,ee.Z)({key:"mask"},Se,{visible:Ne}),function(Tr,Sr){var sn=Tr.className,lr=Tr.style;return ye.createElement("div",{className:E()("".concat(it,"-mask"),sn,ze==null?void 0:ze.mask,Oe),style:(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},lr),We),vt==null?void 0:vt.mask),onClick:xe&&Ne?nt:void 0,ref:Sr})}),wn=typeof De=="function"?De(Fe):De,hn={};if(pr&&Dr)switch(Fe){case"top":hn.transform="translateY(".concat(Dr,"px)");break;case"bottom":hn.transform="translateY(".concat(-Dr,"px)");break;case"left":hn.transform="translateX(".concat(Dr,"px)");break;default:hn.transform="translateX(".concat(-Dr,"px)");break}Fe==="left"||Fe==="right"?hn.width=Te(te):hn.height=Te(ce);var Gr={onMouseEnter:dt,onMouseOver:ct,onMouseLeave:pt,onClick:St,onKeyDown:yt,onKeyUp:xt},An=ye.createElement(re.default,(0,ee.Z)({key:"panel"},wn,{visible:Ne,forceRender:tt,onVisibleChanged:function(Sr){et==null||et(Sr)},removeOnLeave:!1,leavedClassName:"".concat(it,"-content-wrapper-hidden")}),function(Tr,Sr){var sn=Tr.className,lr=Tr.style,tr=ye.createElement(de,(0,ee.Z)({id:Xe,containerRef:Sr,prefixCls:it,className:E()(st,ze==null?void 0:ze.content),style:(0,Ye.Z)((0,Ye.Z)({},Le),vt==null?void 0:vt.content)},(0,le.Z)(ke,{aria:!0}),Gr),_e);return ye.createElement("div",(0,ee.Z)({className:E()("".concat(it,"-content-wrapper"),ze==null?void 0:ze.wrapper,sn),style:(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},hn),lr),vt==null?void 0:vt.wrapper)},(0,le.Z)(ke,{data:!0})),Tt?Tt(tr):tr)}),Rn=(0,Ye.Z)({},Qe);return ut&&(Rn.zIndex=ut),ye.createElement(se.Provider,{value:Fr},ye.createElement("div",{className:E()(it,"".concat(it,"-").concat(Fe),at,(0,ae.Z)((0,ae.Z)({},"".concat(it,"-open"),Ne),"".concat(it,"-inline"),qe)),style:Rn,tabIndex:-1,ref:bt,onKeyDown:At},on,ye.createElement("div",{tabIndex:0,ref:ft,style:Me,"aria-hidden":"true","data-sentinel":"start"}),An,ye.createElement("div",{tabIndex:0,ref:Dt,style:Me,"aria-hidden":"true","data-sentinel":"end"})))}var ge=ye.forwardRef(Ae),be=ge,Ee=function(Pe){var Ze=Pe.open,He=Ze===void 0?!1:Ze,$e=Pe.prefixCls,it=$e===void 0?"rc-drawer":$e,Ne=Pe.placement,Fe=Ne===void 0?"right":Ne,qe=Pe.autoFocus,rt=qe===void 0?!0:qe,tt=Pe.keyboard,Ve=tt===void 0?!0:tt,Ke=Pe.width,ze=Ke===void 0?378:Ke,at=Pe.mask,Qe=at===void 0?!0:at,ut=Pe.maskClosable,st=ut===void 0?!0:ut,Xe=Pe.getContainer,Le=Pe.forceRender,De=Pe.afterOpenChange,te=Pe.destroyOnClose,ce=Pe.onMouseEnter,_e=Pe.onMouseOver,Ue=Pe.onMouseLeave,xe=Pe.onClick,Se=Pe.onKeyDown,Oe=Pe.onKeyUp,We=Pe.panelRef,et=ye.useState(!1),nt=(0,mt.Z)(et,2),dt=nt[0],ct=nt[1],pt=ye.useState(!1),St=(0,mt.Z)(pt,2),yt=St[0],xt=St[1];(0,Ce.Z)(function(){xt(!0)},[]);var vt=yt?He:!1,Tt=ye.useRef(),bt=ye.useRef();(0,Ce.Z)(function(){vt&&(bt.current=document.activeElement)},[vt]);var ft=function(pr){var qt;if(ct(pr),De==null||De(pr),!pr&&bt.current&&!((qt=Tt.current)!==null&&qt!==void 0&&qt.contains(bt.current))){var wr;(wr=bt.current)===null||wr===void 0||wr.focus({preventScroll:!0})}},Dt=ye.useMemo(function(){return{panel:We}},[We]);if(!Le&&!dt&&!vt&&te)return null;var At={onMouseEnter:ce,onMouseOver:_e,onMouseLeave:Ue,onClick:xe,onKeyDown:Se,onKeyUp:Oe},Mt=(0,Ye.Z)((0,Ye.Z)({},Pe),{},{open:vt,prefixCls:it,placement:Fe,autoFocus:rt,keyboard:Ve,width:ze,mask:Qe,maskClosable:st,inline:Xe===!1,afterOpenChange:ft,ref:Tt},At);return ye.createElement(z.Provider,{value:Dt},ye.createElement(y.Z,{open:vt||Le||dt,autoDestroy:!1,getContainer:Xe,autoLock:Qe&&(vt||dt)},ye.createElement(be,Mt)))},Re=Ee,Ie=Re},23425:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return Me}});var Ye=Ge(74430),mt=Ge(32855),y=Ge(34666),Ce=Ge(27247),ye=Ge(11913),x=Ge(92310),z=Ge.n(x),se=Ge(18929),ae=Ge(10228),ee=Ge(26112),fe=Ge(48736),E=Ge(59301),re=Ge(17119),ne=[10,20,50,100],le=function(ge){var be=ge.pageSizeOptions,Ee=be===void 0?ne:be,Re=ge.locale,Ie=ge.changeSize,ke=ge.pageSize,Pe=ge.goButton,Ze=ge.quickGo,He=ge.rootPrefixCls,$e=ge.disabled,it=ge.buildOptionText,Ne=ge.showSizeChanger,Fe=ge.sizeChangerRender,qe=E.useState(""),rt=(0,ye.Z)(qe,2),tt=rt[0],Ve=rt[1],Ke=function(){return!tt||Number.isNaN(tt)?void 0:Number(tt)},ze=typeof it=="function"?it:function(ce){return"".concat(ce," ").concat(Re.items_per_page)},at=function(_e){Ve(_e.target.value)},Qe=function(_e){Pe||tt===""||(Ve(""),!(_e.relatedTarget&&(_e.relatedTarget.className.indexOf("".concat(He,"-item-link"))>=0||_e.relatedTarget.className.indexOf("".concat(He,"-item"))>=0))&&(Ze==null||Ze(Ke())))},ut=function(_e){tt!==""&&(_e.keyCode===ae.Z.ENTER||_e.type==="click")&&(Ve(""),Ze==null||Ze(Ke()))},st=function(){return Ee.some(function(_e){return _e.toString()===ke.toString()})?Ee:Ee.concat([ke]).sort(function(_e,Ue){var xe=Number.isNaN(Number(_e))?0:Number(_e),Se=Number.isNaN(Number(Ue))?0:Number(Ue);return xe-Se})},Xe="".concat(He,"-options");if(!Ne&&!Ze)return null;var Le=null,De=null,te=null;return Ne&&Fe&&(Le=Fe({disabled:$e,size:ke,onSizeChange:function(_e){Ie==null||Ie(Number(_e))},"aria-label":Re.page_size,className:"".concat(Xe,"-size-changer"),options:st().map(function(ce){return{label:ze(ce),value:ce}})})),Ze&&(Pe&&(te=typeof Pe=="boolean"?E.createElement("button",{type:"button",onClick:ut,onKeyUp:ut,disabled:$e,className:"".concat(Xe,"-quick-jumper-button")},Re.jump_to_confirm):E.createElement("span",{onClick:ut,onKeyUp:ut},Pe)),De=E.createElement("div",{className:"".concat(Xe,"-quick-jumper")},Re.jump_to,E.createElement("input",{disabled:$e,type:"text",value:tt,onChange:at,onKeyUp:ut,onBlur:Qe,"aria-label":Re.page}),Re.page,te)),E.createElement("li",{className:Xe},Le,De)},ue=le,he=function(ge){var be=ge.rootPrefixCls,Ee=ge.page,Re=ge.active,Ie=ge.className,ke=ge.showTitle,Pe=ge.onClick,Ze=ge.onKeyPress,He=ge.itemRender,$e="".concat(be,"-item"),it=z()($e,"".concat($e,"-").concat(Ee),(0,Ye.Z)((0,Ye.Z)({},"".concat($e,"-active"),Re),"".concat($e,"-disabled"),!Ee),Ie),Ne=function(){Pe(Ee)},Fe=function(tt){Ze(tt,Pe,Ee)},qe=He(Ee,"page",E.createElement("a",{rel:"nofollow"},Ee));return qe?E.createElement("li",{title:ke?String(Ee):null,className:it,onClick:Ne,onKeyDown:Fe,tabIndex:0},qe):null},pe=he,ve=function(ge,be,Ee){return Ee};function de(){}function we(Ae){var ge=Number(Ae);return typeof ge=="number"&&!Number.isNaN(ge)&&isFinite(ge)&&Math.floor(ge)===ge}function Te(Ae,ge,be){var Ee=typeof Ae=="undefined"?ge:Ae;return Math.floor((be-1)/Ee)+1}var je=function(ge){var be=ge.prefixCls,Ee=be===void 0?"rc-pagination":be,Re=ge.selectPrefixCls,Ie=Re===void 0?"rc-select":Re,ke=ge.className,Pe=ge.current,Ze=ge.defaultCurrent,He=Ze===void 0?1:Ze,$e=ge.total,it=$e===void 0?0:$e,Ne=ge.pageSize,Fe=ge.defaultPageSize,qe=Fe===void 0?10:Fe,rt=ge.onChange,tt=rt===void 0?de:rt,Ve=ge.hideOnSinglePage,Ke=ge.align,ze=ge.showPrevNextJumpers,at=ze===void 0?!0:ze,Qe=ge.showQuickJumper,ut=ge.showLessItems,st=ge.showTitle,Xe=st===void 0?!0:st,Le=ge.onShowSizeChange,De=Le===void 0?de:Le,te=ge.locale,ce=te===void 0?re.Z:te,_e=ge.style,Ue=ge.totalBoundaryShowSizeChanger,xe=Ue===void 0?50:Ue,Se=ge.disabled,Oe=ge.simple,We=ge.showTotal,et=ge.showSizeChanger,nt=et===void 0?it>xe:et,dt=ge.sizeChangerRender,ct=ge.pageSizeOptions,pt=ge.itemRender,St=pt===void 0?ve:pt,yt=ge.jumpPrevIcon,xt=ge.jumpNextIcon,vt=ge.prevIcon,Tt=ge.nextIcon,bt=E.useRef(null),ft=(0,se.Z)(10,{value:Ne,defaultValue:qe}),Dt=(0,ye.Z)(ft,2),At=Dt[0],Mt=Dt[1],$t=(0,se.Z)(1,{value:Pe,defaultValue:He,postState:function(en){return Math.max(1,Math.min(en,Te(void 0,At,it)))}}),pr=(0,ye.Z)($t,2),qt=pr[0],wr=pr[1],jr=E.useState(qt),Dr=(0,ye.Z)(jr,2),Fr=Dr[0],on=Dr[1];(0,E.useEffect)(function(){on(qt)},[qt]);var wn=tt!==de,hn="current"in ge,Gr=Math.max(1,qt-(ut?3:5)),An=Math.min(Te(void 0,At,it),qt+(ut?3:5));function Rn(_r,en){var bn=_r||E.createElement("button",{type:"button","aria-label":en,className:"".concat(Ee,"-item-link")});return typeof _r=="function"&&(bn=E.createElement(_r,(0,Ce.Z)({},ge))),bn}function Tr(_r){var en=_r.target.value,bn=Te(void 0,At,it),In;return en===""?In=en:Number.isNaN(Number(en))?In=Fr:en>=bn?In=bn:In=Number(en),In}function Sr(_r){return we(_r)&&_r!==qt&&we(it)&&it>0}var sn=it>At?Qe:!1;function lr(_r){(_r.keyCode===ae.Z.UP||_r.keyCode===ae.Z.DOWN)&&_r.preventDefault()}function tr(_r){var en=Tr(_r);switch(en!==Fr&&on(en),_r.keyCode){case ae.Z.ENTER:mr(en);break;case ae.Z.UP:mr(en-1);break;case ae.Z.DOWN:mr(en+1);break;default:break}}function or(_r){mr(Tr(_r))}function Pr(_r){var en=Te(_r,At,it),bn=qt>en&&en!==0?en:qt;Mt(_r),on(bn),De==null||De(qt,_r),wr(bn),tt==null||tt(bn,_r)}function mr(_r){if(Sr(_r)&&!Se){var en=Te(void 0,At,it),bn=_r;return _r>en?bn=en:_r<1&&(bn=1),bn!==Fr&&on(bn),wr(bn),tt==null||tt(bn,At),bn}return qt}var Br=qt>1,qr=qt<Te(void 0,At,it);function tn(){Br&&mr(qt-1)}function Zr(){qr&&mr(qt+1)}function Lr(){mr(Gr)}function pn(){mr(An)}function fr(_r,en){if(_r.key==="Enter"||_r.charCode===ae.Z.ENTER||_r.keyCode===ae.Z.ENTER){for(var bn=arguments.length,In=new Array(bn>2?bn-2:0),Mn=2;Mn<bn;Mn++)In[Mn-2]=arguments[Mn];en.apply(void 0,In)}}function Vt(_r){fr(_r,tn)}function xr(_r){fr(_r,Zr)}function Kr(_r){fr(_r,Lr)}function mn(_r){fr(_r,pn)}function Ct(_r){var en=St(_r,"prev",Rn(vt,"prev page"));return E.isValidElement(en)?E.cloneElement(en,{disabled:!Br}):en}function kt(_r){var en=St(_r,"next",Rn(Tt,"next page"));return E.isValidElement(en)?E.cloneElement(en,{disabled:!qr}):en}function ir(_r){(_r.type==="click"||_r.keyCode===ae.Z.ENTER)&&mr(Fr)}var Kt=null,jt=(0,ee.Z)(ge,{aria:!0,data:!0}),nr=We&&E.createElement("li",{className:"".concat(Ee,"-total-text")},We(it,[it===0?0:(qt-1)*At+1,qt*At>it?it:qt*At])),dr=null,hr=Te(void 0,At,it);if(Ve&&it<=At)return null;var br=[],ur={rootPrefixCls:Ee,onClick:mr,onKeyPress:fr,showTitle:Xe,itemRender:St,page:-1},gr=qt-1>0?qt-1:0,Pt=qt+1<hr?qt+1:hr,Ur=Qe&&Qe.goButton,sr=(0,y.Z)(Oe)==="object"?Oe.readOnly:!Oe,yr=Ur,Or=null;Oe&&(Ur&&(typeof Ur=="boolean"?yr=E.createElement("button",{type:"button",onClick:ir,onKeyUp:ir},ce.jump_to_confirm):yr=E.createElement("span",{onClick:ir,onKeyUp:ir},Ur),yr=E.createElement("li",{title:Xe?"".concat(ce.jump_to).concat(qt,"/").concat(hr):null,className:"".concat(Ee,"-simple-pager")},yr)),Or=E.createElement("li",{title:Xe?"".concat(qt,"/").concat(hr):null,className:"".concat(Ee,"-simple-pager")},sr?Fr:E.createElement("input",{type:"text","aria-label":ce.jump_to,value:Fr,disabled:Se,onKeyDown:lr,onKeyUp:tr,onChange:tr,onBlur:or,size:3}),E.createElement("span",{className:"".concat(Ee,"-slash")},"/"),hr));var Wr=ut?1:2;if(hr<=3+Wr*2){hr||br.push(E.createElement(pe,(0,mt.Z)({},ur,{key:"noPager",page:1,className:"".concat(Ee,"-item-disabled")})));for(var an=1;an<=hr;an+=1)br.push(E.createElement(pe,(0,mt.Z)({},ur,{key:an,page:an,active:qt===an})))}else{var Ln=ut?ce.prev_3:ce.prev_5,yn=ut?ce.next_3:ce.next_5,un=St(Gr,"jump-prev",Rn(yt,"prev page")),On=St(An,"jump-next",Rn(xt,"next page"));at&&(Kt=un?E.createElement("li",{title:Xe?Ln:null,key:"prev",onClick:Lr,tabIndex:0,onKeyDown:Kr,className:z()("".concat(Ee,"-jump-prev"),(0,Ye.Z)({},"".concat(Ee,"-jump-prev-custom-icon"),!!yt))},un):null,dr=On?E.createElement("li",{title:Xe?yn:null,key:"next",onClick:pn,tabIndex:0,onKeyDown:mn,className:z()("".concat(Ee,"-jump-next"),(0,Ye.Z)({},"".concat(Ee,"-jump-next-custom-icon"),!!xt))},On):null);var zr=Math.max(1,qt-Wr),zn=Math.min(qt+Wr,hr);qt-1<=Wr&&(zn=1+Wr*2),hr-qt<=Wr&&(zr=hr-Wr*2);for(var Xn=zr;Xn<=zn;Xn+=1)br.push(E.createElement(pe,(0,mt.Z)({},ur,{key:Xn,page:Xn,active:qt===Xn})));if(qt-1>=Wr*2&&qt!==3&&(br[0]=E.cloneElement(br[0],{className:z()("".concat(Ee,"-item-after-jump-prev"),br[0].props.className)}),br.unshift(Kt)),hr-qt>=Wr*2&&qt!==hr-2){var Hn=br[br.length-1];br[br.length-1]=E.cloneElement(Hn,{className:z()("".concat(Ee,"-item-before-jump-next"),Hn.props.className)}),br.push(dr)}zr!==1&&br.unshift(E.createElement(pe,(0,mt.Z)({},ur,{key:1,page:1}))),zn!==hr&&br.push(E.createElement(pe,(0,mt.Z)({},ur,{key:hr,page:hr})))}var Gn=Ct(gr);if(Gn){var Yn=!Br||!hr;Gn=E.createElement("li",{title:Xe?ce.prev_page:null,onClick:tn,tabIndex:Yn?null:0,onKeyDown:Vt,className:z()("".concat(Ee,"-prev"),(0,Ye.Z)({},"".concat(Ee,"-disabled"),Yn)),"aria-disabled":Yn},Gn)}var Kn=kt(Pt);if(Kn){var Dn,$n;Oe?(Dn=!qr,$n=Br?0:null):(Dn=!qr||!hr,$n=Dn?null:0),Kn=E.createElement("li",{title:Xe?ce.next_page:null,onClick:Zr,tabIndex:$n,onKeyDown:xr,className:z()("".concat(Ee,"-next"),(0,Ye.Z)({},"".concat(Ee,"-disabled"),Dn)),"aria-disabled":Dn},Kn)}var Wn=z()(Ee,ke,(0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)((0,Ye.Z)({},"".concat(Ee,"-start"),Ke==="start"),"".concat(Ee,"-center"),Ke==="center"),"".concat(Ee,"-end"),Ke==="end"),"".concat(Ee,"-simple"),Oe),"".concat(Ee,"-disabled"),Se));return E.createElement("ul",(0,mt.Z)({className:Wn,style:_e,ref:bt},jt),nr,Gn,Oe?Or:br,Kn,E.createElement(ue,{locale:ce,rootPrefixCls:Ee,disabled:Se,selectPrefixCls:Ie,changeSize:Pr,pageSize:At,pageSizeOptions:ct,quickGo:sn?mr:null,goButton:yr,showSizeChanger:nt,sizeChangerRender:dt}))},Me=je},25930:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Cd:function(){return Ee}});var Ye=Ge(32855),mt=Ge(27247),y=Ge(43079),Ce=Ge(59301),ye=Ge(92310),x=Ge.n(ye),z={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},se=function(){var ke=(0,Ce.useRef)([]),Pe=(0,Ce.useRef)(null);return(0,Ce.useEffect)(function(){var Ze=Date.now(),He=!1;ke.current.forEach(function($e){if($e){He=!0;var it=$e.style;it.transitionDuration=".3s, .3s, .3s, .06s",Pe.current&&Ze-Pe.current<100&&(it.transitionDuration="0s, 0s")}}),He&&(Pe.current=Date.now())}),ke.current},ae=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(ke){var Pe=(0,mt.Z)((0,mt.Z)({},z),ke),Ze=Pe.className,He=Pe.percent,$e=Pe.prefixCls,it=Pe.strokeColor,Ne=Pe.strokeLinecap,Fe=Pe.strokeWidth,qe=Pe.style,rt=Pe.trailColor,tt=Pe.trailWidth,Ve=Pe.transition,Ke=(0,y.Z)(Pe,ae);delete Ke.gapPosition;var ze=Array.isArray(He)?He:[He],at=Array.isArray(it)?it:[it],Qe=se(),ut=Fe/2,st=100-Fe/2,Xe="M ".concat(Ne==="round"?ut:0,",").concat(ut,`
L `).concat(Ne==="round"?st:100,",").concat(ut),Le="0 0 100 ".concat(Fe),De=0;return Ce.createElement("svg",(0,Ye.Z)({className:x()("".concat($e,"-line"),Ze),viewBox:Le,preserveAspectRatio:"none",style:qe},Ke),Ce.createElement("path",{className:"".concat($e,"-line-trail"),d:Xe,strokeLinecap:Ne,stroke:rt,strokeWidth:tt||Fe,fillOpacity:"0"}),ze.map(function(te,ce){var _e=1;switch(Ne){case"round":_e=1-Fe/100;break;case"square":_e=1-Fe/2/100;break;default:_e=1;break}var Ue={strokeDasharray:"".concat(te*_e,"px, 100px"),strokeDashoffset:"-".concat(De,"px"),transition:Ve||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},xe=at[ce]||at[at.length-1];return De+=te,Ce.createElement("path",{key:ce,className:"".concat($e,"-line-path"),d:Xe,strokeLinecap:Ne,stroke:xe,strokeWidth:Fe,fillOpacity:"0",ref:function(Oe){Qe[ce]=Oe},style:Ue})}))},fe=ee,E=Ge(34666),re=Ge(11913),ne=Ge(47273),le=0,ue=(0,ne.Z)();function he(){var Ie;return ue?(Ie=le,le+=1):Ie="TEST_OR_SSR",Ie}var pe=function(Ie){var ke=Ce.useState(),Pe=(0,re.Z)(ke,2),Ze=Pe[0],He=Pe[1];return Ce.useEffect(function(){He("rc_progress_".concat(he()))},[]),Ie||Ze},ve=function(ke){var Pe=ke.bg,Ze=ke.children;return Ce.createElement("div",{style:{width:"100%",height:"100%",background:Pe}},Ze)};function de(Ie,ke){return Object.keys(Ie).map(function(Pe){var Ze=parseFloat(Pe),He="".concat(Math.floor(Ze*ke),"%");return"".concat(Ie[Pe]," ").concat(He)})}var we=Ce.forwardRef(function(Ie,ke){var Pe=Ie.prefixCls,Ze=Ie.color,He=Ie.gradientId,$e=Ie.radius,it=Ie.style,Ne=Ie.ptg,Fe=Ie.strokeLinecap,qe=Ie.strokeWidth,rt=Ie.size,tt=Ie.gapDegree,Ve=Ze&&(0,E.Z)(Ze)==="object",Ke=Ve?"#FFF":void 0,ze=rt/2,at=Ce.createElement("circle",{className:"".concat(Pe,"-circle-path"),r:$e,cx:ze,cy:ze,stroke:Ke,strokeLinecap:Fe,strokeWidth:qe,opacity:Ne===0?0:1,style:it,ref:ke});if(!Ve)return at;var Qe="".concat(He,"-conic"),ut=tt?"".concat(180+tt/2,"deg"):"0deg",st=de(Ze,(360-tt)/360),Xe=de(Ze,1),Le="conic-gradient(from ".concat(ut,", ").concat(st.join(", "),")"),De="linear-gradient(to ".concat(tt?"bottom":"top",", ").concat(Xe.join(", "),")");return Ce.createElement(Ce.Fragment,null,Ce.createElement("mask",{id:Qe},at),Ce.createElement("foreignObject",{x:0,y:0,width:rt,height:rt,mask:"url(#".concat(Qe,")")},Ce.createElement(ve,{bg:De},Ce.createElement(ve,{bg:Le}))))}),Te=we,je=100,Me=function(ke,Pe,Ze,He,$e,it,Ne,Fe,qe,rt){var tt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ve=Ze/100*360*((360-it)/360),Ke=it===0?0:{bottom:0,top:180,left:90,right:-90}[Ne],ze=(100-He)/100*Pe;qe==="round"&&He!==100&&(ze+=rt/2,ze>=Pe&&(ze=Pe-.01));var at=je/2;return{stroke:typeof Fe=="string"?Fe:void 0,strokeDasharray:"".concat(Pe,"px ").concat(ke),strokeDashoffset:ze+tt,transform:"rotate(".concat($e+Ve+Ke,"deg)"),transformOrigin:"".concat(at,"px ").concat(at,"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}},Ae=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ge(Ie){var ke=Ie!=null?Ie:[];return Array.isArray(ke)?ke:[ke]}var be=function(ke){var Pe=(0,mt.Z)((0,mt.Z)({},z),ke),Ze=Pe.id,He=Pe.prefixCls,$e=Pe.steps,it=Pe.strokeWidth,Ne=Pe.trailWidth,Fe=Pe.gapDegree,qe=Fe===void 0?0:Fe,rt=Pe.gapPosition,tt=Pe.trailColor,Ve=Pe.strokeLinecap,Ke=Pe.style,ze=Pe.className,at=Pe.strokeColor,Qe=Pe.percent,ut=(0,y.Z)(Pe,Ae),st=je/2,Xe=pe(Ze),Le="".concat(Xe,"-gradient"),De=st-it/2,te=Math.PI*2*De,ce=qe>0?90+qe/2:-90,_e=te*((360-qe)/360),Ue=(0,E.Z)($e)==="object"?$e:{count:$e,gap:2},xe=Ue.count,Se=Ue.gap,Oe=ge(Qe),We=ge(at),et=We.find(function(xt){return xt&&(0,E.Z)(xt)==="object"}),nt=et&&(0,E.Z)(et)==="object",dt=nt?"butt":Ve,ct=Me(te,_e,0,100,ce,qe,rt,tt,dt,it),pt=se(),St=function(){var vt=0;return Oe.map(function(Tt,bt){var ft=We[bt]||We[We.length-1],Dt=Me(te,_e,vt,Tt,ce,qe,rt,ft,dt,it);return vt+=Tt,Ce.createElement(Te,{key:bt,color:ft,ptg:Tt,radius:De,prefixCls:He,gradientId:Le,style:Dt,strokeLinecap:dt,strokeWidth:it,gapDegree:qe,ref:function(Mt){pt[bt]=Mt},size:je})}).reverse()},yt=function(){var vt=Math.round(xe*(Oe[0]/100)),Tt=100/xe,bt=0;return new Array(xe).fill(null).map(function(ft,Dt){var At=Dt<=vt-1?We[0]:tt,Mt=At&&(0,E.Z)(At)==="object"?"url(#".concat(Le,")"):void 0,$t=Me(te,_e,bt,Tt,ce,qe,rt,At,"butt",it,Se);return bt+=(_e-$t.strokeDashoffset+Se)*100/_e,Ce.createElement("circle",{key:Dt,className:"".concat(He,"-circle-path"),r:De,cx:st,cy:st,stroke:Mt,strokeWidth:it,opacity:1,style:$t,ref:function(qt){pt[Dt]=qt}})})};return Ce.createElement("svg",(0,Ye.Z)({className:x()("".concat(He,"-circle"),ze),viewBox:"0 0 ".concat(je," ").concat(je),style:Ke,id:Ze,role:"presentation"},ut),!xe&&Ce.createElement("circle",{className:"".concat(He,"-circle-trail"),r:De,cx:st,cy:st,stroke:tt,strokeLinecap:dt,strokeWidth:Ne||it,style:ct}),xe?yt():St())},Ee=be,Re={Line:fe,Circle:Ee}},6551:function(Ht,_t,Ge){"use strict";Ge.d(_t,{ZP:function(){return z}});var Ye=Ge(11913),mt=Ge(59301),y=Ge(47273),Ce=0,ye=(0,y.Z)();function x(){var se;return ye?(se=Ce,Ce+=1):se="TEST_OR_SSR",se}function z(se){var ae=mt.useState(),ee=(0,Ye.Z)(ae,2),fe=ee[0],E=ee[1];return mt.useEffect(function(){E("rc_select_".concat(x()))},[]),se||fe}},37463:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Ac:function(){return ft},Xo:function(){return At},Wx:function(){return $t},ZP:function(){return mn},lk:function(){return de}});var Ye=Ge(32855),mt=Ge(3300),y=Ge(74430),Ce=Ge(27247),ye=Ge(11913),x=Ge(43079),z=Ge(34666),se=Ge(18929),ae=Ge(48736),ee=Ge(59301),fe=Ge(92310),E=Ge.n(fe),re=Ge(34280),ne=Ge(49658),le=Ge(8654),ue=function(kt){var ir=kt.className,Kt=kt.customizeIcon,jt=kt.customizeIconProps,nr=kt.children,dr=kt.onMouseDown,hr=kt.onClick,br=typeof Kt=="function"?Kt(jt):Kt;return ee.createElement("span",{className:ir,onMouseDown:function(gr){gr.preventDefault(),dr==null||dr(gr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:hr,"aria-hidden":!0},br!==void 0?br:ee.createElement("span",{className:E()(ir.split(/\s+/).map(function(ur){return"".concat(ur,"-icon")}))},nr))},he=ue,pe=function(kt,ir,Kt,jt,nr){var dr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,hr=arguments.length>6?arguments[6]:void 0,br=arguments.length>7?arguments[7]:void 0,ur=ee.useMemo(function(){if((0,z.Z)(jt)==="object")return jt.clearIcon;if(nr)return nr},[jt,nr]),gr=ee.useMemo(function(){return!!(!dr&&jt&&(Kt.length||hr)&&!(br==="combobox"&&hr===""))},[jt,dr,Kt.length,hr,br]);return{allowClear:gr,clearIcon:ee.createElement(he,{className:"".concat(kt,"-clear"),onMouseDown:ir,customizeIcon:ur},"\xD7")}},ve=ee.createContext(null);function de(){return ee.useContext(ve)}function we(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,kt=ee.useState(!1),ir=(0,ye.Z)(kt,2),Kt=ir[0],jt=ir[1],nr=ee.useRef(null),dr=function(){window.clearTimeout(nr.current)};ee.useEffect(function(){return dr},[]);var hr=function(ur,gr){dr(),nr.current=window.setTimeout(function(){jt(ur),gr&&gr()},Ct)};return[Kt,hr,dr]}function Te(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,kt=ee.useRef(null),ir=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(ir.current)}},[]);function Kt(jt){(jt||kt.current===null)&&(kt.current=jt),window.clearTimeout(ir.current),ir.current=window.setTimeout(function(){kt.current=null},Ct)}return[function(){return kt.current},Kt]}function je(Ct,kt,ir,Kt){var jt=ee.useRef(null);jt.current={open:kt,triggerOpen:ir,customizedTrigger:Kt},ee.useEffect(function(){function nr(dr){var hr;if(!((hr=jt.current)!==null&&hr!==void 0&&hr.customizedTrigger)){var br=dr.target;br.shadowRoot&&dr.composed&&(br=dr.composedPath()[0]||br),jt.current.open&&Ct().filter(function(ur){return ur}).every(function(ur){return!ur.contains(br)&&ur!==br})&&jt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",nr),function(){return window.removeEventListener("mousedown",nr)}},[])}var Me=Ge(10228);function Ae(Ct){return Ct&&![Me.Z.ESC,Me.Z.SHIFT,Me.Z.BACKSPACE,Me.Z.TAB,Me.Z.WIN_KEY,Me.Z.ALT,Me.Z.META,Me.Z.WIN_KEY_RIGHT,Me.Z.CTRL,Me.Z.SEMICOLON,Me.Z.EQUALS,Me.Z.CAPS_LOCK,Me.Z.CONTEXT_MENU,Me.Z.F1,Me.Z.F2,Me.Z.F3,Me.Z.F4,Me.Z.F5,Me.Z.F6,Me.Z.F7,Me.Z.F8,Me.Z.F9,Me.Z.F10,Me.Z.F11,Me.Z.F12].includes(Ct)}var ge=Ge(26112),be=Ge(11780);function Ee(Ct,kt,ir){var Kt=(0,Ce.Z)((0,Ce.Z)({},Ct),ir?kt:{});return Object.keys(kt).forEach(function(jt){var nr=kt[jt];typeof nr=="function"&&(Kt[jt]=function(){for(var dr,hr=arguments.length,br=new Array(hr),ur=0;ur<hr;ur++)br[ur]=arguments[ur];return nr.apply(void 0,br),(dr=Ct[jt])===null||dr===void 0?void 0:dr.call.apply(dr,[Ct].concat(br))})}),Kt}var Re=Ee,Ie=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ke=function(kt,ir){var Kt=kt.prefixCls,jt=kt.id,nr=kt.inputElement,dr=kt.autoFocus,hr=kt.autoComplete,br=kt.editable,ur=kt.activeDescendantId,gr=kt.value,Pt=kt.open,Ur=kt.attrs,sr=(0,x.Z)(kt,Ie),yr=nr||ee.createElement("input",null),Or=yr,Wr=Or.ref,an=Or.props;return(0,ae.Kp)(!("maxLength"in yr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),yr=ee.cloneElement(yr,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({type:"search"},Re(sr,an,!0)),{},{id:jt,ref:(0,le.sQ)(ir,Wr),autoComplete:hr||"off",autoFocus:dr,className:E()("".concat(Kt,"-selection-search-input"),an==null?void 0:an.className),role:"combobox","aria-expanded":Pt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(jt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(jt,"_list"),"aria-activedescendant":Pt?ur:void 0},Ur),{},{value:br?gr:"",readOnly:!br,unselectable:br?null:"on",style:(0,Ce.Z)((0,Ce.Z)({},an.style),{},{opacity:br?null:0})})),yr},Pe=ee.forwardRef(ke),Ze=Pe;function He(Ct){return Array.isArray(Ct)?Ct:Ct!==void 0?[Ct]:[]}var $e=typeof window!="undefined"&&window.document&&window.document.documentElement,it=$e;function Ne(Ct){return Ct!=null}function Fe(Ct){return!Ct&&Ct!==0}function qe(Ct){return["string","number"].includes((0,z.Z)(Ct))}function rt(Ct){var kt=void 0;return Ct&&(qe(Ct.title)?kt=Ct.title.toString():qe(Ct.label)&&(kt=Ct.label.toString())),kt}function tt(Ct,kt){it?ee.useLayoutEffect(Ct,kt):ee.useEffect(Ct,kt)}function Ve(Ct){var kt;return(kt=Ct.key)!==null&&kt!==void 0?kt:Ct.value}var Ke=function(kt){kt.preventDefault(),kt.stopPropagation()},ze=function(kt){var ir=kt.id,Kt=kt.prefixCls,jt=kt.values,nr=kt.open,dr=kt.searchValue,hr=kt.autoClearSearchValue,br=kt.inputRef,ur=kt.placeholder,gr=kt.disabled,Pt=kt.mode,Ur=kt.showSearch,sr=kt.autoFocus,yr=kt.autoComplete,Or=kt.activeDescendantId,Wr=kt.tabIndex,an=kt.removeIcon,Ln=kt.maxTagCount,yn=kt.maxTagTextLength,un=kt.maxTagPlaceholder,On=un===void 0?function(zt){return"+ ".concat(zt.length," ...")}:un,zr=kt.tagRender,zn=kt.onToggleOpen,Xn=kt.onRemove,Hn=kt.onInputChange,Gn=kt.onInputPaste,Yn=kt.onInputKeyDown,Kn=kt.onInputMouseDown,Dn=kt.onInputCompositionStart,$n=kt.onInputCompositionEnd,Wn=kt.onInputBlur,_r=ee.useRef(null),en=(0,ee.useState)(0),bn=(0,ye.Z)(en,2),In=bn[0],Mn=bn[1],Nn=(0,ee.useState)(!1),ii=(0,ye.Z)(Nn,2),gt=ii[0],Lt=ii[1],Rt="".concat(Kt,"-selection"),Ft=nr||Pt==="multiple"&&hr===!1||Pt==="tags"?dr:"",Gt=Pt==="tags"||Pt==="multiple"&&hr===!1||Ur&&(nr||gt);tt(function(){Mn(_r.current.scrollWidth)},[Ft]);var It=function(Zt,er,Bt,Jt,Xt){return ee.createElement("span",{title:rt(Zt),className:E()("".concat(Rt,"-item"),(0,y.Z)({},"".concat(Rt,"-item-disabled"),Bt))},ee.createElement("span",{className:"".concat(Rt,"-item-content")},er),Jt&&ee.createElement(he,{className:"".concat(Rt,"-item-remove"),onMouseDown:Ke,onClick:Xt,customizeIcon:an},"\xD7"))},Yt=function(Zt,er,Bt,Jt,Xt,ar){var Er=function(Vr){Ke(Vr),zn(!nr)};return ee.createElement("span",{onMouseDown:Er},zr({label:er,value:Zt,disabled:Bt,closable:Jt,onClose:Xt,isMaxTag:!!ar}))},rr=function(Zt){var er=Zt.disabled,Bt=Zt.label,Jt=Zt.value,Xt=!gr&&!er,ar=Bt;if(typeof yn=="number"&&(typeof Bt=="string"||typeof Bt=="number")){var Er=String(ar);Er.length>yn&&(ar="".concat(Er.slice(0,yn),"..."))}var Cr=function(Ar){Ar&&Ar.stopPropagation(),Xn(Zt)};return typeof zr=="function"?Yt(Jt,ar,er,Xt,Cr):It(Zt,ar,er,Xt,Cr)},Qt=function(Zt){if(!jt.length)return null;var er=typeof On=="function"?On(Zt):On;return typeof zr=="function"?Yt(void 0,er,!1,!1,void 0,!0):It({title:er},er,!1)},Ot=ee.createElement("div",{className:"".concat(Rt,"-search"),style:{width:In},onFocus:function(){Lt(!0)},onBlur:function(){Lt(!1)}},ee.createElement(Ze,{ref:br,open:nr,prefixCls:Kt,id:ir,inputElement:null,disabled:gr,autoFocus:sr,autoComplete:yr,editable:Gt,activeDescendantId:Or,value:Ft,onKeyDown:Yn,onMouseDown:Kn,onChange:Hn,onPaste:Gn,onCompositionStart:Dn,onCompositionEnd:$n,onBlur:Wn,tabIndex:Wr,attrs:(0,ge.Z)(kt,!0)}),ee.createElement("span",{ref:_r,className:"".concat(Rt,"-search-mirror"),"aria-hidden":!0},Ft,"\xA0")),Ut=ee.createElement(be.Z,{prefixCls:"".concat(Rt,"-overflow"),data:jt,renderItem:rr,renderRest:Qt,suffix:Ot,itemKey:Ve,maxCount:Ln});return ee.createElement("span",{className:"".concat(Rt,"-wrap")},Ut,!jt.length&&!Ft&&ee.createElement("span",{className:"".concat(Rt,"-placeholder")},ur))},at=ze,Qe=function(kt){var ir=kt.inputElement,Kt=kt.prefixCls,jt=kt.id,nr=kt.inputRef,dr=kt.disabled,hr=kt.autoFocus,br=kt.autoComplete,ur=kt.activeDescendantId,gr=kt.mode,Pt=kt.open,Ur=kt.values,sr=kt.placeholder,yr=kt.tabIndex,Or=kt.showSearch,Wr=kt.searchValue,an=kt.activeValue,Ln=kt.maxLength,yn=kt.onInputKeyDown,un=kt.onInputMouseDown,On=kt.onInputChange,zr=kt.onInputPaste,zn=kt.onInputCompositionStart,Xn=kt.onInputCompositionEnd,Hn=kt.onInputBlur,Gn=kt.title,Yn=ee.useState(!1),Kn=(0,ye.Z)(Yn,2),Dn=Kn[0],$n=Kn[1],Wn=gr==="combobox",_r=Wn||Or,en=Ur[0],bn=Wr||"";Wn&&an&&!Dn&&(bn=an),ee.useEffect(function(){Wn&&$n(!1)},[Wn,an]);var In=gr!=="combobox"&&!Pt&&!Or?!1:!!bn,Mn=Gn===void 0?rt(en):Gn,Nn=ee.useMemo(function(){return en?null:ee.createElement("span",{className:"".concat(Kt,"-selection-placeholder"),style:In?{visibility:"hidden"}:void 0},sr)},[en,In,sr,Kt]);return ee.createElement("span",{className:"".concat(Kt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Kt,"-selection-search")},ee.createElement(Ze,{ref:nr,prefixCls:Kt,id:jt,open:Pt,inputElement:ir,disabled:dr,autoFocus:hr,autoComplete:br,editable:_r,activeDescendantId:ur,value:bn,onKeyDown:yn,onMouseDown:un,onChange:function(gt){$n(!0),On(gt)},onPaste:zr,onCompositionStart:zn,onCompositionEnd:Xn,onBlur:Hn,tabIndex:yr,attrs:(0,ge.Z)(kt,!0),maxLength:Wn?Ln:void 0})),!Wn&&en?ee.createElement("span",{className:"".concat(Kt,"-selection-item"),title:Mn,style:In?{visibility:"hidden"}:void 0},en.label):null,Nn)},ut=Qe,st=function(kt,ir){var Kt=(0,ee.useRef)(null),jt=(0,ee.useRef)(!1),nr=kt.prefixCls,dr=kt.open,hr=kt.mode,br=kt.showSearch,ur=kt.tokenWithEnter,gr=kt.disabled,Pt=kt.prefix,Ur=kt.autoClearSearchValue,sr=kt.onSearch,yr=kt.onSearchSubmit,Or=kt.onToggleOpen,Wr=kt.onInputKeyDown,an=kt.onInputBlur,Ln=kt.domRef;ee.useImperativeHandle(ir,function(){return{focus:function(Mn){Kt.current.focus(Mn)},blur:function(){Kt.current.blur()}}});var yn=Te(0),un=(0,ye.Z)(yn,2),On=un[0],zr=un[1],zn=function(Mn){var Nn=Mn.which,ii=Kt.current instanceof HTMLTextAreaElement;!ii&&dr&&(Nn===Me.Z.UP||Nn===Me.Z.DOWN)&&Mn.preventDefault(),Wr&&Wr(Mn),Nn===Me.Z.ENTER&&hr==="tags"&&!jt.current&&!dr&&(yr==null||yr(Mn.target.value)),!(ii&&!dr&&~[Me.Z.UP,Me.Z.DOWN,Me.Z.LEFT,Me.Z.RIGHT].indexOf(Nn))&&Ae(Nn)&&Or(!0)},Xn=function(){zr(!0)},Hn=(0,ee.useRef)(null),Gn=function(Mn){sr(Mn,!0,jt.current)!==!1&&Or(!0)},Yn=function(){jt.current=!0},Kn=function(Mn){jt.current=!1,hr!=="combobox"&&Gn(Mn.target.value)},Dn=function(Mn){var Nn=Mn.target.value;if(ur&&Hn.current&&/[\r\n]/.test(Hn.current)){var ii=Hn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Nn=Nn.replace(ii,Hn.current)}Hn.current=null,Gn(Nn)},$n=function(Mn){var Nn=Mn.clipboardData,ii=Nn==null?void 0:Nn.getData("text");Hn.current=ii||""},Wn=function(Mn){var Nn=Mn.target;if(Nn!==Kt.current){var ii=document.body.style.msTouchAction!==void 0;ii?setTimeout(function(){Kt.current.focus()}):Kt.current.focus()}},_r=function(Mn){var Nn=On();Mn.target!==Kt.current&&!Nn&&!(hr==="combobox"&&gr)&&Mn.preventDefault(),(hr!=="combobox"&&(!br||!Nn)||!dr)&&(dr&&Ur!==!1&&sr("",!0,!1),Or())},en={inputRef:Kt,onInputKeyDown:zn,onInputMouseDown:Xn,onInputChange:Dn,onInputPaste:$n,onInputCompositionStart:Yn,onInputCompositionEnd:Kn,onInputBlur:an},bn=hr==="multiple"||hr==="tags"?ee.createElement(at,(0,Ye.Z)({},kt,en)):ee.createElement(ut,(0,Ye.Z)({},kt,en));return ee.createElement("div",{ref:Ln,className:"".concat(nr,"-selector"),onClick:Wn,onMouseDown:_r},Pt&&ee.createElement("div",{className:"".concat(nr,"-prefix")},Pt),bn)},Xe=ee.forwardRef(st),Le=Xe,De=Ge(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ce=function(kt){var ir=kt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ir,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ir,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ir,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ir,adjustY:1},htmlRegion:"scroll"}}},_e=function(kt,ir){var Kt=kt.prefixCls,jt=kt.disabled,nr=kt.visible,dr=kt.children,hr=kt.popupElement,br=kt.animation,ur=kt.transitionName,gr=kt.dropdownStyle,Pt=kt.dropdownClassName,Ur=kt.direction,sr=Ur===void 0?"ltr":Ur,yr=kt.placement,Or=kt.builtinPlacements,Wr=kt.dropdownMatchSelectWidth,an=kt.dropdownRender,Ln=kt.dropdownAlign,yn=kt.getPopupContainer,un=kt.empty,On=kt.getTriggerDOMNode,zr=kt.onPopupVisibleChange,zn=kt.onPopupMouseEnter,Xn=(0,x.Z)(kt,te),Hn="".concat(Kt,"-dropdown"),Gn=hr;an&&(Gn=an(hr));var Yn=ee.useMemo(function(){return Or||ce(Wr)},[Or,Wr]),Kn=br?"".concat(Hn,"-").concat(br):ur,Dn=typeof Wr=="number",$n=ee.useMemo(function(){return Dn?null:Wr===!1?"minWidth":"width"},[Wr,Dn]),Wn=gr;Dn&&(Wn=(0,Ce.Z)((0,Ce.Z)({},Wn),{},{width:Wr}));var _r=ee.useRef(null);return ee.useImperativeHandle(ir,function(){return{getPopupElement:function(){var bn;return(bn=_r.current)===null||bn===void 0?void 0:bn.popupElement}}}),ee.createElement(De.Z,(0,Ye.Z)({},Xn,{showAction:zr?["click"]:[],hideAction:zr?["click"]:[],popupPlacement:yr||(sr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:Hn,popupTransitionName:Kn,popup:ee.createElement("div",{onMouseEnter:zn},Gn),ref:_r,stretch:$n,popupAlign:Ln,popupVisible:nr,getPopupContainer:yn,popupClassName:E()(Pt,(0,y.Z)({},"".concat(Hn,"-empty"),un)),popupStyle:Wn,getTriggerDOMNode:On,onPopupVisibleChange:zr}),dr)},Ue=ee.forwardRef(_e),xe=Ue,Se=Ge(40954);function Oe(Ct,kt){var ir=Ct.key,Kt;return"value"in Ct&&(Kt=Ct.value),ir!=null?ir:Kt!==void 0?Kt:"rc-index-key-".concat(kt)}function We(Ct){return typeof Ct!="undefined"&&!Number.isNaN(Ct)}function et(Ct,kt){var ir=Ct||{},Kt=ir.label,jt=ir.value,nr=ir.options,dr=ir.groupLabel,hr=Kt||(kt?"children":"label");return{label:hr,value:jt||"value",options:nr||"options",groupLabel:dr||hr}}function nt(Ct){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ir=kt.fieldNames,Kt=kt.childrenAsData,jt=[],nr=et(ir,!1),dr=nr.label,hr=nr.value,br=nr.options,ur=nr.groupLabel;function gr(Pt,Ur){Array.isArray(Pt)&&Pt.forEach(function(sr){if(Ur||!(br in sr)){var yr=sr[hr];jt.push({key:Oe(sr,jt.length),groupOption:Ur,data:sr,label:sr[dr],value:yr})}else{var Or=sr[ur];Or===void 0&&Kt&&(Or=sr.label),jt.push({key:Oe(sr,jt.length),group:!0,data:sr,label:Or}),gr(sr[br],!0)}})}return gr(Ct,!1),jt}function dt(Ct){var kt=(0,Ce.Z)({},Ct);return"props"in kt||Object.defineProperty(kt,"props",{get:function(){return(0,ae.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),kt}}),kt}var ct=function(kt,ir,Kt){if(!ir||!ir.length)return null;var jt=!1,nr=function hr(br,ur){var gr=(0,Se.Z)(ur),Pt=gr[0],Ur=gr.slice(1);if(!Pt)return[br];var sr=br.split(Pt);return jt=jt||sr.length>1,sr.reduce(function(yr,Or){return[].concat((0,mt.Z)(yr),(0,mt.Z)(hr(Or,Ur)))},[]).filter(Boolean)},dr=nr(kt,ir);return jt?typeof Kt!="undefined"?dr.slice(0,Kt):dr:null},pt=ee.createContext(null),St=pt;function yt(Ct){var kt=Ct.visible,ir=Ct.values;if(!kt)return null;var Kt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ir.slice(0,Kt).map(function(jt){var nr=jt.label,dr=jt.value;return["number","string"].includes((0,z.Z)(nr))?nr:dr}).join(", ")),ir.length>Kt?", ...":null)}var xt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],vt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Tt=function(kt){return kt==="tags"||kt==="multiple"},bt=ee.forwardRef(function(Ct,kt){var ir,Kt=Ct.id,jt=Ct.prefixCls,nr=Ct.className,dr=Ct.showSearch,hr=Ct.tagRender,br=Ct.direction,ur=Ct.omitDomProps,gr=Ct.displayValues,Pt=Ct.onDisplayValuesChange,Ur=Ct.emptyOptions,sr=Ct.notFoundContent,yr=sr===void 0?"Not Found":sr,Or=Ct.onClear,Wr=Ct.mode,an=Ct.disabled,Ln=Ct.loading,yn=Ct.getInputElement,un=Ct.getRawInputElement,On=Ct.open,zr=Ct.defaultOpen,zn=Ct.onDropdownVisibleChange,Xn=Ct.activeValue,Hn=Ct.onActiveValueChange,Gn=Ct.activeDescendantId,Yn=Ct.searchValue,Kn=Ct.autoClearSearchValue,Dn=Ct.onSearch,$n=Ct.onSearchSplit,Wn=Ct.tokenSeparators,_r=Ct.allowClear,en=Ct.prefix,bn=Ct.suffixIcon,In=Ct.clearIcon,Mn=Ct.OptionList,Nn=Ct.animation,ii=Ct.transitionName,gt=Ct.dropdownStyle,Lt=Ct.dropdownClassName,Rt=Ct.dropdownMatchSelectWidth,Ft=Ct.dropdownRender,Gt=Ct.dropdownAlign,It=Ct.placement,Yt=Ct.builtinPlacements,rr=Ct.getPopupContainer,Qt=Ct.showAction,Ot=Qt===void 0?[]:Qt,Ut=Ct.onFocus,zt=Ct.onBlur,Zt=Ct.onKeyUp,er=Ct.onKeyDown,Bt=Ct.onMouseDown,Jt=(0,x.Z)(Ct,xt),Xt=Tt(Wr),ar=(dr!==void 0?dr:Xt)||Wr==="combobox",Er=(0,Ce.Z)({},Jt);vt.forEach(function(Un){delete Er[Un]}),ur==null||ur.forEach(function(Un){delete Er[Un]});var Cr=ee.useState(!1),Vr=(0,ye.Z)(Cr,2),Ar=Vr[0],$r=Vr[1];ee.useEffect(function(){$r((0,ne.Z)())},[]);var rn=ee.useRef(null),cn=ee.useRef(null),nn=ee.useRef(null),xn=ee.useRef(null),kn=ee.useRef(null),vn=ee.useRef(!1),Sn=we(),Jr=(0,ye.Z)(Sn,3),Ir=Jr[0],Yr=Jr[1],Nr=Jr[2];ee.useImperativeHandle(kt,function(){var Un,_n;return{focus:(Un=xn.current)===null||Un===void 0?void 0:Un.focus,blur:(_n=xn.current)===null||_n===void 0?void 0:_n.blur,scrollTo:function(pi){var wi;return(wi=kn.current)===null||wi===void 0?void 0:wi.scrollTo(pi)},nativeElement:rn.current||cn.current}});var Tn=ee.useMemo(function(){var Un;if(Wr!=="combobox")return Yn;var _n=(Un=gr[0])===null||Un===void 0?void 0:Un.value;return typeof _n=="string"||typeof _n=="number"?String(_n):""},[Yn,Wr,gr]),Cn=Wr==="combobox"&&typeof yn=="function"&&yn()||null,jn=typeof un=="function"&&un(),Jn=(0,le.x1)(cn,jn==null||(ir=jn.props)===null||ir===void 0?void 0:ir.ref),Si=ee.useState(!1),oi=(0,ye.Z)(Si,2),Gi=oi[0],ji=oi[1];(0,re.Z)(function(){ji(!0)},[]);var Qn=(0,se.Z)(!1,{defaultValue:zr,value:On}),ei=(0,ye.Z)(Qn,2),ti=ei[0],ki=ei[1],ai=Gi?ti:!1,ui=!yr&&Ur;(an||ui&&ai&&Wr==="combobox")&&(ai=!1);var si=ui?!1:ai,Xr=ee.useCallback(function(Un){var _n=Un!==void 0?Un:!ai;an||(ki(_n),ai!==_n&&(zn==null||zn(_n)))},[an,ai,ki,zn]),fn=ee.useMemo(function(){return(Wn||[]).some(function(Un){return[`
`,`\r
`].includes(Un)})},[Wn]),dn=ee.useContext(St)||{},gn=dn.maxCount,Zn=dn.rawValues,qn=function(_n,gi,pi){if(!(Xt&&We(gn)&&(Zn==null?void 0:Zn.size)>=gn)){var wi=!0,Ti=_n;Hn==null||Hn(null);var la=ct(_n,Wn,We(gn)?gn-Zn.size:void 0),ia=pi?null:la;return Wr!=="combobox"&&ia&&(Ti="",$n==null||$n(ia),Xr(!1),wi=!1),Dn&&Tn!==Ti&&Dn(Ti,{source:gi?"typing":"effect"}),wi}},Zi=function(_n){!_n||!_n.trim()||Dn(_n,{source:"submit"})};ee.useEffect(function(){!ai&&!Xt&&Wr!=="combobox"&&qn("",!1,!1)},[ai]),ee.useEffect(function(){ti&&an&&ki(!1),an&&!vn.current&&Yr(!1)},[an]);var di=Te(),fi=(0,ye.Z)(di,2),Pn=fi[0],bi=fi[1],Ki=ee.useRef(!1),ri=function(_n){var gi=Pn(),pi=_n.key,wi=pi==="Enter";if(wi&&(Wr!=="combobox"&&_n.preventDefault(),ai||Xr(!0)),bi(!!Tn),pi==="Backspace"&&!gi&&Xt&&!Tn&&gr.length){for(var Ti=(0,mt.Z)(gr),la=null,ia=Ti.length-1;ia>=0;ia-=1){var va=Ti[ia];if(!va.disabled){Ti.splice(ia,1),la=va;break}}la&&Pt(Ti,{type:"remove",values:[la]})}for(var mi=arguments.length,Pi=new Array(mi>1?mi-1:0),Ji=1;Ji<mi;Ji++)Pi[Ji-1]=arguments[Ji];if(ai&&(!wi||!Ki.current)){var ua;wi&&(Ki.current=!0),(ua=kn.current)===null||ua===void 0||ua.onKeyDown.apply(ua,[_n].concat(Pi))}er==null||er.apply(void 0,[_n].concat(Pi))},sa=function(_n){for(var gi=arguments.length,pi=new Array(gi>1?gi-1:0),wi=1;wi<gi;wi++)pi[wi-1]=arguments[wi];if(ai){var Ti;(Ti=kn.current)===null||Ti===void 0||Ti.onKeyUp.apply(Ti,[_n].concat(pi))}_n.key==="Enter"&&(Ki.current=!1),Zt==null||Zt.apply(void 0,[_n].concat(pi))},Vi=function(_n){var gi=gr.filter(function(pi){return pi!==_n});Pt(gi,{type:"remove",values:[_n]})},$i=function(){Ki.current=!1},vi=ee.useRef(!1),ro=function(){Yr(!0),an||(Ut&&!vi.current&&Ut.apply(void 0,arguments),Ot.includes("focus")&&Xr(!0)),vi.current=!0},Ya=function(){vn.current=!0,Yr(!1,function(){vi.current=!1,vn.current=!1,Xr(!1)}),!an&&(Tn&&(Wr==="tags"?Dn(Tn,{source:"submit"}):Wr==="multiple"&&Dn("",{source:"blur"})),zt&&zt.apply(void 0,arguments))},pa=[];ee.useEffect(function(){return function(){pa.forEach(function(Un){return clearTimeout(Un)}),pa.splice(0,pa.length)}},[]);var ma=function(_n){var gi,pi=_n.target,wi=(gi=nn.current)===null||gi===void 0?void 0:gi.getPopupElement();if(wi&&wi.contains(pi)){var Ti=setTimeout(function(){var mi=pa.indexOf(Ti);if(mi!==-1&&pa.splice(mi,1),Nr(),!Ar&&!wi.contains(document.activeElement)){var Pi;(Pi=xn.current)===null||Pi===void 0||Pi.focus()}});pa.push(Ti)}for(var la=arguments.length,ia=new Array(la>1?la-1:0),va=1;va<la;va++)ia[va-1]=arguments[va];Bt==null||Bt.apply(void 0,[_n].concat(ia))},na=ee.useState({}),Ca=(0,ye.Z)(na,2),no=Ca[1];function io(){no({})}var ao;jn&&(ao=function(_n){Xr(_n)}),je(function(){var Un;return[rn.current,(Un=nn.current)===null||Un===void 0?void 0:Un.getPopupElement()]},si,Xr,!!jn);var La=ee.useMemo(function(){return(0,Ce.Z)((0,Ce.Z)({},Ct),{},{notFoundContent:yr,open:ai,triggerOpen:si,id:Kt,showSearch:ar,multiple:Xt,toggleOpen:Xr})},[Ct,yr,si,ai,Kt,ar,Xt,Xr]),$a=!!bn||Ln,Ba;$a&&(Ba=ee.createElement(he,{className:E()("".concat(jt,"-arrow"),(0,y.Z)({},"".concat(jt,"-arrow-loading"),Ln)),customizeIcon:bn,customizeIconProps:{loading:Ln,searchValue:Tn,open:ai,focused:Ir,showSearch:ar}}));var Ea=function(){var _n;Or==null||Or(),(_n=xn.current)===null||_n===void 0||_n.focus(),Pt([],{type:"clear",values:gr}),qn("",!1,!1)},Ja=pe(jt,Ea,gr,_r,In,an,Tn,Wr),oo=Ja.allowClear,Fa=Ja.clearIcon,ka=ee.createElement(Mn,{ref:kn}),Ta=E()(jt,nr,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(jt,"-focused"),Ir),"".concat(jt,"-multiple"),Xt),"".concat(jt,"-single"),!Xt),"".concat(jt,"-allow-clear"),_r),"".concat(jt,"-show-arrow"),$a),"".concat(jt,"-disabled"),an),"".concat(jt,"-loading"),Ln),"".concat(jt,"-open"),ai),"".concat(jt,"-customize-input"),Cn),"".concat(jt,"-show-search"),ar)),Fi=ee.createElement(xe,{ref:nn,disabled:an,prefixCls:jt,visible:si,popupElement:ka,animation:Nn,transitionName:ii,dropdownStyle:gt,dropdownClassName:Lt,direction:br,dropdownMatchSelectWidth:Rt,dropdownRender:Ft,dropdownAlign:Gt,placement:It,builtinPlacements:Yt,getPopupContainer:rr,empty:Ur,getTriggerDOMNode:function(_n){return cn.current||_n},onPopupVisibleChange:ao,onPopupMouseEnter:io},jn?ee.cloneElement(jn,{ref:Jn}):ee.createElement(Le,(0,Ye.Z)({},Ct,{domRef:cn,prefixCls:jt,inputElement:Cn,ref:xn,id:Kt,prefix:en,showSearch:ar,autoClearSearchValue:Kn,mode:Wr,activeDescendantId:Gn,tagRender:hr,values:gr,open:ai,onToggleOpen:Xr,activeValue:Xn,searchValue:Tn,onSearch:qn,onSearchSubmit:Zi,onRemove:Vi,tokenWithEnter:fn,onInputBlur:$i}))),hi;return jn?hi=Fi:hi=ee.createElement("div",(0,Ye.Z)({className:Ta},Er,{ref:rn,onMouseDown:ma,onKeyDown:ri,onKeyUp:sa,onFocus:ro,onBlur:Ya}),ee.createElement(yt,{visible:Ir&&!ai,values:gr}),Fi,Ba,oo&&Fa),ee.createElement(ve.Provider,{value:La},hi)}),ft=bt,Dt=function(){return null};Dt.isSelectOptGroup=!0;var At=Dt,Mt=function(){return null};Mt.isSelectOption=!0;var $t=Mt,pr=Ge(80547),qt=Ge(2738),wr=Ge(6790);function jr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Dr=["disabled","title","children","style","className"];function Fr(Ct){return typeof Ct=="string"||typeof Ct=="number"}var on=function(kt,ir){var Kt=de(),jt=Kt.prefixCls,nr=Kt.id,dr=Kt.open,hr=Kt.multiple,br=Kt.mode,ur=Kt.searchValue,gr=Kt.toggleOpen,Pt=Kt.notFoundContent,Ur=Kt.onPopupScroll,sr=ee.useContext(St),yr=sr.maxCount,Or=sr.flattenOptions,Wr=sr.onActiveValue,an=sr.defaultActiveFirstOption,Ln=sr.onSelect,yn=sr.menuItemSelectedIcon,un=sr.rawValues,On=sr.fieldNames,zr=sr.virtual,zn=sr.direction,Xn=sr.listHeight,Hn=sr.listItemHeight,Gn=sr.optionRender,Yn="".concat(jt,"-item"),Kn=(0,pr.Z)(function(){return Or},[dr,Or],function(Qt,Ot){return Ot[0]&&Qt[1]!==Ot[1]}),Dn=ee.useRef(null),$n=ee.useMemo(function(){return hr&&We(yr)&&(un==null?void 0:un.size)>=yr},[hr,yr,un==null?void 0:un.size]),Wn=function(Ot){Ot.preventDefault()},_r=function(Ot){var Ut;(Ut=Dn.current)===null||Ut===void 0||Ut.scrollTo(typeof Ot=="number"?{index:Ot}:Ot)},en=ee.useCallback(function(Qt){return br==="combobox"?!1:un.has(Qt)},[br,(0,mt.Z)(un).toString(),un.size]),bn=function(Ot){for(var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,zt=Kn.length,Zt=0;Zt<zt;Zt+=1){var er=(Ot+Zt*Ut+zt)%zt,Bt=Kn[er]||{},Jt=Bt.group,Xt=Bt.data;if(!Jt&&!(Xt!=null&&Xt.disabled)&&(en(Xt.value)||!$n))return er}return-1},In=ee.useState(function(){return bn(0)}),Mn=(0,ye.Z)(In,2),Nn=Mn[0],ii=Mn[1],gt=function(Ot){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ii(Ot);var zt={source:Ut?"keyboard":"mouse"},Zt=Kn[Ot];if(!Zt){Wr(null,-1,zt);return}Wr(Zt.value,Ot,zt)};(0,ee.useEffect)(function(){gt(an!==!1?bn(0):-1)},[Kn.length,ur]);var Lt=ee.useCallback(function(Qt){return br==="combobox"?String(Qt).toLowerCase()===ur.toLowerCase():un.has(Qt)},[br,ur,(0,mt.Z)(un).toString(),un.size]);(0,ee.useEffect)(function(){var Qt=setTimeout(function(){if(!hr&&dr&&un.size===1){var Ut=Array.from(un)[0],zt=Kn.findIndex(function(Zt){var er=Zt.data;return ur?String(er.value).startsWith(ur):er.value===Ut});zt!==-1&&(gt(zt),_r(zt))}});if(dr){var Ot;(Ot=Dn.current)===null||Ot===void 0||Ot.scrollTo(void 0)}return function(){return clearTimeout(Qt)}},[dr,ur]);var Rt=function(Ot){Ot!==void 0&&Ln(Ot,{selected:!un.has(Ot)}),hr||gr(!1)};if(ee.useImperativeHandle(ir,function(){return{onKeyDown:function(Ot){var Ut=Ot.which,zt=Ot.ctrlKey;switch(Ut){case Me.Z.N:case Me.Z.P:case Me.Z.UP:case Me.Z.DOWN:{var Zt=0;if(Ut===Me.Z.UP?Zt=-1:Ut===Me.Z.DOWN?Zt=1:jr()&&zt&&(Ut===Me.Z.N?Zt=1:Ut===Me.Z.P&&(Zt=-1)),Zt!==0){var er=bn(Nn+Zt,Zt);_r(er),gt(er,!0)}break}case Me.Z.TAB:case Me.Z.ENTER:{var Bt,Jt=Kn[Nn];Jt&&!(Jt!=null&&(Bt=Jt.data)!==null&&Bt!==void 0&&Bt.disabled)&&!$n?Rt(Jt.value):Rt(void 0),dr&&Ot.preventDefault();break}case Me.Z.ESC:gr(!1),dr&&Ot.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ot){_r(Ot)}}}),Kn.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(nr,"_list"),className:"".concat(Yn,"-empty"),onMouseDown:Wn},Pt);var Ft=Object.keys(On).map(function(Qt){return On[Qt]}),Gt=function(Ot){return Ot.label};function It(Qt,Ot){var Ut=Qt.group;return{role:Ut?"presentation":"option",id:"".concat(nr,"_list_").concat(Ot)}}var Yt=function(Ot){var Ut=Kn[Ot];if(!Ut)return null;var zt=Ut.data||{},Zt=zt.value,er=Ut.group,Bt=(0,ge.Z)(zt,!0),Jt=Gt(Ut);return Ut?ee.createElement("div",(0,Ye.Z)({"aria-label":typeof Jt=="string"&&!er?Jt:null},Bt,{key:Ot},It(Ut,Ot),{"aria-selected":Lt(Zt)}),Zt):null},rr={role:"listbox",id:"".concat(nr,"_list")};return ee.createElement(ee.Fragment,null,zr&&ee.createElement("div",(0,Ye.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),Yt(Nn-1),Yt(Nn),Yt(Nn+1)),ee.createElement(wr.Z,{itemKey:"key",ref:Dn,data:Kn,height:Xn,itemHeight:Hn,fullHeight:!1,onMouseDown:Wn,onScroll:Ur,virtual:zr,direction:zn,innerProps:zr?null:rr},function(Qt,Ot){var Ut=Qt.group,zt=Qt.groupOption,Zt=Qt.data,er=Qt.label,Bt=Qt.value,Jt=Zt.key;if(Ut){var Xt,ar=(Xt=Zt.title)!==null&&Xt!==void 0?Xt:Fr(er)?er.toString():void 0;return ee.createElement("div",{className:E()(Yn,"".concat(Yn,"-group"),Zt.className),title:ar},er!==void 0?er:Jt)}var Er=Zt.disabled,Cr=Zt.title,Vr=Zt.children,Ar=Zt.style,$r=Zt.className,rn=(0,x.Z)(Zt,Dr),cn=(0,qt.Z)(rn,Ft),nn=en(Bt),xn=Er||!nn&&$n,kn="".concat(Yn,"-option"),vn=E()(Yn,kn,$r,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(kn,"-grouped"),zt),"".concat(kn,"-active"),Nn===Ot&&!xn),"".concat(kn,"-disabled"),xn),"".concat(kn,"-selected"),nn)),Sn=Gt(Qt),Jr=!yn||typeof yn=="function"||nn,Ir=typeof Sn=="number"?Sn:Sn||Bt,Yr=Fr(Ir)?Ir.toString():void 0;return Cr!==void 0&&(Yr=Cr),ee.createElement("div",(0,Ye.Z)({},(0,ge.Z)(cn),zr?{}:It(Qt,Ot),{"aria-selected":Lt(Bt),className:vn,title:Yr,onMouseMove:function(){Nn===Ot||xn||gt(Ot)},onClick:function(){xn||Rt(Bt)},style:Ar}),ee.createElement("div",{className:"".concat(kn,"-content")},typeof Gn=="function"?Gn(Qt,{index:Ot}):Ir),ee.isValidElement(yn)||nn,Jr&&ee.createElement(he,{className:"".concat(Yn,"-option-state"),customizeIcon:yn,customizeIconProps:{value:Bt,disabled:xn,isSelected:nn}},nn?"\u2713":null))}))},wn=ee.forwardRef(on),hn=wn,Gr=function(Ct,kt){var ir=ee.useRef({values:new Map,options:new Map}),Kt=ee.useMemo(function(){var nr=ir.current,dr=nr.values,hr=nr.options,br=Ct.map(function(Pt){if(Pt.label===void 0){var Ur;return(0,Ce.Z)((0,Ce.Z)({},Pt),{},{label:(Ur=dr.get(Pt.value))===null||Ur===void 0?void 0:Ur.label})}return Pt}),ur=new Map,gr=new Map;return br.forEach(function(Pt){ur.set(Pt.value,Pt),gr.set(Pt.value,kt.get(Pt.value)||hr.get(Pt.value))}),ir.current.values=ur,ir.current.options=gr,br},[Ct,kt]),jt=ee.useCallback(function(nr){return kt.get(nr)||ir.current.options.get(nr)},[kt]);return[Kt,jt]};function An(Ct,kt){return He(Ct).join("").toUpperCase().includes(kt)}var Rn=function(Ct,kt,ir,Kt,jt){return ee.useMemo(function(){if(!ir||Kt===!1)return Ct;var nr=kt.options,dr=kt.label,hr=kt.value,br=[],ur=typeof Kt=="function",gr=ir.toUpperCase(),Pt=ur?Kt:function(sr,yr){return jt?An(yr[jt],gr):yr[nr]?An(yr[dr!=="children"?dr:"label"],gr):An(yr[hr],gr)},Ur=ur?function(sr){return dt(sr)}:function(sr){return sr};return Ct.forEach(function(sr){if(sr[nr]){var yr=Pt(ir,Ur(sr));if(yr)br.push(sr);else{var Or=sr[nr].filter(function(Wr){return Pt(ir,Ur(Wr))});Or.length&&br.push((0,Ce.Z)((0,Ce.Z)({},sr),{},(0,y.Z)({},nr,Or)))}return}Pt(ir,Ur(sr))&&br.push(sr)}),br},[Ct,Kt,jt,ir,kt])},Tr=Ge(6551),Sr=Ge(11592),sn=["children","value"],lr=["children"];function tr(Ct){var kt=Ct,ir=kt.key,Kt=kt.props,jt=Kt.children,nr=Kt.value,dr=(0,x.Z)(Kt,sn);return(0,Ce.Z)({key:ir,value:nr!==void 0?nr:ir,children:jt},dr)}function or(Ct){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Sr.Z)(Ct).map(function(ir,Kt){if(!ee.isValidElement(ir)||!ir.type)return null;var jt=ir,nr=jt.type.isSelectOptGroup,dr=jt.key,hr=jt.props,br=hr.children,ur=(0,x.Z)(hr,lr);return kt||!nr?tr(ir):(0,Ce.Z)((0,Ce.Z)({key:"__RC_SELECT_GRP__".concat(dr===null?Kt:dr,"__"),label:dr},ur),{},{options:or(br)})}).filter(function(ir){return ir})}var Pr=function(kt,ir,Kt,jt,nr){return ee.useMemo(function(){var dr=kt,hr=!kt;hr&&(dr=or(ir));var br=new Map,ur=new Map,gr=function(sr,yr,Or){Or&&typeof Or=="string"&&sr.set(yr[Or],yr)},Pt=function Ur(sr){for(var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Or=0;Or<sr.length;Or+=1){var Wr=sr[Or];!Wr[Kt.options]||yr?(br.set(Wr[Kt.value],Wr),gr(ur,Wr,Kt.label),gr(ur,Wr,jt),gr(ur,Wr,nr)):Ur(Wr[Kt.options],!0)}};return Pt(dr),{options:dr,valueOptions:br,labelOptions:ur}},[kt,ir,Kt,jt,nr])},mr=Pr;function Br(Ct){var kt=ee.useRef();kt.current=Ct;var ir=ee.useCallback(function(){return kt.current.apply(kt,arguments)},[]);return ir}function qr(Ct){var kt=Ct.mode,ir=Ct.options,Kt=Ct.children,jt=Ct.backfill,nr=Ct.allowClear,dr=Ct.placeholder,hr=Ct.getInputElement,br=Ct.showSearch,ur=Ct.onSearch,gr=Ct.defaultOpen,Pt=Ct.autoFocus,Ur=Ct.labelInValue,sr=Ct.value,yr=Ct.inputValue,Or=Ct.optionLabelProp,Wr=isMultiple(kt),an=br!==void 0?br:Wr||kt==="combobox",Ln=ir||convertChildrenToData(Kt);if(warning(kt!=="tags"||Ln.every(function(zr){return!zr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),kt==="tags"||kt==="combobox"){var yn=Ln.some(function(zr){return zr.options?zr.options.some(function(zn){return typeof("value"in zn?zn.value:zn.key)=="number"}):typeof("value"in zr?zr.value:zr.key)=="number"});warning(!yn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(kt!=="combobox"||!Or,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(kt==="combobox"||!jt,"`backfill` only works with `combobox` mode."),warning(kt==="combobox"||!hr,"`getInputElement` only work with `combobox` mode."),noteOnce(kt!=="combobox"||!hr||!nr||!dr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ur&&!an&&kt!=="combobox"&&kt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!gr||Pt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),sr!=null){var un=toArray(sr);warning(!Ur||un.every(function(zr){return _typeof(zr)==="object"&&("key"in zr||"value"in zr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Wr||Array.isArray(sr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Kt){var On=null;toNodeArray(Kt).some(function(zr){if(!React.isValidElement(zr)||!zr.type)return!1;var zn=zr,Xn=zn.type;if(Xn.isSelectOption)return!1;if(Xn.isSelectOptGroup){var Hn=toNodeArray(zr.props.children).every(function(Gn){return!React.isValidElement(Gn)||!zr.type||Gn.type.isSelectOption?!0:(On=Gn.type,!1)});return!Hn}return On=Xn,!0}),On&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(On.displayName||On.name||On,"`.")),warning(yr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function tn(Ct,kt){if(Ct){var ir=function Kt(jt){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=0;dr<jt.length;dr++){var hr=jt[dr];if(hr[kt==null?void 0:kt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!nr&&Array.isArray(hr[kt==null?void 0:kt.options])&&Kt(hr[kt==null?void 0:kt.options],!0))break}};ir(Ct)}}var Zr=null,Lr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],pn=["inputValue"];function fr(Ct){return!Ct||(0,z.Z)(Ct)!=="object"}var Vt=ee.forwardRef(function(Ct,kt){var ir=Ct.id,Kt=Ct.mode,jt=Ct.prefixCls,nr=jt===void 0?"rc-select":jt,dr=Ct.backfill,hr=Ct.fieldNames,br=Ct.inputValue,ur=Ct.searchValue,gr=Ct.onSearch,Pt=Ct.autoClearSearchValue,Ur=Pt===void 0?!0:Pt,sr=Ct.onSelect,yr=Ct.onDeselect,Or=Ct.dropdownMatchSelectWidth,Wr=Or===void 0?!0:Or,an=Ct.filterOption,Ln=Ct.filterSort,yn=Ct.optionFilterProp,un=Ct.optionLabelProp,On=Ct.options,zr=Ct.optionRender,zn=Ct.children,Xn=Ct.defaultActiveFirstOption,Hn=Ct.menuItemSelectedIcon,Gn=Ct.virtual,Yn=Ct.direction,Kn=Ct.listHeight,Dn=Kn===void 0?200:Kn,$n=Ct.listItemHeight,Wn=$n===void 0?20:$n,_r=Ct.labelRender,en=Ct.value,bn=Ct.defaultValue,In=Ct.labelInValue,Mn=Ct.onChange,Nn=Ct.maxCount,ii=(0,x.Z)(Ct,Lr),gt=(0,Tr.ZP)(ir),Lt=Tt(Kt),Rt=!!(!On&&zn),Ft=ee.useMemo(function(){return an===void 0&&Kt==="combobox"?!1:an},[an,Kt]),Gt=ee.useMemo(function(){return et(hr,Rt)},[JSON.stringify(hr),Rt]),It=(0,se.Z)("",{value:ur!==void 0?ur:br,postState:function(fn){return fn||""}}),Yt=(0,ye.Z)(It,2),rr=Yt[0],Qt=Yt[1],Ot=mr(On,zn,Gt,yn,un),Ut=Ot.valueOptions,zt=Ot.labelOptions,Zt=Ot.options,er=ee.useCallback(function(Xr){var fn=He(Xr);return fn.map(function(dn){var gn,Zn,qn,Zi,di;if(fr(dn))gn=dn;else{var fi;qn=dn.key,Zn=dn.label,gn=(fi=dn.value)!==null&&fi!==void 0?fi:qn}var Pn=Ut.get(gn);if(Pn){var bi;if(Zn===void 0&&(Zn=Pn==null?void 0:Pn[un||Gt.label]),qn===void 0&&(qn=(bi=Pn==null?void 0:Pn.key)!==null&&bi!==void 0?bi:gn),Zi=Pn==null?void 0:Pn.disabled,di=Pn==null?void 0:Pn.title,0)var Ki}return{label:Zn,value:gn,key:qn,disabled:Zi,title:di}})},[Gt,un,Ut]),Bt=(0,se.Z)(bn,{value:en}),Jt=(0,ye.Z)(Bt,2),Xt=Jt[0],ar=Jt[1],Er=ee.useMemo(function(){var Xr,fn=Lt&&Xt===null?[]:Xt,dn=er(fn);return Kt==="combobox"&&Fe((Xr=dn[0])===null||Xr===void 0?void 0:Xr.value)?[]:dn},[Xt,er,Kt,Lt]),Cr=Gr(Er,Ut),Vr=(0,ye.Z)(Cr,2),Ar=Vr[0],$r=Vr[1],rn=ee.useMemo(function(){if(!Kt&&Ar.length===1){var Xr=Ar[0];if(Xr.value===null&&(Xr.label===null||Xr.label===void 0))return[]}return Ar.map(function(fn){var dn;return(0,Ce.Z)((0,Ce.Z)({},fn),{},{label:(dn=typeof _r=="function"?_r(fn):fn.label)!==null&&dn!==void 0?dn:fn.value})})},[Kt,Ar,_r]),cn=ee.useMemo(function(){return new Set(Ar.map(function(Xr){return Xr.value}))},[Ar]);ee.useEffect(function(){if(Kt==="combobox"){var Xr,fn=(Xr=Ar[0])===null||Xr===void 0?void 0:Xr.value;Qt(Ne(fn)?String(fn):"")}},[Ar]);var nn=Br(function(Xr,fn){var dn=fn!=null?fn:Xr;return(0,y.Z)((0,y.Z)({},Gt.value,Xr),Gt.label,dn)}),xn=ee.useMemo(function(){if(Kt!=="tags")return Zt;var Xr=(0,mt.Z)(Zt),fn=function(gn){return Ut.has(gn)};return(0,mt.Z)(Ar).sort(function(dn,gn){return dn.value<gn.value?-1:1}).forEach(function(dn){var gn=dn.value;fn(gn)||Xr.push(nn(gn,dn.label))}),Xr},[nn,Zt,Ut,Ar,Kt]),kn=Rn(xn,Gt,rr,Ft,yn),vn=ee.useMemo(function(){return Kt!=="tags"||!rr||kn.some(function(Xr){return Xr[yn||"value"]===rr})||kn.some(function(Xr){return Xr[Gt.value]===rr})?kn:[nn(rr)].concat((0,mt.Z)(kn))},[nn,yn,Kt,kn,rr,Gt]),Sn=function Xr(fn){var dn=(0,mt.Z)(fn).sort(function(gn,Zn){return Ln(gn,Zn,{searchValue:rr})});return dn.map(function(gn){return Array.isArray(gn.options)?(0,Ce.Z)((0,Ce.Z)({},gn),{},{options:gn.options.length>0?Xr(gn.options):gn.options}):gn})},Jr=ee.useMemo(function(){return Ln?Sn(vn):vn},[vn,Ln,rr]),Ir=ee.useMemo(function(){return nt(Jr,{fieldNames:Gt,childrenAsData:Rt})},[Jr,Gt,Rt]),Yr=function(fn){var dn=er(fn);if(ar(dn),Mn&&(dn.length!==Ar.length||dn.some(function(qn,Zi){var di;return((di=Ar[Zi])===null||di===void 0?void 0:di.value)!==(qn==null?void 0:qn.value)}))){var gn=In?dn:dn.map(function(qn){return qn.value}),Zn=dn.map(function(qn){return dt($r(qn.value))});Mn(Lt?gn:gn[0],Lt?Zn:Zn[0])}},Nr=ee.useState(null),Tn=(0,ye.Z)(Nr,2),Cn=Tn[0],jn=Tn[1],Jn=ee.useState(0),Si=(0,ye.Z)(Jn,2),oi=Si[0],Gi=Si[1],ji=Xn!==void 0?Xn:Kt!=="combobox",Qn=ee.useCallback(function(Xr,fn){var dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},gn=dn.source,Zn=gn===void 0?"keyboard":gn;Gi(fn),dr&&Kt==="combobox"&&Xr!==null&&Zn==="keyboard"&&jn(String(Xr))},[dr,Kt]),ei=function(fn,dn,gn){var Zn=function(){var Vi,$i=$r(fn);return[In?{label:$i==null?void 0:$i[Gt.label],value:fn,key:(Vi=$i==null?void 0:$i.key)!==null&&Vi!==void 0?Vi:fn}:fn,dt($i)]};if(dn&&sr){var qn=Zn(),Zi=(0,ye.Z)(qn,2),di=Zi[0],fi=Zi[1];sr(di,fi)}else if(!dn&&yr&&gn!=="clear"){var Pn=Zn(),bi=(0,ye.Z)(Pn,2),Ki=bi[0],ri=bi[1];yr(Ki,ri)}},ti=Br(function(Xr,fn){var dn,gn=Lt?fn.selected:!0;gn?dn=Lt?[].concat((0,mt.Z)(Ar),[Xr]):[Xr]:dn=Ar.filter(function(Zn){return Zn.value!==Xr}),Yr(dn),ei(Xr,gn),Kt==="combobox"?jn(""):(!Tt||Ur)&&(Qt(""),jn(""))}),ki=function(fn,dn){Yr(fn);var gn=dn.type,Zn=dn.values;(gn==="remove"||gn==="clear")&&Zn.forEach(function(qn){ei(qn.value,!1,gn)})},ai=function(fn,dn){if(Qt(fn),jn(null),dn.source==="submit"){var gn=(fn||"").trim();if(gn){var Zn=Array.from(new Set([].concat((0,mt.Z)(cn),[gn])));Yr(Zn),ei(gn,!0),Qt("")}return}dn.source!=="blur"&&(Kt==="combobox"&&Yr(fn),gr==null||gr(fn))},ui=function(fn){var dn=fn;Kt!=="tags"&&(dn=fn.map(function(Zn){var qn=zt.get(Zn);return qn==null?void 0:qn.value}).filter(function(Zn){return Zn!==void 0}));var gn=Array.from(new Set([].concat((0,mt.Z)(cn),(0,mt.Z)(dn))));Yr(gn),gn.forEach(function(Zn){ei(Zn,!0)})},si=ee.useMemo(function(){var Xr=Gn!==!1&&Wr!==!1;return(0,Ce.Z)((0,Ce.Z)({},Ot),{},{flattenOptions:Ir,onActiveValue:Qn,defaultActiveFirstOption:ji,onSelect:ti,menuItemSelectedIcon:Hn,rawValues:cn,fieldNames:Gt,virtual:Xr,direction:Yn,listHeight:Dn,listItemHeight:Wn,childrenAsData:Rt,maxCount:Nn,optionRender:zr})},[Nn,Ot,Ir,Qn,ji,ti,Hn,cn,Gt,Gn,Wr,Yn,Dn,Wn,Rt,zr]);return ee.createElement(St.Provider,{value:si},ee.createElement(ft,(0,Ye.Z)({},ii,{id:gt,prefixCls:nr,ref:kt,omitDomProps:pn,mode:Kt,displayValues:rn,onDisplayValuesChange:ki,direction:Yn,searchValue:rr,onSearch:ai,autoClearSearchValue:Ur,onSearchSplit:ui,dropdownMatchSelectWidth:Wr,OptionList:hn,emptyOptions:!Ir.length,activeValue:Cn,activeDescendantId:"".concat(gt,"_list_").concat(oi)})))}),xr=Vt;xr.Option=$t,xr.OptGroup=At;var Kr=xr,mn=Kr},63158:function(Ht,_t,Ge){"use strict";var Ye=Ge(32855),mt=Ge(74430),y=Ge(11913),Ce=Ge(43079),ye=Ge(59301),x=Ge(92310),z=Ge.n(x),se=Ge(18929),ae=Ge(10228),ee=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],fe=ye.forwardRef(function(E,re){var ne,le=E.prefixCls,ue=le===void 0?"rc-switch":le,he=E.className,pe=E.checked,ve=E.defaultChecked,de=E.disabled,we=E.loadingIcon,Te=E.checkedChildren,je=E.unCheckedChildren,Me=E.onClick,Ae=E.onChange,ge=E.onKeyDown,be=(0,Ce.Z)(E,ee),Ee=(0,se.Z)(!1,{value:pe,defaultValue:ve}),Re=(0,y.Z)(Ee,2),Ie=Re[0],ke=Re[1];function Pe(it,Ne){var Fe=Ie;return de||(Fe=it,ke(Fe),Ae==null||Ae(Fe,Ne)),Fe}function Ze(it){it.which===ae.Z.LEFT?Pe(!1,it):it.which===ae.Z.RIGHT&&Pe(!0,it),ge==null||ge(it)}function He(it){var Ne=Pe(!Ie,it);Me==null||Me(Ne,it)}var $e=z()(ue,he,(ne={},(0,mt.Z)(ne,"".concat(ue,"-checked"),Ie),(0,mt.Z)(ne,"".concat(ue,"-disabled"),de),ne));return ye.createElement("button",(0,Ye.Z)({},be,{type:"button",role:"switch","aria-checked":Ie,disabled:de,className:$e,ref:re,onKeyDown:Ze,onClick:He}),we,ye.createElement("span",{className:"".concat(ue,"-inner")},ye.createElement("span",{className:"".concat(ue,"-inner-checked")},Te),ye.createElement("span",{className:"".concat(ue,"-inner-unchecked")},je)))});fe.displayName="Switch",_t.Z=fe},86351:function(Ht,_t,Ge){"use strict";Ge.d(_t,{R:function(){return mt},w:function(){return Ye}});var Ye={},mt="rc-table-internal-hook"},97347:function(Ht,_t,Ge){"use strict";Ge.d(_t,{L:function(){return ue},Z:function(){return we}});var Ye=Ge(11913),mt=Ge(74430),y=Ge(3300),Ce=Ge(34666),ye=Ge(27247),x=Ge(43079),z=Ge(11592),se=Ge(48736),ae=Ge(59301),ee=Ge(86351),fe=Ge(54451);function E(Te){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof je=="number"?je:je.endsWith("%")?Te*parseFloat(je)/100:null}function re(Te,je,Me){return ae.useMemo(function(){if(je&&je>0){var Ae=0,ge=0;Te.forEach(function(He){var $e=E(je,He.width);$e?Ae+=$e:ge+=1});var be=Math.max(je,Me),Ee=Math.max(be-Ae,ge),Re=ge,Ie=Ee/ge,ke=0,Pe=Te.map(function(He){var $e=(0,ye.Z)({},He),it=E(je,$e.width);if(it)$e.width=it;else{var Ne=Math.floor(Ie);$e.width=Re===1?Ee:Ne,Ee-=Ne,Re-=1}return ke+=$e.width,$e});if(ke<be){var Ze=be/ke;Ee=be,Pe.forEach(function(He,$e){var it=Math.floor(He.width*Ze);He.width=$e===Pe.length-1?Ee:it,Ee-=it})}return[Pe,Math.max(ke,be)]}return[Te,je]},[Te,je,Me])}var ne=["children"],le=["fixed"];function ue(Te){return(0,z.Z)(Te).filter(function(je){return ae.isValidElement(je)}).map(function(je){var Me=je.key,Ae=je.props,ge=Ae.children,be=(0,x.Z)(Ae,ne),Ee=(0,ye.Z)({key:Me},be);return ge&&(Ee.children=ue(ge)),Ee})}function he(Te){return Te.filter(function(je){return je&&(0,Ce.Z)(je)==="object"&&!je.hidden}).map(function(je){var Me=je.children;return Me&&Me.length>0?(0,ye.Z)((0,ye.Z)({},je),{},{children:he(Me)}):je})}function pe(Te){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Te.filter(function(Me){return Me&&(0,Ce.Z)(Me)==="object"}).reduce(function(Me,Ae,ge){var be=Ae.fixed,Ee=be===!0?"left":be,Re="".concat(je,"-").concat(ge),Ie=Ae.children;return Ie&&Ie.length>0?[].concat((0,y.Z)(Me),(0,y.Z)(pe(Ie,Re).map(function(ke){return(0,ye.Z)({fixed:Ee},ke)}))):[].concat((0,y.Z)(Me),[(0,ye.Z)((0,ye.Z)({key:Re},Ae),{},{fixed:Ee})])},[])}function ve(Te){return Te.map(function(je){var Me=je.fixed,Ae=(0,x.Z)(je,le),ge=Me;return Me==="left"?ge="right":Me==="right"&&(ge="left"),(0,ye.Z)({fixed:ge},Ae)})}function de(Te,je){var Me=Te.prefixCls,Ae=Te.columns,ge=Te.children,be=Te.expandable,Ee=Te.expandedKeys,Re=Te.columnTitle,Ie=Te.getRowKey,ke=Te.onTriggerExpand,Pe=Te.expandIcon,Ze=Te.rowExpandable,He=Te.expandIconColumnIndex,$e=Te.direction,it=Te.expandRowByClick,Ne=Te.columnWidth,Fe=Te.fixed,qe=Te.scrollWidth,rt=Te.clientWidth,tt=ae.useMemo(function(){var Le=Ae||ue(ge)||[];return he(Le.slice())},[Ae,ge]),Ve=ae.useMemo(function(){if(be){var Le=tt.slice();if(!Le.includes(ee.w)){var De=He||0;De>=0&&(De||Fe==="left"||!Fe)&&Le.splice(De,0,ee.w),Fe==="right"&&Le.splice(tt.length,0,ee.w)}var te=Le.indexOf(ee.w);Le=Le.filter(function(xe,Se){return xe!==ee.w||Se===te});var ce=tt[te],_e;Fe?_e=Fe:_e=ce?ce.fixed:null;var Ue=(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)({},fe.v,{className:"".concat(Me,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Re),"fixed",_e),"className","".concat(Me,"-row-expand-icon-cell")),"width",Ne),"render",function(Se,Oe,We){var et=Ie(Oe,We),nt=Ee.has(et),dt=Ze?Ze(Oe):!0,ct=Pe({prefixCls:Me,expanded:nt,expandable:dt,record:Oe,onExpand:ke});return it?ae.createElement("span",{onClick:function(St){return St.stopPropagation()}},ct):ct});return Le.map(function(xe){return xe===ee.w?Ue:xe})}return tt.filter(function(xe){return xe!==ee.w})},[be,tt,Ie,Ee,Pe,$e]),Ke=ae.useMemo(function(){var Le=Ve;return je&&(Le=je(Le)),Le.length||(Le=[{render:function(){return null}}]),Le},[je,Ve,$e]),ze=ae.useMemo(function(){return $e==="rtl"?ve(pe(Ke)):pe(Ke)},[Ke,$e,qe]),at=ae.useMemo(function(){for(var Le=-1,De=ze.length-1;De>=0;De-=1){var te=ze[De].fixed;if(te==="left"||te===!0){Le=De;break}}if(Le>=0)for(var ce=0;ce<=Le;ce+=1){var _e=ze[ce].fixed;if(_e!=="left"&&_e!==!0)return!0}var Ue=ze.findIndex(function(Oe){var We=Oe.fixed;return We==="right"});if(Ue>=0)for(var xe=Ue;xe<ze.length;xe+=1){var Se=ze[xe].fixed;if(Se!=="right")return!0}return!1},[ze]),Qe=re(ze,qe,rt),ut=(0,Ye.Z)(Qe,2),st=ut[0],Xe=ut[1];return[Ke,st,Xe,at]}var we=de},4030:function(Ht,_t,Ge){"use strict";Ge.d(_t,{w2:function(){return Ye.w},vP:function(){return Fr.v},RQ:function(){return Ye.R},ER:function(){return et},Q$:function(){return an},TN:function(){return Mn}});var Ye=Ge(86351),mt=Ge(11913),y=Ge(6089),Ce=Ge(34280),ye=Ge(13697),x=Ge(59301),z=Ge(4676);function se(gt){var Lt=x.createContext(void 0),Rt=function(Gt){var It=Gt.value,Yt=Gt.children,rr=x.useRef(It);rr.current=It;var Qt=x.useState(function(){return{getValue:function(){return rr.current},listeners:new Set}}),Ot=(0,mt.Z)(Qt,1),Ut=Ot[0];return(0,Ce.Z)(function(){(0,z.unstable_batchedUpdates)(function(){Ut.listeners.forEach(function(zt){zt(It)})})},[It]),x.createElement(Lt.Provider,{value:Ut},Yt)};return{Context:Lt,Provider:Rt,defaultValue:gt}}function ae(gt,Lt){var Rt=(0,y.Z)(typeof Lt=="function"?Lt:function(zt){if(Lt===void 0)return zt;if(!Array.isArray(Lt))return zt[Lt];var Zt={};return Lt.forEach(function(er){Zt[er]=zt[er]}),Zt}),Ft=x.useContext(gt==null?void 0:gt.Context),Gt=Ft||{},It=Gt.listeners,Yt=Gt.getValue,rr=x.useRef();rr.current=Rt(Ft?Yt():gt==null?void 0:gt.defaultValue);var Qt=x.useState({}),Ot=(0,mt.Z)(Qt,2),Ut=Ot[1];return(0,Ce.Z)(function(){if(!Ft)return;function zt(Zt){var er=Rt(Zt);(0,ye.Z)(rr.current,er,!0)||Ut({})}return It.add(zt),function(){It.delete(zt)}},[Ft]),rr.current}var ee=Ge(32855),fe=Ge(8654);function E(){var gt=x.createContext(null);function Lt(){return x.useContext(gt)}function Rt(Gt,It){var Yt=(0,fe.Yr)(Gt),rr=function(Ot,Ut){var zt=Yt?{ref:Ut}:{},Zt=x.useRef(0),er=x.useRef(Ot),Bt=Lt();return Bt!==null?x.createElement(Gt,(0,ee.Z)({},Ot,zt)):((!It||It(er.current,Ot))&&(Zt.current+=1),er.current=Ot,x.createElement(gt.Provider,{value:Zt.current},x.createElement(Gt,(0,ee.Z)({},Ot,zt))))};return Yt?x.forwardRef(rr):rr}function Ft(Gt,It){var Yt=(0,fe.Yr)(Gt),rr=function(Ot,Ut){var zt=Yt?{ref:Ut}:{};return Lt(),x.createElement(Gt,(0,ee.Z)({},Ot,zt))};return Yt?x.memo(x.forwardRef(rr),It):x.memo(rr,It)}return{makeImmutable:Rt,responseImmutable:Ft,useImmutableMark:Lt}}var re=E(),ne=re.makeImmutable,le=re.responseImmutable,ue=re.useImmutableMark,he=E(),pe=he.makeImmutable,ve=he.responseImmutable,de=he.useImmutableMark,we=se(),Te=we;function je(gt,Lt){var Rt=React.useRef(0);Rt.current+=1;var Ft=React.useRef(gt),Gt=[];Object.keys(gt||{}).map(function(Yt){var rr;(gt==null?void 0:gt[Yt])!==((rr=Ft.current)===null||rr===void 0?void 0:rr[Yt])&&Gt.push(Yt)}),Ft.current=gt;var It=React.useRef([]);return Gt.length&&(It.current=Gt),React.useDebugValue(Rt.current),React.useDebugValue(It.current.join(", ")),Lt&&console.log("".concat(Lt,":"),Rt.current,It.current),Rt.current}var Me=null,Ae=null,ge=Ge(34666),be=Ge(27247),Ee=Ge(74430),Re=Ge(92310),Ie=Ge.n(Re),ke=Ge(80547),Pe=Ge(97938),Ze=Ge(48736),He=x.createContext({renderWithProps:!1}),$e=He,it="RC_TABLE_KEY";function Ne(gt){return gt==null?[]:Array.isArray(gt)?gt:[gt]}function Fe(gt){var Lt=[],Rt={};return gt.forEach(function(Ft){for(var Gt=Ft||{},It=Gt.key,Yt=Gt.dataIndex,rr=It||Ne(Yt).join("-")||it;Rt[rr];)rr="".concat(rr,"_next");Rt[rr]=!0,Lt.push(rr)}),Lt}function qe(gt){return gt!=null}function rt(gt){return typeof gt=="number"&&!Number.isNaN(gt)}function tt(gt){return gt&&(0,ge.Z)(gt)==="object"&&!Array.isArray(gt)&&!x.isValidElement(gt)}function Ve(gt,Lt,Rt,Ft,Gt,It){var Yt=x.useContext($e),rr=de(),Qt=(0,ke.Z)(function(){if(qe(Ft))return[Ft];var Ot=Lt==null||Lt===""?[]:Array.isArray(Lt)?Lt:[Lt],Ut=(0,Pe.Z)(gt,Ot),zt=Ut,Zt=void 0;if(Gt){var er=Gt(Ut,gt,Rt);tt(er)?(zt=er.children,Zt=er.props,Yt.renderWithProps=!0):zt=er}return[zt,Zt]},[rr,gt,Ft,Lt,Gt,Rt],function(Ot,Ut){if(It){var zt=(0,mt.Z)(Ot,2),Zt=zt[1],er=(0,mt.Z)(Ut,2),Bt=er[1];return It(Bt,Zt)}return Yt.renderWithProps?!0:!(0,ye.Z)(Ot,Ut,!0)});return Qt}function Ke(gt,Lt,Rt,Ft){var Gt=gt+Lt-1;return gt<=Ft&&Gt>=Rt}function ze(gt,Lt){return ae(Te,function(Rt){var Ft=Ke(gt,Lt||1,Rt.hoverStartRow,Rt.hoverEndRow);return[Ft,Rt.onHover]})}var at=Ge(70425),Qe=function(Lt){var Rt=Lt.ellipsis,Ft=Lt.rowType,Gt=Lt.children,It,Yt=Rt===!0?{showTitle:!0}:Rt;return Yt&&(Yt.showTitle||Ft==="header")&&(typeof Gt=="string"||typeof Gt=="number"?It=Gt.toString():x.isValidElement(Gt)&&typeof Gt.props.children=="string"&&(It=Gt.props.children)),It};function ut(gt){var Lt,Rt,Ft,Gt,It,Yt,rr,Qt,Ot=gt.component,Ut=gt.children,zt=gt.ellipsis,Zt=gt.scope,er=gt.prefixCls,Bt=gt.className,Jt=gt.align,Xt=gt.record,ar=gt.render,Er=gt.dataIndex,Cr=gt.renderIndex,Vr=gt.shouldCellUpdate,Ar=gt.index,$r=gt.rowType,rn=gt.colSpan,cn=gt.rowSpan,nn=gt.fixLeft,xn=gt.fixRight,kn=gt.firstFixLeft,vn=gt.lastFixLeft,Sn=gt.firstFixRight,Jr=gt.lastFixRight,Ir=gt.appendNode,Yr=gt.additionalProps,Nr=Yr===void 0?{}:Yr,Tn=gt.isSticky,Cn="".concat(er,"-cell"),jn=ae(Te,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Jn=jn.supportSticky,Si=jn.allColumnsFixedLeft,oi=jn.rowHoverable,Gi=Ve(Xt,Er,Cr,Ut,ar,Vr),ji=(0,mt.Z)(Gi,2),Qn=ji[0],ei=ji[1],ti={},ki=typeof nn=="number"&&Jn,ai=typeof xn=="number"&&Jn;ki&&(ti.position="sticky",ti.left=nn),ai&&(ti.position="sticky",ti.right=xn);var ui=(Lt=(Rt=(Ft=ei==null?void 0:ei.colSpan)!==null&&Ft!==void 0?Ft:Nr.colSpan)!==null&&Rt!==void 0?Rt:rn)!==null&&Lt!==void 0?Lt:1,si=(Gt=(It=(Yt=ei==null?void 0:ei.rowSpan)!==null&&Yt!==void 0?Yt:Nr.rowSpan)!==null&&It!==void 0?It:cn)!==null&&Gt!==void 0?Gt:1,Xr=ze(Ar,si),fn=(0,mt.Z)(Xr,2),dn=fn[0],gn=fn[1],Zn=(0,at.zX)(function(Ki){var ri;Xt&&gn(Ar,Ar+si-1),Nr==null||(ri=Nr.onMouseEnter)===null||ri===void 0||ri.call(Nr,Ki)}),qn=(0,at.zX)(function(Ki){var ri;Xt&&gn(-1,-1),Nr==null||(ri=Nr.onMouseLeave)===null||ri===void 0||ri.call(Nr,Ki)});if(ui===0||si===0)return null;var Zi=(rr=Nr.title)!==null&&rr!==void 0?rr:Qe({rowType:$r,ellipsis:zt,children:Qn}),di=Ie()(Cn,Bt,(Qt={},(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)(Qt,"".concat(Cn,"-fix-left"),ki&&Jn),"".concat(Cn,"-fix-left-first"),kn&&Jn),"".concat(Cn,"-fix-left-last"),vn&&Jn),"".concat(Cn,"-fix-left-all"),vn&&Si&&Jn),"".concat(Cn,"-fix-right"),ai&&Jn),"".concat(Cn,"-fix-right-first"),Sn&&Jn),"".concat(Cn,"-fix-right-last"),Jr&&Jn),"".concat(Cn,"-ellipsis"),zt),"".concat(Cn,"-with-append"),Ir),"".concat(Cn,"-fix-sticky"),(ki||ai)&&Tn&&Jn),(0,Ee.Z)(Qt,"".concat(Cn,"-row-hover"),!ei&&dn)),Nr.className,ei==null?void 0:ei.className),fi={};Jt&&(fi.textAlign=Jt);var Pn=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},ei==null?void 0:ei.style),ti),fi),Nr.style),bi=Qn;return(0,ge.Z)(bi)==="object"&&!Array.isArray(bi)&&!x.isValidElement(bi)&&(bi=null),zt&&(vn||Sn)&&(bi=x.createElement("span",{className:"".concat(Cn,"-content")},bi)),x.createElement(Ot,(0,ee.Z)({},ei,Nr,{className:di,style:Pn,title:Zi,scope:Zt,onMouseEnter:oi?Zn:void 0,onMouseLeave:oi?qn:void 0,colSpan:ui!==1?ui:null,rowSpan:si!==1?si:null}),Ir,bi)}var st=x.memo(ut);function Xe(gt,Lt,Rt,Ft,Gt){var It=Rt[gt]||{},Yt=Rt[Lt]||{},rr,Qt;It.fixed==="left"?rr=Ft.left[Gt==="rtl"?Lt:gt]:Yt.fixed==="right"&&(Qt=Ft.right[Gt==="rtl"?gt:Lt]);var Ot=!1,Ut=!1,zt=!1,Zt=!1,er=Rt[Lt+1],Bt=Rt[gt-1],Jt=er&&!er.fixed||Bt&&!Bt.fixed||Rt.every(function(Vr){return Vr.fixed==="left"});if(Gt==="rtl"){if(rr!==void 0){var Xt=Bt&&Bt.fixed==="left";Zt=!Xt&&Jt}else if(Qt!==void 0){var ar=er&&er.fixed==="right";zt=!ar&&Jt}}else if(rr!==void 0){var Er=er&&er.fixed==="left";Ot=!Er&&Jt}else if(Qt!==void 0){var Cr=Bt&&Bt.fixed==="right";Ut=!Cr&&Jt}return{fixLeft:rr,fixRight:Qt,lastFixLeft:Ot,firstFixRight:Ut,lastFixRight:zt,firstFixLeft:Zt,isSticky:Ft.isSticky}}var Le=x.createContext({}),De=Le;function te(gt){var Lt=gt.className,Rt=gt.index,Ft=gt.children,Gt=gt.colSpan,It=Gt===void 0?1:Gt,Yt=gt.rowSpan,rr=gt.align,Qt=ae(Te,["prefixCls","direction"]),Ot=Qt.prefixCls,Ut=Qt.direction,zt=x.useContext(De),Zt=zt.scrollColumnIndex,er=zt.stickyOffsets,Bt=zt.flattenColumns,Jt=Rt+It-1,Xt=Jt+1===Zt?It+1:It,ar=Xe(Rt,Rt+Xt-1,Bt,er,Ut);return x.createElement(st,(0,ee.Z)({className:Lt,index:Rt,component:"td",prefixCls:Ot,record:null,dataIndex:null,align:rr,colSpan:Xt,rowSpan:Yt,render:function(){return Ft}},ar))}var ce=Ge(43079),_e=["children"];function Ue(gt){var Lt=gt.children,Rt=(0,ce.Z)(gt,_e);return x.createElement("tr",Rt,Lt)}function xe(gt){var Lt=gt.children;return Lt}xe.Row=Ue,xe.Cell=te;var Se=xe;function Oe(gt){var Lt=gt.children,Rt=gt.stickyOffsets,Ft=gt.flattenColumns,Gt=ae(Te,"prefixCls"),It=Ft.length-1,Yt=Ft[It],rr=x.useMemo(function(){return{stickyOffsets:Rt,flattenColumns:Ft,scrollColumnIndex:Yt!=null&&Yt.scrollbar?It:null}},[Yt,Ft,It,Rt]);return x.createElement(De.Provider,{value:rr},x.createElement("tfoot",{className:"".concat(Gt,"-summary")},Lt))}var We=ve(Oe),et=Se,nt=Ge(29301),dt=Ge(24514),ct=Ge(75152),pt=Ge(26112);function St(gt,Lt,Rt,Ft,Gt,It,Yt){gt.push({record:Lt,indent:Rt,index:Yt});var rr=It(Lt),Qt=Gt==null?void 0:Gt.has(rr);if(Lt&&Array.isArray(Lt[Ft])&&Qt)for(var Ot=0;Ot<Lt[Ft].length;Ot+=1)St(gt,Lt[Ft][Ot],Rt+1,Ft,Gt,It,Ot)}function yt(gt,Lt,Rt,Ft){var Gt=x.useMemo(function(){if(Rt!=null&&Rt.size){for(var It=[],Yt=0;Yt<(gt==null?void 0:gt.length);Yt+=1){var rr=gt[Yt];St(It,rr,0,Lt,Rt,Ft,Yt)}return It}return gt==null?void 0:gt.map(function(Qt,Ot){return{record:Qt,indent:0,index:Ot}})},[gt,Lt,Rt,Ft]);return Gt}function xt(gt,Lt,Rt,Ft){var Gt=ae(Te,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),It=Gt.flattenColumns,Yt=Gt.expandableType,rr=Gt.expandedKeys,Qt=Gt.childrenColumnName,Ot=Gt.onTriggerExpand,Ut=Gt.rowExpandable,zt=Gt.onRow,Zt=Gt.expandRowByClick,er=Gt.rowClassName,Bt=Yt==="nest",Jt=Yt==="row"&&(!Ut||Ut(gt)),Xt=Jt||Bt,ar=rr&&rr.has(Lt),Er=Qt&&gt&&gt[Qt],Cr=(0,at.zX)(Ot),Vr=zt==null?void 0:zt(gt,Rt),Ar=Vr==null?void 0:Vr.onClick,$r=function(xn){Zt&&Xt&&Ot(gt,xn);for(var kn=arguments.length,vn=new Array(kn>1?kn-1:0),Sn=1;Sn<kn;Sn++)vn[Sn-1]=arguments[Sn];Ar==null||Ar.apply(void 0,[xn].concat(vn))},rn;typeof er=="string"?rn=er:typeof er=="function"&&(rn=er(gt,Rt,Ft));var cn=Fe(It);return(0,be.Z)((0,be.Z)({},Gt),{},{columnsKey:cn,nestExpandable:Bt,expanded:ar,hasNestChildren:Er,record:gt,onTriggerExpand:Cr,rowSupportExpand:Jt,expandable:Xt,rowProps:(0,be.Z)((0,be.Z)({},Vr),{},{className:Ie()(rn,Vr==null?void 0:Vr.className),onClick:$r})})}function vt(gt){var Lt=gt.prefixCls,Rt=gt.children,Ft=gt.component,Gt=gt.cellComponent,It=gt.className,Yt=gt.expanded,rr=gt.colSpan,Qt=gt.isEmpty,Ot=ae(Te,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ut=Ot.scrollbarSize,zt=Ot.fixHeader,Zt=Ot.fixColumn,er=Ot.componentWidth,Bt=Ot.horizonScroll,Jt=Rt;return(Qt?Bt&&er:Zt)&&(Jt=x.createElement("div",{style:{width:er-(zt&&!Qt?Ut:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Lt,"-expanded-row-fixed")},Jt)),x.createElement(Ft,{className:It,style:{display:Yt?null:"none"}},x.createElement(st,{component:Gt,prefixCls:Lt,colSpan:rr},Jt))}var Tt=vt;function bt(gt){var Lt=gt.prefixCls,Rt=gt.record,Ft=gt.onExpand,Gt=gt.expanded,It=gt.expandable,Yt="".concat(Lt,"-row-expand-icon");if(!It)return x.createElement("span",{className:Ie()(Yt,"".concat(Lt,"-row-spaced"))});var rr=function(Ot){Ft(Rt,Ot),Ot.stopPropagation()};return x.createElement("span",{className:Ie()(Yt,(0,Ee.Z)((0,Ee.Z)({},"".concat(Lt,"-row-expanded"),Gt),"".concat(Lt,"-row-collapsed"),!Gt)),onClick:rr})}function ft(gt,Lt,Rt){var Ft=[];function Gt(It){(It||[]).forEach(function(Yt,rr){Ft.push(Lt(Yt,rr)),Gt(Yt[Rt])})}return Gt(gt),Ft}function Dt(gt,Lt,Rt,Ft){return typeof gt=="string"?gt:typeof gt=="function"?gt(Lt,Rt,Ft):""}function At(gt,Lt,Rt,Ft,Gt){var It=gt.record,Yt=gt.prefixCls,rr=gt.columnsKey,Qt=gt.fixedInfoList,Ot=gt.expandIconColumnIndex,Ut=gt.nestExpandable,zt=gt.indentSize,Zt=gt.expandIcon,er=gt.expanded,Bt=gt.hasNestChildren,Jt=gt.onTriggerExpand,Xt=rr[Rt],ar=Qt[Rt],Er;Rt===(Ot||0)&&Ut&&(Er=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(zt*Ft,"px")},className:"".concat(Yt,"-row-indent indent-level-").concat(Ft)}),Zt({prefixCls:Yt,expanded:er,expandable:Bt,record:It,onExpand:Jt})));var Cr;return Lt.onCell&&(Cr=Lt.onCell(It,Gt)),{key:Xt,fixedInfo:ar,appendCellNode:Er,additionalCellProps:Cr||{}}}function Mt(gt){var Lt=gt.className,Rt=gt.style,Ft=gt.record,Gt=gt.index,It=gt.renderIndex,Yt=gt.rowKey,rr=gt.indent,Qt=rr===void 0?0:rr,Ot=gt.rowComponent,Ut=gt.cellComponent,zt=gt.scopeCellComponent,Zt=xt(Ft,Yt,Gt,Qt),er=Zt.prefixCls,Bt=Zt.flattenColumns,Jt=Zt.expandedRowClassName,Xt=Zt.expandedRowRender,ar=Zt.rowProps,Er=Zt.expanded,Cr=Zt.rowSupportExpand,Vr=x.useRef(!1);Vr.current||(Vr.current=Er);var Ar=Dt(Jt,Ft,Gt,Qt),$r=x.createElement(Ot,(0,ee.Z)({},ar,{"data-row-key":Yt,className:Ie()(Lt,"".concat(er,"-row"),"".concat(er,"-row-level-").concat(Qt),ar==null?void 0:ar.className,(0,Ee.Z)({},Ar,Qt>=1)),style:(0,be.Z)((0,be.Z)({},Rt),ar==null?void 0:ar.style)}),Bt.map(function(nn,xn){var kn=nn.render,vn=nn.dataIndex,Sn=nn.className,Jr=At(Zt,nn,xn,Qt,Gt),Ir=Jr.key,Yr=Jr.fixedInfo,Nr=Jr.appendCellNode,Tn=Jr.additionalCellProps;return x.createElement(st,(0,ee.Z)({className:Sn,ellipsis:nn.ellipsis,align:nn.align,scope:nn.rowScope,component:nn.rowScope?zt:Ut,prefixCls:er,key:Ir,record:Ft,index:Gt,renderIndex:It,dataIndex:vn,render:kn,shouldCellUpdate:nn.shouldCellUpdate},Yr,{appendNode:Nr,additionalProps:Tn}))})),rn;if(Cr&&(Vr.current||Er)){var cn=Xt(Ft,Gt,Qt+1,Er);rn=x.createElement(Tt,{expanded:Er,className:Ie()("".concat(er,"-expanded-row"),"".concat(er,"-expanded-row-level-").concat(Qt+1),Ar),prefixCls:er,component:Ot,cellComponent:Ut,colSpan:Bt.length,isEmpty:!1},cn)}return x.createElement(x.Fragment,null,$r,rn)}var $t=ve(Mt);function pr(gt){var Lt=gt.columnKey,Rt=gt.onColumnResize,Ft=x.useRef();return(0,Ce.Z)(function(){Ft.current&&Rt(Lt,Ft.current.offsetWidth)},[]),x.createElement(nt.Z,{data:Lt},x.createElement("td",{ref:Ft,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var qt=Ge(29194);function wr(gt){var Lt=gt.prefixCls,Rt=gt.columnsKey,Ft=gt.onColumnResize,Gt=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(Lt,"-measure-row"),style:{height:0,fontSize:0},ref:Gt},x.createElement(nt.Z.Collection,{onBatchResize:function(Yt){(0,qt.Z)(Gt.current)&&Yt.forEach(function(rr){var Qt=rr.data,Ot=rr.size;Ft(Qt,Ot.offsetWidth)})}},Rt.map(function(It){return x.createElement(pr,{key:It,columnKey:It,onColumnResize:Ft})})))}function jr(gt){var Lt=gt.data,Rt=gt.measureColumnWidth,Ft=ae(Te,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Gt=Ft.prefixCls,It=Ft.getComponent,Yt=Ft.onColumnResize,rr=Ft.flattenColumns,Qt=Ft.getRowKey,Ot=Ft.expandedKeys,Ut=Ft.childrenColumnName,zt=Ft.emptyNode,Zt=yt(Lt,Ut,Ot,Qt),er=x.useRef({renderWithProps:!1}),Bt=It(["body","wrapper"],"tbody"),Jt=It(["body","row"],"tr"),Xt=It(["body","cell"],"td"),ar=It(["body","cell"],"th"),Er;Lt.length?Er=Zt.map(function(Vr,Ar){var $r=Vr.record,rn=Vr.indent,cn=Vr.index,nn=Qt($r,Ar);return x.createElement($t,{key:nn,rowKey:nn,record:$r,index:Ar,renderIndex:cn,rowComponent:Jt,cellComponent:Xt,scopeCellComponent:ar,indent:rn})}):Er=x.createElement(Tt,{expanded:!0,className:"".concat(Gt,"-placeholder"),prefixCls:Gt,component:Jt,cellComponent:Xt,colSpan:rr.length,isEmpty:!0},zt);var Cr=Fe(rr);return x.createElement($e.Provider,{value:er.current},x.createElement(Bt,{className:"".concat(Gt,"-tbody")},Rt&&x.createElement(wr,{prefixCls:Gt,columnsKey:Cr,onColumnResize:Yt}),Er))}var Dr=ve(jr),Fr=Ge(54451),on=["columnType"];function wn(gt){for(var Lt=gt.colWidths,Rt=gt.columns,Ft=gt.columCount,Gt=ae(Te,["tableLayout"]),It=Gt.tableLayout,Yt=[],rr=Ft||Rt.length,Qt=!1,Ot=rr-1;Ot>=0;Ot-=1){var Ut=Lt[Ot],zt=Rt&&Rt[Ot],Zt=void 0,er=void 0;if(zt&&(Zt=zt[Fr.v],It==="auto"&&(er=zt.minWidth)),Ut||er||Zt||Qt){var Bt=Zt||{},Jt=Bt.columnType,Xt=(0,ce.Z)(Bt,on);Yt.unshift(x.createElement("col",(0,ee.Z)({key:Ot,style:{width:Ut,minWidth:er}},Xt))),Qt=!0}}return x.createElement("colgroup",null,Yt)}var hn=wn,Gr=Ge(3300),An=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Rn(gt,Lt){return(0,x.useMemo)(function(){for(var Rt=[],Ft=0;Ft<Lt;Ft+=1){var Gt=gt[Ft];if(Gt!==void 0)Rt[Ft]=Gt;else return null}return Rt},[gt.join("_"),Lt])}var Tr=x.forwardRef(function(gt,Lt){var Rt=gt.className,Ft=gt.noData,Gt=gt.columns,It=gt.flattenColumns,Yt=gt.colWidths,rr=gt.columCount,Qt=gt.stickyOffsets,Ot=gt.direction,Ut=gt.fixHeader,zt=gt.stickyTopOffset,Zt=gt.stickyBottomOffset,er=gt.stickyClassName,Bt=gt.onScroll,Jt=gt.maxContentScroll,Xt=gt.children,ar=(0,ce.Z)(gt,An),Er=ae(Te,["prefixCls","scrollbarSize","isSticky","getComponent"]),Cr=Er.prefixCls,Vr=Er.scrollbarSize,Ar=Er.isSticky,$r=Er.getComponent,rn=$r(["header","table"],"table"),cn=Ar&&!Ut?0:Vr,nn=x.useRef(null),xn=x.useCallback(function(Tn){(0,fe.mH)(Lt,Tn),(0,fe.mH)(nn,Tn)},[]);x.useEffect(function(){var Tn;function Cn(jn){var Jn=jn,Si=Jn.currentTarget,oi=Jn.deltaX;oi&&(Bt({currentTarget:Si,scrollLeft:Si.scrollLeft+oi}),jn.preventDefault())}return(Tn=nn.current)===null||Tn===void 0||Tn.addEventListener("wheel",Cn,{passive:!1}),function(){var jn;(jn=nn.current)===null||jn===void 0||jn.removeEventListener("wheel",Cn)}},[]);var kn=x.useMemo(function(){return It.every(function(Tn){return Tn.width})},[It]),vn=It[It.length-1],Sn={fixed:vn?vn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Cr,"-cell-scrollbar")}}},Jr=(0,x.useMemo)(function(){return cn?[].concat((0,Gr.Z)(Gt),[Sn]):Gt},[cn,Gt]),Ir=(0,x.useMemo)(function(){return cn?[].concat((0,Gr.Z)(It),[Sn]):It},[cn,It]),Yr=(0,x.useMemo)(function(){var Tn=Qt.right,Cn=Qt.left;return(0,be.Z)((0,be.Z)({},Qt),{},{left:Ot==="rtl"?[].concat((0,Gr.Z)(Cn.map(function(jn){return jn+cn})),[0]):Cn,right:Ot==="rtl"?Tn:[].concat((0,Gr.Z)(Tn.map(function(jn){return jn+cn})),[0]),isSticky:Ar})},[cn,Qt,Ar]),Nr=Rn(Yt,rr);return x.createElement("div",{style:(0,be.Z)({overflow:"hidden"},Ar?{top:zt,bottom:Zt}:{}),ref:xn,className:Ie()(Rt,(0,Ee.Z)({},er,!!er))},x.createElement(rn,{style:{tableLayout:"fixed",visibility:Ft||Nr?null:"hidden"}},(!Ft||!Jt||kn)&&x.createElement(hn,{colWidths:Nr?[].concat((0,Gr.Z)(Nr),[cn]):[],columCount:rr+1,columns:Ir}),Xt((0,be.Z)((0,be.Z)({},ar),{},{stickyOffsets:Yr,columns:Jr,flattenColumns:Ir}))))}),Sr=x.memo(Tr),sn=function(Lt){var Rt=Lt.cells,Ft=Lt.stickyOffsets,Gt=Lt.flattenColumns,It=Lt.rowComponent,Yt=Lt.cellComponent,rr=Lt.onHeaderRow,Qt=Lt.index,Ot=ae(Te,["prefixCls","direction"]),Ut=Ot.prefixCls,zt=Ot.direction,Zt;rr&&(Zt=rr(Rt.map(function(Bt){return Bt.column}),Qt));var er=Fe(Rt.map(function(Bt){return Bt.column}));return x.createElement(It,Zt,Rt.map(function(Bt,Jt){var Xt=Bt.column,ar=Xe(Bt.colStart,Bt.colEnd,Gt,Ft,zt),Er;return Xt&&Xt.onHeaderCell&&(Er=Bt.column.onHeaderCell(Xt)),x.createElement(st,(0,ee.Z)({},Bt,{scope:Xt.title?Bt.colSpan>1?"colgroup":"col":null,ellipsis:Xt.ellipsis,align:Xt.align,component:Yt,prefixCls:Ut,key:er[Jt]},ar,{additionalProps:Er,rowType:"header"}))}))},lr=sn;function tr(gt){var Lt=[];function Rt(Yt,rr){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Lt[Qt]=Lt[Qt]||[];var Ot=rr,Ut=Yt.filter(Boolean).map(function(zt){var Zt={key:zt.key,className:zt.className||"",children:zt.title,column:zt,colStart:Ot},er=1,Bt=zt.children;return Bt&&Bt.length>0&&(er=Rt(Bt,Ot,Qt+1).reduce(function(Jt,Xt){return Jt+Xt},0),Zt.hasSubColumns=!0),"colSpan"in zt&&(er=zt.colSpan),"rowSpan"in zt&&(Zt.rowSpan=zt.rowSpan),Zt.colSpan=er,Zt.colEnd=Zt.colStart+er-1,Lt[Qt].push(Zt),Ot+=er,er});return Ut}Rt(gt,0);for(var Ft=Lt.length,Gt=function(rr){Lt[rr].forEach(function(Qt){!("rowSpan"in Qt)&&!Qt.hasSubColumns&&(Qt.rowSpan=Ft-rr)})},It=0;It<Ft;It+=1)Gt(It);return Lt}var or=function(Lt){var Rt=Lt.stickyOffsets,Ft=Lt.columns,Gt=Lt.flattenColumns,It=Lt.onHeaderRow,Yt=ae(Te,["prefixCls","getComponent"]),rr=Yt.prefixCls,Qt=Yt.getComponent,Ot=x.useMemo(function(){return tr(Ft)},[Ft]),Ut=Qt(["header","wrapper"],"thead"),zt=Qt(["header","row"],"tr"),Zt=Qt(["header","cell"],"th");return x.createElement(Ut,{className:"".concat(rr,"-thead")},Ot.map(function(er,Bt){var Jt=x.createElement(lr,{key:Bt,flattenColumns:Gt,cells:er,stickyOffsets:Rt,rowComponent:zt,cellComponent:Zt,onHeaderRow:It,index:Bt});return Jt}))},Pr=ve(or),mr=Ge(97347);function Br(gt,Lt,Rt){var Ft=(0,Fr.g)(gt),Gt=Ft.expandIcon,It=Ft.expandedRowKeys,Yt=Ft.defaultExpandedRowKeys,rr=Ft.defaultExpandAllRows,Qt=Ft.expandedRowRender,Ot=Ft.onExpand,Ut=Ft.onExpandedRowsChange,zt=Ft.childrenColumnName,Zt=Gt||bt,er=zt||"children",Bt=x.useMemo(function(){return Qt?"row":gt.expandable&&gt.internalHooks===Ye.R&&gt.expandable.__PARENT_RENDER_ICON__||Lt.some(function(Ar){return Ar&&(0,ge.Z)(Ar)==="object"&&Ar[er]})?"nest":!1},[!!Qt,Lt]),Jt=x.useState(function(){return Yt||(rr?ft(Lt,Rt,er):[])}),Xt=(0,mt.Z)(Jt,2),ar=Xt[0],Er=Xt[1],Cr=x.useMemo(function(){return new Set(It||ar||[])},[It,ar]),Vr=x.useCallback(function(Ar){var $r=Rt(Ar,Lt.indexOf(Ar)),rn,cn=Cr.has($r);cn?(Cr.delete($r),rn=(0,Gr.Z)(Cr)):rn=[].concat((0,Gr.Z)(Cr),[$r]),Er(rn),Ot&&Ot(!cn,Ar),Ut&&Ut(rn)},[Rt,Cr,Lt,Ot,Ut]);return[Ft,Bt,Cr,Zt,er,Vr]}function qr(gt,Lt,Rt){var Ft=gt.map(function(Gt,It){return Xe(It,It,gt,Lt,Rt)});return(0,ke.Z)(function(){return Ft},[Ft],function(Gt,It){return!(0,ye.Z)(Gt,It)})}function tn(gt){var Lt=(0,x.useRef)(gt),Rt=(0,x.useState)({}),Ft=(0,mt.Z)(Rt,2),Gt=Ft[1],It=(0,x.useRef)(null),Yt=(0,x.useRef)([]);function rr(Qt){Yt.current.push(Qt);var Ot=Promise.resolve();It.current=Ot,Ot.then(function(){if(It.current===Ot){var Ut=Yt.current,zt=Lt.current;Yt.current=[],Ut.forEach(function(Zt){Lt.current=Zt(Lt.current)}),It.current=null,zt!==Lt.current&&Gt({})}})}return(0,x.useEffect)(function(){return function(){It.current=null}},[]),[Lt.current,rr]}function Zr(gt){var Lt=(0,x.useRef)(gt||null),Rt=(0,x.useRef)();function Ft(){window.clearTimeout(Rt.current)}function Gt(Yt){Lt.current=Yt,Ft(),Rt.current=window.setTimeout(function(){Lt.current=null,Rt.current=void 0},100)}function It(){return Lt.current}return(0,x.useEffect)(function(){return Ft},[]),[Gt,It]}function Lr(){var gt=x.useState(-1),Lt=(0,mt.Z)(gt,2),Rt=Lt[0],Ft=Lt[1],Gt=x.useState(-1),It=(0,mt.Z)(Gt,2),Yt=It[0],rr=It[1],Qt=x.useCallback(function(Ot,Ut){Ft(Ot),rr(Ut)},[]);return[Rt,Yt,Qt]}var pn=Ge(47273),fr=(0,pn.Z)()?window:null;function Vt(gt,Lt){var Rt=(0,ge.Z)(gt)==="object"?gt:{},Ft=Rt.offsetHeader,Gt=Ft===void 0?0:Ft,It=Rt.offsetSummary,Yt=It===void 0?0:It,rr=Rt.offsetScroll,Qt=rr===void 0?0:rr,Ot=Rt.getContainer,Ut=Ot===void 0?function(){return fr}:Ot,zt=Ut()||fr,Zt=!!gt;return x.useMemo(function(){return{isSticky:Zt,stickyClassName:Zt?"".concat(Lt,"-sticky-holder"):"",offsetHeader:Gt,offsetSummary:Yt,offsetScroll:Qt,container:zt}},[Zt,Qt,Gt,Yt,Lt,zt])}function xr(gt,Lt,Rt){var Ft=(0,x.useMemo)(function(){var Gt=Lt.length,It=function(Ot,Ut,zt){for(var Zt=[],er=0,Bt=Ot;Bt!==Ut;Bt+=zt)Zt.push(er),Lt[Bt].fixed&&(er+=gt[Bt]||0);return Zt},Yt=It(0,Gt,1),rr=It(Gt-1,-1,-1).reverse();return Rt==="rtl"?{left:rr,right:Yt}:{left:Yt,right:rr}},[gt,Lt,Rt]);return Ft}var Kr=xr;function mn(gt){var Lt=gt.className,Rt=gt.children;return x.createElement("div",{className:Lt},Rt)}var Ct=mn,kt=Ge(8224),ir=Ge(16089),Kt=Ge(76846);function jt(gt){var Lt=(0,Kt.bn)(gt),Rt=Lt.getBoundingClientRect(),Ft=document.documentElement;return{left:Rt.left+(window.pageXOffset||Ft.scrollLeft)-(Ft.clientLeft||document.body.clientLeft||0),top:Rt.top+(window.pageYOffset||Ft.scrollTop)-(Ft.clientTop||document.body.clientTop||0)}}var nr=function(Lt,Rt){var Ft,Gt,It=Lt.scrollBodyRef,Yt=Lt.onScroll,rr=Lt.offsetScroll,Qt=Lt.container,Ot=Lt.direction,Ut=ae(Te,"prefixCls"),zt=((Ft=It.current)===null||Ft===void 0?void 0:Ft.scrollWidth)||0,Zt=((Gt=It.current)===null||Gt===void 0?void 0:Gt.clientWidth)||0,er=zt&&Zt*(Zt/zt),Bt=x.useRef(),Jt=tn({scrollLeft:0,isHiddenScrollBar:!0}),Xt=(0,mt.Z)(Jt,2),ar=Xt[0],Er=Xt[1],Cr=x.useRef({delta:0,x:0}),Vr=x.useState(!1),Ar=(0,mt.Z)(Vr,2),$r=Ar[0],rn=Ar[1],cn=x.useRef(null);x.useEffect(function(){return function(){ir.Z.cancel(cn.current)}},[]);var nn=function(){rn(!1)},xn=function(Ir){Ir.persist(),Cr.current.delta=Ir.pageX-ar.scrollLeft,Cr.current.x=0,rn(!0),Ir.preventDefault()},kn=function(Ir){var Yr,Nr=Ir||((Yr=window)===null||Yr===void 0?void 0:Yr.event),Tn=Nr.buttons;if(!$r||Tn===0){$r&&rn(!1);return}var Cn=Cr.current.x+Ir.pageX-Cr.current.x-Cr.current.delta,jn=Ot==="rtl";Cn=Math.max(jn?er-Zt:0,Math.min(jn?0:Zt-er,Cn));var Jn=!jn||Math.abs(Cn)+Math.abs(er)<Zt;Jn&&(Yt({scrollLeft:Cn/Zt*(zt+2)}),Cr.current.x=Ir.pageX)},vn=function(){ir.Z.cancel(cn.current),cn.current=(0,ir.Z)(function(){if(It.current){var Ir=jt(It.current).top,Yr=Ir+It.current.offsetHeight,Nr=Qt===window?document.documentElement.scrollTop+window.innerHeight:jt(Qt).top+Qt.clientHeight;Yr-(0,ct.Z)()<=Nr||Ir>=Nr-rr?Er(function(Tn){return(0,be.Z)((0,be.Z)({},Tn),{},{isHiddenScrollBar:!0})}):Er(function(Tn){return(0,be.Z)((0,be.Z)({},Tn),{},{isHiddenScrollBar:!1})})}})},Sn=function(Ir){Er(function(Yr){return(0,be.Z)((0,be.Z)({},Yr),{},{scrollLeft:Ir/zt*Zt||0})})};return x.useImperativeHandle(Rt,function(){return{setScrollLeft:Sn,checkScrollBarVisible:vn}}),x.useEffect(function(){var Jr=(0,kt.Z)(document.body,"mouseup",nn,!1),Ir=(0,kt.Z)(document.body,"mousemove",kn,!1);return vn(),function(){Jr.remove(),Ir.remove()}},[er,$r]),x.useEffect(function(){if(It.current){for(var Jr=[],Ir=(0,Kt.bn)(It.current);Ir;)Jr.push(Ir),Ir=Ir.parentElement;return Jr.forEach(function(Yr){return Yr.addEventListener("scroll",vn,!1)}),window.addEventListener("resize",vn,!1),window.addEventListener("scroll",vn,!1),Qt.addEventListener("scroll",vn,!1),function(){Jr.forEach(function(Yr){return Yr.removeEventListener("scroll",vn)}),window.removeEventListener("resize",vn),window.removeEventListener("scroll",vn),Qt.removeEventListener("scroll",vn)}}},[Qt]),x.useEffect(function(){ar.isHiddenScrollBar||Er(function(Jr){var Ir=It.current;return Ir?(0,be.Z)((0,be.Z)({},Jr),{},{scrollLeft:Ir.scrollLeft/Ir.scrollWidth*Ir.clientWidth}):Jr})},[ar.isHiddenScrollBar]),zt<=Zt||!er||ar.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,ct.Z)(),width:Zt,bottom:rr},className:"".concat(Ut,"-sticky-scroll")},x.createElement("div",{onMouseDown:xn,ref:Bt,className:Ie()("".concat(Ut,"-sticky-scroll-bar"),(0,Ee.Z)({},"".concat(Ut,"-sticky-scroll-bar-active"),$r)),style:{width:"".concat(er,"px"),transform:"translate3d(".concat(ar.scrollLeft,"px, 0, 0)")}}))},dr=x.forwardRef(nr);function hr(gt){return null}var br=hr;function ur(gt){return null}var gr=ur,Pt="rc-table",Ur=[],sr={};function yr(){return"No Data"}function Or(gt,Lt){var Rt=(0,be.Z)({rowKey:"key",prefixCls:Pt,emptyText:yr},gt),Ft=Rt.prefixCls,Gt=Rt.className,It=Rt.rowClassName,Yt=Rt.style,rr=Rt.data,Qt=Rt.rowKey,Ot=Rt.scroll,Ut=Rt.tableLayout,zt=Rt.direction,Zt=Rt.title,er=Rt.footer,Bt=Rt.summary,Jt=Rt.caption,Xt=Rt.id,ar=Rt.showHeader,Er=Rt.components,Cr=Rt.emptyText,Vr=Rt.onRow,Ar=Rt.onHeaderRow,$r=Rt.onScroll,rn=Rt.internalHooks,cn=Rt.transformColumns,nn=Rt.internalRefs,xn=Rt.tailor,kn=Rt.getContainerWidth,vn=Rt.sticky,Sn=Rt.rowHoverable,Jr=Sn===void 0?!0:Sn,Ir=rr||Ur,Yr=!!Ir.length,Nr=rn===Ye.R,Tn=x.useCallback(function(Bn,Fn){return(0,Pe.Z)(Er,Bn)||Fn},[Er]),Cn=x.useMemo(function(){return typeof Qt=="function"?Qt:function(Bn){var Fn=Bn&&Bn[Qt];return Fn}},[Qt]),jn=Tn(["body"]),Jn=Lr(),Si=(0,mt.Z)(Jn,3),oi=Si[0],Gi=Si[1],ji=Si[2],Qn=Br(Rt,Ir,Cn),ei=(0,mt.Z)(Qn,6),ti=ei[0],ki=ei[1],ai=ei[2],ui=ei[3],si=ei[4],Xr=ei[5],fn=Ot==null?void 0:Ot.x,dn=x.useState(0),gn=(0,mt.Z)(dn,2),Zn=gn[0],qn=gn[1],Zi=(0,mr.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},Rt),ti),{},{expandable:!!ti.expandedRowRender,columnTitle:ti.columnTitle,expandedKeys:ai,getRowKey:Cn,onTriggerExpand:Xr,expandIcon:ui,expandIconColumnIndex:ti.expandIconColumnIndex,direction:zt,scrollWidth:Nr&&xn&&typeof fn=="number"?fn:null,clientWidth:Zn}),Nr?cn:null),di=(0,mt.Z)(Zi,4),fi=di[0],Pn=di[1],bi=di[2],Ki=di[3],ri=bi!=null?bi:fn,sa=x.useMemo(function(){return{columns:fi,flattenColumns:Pn}},[fi,Pn]),Vi=x.useRef(),$i=x.useRef(),vi=x.useRef(),ro=x.useRef();x.useImperativeHandle(Lt,function(){return{nativeElement:Vi.current,scrollTo:function(Fn){var Ci;if(vi.current instanceof HTMLElement){var Mi=Fn.index,_i=Fn.top,Ra=Fn.key;if(rt(_i)){var xa;(xa=vi.current)===null||xa===void 0||xa.scrollTo({top:_i})}else{var Ma,fa=Ra!=null?Ra:Cn(Ir[Mi]);(Ma=vi.current.querySelector('[data-row-key="'.concat(fa,'"]')))===null||Ma===void 0||Ma.scrollIntoView()}}else(Ci=vi.current)!==null&&Ci!==void 0&&Ci.scrollTo&&vi.current.scrollTo(Fn)}}});var Ya=x.useRef(),pa=x.useState(!1),ma=(0,mt.Z)(pa,2),na=ma[0],Ca=ma[1],no=x.useState(!1),io=(0,mt.Z)(no,2),ao=io[0],La=io[1],$a=x.useState(new Map),Ba=(0,mt.Z)($a,2),Ea=Ba[0],Ja=Ba[1],oo=Fe(Pn),Fa=oo.map(function(Bn){return Ea.get(Bn)}),ka=x.useMemo(function(){return Fa},[Fa.join("_")]),Ta=Kr(ka,Pn,zt),Fi=Ot&&qe(Ot.y),hi=Ot&&qe(ri)||!!ti.fixed,Un=hi&&Pn.some(function(Bn){var Fn=Bn.fixed;return Fn}),_n=x.useRef(),gi=Vt(vn,Ft),pi=gi.isSticky,wi=gi.offsetHeader,Ti=gi.offsetSummary,la=gi.offsetScroll,ia=gi.stickyClassName,va=gi.container,mi=x.useMemo(function(){return Bt==null?void 0:Bt(Ir)},[Bt,Ir]),Pi=(Fi||pi)&&x.isValidElement(mi)&&mi.type===Se&&mi.props.fixed,Ji,ua,Qa;Fi&&(ua={overflowY:Yr?"scroll":"auto",maxHeight:Ot.y}),hi&&(Ji={overflowX:"auto"},Fi||(ua={overflowY:"hidden"}),Qa={width:ri===!0?"auto":ri,minWidth:"100%"});var Co=x.useCallback(function(Bn,Fn){Ja(function(Ci){if(Ci.get(Bn)!==Fn){var Mi=new Map(Ci);return Mi.set(Bn,Fn),Mi}return Ci})},[]),Eo=Zr(null),wa=(0,mt.Z)(Eo,2),Aa=wa[0],Ui=wa[1];function ca(Bn,Fn){Fn&&(typeof Fn=="function"?Fn(Bn):Fn.scrollLeft!==Bn&&(Fn.scrollLeft=Bn,Fn.scrollLeft!==Bn&&setTimeout(function(){Fn.scrollLeft=Bn},0)))}var Qi=(0,y.Z)(function(Bn){var Fn=Bn.currentTarget,Ci=Bn.scrollLeft,Mi=zt==="rtl",_i=typeof Ci=="number"?Ci:Fn.scrollLeft,Ra=Fn||sr;if(!Ui()||Ui()===Ra){var xa;Aa(Ra),ca(_i,$i.current),ca(_i,vi.current),ca(_i,Ya.current),ca(_i,(xa=_n.current)===null||xa===void 0?void 0:xa.setScrollLeft)}var Ma=Fn||$i.current;if(Ma){var fa=Nr&&xn&&typeof ri=="number"?ri:Ma.scrollWidth,ga=Ma.clientWidth;if(fa===ga){Ca(!1),La(!1);return}Mi?(Ca(-_i<fa-ga),La(-_i>0)):(Ca(_i>0),La(_i<fa-ga))}}),so=(0,y.Z)(function(Bn){Qi(Bn),$r==null||$r(Bn)}),Jo=function(){if(hi&&vi.current){var Fn;Qi({currentTarget:(0,Kt.bn)(vi.current),scrollLeft:(Fn=vi.current)===null||Fn===void 0?void 0:Fn.scrollLeft})}else Ca(!1),La(!1)},Qo=function(Fn){var Ci,Mi=Fn.width;(Ci=_n.current)===null||Ci===void 0||Ci.checkScrollBarVisible();var _i=Vi.current?Vi.current.offsetWidth:Mi;Nr&&kn&&Vi.current&&(_i=kn(Vi.current,_i)||_i),_i!==Zn&&(Jo(),qn(_i))},Ua=x.useRef(!1);x.useEffect(function(){Ua.current&&Jo()},[hi,rr,fi.length]),x.useEffect(function(){Ua.current=!0},[]);var qo=x.useState(0),ko=(0,mt.Z)(qo,2),ja=ko[0],es=ko[1],To=x.useState(!0),Ao=(0,mt.Z)(To,2),jo=Ao[0],Oo=Ao[1];(0,Ce.Z)(function(){(!xn||!Nr)&&(vi.current instanceof Element?es((0,ct.o)(vi.current).width):es((0,ct.o)(ro.current).width)),Oo((0,dt.G)("position","sticky"))},[]),x.useEffect(function(){Nr&&nn&&(nn.body.current=vi.current)});var Wa=x.useCallback(function(Bn){return x.createElement(x.Fragment,null,x.createElement(Pr,Bn),Pi==="top"&&x.createElement(We,Bn,mi))},[Pi,mi]),lo=x.useCallback(function(Bn){return x.createElement(We,Bn,mi)},[mi]),Do=Tn(["table"],"table"),Oa=x.useMemo(function(){return Ut||(Un?ri==="max-content"?"auto":"fixed":Fi||pi||Pn.some(function(Bn){var Fn=Bn.ellipsis;return Fn})?"fixed":"auto")},[Fi,Un,Pn,Ut,pi]),Po,_o={colWidths:ka,columCount:Pn.length,stickyOffsets:Ta,onHeaderRow:Ar,fixHeader:Fi,scroll:Ot},ts=x.useMemo(function(){return Yr?null:typeof Cr=="function"?Cr():Cr},[Yr,Cr]),uo=x.createElement(Dr,{data:Ir,measureColumnWidth:Fi||hi||pi}),co=x.createElement(hn,{colWidths:Pn.map(function(Bn){var Fn=Bn.width;return Fn}),columns:Pn}),Da=Jt!=null?x.createElement("caption",{className:"".concat(Ft,"-caption")},Jt):void 0,qa=(0,pt.Z)(Rt,{data:!0}),rs=(0,pt.Z)(Rt,{aria:!0});if(Fi||pi){var Za;typeof jn=="function"?(Za=jn(Ir,{scrollbarSize:ja,ref:vi,onScroll:Qi}),_o.colWidths=Pn.map(function(Bn,Fn){var Ci=Bn.width,Mi=Fn===Pn.length-1?Ci-ja:Ci;return typeof Mi=="number"&&!Number.isNaN(Mi)?Mi:0})):Za=x.createElement("div",{style:(0,be.Z)((0,be.Z)({},Ji),ua),onScroll:so,ref:vi,className:Ie()("".concat(Ft,"-body"))},x.createElement(Do,(0,ee.Z)({style:(0,be.Z)((0,be.Z)({},Qa),{},{tableLayout:Oa})},rs),Da,co,uo,!Pi&&mi&&x.createElement(We,{stickyOffsets:Ta,flattenColumns:Pn},mi)));var Ro=(0,be.Z)((0,be.Z)((0,be.Z)({noData:!Ir.length,maxContentScroll:hi&&ri==="max-content"},_o),sa),{},{direction:zt,stickyClassName:ia,onScroll:Qi});Po=x.createElement(x.Fragment,null,ar!==!1&&x.createElement(Sr,(0,ee.Z)({},Ro,{stickyTopOffset:wi,className:"".concat(Ft,"-header"),ref:$i}),Wa),Za,Pi&&Pi!=="top"&&x.createElement(Sr,(0,ee.Z)({},Ro,{stickyBottomOffset:Ti,className:"".concat(Ft,"-summary"),ref:Ya}),lo),pi&&vi.current&&vi.current instanceof Element&&x.createElement(dr,{ref:_n,offsetScroll:la,scrollBodyRef:vi,onScroll:Qi,container:va,direction:zt}))}else Po=x.createElement("div",{style:(0,be.Z)((0,be.Z)({},Ji),ua),className:Ie()("".concat(Ft,"-content")),onScroll:Qi,ref:vi},x.createElement(Do,(0,ee.Z)({style:(0,be.Z)((0,be.Z)({},Qa),{},{tableLayout:Oa})},rs),Da,co,ar!==!1&&x.createElement(Pr,(0,ee.Z)({},_o,sa)),uo,mi&&x.createElement(We,{stickyOffsets:Ta,flattenColumns:Pn},mi)));var Pa=x.createElement("div",(0,ee.Z)({className:Ie()(Ft,Gt,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(Ft,"-rtl"),zt==="rtl"),"".concat(Ft,"-ping-left"),na),"".concat(Ft,"-ping-right"),ao),"".concat(Ft,"-layout-fixed"),Ut==="fixed"),"".concat(Ft,"-fixed-header"),Fi),"".concat(Ft,"-fixed-column"),Un),"".concat(Ft,"-fixed-column-gapped"),Un&&Ki),"".concat(Ft,"-scroll-horizontal"),hi),"".concat(Ft,"-has-fix-left"),Pn[0]&&Pn[0].fixed),"".concat(Ft,"-has-fix-right"),Pn[Pn.length-1]&&Pn[Pn.length-1].fixed==="right")),style:Yt,id:Xt,ref:Vi},qa),Zt&&x.createElement(Ct,{className:"".concat(Ft,"-title")},Zt(Ir)),x.createElement("div",{ref:ro,className:"".concat(Ft,"-container")},Po),er&&x.createElement(Ct,{className:"".concat(Ft,"-footer")},er(Ir)));hi&&(Pa=x.createElement(nt.Z,{onResize:Qo},Pa));var Mo=qr(Pn,Ta,zt),_a=x.useMemo(function(){return{scrollX:ri,prefixCls:Ft,getComponent:Tn,scrollbarSize:ja,direction:zt,fixedInfoList:Mo,isSticky:pi,supportSticky:jo,componentWidth:Zn,fixHeader:Fi,fixColumn:Un,horizonScroll:hi,tableLayout:Oa,rowClassName:It,expandedRowClassName:ti.expandedRowClassName,expandIcon:ui,expandableType:ki,expandRowByClick:ti.expandRowByClick,expandedRowRender:ti.expandedRowRender,onTriggerExpand:Xr,expandIconColumnIndex:ti.expandIconColumnIndex,indentSize:ti.indentSize,allColumnsFixedLeft:Pn.every(function(Bn){return Bn.fixed==="left"}),emptyNode:ts,columns:fi,flattenColumns:Pn,onColumnResize:Co,hoverStartRow:oi,hoverEndRow:Gi,onHover:ji,rowExpandable:ti.rowExpandable,onRow:Vr,getRowKey:Cn,expandedKeys:ai,childrenColumnName:si,rowHoverable:Jr}},[ri,Ft,Tn,ja,zt,Mo,pi,jo,Zn,Fi,Un,hi,Oa,It,ti.expandedRowClassName,ui,ki,ti.expandRowByClick,ti.expandedRowRender,Xr,ti.expandIconColumnIndex,ti.indentSize,ts,fi,Pn,Co,oi,Gi,ji,ti.rowExpandable,Vr,Cn,ai,si,Jr]);return x.createElement(Te.Provider,{value:_a},Pa)}var Wr=x.forwardRef(Or);function an(gt){return pe(Wr,gt)}var Ln=an();Ln.EXPAND_COLUMN=Ye.w,Ln.INTERNAL_HOOKS=Ye.R,Ln.Column=br,Ln.ColumnGroup=gr,Ln.Summary=et;var yn=Ln,un=Ge(6790),On=se(null),zr=se(null);function zn(gt,Lt,Rt){var Ft=Lt||1;return Rt[gt+Ft]-(Rt[gt]||0)}function Xn(gt){var Lt=gt.rowInfo,Rt=gt.column,Ft=gt.colIndex,Gt=gt.indent,It=gt.index,Yt=gt.component,rr=gt.renderIndex,Qt=gt.record,Ot=gt.style,Ut=gt.className,zt=gt.inverse,Zt=gt.getHeight,er=Rt.render,Bt=Rt.dataIndex,Jt=Rt.className,Xt=Rt.width,ar=ae(zr,["columnsOffset"]),Er=ar.columnsOffset,Cr=At(Lt,Rt,Ft,Gt,It),Vr=Cr.key,Ar=Cr.fixedInfo,$r=Cr.appendCellNode,rn=Cr.additionalCellProps,cn=rn.style,nn=rn.colSpan,xn=nn===void 0?1:nn,kn=rn.rowSpan,vn=kn===void 0?1:kn,Sn=Ft-1,Jr=zn(Sn,xn,Er),Ir=xn>1?Xt-Jr:0,Yr=(0,be.Z)((0,be.Z)((0,be.Z)({},cn),Ot),{},{flex:"0 0 ".concat(Jr,"px"),width:"".concat(Jr,"px"),marginRight:Ir,pointerEvents:"auto"}),Nr=x.useMemo(function(){return zt?vn<=1:xn===0||vn===0||vn>1},[vn,xn,zt]);Nr?Yr.visibility="hidden":zt&&(Yr.height=Zt==null?void 0:Zt(vn));var Tn=Nr?function(){return null}:er,Cn={};return(vn===0||xn===0)&&(Cn.rowSpan=1,Cn.colSpan=1),x.createElement(st,(0,ee.Z)({className:Ie()(Jt,Ut),ellipsis:Rt.ellipsis,align:Rt.align,scope:Rt.rowScope,component:Yt,prefixCls:Lt.prefixCls,key:Vr,record:Qt,index:It,renderIndex:rr,dataIndex:Bt,render:Tn,shouldCellUpdate:Rt.shouldCellUpdate},Ar,{appendNode:$r,additionalProps:(0,be.Z)((0,be.Z)({},rn),{},{style:Yr},Cn)}))}var Hn=Xn,Gn=["data","index","className","rowKey","style","extra","getHeight"],Yn=x.forwardRef(function(gt,Lt){var Rt=gt.data,Ft=gt.index,Gt=gt.className,It=gt.rowKey,Yt=gt.style,rr=gt.extra,Qt=gt.getHeight,Ot=(0,ce.Z)(gt,Gn),Ut=Rt.record,zt=Rt.indent,Zt=Rt.index,er=ae(Te,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Bt=er.scrollX,Jt=er.flattenColumns,Xt=er.prefixCls,ar=er.fixColumn,Er=er.componentWidth,Cr=ae(On,["getComponent"]),Vr=Cr.getComponent,Ar=xt(Ut,It,Ft,zt),$r=Vr(["body","row"],"div"),rn=Vr(["body","cell"],"div"),cn=Ar.rowSupportExpand,nn=Ar.expanded,xn=Ar.rowProps,kn=Ar.expandedRowRender,vn=Ar.expandedRowClassName,Sn;if(cn&&nn){var Jr=kn(Ut,Ft,zt+1,nn),Ir=Dt(vn,Ut,Ft,zt),Yr={};ar&&(Yr={style:(0,Ee.Z)({},"--virtual-width","".concat(Er,"px"))});var Nr="".concat(Xt,"-expanded-row-cell");Sn=x.createElement($r,{className:Ie()("".concat(Xt,"-expanded-row"),"".concat(Xt,"-expanded-row-level-").concat(zt+1),Ir)},x.createElement(st,{component:rn,prefixCls:Xt,className:Ie()(Nr,(0,Ee.Z)({},"".concat(Nr,"-fixed"),ar)),additionalProps:Yr},Jr))}var Tn=(0,be.Z)((0,be.Z)({},Yt),{},{width:Bt});rr&&(Tn.position="absolute",Tn.pointerEvents="none");var Cn=x.createElement($r,(0,ee.Z)({},xn,Ot,{"data-row-key":It,ref:cn?null:Lt,className:Ie()(Gt,"".concat(Xt,"-row"),xn==null?void 0:xn.className,(0,Ee.Z)({},"".concat(Xt,"-row-extra"),rr)),style:(0,be.Z)((0,be.Z)({},Tn),xn==null?void 0:xn.style)}),Jt.map(function(jn,Jn){return x.createElement(Hn,{key:Jn,component:rn,rowInfo:Ar,column:jn,colIndex:Jn,indent:zt,index:Ft,renderIndex:Zt,record:Ut,inverse:rr,getHeight:Qt})}));return cn?x.createElement("div",{ref:Lt},Cn,Sn):Cn}),Kn=ve(Yn),Dn=Kn,$n=x.forwardRef(function(gt,Lt){var Rt=gt.data,Ft=gt.onScroll,Gt=ae(Te,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),It=Gt.flattenColumns,Yt=Gt.onColumnResize,rr=Gt.getRowKey,Qt=Gt.expandedKeys,Ot=Gt.prefixCls,Ut=Gt.childrenColumnName,zt=Gt.scrollX,Zt=Gt.direction,er=ae(On),Bt=er.sticky,Jt=er.scrollY,Xt=er.listItemHeight,ar=er.getComponent,Er=er.onScroll,Cr=x.useRef(),Vr=yt(Rt,Ut,Qt,rr),Ar=x.useMemo(function(){var Sn=0;return It.map(function(Jr){var Ir=Jr.width,Yr=Jr.key;return Sn+=Ir,[Yr,Ir,Sn]})},[It]),$r=x.useMemo(function(){return Ar.map(function(Sn){return Sn[2]})},[Ar]);x.useEffect(function(){Ar.forEach(function(Sn){var Jr=(0,mt.Z)(Sn,2),Ir=Jr[0],Yr=Jr[1];Yt(Ir,Yr)})},[Ar]),x.useImperativeHandle(Lt,function(){var Sn,Jr={scrollTo:function(Yr){var Nr;(Nr=Cr.current)===null||Nr===void 0||Nr.scrollTo(Yr)},nativeElement:(Sn=Cr.current)===null||Sn===void 0?void 0:Sn.nativeElement};return Object.defineProperty(Jr,"scrollLeft",{get:function(){var Yr;return((Yr=Cr.current)===null||Yr===void 0?void 0:Yr.getScrollInfo().x)||0},set:function(Yr){var Nr;(Nr=Cr.current)===null||Nr===void 0||Nr.scrollTo({left:Yr})}}),Jr});var rn=function(Jr,Ir){var Yr,Nr=(Yr=Vr[Ir])===null||Yr===void 0?void 0:Yr.record,Tn=Jr.onCell;if(Tn){var Cn,jn=Tn(Nr,Ir);return(Cn=jn==null?void 0:jn.rowSpan)!==null&&Cn!==void 0?Cn:1}return 1},cn=function(Jr){var Ir=Jr.start,Yr=Jr.end,Nr=Jr.getSize,Tn=Jr.offsetY;if(Yr<0)return null;for(var Cn=It.filter(function(ui){return rn(ui,Ir)===0}),jn=Ir,Jn=function(si){if(Cn=Cn.filter(function(Xr){return rn(Xr,si)===0}),!Cn.length)return jn=si,1},Si=Ir;Si>=0&&!Jn(Si);Si-=1);for(var oi=It.filter(function(ui){return rn(ui,Yr)!==1}),Gi=Yr,ji=function(si){if(oi=oi.filter(function(Xr){return rn(Xr,si)!==1}),!oi.length)return Gi=Math.max(si-1,Yr),1},Qn=Yr;Qn<Vr.length&&!ji(Qn);Qn+=1);for(var ei=[],ti=function(si){var Xr=Vr[si];if(!Xr)return 1;It.some(function(fn){return rn(fn,si)>1})&&ei.push(si)},ki=jn;ki<=Gi;ki+=1)ti(ki);var ai=ei.map(function(ui){var si=Vr[ui],Xr=rr(si.record,ui),fn=function(Zn){var qn=ui+Zn-1,Zi=rr(Vr[qn].record,qn),di=Nr(Xr,Zi);return di.bottom-di.top},dn=Nr(Xr);return x.createElement(Dn,{key:ui,data:si,rowKey:Xr,index:ui,style:{top:-Tn+dn.top},extra:!0,getHeight:fn})});return ai},nn=x.useMemo(function(){return{columnsOffset:$r}},[$r]),xn="".concat(Ot,"-tbody"),kn=ar(["body","wrapper"]),vn={};return Bt&&(vn.position="sticky",vn.bottom=0,(0,ge.Z)(Bt)==="object"&&Bt.offsetScroll&&(vn.bottom=Bt.offsetScroll)),x.createElement(zr.Provider,{value:nn},x.createElement(un.Z,{fullHeight:!1,ref:Cr,prefixCls:"".concat(xn,"-virtual"),styles:{horizontalScrollBar:vn},className:xn,height:Jt,itemHeight:Xt||24,data:Vr,itemKey:function(Jr){return rr(Jr.record)},component:kn,scrollWidth:zt,direction:Zt,onVirtualScroll:function(Jr){var Ir,Yr=Jr.x;Ft({currentTarget:(Ir=Cr.current)===null||Ir===void 0?void 0:Ir.nativeElement,scrollLeft:Yr})},onScroll:Er,extraRender:cn},function(Sn,Jr,Ir){var Yr=rr(Sn.record,Jr);return x.createElement(Dn,{data:Sn,rowKey:Yr,index:Jr,style:Ir.style})}))}),Wn=ve($n),_r=Wn,en=function(Lt,Rt){var Ft=Rt.ref,Gt=Rt.onScroll;return x.createElement(_r,{ref:Ft,data:Lt,onScroll:Gt})};function bn(gt,Lt){var Rt=gt.data,Ft=gt.columns,Gt=gt.scroll,It=gt.sticky,Yt=gt.prefixCls,rr=Yt===void 0?Pt:Yt,Qt=gt.className,Ot=gt.listItemHeight,Ut=gt.components,zt=gt.onScroll,Zt=Gt||{},er=Zt.x,Bt=Zt.y;typeof er!="number"&&(er=1),typeof Bt!="number"&&(Bt=500);var Jt=(0,at.zX)(function(Er,Cr){return(0,Pe.Z)(Ut,Er)||Cr}),Xt=(0,at.zX)(zt),ar=x.useMemo(function(){return{sticky:It,scrollY:Bt,listItemHeight:Ot,getComponent:Jt,onScroll:Xt}},[It,Bt,Ot,Jt,Xt]);return x.createElement(On.Provider,{value:ar},x.createElement(yn,(0,ee.Z)({},gt,{className:Ie()(Qt,"".concat(rr,"-virtual")),scroll:(0,be.Z)((0,be.Z)({},Gt),{},{x:er}),components:(0,be.Z)((0,be.Z)({},Ut),{},{body:Rt!=null&&Rt.length?en:void 0}),columns:Ft,internalHooks:Ye.R,tailor:!0,ref:Lt})))}var In=x.forwardRef(bn);function Mn(gt){return pe(In,gt)}var Nn=Mn(),ii=null},54451:function(Ht,_t,Ge){"use strict";Ge.d(_t,{g:function(){return x},v:function(){return ye}});var Ye=Ge(27247),mt=Ge(43079),y=Ge(48736),Ce=["expandable"],ye="RC_TABLE_INTERNAL_COL_DEFINE";function x(z){var se=z.expandable,ae=(0,mt.Z)(z,Ce),ee;return"expandable"in z?ee=(0,Ye.Z)((0,Ye.Z)({},ae),se):ee=ae,ee.showExpandColumn===!1&&(ee.expandIconColumnIndex=-1),ee}},22711:function(Ht,_t,Ge){"use strict";Ge.r(_t),Ge.d(_t,{ResizableTextArea:function(){return Re},default:function(){return Ze}});var Ye=Ge(32855),mt=Ge(74430),y=Ge(27247),Ce=Ge(3300),ye=Ge(11913),x=Ge(43079),z=Ge(92310),se=Ge.n(z),ae=Ge(36901),ee=Ge(66003),fe=Ge(30292),E=Ge(18929),re=Ge(59301),ne=Ge(34666),le=Ge(29301),ue=Ge(34280),he=Ge(16089),pe=`
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;
`,ve=["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"],de={},we;function Te(He){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=He.getAttribute("id")||He.getAttribute("data-reactid")||He.getAttribute("name");if($e&&de[it])return de[it];var Ne=window.getComputedStyle(He),Fe=Ne.getPropertyValue("box-sizing")||Ne.getPropertyValue("-moz-box-sizing")||Ne.getPropertyValue("-webkit-box-sizing"),qe=parseFloat(Ne.getPropertyValue("padding-bottom"))+parseFloat(Ne.getPropertyValue("padding-top")),rt=parseFloat(Ne.getPropertyValue("border-bottom-width"))+parseFloat(Ne.getPropertyValue("border-top-width")),tt=ve.map(function(Ke){return"".concat(Ke,":").concat(Ne.getPropertyValue(Ke))}).join(";"),Ve={sizingStyle:tt,paddingSize:qe,borderSize:rt,boxSizing:Fe};return $e&&it&&(de[it]=Ve),Ve}function je(He){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),we.setAttribute("name","hiddenTextarea"),document.body.appendChild(we)),He.getAttribute("wrap")?we.setAttribute("wrap",He.getAttribute("wrap")):we.removeAttribute("wrap");var Fe=Te(He,$e),qe=Fe.paddingSize,rt=Fe.borderSize,tt=Fe.boxSizing,Ve=Fe.sizingStyle;we.setAttribute("style","".concat(Ve,";").concat(pe)),we.value=He.value||He.placeholder||"";var Ke=void 0,ze=void 0,at,Qe=we.scrollHeight;if(tt==="border-box"?Qe+=rt:tt==="content-box"&&(Qe-=qe),it!==null||Ne!==null){we.value=" ";var ut=we.scrollHeight-qe;it!==null&&(Ke=ut*it,tt==="border-box"&&(Ke=Ke+qe+rt),Qe=Math.max(Ke,Qe)),Ne!==null&&(ze=ut*Ne,tt==="border-box"&&(ze=ze+qe+rt),at=Qe>ze?"":"hidden",Qe=Math.min(ze,Qe))}var st={height:Qe,overflowY:at,resize:"none"};return Ke&&(st.minHeight=Ke),ze&&(st.maxHeight=ze),st}var Me=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ae=0,ge=1,be=2,Ee=re.forwardRef(function(He,$e){var it=He,Ne=it.prefixCls,Fe=it.defaultValue,qe=it.value,rt=it.autoSize,tt=it.onResize,Ve=it.className,Ke=it.style,ze=it.disabled,at=it.onChange,Qe=it.onInternalAutoSize,ut=(0,x.Z)(it,Me),st=(0,E.Z)(Fe,{value:qe,postState:function($t){return $t!=null?$t:""}}),Xe=(0,ye.Z)(st,2),Le=Xe[0],De=Xe[1],te=function($t){De($t.target.value),at==null||at($t)},ce=re.useRef();re.useImperativeHandle($e,function(){return{textArea:ce.current}});var _e=re.useMemo(function(){return rt&&(0,ne.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),Ue=(0,ye.Z)(_e,2),xe=Ue[0],Se=Ue[1],Oe=!!rt,We=function(){try{if(document.activeElement===ce.current){var $t=ce.current,pr=$t.selectionStart,qt=$t.selectionEnd,wr=$t.scrollTop;ce.current.setSelectionRange(pr,qt),ce.current.scrollTop=wr}}catch(jr){}},et=re.useState(be),nt=(0,ye.Z)(et,2),dt=nt[0],ct=nt[1],pt=re.useState(),St=(0,ye.Z)(pt,2),yt=St[0],xt=St[1],vt=function(){ct(Ae)};(0,ue.Z)(function(){Oe&&vt()},[qe,xe,Se,Oe]),(0,ue.Z)(function(){if(dt===Ae)ct(ge);else if(dt===ge){var Mt=je(ce.current,!1,xe,Se);ct(be),xt(Mt)}else We()},[dt]);var Tt=re.useRef(),bt=function(){he.Z.cancel(Tt.current)},ft=function($t){dt===be&&(tt==null||tt($t),rt&&(bt(),Tt.current=(0,he.Z)(function(){vt()})))};re.useEffect(function(){return bt},[]);var Dt=Oe?yt:null,At=(0,y.Z)((0,y.Z)({},Ke),Dt);return(dt===Ae||dt===ge)&&(At.overflowY="hidden",At.overflowX="hidden"),re.createElement(le.Z,{onResize:ft,disabled:!(rt||tt)},re.createElement("textarea",(0,Ye.Z)({},ut,{ref:ce,style:At,className:se()(Ne,Ve,(0,mt.Z)({},"".concat(Ne,"-disabled"),ze)),disabled:ze,value:Le,onChange:te})))}),Re=Ee,Ie=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],ke=re.forwardRef(function(He,$e){var it,Ne=He.defaultValue,Fe=He.value,qe=He.onFocus,rt=He.onBlur,tt=He.onChange,Ve=He.allowClear,Ke=He.maxLength,ze=He.onCompositionStart,at=He.onCompositionEnd,Qe=He.suffix,ut=He.prefixCls,st=ut===void 0?"rc-textarea":ut,Xe=He.showCount,Le=He.count,De=He.className,te=He.style,ce=He.disabled,_e=He.hidden,Ue=He.classNames,xe=He.styles,Se=He.onResize,Oe=He.onClear,We=He.onPressEnter,et=He.readOnly,nt=He.autoSize,dt=He.onKeyDown,ct=(0,x.Z)(He,Ie),pt=(0,E.Z)(Ne,{value:Fe,defaultValue:Ne}),St=(0,ye.Z)(pt,2),yt=St[0],xt=St[1],vt=yt==null?"":String(yt),Tt=re.useState(!1),bt=(0,ye.Z)(Tt,2),ft=bt[0],Dt=bt[1],At=re.useRef(!1),Mt=re.useState(null),$t=(0,ye.Z)(Mt,2),pr=$t[0],qt=$t[1],wr=(0,re.useRef)(null),jr=(0,re.useRef)(null),Dr=function(){var xr;return(xr=jr.current)===null||xr===void 0?void 0:xr.textArea},Fr=function(){Dr().focus()};(0,re.useImperativeHandle)($e,function(){var Vt;return{resizableTextArea:jr.current,focus:Fr,blur:function(){Dr().blur()},nativeElement:((Vt=wr.current)===null||Vt===void 0?void 0:Vt.nativeElement)||Dr()}}),(0,re.useEffect)(function(){Dt(function(Vt){return!ce&&Vt})},[ce]);var on=re.useState(null),wn=(0,ye.Z)(on,2),hn=wn[0],Gr=wn[1];re.useEffect(function(){if(hn){var Vt;(Vt=Dr()).setSelectionRange.apply(Vt,(0,Ce.Z)(hn))}},[hn]);var An=(0,ee.Z)(Le,Xe),Rn=(it=An.max)!==null&&it!==void 0?it:Ke,Tr=Number(Rn)>0,Sr=An.strategy(vt),sn=!!Rn&&Sr>Rn,lr=function(xr,Kr){var mn=Kr;!At.current&&An.exceedFormatter&&An.max&&An.strategy(Kr)>An.max&&(mn=An.exceedFormatter(Kr,{max:An.max}),Kr!==mn&&Gr([Dr().selectionStart||0,Dr().selectionEnd||0])),xt(mn),(0,fe.rJ)(xr.currentTarget,xr,tt,mn)},tr=function(xr){At.current=!0,ze==null||ze(xr)},or=function(xr){At.current=!1,lr(xr,xr.currentTarget.value),at==null||at(xr)},Pr=function(xr){lr(xr,xr.target.value)},mr=function(xr){xr.key==="Enter"&&We&&We(xr),dt==null||dt(xr)},Br=function(xr){Dt(!0),qe==null||qe(xr)},qr=function(xr){Dt(!1),rt==null||rt(xr)},tn=function(xr){xt(""),Fr(),(0,fe.rJ)(Dr(),xr,tt)},Zr=Qe,Lr;An.show&&(An.showFormatter?Lr=An.showFormatter({value:vt,count:Sr,maxLength:Rn}):Lr="".concat(Sr).concat(Tr?" / ".concat(Rn):""),Zr=re.createElement(re.Fragment,null,Zr,re.createElement("span",{className:se()("".concat(st,"-data-count"),Ue==null?void 0:Ue.count),style:xe==null?void 0:xe.count},Lr)));var pn=function(xr){var Kr;Se==null||Se(xr),(Kr=Dr())!==null&&Kr!==void 0&&Kr.style.height&&qt(!0)},fr=!nt&&!Xe&&!Ve;return re.createElement(ae.BaseInput,{ref:wr,value:vt,allowClear:Ve,handleReset:tn,suffix:Zr,prefixCls:st,classNames:(0,y.Z)((0,y.Z)({},Ue),{},{affixWrapper:se()(Ue==null?void 0:Ue.affixWrapper,(0,mt.Z)((0,mt.Z)({},"".concat(st,"-show-count"),Xe),"".concat(st,"-textarea-allow-clear"),Ve))}),disabled:ce,focused:ft,className:se()(De,sn&&"".concat(st,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},te),pr&&!fr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Lr=="string"?Lr:void 0}},hidden:_e,readOnly:et,onClear:Oe},re.createElement(Re,(0,Ye.Z)({},ct,{autoSize:nt,maxLength:Ke,onKeyDown:mr,onChange:Pr,onFocus:Br,onBlur:qr,onCompositionStart:tr,onCompositionEnd:or,className:se()(Ue==null?void 0:Ue.textarea),style:(0,y.Z)((0,y.Z)({},xe==null?void 0:xe.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ce,prefixCls:st,onResize:pn,ref:jr,readOnly:et})))}),Pe=ke,Ze=Pe},639:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return de}});var Ye=Ge(32855),mt=Ge(74430),y=Ge(27247),Ce=Ge(11913),ye=Ge(43079),x=Ge(59301),z=Ge(92310),se=Ge.n(z),ae=Ge(26112),ee=Ge(30699),fe=function(Te){for(var je=Te.prefixCls,Me=Te.level,Ae=Te.isStart,ge=Te.isEnd,be="".concat(je,"-indent-unit"),Ee=[],Re=0;Re<Me;Re+=1)Ee.push(x.createElement("span",{key:Re,className:se()(be,(0,mt.Z)((0,mt.Z)({},"".concat(be,"-start"),Ae[Re]),"".concat(be,"-end"),ge[Re]))}));return x.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},Ee)},E=x.memo(fe),re=Ge(65065),ne=Ge(34061),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",he="close",pe="---",ve=function(Te){var je,Me,Ae,ge=Te.eventKey,be=Te.className,Ee=Te.style,Re=Te.dragOver,Ie=Te.dragOverGapTop,ke=Te.dragOverGapBottom,Pe=Te.isLeaf,Ze=Te.isStart,He=Te.isEnd,$e=Te.expanded,it=Te.selected,Ne=Te.checked,Fe=Te.halfChecked,qe=Te.loading,rt=Te.domRef,tt=Te.active,Ve=Te.data,Ke=Te.onMouseMove,ze=Te.selectable,at=(0,ye.Z)(Te,le),Qe=x.useContext(ee.k),ut=x.useContext(ee.y),st=x.useRef(null),Xe=x.useState(!1),Le=(0,Ce.Z)(Xe,2),De=Le[0],te=Le[1],ce=!!(Qe.disabled||Te.disabled||(je=ut.nodeDisabled)!==null&&je!==void 0&&je.call(ut,Ve)),_e=x.useMemo(function(){return!Qe.checkable||Te.checkable===!1?!1:Qe.checkable},[Qe.checkable,Te.checkable]),Ue=function(Sr){ce||Qe.onNodeSelect(Sr,(0,ne.F)(Te))},xe=function(Sr){ce||!_e||Te.disableCheckbox||Qe.onNodeCheck(Sr,(0,ne.F)(Te),!Ne)},Se=x.useMemo(function(){return typeof ze=="boolean"?ze:Qe.selectable},[ze,Qe.selectable]),Oe=function(Sr){Qe.onNodeClick(Sr,(0,ne.F)(Te)),Se?Ue(Sr):xe(Sr)},We=function(Sr){Qe.onNodeDoubleClick(Sr,(0,ne.F)(Te))},et=function(Sr){Qe.onNodeMouseEnter(Sr,(0,ne.F)(Te))},nt=function(Sr){Qe.onNodeMouseLeave(Sr,(0,ne.F)(Te))},dt=function(Sr){Qe.onNodeContextMenu(Sr,(0,ne.F)(Te))},ct=x.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable(Ve)))},[Qe.draggable,Ve]),pt=function(Sr){Sr.stopPropagation(),te(!0),Qe.onNodeDragStart(Sr,Te);try{Sr.dataTransfer.setData("text/plain","")}catch(sn){}},St=function(Sr){Sr.preventDefault(),Sr.stopPropagation(),Qe.onNodeDragEnter(Sr,Te)},yt=function(Sr){Sr.preventDefault(),Sr.stopPropagation(),Qe.onNodeDragOver(Sr,Te)},xt=function(Sr){Sr.stopPropagation(),Qe.onNodeDragLeave(Sr,Te)},vt=function(Sr){Sr.stopPropagation(),te(!1),Qe.onNodeDragEnd(Sr,Te)},Tt=function(Sr){Sr.preventDefault(),Sr.stopPropagation(),te(!1),Qe.onNodeDrop(Sr,Te)},bt=function(Sr){qe||Qe.onNodeExpand(Sr,(0,ne.F)(Te))},ft=x.useMemo(function(){var Tr=(0,re.Z)(Qe.keyEntities,ge)||{},Sr=Tr.children;return!!(Sr||[]).length},[Qe.keyEntities,ge]),Dt=x.useMemo(function(){return Pe===!1?!1:Pe||!Qe.loadData&&!ft||Qe.loadData&&Te.loaded&&!ft},[Pe,Qe.loadData,ft,Te.loaded]);x.useEffect(function(){qe||typeof Qe.loadData=="function"&&$e&&!Dt&&!Te.loaded&&Qe.onNodeLoad((0,ne.F)(Te))},[qe,Qe.loadData,Qe.onNodeLoad,$e,Dt,Te]);var At=x.useMemo(function(){var Tr;return(Tr=Qe.draggable)!==null&&Tr!==void 0&&Tr.icon?x.createElement("span",{className:"".concat(Qe.prefixCls,"-draggable-icon")},Qe.draggable.icon):null},[Qe.draggable]),Mt=function(Sr){var sn=Te.switcherIcon||Qe.switcherIcon;return typeof sn=="function"?sn((0,y.Z)((0,y.Z)({},Te),{},{isLeaf:Sr})):sn},$t=function(){if(Dt){var Sr=Mt(!0);return Sr!==!1?x.createElement("span",{className:se()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},Sr):null}var sn=Mt(!1);return sn!==!1?x.createElement("span",{onClick:bt,className:se()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat($e?ue:he))},sn):null},pr=x.useMemo(function(){if(!_e)return null;var Tr=typeof _e!="boolean"?_e:null;return x.createElement("span",{className:se()("".concat(Qe.prefixCls,"-checkbox"),(0,mt.Z)((0,mt.Z)((0,mt.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),Ne),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!Ne&&Fe),"".concat(Qe.prefixCls,"-checkbox-disabled"),ce||Te.disableCheckbox)),onClick:xe,role:"checkbox","aria-checked":Fe?"mixed":Ne,"aria-disabled":ce||Te.disableCheckbox,"aria-label":"Select ".concat(typeof Te.title=="string"?Te.title:"tree node")},Tr)},[_e,Ne,Fe,ce,Te.disableCheckbox,Te.title]),qt=x.useMemo(function(){return Dt?null:$e?ue:he},[Dt,$e]),wr=x.useMemo(function(){return x.createElement("span",{className:se()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(qt||"docu"),(0,mt.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),qe))})},[Qe.prefixCls,qt,qe]),jr=x.useMemo(function(){var Tr=!!Qe.draggable,Sr=!Te.disabled&&Tr&&Qe.dragOverNodeKey===ge;return Sr?Qe.dropIndicatorRender({dropPosition:Qe.dropPosition,dropLevelOffset:Qe.dropLevelOffset,indent:Qe.indent,prefixCls:Qe.prefixCls,direction:Qe.direction}):null},[Qe.dropPosition,Qe.dropLevelOffset,Qe.indent,Qe.prefixCls,Qe.direction,Qe.draggable,Qe.dragOverNodeKey,Qe.dropIndicatorRender]),Dr=x.useMemo(function(){var Tr=Te.title,Sr=Tr===void 0?pe:Tr,sn="".concat(Qe.prefixCls,"-node-content-wrapper"),lr;if(Qe.showIcon){var tr=Te.icon||Qe.icon;lr=tr?x.createElement("span",{className:se()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof tr=="function"?tr(Te):tr):wr}else Qe.loadData&&qe&&(lr=wr);var or;return typeof Sr=="function"?or=Sr(Ve):Qe.titleRender?or=Qe.titleRender(Ve):or=Sr,x.createElement("span",{ref:st,title:typeof Sr=="string"?Sr:"",className:se()(sn,"".concat(sn,"-").concat(qt||"normal"),(0,mt.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!ce&&(it||De))),onMouseEnter:et,onMouseLeave:nt,onContextMenu:dt,onClick:Oe,onDoubleClick:We},lr,x.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},or),jr)},[Qe.prefixCls,Qe.showIcon,Te,Qe.icon,wr,Qe.titleRender,Ve,qt,et,nt,dt,Oe,We]),Fr=(0,ae.Z)(at,{aria:!0,data:!0}),on=(0,re.Z)(Qe.keyEntities,ge)||{},wn=on.level,hn=He[He.length-1],Gr=!ce&&ct,An=Qe.draggingNodeKey===ge,Rn=ze!==void 0?{"aria-selected":!!ze}:void 0;return x.createElement("div",(0,Ye.Z)({ref:rt,role:"treeitem","aria-expanded":Pe?void 0:$e,className:se()(be,"".concat(Qe.prefixCls,"-treenode"),(Ae={},(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)(Ae,"".concat(Qe.prefixCls,"-treenode-disabled"),ce),"".concat(Qe.prefixCls,"-treenode-switcher-").concat($e?"open":"close"),!Pe),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),Ne),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),Fe),"".concat(Qe.prefixCls,"-treenode-selected"),it),"".concat(Qe.prefixCls,"-treenode-loading"),qe),"".concat(Qe.prefixCls,"-treenode-active"),tt),"".concat(Qe.prefixCls,"-treenode-leaf-last"),hn),"".concat(Qe.prefixCls,"-treenode-draggable"),ct),"dragging",An),(0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)((0,mt.Z)(Ae,"drop-target",Qe.dropTargetKey===ge),"drop-container",Qe.dropContainerKey===ge),"drag-over",!ce&&Re),"drag-over-gap-top",!ce&&Ie),"drag-over-gap-bottom",!ce&&ke),"filter-node",(Me=Qe.filterTreeNode)===null||Me===void 0?void 0:Me.call(Qe,(0,ne.F)(Te))),"".concat(Qe.prefixCls,"-treenode-leaf"),Dt))),style:Ee,draggable:Gr,onDragStart:Gr?pt:void 0,onDragEnter:ct?St:void 0,onDragOver:ct?yt:void 0,onDragLeave:ct?xt:void 0,onDrop:ct?Tt:void 0,onDragEnd:ct?vt:void 0,onMouseMove:Ke},Rn,Fr),x.createElement(E,{prefixCls:Qe.prefixCls,level:wn,isStart:Ze,isEnd:He}),At,$t(),pr,Dr)};ve.isTreeNode=1;var de=ve},30699:function(Ht,_t,Ge){"use strict";Ge.d(_t,{k:function(){return mt},y:function(){return y}});var Ye=Ge(59301),mt=Ye.createContext(null),y=Ye.createContext({})},89149:function(Ht,_t,Ge){"use strict";Ge.d(_t,{OF:function(){return ge.Z},y6:function(){return he.y},ZP:function(){return ce}});var Ye=Ge(32855),mt=Ge(34666),y=Ge(27247),Ce=Ge(3300),ye=Ge(33377),x=Ge(93912),z=Ge(83383),se=Ge(18881),ae=Ge(85461),ee=Ge(74430),fe=Ge(92310),E=Ge.n(fe),re=Ge(10228),ne=Ge(26112),le=Ge(48736),ue=Ge(59301),he=Ge(30699),pe=function(Ue){var xe=Ue.dropPosition,Se=Ue.dropLevelOffset,Oe=Ue.indent,We={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(xe){case-1:We.top=0,We.left=-Se*Oe;break;case 1:We.bottom=0,We.left=-Se*Oe;break;case 0:We.bottom=0,We.left=Oe;break}return ue.createElement("div",{style:We})},ve=pe;function de(_e){if(_e==null)throw new TypeError("Cannot destructure "+_e)}var we=Ge(11913),Te=Ge(43079),je=Ge(34280),Me=Ge(6790),Ae=Ge(77900),ge=Ge(639);function be(_e,Ue){var xe=ue.useState(!1),Se=(0,we.Z)(xe,2),Oe=Se[0],We=Se[1];(0,je.Z)(function(){if(Oe)return _e(),function(){Ue()}},[Oe]),(0,je.Z)(function(){return We(!0),function(){We(!1)}},[])}var Ee=be,Re=Ge(34061),Ie=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ke=ue.forwardRef(function(_e,Ue){var xe=_e.className,Se=_e.style,Oe=_e.motion,We=_e.motionNodes,et=_e.motionType,nt=_e.onMotionStart,dt=_e.onMotionEnd,ct=_e.active,pt=_e.treeNodeRequiredProps,St=(0,Te.Z)(_e,Ie),yt=ue.useState(!0),xt=(0,we.Z)(yt,2),vt=xt[0],Tt=xt[1],bt=ue.useContext(he.k),ft=bt.prefixCls,Dt=We&&et!=="hide";(0,je.Z)(function(){We&&Dt!==vt&&Tt(Dt)},[We]);var At=function(){We&&nt()},Mt=ue.useRef(!1),$t=function(){We&&!Mt.current&&(Mt.current=!0,dt())};Ee(At,$t);var pr=function(wr){Dt===wr&&$t()};return We?ue.createElement(Ae.default,(0,Ye.Z)({ref:Ue,visible:vt},Oe,{motionAppear:et==="show",onVisibleChanged:pr}),function(qt,wr){var jr=qt.className,Dr=qt.style;return ue.createElement("div",{ref:wr,className:E()("".concat(ft,"-treenode-motion"),jr),style:Dr},We.map(function(Fr){var on=Object.assign({},(de(Fr.data),Fr.data)),wn=Fr.title,hn=Fr.key,Gr=Fr.isStart,An=Fr.isEnd;delete on.children;var Rn=(0,Re.H8)(hn,pt);return ue.createElement(ge.Z,(0,Ye.Z)({},on,Rn,{title:wn,active:ct,data:Fr.data,key:hn,isStart:Gr,isEnd:An}))}))}):ue.createElement(ge.Z,(0,Ye.Z)({domRef:Ue,className:xe,style:Se},St,{active:ct}))}),Pe=ke;function Ze(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xe=_e.length,Se=Ue.length;if(Math.abs(xe-Se)!==1)return{add:!1,key:null};function Oe(We,et){var nt=new Map;We.forEach(function(ct){nt.set(ct,!0)});var dt=et.filter(function(ct){return!nt.has(ct)});return dt.length===1?dt[0]:null}return xe<Se?{add:!0,key:Oe(_e,Ue)}:{add:!1,key:Oe(Ue,_e)}}function He(_e,Ue,xe){var Se=_e.findIndex(function(nt){return nt.key===xe}),Oe=_e[Se+1],We=Ue.findIndex(function(nt){return nt.key===xe});if(Oe){var et=Ue.findIndex(function(nt){return nt.key===Oe.key});return Ue.slice(We+1,et)}return Ue.slice(We+1)}var $e=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],it={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ne=function(){},Fe="RC_TREE_MOTION_".concat(Math.random()),qe={key:Fe},rt={key:Fe,level:0,index:0,pos:"0",node:qe,nodes:[qe]},tt={parent:null,children:[],pos:rt.pos,data:qe,title:null,key:Fe,isStart:[],isEnd:[]};function Ve(_e,Ue,xe,Se){return Ue===!1||!xe?_e:_e.slice(0,Math.ceil(xe/Se)+1)}function Ke(_e){var Ue=_e.key,xe=_e.pos;return(0,Re.km)(Ue,xe)}function ze(_e){for(var Ue=String(_e.data.key),xe=_e;xe.parent;)xe=xe.parent,Ue="".concat(xe.data.key," > ").concat(Ue);return Ue}var at=ue.forwardRef(function(_e,Ue){var xe=_e.prefixCls,Se=_e.data,Oe=_e.selectable,We=_e.checkable,et=_e.expandedKeys,nt=_e.selectedKeys,dt=_e.checkedKeys,ct=_e.loadedKeys,pt=_e.loadingKeys,St=_e.halfCheckedKeys,yt=_e.keyEntities,xt=_e.disabled,vt=_e.dragging,Tt=_e.dragOverNodeKey,bt=_e.dropPosition,ft=_e.motion,Dt=_e.height,At=_e.itemHeight,Mt=_e.virtual,$t=_e.scrollWidth,pr=_e.focusable,qt=_e.activeItem,wr=_e.focused,jr=_e.tabIndex,Dr=_e.onKeyDown,Fr=_e.onFocus,on=_e.onBlur,wn=_e.onActiveChange,hn=_e.onListChangeStart,Gr=_e.onListChangeEnd,An=(0,Te.Z)(_e,$e),Rn=ue.useRef(null),Tr=ue.useRef(null);ue.useImperativeHandle(Ue,function(){return{scrollTo:function(hr){Rn.current.scrollTo(hr)},getIndentWidth:function(){return Tr.current.offsetWidth}}});var Sr=ue.useState(et),sn=(0,we.Z)(Sr,2),lr=sn[0],tr=sn[1],or=ue.useState(Se),Pr=(0,we.Z)(or,2),mr=Pr[0],Br=Pr[1],qr=ue.useState(Se),tn=(0,we.Z)(qr,2),Zr=tn[0],Lr=tn[1],pn=ue.useState([]),fr=(0,we.Z)(pn,2),Vt=fr[0],xr=fr[1],Kr=ue.useState(null),mn=(0,we.Z)(Kr,2),Ct=mn[0],kt=mn[1],ir=ue.useRef(Se);ir.current=Se;function Kt(){var dr=ir.current;Br(dr),Lr(dr),xr([]),kt(null),Gr()}(0,je.Z)(function(){tr(et);var dr=Ze(lr,et);if(dr.key!==null)if(dr.add){var hr=mr.findIndex(function(sr){var yr=sr.key;return yr===dr.key}),br=Ve(He(mr,Se,dr.key),Mt,Dt,At),ur=mr.slice();ur.splice(hr+1,0,tt),Lr(ur),xr(br),kt("show")}else{var gr=Se.findIndex(function(sr){var yr=sr.key;return yr===dr.key}),Pt=Ve(He(Se,mr,dr.key),Mt,Dt,At),Ur=Se.slice();Ur.splice(gr+1,0,tt),Lr(Ur),xr(Pt),kt("hide")}else mr!==Se&&(Br(Se),Lr(Se))},[et,Se]),ue.useEffect(function(){vt||Kt()},[vt]);var jt=ft?Zr:Se,nr={expandedKeys:et,selectedKeys:nt,loadedKeys:ct,loadingKeys:pt,checkedKeys:dt,halfCheckedKeys:St,dragOverNodeKey:Tt,dropPosition:bt,keyEntities:yt};return ue.createElement(ue.Fragment,null,wr&&qt&&ue.createElement("span",{style:it,"aria-live":"assertive"},ze(qt)),ue.createElement("div",null,ue.createElement("input",{style:it,disabled:pr===!1||xt,tabIndex:pr!==!1?jr:null,onKeyDown:Dr,onFocus:Fr,onBlur:on,value:"",onChange:Ne,"aria-label":"for screen reader"})),ue.createElement("div",{className:"".concat(xe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ue.createElement("div",{className:"".concat(xe,"-indent")},ue.createElement("div",{ref:Tr,className:"".concat(xe,"-indent-unit")}))),ue.createElement(Me.Z,(0,Ye.Z)({},An,{data:jt,itemKey:Ke,height:Dt,fullHeight:!1,virtual:Mt,itemHeight:At,scrollWidth:$t,prefixCls:"".concat(xe,"-list"),ref:Rn,role:"tree",onVisibleChange:function(hr){hr.every(function(br){return Ke(br)!==Fe})&&Kt()}}),function(dr){var hr=dr.pos,br=Object.assign({},(de(dr.data),dr.data)),ur=dr.title,gr=dr.key,Pt=dr.isStart,Ur=dr.isEnd,sr=(0,Re.km)(gr,hr);delete br.key,delete br.children;var yr=(0,Re.H8)(sr,nr);return ue.createElement(Pe,(0,Ye.Z)({},br,yr,{title:ur,active:!!qt&&gr===qt.key,pos:hr,data:dr.data,isStart:Pt,isEnd:Ur,motion:ft,motionNodes:gr===Fe?Vt:null,motionType:Ct,onMotionStart:hn,onMotionEnd:Kt,treeNodeRequiredProps:nr,onMouseMove:function(){wn(null)}}))}))}),Qe=at,ut=Ge(82661),st=Ge(34643),Xe=Ge(65065),Le=10,De=function(_e){(0,se.Z)(xe,_e);var Ue=(0,ae.Z)(xe);function xe(){var Se;(0,ye.Z)(this,xe);for(var Oe=arguments.length,We=new Array(Oe),et=0;et<Oe;et++)We[et]=arguments[et];return Se=Ue.call.apply(Ue,[this].concat(We)),(0,ee.Z)((0,z.Z)(Se),"destroyed",!1),(0,ee.Z)((0,z.Z)(Se),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,z.Z)(Se),"loadingRetryTimes",{}),(0,ee.Z)((0,z.Z)(Se),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Re.w$)()}),(0,ee.Z)((0,z.Z)(Se),"dragStartMousePosition",null),(0,ee.Z)((0,z.Z)(Se),"dragNodeProps",null),(0,ee.Z)((0,z.Z)(Se),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,z.Z)(Se),"listRef",ue.createRef()),(0,ee.Z)((0,z.Z)(Se),"onNodeDragStart",function(nt,dt){var ct=Se.state,pt=ct.expandedKeys,St=ct.keyEntities,yt=Se.props.onDragStart,xt=dt.eventKey;Se.dragNodeProps=dt,Se.dragStartMousePosition={x:nt.clientX,y:nt.clientY};var vt=(0,ut._5)(pt,xt);Se.setState({draggingNodeKey:xt,dragChildrenKeys:(0,ut.wA)(xt,St),indent:Se.listRef.current.getIndentWidth()}),Se.setExpandedKeys(vt),window.addEventListener("dragend",Se.onWindowDragEnd),yt==null||yt({event:nt,node:(0,Re.F)(dt)})}),(0,ee.Z)((0,z.Z)(Se),"onNodeDragEnter",function(nt,dt){var ct=Se.state,pt=ct.expandedKeys,St=ct.keyEntities,yt=ct.dragChildrenKeys,xt=ct.flattenNodes,vt=ct.indent,Tt=Se.props,bt=Tt.onDragEnter,ft=Tt.onExpand,Dt=Tt.allowDrop,At=Tt.direction,Mt=dt.pos,$t=dt.eventKey;if(Se.currentMouseOverDroppableNodeKey!==$t&&(Se.currentMouseOverDroppableNodeKey=$t),!Se.dragNodeProps){Se.resetDragState();return}var pr=(0,ut.OM)(nt,Se.dragNodeProps,dt,vt,Se.dragStartMousePosition,Dt,xt,St,pt,At),qt=pr.dropPosition,wr=pr.dropLevelOffset,jr=pr.dropTargetKey,Dr=pr.dropContainerKey,Fr=pr.dropTargetPos,on=pr.dropAllowed,wn=pr.dragOverNodeKey;if(yt.includes(jr)||!on){Se.resetDragState();return}if(Se.delayedDragEnterLogic||(Se.delayedDragEnterLogic={}),Object.keys(Se.delayedDragEnterLogic).forEach(function(hn){clearTimeout(Se.delayedDragEnterLogic[hn])}),Se.dragNodeProps.eventKey!==dt.eventKey&&(nt.persist(),Se.delayedDragEnterLogic[Mt]=window.setTimeout(function(){if(Se.state.draggingNodeKey!==null){var hn=(0,Ce.Z)(pt),Gr=(0,Xe.Z)(St,dt.eventKey);Gr&&(Gr.children||[]).length&&(hn=(0,ut.L0)(pt,dt.eventKey)),Se.props.hasOwnProperty("expandedKeys")||Se.setExpandedKeys(hn),ft==null||ft(hn,{node:(0,Re.F)(dt),expanded:!0,nativeEvent:nt.nativeEvent})}},800)),Se.dragNodeProps.eventKey===jr&&wr===0){Se.resetDragState();return}Se.setState({dragOverNodeKey:wn,dropPosition:qt,dropLevelOffset:wr,dropTargetKey:jr,dropContainerKey:Dr,dropTargetPos:Fr,dropAllowed:on}),bt==null||bt({event:nt,node:(0,Re.F)(dt),expandedKeys:pt})}),(0,ee.Z)((0,z.Z)(Se),"onNodeDragOver",function(nt,dt){var ct=Se.state,pt=ct.dragChildrenKeys,St=ct.flattenNodes,yt=ct.keyEntities,xt=ct.expandedKeys,vt=ct.indent,Tt=Se.props,bt=Tt.onDragOver,ft=Tt.allowDrop,Dt=Tt.direction;if(Se.dragNodeProps){var At=(0,ut.OM)(nt,Se.dragNodeProps,dt,vt,Se.dragStartMousePosition,ft,St,yt,xt,Dt),Mt=At.dropPosition,$t=At.dropLevelOffset,pr=At.dropTargetKey,qt=At.dropContainerKey,wr=At.dropTargetPos,jr=At.dropAllowed,Dr=At.dragOverNodeKey;pt.includes(pr)||!jr||(Se.dragNodeProps.eventKey===pr&&$t===0?Se.state.dropPosition===null&&Se.state.dropLevelOffset===null&&Se.state.dropTargetKey===null&&Se.state.dropContainerKey===null&&Se.state.dropTargetPos===null&&Se.state.dropAllowed===!1&&Se.state.dragOverNodeKey===null||Se.resetDragState():Mt===Se.state.dropPosition&&$t===Se.state.dropLevelOffset&&pr===Se.state.dropTargetKey&&qt===Se.state.dropContainerKey&&wr===Se.state.dropTargetPos&&jr===Se.state.dropAllowed&&Dr===Se.state.dragOverNodeKey||Se.setState({dropPosition:Mt,dropLevelOffset:$t,dropTargetKey:pr,dropContainerKey:qt,dropTargetPos:wr,dropAllowed:jr,dragOverNodeKey:Dr}),bt==null||bt({event:nt,node:(0,Re.F)(dt)}))}}),(0,ee.Z)((0,z.Z)(Se),"onNodeDragLeave",function(nt,dt){Se.currentMouseOverDroppableNodeKey===dt.eventKey&&!nt.currentTarget.contains(nt.relatedTarget)&&(Se.resetDragState(),Se.currentMouseOverDroppableNodeKey=null);var ct=Se.props.onDragLeave;ct==null||ct({event:nt,node:(0,Re.F)(dt)})}),(0,ee.Z)((0,z.Z)(Se),"onWindowDragEnd",function(nt){Se.onNodeDragEnd(nt,null,!0),window.removeEventListener("dragend",Se.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Se),"onNodeDragEnd",function(nt,dt){var ct=Se.props.onDragEnd;Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),ct==null||ct({event:nt,node:(0,Re.F)(dt)}),Se.dragNodeProps=null,window.removeEventListener("dragend",Se.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Se),"onNodeDrop",function(nt,dt){var ct,pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=Se.state,yt=St.dragChildrenKeys,xt=St.dropPosition,vt=St.dropTargetKey,Tt=St.dropTargetPos,bt=St.dropAllowed;if(bt){var ft=Se.props.onDrop;if(Se.setState({dragOverNodeKey:null}),Se.cleanDragState(),vt!==null){var Dt=(0,y.Z)((0,y.Z)({},(0,Re.H8)(vt,Se.getTreeNodeRequiredProps())),{},{active:((ct=Se.getActiveItem())===null||ct===void 0?void 0:ct.key)===vt,data:(0,Xe.Z)(Se.state.keyEntities,vt).node}),At=yt.includes(vt);(0,le.ZP)(!At,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mt=(0,ut.yx)(Tt),$t={event:nt,node:(0,Re.F)(Dt),dragNode:Se.dragNodeProps?(0,Re.F)(Se.dragNodeProps):null,dragNodesKeys:[Se.dragNodeProps.eventKey].concat(yt),dropToGap:xt!==0,dropPosition:xt+Number(Mt[Mt.length-1])};pt||ft==null||ft($t),Se.dragNodeProps=null}}}),(0,ee.Z)((0,z.Z)(Se),"cleanDragState",function(){var nt=Se.state.draggingNodeKey;nt!==null&&Se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Se.dragStartMousePosition=null,Se.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,z.Z)(Se),"triggerExpandActionExpand",function(nt,dt){var ct=Se.state,pt=ct.expandedKeys,St=ct.flattenNodes,yt=dt.expanded,xt=dt.key,vt=dt.isLeaf;if(!(vt||nt.shiftKey||nt.metaKey||nt.ctrlKey)){var Tt=St.filter(function(ft){return ft.key===xt})[0],bt=(0,Re.F)((0,y.Z)((0,y.Z)({},(0,Re.H8)(xt,Se.getTreeNodeRequiredProps())),{},{data:Tt.data}));Se.setExpandedKeys(yt?(0,ut._5)(pt,xt):(0,ut.L0)(pt,xt)),Se.onNodeExpand(nt,bt)}}),(0,ee.Z)((0,z.Z)(Se),"onNodeClick",function(nt,dt){var ct=Se.props,pt=ct.onClick,St=ct.expandAction;St==="click"&&Se.triggerExpandActionExpand(nt,dt),pt==null||pt(nt,dt)}),(0,ee.Z)((0,z.Z)(Se),"onNodeDoubleClick",function(nt,dt){var ct=Se.props,pt=ct.onDoubleClick,St=ct.expandAction;St==="doubleClick"&&Se.triggerExpandActionExpand(nt,dt),pt==null||pt(nt,dt)}),(0,ee.Z)((0,z.Z)(Se),"onNodeSelect",function(nt,dt){var ct=Se.state.selectedKeys,pt=Se.state,St=pt.keyEntities,yt=pt.fieldNames,xt=Se.props,vt=xt.onSelect,Tt=xt.multiple,bt=dt.selected,ft=dt[yt.key],Dt=!bt;Dt?Tt?ct=(0,ut.L0)(ct,ft):ct=[ft]:ct=(0,ut._5)(ct,ft);var At=ct.map(function(Mt){var $t=(0,Xe.Z)(St,Mt);return $t?$t.node:null}).filter(Boolean);Se.setUncontrolledState({selectedKeys:ct}),vt==null||vt(ct,{event:"select",selected:Dt,node:dt,selectedNodes:At,nativeEvent:nt.nativeEvent})}),(0,ee.Z)((0,z.Z)(Se),"onNodeCheck",function(nt,dt,ct){var pt=Se.state,St=pt.keyEntities,yt=pt.checkedKeys,xt=pt.halfCheckedKeys,vt=Se.props,Tt=vt.checkStrictly,bt=vt.onCheck,ft=dt.key,Dt,At={event:"check",node:dt,checked:ct,nativeEvent:nt.nativeEvent};if(Tt){var Mt=ct?(0,ut.L0)(yt,ft):(0,ut._5)(yt,ft),$t=(0,ut._5)(xt,ft);Dt={checked:Mt,halfChecked:$t},At.checkedNodes=Mt.map(function(Fr){return(0,Xe.Z)(St,Fr)}).filter(Boolean).map(function(Fr){return Fr.node}),Se.setUncontrolledState({checkedKeys:Mt})}else{var pr=(0,st.S)([].concat((0,Ce.Z)(yt),[ft]),!0,St),qt=pr.checkedKeys,wr=pr.halfCheckedKeys;if(!ct){var jr=new Set(qt);jr.delete(ft);var Dr=(0,st.S)(Array.from(jr),{checked:!1,halfCheckedKeys:wr},St);qt=Dr.checkedKeys,wr=Dr.halfCheckedKeys}Dt=qt,At.checkedNodes=[],At.checkedNodesPositions=[],At.halfCheckedKeys=wr,qt.forEach(function(Fr){var on=(0,Xe.Z)(St,Fr);if(on){var wn=on.node,hn=on.pos;At.checkedNodes.push(wn),At.checkedNodesPositions.push({node:wn,pos:hn})}}),Se.setUncontrolledState({checkedKeys:qt},!1,{halfCheckedKeys:wr})}bt==null||bt(Dt,At)}),(0,ee.Z)((0,z.Z)(Se),"onNodeLoad",function(nt){var dt,ct=nt.key,pt=Se.state.keyEntities,St=(0,Xe.Z)(pt,ct);if(!(St!=null&&(dt=St.children)!==null&&dt!==void 0&&dt.length)){var yt=new Promise(function(xt,vt){Se.setState(function(Tt){var bt=Tt.loadedKeys,ft=bt===void 0?[]:bt,Dt=Tt.loadingKeys,At=Dt===void 0?[]:Dt,Mt=Se.props,$t=Mt.loadData,pr=Mt.onLoad;if(!$t||ft.includes(ct)||At.includes(ct))return null;var qt=$t(nt);return qt.then(function(){var wr=Se.state.loadedKeys,jr=(0,ut.L0)(wr,ct);pr==null||pr(jr,{event:"load",node:nt}),Se.setUncontrolledState({loadedKeys:jr}),Se.setState(function(Dr){return{loadingKeys:(0,ut._5)(Dr.loadingKeys,ct)}}),xt()}).catch(function(wr){if(Se.setState(function(Dr){return{loadingKeys:(0,ut._5)(Dr.loadingKeys,ct)}}),Se.loadingRetryTimes[ct]=(Se.loadingRetryTimes[ct]||0)+1,Se.loadingRetryTimes[ct]>=Le){var jr=Se.state.loadedKeys;(0,le.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Se.setUncontrolledState({loadedKeys:(0,ut.L0)(jr,ct)}),xt()}vt(wr)}),{loadingKeys:(0,ut.L0)(At,ct)}})});return yt.catch(function(){}),yt}}),(0,ee.Z)((0,z.Z)(Se),"onNodeMouseEnter",function(nt,dt){var ct=Se.props.onMouseEnter;ct==null||ct({event:nt,node:dt})}),(0,ee.Z)((0,z.Z)(Se),"onNodeMouseLeave",function(nt,dt){var ct=Se.props.onMouseLeave;ct==null||ct({event:nt,node:dt})}),(0,ee.Z)((0,z.Z)(Se),"onNodeContextMenu",function(nt,dt){var ct=Se.props.onRightClick;ct&&(nt.preventDefault(),ct({event:nt,node:dt}))}),(0,ee.Z)((0,z.Z)(Se),"onFocus",function(){var nt=Se.props.onFocus;Se.setState({focused:!0});for(var dt=arguments.length,ct=new Array(dt),pt=0;pt<dt;pt++)ct[pt]=arguments[pt];nt==null||nt.apply(void 0,ct)}),(0,ee.Z)((0,z.Z)(Se),"onBlur",function(){var nt=Se.props.onBlur;Se.setState({focused:!1}),Se.onActiveChange(null);for(var dt=arguments.length,ct=new Array(dt),pt=0;pt<dt;pt++)ct[pt]=arguments[pt];nt==null||nt.apply(void 0,ct)}),(0,ee.Z)((0,z.Z)(Se),"getTreeNodeRequiredProps",function(){var nt=Se.state,dt=nt.expandedKeys,ct=nt.selectedKeys,pt=nt.loadedKeys,St=nt.loadingKeys,yt=nt.checkedKeys,xt=nt.halfCheckedKeys,vt=nt.dragOverNodeKey,Tt=nt.dropPosition,bt=nt.keyEntities;return{expandedKeys:dt||[],selectedKeys:ct||[],loadedKeys:pt||[],loadingKeys:St||[],checkedKeys:yt||[],halfCheckedKeys:xt||[],dragOverNodeKey:vt,dropPosition:Tt,keyEntities:bt}}),(0,ee.Z)((0,z.Z)(Se),"setExpandedKeys",function(nt){var dt=Se.state,ct=dt.treeData,pt=dt.fieldNames,St=(0,Re.oH)(ct,nt,pt);Se.setUncontrolledState({expandedKeys:nt,flattenNodes:St},!0)}),(0,ee.Z)((0,z.Z)(Se),"onNodeExpand",function(nt,dt){var ct=Se.state.expandedKeys,pt=Se.state,St=pt.listChanging,yt=pt.fieldNames,xt=Se.props,vt=xt.onExpand,Tt=xt.loadData,bt=dt.expanded,ft=dt[yt.key];if(!St){var Dt=ct.includes(ft),At=!bt;if((0,le.ZP)(bt&&Dt||!bt&&!Dt,"Expand state not sync with index check"),ct=At?(0,ut.L0)(ct,ft):(0,ut._5)(ct,ft),Se.setExpandedKeys(ct),vt==null||vt(ct,{node:dt,expanded:At,nativeEvent:nt.nativeEvent}),At&&Tt){var Mt=Se.onNodeLoad(dt);Mt&&Mt.then(function(){var $t=(0,Re.oH)(Se.state.treeData,ct,yt);Se.setUncontrolledState({flattenNodes:$t})}).catch(function(){var $t=Se.state.expandedKeys,pr=(0,ut._5)($t,ft);Se.setExpandedKeys(pr)})}}}),(0,ee.Z)((0,z.Z)(Se),"onListChangeStart",function(){Se.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,z.Z)(Se),"onListChangeEnd",function(){setTimeout(function(){Se.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,z.Z)(Se),"onActiveChange",function(nt){var dt=Se.state.activeKey,ct=Se.props,pt=ct.onActiveChange,St=ct.itemScrollOffset,yt=St===void 0?0:St;dt!==nt&&(Se.setState({activeKey:nt}),nt!==null&&Se.scrollTo({key:nt,offset:yt}),pt==null||pt(nt))}),(0,ee.Z)((0,z.Z)(Se),"getActiveItem",function(){var nt=Se.state,dt=nt.activeKey,ct=nt.flattenNodes;return dt===null?null:ct.find(function(pt){var St=pt.key;return St===dt})||null}),(0,ee.Z)((0,z.Z)(Se),"offsetActiveKey",function(nt){var dt=Se.state,ct=dt.flattenNodes,pt=dt.activeKey,St=ct.findIndex(function(vt){var Tt=vt.key;return Tt===pt});St===-1&&nt<0&&(St=ct.length),St=(St+nt+ct.length)%ct.length;var yt=ct[St];if(yt){var xt=yt.key;Se.onActiveChange(xt)}else Se.onActiveChange(null)}),(0,ee.Z)((0,z.Z)(Se),"onKeyDown",function(nt){var dt=Se.state,ct=dt.activeKey,pt=dt.expandedKeys,St=dt.checkedKeys,yt=dt.fieldNames,xt=Se.props,vt=xt.onKeyDown,Tt=xt.checkable,bt=xt.selectable;switch(nt.which){case re.Z.UP:{Se.offsetActiveKey(-1),nt.preventDefault();break}case re.Z.DOWN:{Se.offsetActiveKey(1),nt.preventDefault();break}}var ft=Se.getActiveItem();if(ft&&ft.data){var Dt=Se.getTreeNodeRequiredProps(),At=ft.data.isLeaf===!1||!!(ft.data[yt.children]||[]).length,Mt=(0,Re.F)((0,y.Z)((0,y.Z)({},(0,Re.H8)(ct,Dt)),{},{data:ft.data,active:!0}));switch(nt.which){case re.Z.LEFT:{At&&pt.includes(ct)?Se.onNodeExpand({},Mt):ft.parent&&Se.onActiveChange(ft.parent.key),nt.preventDefault();break}case re.Z.RIGHT:{At&&!pt.includes(ct)?Se.onNodeExpand({},Mt):ft.children&&ft.children.length&&Se.onActiveChange(ft.children[0].key),nt.preventDefault();break}case re.Z.ENTER:case re.Z.SPACE:{Tt&&!Mt.disabled&&Mt.checkable!==!1&&!Mt.disableCheckbox?Se.onNodeCheck({},Mt,!St.includes(ct)):!Tt&&bt&&!Mt.disabled&&Mt.selectable!==!1&&Se.onNodeSelect({},Mt);break}}}vt==null||vt(nt)}),(0,ee.Z)((0,z.Z)(Se),"setUncontrolledState",function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Se.destroyed){var pt=!1,St=!0,yt={};Object.keys(nt).forEach(function(xt){if(Se.props.hasOwnProperty(xt)){St=!1;return}pt=!0,yt[xt]=nt[xt]}),pt&&(!dt||St)&&Se.setState((0,y.Z)((0,y.Z)({},yt),ct))}}),(0,ee.Z)((0,z.Z)(Se),"scrollTo",function(nt){Se.listRef.current.scrollTo(nt)}),Se}return(0,x.Z)(xe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props,We=Oe.activeKey,et=Oe.itemScrollOffset,nt=et===void 0?0:et;We!==void 0&&We!==this.state.activeKey&&(this.setState({activeKey:We}),We!==null&&this.scrollTo({key:We,offset:nt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Oe=this.state,We=Oe.focused,et=Oe.flattenNodes,nt=Oe.keyEntities,dt=Oe.draggingNodeKey,ct=Oe.activeKey,pt=Oe.dropLevelOffset,St=Oe.dropContainerKey,yt=Oe.dropTargetKey,xt=Oe.dropPosition,vt=Oe.dragOverNodeKey,Tt=Oe.indent,bt=this.props,ft=bt.prefixCls,Dt=bt.className,At=bt.style,Mt=bt.showLine,$t=bt.focusable,pr=bt.tabIndex,qt=pr===void 0?0:pr,wr=bt.selectable,jr=bt.showIcon,Dr=bt.icon,Fr=bt.switcherIcon,on=bt.draggable,wn=bt.checkable,hn=bt.checkStrictly,Gr=bt.disabled,An=bt.motion,Rn=bt.loadData,Tr=bt.filterTreeNode,Sr=bt.height,sn=bt.itemHeight,lr=bt.scrollWidth,tr=bt.virtual,or=bt.titleRender,Pr=bt.dropIndicatorRender,mr=bt.onContextMenu,Br=bt.onScroll,qr=bt.direction,tn=bt.rootClassName,Zr=bt.rootStyle,Lr=(0,ne.Z)(this.props,{aria:!0,data:!0}),pn;on&&((0,mt.Z)(on)==="object"?pn=on:typeof on=="function"?pn={nodeDraggable:on}:pn={});var fr={prefixCls:ft,selectable:wr,showIcon:jr,icon:Dr,switcherIcon:Fr,draggable:pn,draggingNodeKey:dt,checkable:wn,checkStrictly:hn,disabled:Gr,keyEntities:nt,dropLevelOffset:pt,dropContainerKey:St,dropTargetKey:yt,dropPosition:xt,dragOverNodeKey:vt,indent:Tt,direction:qr,dropIndicatorRender:Pr,loadData:Rn,filterTreeNode:Tr,titleRender:or,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ue.createElement(he.k.Provider,{value:fr},ue.createElement("div",{className:E()(ft,Dt,tn,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(ft,"-show-line"),Mt),"".concat(ft,"-focused"),We),"".concat(ft,"-active-focused"),ct!==null)),style:Zr},ue.createElement(Qe,(0,Ye.Z)({ref:this.listRef,prefixCls:ft,style:At,data:et,disabled:Gr,selectable:wr,checkable:!!wn,motion:An,dragging:dt!==null,height:Sr,itemHeight:sn,virtual:tr,focusable:$t,focused:We,tabIndex:qt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:mr,onScroll:Br,scrollWidth:lr},this.getTreeNodeRequiredProps(),Lr))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,We){var et=We.prevProps,nt={prevProps:Oe};function dt(qt){return!et&&Oe.hasOwnProperty(qt)||et&&et[qt]!==Oe[qt]}var ct,pt=We.fieldNames;if(dt("fieldNames")&&(pt=(0,Re.w$)(Oe.fieldNames),nt.fieldNames=pt),dt("treeData")?ct=Oe.treeData:dt("children")&&((0,le.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ct=(0,Re.zn)(Oe.children)),ct){nt.treeData=ct;var St=(0,Re.I8)(ct,{fieldNames:pt});nt.keyEntities=(0,y.Z)((0,ee.Z)({},Fe,rt),St.keyEntities)}var yt=nt.keyEntities||We.keyEntities;if(dt("expandedKeys")||et&&dt("autoExpandParent"))nt.expandedKeys=Oe.autoExpandParent||!et&&Oe.defaultExpandParent?(0,ut.r7)(Oe.expandedKeys,yt):Oe.expandedKeys;else if(!et&&Oe.defaultExpandAll){var xt=(0,y.Z)({},yt);delete xt[Fe];var vt=[];Object.keys(xt).forEach(function(qt){var wr=xt[qt];wr.children&&wr.children.length&&vt.push(wr.key)}),nt.expandedKeys=vt}else!et&&Oe.defaultExpandedKeys&&(nt.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,ut.r7)(Oe.defaultExpandedKeys,yt):Oe.defaultExpandedKeys);if(nt.expandedKeys||delete nt.expandedKeys,ct||nt.expandedKeys){var Tt=(0,Re.oH)(ct||We.treeData,nt.expandedKeys||We.expandedKeys,pt);nt.flattenNodes=Tt}if(Oe.selectable&&(dt("selectedKeys")?nt.selectedKeys=(0,ut.BT)(Oe.selectedKeys,Oe):!et&&Oe.defaultSelectedKeys&&(nt.selectedKeys=(0,ut.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var bt;if(dt("checkedKeys")?bt=(0,ut.E6)(Oe.checkedKeys)||{}:!et&&Oe.defaultCheckedKeys?bt=(0,ut.E6)(Oe.defaultCheckedKeys)||{}:ct&&(bt=(0,ut.E6)(Oe.checkedKeys)||{checkedKeys:We.checkedKeys,halfCheckedKeys:We.halfCheckedKeys}),bt){var ft=bt,Dt=ft.checkedKeys,At=Dt===void 0?[]:Dt,Mt=ft.halfCheckedKeys,$t=Mt===void 0?[]:Mt;if(!Oe.checkStrictly){var pr=(0,st.S)(At,!0,yt);At=pr.checkedKeys,$t=pr.halfCheckedKeys}nt.checkedKeys=At,nt.halfCheckedKeys=$t}}return dt("loadedKeys")&&(nt.loadedKeys=Oe.loadedKeys),nt}}]),xe}(ue.Component);(0,ee.Z)(De,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ve,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(De,"TreeNode",ge.Z);var te=De,ce=te},82661:function(Ht,_t,Ge){"use strict";Ge.d(_t,{BT:function(){return ue},E6:function(){return ve},L0:function(){return ee},OM:function(){return le},_5:function(){return ae},r7:function(){return de},wA:function(){return E},yx:function(){return fe}});var Ye=Ge(3300),mt=Ge(34666),y=Ge(48736),Ce=Ge(59301),ye=Ge(639),x=Ge(65065),z=Ge(34061),se=null;function ae(we,Te){if(!we)return[];var je=we.slice(),Me=je.indexOf(Te);return Me>=0&&je.splice(Me,1),je}function ee(we,Te){var je=(we||[]).slice();return je.indexOf(Te)===-1&&je.push(Te),je}function fe(we){return we.split("-")}function E(we,Te){var je=[],Me=(0,x.Z)(Te,we);function Ae(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ge.forEach(function(be){var Ee=be.key,Re=be.children;je.push(Ee),Ae(Re)})}return Ae(Me.children),je}function re(we){if(we.parent){var Te=fe(we.pos);return Number(Te[Te.length-1])===we.parent.children.length-1}return!1}function ne(we){var Te=fe(we.pos);return Number(Te[Te.length-1])===0}function le(we,Te,je,Me,Ae,ge,be,Ee,Re,Ie){var ke,Pe=we.clientX,Ze=we.clientY,He=we.target.getBoundingClientRect(),$e=He.top,it=He.height,Ne=(Ie==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-Pe),Fe=(Ne-12)/Me,qe=Re.filter(function(ce){var _e;return(_e=Ee[ce])===null||_e===void 0||(_e=_e.children)===null||_e===void 0?void 0:_e.length}),rt=(0,x.Z)(Ee,je.eventKey);if(Ze<$e+it/2){var tt=be.findIndex(function(ce){return ce.key===rt.key}),Ve=tt<=0?0:tt-1,Ke=be[Ve].key;rt=(0,x.Z)(Ee,Ke)}var ze=rt.key,at=rt,Qe=rt.key,ut=0,st=0;if(!qe.includes(ze))for(var Xe=0;Xe<Fe&&re(rt);Xe+=1)rt=rt.parent,st+=1;var Le=Te.data,De=rt.node,te=!0;return ne(rt)&&rt.level===0&&Ze<$e+it/2&&ge({dragNode:Le,dropNode:De,dropPosition:-1})&&rt.key===je.eventKey?ut=-1:(at.children||[]).length&&qe.includes(Qe)?ge({dragNode:Le,dropNode:De,dropPosition:0})?ut=0:te=!1:st===0?Fe>-1.5?ge({dragNode:Le,dropNode:De,dropPosition:1})?ut=1:te=!1:ge({dragNode:Le,dropNode:De,dropPosition:0})?ut=0:ge({dragNode:Le,dropNode:De,dropPosition:1})?ut=1:te=!1:ge({dragNode:Le,dropNode:De,dropPosition:1})?ut=1:te=!1,{dropPosition:ut,dropLevelOffset:st,dropTargetKey:rt.key,dropTargetPos:rt.pos,dragOverNodeKey:Qe,dropContainerKey:ut===0?null:((ke=rt.parent)===null||ke===void 0?void 0:ke.key)||null,dropAllowed:te}}function ue(we,Te){if(we){var je=Te.multiple;return je?we.slice():we.length?[we[0]]:we}}var he=function(Te){return Te};function pe(we,Te){if(!we)return[];var je=Te||{},Me=je.processProps,Ae=Me===void 0?he:Me,ge=Array.isArray(we)?we:[we];return ge.map(function(be){var Ee=be.children,Re=_objectWithoutProperties(be,se),Ie=pe(Ee,Te);return React.createElement(TreeNode,_extends({key:Re.key},Ae(Re)),Ie)})}function ve(we){if(!we)return null;var Te;if(Array.isArray(we))Te={checkedKeys:we,halfCheckedKeys:void 0};else if((0,mt.Z)(we)==="object")Te={checkedKeys:we.checked||void 0,halfCheckedKeys:we.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Te}function de(we,Te){var je=new Set;function Me(Ae){if(!je.has(Ae)){var ge=(0,x.Z)(Te,Ae);if(ge){je.add(Ae);var be=ge.parent,Ee=ge.node;Ee.disabled||be&&Me(be.key)}}}return(we||[]).forEach(function(Ae){Me(Ae)}),(0,Ye.Z)(je)}},34643:function(Ht,_t,Ge){"use strict";Ge.d(_t,{S:function(){return z}});var Ye=Ge(48736),mt=Ge(65065);function y(se,ae){var ee=new Set;return se.forEach(function(fe){ae.has(fe)||ee.add(fe)}),ee}function Ce(se){var ae=se||{},ee=ae.disabled,fe=ae.disableCheckbox,E=ae.checkable;return!!(ee||fe)||E===!1}function ye(se,ae,ee,fe){for(var E=new Set(se),re=new Set,ne=0;ne<=ee;ne+=1){var le=ae.get(ne)||new Set;le.forEach(function(ve){var de=ve.key,we=ve.node,Te=ve.children,je=Te===void 0?[]:Te;E.has(de)&&!fe(we)&&je.filter(function(Me){return!fe(Me.node)}).forEach(function(Me){E.add(Me.key)})})}for(var ue=new Set,he=ee;he>=0;he-=1){var pe=ae.get(he)||new Set;pe.forEach(function(ve){var de=ve.parent,we=ve.node;if(!(fe(we)||!ve.parent||ue.has(ve.parent.key))){if(fe(ve.parent.node)){ue.add(de.key);return}var Te=!0,je=!1;(de.children||[]).filter(function(Me){return!fe(Me.node)}).forEach(function(Me){var Ae=Me.key,ge=E.has(Ae);Te&&!ge&&(Te=!1),!je&&(ge||re.has(Ae))&&(je=!0)}),Te&&E.add(de.key),je&&re.add(de.key),ue.add(de.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(y(re,E))}}function x(se,ae,ee,fe,E){for(var re=new Set(se),ne=new Set(ae),le=0;le<=fe;le+=1){var ue=ee.get(le)||new Set;ue.forEach(function(de){var we=de.key,Te=de.node,je=de.children,Me=je===void 0?[]:je;!re.has(we)&&!ne.has(we)&&!E(Te)&&Me.filter(function(Ae){return!E(Ae.node)}).forEach(function(Ae){re.delete(Ae.key)})})}ne=new Set;for(var he=new Set,pe=fe;pe>=0;pe-=1){var ve=ee.get(pe)||new Set;ve.forEach(function(de){var we=de.parent,Te=de.node;if(!(E(Te)||!de.parent||he.has(de.parent.key))){if(E(de.parent.node)){he.add(we.key);return}var je=!0,Me=!1;(we.children||[]).filter(function(Ae){return!E(Ae.node)}).forEach(function(Ae){var ge=Ae.key,be=re.has(ge);je&&!be&&(je=!1),!Me&&(be||ne.has(ge))&&(Me=!0)}),je||re.delete(we.key),Me&&ne.add(we.key),he.add(we.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(y(ne,re))}}function z(se,ae,ee,fe){var E=[],re;fe?re=fe:re=Ce;var ne=new Set(se.filter(function(pe){var ve=!!(0,mt.Z)(ee,pe);return ve||E.push(pe),ve})),le=new Map,ue=0;Object.keys(ee).forEach(function(pe){var ve=ee[pe],de=ve.level,we=le.get(de);we||(we=new Set,le.set(de,we)),we.add(ve),ue=Math.max(ue,de)}),(0,Ye.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(pe){return"'".concat(pe,"'")}).join(", ")));var he;return ae===!0?he=ye(ne,le,ue,re):he=x(ne,ae.halfCheckedKeys,le,ue,re),he}},65065:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return Ye}});function Ye(mt,y){return mt[y]}},34061:function(Ht,_t,Ge){"use strict";Ge.d(_t,{F:function(){return de},H8:function(){return ve},I8:function(){return pe},km:function(){return E},oH:function(){return ue},w$:function(){return re},zn:function(){return le}});var Ye=Ge(34666),mt=Ge(3300),y=Ge(27247),Ce=Ge(43079),ye=Ge(11592),x=Ge(2738),z=Ge(48736),se=Ge(65065),ae=["children"];function ee(we,Te){return"".concat(we,"-").concat(Te)}function fe(we){return we&&we.type&&we.type.isTreeNode}function E(we,Te){return we!=null?we:Te}function re(we){var Te=we||{},je=Te.title,Me=Te._title,Ae=Te.key,ge=Te.children,be=je||"title";return{title:be,_title:Me||[be],key:Ae||"key",children:ge||"children"}}function ne(we,Te){var je=new Map;function Me(Ae){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ae||[]).forEach(function(be){var Ee=be[Te.key],Re=be[Te.children];warning(Ee!=null,"Tree node must have a certain key: [".concat(ge).concat(Ee,"]"));var Ie=String(Ee);warning(!je.has(Ie)||Ee===null||Ee===void 0,"Same 'key' exist in the Tree: ".concat(Ie)),je.set(Ie,!0),Me(Re,"".concat(ge).concat(Ie," > "))})}Me(we)}function le(we){function Te(je){var Me=(0,ye.Z)(je);return Me.map(function(Ae){if(!fe(Ae))return(0,z.ZP)(!Ae,"Tree/TreeNode can only accept TreeNode as children."),null;var ge=Ae.key,be=Ae.props,Ee=be.children,Re=(0,Ce.Z)(be,ae),Ie=(0,y.Z)({key:ge},Re),ke=Te(Ee);return ke.length&&(Ie.children=ke),Ie}).filter(function(Ae){return Ae})}return Te(we)}function ue(we,Te,je){var Me=re(je),Ae=Me._title,ge=Me.key,be=Me.children,Ee=new Set(Te===!0?[]:Te),Re=[];function Ie(ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ke.map(function(Ze,He){for(var $e=ee(Pe?Pe.pos:"0",He),it=E(Ze[ge],$e),Ne,Fe=0;Fe<Ae.length;Fe+=1){var qe=Ae[Fe];if(Ze[qe]!==void 0){Ne=Ze[qe];break}}var rt=Object.assign((0,x.Z)(Ze,[].concat((0,mt.Z)(Ae),[ge,be])),{title:Ne,key:it,parent:Pe,pos:$e,children:null,data:Ze,isStart:[].concat((0,mt.Z)(Pe?Pe.isStart:[]),[He===0]),isEnd:[].concat((0,mt.Z)(Pe?Pe.isEnd:[]),[He===ke.length-1])});return Re.push(rt),Te===!0||Ee.has(it)?rt.children=Ie(Ze[be]||[],rt):rt.children=[],rt})}return Ie(we),Re}function he(we,Te,je){var Me={};(0,Ye.Z)(je)==="object"?Me=je:Me={externalGetKey:je},Me=Me||{};var Ae=Me,ge=Ae.childrenPropName,be=Ae.externalGetKey,Ee=Ae.fieldNames,Re=re(Ee),Ie=Re.key,ke=Re.children,Pe=ge||ke,Ze;be?typeof be=="string"?Ze=function(it){return it[be]}:typeof be=="function"&&(Ze=function(it){return be(it)}):Ze=function(it,Ne){return E(it[Ie],Ne)};function He($e,it,Ne,Fe){var qe=$e?$e[Pe]:we,rt=$e?ee(Ne.pos,it):"0",tt=$e?[].concat((0,mt.Z)(Fe),[$e]):[];if($e){var Ve=Ze($e,rt),Ke={node:$e,index:it,pos:rt,key:Ve,parentPos:Ne.node?Ne.pos:null,level:Ne.level+1,nodes:tt};Te(Ke)}qe&&qe.forEach(function(ze,at){He(ze,at,{node:$e,pos:rt,level:Ne?Ne.level+1:-1},tt)})}He(null)}function pe(we){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=Te.initWrapper,Me=Te.processEntity,Ae=Te.onProcessFinished,ge=Te.externalGetKey,be=Te.childrenPropName,Ee=Te.fieldNames,Re=arguments.length>2?arguments[2]:void 0,Ie=ge||Re,ke={},Pe={},Ze={posEntities:ke,keyEntities:Pe};return je&&(Ze=je(Ze)||Ze),he(we,function(He){var $e=He.node,it=He.index,Ne=He.pos,Fe=He.key,qe=He.parentPos,rt=He.level,tt=He.nodes,Ve={node:$e,nodes:tt,index:it,key:Fe,pos:Ne,level:rt},Ke=E(Fe,Ne);ke[Ne]=Ve,Pe[Ke]=Ve,Ve.parent=ke[qe],Ve.parent&&(Ve.parent.children=Ve.parent.children||[],Ve.parent.children.push(Ve)),Me&&Me(Ve,Ze)},{externalGetKey:Ie,childrenPropName:be,fieldNames:Ee}),Ae&&Ae(Ze),Ze}function ve(we,Te){var je=Te.expandedKeys,Me=Te.selectedKeys,Ae=Te.loadedKeys,ge=Te.loadingKeys,be=Te.checkedKeys,Ee=Te.halfCheckedKeys,Re=Te.dragOverNodeKey,Ie=Te.dropPosition,ke=Te.keyEntities,Pe=(0,se.Z)(ke,we),Ze={eventKey:we,expanded:je.indexOf(we)!==-1,selected:Me.indexOf(we)!==-1,loaded:Ae.indexOf(we)!==-1,loading:ge.indexOf(we)!==-1,checked:be.indexOf(we)!==-1,halfChecked:Ee.indexOf(we)!==-1,pos:String(Pe?Pe.pos:""),dragOver:Re===we&&Ie===0,dragOverGapTop:Re===we&&Ie===-1,dragOverGapBottom:Re===we&&Ie===1};return Ze}function de(we){var Te=we.data,je=we.expanded,Me=we.selected,Ae=we.checked,ge=we.loaded,be=we.loading,Ee=we.halfChecked,Re=we.dragOver,Ie=we.dragOverGapTop,ke=we.dragOverGapBottom,Pe=we.pos,Ze=we.active,He=we.eventKey,$e=(0,y.Z)((0,y.Z)({},Te),{},{expanded:je,selected:Me,checked:Ae,loaded:ge,loading:be,halfChecked:Ee,dragOver:Re,dragOverGapTop:Ie,dragOverGapBottom:ke,pos:Pe,active:Ze,key:He});return"props"in $e||Object.defineProperty($e,"props",{get:function(){return(0,z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),we}}),$e}},90472:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return He}});var Ye=Ge(32855),mt=Ge(33377),y=Ge(93912),Ce=Ge(83383),ye=Ge(18881),x=Ge(85461),z=Ge(74430),se=Ge(59301),ae=Ge(27247),ee=Ge(43079),fe=Ge(34666),E=Ge(13932),re=Ge(68702),ne=Ge(3300),le=Ge(92310),ue=Ge.n(le),he=Ge(26112),pe=Ge(48736),ve=function($e,it){if($e&&it){var Ne=Array.isArray(it)?it:it.split(","),Fe=$e.name||"",qe=$e.type||"",rt=qe.replace(/\/.*$/,"");return Ne.some(function(tt){var Ve=tt.trim();if(/^\*(\/\*)?$/.test(tt))return!0;if(Ve.charAt(0)==="."){var Ke=Fe.toLowerCase(),ze=Ve.toLowerCase(),at=[ze];return(ze===".jpg"||ze===".jpeg")&&(at=[".jpg",".jpeg"]),at.some(function(Qe){return Ke.endsWith(Qe)})}return/\/\*$/.test(Ve)?rt===Ve.replace(/\/.*$/,""):qe===Ve?!0:/^\w+$/.test(Ve)?((0,pe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ve,"'.Skip for check.")),!0):!1})}return!0};function de($e,it){var Ne="cannot ".concat($e.method," ").concat($e.action," ").concat(it.status,"'"),Fe=new Error(Ne);return Fe.status=it.status,Fe.method=$e.method,Fe.url=$e.action,Fe}function we($e){var it=$e.responseText||$e.response;if(!it)return it;try{return JSON.parse(it)}catch(Ne){return it}}function Te($e){var it=new XMLHttpRequest;$e.onProgress&&it.upload&&(it.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),$e.onProgress(rt)});var Ne=new FormData;$e.data&&Object.keys($e.data).forEach(function(qe){var rt=$e.data[qe];if(Array.isArray(rt)){rt.forEach(function(tt){Ne.append("".concat(qe,"[]"),tt)});return}Ne.append(qe,rt)}),$e.file instanceof Blob?Ne.append($e.filename,$e.file,$e.file.name):Ne.append($e.filename,$e.file),it.onerror=function(rt){$e.onError(rt)},it.onload=function(){return it.status<200||it.status>=300?$e.onError(de($e,it),we(it)):$e.onSuccess(we(it),it)},it.open($e.method,$e.action,!0),$e.withCredentials&&"withCredentials"in it&&(it.withCredentials=!0);var Fe=$e.headers||{};return Fe["X-Requested-With"]!==null&&it.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Fe).forEach(function(qe){Fe[qe]!==null&&it.setRequestHeader(qe,Fe[qe])}),it.send(Ne),{abort:function(){it.abort()}}}var je=function(){var $e=(0,re.Z)((0,E.Z)().mark(function it(Ne,Fe){var qe,rt,tt,Ve,Ke,ze,at,Qe;return(0,E.Z)().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:ze=function(){return ze=(0,re.Z)((0,E.Z)().mark(function Le(De){return(0,E.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",new Promise(function(_e){De.file(function(Ue){Fe(Ue)?(De.fullPath&&!Ue.webkitRelativePath&&(Object.defineProperties(Ue,{webkitRelativePath:{writable:!0}}),Ue.webkitRelativePath=De.fullPath.replace(/^\//,""),Object.defineProperties(Ue,{webkitRelativePath:{writable:!1}})),_e(Ue)):_e(null)})}));case 1:case"end":return ce.stop()}},Le)})),ze.apply(this,arguments)},Ke=function(Le){return ze.apply(this,arguments)},Ve=function(){return Ve=(0,re.Z)((0,E.Z)().mark(function Le(De){var te,ce,_e,Ue,xe;return(0,E.Z)().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:te=De.createReader(),ce=[];case 2:return Oe.next=5,new Promise(function(We){te.readEntries(We,function(){return We([])})});case 5:if(_e=Oe.sent,Ue=_e.length,Ue){Oe.next=9;break}return Oe.abrupt("break",12);case 9:for(xe=0;xe<Ue;xe++)ce.push(_e[xe]);Oe.next=2;break;case 12:return Oe.abrupt("return",ce);case 13:case"end":return Oe.stop()}},Le)})),Ve.apply(this,arguments)},tt=function(Le){return Ve.apply(this,arguments)},qe=[],rt=[],Ne.forEach(function(Xe){return rt.push(Xe.webkitGetAsEntry())}),at=function(){var Xe=(0,re.Z)((0,E.Z)().mark(function Le(De,te){var ce,_e;return(0,E.Z)().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(De){xe.next=2;break}return xe.abrupt("return");case 2:if(De.path=te||"",!De.isFile){xe.next=10;break}return xe.next=6,Ke(De);case 6:ce=xe.sent,ce&&qe.push(ce),xe.next=15;break;case 10:if(!De.isDirectory){xe.next=15;break}return xe.next=13,tt(De);case 13:_e=xe.sent,rt.push.apply(rt,(0,ne.Z)(_e));case 15:case"end":return xe.stop()}},Le)}));return function(De,te){return Xe.apply(this,arguments)}}(),Qe=0;case 9:if(!(Qe<rt.length)){st.next=15;break}return st.next=12,at(rt[Qe]);case 12:Qe++,st.next=9;break;case 15:return st.abrupt("return",qe);case 16:case"end":return st.stop()}},it)}));return function(Ne,Fe){return $e.apply(this,arguments)}}(),Me=je,Ae=+new Date,ge=0;function be(){return"rc-upload-".concat(Ae,"-").concat(++ge)}var Ee=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Re=function($e){(0,ye.Z)(Ne,$e);var it=(0,x.Z)(Ne);function Ne(){var Fe;(0,mt.Z)(this,Ne);for(var qe=arguments.length,rt=new Array(qe),tt=0;tt<qe;tt++)rt[tt]=arguments[tt];return Fe=it.call.apply(it,[this].concat(rt)),(0,z.Z)((0,Ce.Z)(Fe),"state",{uid:be()}),(0,z.Z)((0,Ce.Z)(Fe),"reqs",{}),(0,z.Z)((0,Ce.Z)(Fe),"fileInput",void 0),(0,z.Z)((0,Ce.Z)(Fe),"_isMounted",void 0),(0,z.Z)((0,Ce.Z)(Fe),"onChange",function(Ve){var Ke=Fe.props,ze=Ke.accept,at=Ke.directory,Qe=Ve.target.files,ut=(0,ne.Z)(Qe).filter(function(st){return!at||ve(st,ze)});Fe.uploadFiles(ut),Fe.reset()}),(0,z.Z)((0,Ce.Z)(Fe),"onClick",function(Ve){var Ke=Fe.fileInput;if(Ke){var ze=Ve.target,at=Fe.props.onClick;if(ze&&ze.tagName==="BUTTON"){var Qe=Ke.parentNode;Qe.focus(),ze.blur()}Ke.click(),at&&at(Ve)}}),(0,z.Z)((0,Ce.Z)(Fe),"onKeyDown",function(Ve){Ve.key==="Enter"&&Fe.onClick(Ve)}),(0,z.Z)((0,Ce.Z)(Fe),"onFileDrop",function(){var Ve=(0,re.Z)((0,E.Z)().mark(function Ke(ze){var at,Qe,ut;return(0,E.Z)().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(at=Fe.props.multiple,ze.preventDefault(),ze.type!=="dragover"){Xe.next=4;break}return Xe.abrupt("return");case 4:if(!Fe.props.directory){Xe.next=11;break}return Xe.next=7,Me(Array.prototype.slice.call(ze.dataTransfer.items),function(Le){return ve(Le,Fe.props.accept)});case 7:Qe=Xe.sent,Fe.uploadFiles(Qe),Xe.next=14;break;case 11:ut=(0,ne.Z)(ze.dataTransfer.files).filter(function(Le){return ve(Le,Fe.props.accept)}),at===!1&&(ut=ut.slice(0,1)),Fe.uploadFiles(ut);case 14:case"end":return Xe.stop()}},Ke)}));return function(Ke){return Ve.apply(this,arguments)}}()),(0,z.Z)((0,Ce.Z)(Fe),"uploadFiles",function(Ve){var Ke=(0,ne.Z)(Ve),ze=Ke.map(function(at){return at.uid=be(),Fe.processFile(at,Ke)});Promise.all(ze).then(function(at){var Qe=Fe.props.onBatchStart;Qe==null||Qe(at.map(function(ut){var st=ut.origin,Xe=ut.parsedFile;return{file:st,parsedFile:Xe}})),at.filter(function(ut){return ut.parsedFile!==null}).forEach(function(ut){Fe.post(ut)})})}),(0,z.Z)((0,Ce.Z)(Fe),"processFile",function(){var Ve=(0,re.Z)((0,E.Z)().mark(function Ke(ze,at){var Qe,ut,st,Xe,Le,De,te,ce,_e;return(0,E.Z)().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(Qe=Fe.props.beforeUpload,ut=ze,!Qe){xe.next=14;break}return xe.prev=3,xe.next=6,Qe(ze,at);case 6:ut=xe.sent,xe.next=12;break;case 9:xe.prev=9,xe.t0=xe.catch(3),ut=!1;case 12:if(ut!==!1){xe.next=14;break}return xe.abrupt("return",{origin:ze,parsedFile:null,action:null,data:null});case 14:if(st=Fe.props.action,typeof st!="function"){xe.next=21;break}return xe.next=18,st(ze);case 18:Xe=xe.sent,xe.next=22;break;case 21:Xe=st;case 22:if(Le=Fe.props.data,typeof Le!="function"){xe.next=29;break}return xe.next=26,Le(ze);case 26:De=xe.sent,xe.next=30;break;case 29:De=Le;case 30:return te=((0,fe.Z)(ut)==="object"||typeof ut=="string")&&ut?ut:ze,te instanceof File?ce=te:ce=new File([te],ze.name,{type:ze.type}),_e=ce,_e.uid=ze.uid,xe.abrupt("return",{origin:ze,data:De,parsedFile:_e,action:Xe});case 35:case"end":return xe.stop()}},Ke,null,[[3,9]])}));return function(Ke,ze){return Ve.apply(this,arguments)}}()),(0,z.Z)((0,Ce.Z)(Fe),"saveFileInput",function(Ve){Fe.fileInput=Ve}),Fe}return(0,y.Z)(Ne,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(qe){var rt=this,tt=qe.data,Ve=qe.origin,Ke=qe.action,ze=qe.parsedFile;if(this._isMounted){var at=this.props,Qe=at.onStart,ut=at.customRequest,st=at.name,Xe=at.headers,Le=at.withCredentials,De=at.method,te=Ve.uid,ce=ut||Te,_e={action:Ke,filename:st,data:tt,file:ze,headers:Xe,withCredentials:Le,method:De||"post",onProgress:function(xe){var Se=rt.props.onProgress;Se==null||Se(xe,ze)},onSuccess:function(xe,Se){var Oe=rt.props.onSuccess;Oe==null||Oe(xe,ze,Se),delete rt.reqs[te]},onError:function(xe,Se){var Oe=rt.props.onError;Oe==null||Oe(xe,Se,ze),delete rt.reqs[te]}};Qe(Ve),this.reqs[te]=ce(_e)}}},{key:"reset",value:function(){this.setState({uid:be()})}},{key:"abort",value:function(qe){var rt=this.reqs;if(qe){var tt=qe.uid?qe.uid:qe;rt[tt]&&rt[tt].abort&&rt[tt].abort(),delete rt[tt]}else Object.keys(rt).forEach(function(Ve){rt[Ve]&&rt[Ve].abort&&rt[Ve].abort(),delete rt[Ve]})}},{key:"render",value:function(){var qe=this.props,rt=qe.component,tt=qe.prefixCls,Ve=qe.className,Ke=qe.classNames,ze=Ke===void 0?{}:Ke,at=qe.disabled,Qe=qe.id,ut=qe.name,st=qe.style,Xe=qe.styles,Le=Xe===void 0?{}:Xe,De=qe.multiple,te=qe.accept,ce=qe.capture,_e=qe.children,Ue=qe.directory,xe=qe.openFileDialogOnClick,Se=qe.onMouseEnter,Oe=qe.onMouseLeave,We=qe.hasControlInside,et=(0,ee.Z)(qe,Ee),nt=ue()((0,z.Z)((0,z.Z)((0,z.Z)({},tt,!0),"".concat(tt,"-disabled"),at),Ve,Ve)),dt=Ue?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ct=at?{}:{onClick:xe?this.onClick:function(){},onKeyDown:xe?this.onKeyDown:function(){},onMouseEnter:Se,onMouseLeave:Oe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:We?void 0:"0"};return se.createElement(rt,(0,Ye.Z)({},ct,{className:nt,role:We?void 0:"button",style:st}),se.createElement("input",(0,Ye.Z)({},(0,he.Z)(et,{aria:!0,data:!0}),{id:Qe,name:ut,disabled:at,type:"file",ref:this.saveFileInput,onClick:function(St){return St.stopPropagation()},key:this.state.uid,style:(0,ae.Z)({display:"none"},Le.input),className:ze.input,accept:te},dt,{multiple:De,onChange:this.onChange},ce!=null?{capture:ce}:{})),_e)}}]),Ne}(se.Component),Ie=Re;function ke(){}var Pe=function($e){(0,ye.Z)(Ne,$e);var it=(0,x.Z)(Ne);function Ne(){var Fe;(0,mt.Z)(this,Ne);for(var qe=arguments.length,rt=new Array(qe),tt=0;tt<qe;tt++)rt[tt]=arguments[tt];return Fe=it.call.apply(it,[this].concat(rt)),(0,z.Z)((0,Ce.Z)(Fe),"uploader",void 0),(0,z.Z)((0,Ce.Z)(Fe),"saveUploader",function(Ve){Fe.uploader=Ve}),Fe}return(0,y.Z)(Ne,[{key:"abort",value:function(qe){this.uploader.abort(qe)}},{key:"render",value:function(){return se.createElement(Ie,(0,Ye.Z)({},this.props,{ref:this.saveUploader}))}}]),Ne}(se.Component);(0,z.Z)(Pe,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ke,onError:ke,onSuccess:ke,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ze=Pe,He=Ze},8224:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return mt}});var Ye=Ge(4676);function mt(y,Ce,ye,x){var z=Ye.unstable_batchedUpdates?function(ae){Ye.unstable_batchedUpdates(ye,ae)}:ye;return y!=null&&y.addEventListener&&y.addEventListener(Ce,z,x),{remove:function(){y!=null&&y.removeEventListener&&y.removeEventListener(Ce,z,x)}}}},24514:function(Ht,_t,Ge){"use strict";Ge.d(_t,{G:function(){return Ce}});var Ye=Ge(47273),mt=function(x){if((0,Ye.Z)()&&window.document.documentElement){var z=Array.isArray(x)?x:[x],se=window.document.documentElement;return z.some(function(ae){return ae in se.style})}return!1},y=function(x,z){if(!mt(x))return!1;var se=document.createElement("div"),ae=se.style[x];return se.style[x]=z,se.style[x]!==ae};function Ce(ye,x){return!Array.isArray(ye)&&x!==void 0?y(ye,x):mt(ye)}},6790:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return Le}});var Ye=Ge(32855),mt=Ge(34666),y=Ge(27247),Ce=Ge(74430),ye=Ge(11913),x=Ge(43079),z=Ge(92310),se=Ge.n(z),ae=Ge(29301),ee=Ge(70425),fe=Ge(34280),E=Ge(59301),re=Ge(4676),ne=E.forwardRef(function(De,te){var ce=De.height,_e=De.offsetY,Ue=De.offsetX,xe=De.children,Se=De.prefixCls,Oe=De.onInnerResize,We=De.innerProps,et=De.rtl,nt=De.extra,dt={},ct={display:"flex",flexDirection:"column"};return _e!==void 0&&(dt={height:ce,position:"relative",overflow:"hidden"},ct=(0,y.Z)((0,y.Z)({},ct),{},(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({transform:"translateY(".concat(_e,"px)")},et?"marginRight":"marginLeft",-Ue),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:dt},E.createElement(ae.Z,{onResize:function(St){var yt=St.offsetHeight;yt&&Oe&&Oe()}},E.createElement("div",(0,Ye.Z)({style:ct,className:se()((0,Ce.Z)({},"".concat(Se,"-holder-inner"),Se)),ref:te},We),xe,nt)))});ne.displayName="Filler";var le=ne;function ue(De){var te=De.children,ce=De.setRef,_e=E.useCallback(function(Ue){ce(Ue)},[]);return E.cloneElement(te,{ref:_e})}function he(De,te,ce,_e,Ue,xe,Se,Oe){var We=Oe.getKey;return De.slice(te,ce+1).map(function(et,nt){var dt=te+nt,ct=Se(et,dt,{style:{width:_e},offsetX:Ue}),pt=We(et);return E.createElement(ue,{key:pt,setRef:function(yt){return xe(et,yt)}},ct)})}function pe(De,te,ce,_e){var Ue=ce-De,xe=te-ce,Se=Math.min(Ue,xe)*2;if(_e<=Se){var Oe=Math.floor(_e/2);return _e%2?ce+Oe+1:ce-Oe}return Ue>xe?ce-(_e-xe):ce+(_e-Ue)}function ve(De,te,ce){var _e=De.length,Ue=te.length,xe,Se;if(_e===0&&Ue===0)return null;_e<Ue?(xe=De,Se=te):(xe=te,Se=De);var Oe={__EMPTY_ITEM__:!0};function We(St){return St!==void 0?ce(St):Oe}for(var et=null,nt=Math.abs(_e-Ue)!==1,dt=0;dt<Se.length;dt+=1){var ct=We(xe[dt]),pt=We(Se[dt]);if(ct!==pt){et=dt,nt=nt||ct!==We(Se[dt+1]);break}}return et===null?null:{index:et,multiple:nt}}function de(De,te,ce){var _e=E.useState(De),Ue=(0,ye.Z)(_e,2),xe=Ue[0],Se=Ue[1],Oe=E.useState(null),We=(0,ye.Z)(Oe,2),et=We[0],nt=We[1];return E.useEffect(function(){var dt=ve(xe||[],De||[],te);(dt==null?void 0:dt.index)!==void 0&&(ce==null||ce(dt.index),nt(De[dt.index])),Se(De)},[De]),[et]}var we=Ge(16089),Te=(typeof navigator=="undefined"?"undefined":(0,mt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),je=Te,Me=function(De,te,ce,_e){var Ue=(0,E.useRef)(!1),xe=(0,E.useRef)(null);function Se(){clearTimeout(xe.current),Ue.current=!0,xe.current=setTimeout(function(){Ue.current=!1},50)}var Oe=(0,E.useRef)({top:De,bottom:te,left:ce,right:_e});return Oe.current.top=De,Oe.current.bottom=te,Oe.current.left=ce,Oe.current.right=_e,function(We,et){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,dt=We?et<0&&Oe.current.left||et>0&&Oe.current.right:et<0&&Oe.current.top||et>0&&Oe.current.bottom;return nt&&dt?(clearTimeout(xe.current),Ue.current=!1):(!dt||Ue.current)&&Se(),!Ue.current&&dt}};function Ae(De,te,ce,_e,Ue,xe,Se){var Oe=(0,E.useRef)(0),We=(0,E.useRef)(null),et=(0,E.useRef)(null),nt=(0,E.useRef)(!1),dt=Me(te,ce,_e,Ue);function ct(Tt,bt){if(we.Z.cancel(We.current),!dt(!1,bt)){var ft=Tt;if(!ft._virtualHandled)ft._virtualHandled=!0;else return;Oe.current+=bt,et.current=bt,je||ft.preventDefault(),We.current=(0,we.Z)(function(){var Dt=nt.current?10:1;Se(Oe.current*Dt,!1),Oe.current=0})}}function pt(Tt,bt){Se(bt,!0),je||Tt.preventDefault()}var St=(0,E.useRef)(null),yt=(0,E.useRef)(null);function xt(Tt){if(De){we.Z.cancel(yt.current),yt.current=(0,we.Z)(function(){St.current=null},2);var bt=Tt.deltaX,ft=Tt.deltaY,Dt=Tt.shiftKey,At=bt,Mt=ft;(St.current==="sx"||!St.current&&Dt&&ft&&!bt)&&(At=ft,Mt=0,St.current="sx");var $t=Math.abs(At),pr=Math.abs(Mt);St.current===null&&(St.current=xe&&$t>pr?"x":"y"),St.current==="y"?ct(Tt,Mt):pt(Tt,At)}}function vt(Tt){De&&(nt.current=Tt.detail===et.current)}return[xt,vt]}function ge(De,te,ce,_e){var Ue=E.useMemo(function(){return[new Map,[]]},[De,ce.id,_e]),xe=(0,ye.Z)(Ue,2),Se=xe[0],Oe=xe[1],We=function(nt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt,ct=Se.get(nt),pt=Se.get(dt);if(ct===void 0||pt===void 0)for(var St=De.length,yt=Oe.length;yt<St;yt+=1){var xt,vt=De[yt],Tt=te(vt);Se.set(Tt,yt);var bt=(xt=ce.get(Tt))!==null&&xt!==void 0?xt:_e;if(Oe[yt]=(Oe[yt-1]||0)+bt,Tt===nt&&(ct=yt),Tt===dt&&(pt=yt),ct!==void 0&&pt!==void 0)break}return{top:Oe[ct-1]||0,bottom:Oe[pt]}};return We}var be=Ge(33377),Ee=Ge(93912),Re=function(){function De(){(0,be.Z)(this,De),(0,Ce.Z)(this,"maps",void 0),(0,Ce.Z)(this,"id",0),(0,Ce.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ee.Z)(De,[{key:"set",value:function(ce,_e){this.diffRecords.set(ce,this.maps[ce]),this.maps[ce]=_e,this.id+=1}},{key:"get",value:function(ce){return this.maps[ce]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),De}(),Ie=Re;function ke(De){var te=parseFloat(De);return isNaN(te)?0:te}function Pe(De,te,ce){var _e=E.useState(0),Ue=(0,ye.Z)(_e,2),xe=Ue[0],Se=Ue[1],Oe=(0,E.useRef)(new Map),We=(0,E.useRef)(new Ie),et=(0,E.useRef)(0);function nt(){et.current+=1}function dt(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;nt();var St=function(){var vt=!1;Oe.current.forEach(function(Tt,bt){if(Tt&&Tt.offsetParent){var ft=Tt.offsetHeight,Dt=getComputedStyle(Tt),At=Dt.marginTop,Mt=Dt.marginBottom,$t=ke(At),pr=ke(Mt),qt=ft+$t+pr;We.current.get(bt)!==qt&&(We.current.set(bt,qt),vt=!0)}}),vt&&Se(function(Tt){return Tt+1})};if(pt)St();else{et.current+=1;var yt=et.current;Promise.resolve().then(function(){yt===et.current&&St()})}}function ct(pt,St){var yt=De(pt),xt=Oe.current.get(yt);St?(Oe.current.set(yt,St),dt()):Oe.current.delete(yt),!xt!=!St&&(St?te==null||te(pt):ce==null||ce(pt))}return(0,E.useEffect)(function(){return nt},[]),[ct,dt,We.current,xe]}var Ze=14/15;function He(De,te,ce){var _e=(0,E.useRef)(!1),Ue=(0,E.useRef)(0),xe=(0,E.useRef)(0),Se=(0,E.useRef)(null),Oe=(0,E.useRef)(null),We,et=function(pt){if(_e.current){var St=Math.ceil(pt.touches[0].pageX),yt=Math.ceil(pt.touches[0].pageY),xt=Ue.current-St,vt=xe.current-yt,Tt=Math.abs(xt)>Math.abs(vt);Tt?Ue.current=St:xe.current=yt;var bt=ce(Tt,Tt?xt:vt,!1,pt);bt&&pt.preventDefault(),clearInterval(Oe.current),bt&&(Oe.current=setInterval(function(){Tt?xt*=Ze:vt*=Ze;var ft=Math.floor(Tt?xt:vt);(!ce(Tt,ft,!0)||Math.abs(ft)<=.1)&&clearInterval(Oe.current)},16))}},nt=function(){_e.current=!1,We()},dt=function(pt){We(),pt.touches.length===1&&!_e.current&&(_e.current=!0,Ue.current=Math.ceil(pt.touches[0].pageX),xe.current=Math.ceil(pt.touches[0].pageY),Se.current=pt.target,Se.current.addEventListener("touchmove",et,{passive:!1}),Se.current.addEventListener("touchend",nt,{passive:!0}))};We=function(){Se.current&&(Se.current.removeEventListener("touchmove",et),Se.current.removeEventListener("touchend",nt))},(0,fe.Z)(function(){return De&&te.current.addEventListener("touchstart",dt,{passive:!0}),function(){var ct;(ct=te.current)===null||ct===void 0||ct.removeEventListener("touchstart",dt),We(),clearInterval(Oe.current)}},[De])}function $e(De){return Math.floor(Math.pow(De,.5))}function it(De,te){var ce="touches"in De?De.touches[0]:De;return ce[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Ne(De,te,ce){E.useEffect(function(){var _e=te.current;if(De&&_e){var Ue=!1,xe,Se,Oe=function(){we.Z.cancel(xe)},We=function ct(){Oe(),xe=(0,we.Z)(function(){ce(Se),ct()})},et=function(pt){if(!(pt.target.draggable||pt.button!==0)){var St=pt;St._virtualHandled||(St._virtualHandled=!0,Ue=!0)}},nt=function(){Ue=!1,Oe()},dt=function(pt){if(Ue){var St=it(pt,!1),yt=_e.getBoundingClientRect(),xt=yt.top,vt=yt.bottom;if(St<=xt){var Tt=xt-St;Se=-$e(Tt),We()}else if(St>=vt){var bt=St-vt;Se=$e(bt),We()}else Oe()}};return _e.addEventListener("mousedown",et),_e.ownerDocument.addEventListener("mouseup",nt),_e.ownerDocument.addEventListener("mousemove",dt),function(){_e.removeEventListener("mousedown",et),_e.ownerDocument.removeEventListener("mouseup",nt),_e.ownerDocument.removeEventListener("mousemove",dt),Oe()}}},[De])}var Fe=10;function qe(De,te,ce,_e,Ue,xe,Se,Oe){var We=E.useRef(),et=E.useState(null),nt=(0,ye.Z)(et,2),dt=nt[0],ct=nt[1];return(0,fe.Z)(function(){if(dt&&dt.times<Fe){if(!De.current){ct(function(An){return(0,y.Z)({},An)});return}xe();var pt=dt.targetAlign,St=dt.originAlign,yt=dt.index,xt=dt.offset,vt=De.current.clientHeight,Tt=!1,bt=pt,ft=null;if(vt){for(var Dt=pt||St,At=0,Mt=0,$t=0,pr=Math.min(te.length-1,yt),qt=0;qt<=pr;qt+=1){var wr=Ue(te[qt]);Mt=At;var jr=ce.get(wr);$t=Mt+(jr===void 0?_e:jr),At=$t}for(var Dr=Dt==="top"?xt:vt-xt,Fr=pr;Fr>=0;Fr-=1){var on=Ue(te[Fr]),wn=ce.get(on);if(wn===void 0){Tt=!0;break}if(Dr-=wn,Dr<=0)break}switch(Dt){case"top":ft=Mt-xt;break;case"bottom":ft=$t-vt+xt;break;default:{var hn=De.current.scrollTop,Gr=hn+vt;Mt<hn?bt="top":$t>Gr&&(bt="bottom")}}ft!==null&&Se(ft),ft!==dt.lastTop&&(Tt=!0)}Tt&&ct((0,y.Z)((0,y.Z)({},dt),{},{times:dt.times+1,targetAlign:bt,lastTop:ft}))}},[dt,De.current]),function(pt){if(pt==null){Oe();return}if(we.Z.cancel(We.current),typeof pt=="number")Se(pt);else if(pt&&(0,mt.Z)(pt)==="object"){var St,yt=pt.align;"index"in pt?St=pt.index:St=te.findIndex(function(Tt){return Ue(Tt)===pt.key});var xt=pt.offset,vt=xt===void 0?0:xt;ct({times:0,index:St,offset:vt,originAlign:yt})}}}var rt=E.forwardRef(function(De,te){var ce=De.prefixCls,_e=De.rtl,Ue=De.scrollOffset,xe=De.scrollRange,Se=De.onStartMove,Oe=De.onStopMove,We=De.onScroll,et=De.horizontal,nt=De.spinSize,dt=De.containerSize,ct=De.style,pt=De.thumbStyle,St=De.showScrollBar,yt=E.useState(!1),xt=(0,ye.Z)(yt,2),vt=xt[0],Tt=xt[1],bt=E.useState(null),ft=(0,ye.Z)(bt,2),Dt=ft[0],At=ft[1],Mt=E.useState(null),$t=(0,ye.Z)(Mt,2),pr=$t[0],qt=$t[1],wr=!_e,jr=E.useRef(),Dr=E.useRef(),Fr=E.useState(St),on=(0,ye.Z)(Fr,2),wn=on[0],hn=on[1],Gr=E.useRef(),An=function(){St===!0||St===!1||(clearTimeout(Gr.current),hn(!0),Gr.current=setTimeout(function(){hn(!1)},3e3))},Rn=xe-dt||0,Tr=dt-nt||0,Sr=E.useMemo(function(){if(Ue===0||Rn===0)return 0;var tn=Ue/Rn;return tn*Tr},[Ue,Rn,Tr]),sn=function(Zr){Zr.stopPropagation(),Zr.preventDefault()},lr=E.useRef({top:Sr,dragging:vt,pageY:Dt,startTop:pr});lr.current={top:Sr,dragging:vt,pageY:Dt,startTop:pr};var tr=function(Zr){Tt(!0),At(it(Zr,et)),qt(lr.current.top),Se(),Zr.stopPropagation(),Zr.preventDefault()};E.useEffect(function(){var tn=function(fr){fr.preventDefault()},Zr=jr.current,Lr=Dr.current;return Zr.addEventListener("touchstart",tn,{passive:!1}),Lr.addEventListener("touchstart",tr,{passive:!1}),function(){Zr.removeEventListener("touchstart",tn),Lr.removeEventListener("touchstart",tr)}},[]);var or=E.useRef();or.current=Rn;var Pr=E.useRef();Pr.current=Tr,E.useEffect(function(){if(vt){var tn,Zr=function(fr){var Vt=lr.current,xr=Vt.dragging,Kr=Vt.pageY,mn=Vt.startTop;we.Z.cancel(tn);var Ct=jr.current.getBoundingClientRect(),kt=dt/(et?Ct.width:Ct.height);if(xr){var ir=(it(fr,et)-Kr)*kt,Kt=mn;!wr&&et?Kt-=ir:Kt+=ir;var jt=or.current,nr=Pr.current,dr=nr?Kt/nr:0,hr=Math.ceil(dr*jt);hr=Math.max(hr,0),hr=Math.min(hr,jt),tn=(0,we.Z)(function(){We(hr,et)})}},Lr=function(){Tt(!1),Oe()};return window.addEventListener("mousemove",Zr,{passive:!0}),window.addEventListener("touchmove",Zr,{passive:!0}),window.addEventListener("mouseup",Lr,{passive:!0}),window.addEventListener("touchend",Lr,{passive:!0}),function(){window.removeEventListener("mousemove",Zr),window.removeEventListener("touchmove",Zr),window.removeEventListener("mouseup",Lr),window.removeEventListener("touchend",Lr),we.Z.cancel(tn)}}},[vt]),E.useEffect(function(){return An(),function(){clearTimeout(Gr.current)}},[Ue]),E.useImperativeHandle(te,function(){return{delayHidden:An}});var mr="".concat(ce,"-scrollbar"),Br={position:"absolute",visibility:wn?null:"hidden"},qr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return et?(Object.assign(Br,{height:8,left:0,right:0,bottom:0}),Object.assign(qr,(0,Ce.Z)({height:"100%",width:nt},wr?"left":"right",Sr))):(Object.assign(Br,(0,Ce.Z)({width:8,top:0,bottom:0},wr?"right":"left",0)),Object.assign(qr,{width:"100%",height:nt,top:Sr})),E.createElement("div",{ref:jr,className:se()(mr,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(mr,"-horizontal"),et),"".concat(mr,"-vertical"),!et),"".concat(mr,"-visible"),wn)),style:(0,y.Z)((0,y.Z)({},Br),ct),onMouseDown:sn,onMouseMove:An},E.createElement("div",{ref:Dr,className:se()("".concat(mr,"-thumb"),(0,Ce.Z)({},"".concat(mr,"-thumb-moving"),vt)),style:(0,y.Z)((0,y.Z)({},qr),pt),onMouseDown:tr}))}),tt=rt,Ve=20;function Ke(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ce=De/te*De;return isNaN(ce)&&(ce=0),ce=Math.max(ce,Ve),Math.floor(ce)}var ze=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],at=[],Qe={overflowY:"auto",overflowAnchor:"none"};function ut(De,te){var ce=De.prefixCls,_e=ce===void 0?"rc-virtual-list":ce,Ue=De.className,xe=De.height,Se=De.itemHeight,Oe=De.fullHeight,We=Oe===void 0?!0:Oe,et=De.style,nt=De.data,dt=De.children,ct=De.itemKey,pt=De.virtual,St=De.direction,yt=De.scrollWidth,xt=De.component,vt=xt===void 0?"div":xt,Tt=De.onScroll,bt=De.onVirtualScroll,ft=De.onVisibleChange,Dt=De.innerProps,At=De.extraRender,Mt=De.styles,$t=De.showScrollBar,pr=$t===void 0?"optional":$t,qt=(0,x.Z)(De,ze),wr=E.useCallback(function(Ot){return typeof ct=="function"?ct(Ot):Ot==null?void 0:Ot[ct]},[ct]),jr=Pe(wr,null,null),Dr=(0,ye.Z)(jr,4),Fr=Dr[0],on=Dr[1],wn=Dr[2],hn=Dr[3],Gr=!!(pt!==!1&&xe&&Se),An=E.useMemo(function(){return Object.values(wn.maps).reduce(function(Ot,Ut){return Ot+Ut},0)},[wn.id,wn.maps]),Rn=Gr&&nt&&(Math.max(Se*nt.length,An)>xe||!!yt),Tr=St==="rtl",Sr=se()(_e,(0,Ce.Z)({},"".concat(_e,"-rtl"),Tr),Ue),sn=nt||at,lr=(0,E.useRef)(),tr=(0,E.useRef)(),or=(0,E.useRef)(),Pr=(0,E.useState)(0),mr=(0,ye.Z)(Pr,2),Br=mr[0],qr=mr[1],tn=(0,E.useState)(0),Zr=(0,ye.Z)(tn,2),Lr=Zr[0],pn=Zr[1],fr=(0,E.useState)(!1),Vt=(0,ye.Z)(fr,2),xr=Vt[0],Kr=Vt[1],mn=function(){Kr(!0)},Ct=function(){Kr(!1)},kt={getKey:wr};function ir(Ot){qr(function(Ut){var zt;typeof Ot=="function"?zt=Ot(Ut):zt=Ot;var Zt=Xn(zt);return lr.current.scrollTop=Zt,Zt})}var Kt=(0,E.useRef)({start:0,end:sn.length}),jt=(0,E.useRef)(),nr=de(sn,wr),dr=(0,ye.Z)(nr,1),hr=dr[0];jt.current=hr;var br=E.useMemo(function(){if(!Gr)return{scrollHeight:void 0,start:0,end:sn.length-1,offset:void 0};if(!Rn){var Ot;return{scrollHeight:((Ot=tr.current)===null||Ot===void 0?void 0:Ot.offsetHeight)||0,start:0,end:sn.length-1,offset:void 0}}for(var Ut=0,zt,Zt,er,Bt=sn.length,Jt=0;Jt<Bt;Jt+=1){var Xt=sn[Jt],ar=wr(Xt),Er=wn.get(ar),Cr=Ut+(Er===void 0?Se:Er);Cr>=Br&&zt===void 0&&(zt=Jt,Zt=Ut),Cr>Br+xe&&er===void 0&&(er=Jt),Ut=Cr}return zt===void 0&&(zt=0,Zt=0,er=Math.ceil(xe/Se)),er===void 0&&(er=sn.length-1),er=Math.min(er+1,sn.length-1),{scrollHeight:Ut,start:zt,end:er,offset:Zt}},[Rn,Gr,Br,sn,hn,xe]),ur=br.scrollHeight,gr=br.start,Pt=br.end,Ur=br.offset;Kt.current.start=gr,Kt.current.end=Pt,E.useLayoutEffect(function(){var Ot=wn.getRecord();if(Ot.size===1){var Ut=Array.from(Ot.keys())[0],zt=Ot.get(Ut),Zt=sn[gr];if(Zt&&zt===void 0){var er=wr(Zt);if(er===Ut){var Bt=wn.get(Ut),Jt=Bt-Se;ir(function(Xt){return Xt+Jt})}}}wn.resetRecord()},[ur]);var sr=E.useState({width:0,height:xe}),yr=(0,ye.Z)(sr,2),Or=yr[0],Wr=yr[1],an=function(Ut){Wr({width:Ut.offsetWidth,height:Ut.offsetHeight})},Ln=(0,E.useRef)(),yn=(0,E.useRef)(),un=E.useMemo(function(){return Ke(Or.width,yt)},[Or.width,yt]),On=E.useMemo(function(){return Ke(Or.height,ur)},[Or.height,ur]),zr=ur-xe,zn=(0,E.useRef)(zr);zn.current=zr;function Xn(Ot){var Ut=Ot;return Number.isNaN(zn.current)||(Ut=Math.min(Ut,zn.current)),Ut=Math.max(Ut,0),Ut}var Hn=Br<=0,Gn=Br>=zr,Yn=Lr<=0,Kn=Lr>=yt,Dn=Me(Hn,Gn,Yn,Kn),$n=function(){return{x:Tr?-Lr:Lr,y:Br}},Wn=(0,E.useRef)($n()),_r=(0,ee.zX)(function(Ot){if(bt){var Ut=(0,y.Z)((0,y.Z)({},$n()),Ot);(Wn.current.x!==Ut.x||Wn.current.y!==Ut.y)&&(bt(Ut),Wn.current=Ut)}});function en(Ot,Ut){var zt=Ot;Ut?((0,re.flushSync)(function(){pn(zt)}),_r()):ir(zt)}function bn(Ot){var Ut=Ot.currentTarget.scrollTop;Ut!==Br&&ir(Ut),Tt==null||Tt(Ot),_r()}var In=function(Ut){var zt=Ut,Zt=yt?yt-Or.width:0;return zt=Math.max(zt,0),zt=Math.min(zt,Zt),zt},Mn=(0,ee.zX)(function(Ot,Ut){Ut?((0,re.flushSync)(function(){pn(function(zt){var Zt=zt+(Tr?-Ot:Ot);return In(Zt)})}),_r()):ir(function(zt){var Zt=zt+Ot;return Zt})}),Nn=Ae(Gr,Hn,Gn,Yn,Kn,!!yt,Mn),ii=(0,ye.Z)(Nn,2),gt=ii[0],Lt=ii[1];He(Gr,lr,function(Ot,Ut,zt,Zt){var er=Zt;return Dn(Ot,Ut,zt)?!1:!er||!er._virtualHandled?(er&&(er._virtualHandled=!0),gt({preventDefault:function(){},deltaX:Ot?Ut:0,deltaY:Ot?0:Ut}),!0):!1}),Ne(Rn,lr,function(Ot){ir(function(Ut){return Ut+Ot})}),(0,fe.Z)(function(){function Ot(zt){var Zt=Hn&&zt.detail<0,er=Gn&&zt.detail>0;Gr&&!Zt&&!er&&zt.preventDefault()}var Ut=lr.current;return Ut.addEventListener("wheel",gt,{passive:!1}),Ut.addEventListener("DOMMouseScroll",Lt,{passive:!0}),Ut.addEventListener("MozMousePixelScroll",Ot,{passive:!1}),function(){Ut.removeEventListener("wheel",gt),Ut.removeEventListener("DOMMouseScroll",Lt),Ut.removeEventListener("MozMousePixelScroll",Ot)}},[Gr,Hn,Gn]),(0,fe.Z)(function(){if(yt){var Ot=In(Lr);pn(Ot),_r({x:Ot})}},[Or.width,yt]);var Rt=function(){var Ut,zt;(Ut=Ln.current)===null||Ut===void 0||Ut.delayHidden(),(zt=yn.current)===null||zt===void 0||zt.delayHidden()},Ft=qe(lr,sn,wn,Se,wr,function(){return on(!0)},ir,Rt);E.useImperativeHandle(te,function(){return{nativeElement:or.current,getScrollInfo:$n,scrollTo:function(Ut){function zt(Zt){return Zt&&(0,mt.Z)(Zt)==="object"&&("left"in Zt||"top"in Zt)}zt(Ut)?(Ut.left!==void 0&&pn(In(Ut.left)),Ft(Ut.top)):Ft(Ut)}}}),(0,fe.Z)(function(){if(ft){var Ot=sn.slice(gr,Pt+1);ft(Ot,sn)}},[gr,Pt,sn]);var Gt=ge(sn,wr,wn,Se),It=At==null?void 0:At({start:gr,end:Pt,virtual:Rn,offsetX:Lr,offsetY:Ur,rtl:Tr,getSize:Gt}),Yt=he(sn,gr,Pt,yt,Lr,Fr,dt,kt),rr=null;xe&&(rr=(0,y.Z)((0,Ce.Z)({},We?"height":"maxHeight",xe),Qe),Gr&&(rr.overflowY="hidden",yt&&(rr.overflowX="hidden"),xr&&(rr.pointerEvents="none")));var Qt={};return Tr&&(Qt.dir="rtl"),E.createElement("div",(0,Ye.Z)({ref:or,style:(0,y.Z)((0,y.Z)({},et),{},{position:"relative"}),className:Sr},Qt,qt),E.createElement(ae.Z,{onResize:an},E.createElement(vt,{className:"".concat(_e,"-holder"),style:rr,ref:lr,onScroll:bn,onMouseEnter:Rt},E.createElement(le,{prefixCls:_e,height:ur,offsetX:Lr,offsetY:Ur,scrollWidth:yt,onInnerResize:on,ref:tr,innerProps:Dt,rtl:Tr,extra:It},Yt))),Rn&&ur>xe&&E.createElement(tt,{ref:Ln,prefixCls:_e,scrollOffset:Br,scrollRange:ur,rtl:Tr,onScroll:en,onStartMove:mn,onStopMove:Ct,spinSize:On,containerSize:Or.height,style:Mt==null?void 0:Mt.verticalScrollBar,thumbStyle:Mt==null?void 0:Mt.verticalScrollBarThumb,showScrollBar:pr}),Rn&&yt>Or.width&&E.createElement(tt,{ref:yn,prefixCls:_e,scrollOffset:Lr,scrollRange:yt,rtl:Tr,onScroll:en,onStartMove:mn,onStopMove:Ct,spinSize:un,containerSize:Or.width,horizontal:!0,style:Mt==null?void 0:Mt.horizontalScrollBar,thumbStyle:Mt==null?void 0:Mt.horizontalScrollBarThumb,showScrollBar:pr}))}var st=E.forwardRef(ut);st.displayName="List";var Xe=st,Le=Xe},7062:function(Ht,_t,Ge){var Ye=Ge(19637),mt=Ge(97573),y=[Ge(96627)];Ht.exports=Ye.createStore(mt,y)},96627:function(Ht,_t,Ge){Ht.exports=Ye;function Ye(){return Ge(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(Ht){return Ht<10?"0"+Ht:Ht}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(Ht){return rx_escapable.lastIndex=0,rx_escapable.test(Ht)?'"'+Ht.replace(rx_escapable,function(_t){var Ge=meta[_t];return typeof Ge=="string"?Ge:"\\u"+("0000"+_t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Ht+'"'}function str(Ht,_t){var Ge,Ye,mt,y,Ce=gap,ye,x=_t[Ht];switch(x&&typeof x=="object"&&typeof x.toJSON=="function"&&(x=x.toJSON(Ht)),typeof rep=="function"&&(x=rep.call(_t,Ht,x)),typeof x){case"string":return quote(x);case"number":return isFinite(x)?String(x):"null";case"boolean":case"null":return String(x);case"object":if(!x)return"null";if(gap+=indent,ye=[],Object.prototype.toString.apply(x)==="[object Array]"){for(y=x.length,Ge=0;Ge<y;Ge+=1)ye[Ge]=str(Ge,x)||"null";return mt=ye.length===0?"[]":gap?`[
`+gap+ye.join(`,
`+gap)+`
`+Ce+"]":"["+ye.join(",")+"]",gap=Ce,mt}if(rep&&typeof rep=="object")for(y=rep.length,Ge=0;Ge<y;Ge+=1)typeof rep[Ge]=="string"&&(Ye=rep[Ge],mt=str(Ye,x),mt&&ye.push(quote(Ye)+(gap?": ":":")+mt));else for(Ye in x)Object.prototype.hasOwnProperty.call(x,Ye)&&(mt=str(Ye,x),mt&&ye.push(quote(Ye)+(gap?": ":":")+mt));return mt=ye.length===0?"{}":gap?`{
`+gap+ye.join(`,
`+gap)+`
`+Ce+"}":"{"+ye.join(",")+"}",gap=Ce,mt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Ht,_t,Ge){var Ye;if(gap="",indent="",typeof Ge=="number")for(Ye=0;Ye<Ge;Ye+=1)indent+=" ";else typeof Ge=="string"&&(indent=Ge);if(rep=_t,_t&&typeof _t!="function"&&(typeof _t!="object"||typeof _t.length!="number"))throw new Error("JSON.stringify");return str("",{"":Ht})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Ht,_t){var Ge,Ye,mt=Ht[_t];if(mt&&typeof mt=="object")for(Ge in mt)Object.prototype.hasOwnProperty.call(mt,Ge)&&(Ye=walk(mt,Ge),Ye!==void 0?mt[Ge]=Ye:delete mt[Ge]);return reviver.call(Ht,_t,mt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Ht){return"\\u"+("0000"+Ht.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(Ht,_t,Ge){var Ye=Ge(67039),mt=Ye.slice,y=Ye.pluck,Ce=Ye.each,ye=Ye.bind,x=Ye.create,z=Ye.isList,se=Ye.isFunction,ae=Ye.isObject;Ht.exports={createStore:E};var ee={version:"2.0.12",enabled:!1,get:function(re,ne){var le=this.storage.read(this._namespacePrefix+re);return this._deserialize(le,ne)},set:function(re,ne){return ne===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(ne)),ne)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var ne=this;this.storage.each(function(le,ue){re.call(ne,ne._deserialize(le),(ue||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return E.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return E(this.storage,this.plugins,re)}};function fe(){var re=typeof console=="undefined"?null:console;if(re){var ne=re.warn?re.warn:re.log;ne.apply(re,arguments)}}function E(re,ne,le){le||(le=""),re&&!z(re)&&(re=[re]),ne&&!z(ne)&&(ne=[ne]);var ue=le?"__storejs_"+le+"_":"",he=le?new RegExp("^"+ue):null,pe=/^[a-zA-Z0-9_\-]*$/;if(!pe.test(le))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var ve={_namespacePrefix:ue,_namespaceRegexp:he,_testStorage:function(we){try{var Te="__storejs__test__";we.write(Te,Te);var je=we.read(Te)===Te;return we.remove(Te),je}catch(Me){return!1}},_assignPluginFnProp:function(we,Te){var je=this[Te];this[Te]=function(){var Ae=mt(arguments,0),ge=this;function be(){if(je)return Ce(arguments,function(Re,Ie){Ae[Ie]=Re}),je.apply(ge,Ae)}var Ee=[be].concat(Ae);return we.apply(ge,Ee)}},_serialize:function(we){return JSON.stringify(we)},_deserialize:function(we,Te){if(!we)return Te;var je="";try{je=JSON.parse(we)}catch(Me){je=we}return je!==void 0?je:Te},_addStorage:function(we){this.enabled||this._testStorage(we)&&(this.storage=we,this.enabled=!0)},_addPlugin:function(we){var Te=this;if(z(we)){Ce(we,function(Ae){Te._addPlugin(Ae)});return}var je=y(this.plugins,function(Ae){return we===Ae});if(!je){if(this.plugins.push(we),!se(we))throw new Error("Plugins must be function values that return objects");var Me=we.call(this);if(!ae(Me))throw new Error("Plugins must return an object of function properties");Ce(Me,function(Ae,ge){if(!se(Ae))throw new Error("Bad plugin property: "+ge+" from plugin "+we.name+". Plugins should only return functions.");Te._assignPluginFnProp(Ae,ge)})}},addStorage:function(we){fe("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(we)}},de=x(ve,ee,{plugins:[]});return de.raw={},Ce(de,function(we,Te){se(we)&&(de.raw[Te]=ye(de,we))}),Ce(re,function(we){de._addStorage(we)}),Ce(ne,function(we){de._addPlugin(we)}),de}},67039:function(Ht,_t,Ge){var Ye=ye(),mt=x(),y=z(),Ce=typeof window!="undefined"?window:Ge.g;Ht.exports={assign:Ye,create:mt,trim:y,bind:se,slice:ae,each:ee,map:fe,pluck:E,isList:re,isFunction:ne,isObject:le,Global:Ce};function ye(){return Object.assign?Object.assign:function(he,pe,ve,de){for(var we=1;we<arguments.length;we++)ee(Object(arguments[we]),function(Te,je){he[je]=Te});return he}}function x(){if(Object.create)return function(pe,ve,de,we){var Te=ae(arguments,1);return Ye.apply(this,[Object.create(pe)].concat(Te))};{let he=function(){};var ue=he;return function(ve,de,we,Te){var je=ae(arguments,1);return he.prototype=ve,Ye.apply(this,[new he].concat(je))}}}function z(){return String.prototype.trim?function(he){return String.prototype.trim.call(he)}:function(he){return he.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function se(ue,he){return function(){return he.apply(ue,Array.prototype.slice.call(arguments,0))}}function ae(ue,he){return Array.prototype.slice.call(ue,he||0)}function ee(ue,he){E(ue,function(pe,ve){return he(pe,ve),!1})}function fe(ue,he){var pe=re(ue)?[]:{};return E(ue,function(ve,de){return pe[de]=he(ve,de),!1}),pe}function E(ue,he){if(re(ue)){for(var pe=0;pe<ue.length;pe++)if(he(ue[pe],pe))return ue[pe]}else for(var ve in ue)if(ue.hasOwnProperty(ve)&&he(ue[ve],ve))return ue[ve]}function re(ue){return ue!=null&&typeof ue!="function"&&typeof ue.length=="number"}function ne(ue){return ue&&{}.toString.call(ue)==="[object Function]"}function le(ue){return ue&&{}.toString.call(ue)==="[object Object]"}},97573:function(Ht,_t,Ge){Ht.exports=[Ge(52496),Ge(16436),Ge(76673),Ge(35701),Ge(65578),Ge(65300)]},35701:function(Ht,_t,Ge){var Ye=Ge(67039),mt=Ye.Global,y=Ye.trim;Ht.exports={name:"cookieStorage",read:ye,write:z,each:x,remove:se,clearAll:ae};var Ce=mt.document;function ye(fe){if(!fe||!ee(fe))return null;var E="(?:^|.*;\\s*)"+escape(fe).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ce.cookie.replace(new RegExp(E),"$1"))}function x(fe){for(var E=Ce.cookie.split(/; ?/g),re=E.length-1;re>=0;re--)if(y(E[re])){var ne=E[re].split("="),le=unescape(ne[0]),ue=unescape(ne[1]);fe(ue,le)}}function z(fe,E){fe&&(Ce.cookie=escape(fe)+"="+escape(E)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function se(fe){!fe||!ee(fe)||(Ce.cookie=escape(fe)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ae(){x(function(fe,E){se(E)})}function ee(fe){return new RegExp("(?:^|;\\s*)"+escape(fe).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ce.cookie)}},52496:function(Ht,_t,Ge){var Ye=Ge(67039),mt=Ye.Global;Ht.exports={name:"localStorage",read:Ce,write:ye,each:x,remove:z,clearAll:se};function y(){return mt.localStorage}function Ce(ae){return y().getItem(ae)}function ye(ae,ee){return y().setItem(ae,ee)}function x(ae){for(var ee=y().length-1;ee>=0;ee--){var fe=y().key(ee);ae(Ce(fe),fe)}}function z(ae){return y().removeItem(ae)}function se(){return y().clear()}},65300:function(Ht){Ht.exports={name:"memoryStorage",read:Ge,write:Ye,each:mt,remove:y,clearAll:Ce};var _t={};function Ge(ye){return _t[ye]}function Ye(ye,x){_t[ye]=x}function mt(ye){for(var x in _t)_t.hasOwnProperty(x)&&ye(_t[x],x)}function y(ye){delete _t[ye]}function Ce(ye){_t={}}},16436:function(Ht,_t,Ge){var Ye=Ge(67039),mt=Ye.Global;Ht.exports={name:"oldFF-globalStorage",read:Ce,write:ye,each:x,remove:z,clearAll:se};var y=mt.globalStorage;function Ce(ae){return y[ae]}function ye(ae,ee){y[ae]=ee}function x(ae){for(var ee=y.length-1;ee>=0;ee--){var fe=y.key(ee);ae(y[fe],fe)}}function z(ae){return y.removeItem(ae)}function se(){x(function(ae,ee){delete y[ae]})}},76673:function(Ht,_t,Ge){var Ye=Ge(67039),mt=Ye.Global;Ht.exports={name:"oldIE-userDataStorage",write:z,read:se,each:ae,remove:ee,clearAll:fe};var y="storejs",Ce=mt.document,ye=ne(),x=(mt.navigator?mt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function z(le,ue){if(!x){var he=re(le);ye(function(pe){pe.setAttribute(he,ue),pe.save(y)})}}function se(le){if(!x){var ue=re(le),he=null;return ye(function(pe){he=pe.getAttribute(ue)}),he}}function ae(le){ye(function(ue){for(var he=ue.XMLDocument.documentElement.attributes,pe=he.length-1;pe>=0;pe--){var ve=he[pe];le(ue.getAttribute(ve.name),ve.name)}})}function ee(le){var ue=re(le);ye(function(he){he.removeAttribute(ue),he.save(y)})}function fe(){ye(function(le){var ue=le.XMLDocument.documentElement.attributes;le.load(y);for(var he=ue.length-1;he>=0;he--)le.removeAttribute(ue[he].name);le.save(y)})}var E=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(le){return le.replace(/^\d/,"___$&").replace(E,"___")}function ne(){if(!Ce||!Ce.documentElement||!Ce.documentElement.addBehavior)return null;var le="script",ue,he,pe;try{he=new ActiveXObject("htmlfile"),he.open(),he.write("<"+le+">document.w=window</"+le+'><iframe src="/favicon.ico"></iframe>'),he.close(),ue=he.w.frames[0].document,pe=ue.createElement("div")}catch(ve){pe=Ce.createElement("div"),ue=Ce.body}return function(ve){var de=[].slice.call(arguments,0);de.unshift(pe),ue.appendChild(pe),pe.addBehavior("#default#userData"),pe.load(y),ve.apply(this,de),ue.removeChild(pe)}}},65578:function(Ht,_t,Ge){var Ye=Ge(67039),mt=Ye.Global;Ht.exports={name:"sessionStorage",read:Ce,write:ye,each:x,remove:z,clearAll:se};function y(){return mt.sessionStorage}function Ce(ae){return y().getItem(ae)}function ye(ae,ee){return y().setItem(ae,ee)}function x(ae){for(var ee=y().length-1;ee>=0;ee--){var fe=y().key(ee);ae(Ce(fe),fe)}}function z(ae){return y().removeItem(ae)}function se(){return y().clear()}},93314:function(Ht){"use strict";Ht.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Ht,_t,Ge){"use strict";Ge.d(_t,{Z:function(){return se}});const Ye=ae=>typeof ae=="object"&&ae!=null&&ae.nodeType===1,mt=(ae,ee)=>(!ee||ae!=="hidden")&&ae!=="visible"&&ae!=="clip",y=(ae,ee)=>{if(ae.clientHeight<ae.scrollHeight||ae.clientWidth<ae.scrollWidth){const fe=getComputedStyle(ae,null);return mt(fe.overflowY,ee)||mt(fe.overflowX,ee)||(E=>{const re=(ne=>{if(!ne.ownerDocument||!ne.ownerDocument.defaultView)return null;try{return ne.ownerDocument.defaultView.frameElement}catch(le){return null}})(E);return!!re&&(re.clientHeight<E.scrollHeight||re.clientWidth<E.scrollWidth)})(ae)}return!1},Ce=(ae,ee,fe,E,re,ne,le,ue)=>ne<ae&&le>ee||ne>ae&&le<ee?0:ne<=ae&&ue<=fe||le>=ee&&ue>=fe?ne-ae-E:le>ee&&ue<fe||ne<ae&&ue>fe?le-ee+re:0,ye=ae=>{const ee=ae.parentElement;return ee==null?ae.getRootNode().host||null:ee},x=(ae,ee)=>{var fe,E,re,ne;if(typeof document=="undefined")return[];const{scrollMode:le,block:ue,inline:he,boundary:pe,skipOverflowHiddenElements:ve}=ee,de=typeof pe=="function"?pe:tt=>tt!==pe;if(!Ye(ae))throw new TypeError("Invalid target");const we=document.scrollingElement||document.documentElement,Te=[];let je=ae;for(;Ye(je)&&de(je);){if(je=ye(je),je===we){Te.push(je);break}je!=null&&je===document.body&&y(je)&&!y(document.documentElement)||je!=null&&y(je,ve)&&Te.push(je)}const Me=(E=(fe=window.visualViewport)==null?void 0:fe.width)!=null?E:innerWidth,Ae=(ne=(re=window.visualViewport)==null?void 0:re.height)!=null?ne:innerHeight,{scrollX:ge,scrollY:be}=window,{height:Ee,width:Re,top:Ie,right:ke,bottom:Pe,left:Ze}=ae.getBoundingClientRect(),{top:He,right:$e,bottom:it,left:Ne}=(tt=>{const Ve=window.getComputedStyle(tt);return{top:parseFloat(Ve.scrollMarginTop)||0,right:parseFloat(Ve.scrollMarginRight)||0,bottom:parseFloat(Ve.scrollMarginBottom)||0,left:parseFloat(Ve.scrollMarginLeft)||0}})(ae);let Fe=ue==="start"||ue==="nearest"?Ie-He:ue==="end"?Pe+it:Ie+Ee/2-He+it,qe=he==="center"?Ze+Re/2-Ne+$e:he==="end"?ke+$e:Ze-Ne;const rt=[];for(let tt=0;tt<Te.length;tt++){const Ve=Te[tt],{height:Ke,width:ze,top:at,right:Qe,bottom:ut,left:st}=Ve.getBoundingClientRect();if(le==="if-needed"&&Ie>=0&&Ze>=0&&Pe<=Ae&&ke<=Me&&(Ve===we&&!y(Ve)||Ie>=at&&Pe<=ut&&Ze>=st&&ke<=Qe))return rt;const Xe=getComputedStyle(Ve),Le=parseInt(Xe.borderLeftWidth,10),De=parseInt(Xe.borderTopWidth,10),te=parseInt(Xe.borderRightWidth,10),ce=parseInt(Xe.borderBottomWidth,10);let _e=0,Ue=0;const xe="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-Le-te:0,Se="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-De-ce:0,Oe="offsetWidth"in Ve?Ve.offsetWidth===0?0:ze/Ve.offsetWidth:0,We="offsetHeight"in Ve?Ve.offsetHeight===0?0:Ke/Ve.offsetHeight:0;if(we===Ve)_e=ue==="start"?Fe:ue==="end"?Fe-Ae:ue==="nearest"?Ce(be,be+Ae,Ae,De,ce,be+Fe,be+Fe+Ee,Ee):Fe-Ae/2,Ue=he==="start"?qe:he==="center"?qe-Me/2:he==="end"?qe-Me:Ce(ge,ge+Me,Me,Le,te,ge+qe,ge+qe+Re,Re),_e=Math.max(0,_e+be),Ue=Math.max(0,Ue+ge);else{_e=ue==="start"?Fe-at-De:ue==="end"?Fe-ut+ce+Se:ue==="nearest"?Ce(at,ut,Ke,De,ce+Se,Fe,Fe+Ee,Ee):Fe-(at+Ke/2)+Se/2,Ue=he==="start"?qe-st-Le:he==="center"?qe-(st+ze/2)+xe/2:he==="end"?qe-Qe+te+xe:Ce(st,Qe,ze,Le,te+xe,qe,qe+Re,Re);const{scrollLeft:et,scrollTop:nt}=Ve;_e=We===0?0:Math.max(0,Math.min(nt+_e/We,Ve.scrollHeight-Ke/We+Se)),Ue=Oe===0?0:Math.max(0,Math.min(et+Ue/Oe,Ve.scrollWidth-ze/Oe+xe)),Fe+=nt-_e,qe+=et-Ue}rt.push({el:Ve,top:_e,left:Ue})}return rt},z=ae=>ae===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(ae)?ae:{block:"start",inline:"nearest"};function se(ae,ee){if(!ae.isConnected||!(re=>{let ne=re;for(;ne&&ne.parentNode;){if(ne.parentNode===document)return!0;ne=ne.parentNode instanceof ShadowRoot?ne.parentNode.host:ne.parentNode}return!1})(ae))return;const fe=(re=>{const ne=window.getComputedStyle(re);return{top:parseFloat(ne.scrollMarginTop)||0,right:parseFloat(ne.scrollMarginRight)||0,bottom:parseFloat(ne.scrollMarginBottom)||0,left:parseFloat(ne.scrollMarginLeft)||0}})(ae);if((re=>typeof re=="object"&&typeof re.behavior=="function")(ee))return ee.behavior(x(ae,ee));const E=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:re,top:ne,left:le}of x(ae,z(ee))){const ue=ne-fe.top+fe.bottom,he=le-fe.left+fe.right;re.scroll({top:ue,left:he,behavior:E})}}}}]);